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

Different link templates for horizontal segment, and vertical segment

$
0
0

@jude wrote:

This is what my link template looks like:

myDiagram.linkTemplate =
    $$(go.Link,
        {routing: go.Link.AvoidsNodes, corner: 10},
        $$(go.Shape, {strokeWidth: 2, stroke: colours.light_gray}),
        $$(go.Shape, {toArrow: "Standard", fill: colours.light_gray, stroke: colours.light_gray})
        ...

Now, I am able to place items in the center of the link.

However, how can I specify different link templates depending on how the link is being drawn (i.e. horizontally vs vertically)?

Here is what I want to achieve:

Note the placement of the text when the link is drawn vertically vs horizontally.

Posts: 2

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 6972

Trending Articles