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.