blockly > serialization > blocks > BlockSerializer
serialization.blocks.BlockSerializer class
Serializer for saving and loading block state.
Signature:
export declare class BlockSerializer implements ISerializer
Implements: ISerializer
Constructors
Constructor | Modifiers | Description |
|---|---|---|
Constructs a new instance of the |
Properties
Property | Modifiers | Type | Description |
|---|---|---|---|
number |
Methods
Method | Modifiers | Description |
|---|---|---|
Disposes of any blocks that exist on the workspace. | ||
Deserializes the blocks defined by the given state into the given workspace. | ||
Serializes the blocks of the given workspace. |