Migrate core/interfaces/i_bounded_element.js to goog.module

This commit is contained in:
kozbial
2021-07-16 12:05:21 -07:00
committed by Monica Kozbial
parent 88525f5ab4
commit e922d2a831
2 changed files with 8 additions and 5 deletions

View File

@@ -11,7 +11,8 @@
'use strict';
goog.provide('Blockly.IBoundedElement');
goog.module('Blockly.IBoundedElement');
goog.module.declareLegacyNamespace();
goog.requireType('Blockly.utils.Rect');
@@ -20,7 +21,7 @@ goog.requireType('Blockly.utils.Rect');
* A bounded element interface.
* @interface
*/
Blockly.IBoundedElement = function() {};
const IBoundedElement = function() {};
/**
* Returns the coordinates of a bounded element describing the dimensions of the
@@ -28,11 +29,13 @@ Blockly.IBoundedElement = function() {};
* Coordinate system: workspace coordinates.
* @return {!Blockly.utils.Rect} Object with coordinates of the bounded element.
*/
Blockly.IBoundedElement.prototype.getBoundingRectangle;
IBoundedElement.prototype.getBoundingRectangle;
/**
* Move the element by a relative offset.
* @param {number} dx Horizontal offset in workspace units.
* @param {number} dy Vertical offset in workspace units.
*/
Blockly.IBoundedElement.prototype.moveBy;
IBoundedElement.prototype.moveBy;
exports = IBoundedElement;

View File

@@ -76,7 +76,7 @@ goog.addDependency('../../core/insertion_marker_manager.js', ['Blockly.Insertion
goog.addDependency('../../core/interfaces/i_accessibility.js', ['Blockly.IASTNodeLocation', 'Blockly.IASTNodeLocationSvg', 'Blockly.IASTNodeLocationWithBlock', 'Blockly.IKeyboardAccessible'], []);
goog.addDependency('../../core/interfaces/i_autohideable.js', ['Blockly.IAutoHideable'], ['Blockly.IComponent']);
goog.addDependency('../../core/interfaces/i_block_dragger.js', ['Blockly.IBlockDragger'], [], {'lang': 'es6', 'module': 'goog'});
goog.addDependency('../../core/interfaces/i_bounded_element.js', ['Blockly.IBoundedElement'], []);
goog.addDependency('../../core/interfaces/i_bounded_element.js', ['Blockly.IBoundedElement'], [], {'lang': 'es6', 'module': 'goog'});
goog.addDependency('../../core/interfaces/i_bubble.js', ['Blockly.IBubble'], ['Blockly.IContextMenu', 'Blockly.IDraggable']);
goog.addDependency('../../core/interfaces/i_component.js', ['Blockly.IComponent'], []);
goog.addDependency('../../core/interfaces/i_connection_checker.js', ['Blockly.IConnectionChecker'], []);