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

Link Bezier link label not center

$
0
0

@ahmetgundogdu wrote:

What I did I could not center the link tag

How do I center Label ?

My linkTemplate :

this.diagram.linkTemplate =
            goMake(go.Link,
                {
                    curve: go.Link.Bezier,
                    toShortLength: 0.5,
                    fromEndSegmentLength: 20, toEndSegmentLength: 50,
                    zOrder: -1
                },
                goMake(go.Shape),
                goMake(go.Shape, { toArrow: "Standard" }),
                goMake(go.Panel, "Auto", { segmentIndex: 1, segmentFraction: 0.5 },
                    goMake(go.Shape, { fill: "yellow", stroke: "gray" }),
                    goMake(go.TextBlock, { margin: 3, text: "Test" },
                        new go.Binding("text", "text"))
                )
            );

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 7069

Trending Articles