mirror of
https://github.com/google/blockly.git
synced 2026-01-08 17:40:09 +01:00
chore: miscellaneous fixes to docs, style, and tests (#6705)
* docs(icon): Better description for Icon.prototype.setVisible Also tweak description of getBlock. * docs(blocks): Fix typo in description of BlockDefinition * chore(tests): Factor out common goog:chromeOptions * chore(build): Minor style fixes
This commit is contained in:
committed by
GitHub
parent
fccf8e436e
commit
3be3d4a6ff
@@ -14,7 +14,7 @@ goog.declareModuleId('Blockly.blocks');
|
||||
|
||||
|
||||
/**
|
||||
* A block definition. For now this very lose, but it can potentially
|
||||
* A block definition. For now this very loose, but it can potentially
|
||||
* be refined e.g. by replacing this typedef with a class definition.
|
||||
*/
|
||||
export type BlockDefinition = AnyDuringMigration;
|
||||
|
||||
@@ -179,14 +179,14 @@ export abstract class Icon {
|
||||
// No-op on base class.
|
||||
|
||||
/**
|
||||
* Show or hide the icon.
|
||||
* Show or hide the bubble.
|
||||
*
|
||||
* @param _visible True if the icon should be visible.
|
||||
* @param _visible True if the bubble should be visible.
|
||||
*/
|
||||
setVisible(_visible: boolean) {}
|
||||
|
||||
/**
|
||||
* Returns the block this icon is attached to.
|
||||
* @returns The block this icon is attached to.
|
||||
*/
|
||||
protected getBlock(): BlockSvg {
|
||||
if (!this.block_) {
|
||||
|
||||
Reference in New Issue
Block a user