Link labels are hidden by Node


#1

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


#2

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.


#3

didn’t help…


#4

Yes? How can I help you without more information?


#5

What kind of information would you like ?


#6

How about:

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

image