blockly > IConnectionPreviewer

IConnectionPreviewer interface

Displays visual "previews" of where a block will be connected if it is dropped.

Signature:

export interface IConnectionPreviewer 

Methods

Method 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).