attrsOf
Returns a node's attributes as a plain map from canonical name to value.
@internote/canvas-sdkOn this page
import { attrsOf } from '@internote/canvas-sdk';The raw values, as the document carries them, so a keyframed attribute arrives as its track. For the value at this moment on the timeline, ask the runtime with ctx.animation.attrValuesOf(node), which resolves tracks against the step position first.
#Signature
(node: NodeLike): Record<string, unknown>#Parameters
nodeThe node whose attributes to read.
Declared in packages/canvas-sdk/src/environment/nodes.ts:188.