diff --git a/types/three/index.d.ts b/types/three/index.d.ts index 8a83de8cae..35da8911ed 100644 --- a/types/three/index.d.ts +++ b/types/three/index.d.ts @@ -18,6 +18,7 @@ // Apurva Ojas , // Tiger Oakes , // Seth Kingsley +// Ethan Kay // Definitions: https://github.com//DefinitelyTyped export * from "./three-core"; @@ -28,6 +29,7 @@ export * from "./three-copyshader"; export * from "./three-css3drenderer"; export * from "./three-ctmloader"; export * from "./three-ddsloader"; +export * from './three-dragcontrols'; export * from "./three-editorcontrols"; export * from "./three-effectcomposer"; export * from "./three-examples"; diff --git a/types/three/three-core.d.ts b/types/three/three-core.d.ts index 520db93b96..0cf83b7257 100755 --- a/types/three/three-core.d.ts +++ b/types/three/three-core.d.ts @@ -1447,6 +1447,15 @@ export class Geometry extends EventDispatcher { dispatchEvent(event: { type: string; [attachment: string]: any; }): void; } +/** + * @see examples/js/BufferGeometryUtils.js + */ +export namespace BufferGeometryUtils { + export function mergeBufferGeometries(geometries: BufferGeometry[]): BufferGeometry; + export function computeTangents(geometry: BufferGeometry): null; + export function mergeBufferAttributes(attributes: BufferAttribute[]): BufferAttribute; +} + /** * @deprecated */ diff --git a/types/three/three-dragcontrols.d.ts b/types/three/three-dragcontrols.d.ts new file mode 100644 index 0000000000..5f4afbb0b4 --- /dev/null +++ b/types/three/three-dragcontrols.d.ts @@ -0,0 +1,5 @@ +import {Camera, Object3D} from './three-core'; + +export class DragControls { + constructor(objects: Object3D[], camera: Camera, domElement?: HTMLElement); +}