Skip to main content

Home > blockly > InsertionMarkerPreviewer

InsertionMarkerPreviewer class

Signature:

export declare class InsertionMarkerPreviewer implements IConnectionPreviewer 

Implements: IConnectionPreviewer

Constructors

ConstructorModifiersDescription
(constructor)(draggedBlock)Constructs a new instance of the InsertionMarkerPreviewer class

Methods

MethodModifiersDescription
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).
serializeBlockToInsertionMarker(block)protectedTransforms the given block into a JSON representation used to construct an insertion marker.