parametersOf

Returns every parameter a list of nodes declares, in source order, skipping nodes that are not controls.

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

A name declared twice keeps its first control; the semantic pass has already refused two controls on one parameter. What a live-value seed reads a document's controls with before anything has mounted; inside an environment, ctx.parameters.all is the scene's whole table.

#Signature

(
    nodes: CompiledNode[],
    datasets: Record<string, ChalkDataset> | undefined,
): Parameter[]

#Parameters

nodes
The nodes to read, such as an environment's flattened children.
datasets
The document's datasets, which an column: column is read from.

Declared in packages/canvas-sdk/src/parameters/index.ts:424.

Last updated