I am trying to create a collapsible and expandable diagram. I have set the isLayoutPositioned and isTreeLink of the link (marked as r) to false. The issue I am facing is that when I expand a node, the positions of the left and right nodes automatically change (P1), but I want the nodes to maintain their positions (P2). How can I solve this issue?
P1:
I don’t want that, but the current diagram already ensures that only one node will be expanded. If node 9 is clicked to expand, node 8 will automatically collapse.
Ah, OK. The code that I gave you shows how you can define the expanding function to first collapse the sibling nodes, although the graph structure that you have is different than in that sample.
That would be some new work. Once you purchase a license, we’ll promise to make such a sample for you.