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.
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 div–based display object that mirrors the ZContainer interface from the PIXI and Phaser versions of zImporter.
Each ZContainer owns a single HTMLDivElement (
el).The element is
position:absolute; left:0; top:0; width:0; height:0; overflow:visibleso that children are positioned relative to its (0,0) origin and the CSS transform maps 1-to-1 to PIXI's transform model:T(x, y) · R(rotation) · S(scaleX, scaleY) · T(-pivotX, -pivotY)
This is identical to how PIXI.Container resolves world coordinates.