KeyframeTrack.d.ts 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. import { DiscreteInterpolant } from './../math/interpolants/DiscreteInterpolant';
  2. import { LinearInterpolant } from './../math/interpolants/LinearInterpolant';
  3. import { CubicInterpolant } from './../math/interpolants/CubicInterpolant';
  4. import { InterpolationModes } from '../constants';
  5. export class KeyframeTrack {
  6. constructor(
  7. name: string,
  8. times: any[],
  9. values: any[],
  10. interpolation?: InterpolationModes
  11. );
  12. name: string;
  13. times: Float32Array;
  14. values: Float32Array;
  15. ValueTypeName: string;
  16. TimeBufferType: Float32Array;
  17. ValueBufferType: Float32Array;
  18. DefaultInterpolation: InterpolationModes;
  19. InterpolantFactoryMethodDiscrete( result: any ): DiscreteInterpolant;
  20. InterpolantFactoryMethodLinear( result: any ): LinearInterpolant;
  21. InterpolantFactoryMethodSmooth( result: any ): CubicInterpolant;
  22. setInterpolation( interpolation: InterpolationModes ): KeyframeTrack;
  23. getInterpolation(): InterpolationModes;
  24. getValuesize(): number;
  25. shift( timeOffset: number ): KeyframeTrack;
  26. scale( timeScale: number ): KeyframeTrack;
  27. trim( startTime: number, endTime: number ): KeyframeTrack;
  28. validate(): boolean;
  29. optimize(): KeyframeTrack;
  30. clone(): KeyframeTrack;
  31. static toJSON( track: KeyframeTrack ): any;
  32. }