SVGPathRebuilder.d.ts 1005 B

1234567891011121314151617181920
  1. import { PathRebuilder } from '../core/PathProxy';
  2. export default class SVGPathRebuilder implements PathRebuilder {
  3. private _d;
  4. private _str;
  5. private _invalid;
  6. private _start;
  7. private _p;
  8. reset(precision?: number): void;
  9. moveTo(x: number, y: number): void;
  10. lineTo(x: number, y: number): void;
  11. bezierCurveTo(x: number, y: number, x2: number, y2: number, x3: number, y3: number): void;
  12. quadraticCurveTo(x: number, y: number, x2: number, y2: number): void;
  13. arc(cx: number, cy: number, r: number, startAngle: number, endAngle: number, anticlockwise: boolean): void;
  14. ellipse(cx: number, cy: number, rx: number, ry: number, psi: number, startAngle: number, endAngle: number, anticlockwise: boolean): void;
  15. rect(x: number, y: number, w: number, h: number): void;
  16. closePath(): void;
  17. _add(cmd: string, a?: number, b?: number, c?: number, d?: number, e?: number, f?: number, g?: number, h?: number): void;
  18. generateStr(): void;
  19. getStr(): string;
  20. }