blockly > InsertionMarkerPreviewer
InsertionMarkerPreviewer class
Signature:
export declare class InsertionMarkerPreviewer implements IConnectionPreviewer
Implements: IConnectionPreviewer
Constructors
| Constructor | Modifiers | Description |
|---|---|---|
| (constructor)(draggedBlock) | Constructs a new instance of the InsertionMarkerPreviewer class |
Methods
| Method | Modifiers | Description |
|---|---|---|
| dispose() | Dispose of any references held by this connection previewer. | |
| hidePreview() | Hide any previews that are currently displayed. | |
| previewConnection(draggedConn, staticConn) | Display a connection preview where the draggedCon connects to the staticCon, and no block is being relaced. | |
| previewReplacement(draggedConn, staticConn, replacedBlock) | Display a connection preview where the draggedCon connects to the staticCon, replacing the replacedBlock (currently connected to the staticCon). |