Incremental layout [message #1792744] |
Mon, 23 July 2018 09:10  |
Eclipse User |
|
|
|
I often find it annoying that removing 1 node or edge can trigger massive changes in the layout. Is there a possibility to make the layout incremental so that the previous layout is taken into account when making smaller changes?
Best regards,
Christophe
|
|
|
|
|
|
Re: Incremental layout [message #1817950 is a reply to message #1817929] |
Tue, 03 December 2019 09:14   |
Eclipse User |
|
|
|
Thanks for the reply Chris.
As long as I only update edges, this interactive mode seems to work quite well.
However, adding a new node to the graph is troublesome. The new node is always added on the top-left of the graph (see attachment)
Is there still an issue with the layout options I am setting? For interactive, I am currently using (elkjs version):
'elk.algorithm': 'layered',
'elk.direction': 'RIGHT',
'elk.separateConnectedComponents': false,
'elk.layered.spacing.nodeNodeBetweenLayers': 50,
'elk.padding': '[top=70,left=50,bottom=50,right=50]',
'elk.layered.contentAlignment': 'H_LEFT',
'elk.alignment': 'LEFT',
'elk.hierarchyHandling': 'INCLUDE_CHILDREN',
'elk.layered.layering.strategy': 'INTERACTIVE',
'elk.layered.cycleBreaking.strategy': 'INTERACTIVE',
'elk.layered.crossingMinimization.strategy': 'INTERACTIVE',
'elk.layered.nodePlacement.strategy': 'INTERACTIVE',
|
|
|
Re: Incremental layout [message #1817958 is a reply to message #1817950] |
Tue, 03 December 2019 10:22  |
Eclipse User |
|
|
|
Yep, that's because the node has coordinates (0, 0) when it is created and is thus placed in the top left corner. We currently don't have algorithms that support this level of interactivity - sorry.
|
|
|
Powered by
FUDForum. Page generated in 0.06515 seconds