E

CurveConnectionStyle

Enumeration to define how curved edge paths connect at the source and target side of the edge.

Members

No filters for this type

Constants

Curve connection style that keeps the port and the first/last segment that the layout algorithm would produce without curve routing.
static

Sample Graphs

ShownSetting: Curved edges with the ports kept as they are in a hierarchical layout

See Also

API
sourceCurveConnectionStyle, targetCurveConnectionStyle, sourceCurveConnectionStyle, targetCurveConnectionStyle, sourceCurveConnectionStyle, targetCurveConnectionStyle
Curve connection style that changes the part of a curved edge path such that the curves have a more organic-like and straight start or end.

The port location is specifically amended for the curve routing such that the connecting part of the curve can be routed directly into the required edge direction. This feature generates more direct and straighter routes that have fewer direction turns. In consequence, the resulting layouts may be more compact overall as less space for the routing is required.

The side where the port ends up at the source/target node may be changed with respect to the side the layout algorithm initially chooses. It is not changed if there are port constraints defined for it (i.e. LayoutPortCandidates). This includes implicit constraints for the port due to port and edge grouping. Similarly, this style can also not be applied if there is an edge label or node margins that require the connecting segment to remain as it is.

In contrast to KEEP_PORT, this style does not guarantee to respect the specified minimum first and last segment length settings.

static

Sample Graphs

ShownSetting: Organic-like curve connections in a hierarchical layout

See Also

API
sourceCurveConnectionStyle, targetCurveConnectionStyle, sourceCurveConnectionStyle, targetCurveConnectionStyle, sourceCurveConnectionStyle, targetCurveConnectionStyle

Static Methods

Converts the given argument to an enum constant of this enum type.
Most notably, this method can convert an enum constant's name into the enum constant itself.
static

Parameters

value: CurveConnectionStyle
The value to convert to an enum constant.

Return Value

CurveConnectionStyle
The enum constant that corresponds to the given argument.
Returns the name of the given enum constant.
static

Parameters

value: CurveConnectionStyle
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.