Stay organized with collections Save and categorize content based on your preferences.

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.
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.