I used the PolylineLinkingTool sample and do some changes;
myDiagram.nodeTemplate =
$(go.Node, "Spot",
{ locationSpot: go.Spot.Center },
new go.Binding("location", "loc", go.Point.parse).makeTwoWay(go.Point.stringify),
$(go.Panel, "Auto",//横向排列
$(go.Picture,"/uploads/20151222abb43228f5b11b1bde16a7e69645d013.jpg",
{
margin: 5,
portId: "",
cursor: "pointer",
fromLinkable: true,
fromLinkableSelfNode: true, fromLinkableDuplicates: true, // optional
toLinkable: true,
toLinkableSelfNode: true, toLinkableDuplicates: true // optional
},
new go.Binding("fill"))),
$(go.Shape, {
width: 20, height: 20,
fill: "transparent", stroke: null }),
$(go.TextBlock,
new go.Binding("text")));
As you see, I just change the go.Shape to go.Picture.
Then when i make the link connect to another node, another node can not get the link.
This is the right connection.
This is my change show.
That’s my question, can you give me some advice?