project/node_modules/zrender/lib/graphic/LinearGradient.d.ts

17 lines
480 B
TypeScript
Raw Normal View History

2024-07-14 15:48:34 +08:00
import Gradient, { GradientObject, GradientColorStop } from './Gradient';
export interface LinearGradientObject extends GradientObject {
type: 'linear';
x: number;
y: number;
x2: number;
y2: number;
}
export default class LinearGradient extends Gradient {
type: 'linear';
x: number;
y: number;
x2: number;
y2: number;
constructor(x: number, y: number, x2: number, y2: number, colorStops?: GradientColorStop[], globalCoord?: boolean);
}