mirror of
https://github.com/google/blockly.git
synced 2025-12-15 22:00:07 +01:00
chore!: Fix warnings when generating docs. (#8660)
This commit is contained in:
@@ -352,6 +352,11 @@
|
|||||||
// Needs investigation.
|
// Needs investigation.
|
||||||
"ae-forgotten-export": {
|
"ae-forgotten-export": {
|
||||||
"logLevel": "none"
|
"logLevel": "none"
|
||||||
|
},
|
||||||
|
|
||||||
|
// We don't prefix our internal APIs with underscores.
|
||||||
|
"ae-internal-missing-underscore": {
|
||||||
|
"logLevel": "none"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
@@ -1411,7 +1411,7 @@ export class Block implements IASTNodeLocation {
|
|||||||
return this.disabledReasons.size === 0;
|
return this.disabledReasons.size === 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @deprecated v11 - Get whether the block is manually disabled. */
|
/** @deprecated v11 - Get or sets whether the block is manually disabled. */
|
||||||
private get disabled(): boolean {
|
private get disabled(): boolean {
|
||||||
deprecation.warn(
|
deprecation.warn(
|
||||||
'disabled',
|
'disabled',
|
||||||
@@ -1422,7 +1422,6 @@ export class Block implements IASTNodeLocation {
|
|||||||
return this.hasDisabledReason(constants.MANUALLY_DISABLED);
|
return this.hasDisabledReason(constants.MANUALLY_DISABLED);
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @deprecated v11 - Set whether the block is manually disabled. */
|
|
||||||
private set disabled(value: boolean) {
|
private set disabled(value: boolean) {
|
||||||
deprecation.warn(
|
deprecation.warn(
|
||||||
'disabled',
|
'disabled',
|
||||||
@@ -2519,7 +2518,7 @@ export class Block implements IASTNodeLocation {
|
|||||||
*
|
*
|
||||||
* Intended to on be used in console logs and errors. If you need a string
|
* Intended to on be used in console logs and errors. If you need a string
|
||||||
* that uses the user's native language (including block text, field values,
|
* that uses the user's native language (including block text, field values,
|
||||||
* and child blocks), use [toString()]{@link Block#toString}.
|
* and child blocks), use {@link (Block:class).toString | toString()}.
|
||||||
*
|
*
|
||||||
* @returns The description.
|
* @returns The description.
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -485,7 +485,7 @@ export class Connection implements IASTNodeLocationWithBlock {
|
|||||||
*
|
*
|
||||||
* Headless configurations (the default) do not have neighboring connection,
|
* Headless configurations (the default) do not have neighboring connection,
|
||||||
* and always return an empty list (the default).
|
* and always return an empty list (the default).
|
||||||
* {@link RenderedConnection#neighbours} overrides this behavior with a list
|
* {@link (RenderedConnection:class).neighbours} overrides this behavior with a list
|
||||||
* computed from the rendered positioning.
|
* computed from the rendered positioning.
|
||||||
*
|
*
|
||||||
* @param _maxLimit The maximum radius to another connection.
|
* @param _maxLimit The maximum radius to another connection.
|
||||||
|
|||||||
@@ -18,8 +18,6 @@ import {EventType} from './type.js';
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Notifies listeners that a variable model has been deleted.
|
* Notifies listeners that a variable model has been deleted.
|
||||||
*
|
|
||||||
* @class
|
|
||||||
*/
|
*/
|
||||||
export class VarDelete extends VarBase {
|
export class VarDelete extends VarBase {
|
||||||
override type = EventType.VAR_DELETE;
|
override type = EventType.VAR_DELETE;
|
||||||
|
|||||||
@@ -18,8 +18,6 @@ import {EventType} from './type.js';
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Notifies listeners that a variable model was renamed.
|
* Notifies listeners that a variable model was renamed.
|
||||||
*
|
|
||||||
* @class
|
|
||||||
*/
|
*/
|
||||||
export class VarRename extends VarBase {
|
export class VarRename extends VarBase {
|
||||||
override type = EventType.VAR_RENAME;
|
override type = EventType.VAR_RENAME;
|
||||||
|
|||||||
@@ -63,7 +63,7 @@ export interface IMetricsManager {
|
|||||||
* Gets the width, height and position of the toolbox on the workspace in
|
* Gets the width, height and position of the toolbox on the workspace in
|
||||||
* pixel coordinates. Returns 0 for the width and height if the workspace has
|
* pixel coordinates. Returns 0 for the width and height if the workspace has
|
||||||
* a simple toolbox instead of a category toolbox. To get the width and height
|
* a simple toolbox instead of a category toolbox. To get the width and height
|
||||||
* of a simple toolbox, see {@link IMetricsManager#getFlyoutMetrics}.
|
* of a simple toolbox, see {@link IMetricsManager.getFlyoutMetrics}.
|
||||||
*
|
*
|
||||||
* @returns The object with the width, height and position of the toolbox.
|
* @returns The object with the width, height and position of the toolbox.
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -4,18 +4,15 @@
|
|||||||
* SPDX-License-Identifier: Apache-2.0
|
* SPDX-License-Identifier: Apache-2.0
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/** @internal */
|
|
||||||
export interface IRenderedElement {
|
export interface IRenderedElement {
|
||||||
/**
|
/**
|
||||||
* @returns The root SVG element of htis rendered element.
|
* @returns The root SVG element of this rendered element.
|
||||||
*/
|
*/
|
||||||
getSvgRoot(): SVGElement;
|
getSvgRoot(): SVGElement;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @returns True if the given object is an IRenderedElement.
|
* @returns True if the given object is an IRenderedElement.
|
||||||
*
|
|
||||||
* @internal
|
|
||||||
*/
|
*/
|
||||||
export function isRenderedElement(obj: any): obj is IRenderedElement {
|
export function isRenderedElement(obj: any): obj is IRenderedElement {
|
||||||
return obj['getSvgRoot'] !== undefined;
|
return obj['getSvgRoot'] !== undefined;
|
||||||
|
|||||||
@@ -389,9 +389,7 @@ export class Menu {
|
|||||||
// Keyboard events.
|
// Keyboard events.
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Attempts to handle a keyboard event, if the menu item is enabled, by
|
* Attempts to handle a keyboard event.
|
||||||
* calling
|
|
||||||
* {@link Menu#handleKeyEventInternal_}.
|
|
||||||
*
|
*
|
||||||
* @param e Key event to handle.
|
* @param e Key event to handle.
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -76,7 +76,7 @@ export class MetricsManager implements IMetricsManager {
|
|||||||
* Gets the width, height and position of the toolbox on the workspace in
|
* Gets the width, height and position of the toolbox on the workspace in
|
||||||
* pixel coordinates. Returns 0 for the width and height if the workspace has
|
* pixel coordinates. Returns 0 for the width and height if the workspace has
|
||||||
* a simple toolbox instead of a category toolbox. To get the width and height
|
* a simple toolbox instead of a category toolbox. To get the width and height
|
||||||
* of a simple toolbox, see {@link MetricsManager#getFlyoutMetrics}.
|
* of a simple toolbox, see {@link (MetricsManager:class).getFlyoutMetrics}.
|
||||||
*
|
*
|
||||||
* @returns The object with the width, height and position of the toolbox.
|
* @returns The object with the width, height and position of the toolbox.
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -73,7 +73,7 @@ export class Renderer implements IRegistrable {
|
|||||||
/**
|
/**
|
||||||
* Create any DOM elements that this renderer needs.
|
* Create any DOM elements that this renderer needs.
|
||||||
* If you need to create additional DOM elements, override the
|
* If you need to create additional DOM elements, override the
|
||||||
* {@link ConstantProvider#createDom} method instead.
|
* {@link blockRendering#ConstantProvider.createDom} method instead.
|
||||||
*
|
*
|
||||||
* @param svg The root of the workspace's SVG.
|
* @param svg The root of the workspace's SVG.
|
||||||
* @param theme The workspace theme object.
|
* @param theme The workspace theme object.
|
||||||
|
|||||||
@@ -1102,6 +1102,7 @@ export class WorkspaceSvg extends Workspace implements IASTNodeLocationSvg {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @returns The layer manager for this workspace.
|
* @returns The layer manager for this workspace.
|
||||||
|
* @internal
|
||||||
*/
|
*/
|
||||||
getLayerManager(): LayerManager | null {
|
getLayerManager(): LayerManager | null {
|
||||||
return this.layerManager;
|
return this.layerManager;
|
||||||
|
|||||||
Reference in New Issue
Block a user