- 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
ElementOutput
A base class for viewable content and event targets inside a Famo.us application, containing a renderable document fragment. Like an HTML div, it can accept internal markup, properties, classes, and handle events.
Overview
Options
Methods
ElementOutput(element)
Constructor Parameters
element
Node
document parent of this container
Methods
on(type, fn)
Bind a callback function to an event type handled by this object.
Parameters
Returns
removeListener(type, fn)
Unbind an event by type and handler. This undoes the work of "on"
Parameters
emit(type, event)
Trigger an event, sending to all downstream handlers listening for provided 'type' key.
Parameters
Returns
pipe(target)
Add event handler object to set of downstream handlers.
Parameters
Returns
unpipe(target)
Remove handler object from set of downstream handlers. Undoes work of "pipe"
Parameters
Returns
render()Private
Return spec for this surface. Note that for a base surface, this is simply an id.
Returns
_formatCSSTransform(m)Private
Return a Matrix's webkit css representation to be used with the CSS3 -webkit-transform style. Example: -webkit-transform: matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,716,243,0,1)
Parameters
Returns
setMatrix(element, matrix)PrivateStatic
Directly apply given FamousMatrix to the document element as the appropriate webkit CSS style.
Parameters
commit(context)Private
Apply changes from this component to the corresponding document element. This includes changes to classes, styles, size, content, opacity, origin, and matrix transforms.
Parameters
attach(target)Private
Place the document element that this component manages into the document.
Parameters
detach()Private
Remove any contained document content associated with this surface from the actual document.