dom.animationFrame

Classes

goog.dom.animationFrame.State
A type to represent state. Users may add properties as desired.

Public Protected Private

Global Functions

goog.dom.animationFrame.createTask(opt_context) function(...[?])
Returns a function that schedules the two passed-in functions to be run upon the next animation frame. Calling the function again during the same animation frame does nothing. The function under the "measure" key will run first and together with all other functions scheduled under this key and the function under "mutate" will run after that.
Arguments:
: !{ measure: (function(this:THIS, !goog.dom.animationFrame.State) | undefined), mutate: (function(this:THIS, !goog.dom.animationFrame.State) | undefined)
No description.
opt_context : THIS=
Context in which to run the function.
Returns: function(...[?]No description.
code »
goog.dom.animationFrame.requestAnimationFrame_()
Request to be called upon the next animation frame if we haven't done so already.
code »
goog.dom.animationFrame.runTasks_()
Run scheduled tasks.
code »

Global Properties

goog.dom.animationFrame.Spec :
No description.
Code »
goog.dom.animationFrame.TaskSet_ :
No description.
Code »
goog.dom.animationFrame.Task_ :
No description.
Code »
goog.dom.animationFrame.doubleBufferIndex_ :
Values are 0 or 1, for whether the first or second array should be used to lookup or add tasks.
Code »
goog.dom.animationFrame.polyfill :
No description.
Code »
goog.dom.animationFrame.requestedFrame_ :
Whether we have already requested an animation frame that hasn't happened yet.
Code »
goog.dom.animationFrame.taskId_ :
Counter to generate IDs for tasks.
Code »
goog.dom.animationFrame.tasks_ :
Saves a set of tasks to be executed in the next requestAnimationFrame phase. This list is initialized once before any event firing occurs. It is not affected by the fired events or the requestAnimationFrame processing (unless a new event is created during the processing).
Code »

Package dom

Package Reference