UNPKG

@flashport/flashport

Version:

FlashPort is a TypeScript 2D graphics library that largely replicates the Flash ActionScript 3.0 library

21 lines (20 loc) 646 B
import { TextFormat } from "./TextFormat"; import { EventDispatcher } from "../events/EventDispatcher"; export declare class StyleSheet extends EventDispatcher { private _css; constructor(); getStyle(styleName: string): Object; setStyle(styleName: string, styleObject: Object): void; clear(): void; get styleNames(): any[]; transform(formatObject: any): TextFormat; parseCSS(CSSText: string): void; private get _styles(); private set _styles(value); private doTransform; private _copy; private _update; private _parseCSSInternal; private _parseCSSFontFamily; private _parseColor; }