Link Gaps not working

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
    })
);

That’s odd – your code looks correct. When I try it by modifying the UML class sample, adding curve: go.Link.JumpGap to the link template, I get this:

Adding routing: go.Link.AvoidsNodes, reshapable: true, deletable: false and your half-circle label made no difference:

So I’m sorry, but I don’t know what the problem is. Is there some way for us to reproduce the problem?

Hi, all the code is in github (see link below). You just need to open index.html and move the entities around so they cross. The github site is: GitHub - dorphalsig/moodler: Javascript ERM Modeler, linkable with Moodle
Thanks a lot.

Oh, one last thing. The link templates are all in templates.js
template_relationshipLine (line 34)
template_specializationLine (line 56)
template_totalGeneralizationLine (line 72)
template_partialGeneralizationLine (line 92)
thx

You didn’t pay attention to the console output – there are warning messages about an ongoing transaction:

WARNING: In ToolManager.doMouseDown: UndoManager.transactionLevel is not zero

That’s because you’re missing a commitTransaction call in addGeneralizationSpecialization.

As a student, unless you’ve paid for support, you aren’t entitled to support. So in the future you won’t be able to ask questions in this forum.