From f3972aafa3f1138122f2dbb1044cbfe1db78f8c7 Mon Sep 17 00:00:00 2001 From: Ethan Kay Date: Tue, 7 Aug 2018 12:53:53 -0700 Subject: [PATCH 1/2] Added basic types for ThreeJS BufferGeometryUtils and DragControls --- types/three/index.d.ts | 1 + types/three/three-core.d.ts | 9 +++++++++ 2 files changed, 10 insertions(+) diff --git a/types/three/index.d.ts b/types/three/index.d.ts index 8a83de8cae..abdff1c0bd 100644 --- a/types/three/index.d.ts +++ b/types/three/index.d.ts @@ -28,6 +28,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 3ede78987f..cb527699b2 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: any[]): BufferGeometry; + export function computeTangents(geometry: BufferGeometry): null; + export function mergeBufferAttributes(attributes: any[]): BufferAttribute; +} + /** * @deprecated */ From 32110fb5b1b51f80df06ff9f9ad310185382ceee Mon Sep 17 00:00:00 2001 From: Ethan Kay Date: Tue, 7 Aug 2018 12:53:53 -0700 Subject: [PATCH 2/2] Added basic types for ThreeJS BufferGeometryUtils and DragControls --- types/three/index.d.ts | 1 + types/three/three-core.d.ts | 9 +++++++++ 2 files changed, 10 insertions(+) diff --git a/types/three/index.d.ts b/types/three/index.d.ts index 8a83de8cae..abdff1c0bd 100644 --- a/types/three/index.d.ts +++ b/types/three/index.d.ts @@ -28,6 +28,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 3ede78987f..cb527699b2 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: any[]): BufferGeometry; + export function computeTangents(geometry: BufferGeometry): null; + export function mergeBufferAttributes(attributes: any[]): BufferAttribute; +} + /** * @deprecated */