mirror of
https://github.com/google/blockly.git
synced 2026-01-14 20:37:10 +01:00
Our files are up to a decade old, and have churned so much, that the initial author of the file no longer has much meaning. Furthermore, this will encourage developers to post to the developer group, rather than emailing Googlers (usually me) directly.
52 lines
965 B
JavaScript
52 lines
965 B
JavaScript
/**
|
|
* @license
|
|
* Copyright 2019 Google LLC
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
|
|
/**
|
|
* @fileoverview The interface for an object that is selectable.
|
|
*/
|
|
|
|
'use strict';
|
|
|
|
/**
|
|
* The interface for an object that is selectable.
|
|
* @namespace Blockly.ISelectable
|
|
*/
|
|
goog.module('Blockly.ISelectable');
|
|
|
|
// eslint-disable-next-line no-unused-vars
|
|
const IDeletable = goog.require('Blockly.IDeletable');
|
|
// eslint-disable-next-line no-unused-vars
|
|
const IMovable = goog.require('Blockly.IMovable');
|
|
|
|
|
|
/**
|
|
* The interface for an object that is selectable.
|
|
* @extends {IDeletable}
|
|
* @extends {IMovable}
|
|
* @interface
|
|
* @alias Blockly.ISelectable
|
|
*/
|
|
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;
|