* Registers an icon set config in the specified namespace. * @param namespace Namespace in which to register the icon config. * @param config Config to be registered.
(namespace: string, config: SvgIconConfig)
| 688 | * @param config Config to be registered. |
| 689 | */ |
| 690 | private _addSvgIconSetConfig(namespace: string, config: SvgIconConfig): this { |
| 691 | const configNamespace = this._iconSetConfigs.get(namespace); |
| 692 | |
| 693 | if (configNamespace) { |
| 694 | configNamespace.push(config); |
| 695 | } else { |
| 696 | this._iconSetConfigs.set(namespace, [config]); |
| 697 | } |
| 698 | |
| 699 | return this; |
| 700 | } |
| 701 | |
| 702 | /** Parses a config's text into an SVG element. */ |
| 703 | private _svgElementFromConfig(config: LoadedSvgIconConfig): SVGElement { |
no test coverage detected