Class: Constants
Reasonable defaults to use if values are not specified.
Constructors
new Constants()
new Constants():
Constants
Returns
Properties
DEFAULT_FONT_COLOR
readonly
static
DEFAULT_FONT_COLOR:RgbaColor
=WebColors.Black
Color of text in Label and TextLine, if none is specified.
Defined in
Constants.ts:29
DEFAULT_FONT_SIZE
readonly
static
DEFAULT_FONT_SIZE:16
=16
Font size in Label and TextLine, if none is specified.
Defined in
Constants.ts:31
DEFAULT_PATH_LINE_WIDTH
readonly
static
DEFAULT_PATH_LINE_WIDTH:2
=2
Line width of paths in a shape, if none is specified.
Defined in
Constants.ts:27
DEFAULT_PATH_STROKE_COLOR
readonly
static
DEFAULT_PATH_STROKE_COLOR:RgbaColor
=WebColors.Red
Color of paths in a shape, if none is specified.
Defined in
Constants.ts:25
DEFAULT_ROOT_ELEMENT_ID
readonly
static
DEFAULT_ROOT_ELEMENT_ID:"m2c2kit"
="m2c2kit"
Defined in
Constants.ts:44
DEFAULT_SCENE_BACKGROUND_COLOR
readonly
static
DEFAULT_SCENE_BACKGROUND_COLOR:RgbaColor
=WebColors.White
Scene color, if none is specified.
Defined in
Constants.ts:21
DEFAULT_SHAPE_FILL_COLOR
readonly
static
DEFAULT_SHAPE_FILL_COLOR:RgbaColor
=WebColors.Red
Shape fill color, if none is specified.
Defined in
Constants.ts:23
ERUDA_SRI
readonly
static
ERUDA_SRI:"sha384-KlRzgy/c+nZSV+eiFqoTkkbZ5pUqToho7HsNuebTbOsYTh4m0m/PAqkGsTMLXK14"
="sha384-KlRzgy/c+nZSV+eiFqoTkkbZ5pUqToho7HsNuebTbOsYTh4m0m/PAqkGsTMLXK14"
Defined in
Constants.ts:47
ERUDA_URL
readonly
static
ERUDA_URL:"https://cdn.jsdelivr.net/npm/eruda@3.2.3/eruda.js"
="https://cdn.jsdelivr.net/npm/eruda@3.2.3/eruda.js"
Defined in
Constants.ts:45
FPS_DISPLAY_TEXT_COLOR
readonly
static
FPS_DISPLAY_TEXT_COLOR:RgbaColor
Color of the font showing frames per second
Defined in
Constants.ts:13
FPS_DISPLAY_TEXT_FONT_SIZE
readonly
static
FPS_DISPLAY_TEXT_FONT_SIZE:12
=12
Size of the font showing frames per second
Defined in
Constants.ts:11
FPS_DISPLAY_UPDATE_INTERVAL
readonly
static
FPS_DISPLAY_UPDATE_INTERVAL:1000
=1000
Frequency, in milliseconds, at which to update frames per second metric shown on the screen
Defined in
Constants.ts:15
FPS_METRIC_REPORT_THRESHOLD
readonly
static
FPS_METRIC_REPORT_THRESHOLD:59
=59
The frames per second will be logged in game metrics if the FPS is lower than this value
Defined in
Constants.ts:19
FREE_NODES_SCENE_NAME
readonly
static
FREE_NODES_SCENE_NAME:"__freeNodesScene"
="__freeNodesScene"
Defined in
Constants.ts:33
LIMITED_FPS_RATE
readonly
static
LIMITED_FPS_RATE:5
=5
Defined in
Constants.ts:32
MAXIMUM_RECORDED_ACTIVITY_METRICS
readonly
static
MAXIMUM_RECORDED_ACTIVITY_METRICS:32
=32
Maximum number of activity metrics to log.
Defined in
Constants.ts:17
MODULE_METADATA_PLACEHOLDER
readonly
static
MODULE_METADATA_PLACEHOLDER:ModuleMetadata
Placeholder that will be populated during the build process.
Defined in
Constants.ts:39
OUTGOING_SCENE_IMAGE_NAME
readonly
static
OUTGOING_SCENE_IMAGE_NAME:"__outgoingSceneSnapshot"
="__outgoingSceneSnapshot"
Defined in
Constants.ts:36
OUTGOING_SCENE_NAME
readonly
static
OUTGOING_SCENE_NAME:"__outgoingScene"
="__outgoingScene"
Defined in
Constants.ts:34
OUTGOING_SCENE_SPRITE_NAME
readonly
static
OUTGOING_SCENE_SPRITE_NAME:"__outgoingSceneSprite"
="__outgoingSceneSprite"
Defined in
Constants.ts:35
SESSION_INITIALIZATION_POLLING_INTERVAL_MS
readonly
static
SESSION_INITIALIZATION_POLLING_INTERVAL_MS:50
=50
Defined in
Constants.ts:37