2
0

ShapePath.d.ts 538 B

12345678910111213141516171819202122232425
  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?: boolean ): Shape[];
  20. }