Type Details
- yfiles module
- layout-core
- yfiles-umd modules
- All layout modules, view-layout-bridge
- Legacy UMD name
- yfiles.tree.LeafPlacement
See Also
Constants
A policy for placing the leaf nodes in a dendrogram-like fashion.
Remarks
See Also
Sample Graphs
A policy for placing the leaf nodes in a stack-like fashion with balanced stack heights.
Remarks
In this context, a stack-like fashion means that leaf nodes that connect to the same parent node are placed one upon the other, resulting in horizontally compact layouts.
This policy tries to balance stack heights, i.e., for each subtree that consists only of leaf nodes, LEAVES_STACKED_RIGHT or LEAVES_STACKED_LEFT_AND_RIGHT will be used depending on the number of leaves in the subtree.
See Also
Sample Graphs
A policy for placing the leaf nodes in a stack-like fashion using a single stack left.
Remarks
In this context, a stack-like fashion means that leaf nodes that connect to the same root node are placed one upon the other, resulting in horizontally compact layouts.
This policy uses a single stack that lies to the left relative to the center of the parent node.
See Also
Sample Graphs
A policy for placing the leaf nodes in a stack-like fashion using two stacks.
Remarks
In this context, a stack-like fashion means that leaf nodes that connect to the same root node are placed one upon the other, resulting in horizontally compact layouts.
This policy distributes leaf nodes among two stacks, one to the left and one to the right relative to the center of the parent node.
See Also
Sample Graphs
A policy for placing the leaf nodes in a stack-like fashion using a single stack right.
Remarks
In this context, a stack-like fashion means that leaf nodes that connect to the same root node are placed one upon the other, resulting in horizontally compact layouts.
This policy uses a single stack that lies to the right relative to the center of the parent node.
See Also
Sample Graphs
A policy for placing the leaf nodes with the same parent in the same layer.
Remarks
For example, siblings are being placed on a horizontal line in a top-to-bottom or in a bottom-to-top layout.
This policy produces vertically compact layouts.
See Also
Sample Graphs
Static Methods
Converts the argument to LeafPlacement.
Parameters
A map of options to pass to the method.
- value - LeafPlacement
- The value to convert to LeafPlacement.
Returns
- ↪LeafPlacement
- Either
value
if it is already a LeafPlacement or an appropriate converted value.