File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -14,6 +14,7 @@ import * as dom from '../utils/dom.js';
1414import { Size } from '../utils/size.js' ;
1515import { Svg } from '../utils/svg.js' ;
1616import type { IconType } from './icon_types.js' ;
17+ import * as deprecation from '../utils/deprecation.js' ;
1718
1819/**
1920 * The abstract icon class. Icons are visual elements that live in the top-start
@@ -109,4 +110,14 @@ export abstract class Icon implements IIcon {
109110 }
110111
111112 onClick ( ) : void { }
113+
114+ /**
115+ * Sets the visibility of the icon's bubble if one exists.
116+ *
117+ * @deprecated Use `setBubbleVisible` instead. To be removed in v11.
118+ */
119+ setVisible ( visibility : boolean ) : void {
120+ deprecation . warn ( 'setVisible' , 'v10' , 'v11' , 'setBubbleVisible' ) ;
121+ if ( hasBubble ( this ) ) this . setBubbleVisible ( visibility ) ;
122+ }
112123}
You can’t perform that action at this time.
0 commit comments