f0dfbfc3d7
RequirementsTest / build (windows-latest, 3.9) (push) Has been cancelled
RequirementsTest / build (macos-latest, 3.9) (push) Has been cancelled
RequirementsTest / build (ubuntu-latest, 3.9) (push) Has been cancelled
CodeQL / Analyze (javascript) (push) Has been cancelled
CodeQL / Analyze (python) (push) Has been cancelled
Pylint / build (3.9) (push) Has been cancelled
37 lines
1.1 KiB
JavaScript
37 lines
1.1 KiB
JavaScript
/* eslint-disable */
|
|
;(function(root, factory) {
|
|
if (typeof define === 'function' && define.amd) { // AMD
|
|
define(['./core-browser', './msg/en', './blocks', './javascript'], factory);
|
|
} else if (typeof exports === 'object') { // Node.js
|
|
module.exports = factory(require('./core-browser'), require('./msg/en'), require('./blocks'), require('./javascript'));
|
|
} else { // Browser
|
|
root.Blockly = factory(root.Blockly, root.En, root.BlocklyBlocks, root.BlocklyJS);
|
|
}
|
|
}(this, function(Blockly, En, BlocklyBlocks, BlocklyJS) {
|
|
/**
|
|
* @license
|
|
* Copyright 2019 Google LLC
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
|
|
/**
|
|
* @fileoverview Blockly module for the browser. This includes Blockly core
|
|
* and built in blocks, the JavaScript code generator and the English block
|
|
* localization files.
|
|
*/
|
|
|
|
/* eslint-disable */
|
|
'use strict';
|
|
|
|
// Include the EN Locale by default.
|
|
Blockly.setLocale(En);
|
|
|
|
Blockly.Blocks = Blockly.Blocks || {};
|
|
Object.keys(BlocklyBlocks).forEach(function (k) {
|
|
Blockly.Blocks[k] = BlocklyBlocks[k];
|
|
});
|
|
|
|
Blockly.JavaScript = BlocklyJS;
|
|
return Blockly;
|
|
}));
|