mirror of
https://github.com/google/blockly.git
synced 2026-05-12 23:20:10 +02:00
36 lines
751 B
TypeScript
36 lines
751 B
TypeScript
/**
|
|
* @license
|
|
* Copyright 2019 Google LLC
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
|
|
/**
|
|
* @fileoverview The interface for an object that is selectable.
|
|
*/
|
|
|
|
/**
|
|
* The interface for an object that is selectable.
|
|
* @namespace Blockly.ISelectable
|
|
*/
|
|
|
|
|
|
// eslint-disable-next-line no-unused-vars
|
|
import {IDeletable} from './i_deletable';
|
|
// eslint-disable-next-line no-unused-vars
|
|
import {IMovable} from './i_movable';
|
|
|
|
|
|
/**
|
|
* The interface for an object that is selectable.
|
|
* @alias Blockly.ISelectable
|
|
*/
|
|
export interface ISelectable extends IDeletable, IMovable {
|
|
id: string;
|
|
|
|
/** Select this. Highlight it visually. */
|
|
select: AnyDuringMigration;
|
|
|
|
/** Unselect this. Unhighlight it visually. */
|
|
unselect: AnyDuringMigration;
|
|
}
|