Files
blockly/core/interfaces/i_autohideable.js
Aaron Dodson 3851b14627 refactor: Migrate to named exports (#5623)
* refactor: Migrate to named exports

* fix: Sort requires

* fix: Remove duplicate deps
2021-10-20 15:53:23 -07:00

41 lines
968 B
JavaScript

/**
* @license
* Copyright 2021 Google LLC
* SPDX-License-Identifier: Apache-2.0
*/
/**
* @fileoverview The interface for a component that is automatically hidden
* when WorkspaceSvg.hideChaff is called.
*/
'use strict';
/**
* The interface for a component that is automatically hidden
* when WorkspaceSvg.hideChaff is called.
* @namespace Blockly.IAutoHideable
*/
goog.module('Blockly.IAutoHideable');
/* eslint-disable-next-line no-unused-vars */
const {IComponent} = goog.require('Blockly.IComponent');
/**
* Interface for a component that can be automatically hidden.
* @extends {IComponent}
* @interface
* @alias Blockly.IAutoHideable
*/
const IAutoHideable = function() {};
/**
* Hides the component. Called in WorkspaceSvg.hideChaff.
* @param {boolean} onlyClosePopups Whether only popups should be closed.
* Flyouts should not be closed if this is true.
*/
IAutoHideable.prototype.autoHide;
exports.IAutoHideable = IAutoHideable;