UNPKG

@angular/flex-layout

Version:
22 lines (21 loc) 636 B
/** * 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; }