blockly >InsertionMarkerPreviewer
InsertMarkerPreviewer 类
Signature:
export declare class InsertionMarkerPreviewer implements IConnectionPreviewer
构造函数
| 构造函数 | 修饰符 | 说明 |
|---|---|---|
| (构造函数)(draggedBlock) | 构造 InsertionMarkerPreviewer 类的新实例 |
方法
| 方法 | 修饰符 | 说明 |
|---|---|---|
| dispose() | 处置此连接预览程序保留的所有引用。 | |
| hidePreview() | 隐藏当前显示的所有预览。 | |
| previewConnection(draggedConn, staticConn) | 在已拖动的 Con 连接到 staticCon 且没有重新关联任何块时显示连接预览。 | |
| previewReplacement(draggedConn, staticConn, replacedBlock) | 在 draggedCon 连接到 staticCon 时显示连接预览,并替换 replaceBlock(当前连接到 staticCon)。 |