fix!: fix or silence type errors (#6105)

* fix: add isBlockCreatable to IFlyout interface

* fix: add getClickTarget to IToolboxItem interface

* fix: fix some types in zelos renderer

* fix: add scrollToStart to IFlyout interface

* fix: add setVisible_ to IToolboxItem

* fix: use instanceof check for workspace comments in gesture code

* fix: data stored on the DOM for tooltips

* fix: use blockSvg to access icons

* fix: add instanceof check in shortcut_items.js

* fix: suppress warning about onKeyDown in tolbox

* fix: add instanceof check in workspace_svg

* fix: don't use dot accessor to avoid type problem

* fix: silence type errors in ast_node.js
This commit is contained in:
Rachel Fenichel
2022-04-22 15:55:55 -07:00
committed by GitHub
parent 172a8ce212
commit daf78af13e
15 changed files with 105 additions and 26 deletions

View File

@@ -198,4 +198,19 @@ IFlyout.prototype.position;
*/
IFlyout.prototype.isDragTowardWorkspace;
/**
* Does this flyout allow you to create a new instance of the given block?
* Used for deciding if a block can be "dragged out of" the flyout.
* @param {!BlockSvg} block The block to copy from the flyout.
* @return {boolean} True if you can create a new instance of the block, false
* otherwise.
* @package
*/
IFlyout.prototype.isBlockCreatable;
/**
* Scroll the flyout to the beginning of its contents.
*/
IFlyout.prototype.scrollToStart;
exports.IFlyout = IFlyout;

View File

@@ -82,4 +82,19 @@ IToolboxItem.prototype.isCollapsible;
*/
IToolboxItem.prototype.dispose;
/**
* Gets the HTML element that is clickable.
* @return {?Element} The HTML element that receives clicks.
* @public
*/
IToolboxItem.prototype.getClickTarget;
/**
* Sets whether the category is visible or not.
* For a category to be visible its parent category must also be expanded.
* @param {boolean} isVisible True if category should be visible.
* @protected
*/
IToolboxItem.prototype.setVisible_;
exports.IToolboxItem = IToolboxItem;