浏览代码

Merge pull request #17870 from RazorDE/animation-mixer-root-ts-def

Specified datatype of root object in AnimationMixer.d.ts
Mr.doob 5 年之前
父节点
当前提交
af234f1e02
共有 1 个文件被更改,包括 7 次插入6 次删除
  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;
 
 }