resolveAttrValue

Returns an attribute value at this moment whether or not it carries keyframes: a track resolves to its momentary value, anything else passes through.

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

The common read a surface performs. Inside an environment, ctx.animation.attrValuesOf(node) does this for every attribute of a node at once, with the attribute's declared kind looked up.

#Signature

(
    value: unknown,
    steps: StepController,
    kind?: InterpolationKind,
    interpolations?: InterpolationRegistry,
): unknown

#Parameters

value
An attribute's raw value.
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:251.

Last updated