LogoPixi’VN
indexVariables

Variable: default

> default: object

Defined in: src/index.ts:444

Type Declaration

canvas

> canvas: CanvasManagerInterface = canvasUtils.canvas

CANVAS_APP_GAME_LAYER_ALIAS

> CANVAS_APP_GAME_LAYER_ALIAS: string

Is a special alias to indicate the game layer.

canvasUtils

> canvasUtils: __module

characterUtils

> characterUtils: __module

Game

> Game: typeof Game

GameUnifier

> GameUnifier: typeof GameUnifier

history

> history: HistoryManagerInterface = historyUtils.stepHistory

narration

> narration: NarrationManagerInterface = narrationUtils.narration

narrationUtils

> narrationUtils: __module

Pause

> Pause: (duration) => PauseType

Pause the tickers for a duration.

Parameters

duration

number

Duration in seconds

Returns

PauseType

The pause object

Deprecated

PIXIVN_VERSION

> PIXIVN_VERSION: string

~~Repeat~~

> Repeat: "repeat"

Deprecated

sound

> sound: SoundManagerInterface = soundUtils.sound

soundUtils

> soundUtils: __module

storage

> storage: StorageManagerInterface = storageUtils.storage

createExportableElement()

> createExportableElement<T>(element): T

This function is used to create a deep copy of the element

Type Parameters

T

T

Parameters

element

T

The element to be copied

Returns

T

The copied element

Throws

when the element is not JSON serializable (e.g. contains functions or class instances).