Hi,
I have a link template who looks like this :
diagram.linkTemplate = $(go.Link,
$(go.Shape,
{
stroke: "black", strokeWidth: 2
}
),
$(go.Shape,
{
toArrow: "Standard",
stroke: "black", strokeWidth: 2
}
),
$(go.Panel, "Vertical",
{
segmentIndex: 0,
alignmentFocus: go.Spot.BottomLeft
},
$(go.TextBlock,
{
font : "14pt arial bold",
stroke: "red"
} ,
new go.Binding("text", "portA")
)
),
$(go.Panel, "Vertical",
{
segmentIndex: -1,
alignmentFocus: go.Spot.TopRight
},
$(go.TextBlock,
{
font : "14pt arial bold",
stroke: "red"
} ,
new go.Binding("text", "portZ")
)
)
The results as shown :
The “aaaa” and “bbbb” labels are located as desired.
But the “cccc” and “dddd” are shifed to the right and left.
How can i control their location ? They show be located like “aaa” and “bbb”.
I tried with segementOffset/Orientaion/Fraction but it even got worse.
Please advice.
Regards,
Tany