φ Famo.us University Famo.us/Angular Docs Help Blog Download
  • core
  • Context
  • ElementAllocator
  • ElementOutput
  • Engine
  • Entity
  • EventEmitter
  • EventHandler
  • Group
  • Modifier
  • OptionsManager
  • RenderNode
  • Scene
  • SpecParser
  • Transform
  • View
  • ViewSequence
  • events
  • EventArbiter
  • EventFilter
  • EventMapper
  • inputs
  • Accumulator
  • GenericSync
  • MouseSync
  • PinchSync
  • RotateSync
  • ScaleSync
  • ScrollSync
  • TouchSync
  • TouchTracker
  • TwoFingerSync
  • math
  • Matrix
  • Quaternion
  • Random
  • Utilities
  • Vector
  • modifiers
  • Draggable
  • Fader
  • ModifierChain
  • StateModifier
  • physics
  • PhysicsEngine
  • physics/bodies
  • Body
  • Circle
  • Particle
  • Rectangle
  • physics/constraints
  • Surface
  • Collision
  • Constraint
  • Curve
  • Distance
  • Snap
  • Wall
  • Walls
  • physics/forces
  • Drag
  • Force
  • Repulsion
  • RotationalDrag
  • RotationalSpring
  • Spring
  • VectorField
  • physics/integrators
  • SymplecticEuler
  • surfaces
  • CanvasSurface
  • ContainerSurface
  • ImageSurface
  • InputSurface
  • TextareaSurface
  • VideoSurface
  • transitions
  • CachedMap
  • Easing
  • MultipleTransition
  • SnapTransition
  • SpringTransition
  • Transitionable
  • TransitionableTransform
  • TweenTransition
  • WallTransition
  • utilities
  • KeyCodes
  • Timer
  • Utility
  • views
  • ContextualView
  • Deck
  • DrawerLayout
  • EdgeSwapper
  • FlexibleLayout
  • Flipper
  • GridLayout
  • HeaderFooterLayout
  • Lightbox
  • RenderController
  • ScrollContainer
  • Scroller
  • Scrollview
  • SequentialLayout
  • widgets
  • NavigationBar
  • TabBar

RenderNode

A wrapper for inserting a renderable component (like a Modifer or Surface) into the render tree.

Overview

Options
Methods
add
get
set
getSize

RenderNode(object)

Constructor Parameters

object

Object

Target renderable component

Methods

add(child)

Append a renderable to the list of this node's children. This produces a new RenderNode in the tree. Note: Does not double-wrap if child is a RenderNode already.

Parameters
child
Object
renderable object
Returns
RenderNode
new render node wrapping child

get()

Return the single wrapped object. Returns null if this node has multiple child nodes.

Returns
Ojbect
contained renderable object

set(child)

Overwrite the list of children to contain the single provided object

Parameters
child
Object
renderable object
Returns
RenderNode
this render node, or child if it is a RenderNode

getSize()

Get render size of contained object.

Returns
Array.Number
size of this or size of single child.

commit(context)Private

Commit the content change from this node to the document.

Parameters
context
Context
render context

render()Private

Generate a render spec from the contents of the wrapped component.

Returns
Object
render specification for the component subtree only under this node.
Branding Terms Privacy Jobs © Famous Industries, Inc. 2015