Skip to main content

Home > blockly > IConnectionChecker > doDragChecks

IConnectionChecker.doDragChecks() method

Check whether this connection can be made by dragging.

Signature:

doDragChecks(a: RenderedConnection, b: RenderedConnection, distance: number): boolean;

Parameters

ParameterTypeDescription
aRenderedConnectionConnection to compare.
bRenderedConnectionConnection to compare against.
distancenumberThe maximum allowable distance between connections.

Returns:

boolean

True if the connection is allowed during a drag.