Gojs自动布局下,连线重合的问题。

gojs自动布局下,连线重合的问题:


如上图,自动布局下,我的连线应该是 {from 1 to 1, {from 1 to 2 }, {from 2 to 2}
现在布局容易让人搞混,请问怎么不让连线重合。

First, if you don’t use Orthogonal or AvoidsNodes Link.routing, the paths should be quite clear – much as your red arrows are.

Second, you could increase the value of Link.corner to make turns clearer.

Third, you could vary each node’s fromEndSegmentLength and toEndSegmentLength, which can help change where the routes turn. Or you could change where the nodes are along the x-axis to get a similar effect.

I think the first choice, not using orthogonal routing, is the best.