@tweenjs/tween.js 18.6.3 → 18.6.4
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/tween.amd.js +4 -5
- package/dist/tween.cjs.js +4 -5
- package/dist/tween.d.ts +8 -8
- package/dist/tween.esm.js +4 -5
- package/dist/tween.umd.js +4 -5
- package/package.json +6 -4
package/dist/tween.amd.js
CHANGED
@@ -746,10 +746,9 @@ define(['exports'], function (exports) { 'use strict';
|
|
746
746
|
};
|
747
747
|
Tween.prototype._swapEndStartRepeatValues = function (property) {
|
748
748
|
var tmp = this._valuesStartRepeat[property];
|
749
|
-
|
750
|
-
|
751
|
-
|
752
|
-
this._valuesStartRepeat[property] = this._valuesStartRepeat[property] + parseFloat(this._valuesEnd[property]);
|
749
|
+
var endValue = this._valuesEnd[property];
|
750
|
+
if (typeof endValue === 'string') {
|
751
|
+
this._valuesStartRepeat[property] = this._valuesStartRepeat[property] + parseFloat(endValue);
|
753
752
|
}
|
754
753
|
else {
|
755
754
|
this._valuesStartRepeat[property] = this._valuesEnd[property];
|
@@ -759,7 +758,7 @@ define(['exports'], function (exports) { 'use strict';
|
|
759
758
|
return Tween;
|
760
759
|
}());
|
761
760
|
|
762
|
-
var VERSION = '18.6.
|
761
|
+
var VERSION = '18.6.4';
|
763
762
|
|
764
763
|
/**
|
765
764
|
* Tween.js - Licensed under the MIT license
|
package/dist/tween.cjs.js
CHANGED
@@ -748,10 +748,9 @@ var Tween = /** @class */ (function () {
|
|
748
748
|
};
|
749
749
|
Tween.prototype._swapEndStartRepeatValues = function (property) {
|
750
750
|
var tmp = this._valuesStartRepeat[property];
|
751
|
-
|
752
|
-
|
753
|
-
|
754
|
-
this._valuesStartRepeat[property] = this._valuesStartRepeat[property] + parseFloat(this._valuesEnd[property]);
|
751
|
+
var endValue = this._valuesEnd[property];
|
752
|
+
if (typeof endValue === 'string') {
|
753
|
+
this._valuesStartRepeat[property] = this._valuesStartRepeat[property] + parseFloat(endValue);
|
755
754
|
}
|
756
755
|
else {
|
757
756
|
this._valuesStartRepeat[property] = this._valuesEnd[property];
|
@@ -761,7 +760,7 @@ var Tween = /** @class */ (function () {
|
|
761
760
|
return Tween;
|
762
761
|
}());
|
763
762
|
|
764
|
-
var VERSION = '18.6.
|
763
|
+
var VERSION = '18.6.4';
|
765
764
|
|
766
765
|
/**
|
767
766
|
* Tween.js - Licensed under the MIT license
|
package/dist/tween.d.ts
CHANGED
@@ -142,7 +142,7 @@ declare class Tween<T extends UnknownProps> {
|
|
142
142
|
private _handleRelativeValue;
|
143
143
|
private _swapEndStartRepeatValues;
|
144
144
|
}
|
145
|
-
declare type UnknownProps = Record<string,
|
145
|
+
declare type UnknownProps = Record<string, any>;
|
146
146
|
|
147
147
|
/**
|
148
148
|
* Controlling groups of tweens
|
@@ -170,13 +170,13 @@ declare class Sequence {
|
|
170
170
|
static nextId(): number;
|
171
171
|
}
|
172
172
|
|
173
|
-
declare const VERSION = "18.6.
|
173
|
+
declare const VERSION = "18.6.4";
|
174
174
|
|
175
175
|
declare const nextId: typeof Sequence.nextId;
|
176
|
-
declare const getAll: () => Tween<Record<string,
|
176
|
+
declare const getAll: () => Tween<Record<string, any>>[];
|
177
177
|
declare const removeAll: () => void;
|
178
|
-
declare const add: (tween: Tween<Record<string,
|
179
|
-
declare const remove: (tween: Tween<Record<string,
|
178
|
+
declare const add: (tween: Tween<Record<string, any>>) => void;
|
179
|
+
declare const remove: (tween: Tween<Record<string, any>>) => void;
|
180
180
|
declare const update: (time?: number, preserve?: boolean) => boolean;
|
181
181
|
declare const exports: {
|
182
182
|
Easing: {
|
@@ -251,10 +251,10 @@ declare const exports: {
|
|
251
251
|
nextId: typeof Sequence.nextId;
|
252
252
|
Tween: typeof Tween;
|
253
253
|
VERSION: string;
|
254
|
-
getAll: () => Tween<Record<string,
|
254
|
+
getAll: () => Tween<Record<string, any>>[];
|
255
255
|
removeAll: () => void;
|
256
|
-
add: (tween: Tween<Record<string,
|
257
|
-
remove: (tween: Tween<Record<string,
|
256
|
+
add: (tween: Tween<Record<string, any>>) => void;
|
257
|
+
remove: (tween: Tween<Record<string, any>>) => void;
|
258
258
|
update: (time?: number, preserve?: boolean) => boolean;
|
259
259
|
};
|
260
260
|
|
package/dist/tween.esm.js
CHANGED
@@ -744,10 +744,9 @@ var Tween = /** @class */ (function () {
|
|
744
744
|
};
|
745
745
|
Tween.prototype._swapEndStartRepeatValues = function (property) {
|
746
746
|
var tmp = this._valuesStartRepeat[property];
|
747
|
-
|
748
|
-
|
749
|
-
|
750
|
-
this._valuesStartRepeat[property] = this._valuesStartRepeat[property] + parseFloat(this._valuesEnd[property]);
|
747
|
+
var endValue = this._valuesEnd[property];
|
748
|
+
if (typeof endValue === 'string') {
|
749
|
+
this._valuesStartRepeat[property] = this._valuesStartRepeat[property] + parseFloat(endValue);
|
751
750
|
}
|
752
751
|
else {
|
753
752
|
this._valuesStartRepeat[property] = this._valuesEnd[property];
|
@@ -757,7 +756,7 @@ var Tween = /** @class */ (function () {
|
|
757
756
|
return Tween;
|
758
757
|
}());
|
759
758
|
|
760
|
-
var VERSION = '18.6.
|
759
|
+
var VERSION = '18.6.4';
|
761
760
|
|
762
761
|
/**
|
763
762
|
* Tween.js - Licensed under the MIT license
|
package/dist/tween.umd.js
CHANGED
@@ -750,10 +750,9 @@
|
|
750
750
|
};
|
751
751
|
Tween.prototype._swapEndStartRepeatValues = function (property) {
|
752
752
|
var tmp = this._valuesStartRepeat[property];
|
753
|
-
|
754
|
-
|
755
|
-
|
756
|
-
this._valuesStartRepeat[property] = this._valuesStartRepeat[property] + parseFloat(this._valuesEnd[property]);
|
753
|
+
var endValue = this._valuesEnd[property];
|
754
|
+
if (typeof endValue === 'string') {
|
755
|
+
this._valuesStartRepeat[property] = this._valuesStartRepeat[property] + parseFloat(endValue);
|
757
756
|
}
|
758
757
|
else {
|
759
758
|
this._valuesStartRepeat[property] = this._valuesEnd[property];
|
@@ -763,7 +762,7 @@
|
|
763
762
|
return Tween;
|
764
763
|
}());
|
765
764
|
|
766
|
-
var VERSION = '18.6.
|
765
|
+
var VERSION = '18.6.4';
|
767
766
|
|
768
767
|
/**
|
769
768
|
* 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": "Super simple, fast and easy to use tweening engine which incorporates optimised Robert Penner's equations.",
|
4
|
-
"version": "18.6.
|
4
|
+
"version": "18.6.4",
|
5
5
|
"main": "dist/tween.cjs.js",
|
6
6
|
"types": "dist/tween.d.ts",
|
7
7
|
"module": "dist/tween.esm.js",
|
@@ -25,6 +25,7 @@
|
|
25
25
|
],
|
26
26
|
"dependencies": {},
|
27
27
|
"scripts": {
|
28
|
+
"dev": "(npm run tsc-watch -- --preserveWatchOutput & p1=$!; npm run rollup-build -- --watch & p2=$!; wait $p1 $p2)",
|
28
29
|
"build": "rimraf dist .tmp && node scripts/write-version.js && npm run tsc && npm run rollup-build",
|
29
30
|
"rollup-build": "rollup -c ./rollup.config.js",
|
30
31
|
"tsc": "tsc",
|
@@ -37,9 +38,10 @@
|
|
37
38
|
"prettier": "prettier './**/*.{js,ts,md,json,html,css}'",
|
38
39
|
"prepare": "npm run build",
|
39
40
|
"version": "npm test && git add .",
|
40
|
-
"release:patch": "npm version patch --message 'v%s' && npm publish &&
|
41
|
-
"release:minor": "npm version minor --message 'v%s' && npm publish &&
|
42
|
-
"release:major": "npm version major --message 'v%s' && npm publish &&
|
41
|
+
"release:patch": "npm version patch --message 'v%s' && npm publish && npm run _release:push-branch",
|
42
|
+
"release:minor": "npm version minor --message 'v%s' && npm publish && npm run _release:push-branch",
|
43
|
+
"release:major": "npm version major --message 'v%s' && npm publish && npm run _release:push-branch",
|
44
|
+
"_release:push-branch": "git push --follow-tags --set-upstream origin `git rev-parse --abbrev-ref HEAD`"
|
43
45
|
},
|
44
46
|
"author": "tween.js contributors (https://github.com/tweenjs/tween.js/graphs/contributors)",
|
45
47
|
"devDependencies": {
|