@vpmedia/phaser 1.14.0 → 1.16.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/README.md +3 -3
- package/package.json +6 -5
- package/src/index.js +15 -18
- package/src/phaser/core/animation.js +102 -6
- package/src/phaser/core/animation_manager.js +88 -10
- package/src/phaser/core/animation_parser.js +5 -20
- package/src/phaser/core/array_set.js +51 -5
- package/src/phaser/core/cache.js +291 -6
- package/src/phaser/core/const.js +107 -4
- package/src/phaser/core/device.js +5 -6
- package/src/phaser/core/device_util.js +3 -25
- package/src/phaser/core/dom.js +127 -29
- package/src/phaser/core/event_manager.js +128 -6
- package/src/phaser/core/factory.js +69 -34
- package/src/phaser/core/frame.js +43 -6
- package/src/phaser/core/frame_data.js +55 -5
- package/src/phaser/core/frame_util.js +7 -14
- package/src/phaser/core/game.js +35 -7
- package/src/phaser/core/input.js +116 -17
- package/src/phaser/core/input_handler.js +242 -42
- package/src/phaser/core/input_mouse.js +68 -7
- package/src/phaser/core/input_mspointer.js +40 -9
- package/src/phaser/core/input_pointer.js +79 -17
- package/src/phaser/core/input_touch.js +42 -5
- package/src/phaser/core/loader.js +274 -101
- package/src/phaser/core/loader_parser.js +2 -14
- package/src/phaser/core/raf.js +16 -5
- package/src/phaser/core/scale_manager.js +204 -39
- package/src/phaser/core/scene.js +24 -5
- package/src/phaser/core/scene_manager.js +81 -11
- package/src/phaser/core/signal.js +88 -11
- package/src/phaser/core/signal_binding.js +35 -15
- package/src/phaser/core/sound.js +99 -10
- package/src/phaser/core/sound_manager.js +89 -13
- package/src/phaser/core/sound_sprite.js +20 -5
- package/src/phaser/core/stage.js +43 -7
- package/src/phaser/core/time.js +67 -5
- package/src/phaser/core/timer.js +107 -30
- package/src/phaser/core/timer_event.js +11 -6
- package/src/phaser/core/tween.js +124 -30
- package/src/phaser/core/tween_data.js +42 -18
- package/src/phaser/core/tween_easing.js +1 -39
- package/src/phaser/core/tween_manager.js +47 -5
- package/src/phaser/core/world.js +9 -6
- package/src/phaser/display/bitmap_text.js +92 -11
- package/src/phaser/display/button.js +64 -13
- package/src/phaser/display/canvas/buffer.js +16 -6
- package/src/phaser/display/canvas/graphics.js +1 -16
- package/src/phaser/display/canvas/masker.js +0 -8
- package/src/phaser/display/canvas/pool.js +0 -14
- package/src/phaser/display/canvas/renderer.js +28 -8
- package/src/phaser/display/canvas/tinter.js +4 -48
- package/src/phaser/display/canvas/util.js +0 -15
- package/src/phaser/display/display_object.js +192 -20
- package/src/phaser/display/graphics.js +162 -27
- package/src/phaser/display/graphics_data.js +14 -6
- package/src/phaser/display/graphics_data_util.js +2 -9
- package/src/phaser/display/group.js +75 -10
- package/src/phaser/display/image.js +86 -10
- package/src/phaser/display/sprite_batch.js +3 -9
- package/src/phaser/display/sprite_util.js +3 -28
- package/src/phaser/display/text.js +332 -32
- package/src/phaser/display/webgl/abstract_filter.js +8 -7
- package/src/phaser/display/webgl/base_texture.js +20 -12
- package/src/phaser/display/webgl/blend_manager.js +14 -7
- package/src/phaser/display/webgl/earcut.js +4 -50
- package/src/phaser/display/webgl/earcut_node.js +6 -7
- package/src/phaser/display/webgl/fast_sprite_batch.js +34 -11
- package/src/phaser/display/webgl/filter_manager.js +25 -7
- package/src/phaser/display/webgl/filter_texture.js +21 -22
- package/src/phaser/display/webgl/graphics.js +5 -40
- package/src/phaser/display/webgl/graphics_data.js +10 -7
- package/src/phaser/display/webgl/mask_manager.js +0 -8
- package/src/phaser/display/webgl/render_texture.js +33 -21
- package/src/phaser/display/webgl/renderer.js +38 -11
- package/src/phaser/display/webgl/shader/complex.js +10 -6
- package/src/phaser/display/webgl/shader/fast.js +10 -6
- package/src/phaser/display/webgl/shader/normal.js +23 -32
- package/src/phaser/display/webgl/shader/primitive.js +10 -6
- package/src/phaser/display/webgl/shader/strip.js +10 -6
- package/src/phaser/display/webgl/shader_manager.js +18 -6
- package/src/phaser/display/webgl/sprite_batch.js +41 -8
- package/src/phaser/display/webgl/stencil_manager.js +28 -6
- package/src/phaser/display/webgl/texture.js +28 -15
- package/src/phaser/display/webgl/texture_util.js +0 -8
- package/src/phaser/display/webgl/util.js +0 -11
- package/src/phaser/geom/circle.js +123 -19
- package/src/phaser/geom/ellipse.js +39 -19
- package/src/phaser/geom/line.js +148 -17
- package/src/phaser/geom/matrix.js +73 -7
- package/src/phaser/geom/point.js +152 -7
- package/src/phaser/geom/polygon.js +42 -14
- package/src/phaser/geom/rectangle.js +233 -7
- package/src/phaser/geom/rounded_rectangle.js +10 -7
- package/src/phaser/geom/util/circle.js +3 -16
- package/src/phaser/geom/util/ellipse.js +0 -8
- package/src/phaser/geom/util/line.js +5 -19
- package/src/phaser/geom/util/matrix.js +1 -10
- package/src/phaser/geom/util/point.js +0 -26
- package/src/phaser/geom/util/polygon.js +1 -8
- package/src/phaser/geom/util/rectangle.js +1 -23
- package/src/phaser/geom/util/rounded_rectangle.js +1 -8
- package/src/phaser/util/math.js +3 -43
- package/{types → typedefs}/global.d.ts +1 -1
- package/types/index.d.ts +2 -1
- package/types/index.d.ts.map +1 -1
- package/types/phaser/core/animation.d.ts +106 -5
- package/types/phaser/core/animation.d.ts.map +1 -1
- package/types/phaser/core/animation_manager.d.ts +88 -1
- package/types/phaser/core/animation_manager.d.ts.map +1 -1
- package/types/phaser/core/animation_parser.d.ts +5 -6
- package/types/phaser/core/animation_parser.d.ts.map +1 -1
- package/types/phaser/core/array_set.d.ts +53 -7
- package/types/phaser/core/array_set.d.ts.map +1 -1
- package/types/phaser/core/cache.d.ts +348 -58
- package/types/phaser/core/cache.d.ts.map +1 -1
- package/types/phaser/core/const.d.ts +143 -40
- package/types/phaser/core/const.d.ts.map +1 -1
- package/types/phaser/core/device.d.ts +2 -5
- package/types/phaser/core/device.d.ts.map +1 -1
- package/types/phaser/core/device_util.d.ts +1 -10
- package/types/phaser/core/device_util.d.ts.map +1 -1
- package/types/phaser/core/dom.d.ts +122 -3
- package/types/phaser/core/dom.d.ts.map +1 -1
- package/types/phaser/core/event_manager.d.ts +142 -15
- package/types/phaser/core/event_manager.d.ts.map +1 -1
- package/types/phaser/core/factory.d.ts +74 -7
- package/types/phaser/core/factory.d.ts.map +1 -1
- package/types/phaser/core/frame.d.ts +68 -26
- package/types/phaser/core/frame.d.ts.map +1 -1
- package/types/phaser/core/frame_data.d.ts +61 -9
- package/types/phaser/core/frame_data.d.ts.map +1 -1
- package/types/phaser/core/frame_util.d.ts +10 -10
- package/types/phaser/core/frame_util.d.ts.map +1 -1
- package/types/phaser/core/game.d.ts +54 -20
- package/types/phaser/core/game.d.ts.map +1 -1
- package/types/phaser/core/input.d.ts +132 -21
- package/types/phaser/core/input.d.ts.map +1 -1
- package/types/phaser/core/input_handler.d.ts +258 -25
- package/types/phaser/core/input_handler.d.ts.map +1 -1
- package/types/phaser/core/input_mouse.d.ts +59 -12
- package/types/phaser/core/input_mouse.d.ts.map +1 -1
- package/types/phaser/core/input_mspointer.d.ts +49 -15
- package/types/phaser/core/input_mspointer.d.ts.map +1 -1
- package/types/phaser/core/input_pointer.d.ts +80 -4
- package/types/phaser/core/input_pointer.d.ts.map +1 -1
- package/types/phaser/core/input_touch.d.ts +52 -15
- package/types/phaser/core/input_touch.d.ts.map +1 -1
- package/types/phaser/core/loader.d.ts +268 -23
- package/types/phaser/core/loader.d.ts.map +1 -1
- package/types/phaser/core/loader_parser.d.ts +0 -4
- package/types/phaser/core/loader_parser.d.ts.map +1 -1
- package/types/phaser/core/raf.d.ts +17 -7
- package/types/phaser/core/raf.d.ts.map +1 -1
- package/types/phaser/core/scale_manager.d.ts +210 -15
- package/types/phaser/core/scale_manager.d.ts.map +1 -1
- package/types/phaser/core/scene.d.ts +21 -5
- package/types/phaser/core/scene.d.ts.map +1 -1
- package/types/phaser/core/scene_manager.d.ts +90 -10
- package/types/phaser/core/scene_manager.d.ts.map +1 -1
- package/types/phaser/core/signal.d.ts +95 -11
- package/types/phaser/core/signal.d.ts.map +1 -1
- package/types/phaser/core/signal_binding.d.ts +35 -6
- package/types/phaser/core/signal_binding.d.ts.map +1 -1
- package/types/phaser/core/sound.d.ts +111 -14
- package/types/phaser/core/sound.d.ts.map +1 -1
- package/types/phaser/core/sound_manager.d.ts +94 -8
- package/types/phaser/core/sound_manager.d.ts.map +1 -1
- package/types/phaser/core/sound_sprite.d.ts +22 -8
- package/types/phaser/core/sound_sprite.d.ts.map +1 -1
- package/types/phaser/core/stage.d.ts +32 -3
- package/types/phaser/core/stage.d.ts.map +1 -1
- package/types/phaser/core/time.d.ts +73 -6
- package/types/phaser/core/time.d.ts.map +1 -1
- package/types/phaser/core/timer.d.ts +103 -2
- package/types/phaser/core/timer.d.ts.map +1 -1
- package/types/phaser/core/timer_event.d.ts +11 -5
- package/types/phaser/core/timer_event.d.ts.map +1 -1
- package/types/phaser/core/tween.d.ts +123 -3
- package/types/phaser/core/tween.d.ts.map +1 -1
- package/types/phaser/core/tween_data.d.ts +42 -3
- package/types/phaser/core/tween_data.d.ts.map +1 -1
- package/types/phaser/core/tween_easing.d.ts +0 -36
- package/types/phaser/core/tween_easing.d.ts.map +1 -1
- package/types/phaser/core/tween_manager.d.ts +49 -2
- package/types/phaser/core/tween_manager.d.ts.map +1 -1
- package/types/phaser/core/world.d.ts +9 -1
- package/types/phaser/core/world.d.ts.map +1 -1
- package/types/phaser/display/bitmap_text.d.ts +89 -12
- package/types/phaser/display/bitmap_text.d.ts.map +1 -1
- package/types/phaser/display/button.d.ts +68 -11
- package/types/phaser/display/button.d.ts.map +1 -1
- package/types/phaser/display/canvas/buffer.d.ts +21 -5
- package/types/phaser/display/canvas/buffer.d.ts.map +1 -1
- package/types/phaser/display/canvas/graphics.d.ts +0 -3
- package/types/phaser/display/canvas/graphics.d.ts.map +1 -1
- package/types/phaser/display/canvas/masker.d.ts +0 -2
- package/types/phaser/display/canvas/masker.d.ts.map +1 -1
- package/types/phaser/display/canvas/pool.d.ts +0 -13
- package/types/phaser/display/canvas/pool.d.ts.map +1 -1
- package/types/phaser/display/canvas/renderer.d.ts +30 -3
- package/types/phaser/display/canvas/renderer.d.ts.map +1 -1
- package/types/phaser/display/canvas/tinter.d.ts +0 -5
- package/types/phaser/display/canvas/tinter.d.ts.map +1 -1
- package/types/phaser/display/canvas/util.d.ts +0 -9
- package/types/phaser/display/canvas/util.d.ts.map +1 -1
- package/types/phaser/display/display_object.d.ts +196 -9
- package/types/phaser/display/display_object.d.ts.map +1 -1
- package/types/phaser/display/graphics.d.ts +142 -16
- package/types/phaser/display/graphics.d.ts.map +1 -1
- package/types/phaser/display/graphics_data.d.ts +15 -1
- package/types/phaser/display/graphics_data.d.ts.map +1 -1
- package/types/phaser/display/graphics_data_util.d.ts +3 -3
- package/types/phaser/display/graphics_data_util.d.ts.map +1 -1
- package/types/phaser/display/group.d.ts +68 -6
- package/types/phaser/display/group.d.ts.map +1 -1
- package/types/phaser/display/image.d.ts +77 -15
- package/types/phaser/display/image.d.ts.map +1 -1
- package/types/phaser/display/sprite_batch.d.ts +4 -4
- package/types/phaser/display/sprite_batch.d.ts.map +1 -1
- package/types/phaser/display/sprite_util.d.ts +0 -5
- package/types/phaser/display/sprite_util.d.ts.map +1 -1
- package/types/phaser/display/text.d.ts +373 -53
- package/types/phaser/display/text.d.ts.map +1 -1
- package/types/phaser/display/webgl/abstract_filter.d.ts +8 -6
- package/types/phaser/display/webgl/abstract_filter.d.ts.map +1 -1
- package/types/phaser/display/webgl/base_texture.d.ts +20 -1
- package/types/phaser/display/webgl/base_texture.d.ts.map +1 -1
- package/types/phaser/display/webgl/blend_manager.d.ts +11 -6
- package/types/phaser/display/webgl/blend_manager.d.ts.map +1 -1
- package/types/phaser/display/webgl/earcut.d.ts +0 -27
- package/types/phaser/display/webgl/earcut.d.ts.map +1 -1
- package/types/phaser/display/webgl/earcut_node.d.ts +9 -9
- package/types/phaser/display/webgl/earcut_node.d.ts.map +1 -1
- package/types/phaser/display/webgl/fast_sprite_batch.d.ts +33 -6
- package/types/phaser/display/webgl/fast_sprite_batch.d.ts.map +1 -1
- package/types/phaser/display/webgl/filter_manager.d.ts +23 -7
- package/types/phaser/display/webgl/filter_manager.d.ts.map +1 -1
- package/types/phaser/display/webgl/filter_texture.d.ts +21 -3
- package/types/phaser/display/webgl/filter_texture.d.ts.map +1 -1
- package/types/phaser/display/webgl/graphics.d.ts +0 -12
- package/types/phaser/display/webgl/graphics.d.ts.map +1 -1
- package/types/phaser/display/webgl/graphics_data.d.ts +12 -8
- package/types/phaser/display/webgl/graphics_data.d.ts.map +1 -1
- package/types/phaser/display/webgl/mask_manager.d.ts +0 -2
- package/types/phaser/display/webgl/mask_manager.d.ts.map +1 -1
- package/types/phaser/display/webgl/render_texture.d.ts +31 -4
- package/types/phaser/display/webgl/render_texture.d.ts.map +1 -1
- package/types/phaser/display/webgl/renderer.d.ts +42 -5
- package/types/phaser/display/webgl/renderer.d.ts.map +1 -1
- package/types/phaser/display/webgl/shader/complex.d.ts +12 -2
- package/types/phaser/display/webgl/shader/complex.d.ts.map +1 -1
- package/types/phaser/display/webgl/shader/fast.d.ts +12 -2
- package/types/phaser/display/webgl/shader/fast.d.ts.map +1 -1
- package/types/phaser/display/webgl/shader/normal.d.ts +21 -1
- package/types/phaser/display/webgl/shader/normal.d.ts.map +1 -1
- package/types/phaser/display/webgl/shader/primitive.d.ts +12 -2
- package/types/phaser/display/webgl/shader/primitive.d.ts.map +1 -1
- package/types/phaser/display/webgl/shader/strip.d.ts +12 -2
- package/types/phaser/display/webgl/shader/strip.d.ts.map +1 -1
- package/types/phaser/display/webgl/shader_manager.d.ts +20 -5
- package/types/phaser/display/webgl/shader_manager.d.ts.map +1 -1
- package/types/phaser/display/webgl/sprite_batch.d.ts +38 -1
- package/types/phaser/display/webgl/sprite_batch.d.ts.map +1 -1
- package/types/phaser/display/webgl/stencil_manager.d.ts +25 -0
- package/types/phaser/display/webgl/stencil_manager.d.ts.map +1 -1
- package/types/phaser/display/webgl/texture.d.ts +22 -1
- package/types/phaser/display/webgl/texture.d.ts.map +1 -1
- package/types/phaser/display/webgl/texture_util.d.ts +0 -2
- package/types/phaser/display/webgl/texture_util.d.ts.map +1 -1
- package/types/phaser/display/webgl/util.d.ts +0 -10
- package/types/phaser/display/webgl/util.d.ts.map +1 -1
- package/types/phaser/geom/circle.d.ts +130 -10
- package/types/phaser/geom/circle.d.ts.map +1 -1
- package/types/phaser/geom/ellipse.d.ts +42 -6
- package/types/phaser/geom/ellipse.d.ts.map +1 -1
- package/types/phaser/geom/line.d.ts +159 -14
- package/types/phaser/geom/line.d.ts.map +1 -1
- package/types/phaser/geom/matrix.d.ts +84 -12
- package/types/phaser/geom/matrix.d.ts.map +1 -1
- package/types/phaser/geom/point.d.ts +170 -19
- package/types/phaser/geom/point.d.ts.map +1 -1
- package/types/phaser/geom/polygon.d.ts +45 -5
- package/types/phaser/geom/polygon.d.ts.map +1 -1
- package/types/phaser/geom/rectangle.d.ts +253 -21
- package/types/phaser/geom/rectangle.d.ts.map +1 -1
- package/types/phaser/geom/rounded_rectangle.d.ts +11 -2
- package/types/phaser/geom/rounded_rectangle.d.ts.map +1 -1
- package/types/phaser/geom/util/circle.d.ts +3 -10
- package/types/phaser/geom/util/circle.d.ts.map +1 -1
- package/types/phaser/geom/util/ellipse.d.ts +0 -7
- package/types/phaser/geom/util/ellipse.d.ts.map +1 -1
- package/types/phaser/geom/util/line.d.ts +5 -10
- package/types/phaser/geom/util/line.d.ts.map +1 -1
- package/types/phaser/geom/util/matrix.d.ts +0 -3
- package/types/phaser/geom/util/matrix.d.ts.map +1 -1
- package/types/phaser/geom/util/point.d.ts +0 -20
- package/types/phaser/geom/util/point.d.ts.map +1 -1
- package/types/phaser/geom/util/polygon.d.ts +0 -1
- package/types/phaser/geom/util/polygon.d.ts.map +1 -1
- package/types/phaser/geom/util/rectangle.d.ts +0 -16
- package/types/phaser/geom/util/rectangle.d.ts.map +1 -1
- package/types/phaser/geom/util/rounded_rectangle.d.ts +0 -1
- package/types/phaser/geom/util/rounded_rectangle.d.ts.map +1 -1
- package/types/phaser/util/math.d.ts +0 -27
- package/types/phaser/util/math.d.ts.map +1 -1
package/src/phaser/core/tween.js
CHANGED
|
@@ -1,14 +1,16 @@
|
|
|
1
|
-
|
|
2
|
-
* @copyright Copyright (c) 2018-present Richard Davey, Photon Storm Ltd., Andras Csizmadia <andras@vpmedia.hu> (www.vpmedia.hu)
|
|
3
|
-
* @author Andras Csizmadia <andras@vpmedia.hu>
|
|
4
|
-
* @author Richard Davey <rich@photonstorm.com>
|
|
5
|
-
*/
|
|
6
|
-
import { Signal } from './signal';
|
|
1
|
+
import { Signal } from './signal';
|
|
7
2
|
import { TweenData } from './tween_data';
|
|
8
3
|
import * as MathUtils from '../util/math';
|
|
9
4
|
import { TWEEN_PENDING, TWEEN_RUNNING, TWEEN_COMPLETE, TWEEN_LOOPED } from './const';
|
|
5
|
+
import { Game } from './game';
|
|
10
6
|
|
|
11
7
|
export class Tween {
|
|
8
|
+
/**
|
|
9
|
+
* TBD.
|
|
10
|
+
* @param target - TBD.
|
|
11
|
+
* @param {Game} game - TBD.
|
|
12
|
+
* @param manager
|
|
13
|
+
*/
|
|
12
14
|
constructor(target, game, manager) {
|
|
13
15
|
this.game = game;
|
|
14
16
|
this.target = target;
|
|
@@ -35,15 +37,17 @@ export class Tween {
|
|
|
35
37
|
this._hasStarted = false;
|
|
36
38
|
}
|
|
37
39
|
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
40
|
+
/**
|
|
41
|
+
* TBD.
|
|
42
|
+
* @param properties
|
|
43
|
+
* @param duration - TBD.
|
|
44
|
+
* @param ease - TBD.
|
|
45
|
+
* @param autoStart
|
|
46
|
+
* @param delay - TBD.
|
|
47
|
+
* @param repeat
|
|
48
|
+
* @param yoyo
|
|
49
|
+
*/
|
|
50
|
+
to(properties, duration = 1000, ease = 'Linear', autoStart = false, delay = 0, repeat = 0, yoyo = false) {
|
|
47
51
|
if (typeof ease === 'string' && this.manager.easeMap[ease]) {
|
|
48
52
|
ease = this.manager.easeMap[ease];
|
|
49
53
|
}
|
|
@@ -57,15 +61,17 @@ export class Tween {
|
|
|
57
61
|
return this;
|
|
58
62
|
}
|
|
59
63
|
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
64
|
+
/**
|
|
65
|
+
* TBD.
|
|
66
|
+
* @param properties
|
|
67
|
+
* @param duration - TBD.
|
|
68
|
+
* @param ease - TBD.
|
|
69
|
+
* @param autoStart
|
|
70
|
+
* @param delay - TBD.
|
|
71
|
+
* @param repeat
|
|
72
|
+
* @param yoyo
|
|
73
|
+
*/
|
|
74
|
+
from(properties, duration = 1000, ease = 'Linear', autoStart = false, delay = 0, repeat = 0, yoyo = false) {
|
|
69
75
|
if (typeof ease === 'string' && this.manager.easeMap[ease]) {
|
|
70
76
|
ease = this.manager.easeMap[ease];
|
|
71
77
|
}
|
|
@@ -80,13 +86,12 @@ export class Tween {
|
|
|
80
86
|
return this;
|
|
81
87
|
}
|
|
82
88
|
|
|
89
|
+
/**
|
|
90
|
+
* TBD.
|
|
91
|
+
* @param index - TBD.
|
|
92
|
+
*/
|
|
83
93
|
start(index = 0) {
|
|
84
|
-
if (
|
|
85
|
-
this.game === null ||
|
|
86
|
-
this.target === null ||
|
|
87
|
-
this.timeline.length === 0 ||
|
|
88
|
-
this.isRunning
|
|
89
|
-
) {
|
|
94
|
+
if (this.game === null || this.target === null || this.timeline.length === 0 || this.isRunning) {
|
|
90
95
|
return this;
|
|
91
96
|
}
|
|
92
97
|
// Populate the tween data
|
|
@@ -115,6 +120,10 @@ export class Tween {
|
|
|
115
120
|
return this;
|
|
116
121
|
}
|
|
117
122
|
|
|
123
|
+
/**
|
|
124
|
+
* TBD.
|
|
125
|
+
* @param complete
|
|
126
|
+
*/
|
|
118
127
|
stop(complete = false) {
|
|
119
128
|
this.isRunning = false;
|
|
120
129
|
this._onUpdateCallback = null;
|
|
@@ -130,6 +139,12 @@ export class Tween {
|
|
|
130
139
|
return this;
|
|
131
140
|
}
|
|
132
141
|
|
|
142
|
+
/**
|
|
143
|
+
* TBD.
|
|
144
|
+
* @param property
|
|
145
|
+
* @param value
|
|
146
|
+
* @param index - TBD.
|
|
147
|
+
*/
|
|
133
148
|
updateTweenData(property, value, index = 0) {
|
|
134
149
|
if (this.timeline.length === 0) {
|
|
135
150
|
return this;
|
|
@@ -144,28 +159,60 @@ export class Tween {
|
|
|
144
159
|
return this;
|
|
145
160
|
}
|
|
146
161
|
|
|
162
|
+
/**
|
|
163
|
+
* TBD.
|
|
164
|
+
* @param duration - TBD.
|
|
165
|
+
* @param index - TBD.
|
|
166
|
+
*/
|
|
147
167
|
delay(duration, index) {
|
|
148
168
|
return this.updateTweenData('delay', duration, index);
|
|
149
169
|
}
|
|
150
170
|
|
|
171
|
+
/**
|
|
172
|
+
* TBD.
|
|
173
|
+
* @param total
|
|
174
|
+
* @param repeatDelay
|
|
175
|
+
* @param index - TBD.
|
|
176
|
+
*/
|
|
151
177
|
repeat(total, repeatDelay = 0, index = 0) {
|
|
152
178
|
this.updateTweenData('repeatCounter', total, index);
|
|
153
179
|
return this.updateTweenData('repeatDelay', repeatDelay, index);
|
|
154
180
|
}
|
|
155
181
|
|
|
182
|
+
/**
|
|
183
|
+
* TBD.
|
|
184
|
+
* @param duration - TBD.
|
|
185
|
+
* @param index - TBD.
|
|
186
|
+
*/
|
|
156
187
|
repeatDelay(duration, index) {
|
|
157
188
|
return this.updateTweenData('repeatDelay', duration, index);
|
|
158
189
|
}
|
|
159
190
|
|
|
191
|
+
/**
|
|
192
|
+
* TBD.
|
|
193
|
+
* @param enable
|
|
194
|
+
* @param yoyoDelay
|
|
195
|
+
* @param index - TBD.
|
|
196
|
+
*/
|
|
160
197
|
yoyo(enable, yoyoDelay = 0, index = 0) {
|
|
161
198
|
this.updateTweenData('yoyo', enable, index);
|
|
162
199
|
return this.updateTweenData('yoyoDelay', yoyoDelay, index);
|
|
163
200
|
}
|
|
164
201
|
|
|
202
|
+
/**
|
|
203
|
+
* TBD.
|
|
204
|
+
* @param duration - TBD.
|
|
205
|
+
* @param index - TBD.
|
|
206
|
+
*/
|
|
165
207
|
yoyoDelay(duration, index) {
|
|
166
208
|
return this.updateTweenData('yoyoDelay', duration, index);
|
|
167
209
|
}
|
|
168
210
|
|
|
211
|
+
/**
|
|
212
|
+
* TBD.
|
|
213
|
+
* @param ease - TBD.
|
|
214
|
+
* @param index - TBD.
|
|
215
|
+
*/
|
|
169
216
|
easing(ease, index) {
|
|
170
217
|
if (typeof ease === 'string' && this.manager.easeMap[ease]) {
|
|
171
218
|
ease = this.manager.easeMap[ease];
|
|
@@ -173,16 +220,30 @@ export class Tween {
|
|
|
173
220
|
return this.updateTweenData('easingFunction', ease, index);
|
|
174
221
|
}
|
|
175
222
|
|
|
223
|
+
/**
|
|
224
|
+
* TBD.
|
|
225
|
+
* @param interpolation
|
|
226
|
+
* @param context
|
|
227
|
+
* @param index - TBD.
|
|
228
|
+
*/
|
|
176
229
|
interpolation(interpolation, context = MathUtils, index = 0) {
|
|
177
230
|
this.updateTweenData('interpolationFunction', interpolation, index);
|
|
178
231
|
return this.updateTweenData('interpolationContext', context, index);
|
|
179
232
|
}
|
|
180
233
|
|
|
234
|
+
/**
|
|
235
|
+
* TBD.
|
|
236
|
+
* @param total
|
|
237
|
+
*/
|
|
181
238
|
repeatAll(total = 0) {
|
|
182
239
|
this.repeatCounter = total;
|
|
183
240
|
return this;
|
|
184
241
|
}
|
|
185
242
|
|
|
243
|
+
/**
|
|
244
|
+
* TBD.
|
|
245
|
+
* @param {...any} args
|
|
246
|
+
*/
|
|
186
247
|
chain(...args) {
|
|
187
248
|
let i = args.length;
|
|
188
249
|
while (i) {
|
|
@@ -196,23 +257,38 @@ export class Tween {
|
|
|
196
257
|
return this;
|
|
197
258
|
}
|
|
198
259
|
|
|
260
|
+
/**
|
|
261
|
+
* TBD.
|
|
262
|
+
* @param value
|
|
263
|
+
*/
|
|
199
264
|
loop(value = true) {
|
|
200
265
|
this.repeatCounter = value ? -1 : 0;
|
|
201
266
|
return this;
|
|
202
267
|
}
|
|
203
268
|
|
|
269
|
+
/**
|
|
270
|
+
* TBD.
|
|
271
|
+
* @param callback - TBD.
|
|
272
|
+
* @param callbackContext
|
|
273
|
+
*/
|
|
204
274
|
onUpdateCallback(callback, callbackContext) {
|
|
205
275
|
this._onUpdateCallback = callback;
|
|
206
276
|
this._onUpdateCallbackContext = callbackContext;
|
|
207
277
|
return this;
|
|
208
278
|
}
|
|
209
279
|
|
|
280
|
+
/**
|
|
281
|
+
* TBD.
|
|
282
|
+
*/
|
|
210
283
|
pause() {
|
|
211
284
|
this.isPaused = true;
|
|
212
285
|
this._codePaused = true;
|
|
213
286
|
this._pausedTime = this.game.time.time;
|
|
214
287
|
}
|
|
215
288
|
|
|
289
|
+
/**
|
|
290
|
+
* TBD.
|
|
291
|
+
*/
|
|
216
292
|
_pause() {
|
|
217
293
|
if (!this._codePaused) {
|
|
218
294
|
this.isPaused = true;
|
|
@@ -220,6 +296,9 @@ export class Tween {
|
|
|
220
296
|
}
|
|
221
297
|
}
|
|
222
298
|
|
|
299
|
+
/**
|
|
300
|
+
* TBD.
|
|
301
|
+
*/
|
|
223
302
|
resume() {
|
|
224
303
|
if (this.isPaused) {
|
|
225
304
|
this.isPaused = false;
|
|
@@ -232,12 +311,19 @@ export class Tween {
|
|
|
232
311
|
}
|
|
233
312
|
}
|
|
234
313
|
|
|
314
|
+
/**
|
|
315
|
+
* TBD.
|
|
316
|
+
*/
|
|
235
317
|
_resume() {
|
|
236
318
|
if (!this._codePaused) {
|
|
237
319
|
this.resume();
|
|
238
320
|
}
|
|
239
321
|
}
|
|
240
322
|
|
|
323
|
+
/**
|
|
324
|
+
* TBD.
|
|
325
|
+
* @param time
|
|
326
|
+
*/
|
|
241
327
|
update(time) {
|
|
242
328
|
if (this.pendingDelete || !this.target) {
|
|
243
329
|
return false;
|
|
@@ -316,6 +402,11 @@ export class Tween {
|
|
|
316
402
|
return false;
|
|
317
403
|
}
|
|
318
404
|
|
|
405
|
+
/**
|
|
406
|
+
* TBD.
|
|
407
|
+
* @param frameRate
|
|
408
|
+
* @param data
|
|
409
|
+
*/
|
|
319
410
|
generateData(frameRate = 60, data = []) {
|
|
320
411
|
if (this.game === null || this.target === null) {
|
|
321
412
|
return null;
|
|
@@ -342,6 +433,9 @@ export class Tween {
|
|
|
342
433
|
return data;
|
|
343
434
|
}
|
|
344
435
|
|
|
436
|
+
/**
|
|
437
|
+
* TBD.
|
|
438
|
+
*/
|
|
345
439
|
get totalDuration() {
|
|
346
440
|
let total = 0;
|
|
347
441
|
for (let i = 0; i < this.timeline.length; i += 1) {
|
|
@@ -1,12 +1,11 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @copyright Copyright (c) 2018-present Richard Davey, Photon Storm Ltd., Andras Csizmadia <andras@vpmedia.hu> (www.vpmedia.hu)
|
|
3
|
-
* @author Andras Csizmadia <andras@vpmedia.hu>
|
|
4
|
-
* @author Richard Davey <rich@photonstorm.com>
|
|
5
|
-
*/
|
|
6
1
|
import * as MathUtils from '../util/math';
|
|
7
2
|
import { TWEEN_PENDING, TWEEN_RUNNING, TWEEN_COMPLETE, TWEEN_LOOPED } from './const';
|
|
8
3
|
|
|
9
4
|
export class TweenData {
|
|
5
|
+
/**
|
|
6
|
+
* TBD.
|
|
7
|
+
* @param parent
|
|
8
|
+
*/
|
|
10
9
|
constructor(parent) {
|
|
11
10
|
this.parent = parent;
|
|
12
11
|
this.game = parent.game;
|
|
@@ -34,6 +33,15 @@ export class TweenData {
|
|
|
34
33
|
this.isFrom = false;
|
|
35
34
|
}
|
|
36
35
|
|
|
36
|
+
/**
|
|
37
|
+
* TBD.
|
|
38
|
+
* @param properties
|
|
39
|
+
* @param duration - TBD.
|
|
40
|
+
* @param ease - TBD.
|
|
41
|
+
* @param delay - TBD.
|
|
42
|
+
* @param repeat
|
|
43
|
+
* @param yoyo
|
|
44
|
+
*/
|
|
37
45
|
to(properties, duration, ease, delay, repeat, yoyo) {
|
|
38
46
|
this.vEnd = properties;
|
|
39
47
|
this.duration = duration;
|
|
@@ -45,6 +53,15 @@ export class TweenData {
|
|
|
45
53
|
return this;
|
|
46
54
|
}
|
|
47
55
|
|
|
56
|
+
/**
|
|
57
|
+
* TBD.
|
|
58
|
+
* @param properties
|
|
59
|
+
* @param duration - TBD.
|
|
60
|
+
* @param ease - TBD.
|
|
61
|
+
* @param delay - TBD.
|
|
62
|
+
* @param repeat
|
|
63
|
+
* @param yoyo
|
|
64
|
+
*/
|
|
48
65
|
from(properties, duration, ease, delay, repeat, yoyo) {
|
|
49
66
|
this.vEnd = properties;
|
|
50
67
|
this.duration = duration;
|
|
@@ -56,6 +73,9 @@ export class TweenData {
|
|
|
56
73
|
return this;
|
|
57
74
|
}
|
|
58
75
|
|
|
76
|
+
/**
|
|
77
|
+
* TBD.
|
|
78
|
+
*/
|
|
59
79
|
start() {
|
|
60
80
|
this.startTime = this.game.time.time + this.delay;
|
|
61
81
|
if (this.parent.reverse) {
|
|
@@ -84,6 +104,9 @@ export class TweenData {
|
|
|
84
104
|
return this;
|
|
85
105
|
}
|
|
86
106
|
|
|
107
|
+
/**
|
|
108
|
+
* TBD.
|
|
109
|
+
*/
|
|
87
110
|
loadValues() {
|
|
88
111
|
const keys = Object.keys(this.parent.properties);
|
|
89
112
|
for (let k = 0; k < keys.length; k += 1) {
|
|
@@ -117,6 +140,10 @@ export class TweenData {
|
|
|
117
140
|
return this;
|
|
118
141
|
}
|
|
119
142
|
|
|
143
|
+
/**
|
|
144
|
+
* TBD.
|
|
145
|
+
* @param time
|
|
146
|
+
*/
|
|
120
147
|
update(time) {
|
|
121
148
|
if (!this.isRunning) {
|
|
122
149
|
if (time >= this.startTime) {
|
|
@@ -144,24 +171,21 @@ export class TweenData {
|
|
|
144
171
|
const start = this.vStart[property];
|
|
145
172
|
const end = this.vEnd[property];
|
|
146
173
|
if (Array.isArray(end)) {
|
|
147
|
-
this.parent.target[property] = this.interpolationFunction.call(
|
|
148
|
-
this.interpolationContext,
|
|
149
|
-
end,
|
|
150
|
-
this.value
|
|
151
|
-
);
|
|
174
|
+
this.parent.target[property] = this.interpolationFunction.call(this.interpolationContext, end, this.value);
|
|
152
175
|
} else {
|
|
153
176
|
this.parent.target[property] = start + (end - start) * this.value;
|
|
154
177
|
}
|
|
155
178
|
}
|
|
156
|
-
if (
|
|
157
|
-
(!this.parent.reverse && this.percent === 1) ||
|
|
158
|
-
(this.parent.reverse && this.percent === 0)
|
|
159
|
-
) {
|
|
179
|
+
if ((!this.parent.reverse && this.percent === 1) || (this.parent.reverse && this.percent === 0)) {
|
|
160
180
|
return this.repeat();
|
|
161
181
|
}
|
|
162
182
|
return TWEEN_RUNNING;
|
|
163
183
|
}
|
|
164
184
|
|
|
185
|
+
/**
|
|
186
|
+
* TBD.
|
|
187
|
+
* @param frameRate
|
|
188
|
+
*/
|
|
165
189
|
generateData(frameRate) {
|
|
166
190
|
if (this.parent.reverse) {
|
|
167
191
|
this.dt = this.duration;
|
|
@@ -194,10 +218,7 @@ export class TweenData {
|
|
|
194
218
|
}
|
|
195
219
|
}
|
|
196
220
|
data.push(blob);
|
|
197
|
-
if (
|
|
198
|
-
(!this.parent.reverse && this.percent === 1) ||
|
|
199
|
-
(this.parent.reverse && this.percent === 0)
|
|
200
|
-
) {
|
|
221
|
+
if ((!this.parent.reverse && this.percent === 1) || (this.parent.reverse && this.percent === 0)) {
|
|
201
222
|
complete = true;
|
|
202
223
|
}
|
|
203
224
|
} while (!complete);
|
|
@@ -209,6 +230,9 @@ export class TweenData {
|
|
|
209
230
|
return data;
|
|
210
231
|
}
|
|
211
232
|
|
|
233
|
+
/**
|
|
234
|
+
* TBD.
|
|
235
|
+
*/
|
|
212
236
|
repeat() {
|
|
213
237
|
// If not a yoyo and repeatCounter = 0 then we're done
|
|
214
238
|
if (this.yoyo) {
|
|
@@ -1,12 +1,5 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @copyright Copyright (c) 2018-present Richard Davey, Photon Storm Ltd., Andras Csizmadia <andras@vpmedia.hu> (www.vpmedia.hu)
|
|
3
|
-
* @author Andras Csizmadia <andras@vpmedia.hu>
|
|
4
|
-
* @author Richard Davey <rich@photonstorm.com>
|
|
5
|
-
*/
|
|
6
|
-
|
|
7
1
|
/**
|
|
8
2
|
* TBD.
|
|
9
|
-
*
|
|
10
3
|
* @param {number} k - TBD.
|
|
11
4
|
* @returns {number} TBD.
|
|
12
5
|
*/
|
|
@@ -16,7 +9,6 @@ export function LinearNone(k) {
|
|
|
16
9
|
|
|
17
10
|
/**
|
|
18
11
|
* TBD.
|
|
19
|
-
*
|
|
20
12
|
* @param {number} k - TBD.
|
|
21
13
|
* @returns {number} TBD.
|
|
22
14
|
*/
|
|
@@ -26,7 +18,6 @@ export function QuadraticIn(k) {
|
|
|
26
18
|
|
|
27
19
|
/**
|
|
28
20
|
* TBD.
|
|
29
|
-
*
|
|
30
21
|
* @param {number} k - TBD.
|
|
31
22
|
* @returns {number} TBD.
|
|
32
23
|
*/
|
|
@@ -36,7 +27,6 @@ export function QuadraticOut(k) {
|
|
|
36
27
|
|
|
37
28
|
/**
|
|
38
29
|
* TBD.
|
|
39
|
-
*
|
|
40
30
|
* @param {number} k - TBD.
|
|
41
31
|
* @returns {number} TBD.
|
|
42
32
|
*/
|
|
@@ -47,7 +37,6 @@ export function QuadraticInOut(k) {
|
|
|
47
37
|
|
|
48
38
|
/**
|
|
49
39
|
* TBD.
|
|
50
|
-
*
|
|
51
40
|
* @param {number} k - TBD.
|
|
52
41
|
* @returns {number} TBD.
|
|
53
42
|
*/
|
|
@@ -57,7 +46,6 @@ export function CubicIn(k) {
|
|
|
57
46
|
|
|
58
47
|
/**
|
|
59
48
|
* TBD.
|
|
60
|
-
*
|
|
61
49
|
* @param {number} k - TBD.
|
|
62
50
|
* @returns {number} TBD.
|
|
63
51
|
*/
|
|
@@ -67,7 +55,6 @@ export function CubicOut(k) {
|
|
|
67
55
|
|
|
68
56
|
/**
|
|
69
57
|
* TBD.
|
|
70
|
-
*
|
|
71
58
|
* @param {number} k - TBD.
|
|
72
59
|
* @returns {number} TBD.
|
|
73
60
|
*/
|
|
@@ -78,7 +65,6 @@ export function CubicInOut(k) {
|
|
|
78
65
|
|
|
79
66
|
/**
|
|
80
67
|
* TBD.
|
|
81
|
-
*
|
|
82
68
|
* @param {number} k - TBD.
|
|
83
69
|
* @returns {number} TBD.
|
|
84
70
|
*/
|
|
@@ -88,7 +74,6 @@ export function QuarticIn(k) {
|
|
|
88
74
|
|
|
89
75
|
/**
|
|
90
76
|
* TBD.
|
|
91
|
-
*
|
|
92
77
|
* @param {number} k - TBD.
|
|
93
78
|
* @returns {number} TBD.
|
|
94
79
|
*/
|
|
@@ -98,7 +83,6 @@ export function QuarticOut(k) {
|
|
|
98
83
|
|
|
99
84
|
/**
|
|
100
85
|
* TBD.
|
|
101
|
-
*
|
|
102
86
|
* @param {number} k - TBD.
|
|
103
87
|
* @returns {number} TBD.
|
|
104
88
|
*/
|
|
@@ -109,7 +93,6 @@ export function QuarticInOut(k) {
|
|
|
109
93
|
|
|
110
94
|
/**
|
|
111
95
|
* TBD.
|
|
112
|
-
*
|
|
113
96
|
* @param {number} k - TBD.
|
|
114
97
|
* @returns {number} TBD.
|
|
115
98
|
*/
|
|
@@ -119,7 +102,6 @@ export function QuinticIn(k) {
|
|
|
119
102
|
|
|
120
103
|
/**
|
|
121
104
|
* TBD.
|
|
122
|
-
*
|
|
123
105
|
* @param {number} k - TBD.
|
|
124
106
|
* @returns {number} TBD.
|
|
125
107
|
*/
|
|
@@ -129,7 +111,6 @@ export function QuinticOut(k) {
|
|
|
129
111
|
|
|
130
112
|
/**
|
|
131
113
|
* TBD.
|
|
132
|
-
*
|
|
133
114
|
* @param {number} k - TBD.
|
|
134
115
|
* @returns {number} TBD.
|
|
135
116
|
*/
|
|
@@ -140,7 +121,6 @@ export function QuinticInOut(k) {
|
|
|
140
121
|
|
|
141
122
|
/**
|
|
142
123
|
* TBD.
|
|
143
|
-
*
|
|
144
124
|
* @param {number} k - TBD.
|
|
145
125
|
* @returns {number} TBD.
|
|
146
126
|
*/
|
|
@@ -152,7 +132,6 @@ export function SinusoidalIn(k) {
|
|
|
152
132
|
|
|
153
133
|
/**
|
|
154
134
|
* TBD.
|
|
155
|
-
*
|
|
156
135
|
* @param {number} k - TBD.
|
|
157
136
|
* @returns {number} TBD.
|
|
158
137
|
*/
|
|
@@ -164,7 +143,6 @@ export function SinusoidalOut(k) {
|
|
|
164
143
|
|
|
165
144
|
/**
|
|
166
145
|
* TBD.
|
|
167
|
-
*
|
|
168
146
|
* @param {number} k - TBD.
|
|
169
147
|
* @returns {number} TBD.
|
|
170
148
|
*/
|
|
@@ -176,7 +154,6 @@ export function SinusoidalInOut(k) {
|
|
|
176
154
|
|
|
177
155
|
/**
|
|
178
156
|
* TBD.
|
|
179
|
-
*
|
|
180
157
|
* @param {number} k - TBD.
|
|
181
158
|
* @returns {number} TBD.
|
|
182
159
|
*/
|
|
@@ -186,7 +163,6 @@ export function ExponentialIn(k) {
|
|
|
186
163
|
|
|
187
164
|
/**
|
|
188
165
|
* TBD.
|
|
189
|
-
*
|
|
190
166
|
* @param {number} k - TBD.
|
|
191
167
|
* @returns {number} TBD.
|
|
192
168
|
*/
|
|
@@ -196,7 +172,6 @@ export function ExponentialOut(k) {
|
|
|
196
172
|
|
|
197
173
|
/**
|
|
198
174
|
* TBD.
|
|
199
|
-
*
|
|
200
175
|
* @param {number} k - TBD.
|
|
201
176
|
* @returns {number} TBD.
|
|
202
177
|
*/
|
|
@@ -209,7 +184,6 @@ export function ExponentialInOut(k) {
|
|
|
209
184
|
|
|
210
185
|
/**
|
|
211
186
|
* TBD.
|
|
212
|
-
*
|
|
213
187
|
* @param {number} k - TBD.
|
|
214
188
|
* @returns {number} TBD.
|
|
215
189
|
*/
|
|
@@ -219,7 +193,6 @@ export function CircularIn(k) {
|
|
|
219
193
|
|
|
220
194
|
/**
|
|
221
195
|
* TBD.
|
|
222
|
-
*
|
|
223
196
|
* @param {number} k - TBD.
|
|
224
197
|
* @returns {number} TBD.
|
|
225
198
|
*/
|
|
@@ -229,7 +202,6 @@ export function CircularOut(k) {
|
|
|
229
202
|
|
|
230
203
|
/**
|
|
231
204
|
* TBD.
|
|
232
|
-
*
|
|
233
205
|
* @param {number} k - TBD.
|
|
234
206
|
* @returns {number} TBD.
|
|
235
207
|
*/
|
|
@@ -240,7 +212,6 @@ export function CircularInOut(k) {
|
|
|
240
212
|
|
|
241
213
|
/**
|
|
242
214
|
* TBD.
|
|
243
|
-
*
|
|
244
215
|
* @param {number} k - TBD.
|
|
245
216
|
* @returns {number} TBD.
|
|
246
217
|
*/
|
|
@@ -261,7 +232,6 @@ export function ElasticIn(k) {
|
|
|
261
232
|
|
|
262
233
|
/**
|
|
263
234
|
* TBD.
|
|
264
|
-
*
|
|
265
235
|
* @param {number} k - TBD.
|
|
266
236
|
* @returns {number} TBD.
|
|
267
237
|
*/
|
|
@@ -282,7 +252,6 @@ export function ElasticOut(k) {
|
|
|
282
252
|
|
|
283
253
|
/**
|
|
284
254
|
* TBD.
|
|
285
|
-
*
|
|
286
255
|
* @param {number} k - TBD.
|
|
287
256
|
* @returns {number} TBD.
|
|
288
257
|
*/
|
|
@@ -298,14 +267,12 @@ export function ElasticInOut(k) {
|
|
|
298
267
|
} else {
|
|
299
268
|
s = (p * Math.asin(1 / a)) / (2 * Math.PI);
|
|
300
269
|
}
|
|
301
|
-
if ((k *= 2) < 1)
|
|
302
|
-
return -0.5 * (a * Math.pow(2, 10 * (k -= 1)) * Math.sin(((k - s) * (2 * Math.PI)) / p));
|
|
270
|
+
if ((k *= 2) < 1) return -0.5 * (a * Math.pow(2, 10 * (k -= 1)) * Math.sin(((k - s) * (2 * Math.PI)) / p));
|
|
303
271
|
return a * Math.pow(2, -10 * (k -= 1)) * Math.sin(((k - s) * (2 * Math.PI)) / p) * 0.5 + 1;
|
|
304
272
|
}
|
|
305
273
|
|
|
306
274
|
/**
|
|
307
275
|
* TBD.
|
|
308
|
-
*
|
|
309
276
|
* @param {number} k - TBD.
|
|
310
277
|
* @returns {number} TBD.
|
|
311
278
|
*/
|
|
@@ -316,7 +283,6 @@ export function BackIn(k) {
|
|
|
316
283
|
|
|
317
284
|
/**
|
|
318
285
|
* TBD.
|
|
319
|
-
*
|
|
320
286
|
* @param {number} k - TBD.
|
|
321
287
|
* @returns {number} TBD.
|
|
322
288
|
*/
|
|
@@ -327,7 +293,6 @@ export function BackOut(k) {
|
|
|
327
293
|
|
|
328
294
|
/**
|
|
329
295
|
* TBD.
|
|
330
|
-
*
|
|
331
296
|
* @param {number} k - TBD.
|
|
332
297
|
* @returns {number} TBD.
|
|
333
298
|
*/
|
|
@@ -339,7 +304,6 @@ export function BackInOut(k) {
|
|
|
339
304
|
|
|
340
305
|
/**
|
|
341
306
|
* TBD.
|
|
342
|
-
*
|
|
343
307
|
* @param {number} k - TBD.
|
|
344
308
|
* @returns {number} TBD.
|
|
345
309
|
*/
|
|
@@ -356,7 +320,6 @@ export function BounceOut(k) {
|
|
|
356
320
|
|
|
357
321
|
/**
|
|
358
322
|
* TBD.
|
|
359
|
-
*
|
|
360
323
|
* @param {number} k - TBD.
|
|
361
324
|
* @returns {number} TBD.
|
|
362
325
|
*/
|
|
@@ -366,7 +329,6 @@ export function BounceIn(k) {
|
|
|
366
329
|
|
|
367
330
|
/**
|
|
368
331
|
* TBD.
|
|
369
|
-
*
|
|
370
332
|
* @param {number} k - TBD.
|
|
371
333
|
* @returns {number} TBD.
|
|
372
334
|
*/
|