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

Mixing orthogonal and normal linking

$
0
0

@running_randall wrote:

I'm using genogram layout but in certain cases I want to do a hybrid normal linking (where individuals are twins). Here's my regular orthogonal linking:

myDiagram.linkTemplate = // for parent-child relationships
        $g(go.Link, {
            routing: go.Link.Orthogonal,
            layerName: "Background",
            curviness: 10,
            selectable: false,
            fromSpot: go.Spot.Bottom,
            toSpot: go.Spot.Top
        }, $g(go.Shape, {
            strokeWidth: 2
        }, new go.Binding("strokeDashArray", "dash")));

The orthogonal is working great but I'm not sure how I can link two nodes in this manner:

Yet maintain the orthogonal everywhere else. Basically all horizontal lines remain horizontal but in the case of twins I don't want a vertical line to the node but these angled nodes. Any help is much appreciated.

Posts: 3

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 7069

Trending Articles