UNPKG

@evcc/icons

Version:

A collection of evcc icons for vehicles, meters, chargers, smartswitches, and heating systems with web components and SVG registry.

32 lines 945 B
export type IconType = "vehicle" | "meter" | "charger"; export declare class EvccIcon extends HTMLElement { private _loading; private _intersectionObserver; private _isInViewport; private _loadAttempted; private _loadingPromise; private _currentKey; private _type; private _name; static get observedAttributes(): string[]; constructor(); connectedCallback(): void; disconnectedCallback(): void; attributeChangedCallback(): void; private _updateAttributes; private get _currentIconKey(); private _setupIntersectionObserver; private _startObserving; private _stopObserving; private _getSizeStyles; private _getBaseHostStyles; private _render; private render; private _loadIcon; private _renderIcon; private _renderPlaceholder; private _renderLoading; private _renderError; } export default EvccIcon; //# sourceMappingURL=evcc-icon.d.ts.map