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

Multiple Link label orientation

$
0
0

@Nerkalipsu wrote:

Hi, is there any way to rotate part of a label?

I have this:


(the label is actually a horizontal panel with 2 textblocks, one for the text and another for the arrow)

and I would like the arrowhead to point in the right direction. Can I change the orientation of just the arrowhead?

I tried the following with no luck:

diagram.linkTemplate =
  $(go.Link,
    $(go.Shape), // this is the link shape
    $(go.Panel, "Horizontal", {
        segmentOffset: new go.Point(0, -10),
      },
      $(go.TextBlock, "NAME", {
        segmentOrientation: go.Link.OrientUpright,
      }),
      $(go.TextBlock, "►", {
        segmentOrientation: go.Link.OrientAlong
      })
    )
  );

Posts: 2

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 7069

Trending Articles