Readonly
animationReadonly
bufferReadonly
calculateReadonly
defaultReadonly
defReadonly
eventRenderer Event Bus for the Stage to emit events onto
Readonly
fontReadonly
interactiveReadonly
platformReadonly
rendererReadonly
rootReadonly
shTarget frame time in milliseconds (calculated from targetFPS)
Readonly
textReadonly
txReadonly
txFind all nodes at a given point
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.
Find the top node at a given point
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.
Protected
resolveGiven a font name, and possible renderer override, return the best compatible text renderer.
Stage constructor