WasmGPU.createOverlay¶
Summary¶
WasmGPU.createOverlay is the overlay factory facade. It creates the DOM-backed overlay system and axis-triad, grid, and legend layers that can be attached to it; returned systems and layers are caller-owned.
Syntax¶
const overlay = wgpu.createOverlay.system();
const grid = wgpu.createOverlay.grid();
overlay.addLayer(grid);
Available APIs¶
- createOverlay.system creates an overlay system bound to the engine canvas.
- createOverlay.axisTriad, createOverlay.grid, and createOverlay.legend create layers.
- createOverlay.system#addLayer attaches a layer.
- createOverlay.system#destroy releases system-owned DOM resources and observers.