ShapePath.d.ts 743 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. import { Vector2 } from './../../math/Vector2';
  2. import { Shape } from './Shape';
  3. import { Color } from '../../math/Color';
  4. export class ShapePath {
  5. constructor();
  6. /**
  7. * @default 'ShapePath'
  8. */
  9. type: string;
  10. /**
  11. * @default new THREE.Color()
  12. */
  13. color: Color;
  14. /**
  15. * @default []
  16. */
  17. subPaths: any[];
  18. /**
  19. * @default null
  20. */
  21. currentPath: any;
  22. moveTo( x: number, y: number ): this;
  23. lineTo( x: number, y: number ): this;
  24. quadraticCurveTo( aCPx: number, aCPy: number, aX: number, aY: number ): this;
  25. bezierCurveTo(
  26. aCP1x: number,
  27. aCP1y: number,
  28. aCP2x: number,
  29. aCP2y: number,
  30. aX: number,
  31. aY: number
  32. ): this;
  33. splineThru( pts: Vector2[] ): this;
  34. toShapes( isCCW: boolean, noHoles?: boolean ): Shape[];
  35. }