Skip to content

Commit 4510411

Browse files
committed
v23.1.1
1 parent e2c7129 commit 4510411

File tree

8 files changed

+17
-17
lines changed

8 files changed

+17
-17
lines changed

dist/tween.amd.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -424,12 +424,12 @@ define(['exports'], (function (exports) { 'use strict';
424424
throw new Error('Can not call Tween.to() while Tween is already started or paused. Stop the Tween first.');
425425
this._valuesEnd = target;
426426
this._propertiesAreSetUp = false;
427-
this._duration = duration;
427+
this._duration = duration < 0 ? 0 : duration;
428428
return this;
429429
};
430430
Tween.prototype.duration = function (duration) {
431431
if (duration === void 0) { duration = 1000; }
432-
this._duration = duration;
432+
this._duration = duration < 0 ? 0 : duration;
433433
return this;
434434
};
435435
Tween.prototype.dynamic = function (dynamic) {
@@ -832,7 +832,7 @@ define(['exports'], (function (exports) { 'use strict';
832832
return Tween;
833833
}());
834834

835-
var VERSION = '23.1.0';
835+
var VERSION = '23.1.1';
836836

837837
/**
838838
* Tween.js - Licensed under the MIT license

dist/tween.cjs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -426,12 +426,12 @@ var Tween = /** @class */ (function () {
426426
throw new Error('Can not call Tween.to() while Tween is already started or paused. Stop the Tween first.');
427427
this._valuesEnd = target;
428428
this._propertiesAreSetUp = false;
429-
this._duration = duration;
429+
this._duration = duration < 0 ? 0 : duration;
430430
return this;
431431
};
432432
Tween.prototype.duration = function (duration) {
433433
if (duration === void 0) { duration = 1000; }
434-
this._duration = duration;
434+
this._duration = duration < 0 ? 0 : duration;
435435
return this;
436436
};
437437
Tween.prototype.dynamic = function (dynamic) {
@@ -834,7 +834,7 @@ var Tween = /** @class */ (function () {
834834
return Tween;
835835
}());
836836

837-
var VERSION = '23.1.0';
837+
var VERSION = '23.1.1';
838838

839839
/**
840840
* Tween.js - Licensed under the MIT license

dist/tween.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ declare class Sequence {
153153
static nextId(): number;
154154
}
155155

156-
declare const VERSION = "23.1.0";
156+
declare const VERSION = "23.1.1";
157157

158158
declare const nextId: typeof Sequence.nextId;
159159
declare const getAll: () => Tween<UnknownProps>[];

dist/tween.esm.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -422,12 +422,12 @@ var Tween = /** @class */ (function () {
422422
throw new Error('Can not call Tween.to() while Tween is already started or paused. Stop the Tween first.');
423423
this._valuesEnd = target;
424424
this._propertiesAreSetUp = false;
425-
this._duration = duration;
425+
this._duration = duration < 0 ? 0 : duration;
426426
return this;
427427
};
428428
Tween.prototype.duration = function (duration) {
429429
if (duration === void 0) { duration = 1000; }
430-
this._duration = duration;
430+
this._duration = duration < 0 ? 0 : duration;
431431
return this;
432432
};
433433
Tween.prototype.dynamic = function (dynamic) {
@@ -830,7 +830,7 @@ var Tween = /** @class */ (function () {
830830
return Tween;
831831
}());
832832

833-
var VERSION = '23.1.0';
833+
var VERSION = '23.1.1';
834834

835835
/**
836836
* Tween.js - Licensed under the MIT license

dist/tween.umd.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -428,12 +428,12 @@
428428
throw new Error('Can not call Tween.to() while Tween is already started or paused. Stop the Tween first.');
429429
this._valuesEnd = target;
430430
this._propertiesAreSetUp = false;
431-
this._duration = duration;
431+
this._duration = duration < 0 ? 0 : duration;
432432
return this;
433433
};
434434
Tween.prototype.duration = function (duration) {
435435
if (duration === void 0) { duration = 1000; }
436-
this._duration = duration;
436+
this._duration = duration < 0 ? 0 : duration;
437437
return this;
438438
};
439439
Tween.prototype.dynamic = function (dynamic) {
@@ -836,7 +836,7 @@
836836
return Tween;
837837
}());
838838

839-
var VERSION = '23.1.0';
839+
var VERSION = '23.1.1';
840840

841841
/**
842842
* Tween.js - Licensed under the MIT license

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@tweenjs/tween.js",
33
"description": "Simple and fast tweening engine with optimised Robert Penner's equations.",
4-
"version": "23.1.0",
4+
"version": "23.1.1",
55
"type": "module",
66
"main": "dist/tween.cjs",
77
"types": "dist/tween.d.ts",

src/Version.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
const VERSION = '23.1.0'
1+
const VERSION = '23.1.1'
22
export default VERSION

0 commit comments

Comments
 (0)