blockly > ConnectionDB > getNeighbours
ConnectionDB.getNeighbours() 方法
尋找附近所有與指定連線的連線。這項功能不會用於類型檢查,因為這項功能用於串場廣告。
Signature:
getNeighbours(connection: RenderedConnection, maxRadius: number): RenderedConnection[];
參數
參數 | 類型 | 說明 |
---|---|---|
連結 | RenderedConnection | 應傳回的鄰點連線。 |
maxRadius | 號碼 | 另一個連線的最大半徑。 |
傳回:
RenderedConnection[]
連線清單。