mirror of
https://github.com/google/blockly.git
synced 2026-01-09 10:00:09 +01:00
33 lines
737 B
JavaScript
33 lines
737 B
JavaScript
/**
|
|
* @license
|
|
* Copyright 2021 Google LLC
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
|
|
/**
|
|
* @fileoverview The interface for a component that is automatically hidden
|
|
* when Blockly.hideChaff is called.
|
|
* @author kozbial@google.com (Monica Kozbial)
|
|
*/
|
|
|
|
'use strict';
|
|
|
|
goog.provide('Blockly.IAutoHideable');
|
|
|
|
goog.require('Blockly.IComponent');
|
|
|
|
|
|
/**
|
|
* Interface for a component that can be automatically hidden.
|
|
* @extends {Blockly.IComponent}
|
|
* @interface
|
|
*/
|
|
Blockly.IAutoHideable = function() {};
|
|
|
|
/**
|
|
* Hides the component. Called in Blockly.hideChaff.
|
|
* @param {boolean} onlyClosePopups Whether only popups should be closed.
|
|
* Flyouts should not be closed if this is true.
|
|
*/
|
|
Blockly.IAutoHideable.prototype.autoHide;
|