Skip to main content
Version: 4.3

ValidateConnectionParams

Context handed to a ValidateConnection callback (and to the validate option of CanConnectOptions) while the user drags a link end. Describes both ends of the pending connection along with the paper and graph it lives in.

Properties

endType

readonly endType: LinkEnd;

Which end the user is dragging: 'source' or 'target'.


graph

readonly graph: Graph;

The graph the link belongs to.


paper

readonly paper: Paper;

The paper the link is being drawn on.


source

readonly source: ConnectionEnd;

The source end of the pending connection.


target

readonly target: ConnectionEnd;

The target end of the pending connection.

Stay in the know

Be where thousands of diagramming enthusiasts meet

Star us on GitHub