Link labels are hidden by Node

Hi,
I’m using link labels as shown in the picture:


The left label is marked for segmentFraction=0.05 and the right one for 0.85.
The rest link templates are equal for both labels, as as follows :

When i move the right node to the left to be close to the left node. the node icon hides the right link label, as shown :

How can avoid the node to hide the label ?
Regards,
Tany

For fixed size labels if you use fractional distances you must expect problems as the size/length decreases.

Try setting { segmentIndex: -2, segmentOffset: new go.Point(-20, 10) }, and fiddle with the numbers for the offset.

didn’t help…

Yes? How can I help you without more information?

What kind of information would you like ?

How about:

    myDiagram.linkTemplate =
      $(go.Link,
        { routing: go.Link.Orthogonal },
        $(go.Shape),
        $(go.TextBlock, "LABEL",
          { segmentIndex: -1, alignmentFocus: go.Spot.BottomRight })
      );

image

Will try,
Thanks