Specifies the method of port assignment for edges in a tree layout.
Remarks
Type Details
- yFiles module
- algorithms
Constants
A port assignment specifier which defines that all ports are placed at the center of the node or its border.
Remarks
If no LayoutPortCandidates are defined for an edge, its port is placed at the center of the node.
If LayoutPortCandidates are defined for the edges handled in this mode, the port will be placed at the center of a valid side of the node.
Sample Graphs
A port assignment specifier which defines that edges are distributed evenly on the side of their nodes.
Remarks
Port-grouped edges will use the same port coordinate and will be considered as a single edge when calculating the distribution. Port groups are specified using the TreeLayoutData<TNode,TEdge,TNodeLabel,TEdgeLabel> property ports.
The side of the node on which the edges are distributed can be specified using port candidates. Otherwise, the side is chosen based on the layoutOrientation.
See Also
Sample Graphs
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 - TreeLayoutPortAssignmentMode
- The value to convert to an enum constant.
Returns
- ↪TreeLayoutPortAssignmentMode
- 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 - TreeLayoutPortAssignmentMode
- 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.