@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
fromortoposition 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