@jsvision/ui / RenderRootOptions
Interface: RenderRootOptions
Defined in: ui/src/view/types.ts:76
Options for createRenderRoot. caps is required (it drives depth-aware color encoding); the scheduler and logger are injectable, mainly so tests can drive frames deterministically.
Properties
caps
caps:
CapabilityProfile
Defined in: ui/src/view/types.ts:78
REQUIRED — the terminal capability profile used to encode each frame's output.
healFocus?
optionalhealFocus?: (group) =>void
Defined in: ui/src/view/types.ts:90
Hook to re-home focus after a group removes its currently-focused child. The event loop wires this so focus lands on a sensible sibling; a standalone (non-interactive) render root leaves it unset.
Parameters
group
Returns
void
logger?
optionallogger?:Logger
Defined in: ui/src/view/types.ts:84
Where a widget's draw() errors are logged; defaults to a disabled logger (silent).
schedule?
optionalschedule?: (flush) =>void
Defined in: ui/src/view/types.ts:82
How a pending repaint is scheduled; defaults to queueMicrotask (one coalesced frame per tick).
Parameters
flush
() => void
Returns
void
theme?
optionaltheme?:Theme
Defined in: ui/src/view/types.ts:80
Active theme; defaults to the built-in default theme.