Quantcast
Channel: GoJS - Northwoods Software
Viewing all articles
Browse latest Browse all 7069

Layered Digraph route is irregular

$
0
0

@sclements wrote:

Hello,

I have a Layered Digraph graph that has an odd appearance when I add an additional node and link.

The nodes adds in the expected location, but the link route is drawn oddly until I do a redraw operation (then the link route is as expected).

The layout configuration is as follows

                    layout = make(go.LayeredDigraphLayout, {
                    direction: 0,
                    aggressiveOption: go.LayeredDigraphLayout.AggressiveLess,
                    cycleRemoveOption: go.LayeredDigraphLayout.CycleDepthFirst,
                    initializeOption: go.LayeredDigraphLayout.InitDepthFirstIn,
                    iterations: 10,
                    layeringOption: go.LayeredDigraphLayout.LayerOptimalLinkLength,
                    packOption: go.LayeredDigraphLayout.PackStraighten,
                    columnSpacing: 10,
                    layerSpacing: 35,
                    setsPortSpots: true

The graph looks like this when appending the purple node and link

The graph looks like this after a redraw

Can you suggest what is causing the behaviour shown in the first image?

Thank you

Posts: 7

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 7069

Trending Articles