- 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
Modifier
A collection of visual changes to be applied to another renderable component. This collection includes a transform matrix, an opacity constant, a size, an origin specifier. Modifier objects can be added to any RenderNode or object capable of displaying renderables. The Modifier's children and descendants are transformed by the amounts specified in the Modifier's properties.
Overview
Options
Methods
Modifier(options)
Constructor Parameters
options
Object
overrides of default options
Methods
transformFrom(transform)
Function, object, or static transform matrix which provides the transform. This is evaluated on every tick of the engine.
Parameters
Returns
opacityFrom(opacity)
Set function, object, or number to provide opacity, in range [0,1].
Parameters
Returns
originFrom(origin)
Set function, object, or numerical array to provide origin, as [x,y], where x and y are in the range [0,1].
Parameters
Returns
alignFrom(align)
Set function, object, or numerical array to provide align, as [x,y], where x and y are in the range [0,1].
Parameters
Returns
sizeFrom(size)
Set function, object, or numerical array to provide size, as [width, height].
Parameters
Returns
proportionsFrom(proportions)
Set function, object, or numerical array to provide proportions, as [percent of width, percent of height].
Parameters
Returns
setTransform(transform, transition, callback)Deprecated
Deprecated: Prefer transformFrom with static Transform, or use a TransitionableTransform.
Parameters
Returns
setOpacity(opacity, transition, callback)Deprecated
Deprecated: Prefer opacityFrom with static opacity array, or use a Transitionable with that opacity.
Parameters
Returns
setOrigin(origin, transition, callback)Deprecated
Deprecated: Prefer originFrom with static origin array, or use a Transitionable with that origin.
Parameters
Returns
setAlign(align, transition, callback)Deprecated
Deprecated: Prefer alignFrom with static align array, or use a Transitionable with that align.
Parameters
Returns
setSize(size, transition, callback)Deprecated
Deprecated: Prefer sizeFrom with static origin array, or use a Transitionable with that size.
Parameters
Returns
setProportions(proportions, transition, callback)Deprecated
Deprecated: Prefer proportionsFrom with static origin array, or use a Transitionable with those proportions.
Parameters
Returns
halt()Deprecated
Deprecated: Prefer to stop transform in your provider object.
getTransform()Deprecated
Deprecated: Prefer to use your provided transform or output of your transform provider.
Returns
getFinalTransform()Deprecated
Deprecated: Prefer to determine the end state of your transform from your transform provider
Returns
getOpacity()Deprecated
Deprecated: Prefer to use your provided opacity or output of your opacity provider.
Returns
getOrigin()Deprecated
Deprecated: Prefer to use your provided origin or output of your origin provider.
Returns
getAlign()Deprecated
Deprecated: Prefer to use your provided align or output of your align provider.
Returns
getSize()Deprecated
Deprecated: Prefer to use your provided size or output of your size provider.
Returns
getProportions()Deprecated
Deprecated: Prefer to use your provided proportions or output of your proportions provider.
Returns
modify(target)Private
Return render spec for this Modifier, applying to the provided target component. This is similar to render() for Surfaces.