Skip to main content

blockly > dragging > BlockDragStrategy > findTraversalCandidate

dragging.BlockDragStrategy.findTraversalCandidate() method

Get the nearest valid candidate connection in traversal order.

Signature:

findTraversalCandidate(delta: Coordinate): ConnectionCandidate | null;

Parameters

Parameter

Type

Description

delta

Coordinate

The distance the block has moved since this drag began.

Returns:

ConnectionCandidate | null

A candidate connection and radius, or null if none was found.