Home > @jsplumbtoolkit/layout-hierarchical > HierarchicalLayout
HierarchicalLayout class
A layout that places vertices into a series of layers.
Signature:
export declare class HierarchicalLayout extends AbstractHierarchicalLayout<HierarchicalLayoutParameters>
Extends: AbstractHierarchicalLayout<HierarchicalLayoutParameters>
Constructors
| Constructor | Modifiers | Description |
|---|---|---|
| (constructor)(params) | Constructs a new instance of the HierarchicalLayout class |
Properties
| Property | Modifiers | Type | Description |
|---|---|---|---|
| _alignment | string | ||
| _alignmentLocationCalculators | { [x: string]: (cg: any) => any; } | ||
| _childGroups | Array<any> | ||
| _getChildEdges | Function | ||
| _hierarchy | Array<any> | ||
| _maxSizes | Array<number> | ||
| _parentAlignmentCalculators | { center: (cg: any, min: number, max: number) => number; start: (cg: any, min: number, max: number) => number; end: (cg: any, min: number, max: number) => number; } | ||
| _visitedNodes | Record<string, any> | ||
| compress | boolean | ||
| invert | boolean | ||
| orientation | HierarchicalLayoutOrientation | ||
| spacing | string | ||
| type | string | ||
| type | static | string |
Methods
| Method | Modifiers | Description |
|---|---|---|
| _id(v) | ||
| _setGroupParentLocation(g, loc) | ||
| begin(toolkit, parameters) | ||
| getDefaultParameters() | ||
| getHierarchy() | Gets the computed hierarchy. This is returned as an array of objects, one for each level, inside which there is a nodes array. | |
| getOrientation() | Gets the orientation of the layout - "horizontal" or "vertical". | |
| getPadding() | ||
| step(toolkit, parameters) | ||
| vertexRemoved(v, doNotCalculateExtents) |