AxisTriadLayer.id¶
Summary¶
AxisTriadLayer.id is the unique identifier used by OverlaySystem layer registration/removal APIs. Provide stable IDs when you plan to remove or replace layers programmatically.
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.axisTriad({ id: "triad-01" });
console.log(layer.id);