-
Notifications
You must be signed in to change notification settings - Fork 7.1k
/
TweenFrameDataConfig.js
21 lines (21 loc) · 1.55 KB
/
TweenFrameDataConfig.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/**
* @typedef {object} Phaser.Types.Tweens.TweenFrameDataConfig
* @since 3.60.0
*
* @property {any} target - The target to tween.
* @property {number} index - The target index within the Tween targets array.
* @property {string} key - The property of the target being tweened.
* @property {number} [duration=0] - Duration of the tween in milliseconds, excludes time for yoyo or repeats.
* @property {number} [totalDuration=0] - The total calculated duration of this TweenData (based on duration, repeat, delay and yoyo)
* @property {number} [delay=0] - Time in milliseconds before tween will start.
* @property {number} [hold=0] - Time in milliseconds the tween will pause before running the yoyo or starting a repeat.
* @property {number} [repeat=0] - Number of times to repeat the tween. The tween will always run once regardless, so a repeat value of '1' will play the tween twice.
* @property {number} [repeatDelay=0] - Time in milliseconds before the repeat will start.
* @property {boolean} [flipX=false] - Automatically call toggleFlipX when the TweenData yoyos or repeats
* @property {boolean} [flipY=false] - Automatically call toggleFlipY when the TweenData yoyos or repeats
* @property {number} [progress=0] - Between 0 and 1 showing completion of this TweenData.
* @property {number} [elapsed=0] - Delta counter
* @property {number} [repeatCounter=0] - How many repeats are left to run?
* @property {Phaser.Types.Tweens.TweenDataGenConfig} [gen] - LoadValue generation functions.
* @property {Phaser.Tweens.StateType} [state=0] - TWEEN_CONST.CREATED
*/