Skip to content

API Reference / @gtkx/animated / Interpolator

Interface: Interpolator()

Defined in: node_modules/.pnpm/@react-spring+core@10.1.2_react@19.2.8/node_modules/@react-spring/core/dist/react-spring_core.modern.d.mts:1308

This interpolates one or more FluidValue objects. The exported interpolate function uses this type.

Call Signature

Interpolator<Input, Output>(parents, interpolator): Interpolation<Output>

Defined in: node_modules/.pnpm/@react-spring+core@10.1.2_react@19.2.8/node_modules/@react-spring/core/dist/react-spring_core.modern.d.mts:1309

This interpolates one or more FluidValue objects. The exported interpolate function uses this type.

Type Parameters

Input

Input extends readonly any[]

Output

Output

Parameters

parents

Input

interpolator

(...args) => Output

Returns

Interpolation<Output>

Call Signature

Interpolator<Input, Output>(parent, interpolator): Interpolation<Output>

Defined in: node_modules/.pnpm/@react-spring+core@10.1.2_react@19.2.8/node_modules/@react-spring/core/dist/react-spring_core.modern.d.mts:1310

This interpolates one or more FluidValue objects. The exported interpolate function uses this type.

Type Parameters

Input

Input

Output

Output

Parameters

parent

Input | FluidValue<Input, any>

interpolator

InterpolatorFn<Input, Output>

Returns

Interpolation<Output>

Call Signature

Interpolator<Out>(parents, config): Interpolation<Animatable<Out>>

Defined in: node_modules/.pnpm/@react-spring+core@10.1.2_react@19.2.8/node_modules/@react-spring/core/dist/react-spring_core.modern.d.mts:1311

This interpolates one or more FluidValue objects. The exported interpolate function uses this type.

Type Parameters

Out

Out

Parameters

parents

OneOrMore<FluidValue<any, any>>

config

InterpolatorConfig<Out>

Returns

Interpolation<Animatable<Out>>

Call Signature

Interpolator<Out>(parents, range, output, extrapolate?): Interpolation<Animatable<Out>>

Defined in: node_modules/.pnpm/@react-spring+core@10.1.2_react@19.2.8/node_modules/@react-spring/core/dist/react-spring_core.modern.d.mts:1312

This interpolates one or more FluidValue objects. The exported interpolate function uses this type.

Type Parameters

Out

Out

Parameters

parents

OneOrMore<FluidValue<number, any>> | FluidValue<number[], any>

range

readonly number[]

output

readonly Constrain<Out, string | number | readonly (string | number)[]>[]

extrapolate?

ExtrapolateType

Returns

Interpolation<Animatable<Out>>

Released under the MPL-2.0 License.