mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-01 12:42:58 +08:00
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:
9
three/index.d.ts
vendored
9
three/index.d.ts
vendored
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user