@thi.ng/ramp
Version:
Extensible keyframe interpolation/tweening of arbitrary, nested types
26 lines • 899 B
TypeScript
import type { RampDomain } from "./api.js";
/**
* Identity time domain function. Default for {@link RampOpts.domain}.
* Passthrough, no-op.
*
* @param t
*/
export declare const unconstrained: RampDomain;
/**
* Time domain function. Clamps given lookup time `t` to the parent
* ramp's first & last keyframe times.
*/
export declare const clamp: RampDomain;
/**
* Time domain function. Wraps given lookup time `t` into the interval defined
* by parent ramp's first & last keyframe times, thereby creating a looping
* effect.
*/
export declare const wrap: RampDomain;
/**
* Higher-order time domain function and version of {@link wrap} to create a
* looping effect using the given `min` & `max` keyframe times (instead of the
* parent ramp's first/last keyframe times).
*/
export declare const wrapInterval: (min: number, max: number) => RampDomain;
//# sourceMappingURL=domain.d.ts.map