OverlaySystem.root¶
Summary¶
OverlaySystem.root returns the overlay root div used to host all layer DOM content. Layers attach their own containers beneath this node. You can style the root through CSS class/z-index options.
Syntax¶
Parameters¶
This property does not take parameters.
Returns¶
HTMLDivElement - Root overlay container.
Type Details¶
Example¶
const canvas = document.querySelector("canvas");
const wgpu = await WasmGPU.create(canvas);
const overlay = wgpu.createOverlay.system({ className: "wasmgpu-overlay-root" });
overlay.root.style.pointerEvents = "none";