1 | import { RenderingContext2D } from '../types';
|
2 | import { Property } from '../Property';
|
3 | import { Document } from './Document';
|
4 | export declare abstract class Element {
|
5 | protected readonly document: Document;
|
6 | protected readonly node?: HTMLElement;
|
7 | protected readonly captureTextNodes: boolean;
|
8 | static readonly ignoreChildTypes: string[];
|
9 | readonly type: string;
|
10 | readonly attributes: Record<string, Property>;
|
11 | readonly styles: Record<string, Property>;
|
12 | readonly stylesSpecificity: Record<string, string>;
|
13 | animationFrozen: boolean;
|
14 | animationFrozenValue: string;
|
15 | parent: Element | null;
|
16 | children: Element[];
|
17 | constructor(document: Document, node?: HTMLElement, captureTextNodes?: boolean);
|
18 | getAttribute(name: string, createIfNotExists?: boolean): Property;
|
19 | getHrefAttribute(): Property;
|
20 | getStyle(name: string, createIfNotExists?: boolean, skipAncestors?: boolean): Property;
|
21 | render(ctx: RenderingContext2D): void;
|
22 | setContext(_: RenderingContext2D): void;
|
23 | protected applyEffects(ctx: RenderingContext2D): void;
|
24 | clearContext(_: RenderingContext2D): void;
|
25 | renderChildren(ctx: RenderingContext2D): void;
|
26 | protected addChild(childNode: Element | HTMLElement): void;
|
27 | protected matchesSelector(selector: string): boolean;
|
28 | addStylesFromStyleDefinition(): void;
|
29 | protected removeStyles(element: Element, ignoreStyles: string[]): [string, string][];
|
30 | protected restoreStyles(element: Element, styles: [string, string][]): void;
|
31 | isFirstChild(): boolean;
|
32 | }
|
33 | //# sourceMappingURL=Element.d.ts.map |
\ | No newline at end of file |