forked from DefinitelyTyped/DefinitelyTyped
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy paththree-orthographictrackballcontrols.d.ts
51 lines (42 loc) · 1.18 KB
/
three-orthographictrackballcontrols.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
43
44
45
46
47
48
49
50
51
// Type definitions for three.js (OrthographicTrackballControls.js)
// Project: https://github.com/mrdoob/three.js/blob/master/examples/js/controls/OrthographicTrackballControls.js
// Definitions by: Stefan Profanter <https://github.com/pro>
// Definitions: https://github.com/borisyankov/DefinitelyTyped
/// <reference path="./three.d.ts" />
declare module THREE {
class OrthographicTrackballControls extends EventDispatcher {
constructor(object:Camera, domElement?:HTMLElement);
object:Camera;
domElement:HTMLElement;
// API
enabled:boolean;
screen:{ left: number; top: number; width: number; height: number };
radius:number;
rotateSpeed:number;
zoomSpeed:number;
panSpeed:number;
noRotate:boolean;
noZoom:boolean;
noPan:boolean;
noRoll:boolean;
staticMoving:boolean;
dynamicDampingFactor:number;
keys:number[];
target: THREE.Vector3;
position0: THREE.Vector3;
target0: THREE.Vector3;
up0: THREE.Vector3;
left0: number;
right0: number;
top0: number;
bottom0: number;
update():void;
reset():void;
checkDistances():void;
zoomCamera():void;
panCamera():void;
rotateCamera():void;
handleResize():void;
handleEvent(event: any):void;
}
}