- 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
SpecParser
This object translates the rendering instructions ("render specs") that renderable components generate into document update instructions ("update specs"). Private.
Overview
Methods
Methods
parse(spec, context)PrivateStatic
Convert a render spec coming from the context's render chain to an update spec for the update chain. This is the only major entry point for a consumer of this class.
Parameters
spec
RenderSpec
input render spec
context
Object
context to do the parse in
Returns
Object
the resulting update spec (if no callback specified, else none)
parse(spec, context)Private
Convert a renderSpec coming from the context's render chain to an update spec for the update chain. This is the only major entrypoint for a consumer of this class.
Parameters
spec
RenderSpec
input render spec
context
Context
Returns
UpdateSpec
the resulting update spec
reset()Private
Prepare SpecParser for re-use (or first use) by setting internal state to blank.