browser.js 930 B

123456789101112131415161718192021222324252627282930
  1. /* eslint-disable */
  2. ;(function(root, factory) {
  3. if (typeof define === 'function' && define.amd) { // AMD
  4. define(['./core-browser', './msg/en', './blocks', './javascript'], factory);
  5. } else if (typeof exports === 'object') { // Node.js
  6. module.exports = factory(require('./core-browser'), require('./msg/en'), require('./blocks'), require('./javascript'));
  7. } else { // Browser
  8. root.Blockly = factory(root.Blockly, root.En, root.BlocklyBlocks, root.BlocklyJS);
  9. }
  10. }(this, function(Blockly, En, BlocklyBlocks, BlocklyJS) {
  11. /**
  12. * @license
  13. * Copyright 2019 Google LLC
  14. * SPDX-License-Identifier: Apache-2.0
  15. */
  16. /**
  17. * @fileoverview Blockly module for the browser. This includes Blockly core
  18. * and built in blocks, the JavaScript code generator and the English block
  19. * localization files.
  20. */
  21. /* eslint-disable */
  22. 'use strict';
  23. // Include the EN Locale by default.
  24. Blockly.setLocale(En);
  25. return Blockly;
  26. }));
粤ICP备19079148号