Skip to content

Commit 0306aab

Browse files
committed
Docs for Timeline
1 parent 77626d8 commit 0306aab

1 file changed

Lines changed: 12 additions & 10 deletions

File tree

src/tweens/Timeline.js

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@ var Timeline = new Class({
264264
},
265265

266266
/**
267-
* Gets the value of the time scale applied to this Timeline. A value of 1 runs in real-time. A value of 0.5 runs 50% slower, and so on.
267+
* Gets the value of the time scale applied to this Timeline. A value of 1 runs in real-time. A value of 0.5 runs 50% slower, and so on.
268268
*
269269
* @method Phaser.Tweens.Timeline#getTimeScale
270270
* @since 3.0.0
@@ -290,12 +290,12 @@ var Timeline = new Class({
290290
},
291291

292292
/**
293-
* [description]
293+
* Creates a new Tween and adds it to this Timeline.
294294
*
295295
* @method Phaser.Tweens.Timeline#add
296296
* @since 3.0.0
297297
*
298-
* @param {object} config - [description]
298+
* @param {(Phaser.Types.Tweens.TweenBuilderConfig|object)} config - The configuration object for the Tween.
299299
*
300300
* @return {Phaser.Tweens.Timeline} This Timeline object.
301301
*/
@@ -305,12 +305,12 @@ var Timeline = new Class({
305305
},
306306

307307
/**
308-
* [description]
308+
* Adds a Tween to this Timeline.
309309
*
310310
* @method Phaser.Tweens.Timeline#queue
311311
* @since 3.0.0
312312
*
313-
* @param {Phaser.Tweens.Tween} tween - [description]
313+
* @param {Phaser.Tweens.Tween} tween - The tween
314314
*
315315
* @return {Phaser.Tweens.Timeline} This Timeline object.
316316
*/
@@ -330,14 +330,14 @@ var Timeline = new Class({
330330
},
331331

332332
/**
333-
* [description]
333+
* Checks whether a tween has an offset value.
334334
*
335335
* @method Phaser.Tweens.Timeline#hasOffset
336336
* @since 3.0.0
337337
*
338-
* @param {Phaser.Tweens.Tween} tween - [description]
338+
* @param {Phaser.Tweens.Tween} tween - The tween
339339
*
340-
* @return {boolean} [description]
340+
* @return {boolean} True if the tween has a non-null offset.
341341
*/
342342
hasOffset: function (tween)
343343
{
@@ -604,12 +604,14 @@ var Timeline = new Class({
604604
},
605605

606606
/**
607-
* [description]
607+
* Updates the Timeline's `state` and fires callbacks and events.
608608
*
609609
* @method Phaser.Tweens.Timeline#nextState
610610
* @fires Phaser.Tweens.Events#TIMELINE_COMPLETE
611611
* @fires Phaser.Tweens.Events#TIMELINE_LOOP
612612
* @since 3.0.0
613+
*
614+
* @see Phaser.Tweens.Timeline#update
613615
*/
614616
nextState: function ()
615617
{
@@ -674,7 +676,7 @@ var Timeline = new Class({
674676
* @fires Phaser.Tweens.Events#TIMELINE_UPDATE
675677
* @since 3.0.0
676678
*
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.
678680
* @param {number} delta - The delta time in ms since the last frame. This is a smoothed and capped value based on the FPS rate.
679681
*
680682
* @return {boolean} Returns `true` if this Timeline has finished and should be removed from the Tween Manager.

0 commit comments

Comments
 (0)