Routing styles for edges routed by the EdgeRouter.
Type Details
- yfiles module
- layout-core
- yfiles-umd modules
- All layout modules, view-layout-bridge
- Legacy UMD name
- yfiles.router.EdgeRoutingStyle
See Also
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 integrated edge labeling is enabled, for edge labels a straight, non-curved segment where the label is placed will be inserted. All the settings of the PreferredPlacementDescriptor are supported. Similarly, for the minimum first segment length and the minimum last segment length, 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 argument to EdgeRouterEdgeRoutingStyle.
Parameters
A map of options to pass to the method.
- value - EdgeRouterEdgeRoutingStyle
- The value to convert to EdgeRouterEdgeRoutingStyle.
Returns
- ↪EdgeRouterEdgeRoutingStyle
- Either
value
if it is already a EdgeRouterEdgeRoutingStyle or an appropriate converted value.