@tweenjs/tween.js 23.1.0 → 23.1.1
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 +3 -3
- package/dist/tween.cjs +3 -3
- package/dist/tween.d.ts +1 -1
- package/dist/tween.esm.js +3 -3
- package/dist/tween.umd.js +3 -3
- package/package.json +1 -1
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.
|
|
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.
|
|
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
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.
|
|
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.
|
|
839
|
+
var VERSION = '23.1.1';
|
|
840
840
|
|
|
841
841
|
/**
|
|
842
842
|
* Tween.js - Licensed under the MIT license
|
package/package.json
CHANGED