Skip to main content

blockly > serialization > blocks

serialization.blocks namespace

Classes

Class

Description

BlockSerializer

Serializer for saving and loading block state.

Functions

Function

Description

[append(state, workspace, { recordUndo })](/reference/js/blockly.serialization_namespace.blocks_namespace.append_1_function)

Loads the block represented by the given state into the given workspace.

[save(block, { addCoordinates, addInputBlocks, addNextBlocks, doFullSerialization, saveIds, })](/reference/js/blockly.serialization_namespace.blocks_namespace.save_1_function)

Returns the state of the given block as a plain JavaScript object.

Interfaces

Interface

Description

ConnectionState

Represents the state of a connection.

State

Represents the state of a given block.