@tweenjs/tween.js 23.1.0 → 23.1.1

Sign up to get free protection for your applications and to get access to all the features.
package/dist/tween.amd.js CHANGED
@@ -424,12 +424,12 @@ define(['exports'], (function (exports) { 'use strict';
424
424
  throw new Error('Can not call Tween.to() while Tween is already started or paused. Stop the Tween first.');
425
425
  this._valuesEnd = target;
426
426
  this._propertiesAreSetUp = false;
427
- this._duration = duration;
427
+ this._duration = duration < 0 ? 0 : duration;
428
428
  return this;
429
429
  };
430
430
  Tween.prototype.duration = function (duration) {
431
431
  if (duration === void 0) { duration = 1000; }
432
- this._duration = duration;
432
+ this._duration = duration < 0 ? 0 : duration;
433
433
  return this;
434
434
  };
435
435
  Tween.prototype.dynamic = function (dynamic) {
@@ -832,7 +832,7 @@ define(['exports'], (function (exports) { 'use strict';
832
832
  return Tween;
833
833
  }());
834
834
 
835
- var VERSION = '23.1.0';
835
+ var VERSION = '23.1.1';
836
836
 
837
837
  /**
838
838
  * Tween.js - Licensed under the MIT license
package/dist/tween.cjs CHANGED
@@ -426,12 +426,12 @@ var Tween = /** @class */ (function () {
426
426
  throw new Error('Can not call Tween.to() while Tween is already started or paused. Stop the Tween first.');
427
427
  this._valuesEnd = target;
428
428
  this._propertiesAreSetUp = false;
429
- this._duration = duration;
429
+ this._duration = duration < 0 ? 0 : duration;
430
430
  return this;
431
431
  };
432
432
  Tween.prototype.duration = function (duration) {
433
433
  if (duration === void 0) { duration = 1000; }
434
- this._duration = duration;
434
+ this._duration = duration < 0 ? 0 : duration;
435
435
  return this;
436
436
  };
437
437
  Tween.prototype.dynamic = function (dynamic) {
@@ -834,7 +834,7 @@ var Tween = /** @class */ (function () {
834
834
  return Tween;
835
835
  }());
836
836
 
837
- var VERSION = '23.1.0';
837
+ var VERSION = '23.1.1';
838
838
 
839
839
  /**
840
840
  * Tween.js - Licensed under the MIT license
package/dist/tween.d.ts CHANGED
@@ -153,7 +153,7 @@ declare class Sequence {
153
153
  static nextId(): number;
154
154
  }
155
155
 
156
- declare const VERSION = "23.1.0";
156
+ declare const VERSION = "23.1.1";
157
157
 
158
158
  declare const nextId: typeof Sequence.nextId;
159
159
  declare const getAll: () => Tween<UnknownProps>[];
package/dist/tween.esm.js CHANGED
@@ -422,12 +422,12 @@ var Tween = /** @class */ (function () {
422
422
  throw new Error('Can not call Tween.to() while Tween is already started or paused. Stop the Tween first.');
423
423
  this._valuesEnd = target;
424
424
  this._propertiesAreSetUp = false;
425
- this._duration = duration;
425
+ this._duration = duration < 0 ? 0 : duration;
426
426
  return this;
427
427
  };
428
428
  Tween.prototype.duration = function (duration) {
429
429
  if (duration === void 0) { duration = 1000; }
430
- this._duration = duration;
430
+ this._duration = duration < 0 ? 0 : duration;
431
431
  return this;
432
432
  };
433
433
  Tween.prototype.dynamic = function (dynamic) {
@@ -830,7 +830,7 @@ var Tween = /** @class */ (function () {
830
830
  return Tween;
831
831
  }());
832
832
 
833
- var VERSION = '23.1.0';
833
+ var VERSION = '23.1.1';
834
834
 
835
835
  /**
836
836
  * Tween.js - Licensed under the MIT license
package/dist/tween.umd.js CHANGED
@@ -428,12 +428,12 @@
428
428
  throw new Error('Can not call Tween.to() while Tween is already started or paused. Stop the Tween first.');
429
429
  this._valuesEnd = target;
430
430
  this._propertiesAreSetUp = false;
431
- this._duration = duration;
431
+ this._duration = duration < 0 ? 0 : duration;
432
432
  return this;
433
433
  };
434
434
  Tween.prototype.duration = function (duration) {
435
435
  if (duration === void 0) { duration = 1000; }
436
- this._duration = duration;
436
+ this._duration = duration < 0 ? 0 : duration;
437
437
  return this;
438
438
  };
439
439
  Tween.prototype.dynamic = function (dynamic) {
@@ -836,7 +836,7 @@
836
836
  return Tween;
837
837
  }());
838
838
 
839
- var VERSION = '23.1.0';
839
+ var VERSION = '23.1.1';
840
840
 
841
841
  /**
842
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.1.0",
4
+ "version": "23.1.1",
5
5
  "type": "module",
6
6
  "main": "dist/tween.cjs",
7
7
  "types": "dist/tween.d.ts",