Here is the scenario:
- Create diagram using GraphLinksModel
- Add nodes and links
- When select a node update fromShortLength and toShortLength and segmentOffset of fromArrow and toArrow shapes for all connected links using findLinksInto and findLinksOutOf. Also undo changes for the nodes that get unselected using findLinksConnected
- After all changes do
setTimeout(() => {
for (const link of links) {
link.invalidateRoute();
}
}); - Works good so far
- Move some connected nodes. Sometimes links disappear on undo/redo
- When hover over the invisible link or node or move node the links appear back