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

Relinking tool does not respect temporaryLink.routing property

$
0
0

@ewoudenberg wrote:

I have a diagram with this LinkTemplate:

                    routing: go.Link.AvoidsNodes,
                    curve: go.Link.JumpGap,

My temporary link is customized thus:

       // Style the temporary links shown when creating a link between nodes.
        for (let linkTool of [myDiagram.toolManager.linkingTool, myDiagram.toolManager.relinkingTool]) {
            // Temporary links used by LinkingTool and RelinkingTool are straight lines:
            linkTool.temporaryLink.routing = go.Link.Normal;
            linkTool.temporaryLink.curve = go.Link.Normal;
            linkTool.temporaryLink.path.stroke = 'white';
            linkTool.temporaryLink.path.strokeWidth = 2;
            linkTool.portGravity = 50;
        }

The behavior I get is that new temporary links are styled as straight (angled) vectors, but when re-linking I get an orthogonally routed line that has only horizontal and vertical extents. Is there a problem with the relinking tool? Am I using it incorrectly?

Thank you.

Posts: 2

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 7069

Trending Articles