Type Details
- yfiles module
- layout-core
- yfiles-umd modules
- All layout modules, view-layout-bridge
- Legacy UMD name
- yfiles.tree.ChildAlignmentPolicy
See Also
Constants
Alignment policy for aligning child nodes such that the distances to their parent are kept short and drawings can potentially become more compact.
Remarks
This policy realizes the exact same child alignment as PLAIN if there are no edge labels associated with edges going to child nodes or if integrated edge labeling is disabled.
If edge labels need to be considered, edge labels will be added to the convex hull of the child node to which the edge connects. This means that child nodes connected with a labeled edge will be aligned at the border where the edge label begins. In consequence, edge labels will be aligned with neighboring edge labels as well as neighboring child nodes if a child node has no edge label at its incoming edge.
This alignment strategy is especially effective if large edge labels need to be considered while drawings should still be compact and distances from parent to child nodes short.
See Also
Sample Graphs
Alignment policy to align child nodes rooted at the same parent such that the border of their convex hull has the same distance to the parent node's center.
See Also
Sample Graphs
Alignment policy to align child nodes rooted at the same parent such that each child has the same center-to-center distance to the parent node.
Remarks
See Also
Sample Graphs
Alignment policy to align child nodes rooted at the same parent using a mixture of the other policies and aiming to achieve symmetry and compactness at the same time.
Remarks
See Also
Static Methods
Converts the argument to ChildAlignmentPolicy.
Parameters
A map of options to pass to the method.
- value - ChildAlignmentPolicy
- The value to convert to ChildAlignmentPolicy.
Returns
- ↪ChildAlignmentPolicy
- Either
value
if it is already a ChildAlignmentPolicy or an appropriate converted value.