OrbitControls.d.ts 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. import { Camera, MOUSE, TOUCH, Vector3 } from '../../../src/Three';
  2. export class OrbitControls {
  3. constructor( object: Camera, domElement?: HTMLElement );
  4. object: Camera;
  5. domElement: HTMLElement | HTMLDocument;
  6. // API
  7. enabled: boolean;
  8. target: Vector3;
  9. // deprecated
  10. center: Vector3;
  11. minDistance: number;
  12. maxDistance: number;
  13. minZoom: number;
  14. maxZoom: number;
  15. minPolarAngle: number;
  16. maxPolarAngle: number;
  17. minAzimuthAngle: number;
  18. maxAzimuthAngle: number;
  19. enableDamping: boolean;
  20. dampingFactor: number;
  21. enableZoom: boolean;
  22. zoomSpeed: number;
  23. enableRotate: boolean;
  24. rotateSpeed: number;
  25. enablePan: boolean;
  26. panSpeed: number;
  27. screenSpacePanning: boolean;
  28. keyPanSpeed: number;
  29. autoRotate: boolean;
  30. autoRotateSpeed: number;
  31. enableKeys: boolean;
  32. keys: { LEFT: number; UP: number; RIGHT: number; BOTTOM: number; };
  33. mouseButtons: { LEFT: MOUSE; MIDDLE: MOUSE; RIGHT: MOUSE; };
  34. touches: { ONE: TOUCH; TWO: TOUCH };
  35. update(): boolean;
  36. saveState(): void;
  37. reset(): void;
  38. dispose(): void;
  39. getPolarAngle(): number;
  40. getAzimuthalAngle(): number;
  41. // EventDispatcher mixins
  42. addEventListener( type: string, listener: ( event: any ) => void ): void;
  43. hasEventListener( type: string, listener: ( event: any ) => void ): boolean;
  44. removeEventListener( type: string, listener: ( event: any ) => void ): void;
  45. dispatchEvent( event: { type: string; target: any; } ): void;
  46. }
  47. export class MapControls extends OrbitControls {
  48. constructor( object: Camera, domElement?: HTMLElement );
  49. }