@tweenjs/tween.js 18.6.3 → 19.0.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/dist/tween.cjs.js CHANGED
@@ -5,13 +5,22 @@ Object.defineProperty(exports, '__esModule', { value: true });
5
5
  /**
6
6
  * The Ease class provides a collection of easing functions for use with tween.js.
7
7
  */
8
- var Easing = {
9
- Linear: {
8
+ var Easing = Object.freeze({
9
+ Linear: Object.freeze({
10
10
  None: function (amount) {
11
11
  return amount;
12
12
  },
13
- },
14
- Quadratic: {
13
+ In: function (amount) {
14
+ return this.None(amount);
15
+ },
16
+ Out: function (amount) {
17
+ return this.None(amount);
18
+ },
19
+ InOut: function (amount) {
20
+ return this.None(amount);
21
+ },
22
+ }),
23
+ Quadratic: Object.freeze({
15
24
  In: function (amount) {
16
25
  return amount * amount;
17
26
  },
@@ -24,8 +33,8 @@ var Easing = {
24
33
  }
25
34
  return -0.5 * (--amount * (amount - 2) - 1);
26
35
  },
27
- },
28
- Cubic: {
36
+ }),
37
+ Cubic: Object.freeze({
29
38
  In: function (amount) {
30
39
  return amount * amount * amount;
31
40
  },
@@ -38,8 +47,8 @@ var Easing = {
38
47
  }
39
48
  return 0.5 * ((amount -= 2) * amount * amount + 2);
40
49
  },
41
- },
42
- Quartic: {
50
+ }),
51
+ Quartic: Object.freeze({
43
52
  In: function (amount) {
44
53
  return amount * amount * amount * amount;
45
54
  },
@@ -52,8 +61,8 @@ var Easing = {
52
61
  }
53
62
  return -0.5 * ((amount -= 2) * amount * amount * amount - 2);
54
63
  },
55
- },
56
- Quintic: {
64
+ }),
65
+ Quintic: Object.freeze({
57
66
  In: function (amount) {
58
67
  return amount * amount * amount * amount * amount;
59
68
  },
@@ -66,19 +75,19 @@ var Easing = {
66
75
  }
67
76
  return 0.5 * ((amount -= 2) * amount * amount * amount * amount + 2);
68
77
  },
69
- },
70
- Sinusoidal: {
78
+ }),
79
+ Sinusoidal: Object.freeze({
71
80
  In: function (amount) {
72
- return 1 - Math.cos((amount * Math.PI) / 2);
81
+ return 1 - Math.sin(((1.0 - amount) * Math.PI) / 2);
73
82
  },
74
83
  Out: function (amount) {
75
84
  return Math.sin((amount * Math.PI) / 2);
76
85
  },
77
86
  InOut: function (amount) {
78
- return 0.5 * (1 - Math.cos(Math.PI * amount));
87
+ return 0.5 * (1 - Math.sin(Math.PI * (0.5 - amount)));
79
88
  },
80
- },
81
- Exponential: {
89
+ }),
90
+ Exponential: Object.freeze({
82
91
  In: function (amount) {
83
92
  return amount === 0 ? 0 : Math.pow(1024, amount - 1);
84
93
  },
@@ -97,8 +106,8 @@ var Easing = {
97
106
  }
98
107
  return 0.5 * (-Math.pow(2, -10 * (amount - 1)) + 2);
99
108
  },
100
- },
101
- Circular: {
109
+ }),
110
+ Circular: Object.freeze({
102
111
  In: function (amount) {
103
112
  return 1 - Math.sqrt(1 - amount * amount);
104
113
  },
@@ -111,8 +120,8 @@ var Easing = {
111
120
  }
112
121
  return 0.5 * (Math.sqrt(1 - (amount -= 2) * amount) + 1);
113
122
  },
114
- },
115
- Elastic: {
123
+ }),
124
+ Elastic: Object.freeze({
116
125
  In: function (amount) {
117
126
  if (amount === 0) {
118
127
  return 0;
@@ -144,15 +153,15 @@ var Easing = {
144
153
  }
145
154
  return 0.5 * Math.pow(2, -10 * (amount - 1)) * Math.sin((amount - 1.1) * 5 * Math.PI) + 1;
146
155
  },
147
- },
148
- Back: {
156
+ }),
157
+ Back: Object.freeze({
149
158
  In: function (amount) {
150
159
  var s = 1.70158;
151
- return amount * amount * ((s + 1) * amount - s);
160
+ return amount === 1 ? 1 : amount * amount * ((s + 1) * amount - s);
152
161
  },
153
162
  Out: function (amount) {
154
163
  var s = 1.70158;
155
- return --amount * amount * ((s + 1) * amount + s) + 1;
164
+ return amount === 0 ? 0 : --amount * amount * ((s + 1) * amount + s) + 1;
156
165
  },
157
166
  InOut: function (amount) {
158
167
  var s = 1.70158 * 1.525;
@@ -161,8 +170,8 @@ var Easing = {
161
170
  }
162
171
  return 0.5 * ((amount -= 2) * amount * ((s + 1) * amount + s) + 2);
163
172
  },
164
- },
165
- Bounce: {
173
+ }),
174
+ Bounce: Object.freeze({
166
175
  In: function (amount) {
167
176
  return 1 - Easing.Bounce.Out(1 - amount);
168
177
  },
@@ -186,8 +195,27 @@ var Easing = {
186
195
  }
187
196
  return Easing.Bounce.Out(amount * 2 - 1) * 0.5 + 0.5;
188
197
  },
198
+ }),
199
+ generatePow: function (power) {
200
+ if (power === void 0) { power = 4; }
201
+ power = power < Number.EPSILON ? Number.EPSILON : power;
202
+ power = power > 10000 ? 10000 : power;
203
+ return {
204
+ In: function (amount) {
205
+ return Math.pow(amount, power);
206
+ },
207
+ Out: function (amount) {
208
+ return 1 - Math.pow((1 - amount), power);
209
+ },
210
+ InOut: function (amount) {
211
+ if (amount < 0.5) {
212
+ return Math.pow((amount * 2), power) / 2;
213
+ }
214
+ return (1 - Math.pow((2 - amount * 2), power)) / 2 + 0.5;
215
+ },
216
+ };
189
217
  },
190
- };
218
+ });
191
219
 
192
220
  var now;
193
221
  // Include a performance.now polyfill.
@@ -400,8 +428,10 @@ var Tween = /** @class */ (function () {
400
428
  this._startTime = 0;
401
429
  this._easingFunction = Easing.Linear.None;
402
430
  this._interpolationFunction = Interpolation.Linear;
431
+ // eslint-disable-next-line
403
432
  this._chainedTweens = [];
404
433
  this._onStartCallbackFired = false;
434
+ this._onEveryStartCallbackFired = false;
405
435
  this._id = Sequence.nextId();
406
436
  this._isChainStopped = false;
407
437
  this._goToEnd = false;
@@ -427,10 +457,13 @@ var Tween = /** @class */ (function () {
427
457
  return this;
428
458
  };
429
459
  Tween.prototype.duration = function (d) {
460
+ if (d === void 0) { d = 1000; }
430
461
  this._duration = d;
431
462
  return this;
432
463
  };
433
- Tween.prototype.start = function (time) {
464
+ Tween.prototype.start = function (time, overrideStartingValues) {
465
+ if (time === void 0) { time = now$1(); }
466
+ if (overrideStartingValues === void 0) { overrideStartingValues = false; }
434
467
  if (this._isPlaying) {
435
468
  return this;
436
469
  }
@@ -449,13 +482,17 @@ var Tween = /** @class */ (function () {
449
482
  this._isPlaying = true;
450
483
  this._isPaused = false;
451
484
  this._onStartCallbackFired = false;
485
+ this._onEveryStartCallbackFired = false;
452
486
  this._isChainStopped = false;
453
- this._startTime = time !== undefined ? (typeof time === 'string' ? now$1() + parseFloat(time) : time) : now$1();
487
+ this._startTime = time;
454
488
  this._startTime += this._delayTime;
455
- this._setupProperties(this._object, this._valuesStart, this._valuesEnd, this._valuesStartRepeat);
489
+ this._setupProperties(this._object, this._valuesStart, this._valuesEnd, this._valuesStartRepeat, overrideStartingValues);
456
490
  return this;
457
491
  };
458
- Tween.prototype._setupProperties = function (_object, _valuesStart, _valuesEnd, _valuesStartRepeat) {
492
+ Tween.prototype.startFromCurrentValues = function (time) {
493
+ return this.start(time, true);
494
+ };
495
+ Tween.prototype._setupProperties = function (_object, _valuesStart, _valuesEnd, _valuesStartRepeat, overrideStartingValues) {
459
496
  for (var property in _valuesEnd) {
460
497
  var startValue = _object[property];
461
498
  var startValueIsArray = Array.isArray(startValue);
@@ -475,7 +512,9 @@ var Tween = /** @class */ (function () {
475
512
  // handle an array of relative values
476
513
  endValues = endValues.map(this._handleRelativeValue.bind(this, startValue));
477
514
  // Create a local copy of the Array with the start value at the front
478
- _valuesEnd[property] = [startValue].concat(endValues);
515
+ if (_valuesStart[property] === undefined) {
516
+ _valuesEnd[property] = [startValue].concat(endValues);
517
+ }
479
518
  }
480
519
  // handle the deepness of the values
481
520
  if ((propType === 'object' || startValueIsArray) && startValue && !isInterpolationList) {
@@ -489,11 +528,11 @@ var Tween = /** @class */ (function () {
489
528
  _valuesStartRepeat[property] = startValueIsArray ? [] : {}; // TODO? repeat nested values? And yoyo? And array values?
490
529
  // eslint-disable-next-line
491
530
  // @ts-ignore FIXME?
492
- this._setupProperties(startValue, _valuesStart[property], _valuesEnd[property], _valuesStartRepeat[property]);
531
+ this._setupProperties(startValue, _valuesStart[property], _valuesEnd[property], _valuesStartRepeat[property], overrideStartingValues);
493
532
  }
494
533
  else {
495
- // Save the starting value, but only once.
496
- if (typeof _valuesStart[property] === 'undefined') {
534
+ // Save the starting value, but only once unless override is requested.
535
+ if (typeof _valuesStart[property] === 'undefined' || overrideStartingValues) {
497
536
  _valuesStart[property] = startValue;
498
537
  }
499
538
  if (!startValueIsArray) {
@@ -564,14 +603,17 @@ var Tween = /** @class */ (function () {
564
603
  return this;
565
604
  };
566
605
  Tween.prototype.group = function (group) {
606
+ if (group === void 0) { group = mainGroup; }
567
607
  this._group = group;
568
608
  return this;
569
609
  };
570
610
  Tween.prototype.delay = function (amount) {
611
+ if (amount === void 0) { amount = 0; }
571
612
  this._delayTime = amount;
572
613
  return this;
573
614
  };
574
615
  Tween.prototype.repeat = function (times) {
616
+ if (times === void 0) { times = 0; }
575
617
  this._initialRepeat = times;
576
618
  this._repeat = times;
577
619
  return this;
@@ -581,17 +623,21 @@ var Tween = /** @class */ (function () {
581
623
  return this;
582
624
  };
583
625
  Tween.prototype.yoyo = function (yoyo) {
626
+ if (yoyo === void 0) { yoyo = false; }
584
627
  this._yoyo = yoyo;
585
628
  return this;
586
629
  };
587
630
  Tween.prototype.easing = function (easingFunction) {
631
+ if (easingFunction === void 0) { easingFunction = Easing.Linear.None; }
588
632
  this._easingFunction = easingFunction;
589
633
  return this;
590
634
  };
591
635
  Tween.prototype.interpolation = function (interpolationFunction) {
636
+ if (interpolationFunction === void 0) { interpolationFunction = Interpolation.Linear; }
592
637
  this._interpolationFunction = interpolationFunction;
593
638
  return this;
594
639
  };
640
+ // eslint-disable-next-line
595
641
  Tween.prototype.chain = function () {
596
642
  var tweens = [];
597
643
  for (var _i = 0; _i < arguments.length; _i++) {
@@ -604,6 +650,10 @@ var Tween = /** @class */ (function () {
604
650
  this._onStartCallback = callback;
605
651
  return this;
606
652
  };
653
+ Tween.prototype.onEveryStart = function (callback) {
654
+ this._onEveryStartCallback = callback;
655
+ return this;
656
+ };
607
657
  Tween.prototype.onUpdate = function (callback) {
608
658
  this._onUpdateCallback = callback;
609
659
  return this;
@@ -637,7 +687,7 @@ var Tween = /** @class */ (function () {
637
687
  if (time > endTime)
638
688
  return false;
639
689
  if (autoStart)
640
- this.start(time);
690
+ this.start(time, true);
641
691
  }
642
692
  this._goToEnd = false;
643
693
  if (time < this._startTime) {
@@ -649,6 +699,12 @@ var Tween = /** @class */ (function () {
649
699
  }
650
700
  this._onStartCallbackFired = true;
651
701
  }
702
+ if (this._onEveryStartCallbackFired === false) {
703
+ if (this._onEveryStartCallback) {
704
+ this._onEveryStartCallback(this._object);
705
+ }
706
+ this._onEveryStartCallbackFired = true;
707
+ }
652
708
  elapsed = (time - this._startTime) / this._duration;
653
709
  elapsed = this._duration === 0 || elapsed > 1 ? 1 : elapsed;
654
710
  var value = this._easingFunction(elapsed);
@@ -687,6 +743,7 @@ var Tween = /** @class */ (function () {
687
743
  if (this._onRepeatCallback) {
688
744
  this._onRepeatCallback(this._object);
689
745
  }
746
+ this._onEveryStartCallbackFired = false;
690
747
  return true;
691
748
  }
692
749
  else {
@@ -696,7 +753,7 @@ var Tween = /** @class */ (function () {
696
753
  for (var i = 0, numChainedTweens = this._chainedTweens.length; i < numChainedTweens; i++) {
697
754
  // Make the chained tweens start exactly at the time they should,
698
755
  // even if the `update()` method was called way past the duration of the tween
699
- this._chainedTweens[i].start(this._startTime + this._duration);
756
+ this._chainedTweens[i].start(this._startTime + this._duration, false);
700
757
  }
701
758
  this._isPlaying = false;
702
759
  return false;
@@ -748,10 +805,9 @@ var Tween = /** @class */ (function () {
748
805
  };
749
806
  Tween.prototype._swapEndStartRepeatValues = function (property) {
750
807
  var tmp = this._valuesStartRepeat[property];
751
- if (typeof this._valuesEnd[property] === 'string') {
752
- // eslint-disable-next-line
753
- // @ts-ignore FIXME?
754
- this._valuesStartRepeat[property] = this._valuesStartRepeat[property] + parseFloat(this._valuesEnd[property]);
808
+ var endValue = this._valuesEnd[property];
809
+ if (typeof endValue === 'string') {
810
+ this._valuesStartRepeat[property] = this._valuesStartRepeat[property] + parseFloat(endValue);
755
811
  }
756
812
  else {
757
813
  this._valuesStartRepeat[property] = this._valuesEnd[property];
@@ -761,7 +817,7 @@ var Tween = /** @class */ (function () {
761
817
  return Tween;
762
818
  }());
763
819
 
764
- var VERSION = '18.6.3';
820
+ var VERSION = '19.0.0';
765
821
 
766
822
  /**
767
823
  * Tween.js - Licensed under the MIT license
package/dist/tween.d.ts CHANGED
@@ -1,62 +1,28 @@
1
1
  declare type EasingFunction = (amount: number) => number;
2
+ declare type EasingFunctionGroup = {
3
+ In: EasingFunction;
4
+ Out: EasingFunction;
5
+ InOut: EasingFunction;
6
+ };
2
7
  /**
3
8
  * The Ease class provides a collection of easing functions for use with tween.js.
4
9
  */
5
- declare const Easing: {
6
- Linear: {
7
- None: (amount: number) => number;
8
- };
9
- Quadratic: {
10
- In: (amount: number) => number;
11
- Out: (amount: number) => number;
12
- InOut: (amount: number) => number;
13
- };
14
- Cubic: {
15
- In: (amount: number) => number;
16
- Out: (amount: number) => number;
17
- InOut: (amount: number) => number;
18
- };
19
- Quartic: {
20
- In: (amount: number) => number;
21
- Out: (amount: number) => number;
22
- InOut: (amount: number) => number;
23
- };
24
- Quintic: {
25
- In: (amount: number) => number;
26
- Out: (amount: number) => number;
27
- InOut: (amount: number) => number;
28
- };
29
- Sinusoidal: {
30
- In: (amount: number) => number;
31
- Out: (amount: number) => number;
32
- InOut: (amount: number) => number;
33
- };
34
- Exponential: {
35
- In: (amount: number) => number;
36
- Out: (amount: number) => number;
37
- InOut: (amount: number) => number;
38
- };
39
- Circular: {
40
- In: (amount: number) => number;
41
- Out: (amount: number) => number;
42
- InOut: (amount: number) => number;
43
- };
44
- Elastic: {
45
- In: (amount: number) => number;
46
- Out: (amount: number) => number;
47
- InOut: (amount: number) => number;
48
- };
49
- Back: {
50
- In: (amount: number) => number;
51
- Out: (amount: number) => number;
52
- InOut: (amount: number) => number;
53
- };
54
- Bounce: {
55
- In: (amount: number) => number;
56
- Out: (amount: number) => number;
57
- InOut: (amount: number) => number;
58
- };
59
- };
10
+ declare const Easing: Readonly<{
11
+ Linear: Readonly<EasingFunctionGroup & {
12
+ None: EasingFunction;
13
+ }>;
14
+ Quadratic: Readonly<EasingFunctionGroup>;
15
+ Cubic: Readonly<EasingFunctionGroup>;
16
+ Quartic: Readonly<EasingFunctionGroup>;
17
+ Quintic: Readonly<EasingFunctionGroup>;
18
+ Sinusoidal: Readonly<EasingFunctionGroup>;
19
+ Exponential: Readonly<EasingFunctionGroup>;
20
+ Circular: Readonly<EasingFunctionGroup>;
21
+ Elastic: Readonly<EasingFunctionGroup>;
22
+ Back: Readonly<EasingFunctionGroup>;
23
+ Bounce: Readonly<EasingFunctionGroup>;
24
+ generatePow(power?: number): EasingFunctionGroup;
25
+ }>;
60
26
 
61
27
  /**
62
28
  *
@@ -99,6 +65,8 @@ declare class Tween<T extends UnknownProps> {
99
65
  private _chainedTweens;
100
66
  private _onStartCallback?;
101
67
  private _onStartCallbackFired;
68
+ private _onEveryStartCallback?;
69
+ private _onEveryStartCallbackFired;
102
70
  private _onUpdateCallback?;
103
71
  private _onRepeatCallback?;
104
72
  private _onCompleteCallback?;
@@ -110,27 +78,29 @@ declare class Tween<T extends UnknownProps> {
110
78
  isPlaying(): boolean;
111
79
  isPaused(): boolean;
112
80
  to(properties: UnknownProps, duration?: number): this;
113
- duration(d: number): this;
114
- start(time?: number): this;
81
+ duration(d?: number): this;
82
+ start(time?: number, overrideStartingValues?: boolean): this;
83
+ startFromCurrentValues(time?: number): this;
115
84
  private _setupProperties;
116
85
  stop(): this;
117
86
  end(): this;
118
87
  pause(time?: number): this;
119
88
  resume(time?: number): this;
120
89
  stopChainedTweens(): this;
121
- group(group: Group): this;
122
- delay(amount: number): this;
123
- repeat(times: number): this;
124
- repeatDelay(amount: number): this;
125
- yoyo(yoyo: boolean): this;
126
- easing(easingFunction: EasingFunction): this;
127
- interpolation(interpolationFunction: InterpolationFunction): this;
128
- chain(...tweens: Array<Tween<UnknownProps>>): this;
129
- onStart(callback: (object: T) => void): this;
130
- onUpdate(callback: (object: T, elapsed: number) => void): this;
131
- onRepeat(callback: (object: T) => void): this;
132
- onComplete(callback: (object: T) => void): this;
133
- onStop(callback: (object: T) => void): this;
90
+ group(group?: Group): this;
91
+ delay(amount?: number): this;
92
+ repeat(times?: number): this;
93
+ repeatDelay(amount?: number): this;
94
+ yoyo(yoyo?: boolean): this;
95
+ easing(easingFunction?: EasingFunction): this;
96
+ interpolation(interpolationFunction?: InterpolationFunction): this;
97
+ chain(...tweens: Array<Tween<any>>): this;
98
+ onStart(callback?: (object: T) => void): this;
99
+ onEveryStart(callback?: (object: T) => void): this;
100
+ onUpdate(callback?: (object: T, elapsed: number) => void): this;
101
+ onRepeat(callback?: (object: T) => void): this;
102
+ onComplete(callback?: (object: T) => void): this;
103
+ onStop(callback?: (object: T) => void): this;
134
104
  private _goToEnd;
135
105
  /**
136
106
  * @returns true if the tween is still playing after the update, false
@@ -142,7 +112,7 @@ declare class Tween<T extends UnknownProps> {
142
112
  private _handleRelativeValue;
143
113
  private _swapEndStartRepeatValues;
144
114
  }
145
- declare type UnknownProps = Record<string, unknown>;
115
+ declare type UnknownProps = Record<string, any>;
146
116
 
147
117
  /**
148
118
  * Controlling groups of tweens
@@ -170,70 +140,31 @@ declare class Sequence {
170
140
  static nextId(): number;
171
141
  }
172
142
 
173
- declare const VERSION = "18.6.3";
143
+ declare const VERSION = "19.0.0";
174
144
 
175
145
  declare const nextId: typeof Sequence.nextId;
176
- declare const getAll: () => Tween<Record<string, unknown>>[];
146
+ declare const getAll: () => Tween<Record<string, any>>[];
177
147
  declare const removeAll: () => void;
178
- declare const add: (tween: Tween<Record<string, unknown>>) => void;
179
- declare const remove: (tween: Tween<Record<string, unknown>>) => void;
148
+ declare const add: (tween: Tween<Record<string, any>>) => void;
149
+ declare const remove: (tween: Tween<Record<string, any>>) => void;
180
150
  declare const update: (time?: number, preserve?: boolean) => boolean;
181
151
  declare const exports: {
182
- Easing: {
183
- Linear: {
184
- None: (amount: number) => number;
185
- };
186
- Quadratic: {
187
- In: (amount: number) => number;
188
- Out: (amount: number) => number;
189
- InOut: (amount: number) => number;
190
- };
191
- Cubic: {
192
- In: (amount: number) => number;
193
- Out: (amount: number) => number;
194
- InOut: (amount: number) => number;
195
- };
196
- Quartic: {
197
- In: (amount: number) => number;
198
- Out: (amount: number) => number;
199
- InOut: (amount: number) => number;
200
- };
201
- Quintic: {
202
- In: (amount: number) => number;
203
- Out: (amount: number) => number;
204
- InOut: (amount: number) => number;
205
- };
206
- Sinusoidal: {
207
- In: (amount: number) => number;
208
- Out: (amount: number) => number;
209
- InOut: (amount: number) => number;
210
- };
211
- Exponential: {
212
- In: (amount: number) => number;
213
- Out: (amount: number) => number;
214
- InOut: (amount: number) => number;
215
- };
216
- Circular: {
217
- In: (amount: number) => number;
218
- Out: (amount: number) => number;
219
- InOut: (amount: number) => number;
220
- };
221
- Elastic: {
222
- In: (amount: number) => number;
223
- Out: (amount: number) => number;
224
- InOut: (amount: number) => number;
225
- };
226
- Back: {
227
- In: (amount: number) => number;
228
- Out: (amount: number) => number;
229
- InOut: (amount: number) => number;
230
- };
231
- Bounce: {
232
- In: (amount: number) => number;
233
- Out: (amount: number) => number;
234
- InOut: (amount: number) => number;
235
- };
236
- };
152
+ Easing: Readonly<{
153
+ Linear: Readonly<EasingFunctionGroup & {
154
+ None: EasingFunction;
155
+ }>;
156
+ Quadratic: Readonly<EasingFunctionGroup>;
157
+ Cubic: Readonly<EasingFunctionGroup>;
158
+ Quartic: Readonly<EasingFunctionGroup>;
159
+ Quintic: Readonly<EasingFunctionGroup>;
160
+ Sinusoidal: Readonly<EasingFunctionGroup>;
161
+ Exponential: Readonly<EasingFunctionGroup>;
162
+ Circular: Readonly<EasingFunctionGroup>;
163
+ Elastic: Readonly<EasingFunctionGroup>;
164
+ Back: Readonly<EasingFunctionGroup>;
165
+ Bounce: Readonly<EasingFunctionGroup>;
166
+ generatePow(power?: number): EasingFunctionGroup;
167
+ }>;
237
168
  Group: typeof Group;
238
169
  Interpolation: {
239
170
  Linear: (v: number[], k: number) => number;
@@ -251,10 +182,10 @@ declare const exports: {
251
182
  nextId: typeof Sequence.nextId;
252
183
  Tween: typeof Tween;
253
184
  VERSION: string;
254
- getAll: () => Tween<Record<string, unknown>>[];
185
+ getAll: () => Tween<Record<string, any>>[];
255
186
  removeAll: () => void;
256
- add: (tween: Tween<Record<string, unknown>>) => void;
257
- remove: (tween: Tween<Record<string, unknown>>) => void;
187
+ add: (tween: Tween<Record<string, any>>) => void;
188
+ remove: (tween: Tween<Record<string, any>>) => void;
258
189
  update: (time?: number, preserve?: boolean) => boolean;
259
190
  };
260
191