Skip to content

v0.2.3

Choose a tag to compare

@osolmaz osolmaz released this 30 Nov 18:45

Progressive Page-1-First DOCX Loading & Open Progress

  • Single-parse staged opening & incremental layout (f-office-docx, f-office, f-office-docs, f-office-wasm): Parses the DOCX once, scans font needs without a full dummy layout pass, yields as soon as Page 1 is ready, and lays out remaining pages in short non-blocking slices while preserving scroll state and invalidating only pages affected by multi-pass fields (NUMPAGES, PAGEREF, TOC).
  • Worker scheduler & structured progress (@f-office/docs): Prioritizes interactive input and visible page draws over background layout slices and print copies; emits progress (engine, scan, fonts, layout, render) and pageschange events alongside onProgress on FOfficeDocs.
  • React 19 progress UI (@f-office/docs-react): <DocsCanvas /> renders a top progress bar (role="progressbar") during streaming, DocsPageControls shows Page X of Y… until layout completes, and <FOfficeDocs /> exposes onProgress and onPagesChange.

Viewer & Theme Fixes

  • Forward DocsProvider theme to Radix portals and scope :root[data-theme] fallbacks and print styles cleanly when embedded.
  • Apply zoom="fit-width" / zoom="fit-page" before "open" fires on <f-office-docs> and keep the floating outline toggle hidden under chrome="none" unless outline-button / outlineButton is opted in.

DOCX Layout Fidelity

  • Support w:beforeLines / w:afterLines paragraph spacing.
  • Honor layoutInCell and VML o:allowincell for page-relative floating drawings inside table cells.
  • Improve table style basedOn margin resolution and East Asian trailing auto-space / punctuation compression handling.