mirror of
https://github.com/google/blockly.git
synced 2026-05-12 23:20:10 +02:00
40 lines
847 B
TypeScript
40 lines
847 B
TypeScript
/**
|
|
* @license
|
|
* Copyright 2020 Google LLC
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
|
|
/**
|
|
* @fileoverview The interface for a bounded element.
|
|
*/
|
|
|
|
/**
|
|
* The interface for a bounded element.
|
|
* @namespace Blockly.IBoundedElement
|
|
*/
|
|
|
|
|
|
/* eslint-disable-next-line no-unused-vars */
|
|
|
|
|
|
|
|
/**
|
|
* A bounded element interface.
|
|
* @alias Blockly.IBoundedElement
|
|
*/
|
|
export interface IBoundedElement {
|
|
/**
|
|
* Returns the coordinates of a bounded element describing the dimensions of
|
|
* the element. Coordinate system: workspace coordinates.
|
|
* @return Object with coordinates of the bounded element.
|
|
*/
|
|
getBoundingRectangle: AnyDuringMigration;
|
|
|
|
/**
|
|
* Move the element by a relative offset.
|
|
* @param dx Horizontal offset in workspace units.
|
|
* @param dy Vertical offset in workspace units.
|
|
*/
|
|
moveBy: AnyDuringMigration;
|
|
}
|