documentationfor yFiles for HTML 2.6

AspectRatioNodePlacer

This ITreeLayoutNodePlacer places the subtrees such that the overall aspect ratio of the arranged subtree will be close to a preferred aspect ratio.

Inheritance Hierarchy
NodePlacerBase
AspectRatioNodePlacer
Implemented Interfaces

Remarks

Layout Style

The aspect ratio describes the relation between width and height of the subtree. To achieve the desired aspect ratio, this ITreeLayoutNodePlacer divides the child SubtreeShapes into as much rows as needed. The edges are either routed along the rows or along the columns.

Aspect ratio 1

Aspect ratio 0.5

Aspect ratio 2

Default Values of Properties

aspectRatio1
fillStyleLEADING
horizontalfalseThe child nodes are placed in vertical columns.
horizontalDistance40
verticalDistance40

Type Details

yfiles module
layout-tree
yfiles-umd modules
layout-orthogonal-compact, layout-orthogonal, layout-tree, layout
Legacy UMD name
yfiles.tree.AspectRatioNodePlacer

See Also

Constructors

Properties

Methods

Fields