浏览代码

[Typescript definition] animation.dataType is a number & setKeys signature fix

Vincent Bouzon 11 年之前
父节点
当前提交
531acee6d2
共有 1 个文件被更改,包括 4 次插入4 次删除
  1. 4 4
      Typescript/Animations/babylon.animation.d.ts

+ 4 - 4
Typescript/Animations/babylon.animation.d.ts

@@ -6,16 +6,16 @@ declare module BABYLON {
         targetProperty: string;
         targetPropertyPath: string[];
         framePerSecond: number;
-        dataType: string;
+        dataType: number;
         loopMode: number;
         _keys: number[];
         _offsetCache: Object;
         _highLimitsCache: Object;
 
-        constructor(name: string, targetProperty: string, framePerSecond: number, dataType: string, loopMode: number);
+        constructor(name: string, targetProperty: string, framePerSecond: number, dataType: number, loopMode: number);
 
         clone(): Animation;
-        setKeys(values: number[]);
+        setKeys(values: any[]);
         _interpolate(currentFrame: number, repeatCount: number, loopMode: number, offsetValue: number, highLimitValue: number);
         animate(target: Object, delay: number, from: number, to: number, loop: boolean, speedRatio: number): boolean;
         
@@ -28,4 +28,4 @@ declare module BABYLON {
         static ANIMATIONLOOPMODE_CYCLE: number;
         static ANIMATIONLOOPMODE_CONSTANT: number;
     }
-}
+}