getVirtualBounds
getVirtualBounds(
ctx):object
Defined in: renderer/src/transitions/helpers.ts:37
Bounds of the declared virtual play area — equivalent to
renderer.virtualSize. Use this to size masks, translations, or
geometry that’s scoped to a single scene’s content (e.g. a per-cell
mask painted onto a scene root). Children of scene roots and of
_worldRoot operate in virtual pixels.
For full-screen overlays parented to renderer.worldRoot, prefer
renderer.visibleCanvasRect — it equals the virtual rect under
letterbox (clipped) but extends into the bars under expand, which
is usually what an obscuring overlay wants. For overlays that must
also paint over letterbox bars, parent on app.stage and size in
canvas pixels via app.screen.width / .height.
Parameters
Section titled “Parameters”SceneTransitionContext
Returns
Section titled “Returns”object
height
Section titled “height”height:
number
width:
number