This class is a ISequencer implementation that determines the sequence of nodes on the same layer based on a given comparison function.
Implements
- I
Members
No filters for this type
Constructors
Creates a new instance of GivenSequenceSequencer using a given comparison for the sequencing.
Creates a new instance of GivenSequenceSequencer using a given comparison for the sequencing.
Parameters
- nodeComparator?: function(LayoutNode, LayoutNode): number
- An optional comparison delegate used to determine the order of the nodes in the sequence.
Properties
Gets or sets the comparison function used by this GivenSequenceSequencer to determine the sequence of the nodes.
Gets or sets the comparison function used by this GivenSequenceSequencer to determine the sequence of the nodes.
final
Property Value
A comparison function to order nodes.
Default Value
The default value is: null
No comparison function is specified.
Methods
Calculates the sequence of the nodes within the layers in the given layoutContext based on the specified sequenceComparator.
Calculates the sequence of the nodes within the layers in the given
layoutContext based on the specified sequenceComparator.This method is called by HierarchicalLayoutCore during the sequencing phase and finally writes back the calculated sequence using the setNodeOrder method.
Parameters
- graph: LayoutGraph
- The input graph
- layoutContext: HierarchicalLayoutContext
- The HierarchicalLayoutContext providing context information about the nodes and edges of the graph, as well as the ItemFactory used for creating and destroying helper structures.