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

visually overlapping with edgehandles #44

Open
Hoogkamer opened this issue Jul 16, 2022 · 4 comments
Open

visually overlapping with edgehandles #44

Hoogkamer opened this issue Jul 16, 2022 · 4 comments
Assignees

Comments

@Hoogkamer
Copy link

Hi, thanks for this nice work!
First a little ' bug': you forgot a comma in the documentation of the Default Options for the 'cursors' property (this page: https://github.com/iVis-at-Bilkent/cytoscape.js-node-editing)

And my question, how do I avoid overlaps between the editing handles and the edge drawing handle. I would like to have the latest one on top (or remove the middle top editing handle)
image

@hasanbalci
Copy link
Contributor

hasanbalci commented Jul 18, 2022

Hi @Hoogkamer, I think you can have the drawing handle on top by increasing its z-index value. We don't have an option to remove the middle top handle, but you can disable it by using isFixedAspectRatioResizeMode option which allows to edit node size only from corners of the node. Thanks for noticing us about the missing "comma".

Edit: You can also make the middle top and middle bottom handles transparent by using inactiveGrappleStroke option after you disable them.

@Hoogkamer
Copy link
Author

Hi @hasanbalci I already tried playing with z-index value on the node for the edge handle, but that did not work. I created a PR so one can select the visible resize handles himself

@hasanbalci
Copy link
Contributor

@Hoogkamer Thanks for the PR, can you please open it to the unstable branch as the development is done first in the unstable branch and then we merge it to the master before the release?

@Hoogkamer
Copy link
Author

Ok, I changed it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants