TransformControls.d.ts 895 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. import {
  2. Object3D,
  3. Camera,
  4. MOUSE
  5. } from '../../../src/Three';
  6. export class TransformControls extends Object3D {
  7. constructor( object: Camera, domElement?: HTMLElement );
  8. domElement: HTMLElement;
  9. // API
  10. camera: Camera;
  11. object: Object3D | undefined;
  12. enabled: boolean;
  13. axis: string | null;
  14. mode: string;
  15. translationSnap: number | null;
  16. rotationSnap: number | null;
  17. space: string;
  18. size: number;
  19. dragging: boolean;
  20. showX: boolean;
  21. showY: boolean;
  22. showZ: boolean;
  23. readonly isTransformControls: true;
  24. mouseButtons: {
  25. LEFT: MOUSE;
  26. MIDDLE: MOUSE;
  27. RIGHT: MOUSE;
  28. };
  29. attach( object: Object3D ): this;
  30. detach(): this;
  31. getMode(): string;
  32. setMode( mode: string ): void;
  33. setTranslationSnap( translationSnap: Number | null ): void;
  34. setRotationSnap( rotationSnap: Number | null ): void;
  35. setSize( size: number ): void;
  36. setSpace( space: string ): void;
  37. dispose(): void;
  38. }