Show:

GLOBAL_PROPERTIES Class

Defined in: src\globals.js:44
Module: Util

Global properties of the framework

Methods

setCollisionMethod
(
  • method
)

Defined in src\globals.js:184

Redefines the collision method

Parameters:

Properties

_ghostColor String public

Defined in src\globals.js:126

the color used for the ghost mode rendering

cgsgCanvas HTMLElement

Defined in src\globals.js:118

The canvas container for this scene graph

cgsgCollisionTestFactory CGSGCollisionTesterFactory

Defined in src\globals.js:154

Instance of CollisionTesterFactory

cgsgCurrentExplorer Object

Defined in src\globals.js:93

Current version of the browser. The framework check the browser at the start and fill this property.

Default: cgsgExplorerParams.UNKNOWN

cgsgCurrentFrame Number

Defined in src\globals.js:110

The current frame in hte global timeline

cgsgDisplayRatio CGSGScale static

Defined in src\globals.js:61

Current display ratio

cgsgExplorerParams Object

Defined in src\globals.js:77

List of the parameters of different browsers

cgsgFramerateDelay Number

Defined in src\globals.js:134

Number of frames to average the FPS. Reduce this number to get more accurate FPS

Default: CGSG_DEFAULT_FRAMERATE_DELAY

cgsgGhostContext CanvasRenderingContext2D

Defined in src\globals.js:102

The global ghost context for fake rendering

cgsgMaxFramerate Number

Defined in src\globals.js:143

Maximum number of frames per second. Set it if you want your application to slow down.

Default: CGSG_DEFAULT_MAX_FRAMERATE

Example:
//limit the fps of the application to 30
cgsgMaxFramerate = 30;
cgsgPerformanceKeys Object

Defined in src\globals.js:161

Object that defines the performance keys. Change values to adapt your project.

cgsgPerformanceKeys._collisionMethod = Key to specify collision detection mod Use setCollisionMethod to modify value; Default : CGSGCollisionMethod.REGION

cgsgPerformanceKeys.collisionTester = Collision tester depending on _collisionMethod; Default : CGSGCollisionRegionTester

cgsgResizeHandleThreshold Number static

Defined in src\globals.js:69

Default threshold to detect the handle boxes on a resizable node

cgsgVersion String static

Defined in src\globals.js:53

Current version of the framework