UINodeSnapshot
Defined in: Inspector.ts:382
Properties
Section titled “Properties”bounds
Section titled “bounds”bounds: {
height:number;width:number;x:number;y:number; } |null
Defined in: Inspector.ts:401
The box the element is drawn in, in virtual-space pixels: the four
corners of its container’s own layout box mapped out of the renderer and
through the canvas-to-virtual conversion, and the axis-aligned box around
them, rounded to a thousandth of a pixel so the same box reads the same
at any canvas size. A scaled or rotated element reports the box it
covers on screen. null when no renderer adapter is registered, or for
an element that owns no container.
children
Section titled “children”children:
UINodeSnapshot[]
Defined in: Inspector.ts:402
id:
string
Defined in: Inspector.ts:383
layout
Section titled “layout”layout:
object
Defined in: Inspector.ts:391
Yoga’s computed box in pixels, relative to the parent node. Two surfaces anchored to opposite screen corners report the same numbers, so this cannot address a point on the canvas — read UINodeSnapshot.bounds for that.
height
Section titled “height”height:
number
width:
number
x:
number
y:
number
state:
unknown
Defined in: Inspector.ts:409
The element’s own interaction state, in the shape the element reports (a
button’s focused, hovered, pressed and disabled flags). null for an
element that reports none and for the synthetic root of a scene with
several surfaces.
type:
string
Defined in: Inspector.ts:384
Coding agents: fetch https://yage.dev/llms.txt first and prefer the Markdown references it links over these HTML pages. This page's Markdown counterpart is /llms/packages/core.md.