I am using OrGate in my diagram below is the template for it.
var orTemplate =
goObj(go.Node, “Spot”,
{
background:“red”
},
goObj(go.Shape, “OrGate”,
{
strokeWidth: 1, fill: OrNodeFill, stroke: OrNodeStroke,
}
),
goObj(go.Shape, “Rectangle”, portStyle(true),
{ portId: “L”, alignment: go.Spot.MiddleLeft }),
goObj(go.Shape, “Rectangle”, portStyle(true),
{ portId: “R”, alignment: new go.Spot(1, 0.5) }),
goObj(go.TextBlock,
{
alignment: go.Spot.Center,
textAlign: “center”,
margin: 5,
editable: true
},
new go.Binding(“text”).makeTwoWay()
)
);
Above code is take from Logic Circuit. My problem is toLink is not connecting to OrGate left edge its stopping even before that. When I set a background for node I see a rectangle boundary around OrGate and because of that it is not connecting to the left edge of OrGate. Please refer below screenshot
I used the code as given in sample but its not working for me. Could you please help me fixing my issue