blockly > InsertionMarkerPreviewer
InsertMarkerPreviewer 類別
Signature:
export declare class InsertionMarkerPreviewer implements IConnectionPreviewer
建構函式
建構函式 | 修飾符 | 說明 |
---|---|---|
(buildor)(draggedBlock) | 建構 InsertionMarkerPreviewer 類別的新例項 |
方法
方法 | 修飾符 | 說明 |
---|---|---|
dispose() | 處置由這個連線預覽工具保留的任何參考資料。 | |
hidePreview() | 隱藏目前顯示的任何預覽畫面。 | |
previewConnection(draggedConn, staticConn) | 顯示連線預覽,在 draggedCon 連線至 staticCon 時,系統沒有與任何區塊相關聯的區塊。 | |
previewReplacement(draggedConn, staticConn, replacedBlock) | 顯示 draggedCon 連線至 staticCon 的連線預覽畫面,取代 replaceBlock (目前連線至 staticCon)。 |