foldControlsIntoLibrary

Returns a copy of a library with the control family declared and admitted everywhere a control may be written: the scene's detail, and every cue's body.

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

Separate from buildCanvasLibrary, and called before it, because that function returns the base untouched when no environment is registered, and a vocabulary-only compile still has sliders. Environment bodies are the one place this cannot reach, because the environments do not exist yet; buildCanvasLibrary adds the controls there as it declares each one. buildInternoteLibrary calls both in order.

#Signature

(base: ChalkLibrary): ChalkLibrary

#Parameters

base
The library to add the controls to. Not mutated.

Declared in packages/canvas-sdk/src/environment/library-build.ts:134.

Last updated