mirror of
https://github.com/google/blockly.git
synced 2026-01-09 18:10:08 +01:00
* chore: remove radix from parseInt Previously any number starting with '0' would be parsed as octal if the radix was left blank. But this was changed years ago. It is no longer needed to specify a radix. * chore: 'ID' is identification 'id' is a part of Freud's brain. * Use Unicode characters instead of codes This is in line with the current style guide. * Simplify Blockly.utils.dom methods. classList add/remove/has supports SVG elements in all browsers Blockly supports (i.e. not IE).
30 lines
612 B
TypeScript
30 lines
612 B
TypeScript
/**
|
|
* @license
|
|
* Copyright 2021 Google LLC
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
|
|
/**
|
|
* Interface for a workspace component that can be registered with
|
|
* the ComponentManager.
|
|
*
|
|
* @namespace Blockly.IComponent
|
|
*/
|
|
import * as goog from '../../closure/goog/goog.js';
|
|
goog.declareModuleId('Blockly.IComponent');
|
|
|
|
|
|
/**
|
|
* The interface for a workspace component that can be registered with the
|
|
* ComponentManager.
|
|
*
|
|
* @alias Blockly.IComponent
|
|
*/
|
|
export interface IComponent {
|
|
/**
|
|
* The unique ID for this component that is used to register with the
|
|
* ComponentManager.
|
|
*/
|
|
id: string;
|
|
}
|