Shape.d.ts 919 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. import { Vector2 } from './../../math/Vector2';
  2. import { Path } from './Path';
  3. import { ExtrudeGeometry } from './../../geometries/ExtrudeGeometry';
  4. import { ShapeGeometry } from './../../geometries/ShapeGeometry';
  5. /**
  6. * Defines a 2d shape plane using paths.
  7. */
  8. export class Shape extends Path {
  9. constructor( points?: Vector2[] );
  10. holes: Path[];
  11. /**
  12. * @deprecated Use {@link ExtrudeGeometry ExtrudeGeometry()} instead.
  13. */
  14. extrude( options?: any ): ExtrudeGeometry;
  15. /**
  16. * @deprecated Use {@link ShapeGeometry ShapeGeometry()} instead.
  17. */
  18. makeGeometry( options?: any ): ShapeGeometry;
  19. getPointsHoles( divisions: number ): Vector2[][];
  20. /**
  21. * @deprecated Use {@link Shape#extractPoints .extractPoints()} instead.
  22. */
  23. extractAllPoints(
  24. divisions: number
  25. ): {
  26. shape: Vector2[];
  27. holes: Vector2[][];
  28. };
  29. extractPoints( divisions: number ): {
  30. shape: Vector2[];
  31. holes: Vector2[][];
  32. };
  33. }
粤ICP备19079148号