Hi Team,
We are facing some issues while updating the link category.
We are having two link categories, with no difference between them (Both link category are kept same to reproduce the issue with minimal changes, later we will modify one of the template)
The graph initially is below
When changing the link category using setCategoryForLinkData(), we get below.
And this is the link template data
const $ = go.GraphObject.make;
return $(
go.Link,
{
routing: go.Link.AvoidsNodes,
curve: go.Link.JumpOver,
corner: 10,
toShortLength: 7,
},
$(go.Shape, new go.Binding("stroke", "color")),
$(
go.Shape,
{
toArrow: "Triangle",
fill: "gray",
stroke: null,
},
new go.Binding("fill", "color")
)
);
}
When toShortLength property is not set, we don’t see the issue.
Please, have a look at this issue.