Defines root alignments for the SingleLayerSubtreePlacer, see property rootAlignment.
Members
No filters for this type
Constants
The root node is placed centered over its direct children. To determine the alignment, only layouts are considered. Node labels are not included although they are also contained in SubtreeShapes.
static
See Also
When using ORTHOGONAL as edgeRoutingStyle, this has the effect that the root is also centered with respect to the bus.
static
Sample Graphs
ShownSetting: Root node is center-aligned with respect to the ports at its children
See Also
Depending on the transformation, the root node is placed ahead of the combined bounds of all subtrees without labels.
static
Sample Graphs
ShownSetting: Root node is placed left of its children
See Also
Depending on the transformation, the root node is placed ahead of the combined bounds of all subtrees without labels. The bus connects directly at the root node.
If there are LayoutPortCandidates at source, the edge may bend inside the node to connect to the bus.
static
Sample Graphs
ShownSetting: Root node is placed on the bus and left of its children
See Also
Depending on the transformation, the root node is placed aligned with the bounds of its first subtree.
static
Sample Graphs
ShownSetting: Root node is left-aligned with the leftmost node
See Also
Depending on the transformation, the root node is placed aligned with the bounds of its last subtree.
static
Sample Graphs
ShownSetting: Root node is right-aligned with the leftmost node
See Also
Depending on the transformation, the root node is placed after the combined bounds of all subtrees without labels.
static
Sample Graphs
ShownSetting: Root node is placed right of its children
See Also
Depending on the transformation, the root node is placed after the combined bounds of all subtrees without labels. The bus connects directly at the root node.
If there are LayoutPortCandidates at source, the edge may bend inside the node to connect to the bus.
static
Sample Graphs
ShownSetting: Root node is placed on the bus and right of its children
See Also
Static Methods
Converts the given argument to an enum constant of this enum type.
Converts the given argument to an enum constant of this enum type.
Most notably, this method can convert an enum constant's name into the enum constant itself.
static
Parameters
- value: SingleLayerSubtreePlacerRootAlignment
- The value to convert to an enum constant.
Return Value
- SingleLayerSubtreePlacerRootAlignment
- The enum constant that corresponds to the given argument.
Returns the name of the given enum constant.
Returns the name of the given enum constant.
static
Parameters
- value: SingleLayerSubtreePlacerRootAlignment
- The numeric value of an enum constant.
Return Value
- 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.