Interface BezierConnectorOptions

Options for the Bezier connector.

interface BezierConnectorOptions {
    cssClass?: string;
    curviness?: number;
    gap?: number;
    hoverClass?: string;
    legacyPaint?: boolean;
    scale?: number;
    showLoopback?: boolean;
    stub?: number;
}

Hierarchy (view full)

Properties

cssClass?: string

Optional class to set on the element used to render the connector.

curviness?: number

A measure of how "curvy" the bezier is. In terms of maths what this translates to is how far from the curve the control points are positioned.

gap?: number

Defines a number of pixels between the end of the connector and its anchor point. Defaults to zero.

hoverClass?: string

Optional class to set on the element used to render the connector when the mouse is hovering over the connector.

legacyPaint?: boolean

Defaults to false. When true, the Bezier is painted with the legacy strategy, which is to position the major anchor for the bezier curve a fixed number of pixels from its associated anchor, whose value you can control via the curviness parameter.

scale?: number

Where to put the control point relative to the source/target. The number provided here should be a decimal, whose value defines the proportional distance between the source and target that the control point should be located at. The default value is 0.45. Larger values will make the Bezier curvier.

showLoopback?: boolean

Whether or not to show connections whose source and target is the same element.

stub?: number

Stub defines a number of pixels that the connector travels away from its element before the connector's actual path begins.

Version :