Hello,
Can someone point me to an example of a node accepting multiple inputs into a node port? I have tried many different things to allow the user to be able to draw multiple links to the same port but nothing seems to work. Multiple from links works just fine.
An example of my port:
makePort(“T”, go.Spot.Top, true, true);
function makePort(name, spot, output, input) {
// the port is basically just a small circle that has a white stroke when it is made visible
return graphObjectMake(go.Shape, “Circle”,
{
fill: null,
stroke: null, // this is changed to “white” in the showPorts function
desiredSize: new go.Size(8, 6),
alignment: spot, alignmentFocus: spot,
portId: name, // declare this object to be a “port”
fromSpot: go.Spot.AllSides, toSpot: go.Spot.AllSides,
fromLinkable: output, toLinkable: input,
fromLinkableDuplicates: true, toLinkableDuplicates: true,
relinkableFrom: true, relinkableTo: true
cursor: “pointer”
});
}