blockly >ConnectionDB >getNeighbours

ConnectionDB.getNeighbours() 方法

查找与指定连接相邻的所有连接。类型检查不适用,因为此函数用于排名提升。

Signature:

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

参数

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

返回

RenderedConnection[]

连接列表。