WasmGPU.createAnnotation.toolkit().pendingCount¶
Summary¶
WasmGPU.createAnnotation.toolkit().pendingCount reports how many staged anchors are currently buffered. Distance mode stages up to 2 anchors, angle mode stages up to 3 anchors.
Syntax¶
Parameters¶
This accessor does not take parameters.
Returns¶
number - Number of currently staged anchors.
Example¶
const canvas = document.querySelector("canvas");
const wgpu = await WasmGPU.create(canvas);
const toolkit = wgpu.createAnnotation.toolkit({ canvas });
toolkit.setMode("distance");
console.log(toolkit.pendingCount);