updateWindow

View sourceupdateWindow(world: World): void

Synchronizes ECS window entities with their browser canvas elements.

A window with a selector uses the matching canvas when it is available. A window without a selector creates and appends a canvas to document.body. A registered canvas is reused while it remains connected to the document; if it is detached, the window is resolved again. Selector-backed windows remain unresolved when their selector does not match; a later update can attach them after the DOM element has been created.

Parameters

NameDescriptionDefault
world——