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

OrGate Link is not connecting to its left edge

$
0
0

@mohanr.k wrote:

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 https://gojs.net/latest/samples/logicCircuit.html. 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

image

I used the code as given in sample but its not working for me. Could you please help me fixing my issue

Posts: 2

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 6969

Trending Articles