#104 ✓resolved
lindsay.kay (at xeolabs)

Add subidentifier (SID) to SceneJS.Node

Reported by lindsay.kay (at xeolabs) | June 4th, 2010 @ 02:53 AM | in V0.7.6

Add an optional SID property to SceneJS.Node, which would get a String value that must be unique within the scope of it's parent SceneJS.Node.

var node = new SceneJS.Node({
         sid: "myNode"
       });

var sid = node.getSID();

The SceneJS.Selector is to allow selection of children by SID as well as index:

var selector = new SceneJS.Selector(
       new SceneJS.Node({ sid: "alpha" }),  
       new SceneJS.Node({ sid: "beta" }),  
       new SceneJS.Node());                   // No SID for third child

var selector.setSelection([ "alpha", 2 ]);    // Selects first and third nodes

Comments and changes to this ticket

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

SceneJS provides easy access to WebGL through a simple and declarative JavaScript API. The SceneJS API is functional, which enables its scene definitions to be really compact and expressive, while hooking into other JavaScript code just that little bit more smoothly.

Shared Ticket Bins

People watching this ticket

Pages