Skip to main content
BezierConnectorOptions
Options for CubicBezierConnector
NameTypeDescription
cssClass?stringOptional class to set on the element used to render the connector.
gap?numberDefines a number of pixels between the end of the connector and its anchor point. Defaults to zero.
hoverClass?stringOptional class to set on the element used to render the connector when the mouse is hovering over the connector.
loopbackDistance?numberWhen the connector's source and target is the same vertex, this is a measure of how far the control point will
be placed from the element. Defaults to 62 pixels
scale?numberWhere 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.
stub?numberStub defines a number of pixels that the connector travels away from its element before the connector's actual path begins.