Class: Application

Constructors

constructor

new Application(options?): Application

Parameters

Name Type
options ApplicationCreateOptions

Returns

Application

Properties

app

Readonly app: Application<HTMLCanvasElement>


parentElement

Private Optional parentElement: HTMLElement

Methods

getParentElement

getParentElement(): undefined | HTMLElement

Returns

undefined | HTMLElement


load

load(options, onProgress): Promise<void>

Parameters

Name Type
options ApplicationLoadOptions
onProgress undefined | (at: number, total: number) => void

Returns

Promise<void>


start

start(options?): Promise<void>

Parameters

Name Type
options ApplicationStartOptions

Returns

Promise<void>


updateForcedOrientation

updateForcedOrientation(canvasSize, «destructured»): boolean

Parameters

Name Type
canvasSize Size
«destructured» ApplicationStartOptions

Returns

boolean