Stay organized with collections
Save and categorize content based on your preferences.
blockly > serialization > workspaceComments
Classes
Functions
Interfaces
Interface |
Description |
State |
|
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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-09-18 UTC."],[[["\u003cp\u003eThe \u003ccode\u003eserialization.workspaceComments\u003c/code\u003e namespace provides tools for saving and loading the state of comments on a Blockly workspace.\u003c/p\u003e\n"],["\u003cp\u003eIt includes a serializer class, \u003ccode\u003eWorkspaceCommentSerializer\u003c/code\u003e, for managing the serialization process.\u003c/p\u003e\n"],["\u003cp\u003eKey functions allow for appending comments to a workspace (\u003ccode\u003eappend\u003c/code\u003e) and serializing comment state to JSON (\u003ccode\u003esave\u003c/code\u003e).\u003c/p\u003e\n"],["\u003cp\u003eAn interface, \u003ccode\u003eState\u003c/code\u003e, defines the structure for storing and manipulating workspace comment data.\u003c/p\u003e\n"]]],[],null,["[blockly](./blockly.md) \\\u003e [serialization](./blockly.serialization_namespace.md) \\\u003e [workspaceComments](./blockly.serialization_namespace.workspacecomments_namespace.md)\n\nserialization.workspaceComments namespace\n\nClasses\n\n| Class | Description |\n|---------------------------------------------------------------------------------------------------------------------------------|------------------------------------------------------------|\n| [WorkspaceCommentSerializer](./blockly.serialization_namespace.workspacecomments_namespace.workspacecommentserializer_class.md) | Serializer for saving and loading workspace comment state. |\n\nFunctions\n\n| Function | Description |\n|---------------------------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------|\n| [append(state, workspace, { recordUndo })](./blockly.serialization_namespace.workspacecomments_namespace.append_1_function.md) | Appends the comment defined by the given state to the given workspace. |\n| [save(comment, { addCoordinates, saveIds, })](./blockly.serialization_namespace.workspacecomments_namespace.save_1_function.md) | Serializes the state of the given comment to JSON. |\n\nInterfaces\n\n| Interface | Description |\n|-------------------------------------------------------------------------------------------|-------------|\n| [State](./blockly.serialization_namespace.workspacecomments_namespace.state_interface.md) | |"]]