blockly > ConnectionDB > removeConnection

ConnectionDB.removeConnection() 方法

從資料庫中移除連線。必須存在於資料庫中。

Signature:

removeConnection(connection: RenderedConnection, yPos: number): void;

參數

參數 類型 說明
連結 RenderedConnection 要移除的連線。
yPos 號碼 用來尋找連線索引的 y 位置。

傳回:

void

例外狀況

{Error}:如果在資料庫中找不到連線,