mirror of
https://github.com/google/blockly.git
synced 2026-01-07 17:10:11 +01:00
* 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
35 lines
665 B
JavaScript
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;
|