Specifies how the PortPlacementStage corrects the edge paths after moving the ports to the locations specified by LayoutPortCandidates or NodePortCandidatess.
Type Details
- yFiles module
- algorithms
Constants
The edges are rerouted orthogonally within a specific area around their source/target nodes.
Remarks
Only the ports are moved, which results in a straight line segment between the first or last bend (if any) and the new ports.
Remarks
Ports are allowed to be located inside the bounds of the node they connect to if the side where the edge crosses the bounds still fulfills the side specified by the LayoutPortCandidates.
This policy does not introduce any new bends, if this is not required to satisfy constraints imposed by fixed port candidates.
Only the ports are moved, the same way as for MOVE_PORTS and additionally corrects the ports so that they are always placed on the node border even when they would visually already exit/enter the node on the correct side with respect to their LayoutPortCandidates.
Remarks
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 - RouteCorrectionPolicy
- The value to convert to an enum constant.
Returns
- ↪RouteCorrectionPolicy
- 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 - RouteCorrectionPolicy
- 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.