@types/three
Version:
TypeScript definitions for three
22 lines (20 loc) • 813 B
TypeScript
import { Camera } from "three";
import { OrbitControls } from "./OrbitControls.js";
/**
* MapControls performs orbiting, dollying (zooming), and panning.
* Unlike TrackballControls, it maintains the "up" direction
* object.up (+Y by default).
*
* Orbit - right mouse, or left mouse + ctrl/meta/shiftKey / touch:
* two-finger rotate
* Zoom - middle mouse, or mousewheel / touch: two-finger spread or squish
* Pan - left mouse, or arrow keys / touch: one-finger move
*
* @param object - The camera to be controlled. The camera must not
* be a child of another object, unless that object is the scene itself.
* @param domElement - The HTML element used for
* event listeners.
*/
export class MapControls extends OrbitControls {
constructor(object: Camera, domElement?: HTMLElement);
}