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

How to remove the magenta colour box while creating a new link between two nodes

$
0
0

@ruth_psychx86 wrote:

I wanted to remove Magenta Rectangle that comes while drawing a link between two nodes. So what did is I added this in my code.
diagram.toolManager.linkingTool.temporaryFromNode = GJS(go.Node,{ selectable:false, layerName:'Tool', portId:'' }); diagram.toolManager.linkingTool.temporaryToNode = GJS(go.Node,{ selectable:false, layerName:'Tool', portId:'' });

By this the magenta Rectangle Got removed but now when draw a link the temporary link is formed from the centre of the node where as previously it was from the sides of the node. What I am missing here.
To be more clear I am sharing screenshots
before:

after:

what I actually want is this.

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 6977

Latest Images

Trending Articles



Latest Images