Skip to main content

Home > blockly > ConnectionDB > getNeighbours

ConnectionDB.getNeighbours() method

Find all nearby connections to the given connection. Type checking does not apply, since this function is used for bumping.

Signature:

getNeighbours(connection: RenderedConnection, maxRadius: number): RenderedConnection[];

Parameters

ParameterTypeDescription
connectionRenderedConnectionThe connection whose neighbours should be returned.
maxRadiusnumberThe maximum radius to another connection.

Returns:

RenderedConnection[]

List of connections.