documentationfor yFiles for HTML 2.6

CompactNodePlacer

The CompactNodePlacer produces a compact placement of the children.

Inheritance Hierarchy
NodePlacerBase
CompactNodePlacer
Implemented Interfaces

Remarks

Layout Style

This ITreeLayoutNodePlacer uses a dynamic optimization approach that chooses a placement strategy of the children of the associated local root such that the overall result is compact with respect to a specified aspect ratio. The set of applied strategies is predefined and cannot be customized. A node can either be a normal tree node or an assistant node, in which case the AssistantNodePlacer is chosen automatically (i.e., you shouldn't explicitly map nodes to instances of AssistantNodePlacer but mark them by means of key ASSISTANT_NODE_DP_KEY).

All nodes are associated with an instance of CompactNodePlacer which yields a compact overall layout using different placement strategies.

Default Values of Properties

horizontalDistance20
preferredAspectRatio1
verticalDistance20

Type Details

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

See Also

This placer always produces orthogonal edge routes and doesn't support port constraints, port candidates and critical edges.
For larger graphs, the required runtime may be much higher than that of other ITreeLayoutNodePlacer implementations.

Constructors

Properties

Methods

Fields

Constants