I don't think there is a way. However, in the latest version of Zest (see GEF 4 Update Sites), animation is disabled by default. This should at least result in the new layout appearing in the correct place directly.
How to make Zest nodes move from their current location after a change?
-
14-04-2022 - |
Question
When I first populate a graph, all the nodes appear stacked on the top-left corner. When I invoke applyLayout()
on the graph, the nodes move to the appropriate location with a nice animation. However, after I change the graph (remove some nodes, adds others) and invoke applyLayout()
again, all the nodes move to their appropriate location, but they start at the top-left corner again.
Is there a way to make the nodes move from their current location to the new one, without having them reset to the top-left?
Solution
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow