Optional_Typed child list (mirrors PIXI's children array).
ReadonlyelThe root div element for this container.
OptionalfixedOptionaloriginalOptionaloriginalOptionaloriginalReadonlyscalePIXI-compatible scale object. Setting .x / .y delegates to the
scaleX / scaleY setters so that ZScene can write
stage.scale.x = s exactly as in the PIXI version.
Initialised in the constructor so this is captured correctly.
StaticstageCurrent CSS-pixel X offset of the stage from the viewport edge.
StaticstageCurrent CSS-pixel Y offset of the stage from the viewport edge.
StaticstageCurrent uniform CSS scale applied to the stage element.
Stretches this container to visually cover the entire browser viewport.
Mirrors PIXI's executeFitToScreen — positions the container at the
viewport's top-left (expressed in stage / scene-unit coords) and scales
the first child image element to fill the viewport dimensions.
Current browser viewport width in CSS pixels.
Current browser viewport height in CSS pixels.
CSS-pixel X offset of the scaled stage from the viewport edge.
CSS-pixel Y offset of the scaled stage from the viewport edge.
Uniform CSS scale applied to the stage.
Finds the first text element (a <span class="z-text">) among children.
Mirrors PIXI's getTextField().
Called once all children have been added. Captures original text dimensions.
Load Spine assets and initialise the skeleton.
URL prefix applied to all asset paths.
Spine JSON skeleton file (relative to basePath).
Spine atlas text file (relative to basePath).
Array of PNG texture file paths (relative to basePath).
Optional skin name to activate (defaults to "default").
Canvas width in scene units.
Canvas height in scene units.
Public entry point for ZScene to re-run the anchor computation after all
containers in the resize map have been updated to the new orientation.
This guarantees that ancestor _x / _y values are current when chain
inversion runs.
Optionalevent: string
HTML canvas–based Spine animation container.
Uses @esotericsoftware/spine-canvas when it is available on
window.spineor via a global import. If the runtime is not found the class degrades to an invisible ZContainer so the rest of the scene still loads without errors.Usage
window.spine)."spine"and supplyspineJson,spineAtlas, and optionalskin+playOnStart.play(animationName, loop)/stop()as needed.Remarks
ZTimeline-based animations remain the simpler path for frame-by-frame tweens; ZSpine is only needed for skeletal-mesh animations exported directly from Spine.