mirror of
https://github.com/google/blockly.git
synced 2026-01-07 17:10:11 +01:00
chore: named exports for block* files (#5512)
* chore: named export for block.js * chore: named export for block_drag_surface.js * chore: named export for block_dragger.js * chore: named export for block_svg.js * Fix import ordering * chore: fix imports using requireType * Remove extra require
This commit is contained in:
@@ -13,7 +13,6 @@
|
||||
goog.module('Blockly.BlockSvg');
|
||||
|
||||
const ASTNode = goog.require('Blockly.ASTNode');
|
||||
const Block = goog.require('Blockly.Block');
|
||||
/* eslint-disable-next-line no-unused-vars */
|
||||
const BlockRenderingDebug = goog.requireType('Blockly.blockRendering.Debug');
|
||||
/* eslint-disable-next-line no-unused-vars */
|
||||
@@ -67,6 +66,7 @@ const internalConstants = goog.require('Blockly.internalConstants');
|
||||
const object = goog.require('Blockly.utils.object');
|
||||
const userAgent = goog.require('Blockly.utils.userAgent');
|
||||
const utils = goog.require('Blockly.utils');
|
||||
const {Block} = goog.require('Blockly.Block');
|
||||
/** @suppress {extraRequire} */
|
||||
goog.require('Blockly.Events.BlockMove');
|
||||
/** @suppress {extraRequire} */
|
||||
@@ -1775,4 +1775,4 @@ BlockSvg.prototype.highlightShapeForInput = function(conn, add) {
|
||||
this.pathObject.updateShapeForInputHighlight(conn, add);
|
||||
};
|
||||
|
||||
exports = BlockSvg;
|
||||
exports.BlockSvg = BlockSvg;
|
||||
|
||||
Reference in New Issue
Block a user