Class TreeMapLayout

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.

Hierarchy (view full)

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.

Index

Constructors

Accessors

  • 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 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.

Methods

  • Copies properties to a cloned Layout.

    Parameters

    • copy: this

    Returns void

  • Compute the data.total for each node in the Diagram, with a go.Group's being a sum of its members.

    Parameters

    Returns void