I have a TreeLayout like this:
myDiagram = $(go.Diagram, "goeditor", {
"undoManager.isEnabled": true,
scrollMode: go.Diagram.InfiniteScroll,
allowMove: false,
layout: $(go.TreeLayout, {
nodeSpacing: 138,
layerSpacing: 117,
}),
and my linkTemplate:
go.Link,
{
routing: go.Link.Orthogonal,
corner: 500,
smoothness: 1,
curve: "Bezier",
selectable: false,
},
link I want:
But sometimes it’s not straight:
Any idea how to make the link always straght? By the way, I don’t need to move the nodes.