1 | import Gradient, { GradientObject, GradientColorStop } from './Gradient';
|
2 | export interface LinearGradientObject extends GradientObject {
|
3 | type: 'linear';
|
4 | x: number;
|
5 | y: number;
|
6 | x2: number;
|
7 | y2: number;
|
8 | }
|
9 | export default class LinearGradient extends Gradient {
|
10 | type: 'linear';
|
11 | x: number;
|
12 | y: number;
|
13 | x2: number;
|
14 | y2: number;
|
15 | constructor(x: number, y: number, x2: number, y2: number, colorStops?: GradientColorStop[], globalCoord?: boolean);
|
16 | }
|