1 | import type { DisplayObject } from '../display-objects';
|
2 | import type { BaseStyleProps } from '../types';
|
3 | import { CSSStyleValue } from './cssom';
|
4 | import { StyleValueRegistry } from './interfaces';
|
5 | export declare type CSSGlobalKeywords = 'unset' | 'initial' | 'inherit' | '';
|
6 | export interface PropertyParseOptions {
|
7 | skipUpdateAttribute: boolean;
|
8 | skipParse: boolean;
|
9 | }
|
10 | export declare const PropertySyntax: {
|
11 | COLOR: string;
|
12 | PAINT: string;
|
13 | NUMBER: string;
|
14 | LENGTH: string;
|
15 | PERCENTAGE: string;
|
16 | LENGTH_PERCENTAGE: string;
|
17 | LIST_OF_POINTS: string;
|
18 | };
|
19 | export interface PropertyMetadata {
|
20 | name: string;
|
21 | |
22 |
|
23 |
|
24 |
|
25 | interpolable?: boolean;
|
26 | |
27 |
|
28 |
|
29 |
|
30 | inherited?: boolean;
|
31 | |
32 |
|
33 |
|
34 |
|
35 | independent?: boolean;
|
36 | |
37 |
|
38 |
|
39 |
|
40 |
|
41 | defaultValue?: string;
|
42 | |
43 |
|
44 |
|
45 |
|
46 |
|
47 | layoutDependent?: boolean;
|
48 | |
49 |
|
50 |
|
51 | keywords?: string[];
|
52 | |
53 |
|
54 |
|
55 | alias?: string[];
|
56 | |
57 |
|
58 |
|
59 | parsePriority?: number;
|
60 | |
61 |
|
62 |
|
63 | syntax?: string;
|
64 | handler?: any;
|
65 | }
|
66 |
|
67 |
|
68 |
|
69 | export declare const BUILT_IN_PROPERTIES: PropertyMetadata[];
|
70 | export declare class DefaultStyleValueRegistry implements StyleValueRegistry {
|
71 | |
72 |
|
73 |
|
74 | dirty: boolean;
|
75 | private cache;
|
76 | private unresolvedProperties;
|
77 | |
78 |
|
79 |
|
80 |
|
81 |
|
82 |
|
83 |
|
84 |
|
85 |
|
86 | private cascadeProperties;
|
87 | init(): void;
|
88 | registerMetadata(metadata: PropertyMetadata): void;
|
89 | getMetadata(name: string): PropertyMetadata;
|
90 | |
91 |
|
92 |
|
93 |
|
94 |
|
95 |
|
96 |
|
97 |
|
98 |
|
99 | processProperties(object: DisplayObject, attributes: BaseStyleProps, options?: Partial<PropertyParseOptions>): void;
|
100 | |
101 |
|
102 |
|
103 | parseProperty(name: string, value: any, object: DisplayObject): CSSStyleValue;
|
104 | |
105 |
|
106 |
|
107 | computeProperty(name: string, computed: CSSStyleValue, object: DisplayObject): boolean;
|
108 | postProcessProperty(name: string, object: DisplayObject): void;
|
109 | isPropertyResolved(object: DisplayObject, name: string): boolean;
|
110 | |
111 |
|
112 |
|
113 | addUnresolveProperty(object: DisplayObject, name: string): void;
|
114 | tryToResolveProperty(object: DisplayObject, name: string, options?: {
|
115 | inherited?: boolean;
|
116 | }): any;
|
117 | recalc(object: DisplayObject): void;
|
118 | |
119 |
|
120 |
|
121 |
|
122 | updateGeometry(object: DisplayObject): void;
|
123 | private isPropertyInheritable;
|
124 | }
|