mirror of
https://github.com/google/blockly.git
synced 2026-01-11 10:57:07 +01:00
* Add basic attribute tests * Add basic block serialization * Add more attribute tests * Change save to use options dictionary * Add obeying save options * Add test for data attribute * Add saving data tag * Move to ES6 syntax * Fixup move to es6 syntax * Declare module * Format and lint * Add docs * Add returning null on insertion markers * Fixup for move to module * Switch to other function declarations * Cleanup for finalized style * Fix lint and types * Export State def * Switch disabled=true to enabled=false
19 lines
407 B
JavaScript
19 lines
407 B
JavaScript
/**
|
|
* @license
|
|
* Copyright 2021 Google LLC
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
|
|
/**
|
|
* @fileoverview Contains top-level functions for serialization of the workspace
|
|
* to JavaScript objects.
|
|
*/
|
|
'use strict';
|
|
|
|
/**
|
|
* The top level namespace for JavaScript Object serialization.
|
|
* @namespace Blockly.serialization
|
|
*/
|
|
goog.module('Blockly.serialization');
|
|
goog.module.declareLegacyNamespace();
|