Skip to content

@modoki/engine / rendering / Canvas2DSlot

Interface: Canvas2DSlot

Rendering

app

app: Application


boundBySim

boundBySim: boolean

Scene2D claim — the Canvas2D entity is present in the world.


canvas

canvas: HTMLCanvasElement


container

container: Container


entityId

entityId: number | null


initialized

initialized: boolean


mounted

mounted: boolean

Canvas2DMount claim — the slot's <canvas> is mounted in the DOM.


ready

ready: Promise<void>

Resolves when the Application is fully initialized and ready to render.


renderFailFrames?

optional renderFailFrames?: number

Consecutive frames this slot's renderer threw — distinguishes a one-frame teardown blip (swallowed silently) from a genuinely stuck renderer.

Built with Modoki.