blockly > serialization > blocks

serialization.blocks namespace


Class Description
BlockSerializer Serializer for saving and loading block state.


Function Description
append(state, workspace, { recordUndo }) Loads the block represented by the given state into the given workspace.
save(block, { addCoordinates, addInputBlocks, addNextBlocks, doFullSerialization, saveIds, }) Returns the state of the given block as a plain JavaScript object.


Interface Description
ConnectionState Represents the state of a connection.
State Represents the state of a given block.