mirror of
https://github.com/google/blockly.git
synced 2026-01-07 00:50:27 +01:00
49 lines
935 B
JavaScript
49 lines
935 B
JavaScript
/**
|
|
* @license
|
|
* Copyright 2019 Google LLC
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
|
|
/**
|
|
* @fileoverview The interface for an object that is selectable.
|
|
* @author samelh@google.com (Sam El-Husseini)
|
|
*/
|
|
|
|
'use strict';
|
|
|
|
goog.module('Blockly.ISelectable');
|
|
goog.module.declareLegacyNamespace();
|
|
|
|
// eslint-disable-next-line no-unused-vars
|
|
const IDeletable = goog.requireType('Blockly.IDeletable');
|
|
// eslint-disable-next-line no-unused-vars
|
|
const IMovable = goog.requireType('Blockly.IMovable');
|
|
|
|
|
|
/**
|
|
* The interface for an object that is selectable.
|
|
* @extends {IDeletable}
|
|
* @extends {IMovable}
|
|
* @interface
|
|
*/
|
|
const ISelectable = function() {};
|
|
|
|
/**
|
|
* @type {string}
|
|
*/
|
|
ISelectable.prototype.id;
|
|
|
|
/**
|
|
* Select this. Highlight it visually.
|
|
* @return {void}
|
|
*/
|
|
ISelectable.prototype.select;
|
|
|
|
/**
|
|
* Unselect this. Unhighlight it visually.
|
|
* @return {void}
|
|
*/
|
|
ISelectable.prototype.unselect;
|
|
|
|
exports = ISelectable;
|