A new version of a hierarchy layout, which can better handle upstream links and multiple parents. This layout runs in 3 stages -

  1. placement of nodes into layers
  2. reordering nodes in layers to minimise edge crossing
  3. placement of nodes into final layout

Hierarchy (view full)

Properties

Methods

Properties

type: string = LAYOUT_TYPE_HIERARCHY

Deprecated

use LAYOUT_TYPE_HIERARCHY constant instead

Methods

  • Gets the position for the given Node/Group as dictated by either the left/top properties, or some other nominated pair, in the Node/Group's data. This position is what the Absolute layout uses itself, and this method exposes the absolute position for subclasses that wish to make use of the absolute backing.

    Parameters

    • v: Node | Group

      Node/Group to get absolute position for.

    • Optional parameters: LayoutParameters

      Constructor parameters. May contain a custom locationFunction.

    Returns PointXY