runCanvasSemanticPass
Checks a compiled, refined document against the canvas rules the library schema cannot express, and returns what it found.
@internote/canvas-sdkOn this page
import { runCanvasSemanticPass } from '@internote/canvas-sdk';Walks every scene, checking unique ids and continue: targets, at most two environments per scene, cue anchors within the scene's steps, !cue.to only on animatable attributes, children within their environment's vocabulary, dataset bindings against the document's data, suspicious implicit products in expressions, and every registered environment's own validate rules. Never modifies the document. The compile service fails on the first error and passes warnings through on success; a host running the compiler itself calls this after refineInternoteDocument.
#Signature
(document: ChalkDocument): SemanticPassResult#Parameters
documentThe compiled and refined document.
Declared in packages/canvas-sdk/src/semantic/canvas-pass.ts:143.