sceneEnvironments

Returns the environments of one kind in a compiled document: every node with the identifier in the detail of a top-level scene.

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

What a live-value seed walks before the document has mounted anything, since an environment is always written in a scene's detail.

#Signature

<N extends NodeLike = NodeLike>(document: unknown, identifier: string): N[]

#Parameters

document
A compiled document.
identifier
The environment node's identifier, such as graph.

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

Last updated