1 | import { CSSStyleValue, CSSStyleValueType } from './CSSStyleValue';
|
2 | import type { Nested, ParenLess } from './types';
|
3 | export interface LinearGradient {
|
4 | x0: number;
|
5 | y0: number;
|
6 | x1: number;
|
7 | y1: number;
|
8 | steps: string[][];
|
9 | hash: string;
|
10 | }
|
11 | export interface RadialGradient {
|
12 | x0: number;
|
13 | y0: number;
|
14 | r0: number;
|
15 | x1: number;
|
16 | y1: number;
|
17 | r1: number;
|
18 | steps: string[][];
|
19 | hash: string;
|
20 | }
|
21 | export interface Pattern {
|
22 | repetition: string;
|
23 | src: string;
|
24 | hash: string;
|
25 | }
|
26 | export declare enum GradientPatternType {
|
27 | Constant = 0,
|
28 | LinearGradient = 1,
|
29 | RadialGradient = 2,
|
30 | Pattern = 3
|
31 | }
|
32 | export declare class CSSGradientValue extends CSSStyleValue {
|
33 | type: GradientPatternType;
|
34 | value: LinearGradient | RadialGradient | Pattern;
|
35 | constructor(type: GradientPatternType, value: LinearGradient | RadialGradient | Pattern);
|
36 | clone(): CSSGradientValue;
|
37 | buildCSSText(n: Nested, p: ParenLess, result: string): string;
|
38 | getType(): CSSStyleValueType;
|
39 | }
|