Skip to main content

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

ConstructorModifiersDescription
(constructor)(model, options)Constructs a new instance of the PlacementStage class

Properties

PropertyModifiersTypeDescription
currentLayerHierarchyLayoutModelLayer
edgeNodeSizenumber
gatherUnattachedRootsboolean
lastPlacementsPlacementsStageResults
modelHierarchyLayoutModel
paddingPointXY
strategyPlacementStageStrategy

Methods

MethodModifiersDescription
execute(rootNode)