Namespace: utils

Grape2D. utils

Browser independent utils
Source:

Classes

Clock
MessageDispatcher
NetworkDebugger
SynchronizedClock
TimerDispatcher

Methods

<static> cancelAnimationFrame(op)

Cancels an animation frame request.
Parameters:
Name Type Description
op number Animation frame request ID.
Source:

<static> getDocumentSize() → {Object}

Gets the document size, or by other words the size of the screen, as an object with width and height properties. This is the maximum size of the "drawing surface".
Source:
Returns:
the object with the width and height of the document
Type
Object

<static> requestAnimationFrame(fn) → {number}

Requests an animation frame.
Parameters:
Name Type Description
fn Function Callback function.
Source:
Returns:
Request ID.
Type
number