documentationfor yFiles for HTML 3.0.0.2

LayoutStageStack

Manages a collection of layout stages that can be executed in a stack-wise manner.

Inheritance Hierarchy
LayoutStageStack

Remarks

The LayoutStageStack class manages a list of layout stages, enabling the composition of complex layout processes by stacking multiple stages together. The stages are executed in the order they are stacked.

It provides various methods to add, remove, and retrieve stages, such as append and prepend, which add stages to the end or beginning of the stack, respectively. The stack can be directly accessed via the stack property for more advanced manipulations, like reordering or clearing all stages.

Additionally, you can add preprocessing and post-processing steps to the stack using addPreprocessor and addPostprocessor, allowing you to inject custom logic before or after the core layout algorithm is applied.

Type Details

yFiles module
algorithms

See Also

Constructors

Properties

Methods

Static Methods