From 9d67f745a7607ffa0421907b5cdef22f87fa2c4d Mon Sep 17 00:00:00 2001 From: Dean Harding Date: Tue, 6 Dec 2016 21:58:22 +1100 Subject: [PATCH] The PR contains three fairly simple changes: 1. Geometry has method computeFlatVertexNormals (added in mrdoob/three.js#9222) 2. The type of image in DataTexture is actually ImageData. 3. The type of the first parameter in AnimationAction.setLoop() is the enum AnimationActionLoopStyles. --- three/index.d.ts | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/three/index.d.ts b/three/index.d.ts index 1a691e7878..b331662342 100644 --- a/three/index.d.ts +++ b/three/index.d.ts @@ -261,7 +261,7 @@ declare namespace THREE { reset(): AnimationAction; isRunning(): boolean; startAt(time: number): AnimationAction; - setLoop(mode: boolean, repetitions: number): AnimationAction; + setLoop(mode: AnimationActionLoopStyles, repetitions?: number): AnimationAction; setEffectiveWeight(weight: number): AnimationAction; getEffectiveWeight(): number; fadeIn(duration: number): AnimationAction; @@ -1285,6 +1285,11 @@ declare namespace THREE { */ computeVertexNormals(areaWeighted?: boolean): void; + /** + * Compute vertex normals, but duplicating face normals. + */ + computeFlatVertexNormals(): void; + /** * Computes morph normals. */ @@ -5729,7 +5734,7 @@ declare namespace THREE { encoding?: TextureEncoding ); - image: { data: ImageData; width: number; height: number; }; + image: ImageData; } export class VideoTexture extends Texture {