You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* @return {boolean} True if the tween has a non-null offset.
341
341
*/
342
342
hasOffset: function(tween)
343
343
{
@@ -604,12 +604,14 @@ var Timeline = new Class({
604
604
},
605
605
606
606
/**
607
-
* [description]
607
+
* Updates the Timeline's `state` and fires callbacks and events.
608
608
*
609
609
* @method Phaser.Tweens.Timeline#nextState
610
610
* @fires Phaser.Tweens.Events#TIMELINE_COMPLETE
611
611
* @fires Phaser.Tweens.Events#TIMELINE_LOOP
612
612
* @since 3.0.0
613
+
*
614
+
* @see Phaser.Tweens.Timeline#update
613
615
*/
614
616
nextState: function()
615
617
{
@@ -674,7 +676,7 @@ var Timeline = new Class({
674
676
* @fires Phaser.Tweens.Events#TIMELINE_UPDATE
675
677
* @since 3.0.0
676
678
*
677
-
* @param {number} timestamp - [description]
679
+
* @param {number} timestamp - The current time. Either a High Resolution Timer value if it comes from Request Animation Frame, or Date.now if using SetTimeout.
678
680
* @param {number} delta - The delta time in ms since the last frame. This is a smoothed and capped value based on the FPS rate.
679
681
*
680
682
* @return {boolean} Returns `true` if this Timeline has finished and should be removed from the Tween Manager.
Copy file name to clipboardExpand all lines: src/tweens/builders/TimelineBuilder.js
+1-30Lines changed: 1 addition & 30 deletions
Original file line number
Diff line number
Diff line change
@@ -19,40 +19,11 @@ var TweenBuilder = require('./TweenBuilder');
19
19
/**
20
20
* Builds a Timeline of Tweens based on a configuration object.
21
21
*
22
-
* The configuration object (`config`) can have the following properties:
23
-
*
24
-
* `tweens` - an array of tween configuration objects to create and add into the new Timeline, as described by `TweenBuilder`. If this doesn't exist or is empty, the Timeline will start off paused and none of the other configuration settings will be read. If it's a function, it will be called and its return value will be used as the array.
25
-
* `targets` - an array (or function which returns one) of default targets to which to apply the Timeline. Each individual Tween configuration can override this value.
26
-
* `totalDuration` - if specified, each Tween in the Timeline will get an equal portion of this duration, usually in milliseconds, by default. Each individual Tween configuration can override the Tween's duration.
27
-
* `duration` - if `totalDuration` is not specified, the default duration, usually in milliseconds, of each Tween which will be created. Each individual Tween configuration can override the Tween's duration.
28
-
* `delay`, `easeParams`, `ease`, `hold`, `repeat`, `repeatDelay`, `yoyo`, `flipX`, `flipY` - the default settings for each Tween which will be created, as specified by `TweenBuilder`. Each individual Tween configuration can override any of these values.
29
-
* `completeDelay` - if specified, the time to wait, usually in milliseconds, before the Timeline completes.
30
-
* `loop` - how many times the Timeline should loop, or -1 to loop indefinitely.
31
-
* `loopDelay` - the time, usually in milliseconds, between each loop
32
-
* `paused` - if `true`, the Timeline will start paused
33
-
* `useFrames` - if `true`, all duration in the Timeline will be in frames instead of milliseconds
34
-
* `callbackScope` - the default scope (`this` value) to use for each callback registered by the Timeline Builder. If not specified, the Timeline itself will be used.
35
-
* `onStart` - if specified, the `onStart` callback for the Timeline, called every time it starts playing
36
-
* `onStartScope` - the scope (`this` value) to use for the `onStart` callback. If not specified, the `callbackScope` will be used.
37
-
* `onStartParams` - additional arguments to pass to the `onStart` callback. The Timeline will always be the first argument.
38
-
* `onUpdate` - if specified, the `onUpdate` callback for the Timeline, called every frame it's active, regardless of its Tweens
39
-
* `onUpdateScope` - the scope (`this` value) to use for the `onUpdate` callback. If not specified, the `callbackScope` will be used.
40
-
* `onUpdateParams` - additional arguments to pass to the `onUpdate` callback. The Timeline will always be the first argument.
41
-
* `onLoop` - if specified, the `onLoop` callback for the Timeline, called every time it loops
42
-
* `onLoopScope` - the scope (`this` value) to use for the `onLoop` callback. If not specified, the `callbackScope` will be used.
43
-
* `onLoopParams` - additional arguments to pass to the `onLoop` callback. The Timeline will always be the first argument.
44
-
* `onYoyo` - if specified, the `onYoyo` callback for the Timeline, called every time it yoyos
45
-
* `onYoyoScope` - the scope (`this` value) to use for the `onYoyo` callback. If not specified, the `callbackScope` will be used.
46
-
* `onYoyoParams` - additional arguments to pass to the `onYoyo` callback. The first argument will always be `null`, while the Timeline will always be the second argument.
47
-
* `onComplete` - if specified, the `onComplete` callback for the Timeline, called after it completes
48
-
* `onCompleteScope` - the scope (`this` value) to use for the `onComplete` callback. If not specified, the `callbackScope` will be used.
49
-
* `onCompleteParams` - additional arguments to pass to the `onComplete` callback. The Timeline will always be the first argument.
0 commit comments