UNPKG

480 BTypeScriptView Raw
1import Gradient, { GradientObject, GradientColorStop } from './Gradient';
2export interface LinearGradientObject extends GradientObject {
3 type: 'linear';
4 x: number;
5 y: number;
6 x2: number;
7 y2: number;
8}
9export 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}