Skip to content
Shapemetry

@huukhanhnguyen/model / lanes/sheets/nodes

lanes/sheets/nodes

evaluateSheet()

evaluateSheet(model, sheetNumber): SheetEvaluation

Compose one sheets[] entry into flat sheet-space data documents (paper mm) — every content source wired: the views lane (an auto-tiled top-level viewport node), the sheet's operations (positioned viewport/ tableEntity/imageData/placeComponent placements plus ordinary ad hoc content), border + title block. Pulls a persistent, dirty-gated SheetNode (nodes/LaneNode.ts) — every lane it reads (view/component/ table) registers an EXPLICIT dependency edge back onto it (see sheetNodeOf), so editing any of them invalidates precisely this sheet, not every sheet in the model.

Parameters

model

Model

sheetNumber

string

Returns

SheetEvaluation


evaluateSheetOperations()

evaluateSheetOperations(model, sheetKey): Resolved<ObjectData[]>

Evaluate one sheet's own ad hoc operations (sheet-local flat content, see Sheet's doc) by sheet key. Empty when the sheet has none. A one-off entry with no consumer, so its cross-lane reads go through flatLaneExtras() — evaluateSheet (below) is the cached path for a sheet's FULL composed content, including this same ad hoc lane.

Parameters

model

Model

sheetKey

string

Returns

Resolved<ObjectData[]>

Last updated: 📖 1 min readEdit on GitHub