unveil icon indicating copy to clipboard operation
unveil copied to clipboard

Add API for manipulating the SceneGraph

Open michael opened this issue 15 years ago • 1 comments

E.g.

// Remove a specific node
scene.remove('frank');

// Remove all actors with an x-value greater than 10
scene.remove(function(a) {return a.properties.x > 10); });

// Replace a certain actor with another one
scene.replace('frank', new uv.Label({text: 'John'});

michael avatar Aug 11 '10 14:08 michael

With the latest commit I've added Actor#remove to remove child nodes either by id, or using a matcher function.

michael avatar Aug 27 '10 20:08 michael