2
0
Mugen87 5 жил өмнө
parent
commit
327d7c556a

+ 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
 	 */