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

Why can I draw duplicate links?

$
0
0

@marin wrote:

I want to have ports that can be connected by a link, similiar to what is given: https://gojs.net/latest/samples/draggableLink.html
The porst appear only when a mouse enters the node.
However, I don't want duplicates: Links between the same two ports.. However, for some reason my configuration allows this... I'm not sure why.
This is my port configuration:

     $(go.Shape, shapes.node, {

            fill: null,
            stroke: null,
            desiredSize: size,
            alignment: position,
            alignmentFocus: position,
            portId: portType,
            fromSpot: position,
            toSpot: position,
            fromLinkable: portType === portTypes.output,
            toLinkable: portType === portTypes.input,
            cursor: 'pointer'
        })

Posts: 3

Participants: 3

Read full topic


Viewing all articles
Browse latest Browse all 7069

Trending Articles