Interface OrthogonalConnectorOptions

Options for an orthogonal connector.

interface OrthogonalConnectorOptions {
    alwaysRespectStubs?: boolean;
    cornerRadius?: number;
    cssClass?: string;
    gap?: number;
    hoverClass?: string;
    loopbackRadius?: number;
    midpoint?: number;
    recalcStrategy?: OrthogonalRecalcStrategy;
    slightlyWonky?: boolean;
    stub?: number;
    supportLegacyConnectorData?: boolean;
    vertexAvoidance?: boolean;
}

Hierarchy (view full)

Properties

alwaysRespectStubs?: boolean

Defaults to true, meaning always draw a stub of the desired length, even when the source and target elements are very close together.

cornerRadius?: number

Optional curvature of the corners in the connector. Defaults to 0.

cssClass?: string

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

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.

loopbackRadius?: number

For a loopback connection, the size of the loop.

midpoint?: number

The point to use as the halfway point between the source and target. Defaults to 0.5.

recalcStrategy?: OrthogonalRecalcStrategy

The strategy to use when recalculating the path of an orthogonal connector in response to a drag.

Deprecated

Introduced in 6.40.0 but from 7.x onwards only the 'modern' strategy will be supported.

slightlyWonky?: boolean

If true, and a cornerRadius is set, the lines are drawn in such a way that they look slightly hand drawn. This effect was something we stumbled across, ie. a mistake, but it was charming in its own way so we decided to leave it in as an option.

stub?: number

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

supportLegacyConnectorData?: boolean

Defaults to false. Use this flag if you are migrating from 2.x to 5.x and you have connector data stored in the 2.x format that you wish to load.

vertexAvoidance?: boolean

Whether or not to avoid vertices during path edits and, when using legacy recalc mode, when dragging vertices connected to an edited path. Defaults to true.

Deprecated

From 7.x onwards this flag will move from here to the orthogonal editor, as it will only apply when a user is making path edits with the mouse.

Version :