KeyframeTrack.d.ts 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  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. /**
  7. * @param name
  8. * @param times
  9. * @param values
  10. * @param [interpolation=THREE.InterpolateLinear]
  11. */
  12. constructor(
  13. name: string,
  14. times: ArrayLike<any>,
  15. values: ArrayLike<any>,
  16. interpolation?: InterpolationModes
  17. );
  18. name: string;
  19. times: Float32Array;
  20. values: Float32Array;
  21. ValueTypeName: string;
  22. TimeBufferType: Float32Array;
  23. ValueBufferType: Float32Array;
  24. /**
  25. * @default THREE.InterpolateLinear
  26. */
  27. DefaultInterpolation: InterpolationModes;
  28. InterpolantFactoryMethodDiscrete( result: any ): DiscreteInterpolant;
  29. InterpolantFactoryMethodLinear( result: any ): LinearInterpolant;
  30. InterpolantFactoryMethodSmooth( result: any ): CubicInterpolant;
  31. setInterpolation( interpolation: InterpolationModes ): KeyframeTrack;
  32. getInterpolation(): InterpolationModes;
  33. getValueSize(): number;
  34. shift( timeOffset: number ): KeyframeTrack;
  35. scale( timeScale: number ): KeyframeTrack;
  36. trim( startTime: number, endTime: number ): KeyframeTrack;
  37. validate(): boolean;
  38. optimize(): KeyframeTrack;
  39. clone(): KeyframeTrack;
  40. static toJSON( track: KeyframeTrack ): any;
  41. }
粤ICP备19079148号