ReadonlydeviceThe engine's WebGPU device, adapter, queue, and readiness lifecycle.
ReadonlypoisonWhether destroyed wrappers are poisoned (see AttachOptions.poisonDestroyed).
Attach a live WebGPU view to a host canvas. A model must be open first.
Optionaloptions: ViewportOptionsClose the open model, detach every viewport, and restore the global device hooks.
The shared base every per-engine module satisfies. It is the common host surface the shared core (
Handle,HandleCache,Selection,GpuDevice,Viewport) is generic over, so the three concrete modules — DocumentModule, SpreadsheetModule, PresentationModule — expose one identical shape. Each is attached through its own staticattach(wasm, options?)and carries exactly one engine facade (.documents,.spreadsheets, or.presentations).