Support "../" in relative SceneJS.Instance name config
Reported by lindsay.kay (at xeolabs) | May 25th, 2010 @ 08:28 AM | in V0.7.6
"../" prefixes in Instance node name configs allows upward traversal through namespaces set by Name nodes to locate Symbols defined at higher levels.
SceneJS.name({name: "foo"},
SceneJS.symbol({
name: "teapot"
}
,
SceneJS.objects.teapot()
),
//----------------------------------------------------------
// Instance the teapot Symbol from inside a namespace
// within that in which the Symbol is defined.
// See how the relative symbol reference starts with a "../"
// to back up one level into the Symbol's namespace.
//----------------------------------------------------------
SceneJS.name({name: "bar" },
SceneJS.instance({name: "../teapot" }))) // Resolves to "/foo/teapot" from within "/foo/bar"
No comments found
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.
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.