GOJS -Avoid link separation while connecting node with new link(parent child link connection)

while trying to connect the nodes with child links,its changing its position…

Before opening :

After opening:

Actual needed position:

  • Nodes are changing their posotion ,without changing their position,want to show like above one.

I am using link to link connection for green link(parent to child). and my code for link properties as follows

suggest me some technique to avoid it,
thank you

Automatic positioning of nodes is due to layout. Adding or removing nodes or links will invalidate the layout, causing it to be performed again.

Maybe you want Part.isLayoutPositioned set or bound to false on such links?

Hi walter,
Can you please tell me ,where i need to set this Part.isLayoutPositioned property.

https://gojs.net/latest/intro/layouts.html#LayoutInvalidation

So you could set or bind that property on your link template.