Enumeration TreeCompaction

GoJS® Diagramming Components
version 3.0.16
by Northwoods Software®

This enumeration specifies how closely packed the children of a node should be. Used for TreeLayout.compaction or TreeLayout.alternateCompaction.

since

3.0

Index

Enumeration Members

Enumeration Members

A simple fitting of subtrees.

This mode produces more compact trees -- often nicer looking too; Nodes will not overlap each other, unless you have negative values for some of the spacing properties; However it is possible when the links are orthogonally styled that occasionally the subtrees will be placed so close together that some links may overlap the links or even the nodes of other subtrees.

Only simple placement of children next to each other, as determined by their subtree breadth.

For any node, there will not be another node at any depth occupying the same breadth position, unless there are multiple rows; In other words, if there is no breadth limit resulting in multiple rows, with this compaction mode it is as if every node were infinitely deep.