封鎖 >InsertionMarkerPreviewer

InsertMarkerPreviewer 類別

Signature:

export declare class InsertionMarkerPreviewer implements IConnectionPreviewer 

實作: IConnectionPreviewer

建構函式

建構函式 修飾符 說明
(建構函式)(draggedBlock) 建構 InsertionMarkerPreviewer 類別的新例項

方法

方法 修飾符 說明
dispose() 丟棄這個連線預覽器保留的所有參照。
hidePreview() 隱藏目前顯示的所有預覽畫面。
previewConnection(draggedConn, staticConn) 顯示連線預覽畫面,其中 DraggedCon 連線至 staticCon,且未連結至任何區塊。
previewReplacement(draggedConn, staticConn, replacedBlock) 顯示連線預覽畫面,其中 DraggedCon 會連線至 staticCon,並取代 replaceBlock (目前連結至 staticCon)。