mirror of
https://github.com/google/blockly.git
synced 2026-01-14 20:37:10 +01:00
Migrate core/interfaces/i_bounded_element.js to goog.module
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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'], []);
|
||||
|
||||
Reference in New Issue
Block a user