attrOf
Returns one attribute's raw value, or undefined when the node does not write it.
@internote/canvas-sdkOn 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
nodeThe node to read.
identifierThe attribute's canonical name.
Declared in packages/canvas-sdk/src/environment/node-attributes.ts:38.