descendantNodes
Returns every element below the root, through body and detail both, at any depth, in document order with parents before their children.
@internote/canvas-sdkOn this page
import { descendantNodes } from '@internote/canvas-sdk';Cues, marks and nested environments alike. The root itself is not included; hand a list to walk several roots, in which case the list's own elements are included.
#Signature
<N extends NodeLike>(root: N | readonly N[]): N[]#Parameters
rootA node, or a list of nodes.
Declared in packages/canvas-sdk/src/environment/node-query.ts:197.