ReadonlycontainerRemove the canvas and release GPU resources and listeners.
Export the current view as PNG (device-pixel resolution). The frame is
rendered and read back in the same task, so it does not depend on the
compositor. Hide the grid with grid: false.
Fit bounds (default: the whole scene).
Optionalbounds: Aabb | nullDraw now (normally driven by requestRender).
Resolve once the GPU has finished every frame submitted so far (frame-time
measurements: input → GPU done). Rendering never needs it. Resolves early if
the renderer is lost, replaced or disposed, or after timeoutMs.
Renderer memory: WebAssembly linear memory (high-water mark, shared by all viewports of the page) and GPU buffers/textures of this viewport (last frame).
Scene bounds known to the renderer, or null when empty.
Simulate GPU device/context loss (tests).
Resolve once rendering has been running on the same backend, without a device
loss, for quietMs — e.g. before taking a screenshot or thumbnail right after
start-up, when a backend that loses its device immediately is replaced.
Rejects after timeoutMs.
StaticcreateCreate a viewport inside container (which must have a size).
What the editor needs from a viewport (lets tests use a fake).