FlowDoc
Defined in: src/core/ir/flow.ts:40
The semantic IR tree (ir-design §5): everything a reader extracts from the
document bytes, format-neutrally — the flow body plus its document-scoped
companions (styles, numbering, header/footer bands, notes, charts, binary
resources, metadata). Caller-supplied conversion options (fonts, PDF/A
profile, signature, …) are deliberately NOT part of the tree; they
parameterize transforms, not the document.
body carries FINAL effective properties — readers materialize list markers
and resolve the style cascade while building it — so render projections must
not re-apply styles/numbering, which remain only as round-trip material.
Properties
Section titled “Properties”
readonlybody: readonlyBodyElement[]
Defined in: src/core/ir/flow.ts:44
The document flow content, carrying resolved, effective properties.
charts?
Section titled “charts?”
readonlyoptionalcharts?:ReadonlyMap<string,Chart>
Defined in: src/core/ir/flow.ts:64
Parsed charts keyed by relationship id (ChartBlock.chartRelId).
comments?
Section titled “comments?”
readonlyoptionalcomments?:ReadonlyMap<string,Comment>
Defined in: src/core/ir/flow.ts:62
§17.13.4 review comments by id, anchored from a run’s commentRef.
embeddedFonts?
Section titled “embeddedFonts?”
readonlyoptionalembeddedFonts?:ReadonlyMap<string,FontRegistry>
Defined in: src/core/ir/flow.ts:68
Fonts embedded in the source document itself (docx fontTable), by name.
endnotes?
Section titled “endnotes?”
readonlyoptionalendnotes?:ReadonlyMap<string, readonlyBodyElement[]>
Defined in: src/core/ir/flow.ts:60
footnotes?
Section titled “footnotes?”
readonlyoptionalfootnotes?:ReadonlyMap<string, readonlyBodyElement[]>
Defined in: src/core/ir/flow.ts:59
§17.11 footnotes/endnotes content by id (separator stubs excluded).
headersFooters?
Section titled “headersFooters?”
readonlyoptionalheadersFooters?:ReadonlyMap<string, readonlyBodyElement[]>
Defined in: src/core/ir/flow.ts:57
readonlyoptionalinfo?:DocumentInfo
Defined in: src/core/ir/flow.ts:70
Document metadata from docProps/core.xml.
readonlykind:"flow"
Defined in: src/core/ir/flow.ts:42
Discriminant for SourceDoc (a FlowDoc passes through projection).
language?
Section titled “language?”
readonlyoptionallanguage?:string
Defined in: src/core/ir/flow.ts:72
Document natural language hint (BCP-47), e.g. for tagged-PDF /Lang.
numbering?
Section titled “numbering?”
readonlyoptionalnumbering?:Numbering
Defined in: src/core/ir/flow.ts:56
Raw numbering definitions (round-trip material). body already carries the
materialized list markers — readers apply numbering as a FlowDoc transform,
so render projections must not re-apply it.
resources
Section titled “resources”
readonlyresources:ResourceStore
Defined in: src/core/ir/flow.ts:66
Content-addressed binary resources (images).
section?
Section titled “section?”
readonlyoptionalsection?:SectionProperties
Defined in: src/core/ir/flow.ts:48
Single-section page geometry (xlsx print setup).
sections
Section titled “sections”
readonlysections: readonlySection[]
Defined in: src/core/ir/flow.ts:46
Multi-section page geometry (docx). Empty for single-geometry sources.
styles
Section titled “styles”
readonlystyles:StyleSheet
Defined in: src/core/ir/flow.ts:50
Resolved style sheet, kept as round-trip material (already folded into body).