How to avoid nodes overlapping when resizing? #3111
Unanswered
adriansimionescu83
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello everyone!
I have a question concerning the rendering of layouts.
Here is the issue:
I want to avoid overlapping. I know that I can rerender the graph by doing this.cy.layout(...).run() again. But by doing this, the graph will be rerendered totally, meaning the nodes could have a complete different position.
What I would like to have is a kind of update positions so that only in case there is a risk of overlapping, then the nodes move a little from their previous position to avoid as much as possible overlapping (the idea behind this request is not to confuse users: if the nodes have total different positions, it is hard for them to study the graph). I could not find anything in the documentation. Do you have an idea how to do it?
Thanks in advance for your help!
Beta Was this translation helpful? Give feedback.
All reactions