Home > @jsplumbtoolkit/layout-hierarchy > PlacementStage
PlacementStage class
The final stage of the layout, in which vertices are placed, according to the layers and the ordering within the layers that has been computed by the previous stages. Several different placement strategies are supported - each layer can be aligned to the start/end of the layer, or to the center of the layout, and the relativeToParent
strategy attempts to group children of some given vertex underneath that vertex.
Signature:
export declare class PlacementStage extends HierarchyLayoutStage
Extends: HierarchyLayoutStage
Constructors
Constructor | Modifiers | Description |
---|---|---|
(constructor)(model, options) | Constructs a new instance of the PlacementStage class |
Properties
Property | Modifiers | Type | Description |
---|---|---|---|
currentLayer | HierarchyLayoutModelLayer | ||
edgeNodeSize | number | ||
gatherUnattachedRoots | boolean | ||
lastPlacements | PlacementsStageResults | ||
model | HierarchyLayoutModel | ||
padding | PointXY | ||
strategy | PlacementStageStrategy |
Methods
Method | Modifiers | Description |
---|---|---|
execute(rootNode) |