TrackballControls.d.ts 827 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. import { Camera, EventDispatcher, Vector3 } from '../../../src/Three';
  2. export class TrackballControls extends EventDispatcher {
  3. constructor( object: Camera, domElement?: HTMLElement );
  4. object: Camera;
  5. domElement: HTMLElement;
  6. // API
  7. enabled: boolean;
  8. screen: {left: number; top: number; width: number; height: number};
  9. rotateSpeed: number;
  10. zoomSpeed: number;
  11. panSpeed: number;
  12. noRotate: boolean;
  13. noZoom: boolean;
  14. noPan: boolean;
  15. noRoll: boolean;
  16. staticMoving: boolean;
  17. dynamicDampingFactor: number;
  18. minDistance: number;
  19. maxDistance: number;
  20. keys: number[];
  21. target: Vector3;
  22. position0: Vector3;
  23. target0: Vector3;
  24. up0: Vector3;
  25. update(): void;
  26. reset(): void;
  27. dispose(): void;
  28. checkDistances(): void;
  29. zoomCamera(): void;
  30. panCamera(): void;
  31. rotateCamera(): void;
  32. handleResize(): void;
  33. }