ReadonlycameraReadonlycontextReadonlydefaultReadonlyinteractionReadonlyrenderReadonlyshortcutReadonlysnapReadonlytransformReadonlyviewerReference to the connected Viewer
The camera drawn from, its controls': perspective or orthographic.
The canvas drawn on and listened to; null until mounted.
Draws on canvas, in place of the canvas mounted, and listens to its input. Asynchronous: the
engine asks for a WebGPU adapter and device; the canvas is listened to once its renderer is
made. The canvas stays the caller's: placed and sized by its CSS, focusable for the keyboard
(tabIndex).
A mount waits for the one before to settle (e.g. React mounting, unmounting and mounting
again at once): its renderer freed first, as one backend at a time draws the scene.
Where to draw.
The renderer, drawing; null when the viewport was unmounted or mounted elsewhere meanwhile (that renderer freed, or none made).
Draws from camera from now on (the camera controls changed mode).
Stops drawing on the canvas and listening to it, its renderer freed; the canvas is kept.
The view on a Viewer's scene: its camera and their controls, the transform gizmo, the operators turning the pointer and keyboard input into selection, transformation and context menus. Made with the viewer and kept by it (Viewer.viewport), it draws once mounted on a canvas, with the engine's Renderer, and listens to that canvas.