Hi Walter,
I’ve the connections between nodes, and I’ve a very short gap between them. Sometimes, the connections cross over these nodes, which makes the diagram cluttered. How can I avoid these lines that should not cross the nodes?
If you see the line between E-Z, it’s crossing over nodes. How can I ensure my lines should not cross other nodes?
This is my linkTemplate configuration.
this.diagram.linkTemplate = $(go.Link, {
routing: go.Routing.Orthogonal,
corner: 3,
toShortLength: 3,
selectable: true,
selectionAdorned: false,
})
.bind('fromSpot')
.bind('toSpot')
.add(
$(go.Shape, {
name: 'SHAPE-LINK',
strokeWidth: 1
},
new go.ThemeBinding('stroke', 'lineColor'),
new go.Binding('strokeDashArray', 'isDotted', (isDotted) => (isDotted ? [5, 5] : null)),
new go.Binding('strokeWidth', 'isSelected', (isSelected) => (isSelected ? 3 : 1))
),
$(go.TextBlock, {
text: '\ue9c8',
font: '12pt inhouse-font-icon',
cursor: 'pointer',
background: Canvas_Colors.linkIconBgColor,
stroke: Canvas_Colors.linkIconColorGood,
desiredSize: new go.Size(16, 14),
mouseEnter: (e, obj) => { this.showTooltip(e, obj); },
mouseLeave: (e, obj) => { this.hideTooltip(e, obj); }
},
new go.Binding('stroke', 'status', (status) => {
return status === 'good' ? Canvas_Colors.linkIconColorGood : status === 'average' ? Canvas_Colors.linkIconColorAverage : Canvas_Colors.linkIconColorBad;
}),
new go.Binding('visible', 'status', () => !!this.isResilienceEnabled),
)
);

