babylon.arcRotateCamera.d.ts 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. declare module BABYLON {
  2. class ArcRotateCamera extends Camera {
  3. public alpha: number;
  4. public beta: number;
  5. public radius: number;
  6. public target: any;
  7. public inertialAlphaOffset: number;
  8. public inertialBetaOffset: number;
  9. public inertialRadiusOffset: number;
  10. public lowerAlphaLimit: any;
  11. public upperAlphaLimit: any;
  12. public lowerBetaLimit: number;
  13. public upperBetaLimit: number;
  14. public lowerRadiusLimit: any;
  15. public upperRadiusLimit: any;
  16. public angularSensibility: number;
  17. public wheelPrecision: number;
  18. public keysUp: number[];
  19. public keysDown: number[];
  20. public keysLeft: number[];
  21. public keysRight: number[];
  22. public zoomOnFactor: number;
  23. public targetScreenOffset: Vector2;
  24. private _keys;
  25. private _viewMatrix;
  26. private _attachedElement;
  27. private _onPointerDown;
  28. private _onPointerUp;
  29. private _onPointerMove;
  30. private _wheel;
  31. private _onMouseMove;
  32. private _onKeyDown;
  33. private _onKeyUp;
  34. private _onLostFocus;
  35. private _reset;
  36. private _onGestureStart;
  37. private _onGesture;
  38. private _MSGestureHandler;
  39. public onCollide: (collidedMesh: AbstractMesh) => void;
  40. public checkCollisions: boolean;
  41. public collisionRadius: Vector3;
  42. private _collider;
  43. private _previousPosition;
  44. private _collisionVelocity;
  45. private _newPosition;
  46. private _previousAlpha;
  47. private _previousBeta;
  48. private _previousRadius;
  49. public pinchPrecision: number;
  50. private _touchStart;
  51. private _touchMove;
  52. private _touchEnd;
  53. private _pinchStart;
  54. private _pinchMove;
  55. private _pinchEnd;
  56. constructor(name: string, alpha: number, beta: number, radius: number, target: any, scene: Scene);
  57. public _getTargetPosition(): Vector3;
  58. public _initCache(): void;
  59. public _updateCache(ignoreParentClass?: boolean): void;
  60. public _isSynchronizedViewMatrix(): boolean;
  61. public attachControl(element: HTMLElement, noPreventDefault?: boolean): void;
  62. public detachControl(element: HTMLElement): void;
  63. public _update(): void;
  64. public setPosition(position: Vector3): void;
  65. public _getViewMatrix(): Matrix;
  66. public zoomOn(meshes?: AbstractMesh[]): void;
  67. public focusOn(meshesOrMinMaxVectorAndDistance: any): void;
  68. }
  69. }