simple push
Method to extend defaults by options and save the result to props object
Method to add a prop to the props object.
if timeline is a module with timeline property then extract it
add self delay to the timeline
Method to append the tween to the end of the timeline. Each argument is treated as a new append. Array of tweens is treated as a parallel sequence.
Parameters:
Tween
must be an Object, Array.Method to take care of the current time.
Parameters:
The
must be a Number.Returns an Undefined, Boolean
(Returns true if the tween had ended it execution so should be removed form the tweener's active tweens array)
don't go further then the endTime
return true if timeline was already completed
set the time to timelines
check the callbacks for the current time NOTE: _checkCallbacks method should be returned from this update function, because it returns true if the tween was completed, to indicate the tweener module to remove it from the active tweens array for performance purposes
Method to set time on timelines, with respect to repeat periods if present
Parameters:
Time
must be a Number.get elapsed with respect to repeat option so take a modulo of the elapsed time
get the time for timelines
after delay
set the normalized time to the timelines
Method to check the callbacks for the current time
Parameters:
The
must be a Number.dont care about the multiple exact same time calls
if there is no prevTime - so it wasnt called ever at all or if it was called but have been completed already and it wasnt started yet -- then start!
if isn't complete
if reverse completed
isCompleted = false if time < @props.startTime save the current time as previous for future
if completed
recursive push to handle arrays of arrays