ReadonlyanimationReadonlybufferReadonlycalculateReadonlydefaultReadonlydefReadonlyeventRenderer Event Bus for the Stage to emit events onto
ReadonlyfontReadonlyinteractiveReadonlyplatformReadonlyrendererReadonlyrootReadonlyshTarget frame time in milliseconds (calculated from targetFPS)
ReadonlytextReadonlytxReadonlytxCreate default PixelTexture
Start a new frame draw
Emit all queued frame events
This method should be called after the frame has been rendered to emit all events that were queued during the frame.
See queueFrameEvent for more information.
Check if the scene has updates
Load a font using a specific text renderer type
The type of text renderer ('canvas', 'sdf', etc.)
Font loading options specific to the renderer type
Promise that resolves when the font is loaded
This method allows consumers to explicitly load fonts for a specific text renderer type (e.g., 'canvas', 'sdf'). Consumers must specify the renderer type to ensure fonts are loaded with the correct pipeline.
For Canvas fonts, provide fontUrl (e.g., .ttf, .woff, .woff2) For SDF fonts, provide atlasUrl (image) and atlasDataUrl (JSON glyph data)
Queue an event to be emitted after the current/next frame is rendered
When we are operating in the context of the render loop, we may want to emit events that are related to the current frame. However, we generally do NOT want to emit events directly in the middle of the render loop, since this could enable event handlers to modify the scene graph and cause unexpected behavior. Instead, we queue up events to be emitted and then flush the queue after the frame has been rendered.
Request a render pass without forcing an update
ProtectedresolveResolves the default property values for a Node
Given a font name, and possible renderer override, return the best compatible text renderer.
Update animations
Update the target frame time based on the current targetFPS setting
Update the viewport bounds
Stage constructor