Enumeration TreeMapPlacement

GoJS® Diagramming Components
version 3.1.0
by Northwoods Software®

This is an extension and not part of the main GoJS library. Note that the API for this class may change at any time. If you intend to use an extension in production, you should copy the code to your own source directory. See the Extensions intro page for more information.

This enumeration is used to determine the algorithm for placing nodes in TreeMapLayout.

Note: this enumeration is only exists in extensionsJSM, not in extensions.

since

3.0

Index

Enumeration Members

Enumeration Members

Places nodes to maximize the aspect ratio of each node being close to the chosen aspect ratio. This placement does not maintain node order.

The TreeMapLayout.aspectRatio property determines what aspect ratio to prioritize. The starting orientation is determined by TreeMapLayout.isTopLevelHorizontal. Layer orientation is determined by TreeMapLayout.alternatingOrientation.

Places nodes maintaining node order by placing remaining nodes around a chosen pivot. Pivot can be selected by TreeMapLayout.treeMapOrderedPivot. Choses orientation based on available width and height. Sections under 5 nodes will be placed according to TreeMapLayout.treeMapOrderedStoppingLayout

Places nodes by equally splitting space for each node on one axis. Alternates what axis nodes are placed on at each level. Maintains placement of nodes near each other.

The starting orientation is determined by TreeMapLayout.isTopLevelHorizontal.