nodeById
Returns the mark with an #id, cue wrappers unwrapped, optionally only among the kinds the match names, or undefined.
@internote/canvas-sdkOn this page
import { nodeById } from '@internote/canvas-sdk';Ids canonicalise to lower case in the compiler, so the id asked for is folded to meet them: a reference read raw finds its node the same as one read through referencedNodeId.
#Signature
<N extends NodeLike>(
children: readonly N[],
id: string,
match?: NodeMatch<N>,
): N | undefined#Parameters
childrenAn environment's children.
idThe id to find, with or without its
#.matchWhich kinds of node may answer. Absent means any.
Declared in packages/canvas-sdk/src/environment/node-query.ts:146.