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-sdkOn 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
baseThe library to add the controls to. Not mutated.
Declared in packages/canvas-sdk/src/environment/library-build.ts:134.