Routing styles for edges routed by the EdgeRouter.
Type Details
- yFiles module
- algorithms
Constants
A routing style constant specifying that the edge should be curved.
Remarks
Curved edges are constructed using cubic bezier splines. As for all routing styles, overlaps with other elements are avoided. If there is very little space for a smooth curve, it can happen that the resulting path remains orthogonal. Therefore, the curved routing style does not produce optimal results for input graphs that offer little space for the edge routes.
When edgeLabelPlacement is set to INTEGRATED, for edge labels a straight, non-curved segment where the label is placed will be inserted. All the settings of the EdgeLabelPreferredPlacement are supported. Similarly, for the minimumFirstSegmentLength and the minimumLastSegmentLength, a straight edge segment is created to fulfill the constraints.
Sample Graphs
A routing style constant specifying that the edge should be octilinear.
Remarks
-1
and 1
.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 - EdgeRouterRoutingStyle
- The value to convert to an enum constant.
Returns
- ↪EdgeRouterRoutingStyle
- 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 - EdgeRouterRoutingStyle
- 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.