1 | export interface GradientObject {
|
2 | id?: number;
|
3 | type: string;
|
4 | colorStops: GradientColorStop[];
|
5 | global?: boolean;
|
6 | }
|
7 | export interface InnerGradientObject extends GradientObject {
|
8 | __canvasGradient: CanvasGradient;
|
9 | __width: number;
|
10 | __height: number;
|
11 | }
|
12 | export interface GradientColorStop {
|
13 | offset: number;
|
14 | color: string;
|
15 | }
|
16 | export default class Gradient {
|
17 | id?: number;
|
18 | type: string;
|
19 | colorStops: GradientColorStop[];
|
20 | global: boolean;
|
21 | constructor(colorStops: GradientColorStop[]);
|
22 | addColorStop(offset: number, color: string): void;
|
23 | }
|