API Reference / @gtkx/animated / InterpolatorFactory
Interface: InterpolatorFactory()
Call Signature
InterpolatorFactory<
Input,Output>(interpolator):InterpolatorFn<Input,Output>
Type Parameters
Input
Input
Output
Output
Parameters
interpolator
InterpolatorFn<Input, Output>
Returns
InterpolatorFn<Input, Output>
Call Signature
InterpolatorFactory<
Output>(config): (input) =>Animatable<Output>
Type Parameters
Output
Output
Parameters
config
InterpolatorConfig<Output>
Returns
(input) => Animatable<Output>
Call Signature
InterpolatorFactory<
Output>(range,output,extrapolate?): (input) =>Animatable<Output>
Type Parameters
Output
Output
Parameters
range
readonly number[]
output
readonly Constrain<Output, string | number | readonly (string | number)[]>[]
extrapolate?
Returns
(input) => Animatable<Output>
Call Signature
InterpolatorFactory<
Input,Output>(...args):InterpolatorFn<Input,Output>
Type Parameters
Input
Input
Output
Output
Parameters
args
...InterpolatorArgs<Input, Output>
Returns
InterpolatorFn<Input, Output>