mirror of
https://github.com/google/blockly.git
synced 2026-01-09 10:00:09 +01:00
46 lines
1.0 KiB
TypeScript
46 lines
1.0 KiB
TypeScript
/**
|
|
* @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;
|