This class calculates the sequence of the nodes within each layer using the nodes' coordinates.
Remarks
For layout orientation TOP_TO_BOTTOM, the order corresponds to that obtain when sorting the nodes according to their x-coordinate.
An instance of this class can be set to HierarchicLayout using method fixedElementsSequencer and fromScratchSequencer respectively.
Type Details
- yfiles module
- layout-hierarchic
- yfiles-umd modules
- layout-familytree, layout-hierarchic, layout-radial, layout
- Legacy UMD name
- yfiles.hierarchic.AsIsSequencer
Constructors
Creates a new AsIsSequencer instance.
Methods
sequenceNodeLayers
(graph: LayoutGraph, layers: ILayers, ldp: ILayoutDataProvider, itemFactory: IItemFactory)Calculates the sequence of the nodes within each layer using the nodes' coordinates.
Remarks
This method is called by HierarchicLayoutCore and finally writes back the calculated sequence using method setNodeOrder.
Parameters
options - Object
A map of options to pass to the method.
A map of options to pass to the method.
- graph - LayoutGraph
- the input graph
- layers - ILayers
- the given ILayers instance that defines the layering structure
- ldp - ILayoutDataProvider
- the ILayoutDataProvider containing information about the nodes and edges of the graph
- itemFactory - IItemFactory
- the IItemFactory used for creating and destroying helper structures