blockly > ConnectionDB > getNeighbours

ConnectionDB.getNeighbours() メソッド

指定された接続への付近にあるすべての接続を検索します。この関数はバンピングに使用されるため、型チェックは適用されません。

署名:

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

パラメータ

パラメータ 種類 説明
接続 RenderedConnection 近傍を返す必要がある接続。
maxRadius 数値 別の接続への最大半径。

戻り値:

RenderedConnection[]

接続のリスト。