helper.d.ts 945 B

12345678910111213
  1. import { LinearGradientObject } from '../graphic/LinearGradient';
  2. import { RadialGradientObject } from '../graphic/RadialGradient';
  3. import { GradientObject } from '../graphic/Gradient';
  4. import { RectLike } from '../core/BoundingRect';
  5. import Path from '../graphic/Path';
  6. export declare function createLinearGradient(this: void, ctx: CanvasRenderingContext2D, obj: LinearGradientObject, rect: RectLike): CanvasGradient;
  7. export declare function createRadialGradient(this: void, ctx: CanvasRenderingContext2D, obj: RadialGradientObject, rect: RectLike): CanvasGradient;
  8. export declare function getCanvasGradient(this: void, ctx: CanvasRenderingContext2D, obj: GradientObject, rect: RectLike): CanvasGradient;
  9. export declare function isClipPathChanged(clipPaths: Path[], prevClipPaths: Path[]): boolean;
  10. export declare function getSize(root: HTMLElement, whIdx: number, opts: {
  11. width?: number | string;
  12. height?: number | string;
  13. }): number;