UNPKG

@angular/flex-layout

Version:
25 lines (24 loc) 804 B
import * as i0 from "@angular/core"; /** * Utility to emulate a CSS stylesheet * * This utility class stores all of the styles for a given HTML element * as a readonly `stylesheet` map. */ export declare class StylesheetMap { readonly stylesheet: Map<HTMLElement, Map<string, string | number>>; /** * Add an individual style to an HTML element */ addStyleToElement(element: HTMLElement, style: string, value: string | number): void; /** * Clear the virtual stylesheet */ clearStyles(): void; /** * Retrieve a given style for an HTML element */ getStyleForElement(el: HTMLElement, styleName: string): string; static ɵfac: i0.ɵɵFactoryDeclaration<StylesheetMap, never>; static ɵprov: i0.ɵɵInjectableDeclaration<StylesheetMap>; }