blockly > ConnectionDB > getNeighbours

ConnectionDB.getNeighbours() 方法

查找与给定连接的所有附近连接。类型检查不适用,因为此函数用于触碰。

Signature:

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

参数

参数 类型 说明
连接 RenderedConnection 应返回其相邻的连接。
maxRadius number 到另一个连接的最大半径。

返回

RenderedConnection[]

连接列表。