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

How to reconnect links in an existing file given a new NodeTemplate in the code

$
0
0

@ewoudenberg wrote:

During the course of UI development I sometimes tweak the size of nodes in the NodeTemplate initialization code only to find that when loading an old file the links no longer line up perfectly with the edges of the node. I assume this is to be expected if nodeTemplates change out from under an existing diagram stored in a file.

Nonetheless, I want to reconnect all the links to the node edges in this case (equivalent to moving each node a little with the mouse).

I tried going through every link and calling invalidateRoute or updateRoute, but neither of those changed anything.

What's the right way of reconnecting links when a nodeTemplate changes out from under an existing file?

Thank you

Posts: 2

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 7069

Trending Articles