$(go.Node, "Auto",
{
resizable: false, resizeObjectName: "PANEL",
resizeAdornmentTemplate: nodeResizeAdornmentTemplate,
desiredSize: new go.Size(108, 67),
minSize: new go.Size(108, 67),
maxSize: new go.Size(220, 120)
},
new go.Binding("angle").makeTwoWay(),
new go.Binding("location", "loc", go.Point.parse).makeTwoWay(go.Point.stringify),
new go.Binding("desiredSize", "size", go.Size.parse).makeTwoWay(go.Size.stringify),
$(go.Shape, "RoundedRectangle",
{
parameter1: 2, portId: "",
fromSpot: go.Spot.AllSides, toSpot: go.Spot.AllSides, // <------spots should be here
fill: fill, stroke: "orange", strokeWidth: 2,
spot1: new go.Spot(0, 0, 1, 1),
spot2: new go.Spot(1, 1, -1, 0),
minSize: new go.Size(95, 59),
maxSize: new go.Size(220, 120),
fromLinkable: true, fromLinkableSelfNode: true, fromLinkableDuplicates: true,
toLinkable: true, toLinkableSelfNode: true, toLinkableDuplicates: true
},
new go.Binding("figure", "figure").makeTwoWay(),
new go.Binding("fill", "fill").makeTwoWay(),
new go.Binding("stroke", "stroke").makeTwoWay()
),
...
Your fromSpot/toSpot should be defined wherever you have your port specified. Also, you seem to have sizes defined in lots of places, which seems strange in the case of an auto panel. And it seems odd to bind both the location and position of the node. You should probably try cleaning up your template some and remove properties that you don’t really need.