Scene.nodeLinks¶
Summary¶
Scene.nodeLinks returns all nodelink objects in the scene, including those not currently visible. Use this collection for graph-specific updates, diagnostics, and object management.
Syntax¶
Parameters¶
This property does not take parameters.
Returns¶
readonly NodeLink[] - Scene nodelink collection in insertion order.
Type Details¶
Example¶
const canvas = document.querySelector("canvas");
const wgpu = await WasmGPU.create(canvas);
const scene = wgpu.createScene();
scene.add(wgpu.createNodeLink({
nodePositions: new Float32Array([
-0.5, 0.0, 0.0,
0.5, 0.0, 0.0
]),
edges: new Uint16Array([0, 1])
}));
console.log(scene.nodeLinks.length);