animationKey.ts 793 B

1234567891011121314151617181920212223242526272829303132333435
  1. /**
  2. * Defines an interface which represents an animation key frame
  3. */
  4. export interface IAnimationKey {
  5. /**
  6. * Frame of the key frame
  7. */
  8. frame: number;
  9. /**
  10. * Value at the specifies key frame
  11. */
  12. value: any;
  13. /**
  14. * The input tangent for the cubic hermite spline
  15. */
  16. inTangent?: any;
  17. /**
  18. * The output tangent for the cubic hermite spline
  19. */
  20. outTangent?: any;
  21. /**
  22. * The animation interpolation type
  23. */
  24. interpolation?: AnimationKeyInterpolation;
  25. }
  26. /**
  27. * Enum for the animation key frame interpolation type
  28. */
  29. export enum AnimationKeyInterpolation {
  30. /**
  31. * Do not interpolate between keys and use the start key value only. Tangents are ignored
  32. */
  33. STEP = 1
  34. }