GLOBAL_METHODS Class
Global methods
Item Index
Methods
cgsgClearContext
(
private
-
context
Wipes the canvas context
Parameters:
-
contextCanvasRenderingContext2Dcontext to render on
cgsgDetectCurrentExplorer
()
cgsgExist
(
Boolean
-
object
Parameters:
-
objectObject
Returns:
Boolean:
true if the parameter !== null && !== undefined
cgsgFree
(
-
object
Parameters:
-
object
cgsgGetCursorPositions
(
Array
-
event -
canvas
Return the mouse or touch positions relative to the canvas
Parameters:
-
eventEventa touch or mouse Event
-
canvasHTMLElementa handler to the Canvas element
Returns:
Array:
Array of CGSGPosition object
cgsgGetDisplayedViewportDimension
()
CGSGDimension
Returns:
CGSGDimension:
a CGSGDimension as the viewport region
cgsgGetRealViewportDimension
()
CGSGDimension
Returns:
CGSGDimension:
a CGSGDimension as the real viewport dimension