Sfoglia il codice sorgente

Specified datatype of root object in AnimationMixer.d.ts

Walter Heil 5 anni fa
parent
commit
c45f813b7d
1 ha cambiato i file con 7 aggiunte e 6 eliminazioni
  1. 7 6
      src/animation/AnimationMixer.d.ts

+ 7 - 6
src/animation/AnimationMixer.d.ts

@@ -1,22 +1,23 @@
 import { AnimationClip } from './AnimationClip';
 import { AnimationAction } from './AnimationAction';
 import { EventDispatcher } from './../core/EventDispatcher';
+import { Object3D } from '../core/Object3D';
 
 export class AnimationMixer extends EventDispatcher {
 
-	constructor( root: any );
+	constructor( root: Object3D );
 
 	time: number;
 	timeScale: number;
 
-	clipAction( clip: AnimationClip, root?: any ): AnimationAction;
-	existingAction( clip: AnimationClip, root?: any ): AnimationAction;
+	clipAction( clip: AnimationClip, root?: Object3D ): AnimationAction;
+	existingAction( clip: AnimationClip, root?: Object3D ): AnimationAction;
 	stopAllAction(): AnimationMixer;
 	update( deltaTime: number ): AnimationMixer;
 	setTime( timeInSeconds: number ): AnimationMixer;
-	getRoot(): any;
+	getRoot(): Object3D;
 	uncacheClip( clip: AnimationClip ): void;
-	uncacheRoot( root: any ): void;
-	uncacheAction( clip: AnimationClip, root?: any ): void;
+	uncacheRoot( root: Object3D ): void;
+	uncacheAction( clip: AnimationClip, root?: Object3D ): void;
 
 }