Represents a layout that sequentially executes multiple layout algorithms.
Remarks
The layout algorithms are executed one after the other in the order they are in the layouts list. Each algorithm runs independently and only affects the graph based on the changes made by previous algorithms.
Type Details
- yFiles module
- algorithms
Constructors
Initializes a new instance of the SequentialLayout class with an optional collection of layout algorithms.
Parameters
options - Object
A map of options to pass to the method.
A map of options to pass to the method.
- layouts - ILayoutAlgorithm
- An optional array of ILayoutAlgorithm to be added to the layout chain.
Properties
Gets the collection of layout algorithms that are executed sequentially.
Property Value
A list of layout algorithms.
Methods
Executes all layout algorithms in the chain sequentially.
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 on which the layouts are applied.