@tweenjs/tween.js 23.0.0 → 23.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/tween.amd.js CHANGED
@@ -415,6 +415,9 @@ define(['exports'], (function (exports) { 'use strict';
415
415
  Tween.prototype.isPaused = function () {
416
416
  return this._isPaused;
417
417
  };
418
+ Tween.prototype.getDuration = function () {
419
+ return this._duration;
420
+ };
418
421
  Tween.prototype.to = function (target, duration) {
419
422
  if (duration === void 0) { duration = 1000; }
420
423
  if (this._isPlaying)
@@ -829,7 +832,7 @@ define(['exports'], (function (exports) { 'use strict';
829
832
  return Tween;
830
833
  }());
831
834
 
832
- var VERSION = '23.0.0';
835
+ var VERSION = '23.1.0';
833
836
 
834
837
  /**
835
838
  * Tween.js - Licensed under the MIT license
package/dist/tween.cjs CHANGED
@@ -417,6 +417,9 @@ var Tween = /** @class */ (function () {
417
417
  Tween.prototype.isPaused = function () {
418
418
  return this._isPaused;
419
419
  };
420
+ Tween.prototype.getDuration = function () {
421
+ return this._duration;
422
+ };
420
423
  Tween.prototype.to = function (target, duration) {
421
424
  if (duration === void 0) { duration = 1000; }
422
425
  if (this._isPlaying)
@@ -831,7 +834,7 @@ var Tween = /** @class */ (function () {
831
834
  return Tween;
832
835
  }());
833
836
 
834
- var VERSION = '23.0.0';
837
+ var VERSION = '23.1.0';
835
838
 
836
839
  /**
837
840
  * Tween.js - Licensed under the MIT license
package/dist/tween.d.ts CHANGED
@@ -104,6 +104,7 @@ declare class Tween<T extends UnknownProps> {
104
104
  getId(): number;
105
105
  isPlaying(): boolean;
106
106
  isPaused(): boolean;
107
+ getDuration(): number;
107
108
  to(target: UnknownProps, duration?: number): this;
108
109
  duration(duration?: number): this;
109
110
  dynamic(dynamic?: boolean): this;
@@ -152,7 +153,7 @@ declare class Sequence {
152
153
  static nextId(): number;
153
154
  }
154
155
 
155
- declare const VERSION = "23.0.0";
156
+ declare const VERSION = "23.1.0";
156
157
 
157
158
  declare const nextId: typeof Sequence.nextId;
158
159
  declare const getAll: () => Tween<UnknownProps>[];
package/dist/tween.esm.js CHANGED
@@ -413,6 +413,9 @@ var Tween = /** @class */ (function () {
413
413
  Tween.prototype.isPaused = function () {
414
414
  return this._isPaused;
415
415
  };
416
+ Tween.prototype.getDuration = function () {
417
+ return this._duration;
418
+ };
416
419
  Tween.prototype.to = function (target, duration) {
417
420
  if (duration === void 0) { duration = 1000; }
418
421
  if (this._isPlaying)
@@ -827,7 +830,7 @@ var Tween = /** @class */ (function () {
827
830
  return Tween;
828
831
  }());
829
832
 
830
- var VERSION = '23.0.0';
833
+ var VERSION = '23.1.0';
831
834
 
832
835
  /**
833
836
  * Tween.js - Licensed under the MIT license
package/dist/tween.umd.js CHANGED
@@ -419,6 +419,9 @@
419
419
  Tween.prototype.isPaused = function () {
420
420
  return this._isPaused;
421
421
  };
422
+ Tween.prototype.getDuration = function () {
423
+ return this._duration;
424
+ };
422
425
  Tween.prototype.to = function (target, duration) {
423
426
  if (duration === void 0) { duration = 1000; }
424
427
  if (this._isPlaying)
@@ -833,7 +836,7 @@
833
836
  return Tween;
834
837
  }());
835
838
 
836
- var VERSION = '23.0.0';
839
+ var VERSION = '23.1.0';
837
840
 
838
841
  /**
839
842
  * Tween.js - Licensed under the MIT license
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@tweenjs/tween.js",
3
3
  "description": "Simple and fast tweening engine with optimised Robert Penner's equations.",
4
- "version": "23.0.0",
4
+ "version": "23.1.0",
5
5
  "type": "module",
6
6
  "main": "dist/tween.cjs",
7
7
  "types": "dist/tween.d.ts",