TimingManager Class
Consumes timing information and runs handlers bound to animation labels.
Constructor
TimingManager
-
timingInfo
-
[timeUnit="ms"]
Parameters:
-
timingInfo
Array | ObjectTiming information, as exported by the animaker package in R. For more information, refer to
?export
in R once animaker has loaded. -
[timeUnit="ms"]
String optionalDetermine what time units the timing information exported from animaker refers to. Must be one of
"ms"
(milliseconds),"s"
(seconds), or"m"
(minutes).
Item Index
Methods
Methods
cancel
()
Cancels all pending animations that are queued by the timing manager.
frameApply
-
[fps=10]
-
[t=0]
Plays all animations associated with actions at a given rate per second.
frameTiming
-
[t=0]
Returns all of the timing information about the frames that are to be played at a given time.
Parameters:
-
[t=0]
Number optionalThe time in milliseconds to select an animation from
Returns:
A list of matching animations to play at the current time
play
-
[t=0]
Plays all animations associated with actions
Parameters:
-
[t=0]
Number optionalAn optional delay (in
timeUnit
s) to add to the entire animation.
register
-
fns
-
[overwrite=false]
Registers an action to an animation