Browse Source

TS: Clean up.

Mugen87 5 năm trước cách đây
mục cha
commit
327d7c556a
2 tập tin đã thay đổi với 14 bổ sung5 xóa
  1. 9 0
      src/animation/AnimationUtils.d.ts
  2. 5 5
      src/extras/ImageUtils.d.ts

+ 9 - 0
src/animation/AnimationUtils.d.ts

@@ -1,3 +1,5 @@
+import { AnimationClip } from './AnimationClip';
+
 export namespace AnimationUtils {
 	export function arraySlice( array: any, from: number, to: number ): any;
 	export function convertArray( array: any, type: any, forceClone: boolean ): any;
@@ -14,4 +16,11 @@ export namespace AnimationUtils {
 		values: any[],
 		valuePropertyName: string
 	): void;
+	export function subclip(
+		sourceClip: AnimationClip,
+		name: string,
+		startFrame: number,
+		endFrame: number,
+		fps?: number
+	): AnimationClip;
 }

+ 5 - 5
src/extras/ImageUtils.d.ts

@@ -1,12 +1,12 @@
 import { Mapping } from '../constants';
 import { Texture } from '../textures/Texture';
 
-// Extras /////////////////////////////////////////////////////////////////////
-
-/**
- * @deprecated Use {@link TextureLoader} instead.
- */
 export namespace ImageUtils {
+
+	export function getDataURL(
+		image: any,
+	): string;
+
 	/**
 	 * @deprecated
 	 */