@ooxml-sanad/layout
v0.2.0
Published
Line breaking, tables, pagination, floats and exclusions, fixpoint driver.
Downloads
393
Readme
@ooxml/layout
Page layout engine: line breaking, table layout, pagination, floats, exclusions, and fixpoint iteration.
Install
npm install @ooxml/layoutOverview
The core layout engine that positions content on pages:
- Line breaking — Knuth-Plass-style optimization with hyphenation, tabs, drop caps, indentation, justification, and spacing
- Table layout — Grid computation, cell sizing, spanning, borders
- Pagination — Section breaks, columns, headers/footers, endnotes/footnotes, line numbers, page fills, vertical alignment
- Floats — Anchor positioning, text exclusions, frame properties, polygon clipping
- Fixpoint — Iterative convergence for complex layout dependencies
- Math — OfficeMath layout support
Usage
import { paginate, breakLines, layoutTable } from '@ooxml/layout';License
MIT
