attrOf

Returns one attribute's raw value, or undefined when the node does not write it.

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

The single-attribute counterpart of attrsOf: no map is built. A keyframed attribute comes back as its track; resolve it through ctx.animation for the value at this moment.

#Signature

(node: NodeLike, identifier: string): unknown

#Parameters

node
The node to read.
identifier
The attribute's canonical name.

Declared in packages/canvas-sdk/src/environment/node-attributes.ts:38.

Last updated