blockly > serialization > workspaceComments > State
Signature:
export interface State
Properties
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-09-18 UTC.
[null,null,["Last updated 2024-09-18 UTC."],[[["The `serialization.workspaceComments.State` interface defines the properties needed to serialize or deserialize the state of a workspace comment in Blockly."],["All properties within this interface are optional, allowing for flexible representation of workspace comment states."],["Properties include basic attributes like `id`, `text`, dimensions (`width`, `height`), position (`x`, `y`), and behavioral flags (`collapsed`, `deletable`, `editable`, `movable`)."],["This interface is crucial for saving and loading the state of workspace comments, enabling persistence and restoration of user interactions."]]],[]]