Skip to main content

Home > blockly > serialization > blocks

serialization.blocks namespace

Classes

ClassDescription
BlockSerializerSerializer for saving and loading block state.

Functions

FunctionDescription
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.

Interfaces

InterfaceDescription
ConnectionStateRepresents the state of a connection.
StateRepresents the state of a given block.