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

Configuring tree layout

$
0
0

@anvlkv wrote:

Hi!

I'm using TreeLayout to display GraphLinks model.

The minimal configuration I'm trying to use looks like this:
$(go.TreeLayout, {
treeStyle: go.TreeLayout.StyleLastParents,
layerSpacing: 80,
nodeSpacing: 80,
alternateLayerSpacing: 160,
alternateNodeSpacing: 160,
}),

But further configuration of layout causes me a lot of problems:

  • enabling alignment: go.TreeLayout.AlignmentBus,
    alternateAlignment: go.TreeLayout.AlignmentTopLeftBus,

    Results in strange geometry of links

  • enabling arrangement: go.TreeLayout.ArrangementHorizontal,
    Results in whole tree being collapsed into single line

What am I doing wrong or is it something wrong with my model?

Another question I have is how to prevent multiple links from collapsing into a single line.

Posts: 10

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 7069

Trending Articles