Files
blockly/core/interfaces/i_selectable.js
Christopher Allen d2d5dc4b71 fix: Use require instead of requireType for interfaces (#5568)
But only if the interface is used in an @implements or @extends
declaration.

Fixes #5450
2021-09-29 17:44:21 +01:00

53 lines
1012 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';
/**
* 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;