I would like to have nodes auto layout as they are dragged onto the the diagram from the palette. However, I want them to auto layout in a list where my "continue nodes" are offset. Right now I do this manually via:
newNode.offsetX = lastNode.offsetX;
newNode.offsetY = lastNode.offsetY + (lastNode.height * 2);
But, when a node in the middle of the "list"/diagram is deleted I'd need to re-adjust all the nodes manually again with some function.
Is there a way to create a custom Auto Layout?
If so, is it possible to have the layout auto update when I reconnect two nodes after one is deleted?
Attached are screenshots to help illustrate what I'm asking.
Thanks!
Attachment:
AutoReLayout_b2251204.zip