forked from DefinitelyTyped/DefinitelyTyped
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy paththree-orbitcontrols.d.ts
42 lines (35 loc) · 1.18 KB
/
three-orbitcontrols.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
// Type definitions for three.js (OrbitControls.js)
// Project: https://github.com/mrdoob/three.js/blob/master/examples/js/controls/OrbitControls.js
// Definitions by: Satoru Kimura <https://github.com/gyohk>
// Definitions: https://github.com/borisyankov/DefinitelyTyped
/// <reference path="./three.d.ts" />
declare module THREE {
class OrbitControls {
constructor(object:Camera, domElement?:HTMLElement);
object:Camera;
domElement:HTMLElement;
// API
enabled: boolean;
target: THREE.Vector3;
// deprecated
center: THREE.Vector3;
noZoom: boolean;
zoomSpeed: number;
minDistance: number;
maxDistance: number;
noRotate: boolean;
rotateSpeed: number;
noPan: boolean;
keyPanSpeed: number;
autoRotate: boolean;
autoRotateSpeed: number;
minPolarAngle: number;
maxPolarAngle: number;
minAzimuthAngle: number;
maxAzimuthAngle: number;
noKeys: boolean;
keys: { LEFT: number; UP: number; RIGHT: number; BOTTOM: number; };
mouseButtons: { ORBIT: MOUSE; ZOOM: MOUSE; PAN: MOUSE; };
update():void;
}
}