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.
Optional
init: Partial<TreeMapLayout>Gets or sets whether each layers orientation is determined by its parents. This only applies if TreeMapPlacement is TreeMapPlacement.AspectRatio If true each layer will alternate, if not the orientation will be determined by whether width or height is larger.
Default is false.
Gets or sets the prioritized aspect ratio for nodes.
This only applies if TreeMapPlacement is TreeMapPlacement.AspectRatio. Default is 2.5.
Gets or sets whether each layers spacing is multiplied by the layer its on.
Default is false.
Gets or sets whether top level parts are laid out horizontally.
Default is true.
Gets or sets the spacing factor for each layer
Default is 10.
Gets or sets the size for the layout to fill. Values of NaN fill the viewport in the given direction.
The default value is NaN x NaN, which fills the full viewport.
Gets or sets the method by which the pivot node is chosen. Valid values are TreeMapOrderedPivot values.
The default value is TreeMapOrderedPivot.Size.
Gets or sets the method by which nodes will be placed when there are less than 4 in an Ordered placement. Valid values are TreeMapOrderedStoppingLayout values.
The default value is TreeMapOrderedStoppingLayout.Conical.
Gets or sets the method by which nodes will be placed. Valid values are TreeMapPlacement values.
The default value is TreeMapPlacement.AspectRatio.
Override
cloneOverride
do
A custom go.Layout that lays out hierarchical data using nested rectangles.
If you want to experiment with this extension, try the TreeMap Layout sample.