animationRange.js 791 B

123456789101112131415161718192021222324252627282930
  1. /**
  2. * Represents the range of an animation
  3. */
  4. export class AnimationRange {
  5. /**
  6. * Initializes the range of an animation
  7. * @param name The name of the animation range
  8. * @param from The starting frame of the animation
  9. * @param to The ending frame of the animation
  10. */
  11. constructor(
  12. /**The name of the animation range**/
  13. name,
  14. /**The starting frame of the animation */
  15. from,
  16. /**The ending frame of the animation*/
  17. to) {
  18. this.name = name;
  19. this.from = from;
  20. this.to = to;
  21. }
  22. /**
  23. * Makes a copy of the animation range
  24. * @returns A copy of the animation range
  25. */
  26. clone() {
  27. return new AnimationRange(this.name, this.from, this.to);
  28. }
  29. }
  30. //# sourceMappingURL=animationRange.js.map