1 | import { CoreTypes } from '../../core-types';
|
2 | import { LinearGradient } from './linear-gradient';
|
3 | import { Color } from '../../color';
|
4 | import { BoxShadow } from './box-shadow';
|
5 |
|
6 |
|
7 |
|
8 |
|
9 |
|
10 |
|
11 |
|
12 |
|
13 |
|
14 | export declare const enum BackgroundClearFlags {
|
15 | NONE = 0,
|
16 | CLEAR_BACKGROUND_COLOR = 1,
|
17 | CLEAR_BOX_SHADOW = 2
|
18 | }
|
19 | export declare class Background {
|
20 | static default: Background;
|
21 | color: Color;
|
22 | image: string | LinearGradient;
|
23 | repeat: CoreTypes.BackgroundRepeatType;
|
24 | position: string;
|
25 | size: string;
|
26 | borderTopColor: Color;
|
27 | borderRightColor: Color;
|
28 | borderBottomColor: Color;
|
29 | borderLeftColor: Color;
|
30 | borderTopWidth: number;
|
31 | borderRightWidth: number;
|
32 | borderBottomWidth: number;
|
33 | borderLeftWidth: number;
|
34 | borderTopLeftRadius: number;
|
35 | borderTopRightRadius: number;
|
36 | borderBottomLeftRadius: number;
|
37 | borderBottomRightRadius: number;
|
38 | clipPath: string;
|
39 | boxShadow: BoxShadow;
|
40 | clearFlags: number;
|
41 | private clone;
|
42 | withColor(value: Color): Background;
|
43 | withImage(value: string | LinearGradient): Background;
|
44 | withRepeat(value: CoreTypes.BackgroundRepeatType): Background;
|
45 | withPosition(value: string): Background;
|
46 | withSize(value: string): Background;
|
47 | withBorderTopColor(value: Color): Background;
|
48 | withBorderRightColor(value: Color): Background;
|
49 | withBorderBottomColor(value: Color): Background;
|
50 | withBorderLeftColor(value: Color): Background;
|
51 | withBorderTopWidth(value: number): Background;
|
52 | withBorderRightWidth(value: number): Background;
|
53 | withBorderBottomWidth(value: number): Background;
|
54 | withBorderLeftWidth(value: number): Background;
|
55 | withBorderTopLeftRadius(value: number): Background;
|
56 | withBorderTopRightRadius(value: number): Background;
|
57 | withBorderBottomRightRadius(value: number): Background;
|
58 | withBorderBottomLeftRadius(value: number): Background;
|
59 | withClipPath(value: string): Background;
|
60 | withBoxShadow(value: BoxShadow): Background;
|
61 | isEmpty(): boolean;
|
62 | static equals(value1: Background, value2: Background): boolean;
|
63 | hasBorderColor(): boolean;
|
64 | hasBorderWidth(): boolean;
|
65 | hasBorderRadius(): boolean;
|
66 | hasBorder(): boolean;
|
67 | hasUniformBorderColor(): boolean;
|
68 | hasUniformBorderWidth(): boolean;
|
69 | hasUniformBorderRadius(): boolean;
|
70 | hasUniformBorder(): boolean;
|
71 | getUniformBorderColor(): Color;
|
72 | getUniformBorderWidth(): number;
|
73 | getUniformBorderRadius(): number;
|
74 | hasBoxShadow(): boolean;
|
75 | getBoxShadow(): BoxShadow;
|
76 | toString(): string;
|
77 | }
|