HierarchyLayout
Places elements into a hierarchy, supporting upstream links and multiple parents. This layout runs in 3 stages -
- placement of nodes into layers
- reordering nodes in layers to minimise edge crossing
- placement of nodes into final layout
Extends
Methods
getAbsolutePosition()
getAbsolutePosition(
v,parameters?):PointXY
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 to get absolute position for.
parameters?
Constructor parameters. May contain a custom locationFunction.
Returns
Inherited from
AbsoluteBackedLayout.getAbsolutePosition
Properties
type
statictype:string=LAYOUT_TYPE_HIERARCHY
Defines the HierarchyLayout type.