Skip to main content

Class: Constants

Reasonable defaults to use if values are not specified.

Constructors

new Constants()

new Constants(): Constants

Returns

Constants

Properties

DEFAULT_FONT_COLOR

static readonly DEFAULT_FONT_COLOR: RgbaColor = WebColors.Black

Color of text in Label and TextLine, if none is specified.

Source

Constants.ts:29


DEFAULT_FONT_SIZE

static readonly DEFAULT_FONT_SIZE: 16 = 16

Font size in Label and TextLine, if none is specified.

Source

Constants.ts:31


DEFAULT_PATH_LINE_WIDTH

static readonly DEFAULT_PATH_LINE_WIDTH: 2 = 2

Line width of paths in a shape, if none is specified.

Source

Constants.ts:27


DEFAULT_PATH_STROKE_COLOR

static readonly DEFAULT_PATH_STROKE_COLOR: RgbaColor = WebColors.Red

Color of paths in a shape, if none is specified.

Source

Constants.ts:25


DEFAULT_ROOT_ELEMENT_ID

static readonly DEFAULT_ROOT_ELEMENT_ID: "m2c2kit" = "m2c2kit"

Source

Constants.ts:44


DEFAULT_SCENE_BACKGROUND_COLOR

static readonly DEFAULT_SCENE_BACKGROUND_COLOR: RgbaColor = WebColors.White

Scene color, if none is specified.

Source

Constants.ts:21


DEFAULT_SHAPE_FILL_COLOR

static readonly DEFAULT_SHAPE_FILL_COLOR: RgbaColor = WebColors.Red

Shape fill color, if none is specified.

Source

Constants.ts:23


ERUDA_SRI

static readonly ERUDA_SRI: "sha384-KlRzgy/c+nZSV+eiFqoTkkbZ5pUqToho7HsNuebTbOsYTh4m0m/PAqkGsTMLXK14" = "sha384-KlRzgy/c+nZSV+eiFqoTkkbZ5pUqToho7HsNuebTbOsYTh4m0m/PAqkGsTMLXK14"

Source

Constants.ts:47


ERUDA_URL

static readonly ERUDA_URL: "https://cdn.jsdelivr.net/npm/eruda@3.2.3/eruda.js" = "https://cdn.jsdelivr.net/npm/eruda@3.2.3/eruda.js"

Source

Constants.ts:45


FPS_DISPLAY_TEXT_COLOR

static readonly FPS_DISPLAY_TEXT_COLOR: RgbaColor

Color of the font showing frames per second

Source

Constants.ts:13


FPS_DISPLAY_TEXT_FONT_SIZE

static readonly FPS_DISPLAY_TEXT_FONT_SIZE: 12 = 12

Size of the font showing frames per second

Source

Constants.ts:11


FPS_DISPLAY_UPDATE_INTERVAL

static readonly FPS_DISPLAY_UPDATE_INTERVAL: 1000 = 1000

Frequency, in milliseconds, at which to update frames per second metric shown on the screen

Source

Constants.ts:15


FPS_METRIC_REPORT_THRESHOLD

static readonly FPS_METRIC_REPORT_THRESHOLD: 59 = 59

The frames per second will be logged in game metrics if the FPS is lower than this value

Source

Constants.ts:19


FREE_NODES_SCENE_NAME

static readonly FREE_NODES_SCENE_NAME: "__freeNodesScene" = "__freeNodesScene"

Source

Constants.ts:33


LIMITED_FPS_RATE

static readonly LIMITED_FPS_RATE: 5 = 5

Source

Constants.ts:32


MAXIMUM_RECORDED_ACTIVITY_METRICS

static readonly MAXIMUM_RECORDED_ACTIVITY_METRICS: 32 = 32

Maximum number of activity metrics to log.

Source

Constants.ts:17


MODULE_METADATA_PLACEHOLDER

static readonly MODULE_METADATA_PLACEHOLDER: ModuleMetadata

Placeholder that will be populated during the build process.

Source

Constants.ts:39


OUTGOING_SCENE_IMAGE_NAME

static readonly OUTGOING_SCENE_IMAGE_NAME: "__outgoingSceneSnapshot" = "__outgoingSceneSnapshot"

Source

Constants.ts:36


OUTGOING_SCENE_NAME

static readonly OUTGOING_SCENE_NAME: "__outgoingScene" = "__outgoingScene"

Source

Constants.ts:34


OUTGOING_SCENE_SPRITE_NAME

static readonly OUTGOING_SCENE_SPRITE_NAME: "__outgoingSceneSprite" = "__outgoingSceneSprite"

Source

Constants.ts:35


SESSION_INITIALIZATION_POLLING_INTERVAL_MS

static readonly SESSION_INITIALIZATION_POLLING_INTERVAL_MS: 50 = 50

Source

Constants.ts:37