Type Details
- yfiles module
- layout-core
- yfiles-umd modules
- All layout modules, view-layout-bridge
- Legacy UMD name
- yfiles.tree.ChildOrderingPolicy
See Also
Constants
Child ordering policy which orders child nodes depending on their subtree size such that large subtrees are placed next to small ones in order to save space.
Remarks
The actual area of a subtree is used as the subtree size. The smallest subtree is placed next to the largest subtree, followed by the second smallest subtree and so on. This way, drawings can become more compact, because the adjacent placement of large subtrees is avoided (which would require edges to become longer for subtrees to fit next to each other).
See Also
Sample Graphs
Child ordering policy which sorts the child nodes according to their wedge angles.
Remarks
The node with the greatest angle gets median position in the sorting order. The smaller the wedges, the farther away a node will be placed from the median position. Using this policy, the produced results are often more symmetric.
See Also
Sample Graphs
Static Methods
Converts the argument to ChildOrderingPolicy.
Parameters
options - Object
A map of options to pass to the method.
A map of options to pass to the method.
- value - ChildOrderingPolicy
- The value to convert to ChildOrderingPolicy.
Returns
- ↪ChildOrderingPolicy
- Either
value
if it is already a ChildOrderingPolicy or an appropriate converted value.