Skip to main content

Home > blockly > InsertionMarkerPreviewer > serializeBlockToInsertionMarker

InsertionMarkerPreviewer.serializeBlockToInsertionMarker() method

Transforms the given block into a JSON representation used to construct an insertion marker.

Signature:

protected serializeBlockToInsertionMarker(block: BlockSvg): blocks.State;

Parameters

ParameterTypeDescription
blockBlockSvgThe block to serialize and use as an insertion marker.

Returns:

blocks.State

A JSON-formatted string corresponding to a serialized representation of the given block suitable for use as an insertion marker.