Specifies the alignment policies for child nodes under the same parent in a TreeLayout.
Remarks
Type Details
- yFiles module
- algorithms
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 edgeLabelPlacement is not set to INTEGRATED.
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 given argument to an enum constant of this enum type.
Remarks
Parameters
A map of options to pass to the method.
- value - ChildAlignmentPolicy
- The value to convert to an enum constant.
Returns
- ↪ChildAlignmentPolicy
- The enum constant that corresponds to the given argument.
Returns the name of the given enum constant.
Parameters
A map of options to pass to the method.
- value - ChildAlignmentPolicy
- The numeric value of an enum constant.
Returns
- ↪string
- The name of the enum constant.
Throws
- Exception({ name: 'Error' })
- If this type is a flags enums, and the provided value doesn't correspond to a single enum constant, or if this enum type contains no constant of the given numeric value.