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

Multiple Link connectivity

$
0
0

@Tany wrote:

Hi,
I have the following templates in 2 different applications :
diagram.linkTemplate = $(go.Link, { corner: 5 },

        $(go.Shape,
              {
                 stroke: "black", strokeWidth: 2
              }
        )
);

diagram.nodeTemplate =
        $(go.Node, "Auto",  // the Shape automatically fits around the TextBlock
        new go.Binding("position", "loc", go.Point.parse),
		$(go.Picture, { portId: "",
                        fromSpot: go.Spot.AllSides, toSpot: go.Spot.AllSides,
                        width: 120, height: 120 },
                        new go.Binding("source") )
    	);

In the the simple demo application the links are parallels connected :
image

In my main application, the links are connected like that :


And the links can be disconnected if selected :

It worked fine in the past. At some point i messed up the code.
I don’t have a clue where to look for.
Can you guide me ?
Regards,
Tany

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 7069

Trending Articles