Interface: XrBlocksWindowHandle
Defined in: xrblocks-uiextensions/src/host.ts:103
A window spawned by UixWindowHost.createWindow.
Satisfies the core CoreWindowHandle and adds the three.js specifics.
panel is the document itself, which already implements PanelHandle, and
is never undefined here: uikitml interprets the markup synchronously, so
the panel exists the moment createWindow returns.
Extends
Properties
| Property | Modifier | Type | Description | Overrides | Defined in |
|---|---|---|---|---|---|
document | public | UixPanelDocument | - | - | xrblocks-uiextensions/src/host.ts:107 |
group | public | Group | The scene-graph node - position/rotate freely. | - | xrblocks-uiextensions/src/host.ts:106 |
id | readonly | string | The window's id - the one passed in, or one the adapter generated. | WindowHandle.id | xrblocks-uiextensions/src/host.ts:104 |
panel | readonly | UixPanelDocument | Same object as document, under the portable name. | WindowHandle.panel | xrblocks-uiextensions/src/host.ts:109 |
Methods
onReady()
onReady(listener: (panel: PanelHandle) => void): () => void;
Defined in: xrblocks-uiextensions/src/host.ts:110
Run listener once, when the panel is attached. Fires immediately if it
already is, so wiring order never matters. Returns an unsubscribe
function for the case where the caller gives up first.
Parameters
| Parameter | Type |
|---|---|
listener | (panel: PanelHandle) => void |
Returns
() => void