This interface is used by HierarchicLayoutCore to calculate the order of the nodes within each layer.
Inheritance Hierarchy
Remarks
Implementations are used during the second phase of the hierarchic layout process and can be set using method fixedElementsSequencer or fromScratchSequencer).
Type Details
- yfiles module
- layout-hierarchic
- yfiles-umd modules
- layout-familytree, layout-hierarchic, layout-radial, layout
- Legacy UMD name
- yfiles.hierarchic.ISequencer
See Also
HierarchicLayoutCore.sequencer,
HierarchicLayout.fixedElementsSequencer,
HierarchicLayout.fromScratchSequencer
Methods
sequenceNodeLayers
(graph: LayoutGraph, layers: ILayers, ldp: ILayoutDataProvider, itemFactory: IItemFactory)Calculates the sequence of the nodes within each layer.
Remarks
This method is called by HierarchicLayoutCore during the second phase and finally writes back the calculated sequence using the setNodeOrder method.
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 containing the elements in the layering
- ldp - ILayoutDataProvider
- the ILayoutDataProvider implementation which provides access to the INodeData and IEdgeData instances
- itemFactory - IItemFactory
- the IItemFactory used temporarily for modifying the graph instance