documentationfor yFiles for HTML 3.0.0.3

AspectRatioComponentLayerAssigner

This class is a wrapper ILayerAssigner implementation that delegates the actual layering to a delegate ILayerAssigner object.

Inheritance Hierarchy
AspectRatioComponentLayerAssigner
Implemented Interfaces

Remarks

If the graph consists of multiple components, they will be identified and each of the components will be layered separately using the delegate ILayerAssigner instance. After that they will all be merged such that the desired aspect ratio is fulfilled best.

Sample output of AspectRatioComponentLayerAssigner with default settings on a graph with two connected components.

Default Values of Properties

considerNodeSizetrue
desiredAspectRatio1

Type Details

yFiles module
algorithms

See Also

For grouped graphs, the desired aspect ratio is also considered for each group node separately.

Constructors

Properties

Methods