Specifies how ports are positioned on nodes for incoming and outgoing edges in a SeriesParallelLayout.
Type Details
- yFiles module
- algorithms
Constants
All ports are reset to the center of their nodes, and the edges leave the nodes on the top/bottom.
Remarks
See Also
Sample Graphs
All ports are reset to the center of their nodes, and the edges may enter and leave the nodes on all sides.
Remarks
See Also
Sample Graphs
The ports of incoming and outgoing edges are distributed evenly and enter and leave the nodes in the flow direction.
Remarks
In the default flow direction from top to bottom incoming edges enter the node on the top, and outgoing edges leave the node on the bottom.
The source ports of edges without LayoutPortCandidates will be distributed at the sides of their source and target nodes. Edges with free LayoutPortCandidates are distributed at the side of the nodes which is specified in the LayoutPortCandidate.
Grouped edges will get the same port location.
See Also
Sample Graphs
Ports are assigned to the sides of the node, and ports at the same side are distributed evenly.
Remarks
In the default flow direction from top to bottom, the direction in which the edges enter and leave the nodes is determined as follows. If an outgoing edge can be drawn straight (without any bends) or it is the only outgoing edge of its source, it leaves its source at the bottom. Otherwise, it leaves its source on the right or left side. Similarly, if an incoming edge can be drawn straight (without any bends) or it is the only incoming edge of its target, it enters its target at the top. Otherwise, it enters its target on the right or left side.
The source ports of edges without LayoutPortCandidates will be distributed at the sides of their source and target nodes. Edges with free LayoutPortCandidates are distributed at the side of the nodes which is specified in the LayoutPortCandidate.
Grouped edges will get the same port location.
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 - SeriesParallelLayoutPortAssignmentMode
- The value to convert to an enum constant.
Returns
- ↪SeriesParallelLayoutPortAssignmentMode
- 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 - SeriesParallelLayoutPortAssignmentMode
- 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.