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 obtained when sorting the nodes according to their x-coordinate.
An instance of this class can be set to HierarchicalLayout using property fixedElementsSequencer and fromScratchSequencer respectively.
Type Details
- yFiles module
- algorithms
Constructors
Creates a new FromSketchSequencer instance.
Methods
Calculates the sequence of the nodes within each layer using the nodes' coordinates.
Remarks
This method is called by HierarchicalLayoutCore 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
- layoutContext - HierarchicalLayoutContext
- The HierarchicalLayoutContext providing access to context information about the nodes and edges of the graph, as well as the ItemFactory used for creating and destroying helper structures.