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-sdkOn 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
valueAn attribute's raw value.
stepsThe scene's step controller.
kindThe attribute's declared interpolation kind.
interpolationsThe registry to look
kind up in.Declared in packages/canvas-sdk/src/animation/keyframes.ts:251.