Files
blockly/core/serialization/priorities.js
Beka Westberg 07057d087c feat: adds hooks for serializing plugins (#5276)
* Reformat registry tests

* Add tests for plugin hooks

* Add plugin hooks for serialization

* Switch PluginSerializer to IPluginSerializer

* fix: types

* fix: PR comments

* fix: tests

* cleanup: formatting

* fix: types

* feat: add respecting case in registry

* feat: add separate registry for serializers

* fix: rename serialiation registry alias

* fix: move serializer interface into interface dir
2021-09-20 13:08:35 -07:00

35 lines
665 B
JavaScript

/**
* @license
* Copyright 2021 Google LLC
* SPDX-License-Identifier: Apache-2.0
*/
/**
* @fileoverview Includes constants for the priorities of different plugin
* serializers. Higher priorities are deserialized first.
*/
'use strict';
/**
* The top level namespace for priorities of plugin serializers.
* @namespace Blockly.serialization.priorities
*/
goog.module('Blockly.serialization.priorities');
goog.module.declareLegacyNamespace();
/**
* The priority for deserializing variables.
* @type {number}
* @const
*/
exports.VARIABLES = 100;
/**
* The priority for deserializing blocks.
* @type {number}
* @const
*/
exports.BLOCKS = 50;