resolveTrackValue

Returns the momentary value of a keyframe track, blended by the attribute's interpolation kind while it moves.

@internote/canvas-sdkFunction
On this page
import { resolveTrackValue } from '@internote/canvas-sdk';

Resolves the transition with resolveTrackTransition; mid-move, the interpolator registered for kind blends the endpoints, and a kind with no interpolator snaps at the midpoint.

#Signature

(
    track: KeyframeTrack,
    steps: StepController,
    kind?: InterpolationKind,
    interpolations?: InterpolationRegistry,
): ResolvedTrackValue

#Parameters

track
The refined !cue.to chain.
steps
The scene's step controller.
kind
The attribute's declared interpolation kind.
interpolations
The registry to look kind up in.

Declared in packages/canvas-sdk/src/animation/keyframes.ts:197.

Last updated