mirror of
https://github.com/google/blockly.git
synced 2026-01-06 00:20:37 +01:00
Our files are up to a decade old, and have churned so much, that the initial author of the file no longer has much meaning. Furthermore, this will encourage developers to post to the developer group, rather than emailing Googlers (usually me) directly.
46 lines
1015 B
JavaScript
46 lines
1015 B
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;
|