- 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
OptionsManager
A collection of methods for setting options which can be extended onto other classes. **** WARNING **** You can only pass through objects that will compile into valid JSON. Valid options: Strings, Arrays, Objects, Numbers, Nested Objects, Nested Arrays. This excludes: Document Fragments, Functions
Overview
Options
Methods
OptionsManager(value)
Constructor Parameters
value
Object
options dictionary
Methods
OptionsManager.patch(source, data)Static
Create options manager from source dictionary with arguments overriden by patch dictionary.
Parameters
Returns
patch(arguments)
Create OptionsManager from source with arguments overriden by patches. Triggers 'change' event on this object's event handler if the state of the OptionsManager changes as a result.
Parameters
Returns
setOptions()
Alias for patch
key(identifier)
Return OptionsManager based on sub-object retrieved by key
Parameters
Returns
get(key)
Look up value by key or get the full options hash
Parameters
Returns
getOptions()
Alias for get
set(key, value)
Set key to value. Outputs 'change' event if a value is overwritten.
Parameters
Returns
on(type, handler)
Bind a callback function to an event type handled by this object.
Parameters
Returns
removeListener(type, handler)
Unbind an event by type and handler. This undoes the work of "on".
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"