ShapePath.d.ts 543 B

1234567891011121314151617181920212223
  1. import { Vector2 } from './../../math/Vector2';
  2. import { Shape } from './Shape';
  3. export class ShapePath {
  4. constructor();
  5. subPaths: any[];
  6. currentPath: any;
  7. moveTo(x: number, y: number): void;
  8. lineTo(x: number, y: number): void;
  9. quadraticCurveTo(aCPx: number, aCPy: number, aX: number, aY: number): void;
  10. bezierCurveTo(
  11. aCP1x: number,
  12. aCP1y: number,
  13. aCP2x: number,
  14. aCP2y: number,
  15. aX: number,
  16. aY: number
  17. ): void;
  18. splineThru(pts: Vector2[]): void;
  19. toShapes(isCCW: boolean, noHoles: any): Shape[];
  20. }