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

Shape label on link placement

$
0
0

@zamehan wrote:

Hello,

On the page devoted to labels https://gojs.net/latest/intro/linkLabels.html, it is only specified the placement of written labels on the link but not shape label on the link.

Like how would I place the label on this link to the from or to position please ? Thank you :

diagram.linkTemplate =
    $(go.Link,
      $(go.Shape),
      $(go.Shape, { toArrow: "Standard" }),
      $(go.Panel, "Auto",  // this whole Panel is a link label
        $(go.Shape, "TenPointedStar", { fill: "yellow", stroke: "gray" }),
        $(go.TextBlock, { margin: 3 },
          new go.Binding("text", "text"))
      )
    );

Posts: 5

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 7069

Trending Articles