GridLayer.id¶
Summary¶
GridLayer.id is the unique key OverlaySystem uses to register and remove the grid layer. Use deterministic IDs to make layer replacement predictable.
Syntax¶
Parameters¶
This property does not take parameters.
Returns¶
string - Layer identifier.
Type Details¶
Example¶
const canvas = document.querySelector("canvas");
const wgpu = await WasmGPU.create(canvas);
const layer = wgpu.createOverlay.grid({ id: "grid-main" });
console.log(layer.id);