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.
This commit is contained in:
Dean Harding
2016-12-06 21:58:22 +11:00
parent 45a9a433f4
commit 9d67f745a7

9
three/index.d.ts vendored
View File

@@ -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 {