Routing styles for edges routed by the HierarchicalLayout.
Type Details
- yFiles module
- algorithms
Constants
A routing style constant specifying that the edges should be curved.
Remarks
Curved edges are constructed using cubic bezier splines. As for other 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 is polyline or almost polyline with little curving. To reserve more space for curved edges, one can increase values of settings that influence the distances between graph elements, e.g., minimumDistance.
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 EdgeLabelPreferredPlacement are supported. Similarly, for the minimumFirstSegmentLength and the minimumLastSegmentLength , a straight edge segment is created to fulfill the constraints.
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 - HierarchicalLayoutRoutingStyle
- The value to convert to an enum constant.
Returns
- ↪HierarchicalLayoutRoutingStyle
- 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 - HierarchicalLayoutRoutingStyle
- 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.