LinearGradient.d.ts 480 B

12345678910111213141516
  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. }