Hi. I’m having a variety of problems, all related to links not rerouting properly.
The first problem is relatively minor: If I have a link between two nodes and move another node over the link, the link re-routes itself around the obstacle. That’s good. But then, if I move the obstacle out of the way, the link does not re-route to a straight line.
More seriously, if I programmatically create a node on top of the link, the link does not re-route. If I then move the node, the link will re-route.
I’ve implemented my own undo mechanism. If I delete a node and its incoming link, then do Undo so that the node and link reappear, the link does not go to the node’s port; it goes to the center of the node. If I then force the link to re-route (by moving the node or moving another node on top of the link) the link re-routes and connects to the node.
I’ve fiddled with calling diagram.Layout.Invalidate, but that’s not solving any of these problems. What else can I try?