Skip to main content

Home > blockly > InsertionMarkerPreviewer > previewConnection

InsertionMarkerPreviewer.previewConnection() method

Display a connection preview where the draggedCon connects to the staticCon, and no block is being relaced.

Signature:

previewConnection(draggedConn: RenderedConnection, staticConn: RenderedConnection): void;

Parameters

ParameterTypeDescription
draggedConnRenderedConnectionThe connection on the block stack being dragged.
staticConnRenderedConnectionThe connection not being dragged that we are connecting to.

Returns:

void