Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

Add subidentifier (SID) to SceneJS.Node

#104

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

Reported by lindsay.kay (at xeolabs) · June 4th, 2010 @ 02:53 AM

State: resolved
Milestone: V0.7.6

Activity

  1. lindsay.kay (at xeolabs)
    lindsay.kay (at xeolabs)
    • State changed from open to resolved

    June 9th, 2010 @ 05:39 AM

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.