Class FlowGraphInterpolationBlock<T>
Type Parameters
- T
Hierarchy (View Summary)
- WebXRSpatialLayerType
- FlowGraphInterpolationBlock
Constructors
constructor
-
new FlowGraphInterpolationBlock<T>(
config?: IFlowGraphInterpolationBlockConfiguration,
): FlowGraphInterpolationBlock<T>Type Parameters
- T
Parameters
- config: IFlowGraphInterpolationBlockConfiguration = {}
Returns FlowGraphInterpolationBlock<T>
Properties
Readonlyanimation
animation: FlowGraphDataConnection<any>
output connection: The animation that will be created when in is triggered.
Readonlycustom Build Animation
customBuildAnimation: FlowGraphDataConnection<
(
target: any,
propertname: any,
context: FlowGraphContext,
) => (
keys: any[],
fps: number,
animationType: number,
easingFunction?: any,
) => any,
>
(
target: any,
propertname: any,
context: FlowGraphContext,
) => (
keys: any[],
fps: number,
animationType: number,
easingFunction?: any,
) => any,
>
If provided, this function will be used to create the animation object(s).
Readonlyeasing Function
easingFunction: FlowGraphDataConnection<EasingFunction>
Input connection: An optional easing function to use for the interpolation.
Readonlyend Value
Input connection: The value to interpolate to. Optional. This can also be set using the KeyFrames input! If provided it will be set to the last keyframe value.
Readonlyinitial Value
Input connection: The value to interpolate from. Optional. If not provided, the current value will be used. Note that if provided, every time the animation is created this value will be used!
Readonlykey Frames
The keyframes to interpolate between. Each keyframe has a duration input and a value input.
Readonlyproperty Name
propertyName: FlowGraphDataConnection<string | string[]>
Input connection: The name of the property that will be set
This block is responsible for interpolating between two values. The babylon concept used is Animation, and it is the output of this block.
Note that values will be parsed when the in connection is triggered. until then changing the value will not trigger a new interpolation.
Internally this block uses the Animation class.
Note that if the interpolation is already running a signal will be sent to stop the animation group running it.