- 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
StateModifier
A collection of visual changes to be applied to another renderable component, strongly coupled with the state that defines those changes. This collection includes a transform matrix, an opacity constant, a size, an origin specifier, and an alignment specifier. StateModifier objects can be added to any RenderNode or object capable of displaying renderables. The StateModifier's children and descendants are transformed by the amounts specified in the modifier's properties.
Overview
Options
Methods
StateModifier(options)
Constructor Parameters
options
Object
overrides of default options
Methods
setTransform(transform, transition, callback)
Set the transform matrix of this modifier, either statically or through a provided Transitionable.
Parameters
Returns
setOpacity(opacity, transition, callback)
Set the opacity of this modifier, either statically or through a provided Transitionable.
Parameters
Returns
setOrigin(origin, transition, callback)
Set the origin of this modifier, either statically or through a provided Transitionable.
Parameters
Returns
setAlign(align, transition, callback)
Set the alignment of this modifier, either statically or through a provided Transitionable.
Parameters
Returns
setSize(size, transition, callback)
Set the size of this modifier, either statically or through a provided Transitionable.
Parameters
Returns
setProportions(proportions, transition, callback)
Set the proportions of this modifier, either statically or through a provided Transitionable.
Parameters
Returns
halt()
Stop the transition.
getTransform()
Get the current state of the transform matrix component.
Returns
getFinalTransform()
Get the destination state of the transform component.
Returns
getOpacity()
Get the current state of the opacity component.
Returns
getOrigin()
Get the current state of the origin component.
Returns
getAlign()
Get the current state of the align component.
Returns
getSize()
Get the current state of the size component.
Returns
getProportions()
Get the current state of the propportions component.
Returns
modify(target)Private
Return render spec for this StateModifier, applying to the provided target component. This is similar to render() for Surfaces.