layout code:
‘layout’: this.$(go.LayeredDigraphLayout, {
isInitial: false,
isOngoing: false,
direction: 90,
linkSpacing: 0,
columnSpacing: 130,
layerSpacing: 250,
setsPortSpots: false,
}),
link code:
this.myDiagram.linkTemplate = this.$(go.Link, // the whole link panel
{
curve: go.Link.Bezier,
curviness: 20,
adjusting: go.Link.Stretch,
toShortLength: 3,
// fromShortLength: -50,
},
this.$(go.Shape, // the link shape
{
stroke: ‘#767676’, strokeWidth: 2.5,
}),
new go.Binding(‘points’).makeTwoWay(),
new go.Binding(‘curviness’, ‘curviness’).makeTwoWay(),
);
When the two elements are perpendicular, the Bezier curve doesn’t work。I don’t know how to solve this problem。