resolveCanvasLayout
Splits a compiled scene's detail into canvas environments and blank-canvas content, and reads the scene's direction and ratio.
@internote/canvas-sdk/hostOn this page
import { resolveCanvasLayout } from '@internote/canvas-sdk/host';The canvas nodes' order is primacy; everything else is blank-canvas content, kept in source order. The two-environment cap is the semantic pass's to enforce, not this function's. direction comes back as written, auto included, so a host passes it through resolveSplitDirectionat render. A missing or non-positive ratio reads as 1.
#Signature
(scene: CompiledNode): CanvasLayout#Parameters
sceneThe compiled
scene node.Declared in packages/canvas-sdk/src/host/layout.ts:135.