Scene
Builds and renders a scene graph based on a declarative structure definition. See the Scene examples in the examples distribution (http://github.com/Famous/examples.git).
Scene(definition)
Constructor Parameters
definition
Object|Array|Spec
in the format of a render spec.
Methods
Show Private Methods
create()
Clone this scene
Returns
Scene
deep copy of this scene
load(definition)
Builds and renders a scene graph based on a canonical declarative scene definition. See examples/Scene/example.js.
Parameters
definition
Object
definition in the format of a render spec.
add(obj)
Add renderables to this component's render tree
Parameters
obj
Object
renderable object
Returns
RenderNode
Render wrapping provided object, if not already a RenderNode
render()Private
Generate a render spec from the contents of this component.
Returns
Number
Render spec for this component