blockly > 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)。