mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
33 lines
951 B
TypeScript
33 lines
951 B
TypeScript
// Type definitions for TrackballControls.js
|
|
// Project: https://github.com/mrdoob/three.js/blob/master/examples/js/controls/TrackballControls.js
|
|
// Definitions by: Satoru Kimura <https://github.com/gyohk>
|
|
// Definitions: https://github.com/borisyankov/DefinitelyTyped
|
|
|
|
/// <reference path="../three.d.ts" />
|
|
|
|
declare module THREE {
|
|
class TrackballControls {
|
|
constructor(object:Camera, domElement?:HTMLElement);
|
|
|
|
object:Camera;
|
|
domElement:HTMLElement;
|
|
|
|
// API
|
|
enabled:boolean;
|
|
screen:{ left: number; top: number; width: number; height: number };
|
|
rotateSpeed:number;
|
|
zoomSpeed:number;
|
|
panSpeed:number;
|
|
noRotate:boolean;
|
|
noZoom:boolean;
|
|
noPan:boolean;
|
|
noRoll:boolean;
|
|
staticMoving:boolean;
|
|
dynamicDampingFactor:number;
|
|
minDistance:number;
|
|
maxDistance:number;
|
|
keys:number[];
|
|
|
|
update():void;
|
|
}
|
|
} |