Options
All
  • Public
  • Public/Protected
  • All
Menu

Class TreeMapLayout

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. Extensions can be found in the GoJS kit under the extensions or extensionsTS folders. See the Extensions intro page for more information.

Hierarchy

A custom Layout that lays out hierarchical data using nested rectangles.

If you want to experiment with this extension, try the Tree Map Layout sample.

Index

Constructors

constructor

  • Create a minimal layout that only positions Nodes that do not have a location.

    Returns TreeMapLayout

Properties

isTopLevelHorizontal : boolean

  • Gets or sets whether top level Parts are laid out horizontally.

Methods

Override cloneProtected

  • Copies properties to a cloned Layout.

    Parameters

    Returns void

computeTotals

  • computeTotals(diagram: Diagram): void
  • Compute the data.total for each node in the Diagram, with a Group's being a sum of its members.

    Parameters

    Returns void

Override doLayout

  • This method actually positions all of the nodes by determining total area and then recursively tiling nodes from the top-level down.

    Parameters

    Returns void