Members
Constants
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 EdgeRouter.edgeLabelPlacement is set to EdgeLabelPlacement.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 EdgeRouterEdgeDescriptor.minimumFirstSegmentLength and the EdgeRouterEdgeDescriptor.minimumLastSegmentLength, a straight edge segment is created to fulfill the constraints.
Sample Graphs
-1 and 1.Sample Graphs
Static Methods
Converts the given argument to an enum constant of this enum type.
Parameters
- value: EdgeRouterRoutingStyleconversion
- The value to convert to an enum constant.
Return Value
- EdgeRouterRoutingStyle
- The enum constant that corresponds to the given argument.
Returns the name of the given enum constant.
Parameters
- value: EdgeRouterRoutingStyle
- 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.