Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Label not shown in specific case with round-segments #3318

Open
7 tasks
feichin-noreja opened this issue Jan 9, 2025 · 1 comment
Open
7 tasks

Label not shown in specific case with round-segments #3318

feichin-noreja opened this issue Jan 9, 2025 · 1 comment
Labels
bug A bug in the code of Cytoscape.js

Comments

@feichin-noreja
Copy link

Environment info

  • Cytoscape.js version : 3.30.4
  • Browser/Node.js & version : Chrome 131.0.6778.205 Node 22.11.0

Current (buggy) behaviour

While using the round-segments with the following styling the lable dissappears:

"style": { "curve-style": "round-segments", "segment-distances": [-20, -20, -20], "segment-weights": [0.25,0.5,0.75] }

Screenshot 2025-01-09 154634

if i change the code to the following the label appears:

"style": { "curve-style": "round-segments", "segment-distances": [-20, 20, -20], "segment-weights": [0.25,0.5,0.75] }

Screenshot 2025-01-09 154650

if i use the normal segment style both work

Screenshot 2025-01-09 154702

Desired behaviour

The label should always be shown

Minimum steps to reproduce

Go to the labels Demo page and edit the cy-style.json of the .autorotate selector.

For reviewers

Reviewers should ensure that the following tasks are carried out for incorporated issues:

  • Ensure that the reporter has included a reproducible demo. They can easily fork this JSBin demo: http://jsbin.com/fiqugiq
  • The issue has been associated with a corresponding milestone.
  • The commits have been incorporated into the corresponding branches. Bug-fix patches go on
    • master,
    • unstable, and
    • the previous feature release branch (e.g. 1.1.x if the current release is 1.2).
  • The issue has been labelled as a bug, if necessary.
@feichin-noreja feichin-noreja added the bug A bug in the code of Cytoscape.js label Jan 9, 2025
@maxkfranz
Copy link
Member

@EliotRagueneau, what are your thoughts on why this may be happening? Thanks

Ref:

@maxkfranz maxkfranz changed the title Label dont shown in specific case with round-segments Label not shown in specific case with round-segments Jan 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug A bug in the code of Cytoscape.js
Projects
None yet
Development

No branches or pull requests

2 participants