npm install --save @types/drag-controls
This package contains type definitions for drag-controls (https://github.com/jbyte/three-dragcontrols#readme).
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/drag-controls.
import * as THREE from "three";
declare class DragControls extends THREE.EventDispatcher {
static install(library: { THREE: typeof THREE }): void;
constructor(objects: readonly THREE.Object3D[], camera: THREE.Camera, domElement: HTMLCanvasElement);
deactivate(): void;
}
export = DragControls;
- Last updated: Mon, 20 Nov 2023 23:36:24 GMT
- Dependencies: @types/three
These definitions were written by Matt Hawes.