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

Parameter Type Description
draggedConn RenderedConnection The connection on the block stack being dragged.
staticConn RenderedConnection The connection not being dragged that we are connecting to.

Returns:

void