Hey everyone, I'm running into a challenge with the ELK layered algorithm. Essentially, I need a way to have all nodes (except the one being moved) maintain their positions, while only recalculating the edge routing. However, it seems that the layered algorithm doesn't allow locking node positions like that. Any ideas or workarounds to achieve this? Thanks!
#ELK draggable layout
1 messages · Page 1 of 1 (latest)
Are you redoing the elk layouting on every render?
No, I calculate the layout once at startup. It would be okay if the node is moved and the layout is not recalculated yet, but only when the node is at its final point
If the layout is not being calculated at every render then changing the position of one node shouldn't change the positions of other nodes.
Yeah, but I want to recalculate the layout after the node has been moved and I want ELK to only use the current positions of the nodes, not to calculate new positions, so that the movement of the node and the other nodes stays the same and only the edges are recalculated.
I use custom edges that follow the edge path calculated by Elk exactly. And if I move a node, the edges will stay the same and are not connected to the node anymore.