referencedNodeId

Returns the node id a reference attribute names, lower-cased, or null when the value is not a reference.

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

A reference the compiler parsed natively arrives as a binding object; one that came through a refiner, such as a keyframe's target, arrives as the written #id text. Both are read. Node ids canonicalise to lower case in the compiler, so the id comes back ready to match against the document's.

#Signature

(value: unknown): string | null

#Parameters

value
A reference attribute's raw value.

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

Last updated