Class: AxAnimationElement

AxAnimationElement(canvasId, onRenderEvent, startRenderingnon-null, enableContextMenunon-null)

new AxAnimationElement(canvasId, onRenderEvent, startRenderingnon-null, enableContextMenunon-null)

Utilizes the canvas element which will be used for rendering Provides useful functionality for continuous rendering, mouse and keyboard input
Parameters:
Name Type Description
canvasId * The id of the HTML canvas element
onRenderEvent AxAnimationElementRender The method which to perform rendering of a frame
startRendering Boolean Denotes whether to start rendering immediately. If omitted, assumes a default value of false
enableContextMenu Boolean Denotes whether to enable the default context menu on the canvas element. If omitted, assumes a default value of false
Source:

Methods

Initialize(canvasId)

Provides managment for the element which will be used for rendering requestAnimationFrame in a cross browser way.
Parameters:
Name Type Description
canvasId * The id of the HTML canvas element
Source:

Render()

Performs various routines to handle the element input and renders s frame using the OnRender method This method is called when rendering continuously This method uses the OnRender method to draw a frame on the canvas element
Source:

StartRendering()

Initiates continuous rendering onto the canvas
Source:

StopRendering()

Stops continuous rendering
Source:

Documentation generated by JSDoc 3.5.3 on Wed Jul 26 2017 18:59:51 GMT+0300 (FLE Daylight Time)