@tweenjs/tween.js 17.3.0 → 17.6.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/.tmp/Easing.d.ts +60 -0
- package/.tmp/Easing.js +188 -0
- package/.tmp/Easing.js.map +1 -0
- package/.tmp/Group.d.ts +16 -0
- package/.tmp/Group.js +58 -0
- package/.tmp/Group.js.map +1 -0
- package/.tmp/Index.d.ts +102 -0
- package/.tmp/Index.js +52 -0
- package/.tmp/Index.js.map +1 -0
- package/.tmp/Interpolation.d.ts +19 -0
- package/.tmp/Interpolation.js +81 -0
- package/.tmp/Interpolation.js.map +1 -0
- package/.tmp/Now.d.ts +2 -0
- package/.tmp/Now.js +32 -0
- package/.tmp/Now.js.map +1 -0
- package/.tmp/Sequence.d.ts +7 -0
- package/.tmp/Sequence.js +14 -0
- package/.tmp/Sequence.js.map +1 -0
- package/.tmp/Tween.d.ts +78 -0
- package/.tmp/Tween.js +404 -0
- package/.tmp/Tween.js.map +1 -0
- package/.tmp/Version.d.ts +2 -0
- package/.tmp/Version.js +3 -0
- package/.tmp/Version.js.map +1 -0
- package/.tmp/mainGroup.d.ts +2 -0
- package/.tmp/mainGroup.js +3 -0
- package/.tmp/mainGroup.js.map +1 -0
- package/.tmp/tests.cjs.js +2152 -0
- package/.tmp/tests.d.ts +91 -0
- package/.tmp/tests.js +1320 -0
- package/.tmp/tests.js.map +1 -0
- package/.travis.yml +1 -1
- package/.vscode/settings.json +4 -0
- package/.vscode/tasks.json +15 -0
- package/package.json +3 -3
- package/src/Tween.js +48 -31
- package/benchmarks/additionWithStart.js +0 -9
- package/benchmarks/additionWithUpdate.js +0 -11
- package/benchmarks/additionWithoutStart.js +0 -8
- package/benchmarks/benchmarks.html +0 -55
- package/benchmarks/updateBug.html +0 -37
- package/benchmarks/updateMany.js +0 -13
- package/src/TweenThree.js +0 -24
package/.tmp/Sequence.js
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
/**
|
2
|
+
* Utils
|
3
|
+
*/
|
4
|
+
var Sequence = /** @class */ (function () {
|
5
|
+
function Sequence() {
|
6
|
+
}
|
7
|
+
Sequence.nextId = function () {
|
8
|
+
return Sequence._nextId++;
|
9
|
+
};
|
10
|
+
Sequence._nextId = 0;
|
11
|
+
return Sequence;
|
12
|
+
}());
|
13
|
+
export default Sequence;
|
14
|
+
//# sourceMappingURL=Sequence.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"Sequence.js","sourceRoot":"","sources":["../src/Sequence.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH;IAAA;IAMA,CAAC;IAHO,eAAM,GAAb;QACC,OAAO,QAAQ,CAAC,OAAO,EAAE,CAAA;IAC1B,CAAC;IAJc,gBAAO,GAAG,CAAC,CAAA;IAK3B,eAAC;CAAA,AAND,IAMC;eANoB,QAAQ"}
|
package/.tmp/Tween.d.ts
ADDED
@@ -0,0 +1,78 @@
|
|
1
|
+
/**
|
2
|
+
* Tween.js - Licensed under the MIT license
|
3
|
+
* https://github.com/tweenjs/tween.js
|
4
|
+
* ----------------------------------------------
|
5
|
+
*
|
6
|
+
* See https://github.com/tweenjs/tween.js/graphs/contributors for the full list of contributors.
|
7
|
+
* Thank you all, you're awesome!
|
8
|
+
*/
|
9
|
+
import type { EasingFunction } from './Easing';
|
10
|
+
import type { InterpolationFunction } from './Interpolation';
|
11
|
+
import type Group from './Group';
|
12
|
+
export declare class Tween<T extends UnknownProps> {
|
13
|
+
private _object;
|
14
|
+
private _group;
|
15
|
+
private _isPaused;
|
16
|
+
private _pauseStart;
|
17
|
+
private _valuesStart;
|
18
|
+
private _valuesEnd;
|
19
|
+
private _valuesStartRepeat;
|
20
|
+
private _duration;
|
21
|
+
private _initialRepeat;
|
22
|
+
private _repeat;
|
23
|
+
private _repeatDelayTime?;
|
24
|
+
private _yoyo;
|
25
|
+
private _isPlaying;
|
26
|
+
private _reversed;
|
27
|
+
private _delayTime;
|
28
|
+
private _startTime;
|
29
|
+
private _easingFunction;
|
30
|
+
private _interpolationFunction;
|
31
|
+
private _chainedTweens;
|
32
|
+
private _onStartCallback?;
|
33
|
+
private _onStartCallbackFired;
|
34
|
+
private _onUpdateCallback?;
|
35
|
+
private _onRepeatCallback?;
|
36
|
+
private _onCompleteCallback?;
|
37
|
+
private _onStopCallback?;
|
38
|
+
private _id;
|
39
|
+
private _isChainStopped;
|
40
|
+
constructor(_object: T, _group?: Group | false);
|
41
|
+
getId(): number;
|
42
|
+
isPlaying(): boolean;
|
43
|
+
isPaused(): boolean;
|
44
|
+
to(properties: UnknownProps, duration?: number): this;
|
45
|
+
duration(d?: number): this;
|
46
|
+
start(time?: number): this;
|
47
|
+
private _setupProperties;
|
48
|
+
stop(): this;
|
49
|
+
end(): this;
|
50
|
+
pause(time?: number): this;
|
51
|
+
resume(time?: number): this;
|
52
|
+
stopChainedTweens(): this;
|
53
|
+
group(group?: Group): this;
|
54
|
+
delay(amount?: number): this;
|
55
|
+
repeat(times?: number): this;
|
56
|
+
repeatDelay(amount?: number): this;
|
57
|
+
yoyo(yoyo?: boolean): this;
|
58
|
+
easing(easingFunction?: EasingFunction): this;
|
59
|
+
interpolation(interpolationFunction?: InterpolationFunction): this;
|
60
|
+
chain(...tweens: Array<Tween<any>>): this;
|
61
|
+
onStart(callback?: (object: T) => void): this;
|
62
|
+
onUpdate(callback?: (object: T, elapsed: number) => void): this;
|
63
|
+
onRepeat(callback?: (object: T) => void): this;
|
64
|
+
onComplete(callback?: (object: T) => void): this;
|
65
|
+
onStop(callback?: (object: T) => void): this;
|
66
|
+
private _goToEnd;
|
67
|
+
/**
|
68
|
+
* @returns true if the tween is still playing after the update, false
|
69
|
+
* otherwise (calling update on a paused tween still returns true because
|
70
|
+
* it is still playing, just paused).
|
71
|
+
*/
|
72
|
+
update(time?: number, autoStart?: boolean): boolean;
|
73
|
+
private _updateProperties;
|
74
|
+
private _handleRelativeValue;
|
75
|
+
private _swapEndStartRepeatValues;
|
76
|
+
}
|
77
|
+
export declare type UnknownProps = Record<string, any>;
|
78
|
+
export default Tween;
|
package/.tmp/Tween.js
ADDED
@@ -0,0 +1,404 @@
|
|
1
|
+
/**
|
2
|
+
* Tween.js - Licensed under the MIT license
|
3
|
+
* https://github.com/tweenjs/tween.js
|
4
|
+
* ----------------------------------------------
|
5
|
+
*
|
6
|
+
* See https://github.com/tweenjs/tween.js/graphs/contributors for the full list of contributors.
|
7
|
+
* Thank you all, you're awesome!
|
8
|
+
*/
|
9
|
+
import Easing from './Easing';
|
10
|
+
import Interpolation from './Interpolation';
|
11
|
+
import { mainGroup } from './mainGroup';
|
12
|
+
import Sequence from './Sequence';
|
13
|
+
import now from './Now';
|
14
|
+
var Tween = /** @class */ (function () {
|
15
|
+
function Tween(_object, _group) {
|
16
|
+
if (_group === void 0) { _group = mainGroup; }
|
17
|
+
this._object = _object;
|
18
|
+
this._group = _group;
|
19
|
+
this._isPaused = false;
|
20
|
+
this._pauseStart = 0;
|
21
|
+
this._valuesStart = {};
|
22
|
+
this._valuesEnd = {};
|
23
|
+
this._valuesStartRepeat = {};
|
24
|
+
this._duration = 1000;
|
25
|
+
this._initialRepeat = 0;
|
26
|
+
this._repeat = 0;
|
27
|
+
this._yoyo = false;
|
28
|
+
this._isPlaying = false;
|
29
|
+
this._reversed = false;
|
30
|
+
this._delayTime = 0;
|
31
|
+
this._startTime = 0;
|
32
|
+
this._easingFunction = Easing.Linear.None;
|
33
|
+
this._interpolationFunction = Interpolation.Linear;
|
34
|
+
// eslint-disable-next-line
|
35
|
+
this._chainedTweens = [];
|
36
|
+
this._onStartCallbackFired = false;
|
37
|
+
this._id = Sequence.nextId();
|
38
|
+
this._isChainStopped = false;
|
39
|
+
this._goToEnd = false;
|
40
|
+
}
|
41
|
+
Tween.prototype.getId = function () {
|
42
|
+
return this._id;
|
43
|
+
};
|
44
|
+
Tween.prototype.isPlaying = function () {
|
45
|
+
return this._isPlaying;
|
46
|
+
};
|
47
|
+
Tween.prototype.isPaused = function () {
|
48
|
+
return this._isPaused;
|
49
|
+
};
|
50
|
+
Tween.prototype.to = function (properties, duration) {
|
51
|
+
// TODO? restore this, then update the 07_dynamic_to example to set fox
|
52
|
+
// tween's to on each update. That way the behavior is opt-in (there's
|
53
|
+
// currently no opt-out).
|
54
|
+
// for (const prop in properties) this._valuesEnd[prop] = properties[prop]
|
55
|
+
this._valuesEnd = Object.create(properties);
|
56
|
+
if (duration !== undefined) {
|
57
|
+
this._duration = duration;
|
58
|
+
}
|
59
|
+
return this;
|
60
|
+
};
|
61
|
+
Tween.prototype.duration = function (d) {
|
62
|
+
if (d === void 0) { d = 1000; }
|
63
|
+
this._duration = d;
|
64
|
+
return this;
|
65
|
+
};
|
66
|
+
Tween.prototype.start = function (time) {
|
67
|
+
if (this._isPlaying) {
|
68
|
+
return this;
|
69
|
+
}
|
70
|
+
// eslint-disable-next-line
|
71
|
+
this._group && this._group.add(this);
|
72
|
+
this._repeat = this._initialRepeat;
|
73
|
+
if (this._reversed) {
|
74
|
+
// If we were reversed (f.e. using the yoyo feature) then we need to
|
75
|
+
// flip the tween direction back to forward.
|
76
|
+
this._reversed = false;
|
77
|
+
for (var property in this._valuesStartRepeat) {
|
78
|
+
this._swapEndStartRepeatValues(property);
|
79
|
+
this._valuesStart[property] = this._valuesStartRepeat[property];
|
80
|
+
}
|
81
|
+
}
|
82
|
+
this._isPlaying = true;
|
83
|
+
this._isPaused = false;
|
84
|
+
this._onStartCallbackFired = false;
|
85
|
+
this._isChainStopped = false;
|
86
|
+
this._startTime = time !== undefined ? (typeof time === 'string' ? now() + parseFloat(time) : time) : now();
|
87
|
+
this._startTime += this._delayTime;
|
88
|
+
this._setupProperties(this._object, this._valuesStart, this._valuesEnd, this._valuesStartRepeat);
|
89
|
+
return this;
|
90
|
+
};
|
91
|
+
Tween.prototype._setupProperties = function (_object, _valuesStart, _valuesEnd, _valuesStartRepeat) {
|
92
|
+
for (var property in _valuesEnd) {
|
93
|
+
var startValue = _object[property];
|
94
|
+
var startValueIsArray = Array.isArray(startValue);
|
95
|
+
var propType = startValueIsArray ? 'array' : typeof startValue;
|
96
|
+
var isInterpolationList = !startValueIsArray && Array.isArray(_valuesEnd[property]);
|
97
|
+
// If `to()` specifies a property that doesn't exist in the source object,
|
98
|
+
// we should not set that property in the object
|
99
|
+
if (propType === 'undefined' || propType === 'function') {
|
100
|
+
continue;
|
101
|
+
}
|
102
|
+
// Check if an Array was provided as property value
|
103
|
+
if (isInterpolationList) {
|
104
|
+
var endValues = _valuesEnd[property];
|
105
|
+
if (endValues.length === 0) {
|
106
|
+
continue;
|
107
|
+
}
|
108
|
+
// handle an array of relative values
|
109
|
+
endValues = endValues.map(this._handleRelativeValue.bind(this, startValue));
|
110
|
+
// Create a local copy of the Array with the start value at the front
|
111
|
+
_valuesEnd[property] = [startValue].concat(endValues);
|
112
|
+
}
|
113
|
+
// handle the deepness of the values
|
114
|
+
if ((propType === 'object' || startValueIsArray) && startValue && !isInterpolationList) {
|
115
|
+
_valuesStart[property] = startValueIsArray ? [] : {};
|
116
|
+
// eslint-disable-next-line
|
117
|
+
for (var prop in startValue) {
|
118
|
+
// eslint-disable-next-line
|
119
|
+
// @ts-ignore FIXME?
|
120
|
+
_valuesStart[property][prop] = startValue[prop];
|
121
|
+
}
|
122
|
+
_valuesStartRepeat[property] = startValueIsArray ? [] : {}; // TODO? repeat nested values? And yoyo? And array values?
|
123
|
+
// eslint-disable-next-line
|
124
|
+
// @ts-ignore FIXME?
|
125
|
+
this._setupProperties(startValue, _valuesStart[property], _valuesEnd[property], _valuesStartRepeat[property]);
|
126
|
+
}
|
127
|
+
else {
|
128
|
+
// Save the starting value, but only once.
|
129
|
+
if (typeof _valuesStart[property] === 'undefined') {
|
130
|
+
_valuesStart[property] = startValue;
|
131
|
+
}
|
132
|
+
if (!startValueIsArray) {
|
133
|
+
// eslint-disable-next-line
|
134
|
+
// @ts-ignore FIXME?
|
135
|
+
_valuesStart[property] *= 1.0; // Ensures we're using numbers, not strings
|
136
|
+
}
|
137
|
+
if (isInterpolationList) {
|
138
|
+
// eslint-disable-next-line
|
139
|
+
// @ts-ignore FIXME?
|
140
|
+
_valuesStartRepeat[property] = _valuesEnd[property].slice().reverse();
|
141
|
+
}
|
142
|
+
else {
|
143
|
+
_valuesStartRepeat[property] = _valuesStart[property] || 0;
|
144
|
+
}
|
145
|
+
}
|
146
|
+
}
|
147
|
+
};
|
148
|
+
Tween.prototype.stop = function () {
|
149
|
+
if (!this._isChainStopped) {
|
150
|
+
this._isChainStopped = true;
|
151
|
+
this.stopChainedTweens();
|
152
|
+
}
|
153
|
+
if (!this._isPlaying) {
|
154
|
+
return this;
|
155
|
+
}
|
156
|
+
// eslint-disable-next-line
|
157
|
+
this._group && this._group.remove(this);
|
158
|
+
this._isPlaying = false;
|
159
|
+
this._isPaused = false;
|
160
|
+
if (this._onStopCallback) {
|
161
|
+
this._onStopCallback(this._object);
|
162
|
+
}
|
163
|
+
return this;
|
164
|
+
};
|
165
|
+
Tween.prototype.end = function () {
|
166
|
+
this._goToEnd = true;
|
167
|
+
this.update(Infinity);
|
168
|
+
return this;
|
169
|
+
};
|
170
|
+
Tween.prototype.pause = function (time) {
|
171
|
+
if (time === void 0) { time = now(); }
|
172
|
+
if (this._isPaused || !this._isPlaying) {
|
173
|
+
return this;
|
174
|
+
}
|
175
|
+
this._isPaused = true;
|
176
|
+
this._pauseStart = time;
|
177
|
+
// eslint-disable-next-line
|
178
|
+
this._group && this._group.remove(this);
|
179
|
+
return this;
|
180
|
+
};
|
181
|
+
Tween.prototype.resume = function (time) {
|
182
|
+
if (time === void 0) { time = now(); }
|
183
|
+
if (!this._isPaused || !this._isPlaying) {
|
184
|
+
return this;
|
185
|
+
}
|
186
|
+
this._isPaused = false;
|
187
|
+
this._startTime += time - this._pauseStart;
|
188
|
+
this._pauseStart = 0;
|
189
|
+
// eslint-disable-next-line
|
190
|
+
this._group && this._group.add(this);
|
191
|
+
return this;
|
192
|
+
};
|
193
|
+
Tween.prototype.stopChainedTweens = function () {
|
194
|
+
for (var i = 0, numChainedTweens = this._chainedTweens.length; i < numChainedTweens; i++) {
|
195
|
+
this._chainedTweens[i].stop();
|
196
|
+
}
|
197
|
+
return this;
|
198
|
+
};
|
199
|
+
Tween.prototype.group = function (group) {
|
200
|
+
if (group === void 0) { group = mainGroup; }
|
201
|
+
this._group = group;
|
202
|
+
return this;
|
203
|
+
};
|
204
|
+
Tween.prototype.delay = function (amount) {
|
205
|
+
if (amount === void 0) { amount = 0; }
|
206
|
+
this._delayTime = amount;
|
207
|
+
return this;
|
208
|
+
};
|
209
|
+
Tween.prototype.repeat = function (times) {
|
210
|
+
if (times === void 0) { times = 0; }
|
211
|
+
this._initialRepeat = times;
|
212
|
+
this._repeat = times;
|
213
|
+
return this;
|
214
|
+
};
|
215
|
+
Tween.prototype.repeatDelay = function (amount) {
|
216
|
+
this._repeatDelayTime = amount;
|
217
|
+
return this;
|
218
|
+
};
|
219
|
+
Tween.prototype.yoyo = function (yoyo) {
|
220
|
+
if (yoyo === void 0) { yoyo = false; }
|
221
|
+
this._yoyo = yoyo;
|
222
|
+
return this;
|
223
|
+
};
|
224
|
+
Tween.prototype.easing = function (easingFunction) {
|
225
|
+
if (easingFunction === void 0) { easingFunction = Easing.Linear.None; }
|
226
|
+
this._easingFunction = easingFunction;
|
227
|
+
return this;
|
228
|
+
};
|
229
|
+
Tween.prototype.interpolation = function (interpolationFunction) {
|
230
|
+
if (interpolationFunction === void 0) { interpolationFunction = Interpolation.Linear; }
|
231
|
+
this._interpolationFunction = interpolationFunction;
|
232
|
+
return this;
|
233
|
+
};
|
234
|
+
// eslint-disable-next-line
|
235
|
+
Tween.prototype.chain = function () {
|
236
|
+
var tweens = [];
|
237
|
+
for (var _i = 0; _i < arguments.length; _i++) {
|
238
|
+
tweens[_i] = arguments[_i];
|
239
|
+
}
|
240
|
+
this._chainedTweens = tweens;
|
241
|
+
return this;
|
242
|
+
};
|
243
|
+
Tween.prototype.onStart = function (callback) {
|
244
|
+
this._onStartCallback = callback;
|
245
|
+
return this;
|
246
|
+
};
|
247
|
+
Tween.prototype.onUpdate = function (callback) {
|
248
|
+
this._onUpdateCallback = callback;
|
249
|
+
return this;
|
250
|
+
};
|
251
|
+
Tween.prototype.onRepeat = function (callback) {
|
252
|
+
this._onRepeatCallback = callback;
|
253
|
+
return this;
|
254
|
+
};
|
255
|
+
Tween.prototype.onComplete = function (callback) {
|
256
|
+
this._onCompleteCallback = callback;
|
257
|
+
return this;
|
258
|
+
};
|
259
|
+
Tween.prototype.onStop = function (callback) {
|
260
|
+
this._onStopCallback = callback;
|
261
|
+
return this;
|
262
|
+
};
|
263
|
+
/**
|
264
|
+
* @returns true if the tween is still playing after the update, false
|
265
|
+
* otherwise (calling update on a paused tween still returns true because
|
266
|
+
* it is still playing, just paused).
|
267
|
+
*/
|
268
|
+
Tween.prototype.update = function (time, autoStart) {
|
269
|
+
if (time === void 0) { time = now(); }
|
270
|
+
if (autoStart === void 0) { autoStart = true; }
|
271
|
+
if (this._isPaused)
|
272
|
+
return true;
|
273
|
+
var property;
|
274
|
+
var elapsed;
|
275
|
+
var endTime = this._startTime + this._duration;
|
276
|
+
if (!this._goToEnd && !this._isPlaying) {
|
277
|
+
if (time > endTime)
|
278
|
+
return false;
|
279
|
+
if (autoStart)
|
280
|
+
this.start(time);
|
281
|
+
}
|
282
|
+
this._goToEnd = false;
|
283
|
+
if (time < this._startTime) {
|
284
|
+
return true;
|
285
|
+
}
|
286
|
+
if (this._onStartCallbackFired === false) {
|
287
|
+
if (this._onStartCallback) {
|
288
|
+
this._onStartCallback(this._object);
|
289
|
+
}
|
290
|
+
this._onStartCallbackFired = true;
|
291
|
+
}
|
292
|
+
elapsed = (time - this._startTime) / this._duration;
|
293
|
+
elapsed = this._duration === 0 || elapsed > 1 ? 1 : elapsed;
|
294
|
+
var value = this._easingFunction(elapsed);
|
295
|
+
// properties transformations
|
296
|
+
this._updateProperties(this._object, this._valuesStart, this._valuesEnd, value);
|
297
|
+
if (this._onUpdateCallback) {
|
298
|
+
this._onUpdateCallback(this._object, elapsed);
|
299
|
+
}
|
300
|
+
if (elapsed === 1) {
|
301
|
+
if (this._repeat > 0) {
|
302
|
+
if (isFinite(this._repeat)) {
|
303
|
+
this._repeat--;
|
304
|
+
}
|
305
|
+
// Reassign starting values, restart by making startTime = now
|
306
|
+
for (property in this._valuesStartRepeat) {
|
307
|
+
if (!this._yoyo && typeof this._valuesEnd[property] === 'string') {
|
308
|
+
this._valuesStartRepeat[property] =
|
309
|
+
// eslint-disable-next-line
|
310
|
+
// @ts-ignore FIXME?
|
311
|
+
this._valuesStartRepeat[property] + parseFloat(this._valuesEnd[property]);
|
312
|
+
}
|
313
|
+
if (this._yoyo) {
|
314
|
+
this._swapEndStartRepeatValues(property);
|
315
|
+
}
|
316
|
+
this._valuesStart[property] = this._valuesStartRepeat[property];
|
317
|
+
}
|
318
|
+
if (this._yoyo) {
|
319
|
+
this._reversed = !this._reversed;
|
320
|
+
}
|
321
|
+
if (this._repeatDelayTime !== undefined) {
|
322
|
+
this._startTime = time + this._repeatDelayTime;
|
323
|
+
}
|
324
|
+
else {
|
325
|
+
this._startTime = time + this._delayTime;
|
326
|
+
}
|
327
|
+
if (this._onRepeatCallback) {
|
328
|
+
this._onRepeatCallback(this._object);
|
329
|
+
}
|
330
|
+
return true;
|
331
|
+
}
|
332
|
+
else {
|
333
|
+
if (this._onCompleteCallback) {
|
334
|
+
this._onCompleteCallback(this._object);
|
335
|
+
}
|
336
|
+
for (var i = 0, numChainedTweens = this._chainedTweens.length; i < numChainedTweens; i++) {
|
337
|
+
// Make the chained tweens start exactly at the time they should,
|
338
|
+
// even if the `update()` method was called way past the duration of the tween
|
339
|
+
this._chainedTweens[i].start(this._startTime + this._duration);
|
340
|
+
}
|
341
|
+
this._isPlaying = false;
|
342
|
+
return false;
|
343
|
+
}
|
344
|
+
}
|
345
|
+
return true;
|
346
|
+
};
|
347
|
+
Tween.prototype._updateProperties = function (_object, _valuesStart, _valuesEnd, value) {
|
348
|
+
for (var property in _valuesEnd) {
|
349
|
+
// Don't update properties that do not exist in the source object
|
350
|
+
if (_valuesStart[property] === undefined) {
|
351
|
+
continue;
|
352
|
+
}
|
353
|
+
var start = _valuesStart[property] || 0;
|
354
|
+
var end = _valuesEnd[property];
|
355
|
+
var startIsArray = Array.isArray(_object[property]);
|
356
|
+
var endIsArray = Array.isArray(end);
|
357
|
+
var isInterpolationList = !startIsArray && endIsArray;
|
358
|
+
if (isInterpolationList) {
|
359
|
+
_object[property] = this._interpolationFunction(end, value);
|
360
|
+
}
|
361
|
+
else if (typeof end === 'object' && end) {
|
362
|
+
// eslint-disable-next-line
|
363
|
+
// @ts-ignore FIXME?
|
364
|
+
this._updateProperties(_object[property], start, end, value);
|
365
|
+
}
|
366
|
+
else {
|
367
|
+
// Parses relative end values with start as base (e.g.: +10, -3)
|
368
|
+
end = this._handleRelativeValue(start, end);
|
369
|
+
// Protect against non numeric properties.
|
370
|
+
if (typeof end === 'number') {
|
371
|
+
// eslint-disable-next-line
|
372
|
+
// @ts-ignore FIXME?
|
373
|
+
_object[property] = start + (end - start) * value;
|
374
|
+
}
|
375
|
+
}
|
376
|
+
}
|
377
|
+
};
|
378
|
+
Tween.prototype._handleRelativeValue = function (start, end) {
|
379
|
+
if (typeof end !== 'string') {
|
380
|
+
return end;
|
381
|
+
}
|
382
|
+
if (end.charAt(0) === '+' || end.charAt(0) === '-') {
|
383
|
+
return start + parseFloat(end);
|
384
|
+
}
|
385
|
+
else {
|
386
|
+
return parseFloat(end);
|
387
|
+
}
|
388
|
+
};
|
389
|
+
Tween.prototype._swapEndStartRepeatValues = function (property) {
|
390
|
+
var tmp = this._valuesStartRepeat[property];
|
391
|
+
var endValue = this._valuesEnd[property];
|
392
|
+
if (typeof endValue === 'string') {
|
393
|
+
this._valuesStartRepeat[property] = this._valuesStartRepeat[property] + parseFloat(endValue);
|
394
|
+
}
|
395
|
+
else {
|
396
|
+
this._valuesStartRepeat[property] = this._valuesEnd[property];
|
397
|
+
}
|
398
|
+
this._valuesEnd[property] = tmp;
|
399
|
+
};
|
400
|
+
return Tween;
|
401
|
+
}());
|
402
|
+
export { Tween };
|
403
|
+
export default Tween;
|
404
|
+
//# sourceMappingURL=Tween.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"Tween.js","sourceRoot":"","sources":["../src/Tween.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,MAAM,MAAM,UAAU,CAAA;AAC7B,OAAO,aAAa,MAAM,iBAAiB,CAAA;AAC3C,OAAO,EAAC,SAAS,EAAC,MAAM,aAAa,CAAA;AACrC,OAAO,QAAQ,MAAM,YAAY,CAAA;AACjC,OAAO,GAAG,MAAM,OAAO,CAAA;AAMvB;IA4BC,eAAoB,OAAU,EAAU,MAAiC;QAAjC,uBAAA,EAAA,kBAAiC;QAArD,YAAO,GAAP,OAAO,CAAG;QAAU,WAAM,GAAN,MAAM,CAA2B;QA3BjE,cAAS,GAAG,KAAK,CAAA;QACjB,gBAAW,GAAG,CAAC,CAAA;QACf,iBAAY,GAAiB,EAAE,CAAA;QAC/B,eAAU,GAAoC,EAAE,CAAA;QAChD,uBAAkB,GAAiB,EAAE,CAAA;QACrC,cAAS,GAAG,IAAI,CAAA;QAChB,mBAAc,GAAG,CAAC,CAAA;QAClB,YAAO,GAAG,CAAC,CAAA;QAEX,UAAK,GAAG,KAAK,CAAA;QACb,eAAU,GAAG,KAAK,CAAA;QAClB,cAAS,GAAG,KAAK,CAAA;QACjB,eAAU,GAAG,CAAC,CAAA;QACd,eAAU,GAAG,CAAC,CAAA;QACd,oBAAe,GAAmB,MAAM,CAAC,MAAM,CAAC,IAAI,CAAA;QACpD,2BAAsB,GAA0B,aAAa,CAAC,MAAM,CAAA;QAC5E,2BAA2B;QACnB,mBAAc,GAAsB,EAAE,CAAA;QAEtC,0BAAqB,GAAG,KAAK,CAAA;QAK7B,QAAG,GAAG,QAAQ,CAAC,MAAM,EAAE,CAAA;QACvB,oBAAe,GA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AU,CAAC,GAAG,CAAC,CAAA;SAC9B;aAAM;YACN,OAAO,UAAU,CAAC,GAAG,CAAC,CAAA;SACtB;IACF,CAAC;IAEO,yCAAyB,GAAjC,UAAkC,QAAgB;QACjD,IAAM,GAAG,GAAG,IAAI,CAAC,kBAAkB,CAAC,QAAQ,CAAC,CAAA;QAC7C,IAAM,QAAQ,GAAG,IAAI,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAA;QAE1C,IAAI,OAAO,QAAQ,KAAK,QAAQ,EAAE;YACjC,IAAI,CAAC,kBAAkB,CAAC,QAAQ,CAAC,GAAG,IAAI,CAAC,kBAAkB,CAAC,QAAQ,CAAC,GAAG,UAAU,CAAC,QAAQ,CAAC,CAAA;SAC5F;aAAM;YACN,IAAI,CAAC,kBAAkB,CAAC,QAAQ,CAAC,GAAG,IAAI,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAA;SAC7D;QAED,IAAI,CAAC,UAAU,CAAC,QAAQ,CAAC,GAAG,GAAG,CAAA;IAChC,CAAC;IACF,YAAC;AAAD,CAAC,AAxdD,IAwdC;;AAKD,eAAe,KAAK,CAAA"}
|
package/.tmp/Version.js
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"Version.js","sourceRoot":"","sources":["../src/Version.ts"],"names":[],"mappings":"AAAA,IAAM,OAAO,GAAG,QAAQ,CAAA;AACxB,eAAe,OAAO,CAAA"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"mainGroup.js","sourceRoot":"","sources":["../src/mainGroup.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,SAAS,CAAA;AAE3B,MAAM,CAAC,IAAM,SAAS,GAAG,IAAI,KAAK,EAAE,CAAA"}
|