Stay organized with collections
Save and categorize content based on your preferences.
blockly > serialization > priorities
serialization.priorities namespace
Variables
Variable |
Description |
BLOCKS |
The priority for deserializing blocks. |
PROCEDURES |
The priority for deserializing variable data. |
VARIABLES |
The priority for deserializing variables. |
WORKSPACE_COMMENTS |
The priority for deserializing workspace comments. |
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."],[[["The `serialization.priorities` namespace in Blockly manages the order in which different workspace elements like blocks, variables, procedures, and workspace comments are deserialized."],["This namespace provides specific variables, namely `BLOCKS`, `PROCEDURES`, `VARIABLES`, and `WORKSPACE_COMMENTS`, each representing the priority for deserializing their respective element types."],["By assigning priorities, Blockly ensures that essential workspace components are loaded in a specific order during deserialization, maintaining workspace integrity."]]],["The `serialization.priorities` namespace defines the order of deserialization for different elements in a Blockly workspace. The key variables are: `BLOCKS`, `PROCEDURES`, `VARIABLES`, and `WORKSPACE_COMMENTS`. Each variable represents a distinct element type and its corresponding deserialization priority. Specifically, `BLOCKS` dictates the block priority, `PROCEDURES` handles variable data, `VARIABLES` manages variables, and `WORKSPACE_COMMENTS` determines the priority of comments within the workspace.\n"]]