mirror of
https://github.com/google/blockly.git
synced 2026-01-07 00:50:27 +01:00
43 lines
735 B
JavaScript
43 lines
735 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.provide('Blockly.ISelectable');
|
|
|
|
goog.require('Blockly.IDeletable');
|
|
goog.require('Blockly.IMovable');
|
|
|
|
|
|
/**
|
|
* @extends {Blockly.IDeletable}
|
|
* @extends {Blockly.IMovable}
|
|
* @interface
|
|
*/
|
|
Blockly.ISelectable = function() {};
|
|
|
|
/**
|
|
* @type {string}
|
|
*/
|
|
Blockly.ISelectable.prototype.id;
|
|
|
|
/**
|
|
* Select this. Highlight it visually.
|
|
* @return {void}
|
|
*/
|
|
Blockly.ISelectable.prototype.select;
|
|
|
|
/**
|
|
* Unselect this. Unhighlight it visually.
|
|
* @return {void}
|
|
*/
|
|
Blockly.ISelectable.prototype.unselect;
|