OK,
1:0…
For the disconnected link, i set the dragsLink to true, by mistake,
For the to/fromSpot, you are right, i used LayerDigraphLayout.
So, i set the setPortSpots to false, but still, the links are connected to one Spot.
Be aware that one second (timeout(1000) after layouting the diagram, i reset the Layout back to GridLayout(isOnGoing=isInitial=false) to avoid automiatic layout.
Also note that if i save the diagram to JSON and load it without any Layout, the Links are spoted parallel around the node.
There’s no need to replace the Diagram.layout – just set Layout.isOngoing to false. And Layout.isInitial to false if you are going to load a new model and don’t want there to be an automatic layout.
Ooooppsss, typo
Now it works fine.
By the way, i also reset the Diagram.layout and Layout.isOngoing to false.
I don’t new Layout() anymore.
Thanks
Tany