blockly > ConnectionChecker > doDragChecks

ConnectionChecker.doDragChecks() method

Check whether this connection can be made by dragging.

Signature:

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

Parameters

Parameter Type Description
a RenderedConnection Connection to compare (on the block that's being dragged).
b RenderedConnection Connection to compare against.
distance number The maximum allowable distance between connections.

Returns:

boolean

True if the connection is allowed during a drag.