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

Link Gaps not working

$
0
0

@dorphalsig wrote:

Hi, great documentation, many thanks for the gazillion examples. I have a rather basic question, it seems I cant get the "link gap" (instead of crossing, make one link have a small gap in the intersection) working. I've already added "curve: go.Link.JumpGap" definition to all my Link templates, however it seems I am doing something wrong, so if anybody here can give me a hand, I'd appreciate it.

Screenshot:

Definitions:

    var template_relationshipLine = $go(go.Link, {
        routing: go.Link.AvoidsNodes,
        curve: go.Link.JumpGap,
        reshapable: true,
        deletable: false
    },

    $go(go.Shape), $go(go.TextBlock, new go.Binding("text", "role"), {
            font: "10px sans-serif",
            segmentOffset: new go.Point(-15, -15)
        }
    ),
    $go(go.TextBlock, new go.Binding("text", "multiplicity"), {
            segmentIndex: 0,
            segmentOffset: new go.Point(NaN, NaN),
            font: "10px sans-serif"
        }
    )
);


var template_specializationLine = $go(go.Link, {
        routing: go.Link.AvoidsNodes,
        curve: go.Link.JumpGap,
        reshapable: true,
        deletable: false
    },
    $go(go.Shape),
    $go(go.Shape, {
        geometryString: "m 8,16 b 90 180 0 -8 8", //"m 4,8 b 90 180 0 -4 4",
        fill: null,
        //scale: 2,
        segmentOrientation: go.Link.OrientAlong
    })
);

Posts: 5

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 7069

Trending Articles