mirror of
https://github.com/google/blockly.git
synced 2026-01-10 02:17:09 +01:00
* Add annotations to files under core/events * Add annotations to files under core/interfaces * Add annotations to files under core/keyboard_nav * Add annotations to files under core/renderers * Add annotations to files under core/serialization * Add annotations to files under core/theme * Add annotations to files under core/toolbox * Add annotations to files under core/utils * Add annotations to files under core
47 lines
1.0 KiB
JavaScript
47 lines
1.0 KiB
JavaScript
/**
|
|
* @license
|
|
* Copyright 2020 Google LLC
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
|
|
/**
|
|
* @fileoverview The interface for a bounded element.
|
|
* @author samelh@google.com (Sam El-Husseini)
|
|
*/
|
|
|
|
'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;
|