mirror of
https://github.com/google/blockly.git
synced 2026-01-06 00:20:37 +01:00
feat: add registering and serializing icons (#7063)
* feat: add registry for icons * feat: add serialization of custom icons * feat: add deserialization of custom icons * chore: fixup deserialization * chore: export icons registry * chore: add tests for serialization and deserialization * chore: move mocks and helpers to the top level * chore: fix doc error * chore: remove accidental only
This commit is contained in:
@@ -13,6 +13,7 @@ import type {IBlockDragger} from './interfaces/i_block_dragger.js';
|
||||
import type {IConnectionChecker} from './interfaces/i_connection_checker.js';
|
||||
import type {IFlyout} from './interfaces/i_flyout.js';
|
||||
import type {IMetricsManager} from './interfaces/i_metrics_manager.js';
|
||||
import type {IIcon} from './interfaces/i_icon.js';
|
||||
import type {Input} from './inputs/input.js';
|
||||
import type {ISerializer} from './interfaces/i_serializer.js';
|
||||
import type {IToolbox} from './interfaces/i_toolbox.js';
|
||||
@@ -92,6 +93,9 @@ export class Type<_T> {
|
||||
|
||||
/** @internal */
|
||||
static SERIALIZER = new Type<ISerializer>('serializer');
|
||||
|
||||
/** @internal */
|
||||
static ICON = new Type<IIcon>('icon');
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user