Files
blockly/core/interfaces/i_bounded_element.js
Aaron Dodson 3851b14627 refactor: Migrate to named exports (#5623)
* refactor: Migrate to named exports

* fix: Sort requires

* fix: Remove duplicate deps
2021-10-20 15:53:23 -07:00

46 lines
1.0 KiB
JavaScript

/**
* @license
* Copyright 2020 Google LLC
* SPDX-License-Identifier: Apache-2.0
*/
/**
* @fileoverview The interface for a bounded element.
*/
'use strict';
/**
* The interface for a bounded element.
* @namespace Blockly.IBoundedElement
*/
goog.module('Blockly.IBoundedElement');
/* eslint-disable-next-line no-unused-vars */
const {Rect} = goog.requireType('Blockly.utils.Rect');
/**
* A bounded element interface.
* @interface
* @alias Blockly.IBoundedElement
*/
const IBoundedElement = function() {};
/**
* Returns the coordinates of a bounded element describing the dimensions of the
* element.
* Coordinate system: workspace coordinates.
* @return {!Rect} Object with coordinates of the bounded element.
*/
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.
*/
IBoundedElement.prototype.moveBy;
exports.IBoundedElement = IBoundedElement;