浏览代码

TS: Clean up.

Mugen87 5 年之前
父节点
当前提交
327d7c556a
共有 2 个文件被更改,包括 14 次插入5 次删除
  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
 	 */