AxisTriadLayer.setAnchor¶
Summary¶
AxisTriadLayer.setAnchor sets the screen-corner or world-space anchor. Changing the anchor invalidates overlay layout.
Syntax¶
Parameters¶
| Name | Type | Required | Description |
|---|---|---|---|
anchor |
OverlayAnchorDescriptor |
Yes | Screen or world anchor descriptor. |
Returns¶
this - The same instance for method chaining.
Type Details¶
Example¶
const layer = wgpu.createOverlay.axisTriad();
layer.setAnchor({ kind: "screen", corner: "top-left", offsetPx: [20, 20] });