Quantcast
Channel: GoJS - Northwoods Software
Viewing all articles
Browse latest Browse all 7069

Links disappear after after changing segmentOffset, fromShortLength and toShortLength

$
0
0

@mtalis wrote:

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

Posts: 2

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 7069

Trending Articles