NodeMatch

Which nodes a question is about: one identifier, a set or list of identifiers, or a test of the node itself.

@internote/canvas-sdkType
On this page
import { NodeMatch } from '@internote/canvas-sdk';

#Signature

string | ReadonlySet<string> | readonly string[] | ((node: N) => boolean)

#Example

nodesOf(children, 'point');
nodesOf(children, ['point', 'scatter']);
nodesOf(children, (node) => attrOf(node, 'colour') === 'red');

Declared in packages/canvas-sdk/src/environment/node-query.ts:45.

Last updated