ooxml-core 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (586) hide show
  1. package/LICENSE +202 -0
  2. package/NOTICE +3 -0
  3. package/README.md +125 -0
  4. package/THIRD-PARTY-LICENSES +26 -0
  5. package/dist/collab/assets.d.ts +42 -0
  6. package/dist/collab/assets.d.ts.map +1 -0
  7. package/dist/collab/awareness.d.ts +65 -0
  8. package/dist/collab/awareness.d.ts.map +1 -0
  9. package/dist/collab/binding.d.ts +36 -0
  10. package/dist/collab/binding.d.ts.map +1 -0
  11. package/dist/collab/codec.d.ts +37 -0
  12. package/dist/collab/codec.d.ts.map +1 -0
  13. package/dist/collab/emitter.d.ts +11 -0
  14. package/dist/collab/emitter.d.ts.map +1 -0
  15. package/dist/collab/external-provider.d.ts +50 -0
  16. package/dist/collab/external-provider.d.ts.map +1 -0
  17. package/dist/collab/identity.d.ts +48 -0
  18. package/dist/collab/identity.d.ts.map +1 -0
  19. package/dist/collab/index.cjs +1328 -0
  20. package/dist/collab/index.d.ts +18 -0
  21. package/dist/collab/index.d.ts.map +1 -0
  22. package/dist/collab/index.mjs +1225 -0
  23. package/dist/collab/lifecycle.d.ts +62 -0
  24. package/dist/collab/lifecycle.d.ts.map +1 -0
  25. package/dist/collab/memory-transport.d.ts +19 -0
  26. package/dist/collab/memory-transport.d.ts.map +1 -0
  27. package/dist/collab/ordering.d.ts +53 -0
  28. package/dist/collab/ordering.d.ts.map +1 -0
  29. package/dist/collab/policy.d.ts +39 -0
  30. package/dist/collab/policy.d.ts.map +1 -0
  31. package/dist/collab/presence.d.ts +61 -0
  32. package/dist/collab/presence.d.ts.map +1 -0
  33. package/dist/collab/provider.d.ts +55 -0
  34. package/dist/collab/provider.d.ts.map +1 -0
  35. package/dist/collab/session.d.ts +70 -0
  36. package/dist/collab/session.d.ts.map +1 -0
  37. package/dist/collab/transport-provider.d.ts +13 -0
  38. package/dist/collab/transport-provider.d.ts.map +1 -0
  39. package/dist/collab/validation.d.ts +38 -0
  40. package/dist/collab/validation.d.ts.map +1 -0
  41. package/dist/collab/websocket-transport.d.ts +33 -0
  42. package/dist/collab/websocket-transport.d.ts.map +1 -0
  43. package/dist/color/color-linear.d.ts +5 -0
  44. package/dist/color/color-linear.d.ts.map +1 -0
  45. package/dist/color/color-primitives.d.ts +183 -0
  46. package/dist/color/color-primitives.d.ts.map +1 -0
  47. package/dist/color/index.cjs +177 -0
  48. package/dist/color/index.d.ts +3 -0
  49. package/dist/color/index.d.ts.map +1 -0
  50. package/dist/color/index.mjs +161 -0
  51. package/dist/diagram/attributes.d.ts +12 -0
  52. package/dist/diagram/attributes.d.ts.map +1 -0
  53. package/dist/diagram/data-model.d.ts +18 -0
  54. package/dist/diagram/data-model.d.ts.map +1 -0
  55. package/dist/diagram/definitions.d.ts +14 -0
  56. package/dist/diagram/definitions.d.ts.map +1 -0
  57. package/dist/diagram/dom.d.ts +15 -0
  58. package/dist/diagram/dom.d.ts.map +1 -0
  59. package/dist/diagram/drawing-color.d.ts +28 -0
  60. package/dist/diagram/drawing-color.d.ts.map +1 -0
  61. package/dist/diagram/drawing-fill.d.ts +9 -0
  62. package/dist/diagram/drawing-fill.d.ts.map +1 -0
  63. package/dist/diagram/drawing-geometry.d.ts +23 -0
  64. package/dist/diagram/drawing-geometry.d.ts.map +1 -0
  65. package/dist/diagram/drawing-text.d.ts +5 -0
  66. package/dist/diagram/drawing-text.d.ts.map +1 -0
  67. package/dist/diagram/drawing.d.ts +7 -0
  68. package/dist/diagram/drawing.d.ts.map +1 -0
  69. package/dist/diagram/index.cjs +1193 -0
  70. package/dist/diagram/index.d.ts +14 -0
  71. package/dist/diagram/index.d.ts.map +1 -0
  72. package/dist/diagram/index.mjs +1161 -0
  73. package/dist/diagram/layout-category.d.ts +8 -0
  74. package/dist/diagram/layout-category.d.ts.map +1 -0
  75. package/dist/diagram/load.d.ts +36 -0
  76. package/dist/diagram/load.d.ts.map +1 -0
  77. package/dist/diagram/relationships.d.ts +35 -0
  78. package/dist/diagram/relationships.d.ts.map +1 -0
  79. package/dist/diagram/types.d.ts +306 -0
  80. package/dist/diagram/types.d.ts.map +1 -0
  81. package/dist/docx/block-parser.d.ts +13 -0
  82. package/dist/docx/block-parser.d.ts.map +1 -0
  83. package/dist/docx/bookmarks.d.ts +18 -0
  84. package/dist/docx/bookmarks.d.ts.map +1 -0
  85. package/dist/docx/breaks.d.ts +11 -0
  86. package/dist/docx/breaks.d.ts.map +1 -0
  87. package/dist/docx/character-styles.d.ts +4 -0
  88. package/dist/docx/character-styles.d.ts.map +1 -0
  89. package/dist/docx/comment-spans.d.ts +19 -0
  90. package/dist/docx/comment-spans.d.ts.map +1 -0
  91. package/dist/docx/comments.d.ts +4 -0
  92. package/dist/docx/comments.d.ts.map +1 -0
  93. package/dist/docx/core-properties.d.ts +18 -0
  94. package/dist/docx/core-properties.d.ts.map +1 -0
  95. package/dist/docx/default-styles.d.ts +8 -0
  96. package/dist/docx/default-styles.d.ts.map +1 -0
  97. package/dist/docx/defined-props.d.ts +9 -0
  98. package/dist/docx/defined-props.d.ts.map +1 -0
  99. package/dist/docx/diagram-document.d.ts +9 -0
  100. package/dist/docx/diagram-document.d.ts.map +1 -0
  101. package/dist/docx/diagram-theme.d.ts +8 -0
  102. package/dist/docx/diagram-theme.d.ts.map +1 -0
  103. package/dist/docx/diagram.d.ts +89 -0
  104. package/dist/docx/diagram.d.ts.map +1 -0
  105. package/dist/docx/docpr-ids.d.ts +14 -0
  106. package/dist/docx/docpr-ids.d.ts.map +1 -0
  107. package/dist/docx/document-parts.d.ts +18 -0
  108. package/dist/docx/document-parts.d.ts.map +1 -0
  109. package/dist/docx/drawing.d.ts +13 -0
  110. package/dist/docx/drawing.d.ts.map +1 -0
  111. package/dist/docx/element-order.d.ts +13 -0
  112. package/dist/docx/element-order.d.ts.map +1 -0
  113. package/dist/docx/embedded.cjs +7646 -0
  114. package/dist/docx/embedded.d.ts +5 -0
  115. package/dist/docx/embedded.d.ts.map +1 -0
  116. package/dist/docx/embedded.mjs +7639 -0
  117. package/dist/docx/expect-defined.d.ts +3 -0
  118. package/dist/docx/expect-defined.d.ts.map +1 -0
  119. package/dist/docx/field-date.d.ts +10 -0
  120. package/dist/docx/field-date.d.ts.map +1 -0
  121. package/dist/docx/field-runs.d.ts +10 -0
  122. package/dist/docx/field-runs.d.ts.map +1 -0
  123. package/dist/docx/generated/wml-simple-types.d.ts +298 -0
  124. package/dist/docx/generated/wml-simple-types.d.ts.map +1 -0
  125. package/dist/docx/heading-list-kinds.d.ts +10 -0
  126. package/dist/docx/heading-list-kinds.d.ts.map +1 -0
  127. package/dist/docx/highlight.d.ts +5 -0
  128. package/dist/docx/highlight.d.ts.map +1 -0
  129. package/dist/docx/hyperlink.d.ts +8 -0
  130. package/dist/docx/hyperlink.d.ts.map +1 -0
  131. package/dist/docx/index.cjs +9784 -0
  132. package/dist/docx/index.d.ts +40 -0
  133. package/dist/docx/index.d.ts.map +1 -0
  134. package/dist/docx/index.mjs +9456 -0
  135. package/dist/docx/inline-model.d.ts +68 -0
  136. package/dist/docx/inline-model.d.ts.map +1 -0
  137. package/dist/docx/language.d.ts +3 -0
  138. package/dist/docx/language.d.ts.map +1 -0
  139. package/dist/docx/layout/adapt-drop-cap.d.ts +10 -0
  140. package/dist/docx/layout/adapt-drop-cap.d.ts.map +1 -0
  141. package/dist/docx/layout/adapt-floats.d.ts +8 -0
  142. package/dist/docx/layout/adapt-floats.d.ts.map +1 -0
  143. package/dist/docx/layout/adapt-notes.d.ts +13 -0
  144. package/dist/docx/layout/adapt-notes.d.ts.map +1 -0
  145. package/dist/docx/layout/adapt-paragraph-box.d.ts +12 -0
  146. package/dist/docx/layout/adapt-paragraph-box.d.ts.map +1 -0
  147. package/dist/docx/layout/adapt-table.d.ts +12 -0
  148. package/dist/docx/layout/adapt-table.d.ts.map +1 -0
  149. package/dist/docx/layout/adapter.d.ts +5 -0
  150. package/dist/docx/layout/adapter.d.ts.map +1 -0
  151. package/dist/docx/layout/floats.d.ts +20 -0
  152. package/dist/docx/layout/floats.d.ts.map +1 -0
  153. package/dist/docx/layout/flow-paragraph.d.ts +26 -0
  154. package/dist/docx/layout/flow-paragraph.d.ts.map +1 -0
  155. package/dist/docx/layout/flow-table.d.ts +12 -0
  156. package/dist/docx/layout/flow-table.d.ts.map +1 -0
  157. package/dist/docx/layout/fonts.d.ts +3 -0
  158. package/dist/docx/layout/fonts.d.ts.map +1 -0
  159. package/dist/docx/layout/index.cjs +2537 -0
  160. package/dist/docx/layout/index.d.ts +20 -0
  161. package/dist/docx/layout/index.d.ts.map +1 -0
  162. package/dist/docx/layout/index.mjs +2503 -0
  163. package/dist/docx/layout/input.d.ts +206 -0
  164. package/dist/docx/layout/input.d.ts.map +1 -0
  165. package/dist/docx/layout/keep-rules.d.ts +24 -0
  166. package/dist/docx/layout/keep-rules.d.ts.map +1 -0
  167. package/dist/docx/layout/layout.d.ts +9 -0
  168. package/dist/docx/layout/layout.d.ts.map +1 -0
  169. package/dist/docx/layout/ligatures.d.ts +4 -0
  170. package/dist/docx/layout/ligatures.d.ts.map +1 -0
  171. package/dist/docx/layout/line-metrics.d.ts +21 -0
  172. package/dist/docx/layout/line-metrics.d.ts.map +1 -0
  173. package/dist/docx/layout/measure.d.ts +34 -0
  174. package/dist/docx/layout/measure.d.ts.map +1 -0
  175. package/dist/docx/layout/page-cursor.d.ts +45 -0
  176. package/dist/docx/layout/page-cursor.d.ts.map +1 -0
  177. package/dist/docx/layout/page-flow.d.ts +7 -0
  178. package/dist/docx/layout/page-flow.d.ts.map +1 -0
  179. package/dist/docx/layout/paragraph-fragments.d.ts +6 -0
  180. package/dist/docx/layout/paragraph-fragments.d.ts.map +1 -0
  181. package/dist/docx/layout/paragraph-layout.d.ts +37 -0
  182. package/dist/docx/layout/paragraph-layout.d.ts.map +1 -0
  183. package/dist/docx/layout/paragraph-tokens.d.ts +27 -0
  184. package/dist/docx/layout/paragraph-tokens.d.ts.map +1 -0
  185. package/dist/docx/layout/result.d.ts +139 -0
  186. package/dist/docx/layout/result.d.ts.map +1 -0
  187. package/dist/docx/layout/tab-stops.d.ts +14 -0
  188. package/dist/docx/layout/tab-stops.d.ts.map +1 -0
  189. package/dist/docx/layout/table-layout.d.ts +30 -0
  190. package/dist/docx/layout/table-layout.d.ts.map +1 -0
  191. package/dist/docx/layout/test-helpers.d.ts +3 -0
  192. package/dist/docx/layout/test-helpers.d.ts.map +1 -0
  193. package/dist/docx/layout/text-breaks.d.ts +56 -0
  194. package/dist/docx/layout/text-breaks.d.ts.map +1 -0
  195. package/dist/docx/layout/units.d.ts +17 -0
  196. package/dist/docx/layout/units.d.ts.map +1 -0
  197. package/dist/docx/layout/wrap.d.ts +22 -0
  198. package/dist/docx/layout/wrap.d.ts.map +1 -0
  199. package/dist/docx/ligatures.d.ts +9 -0
  200. package/dist/docx/ligatures.d.ts.map +1 -0
  201. package/dist/docx/load/detect.d.ts +6 -0
  202. package/dist/docx/load/detect.d.ts.map +1 -0
  203. package/dist/docx/load/index.cjs +8869 -0
  204. package/dist/docx/load/index.d.ts +3 -0
  205. package/dist/docx/load/index.d.ts.map +1 -0
  206. package/dist/docx/load/index.mjs +8860 -0
  207. package/dist/docx/load/legacy-doc.d.ts +7 -0
  208. package/dist/docx/load/legacy-doc.d.ts.map +1 -0
  209. package/dist/docx/model-paragraph.d.ts +100 -0
  210. package/dist/docx/model-paragraph.d.ts.map +1 -0
  211. package/dist/docx/model-run.d.ts +110 -0
  212. package/dist/docx/model-run.d.ts.map +1 -0
  213. package/dist/docx/model.d.ts +114 -0
  214. package/dist/docx/model.d.ts.map +1 -0
  215. package/dist/docx/notes.d.ts +9 -0
  216. package/dist/docx/notes.d.ts.map +1 -0
  217. package/dist/docx/numbering-editing.d.ts +30 -0
  218. package/dist/docx/numbering-editing.d.ts.map +1 -0
  219. package/dist/docx/numbering-format.d.ts +17 -0
  220. package/dist/docx/numbering-format.d.ts.map +1 -0
  221. package/dist/docx/numbering-model.d.ts +73 -0
  222. package/dist/docx/numbering-model.d.ts.map +1 -0
  223. package/dist/docx/numbering-package.d.ts +12 -0
  224. package/dist/docx/numbering-package.d.ts.map +1 -0
  225. package/dist/docx/numbering-parse.d.ts +8 -0
  226. package/dist/docx/numbering-parse.d.ts.map +1 -0
  227. package/dist/docx/numbering-parts.d.ts +4 -0
  228. package/dist/docx/numbering-parts.d.ts.map +1 -0
  229. package/dist/docx/numbering-text.d.ts +20 -0
  230. package/dist/docx/numbering-text.d.ts.map +1 -0
  231. package/dist/docx/numbering-write.d.ts +5 -0
  232. package/dist/docx/numbering-write.d.ts.map +1 -0
  233. package/dist/docx/package-parts.d.ts +4 -0
  234. package/dist/docx/package-parts.d.ts.map +1 -0
  235. package/dist/docx/page-background.d.ts +9 -0
  236. package/dist/docx/page-background.d.ts.map +1 -0
  237. package/dist/docx/page-borders.d.ts +9 -0
  238. package/dist/docx/page-borders.d.ts.map +1 -0
  239. package/dist/docx/paragraph-alignment.d.ts +21 -0
  240. package/dist/docx/paragraph-alignment.d.ts.map +1 -0
  241. package/dist/docx/paragraph-styles.d.ts +15 -0
  242. package/dist/docx/paragraph-styles.d.ts.map +1 -0
  243. package/dist/docx/parse-diagnostics.d.ts +10 -0
  244. package/dist/docx/parse-diagnostics.d.ts.map +1 -0
  245. package/dist/docx/parse-revisions.d.ts +36 -0
  246. package/dist/docx/parse-revisions.d.ts.map +1 -0
  247. package/dist/docx/parse-table.d.ts +5 -0
  248. package/dist/docx/parse-table.d.ts.map +1 -0
  249. package/dist/docx/parse-warnings.d.ts +9 -0
  250. package/dist/docx/parse-warnings.d.ts.map +1 -0
  251. package/dist/docx/parse.d.ts +13 -0
  252. package/dist/docx/parse.d.ts.map +1 -0
  253. package/dist/docx/part-relationships.d.ts +12 -0
  254. package/dist/docx/part-relationships.d.ts.map +1 -0
  255. package/dist/docx/relationship-allocator.d.ts +32 -0
  256. package/dist/docx/relationship-allocator.d.ts.map +1 -0
  257. package/dist/docx/relationships.d.ts +3 -0
  258. package/dist/docx/relationships.d.ts.map +1 -0
  259. package/dist/docx/resolve-table.d.ts +8 -0
  260. package/dist/docx/resolve-table.d.ts.map +1 -0
  261. package/dist/docx/revision-commands.d.ts +27 -0
  262. package/dist/docx/revision-commands.d.ts.map +1 -0
  263. package/dist/docx/revision-ids.d.ts +10 -0
  264. package/dist/docx/revision-ids.d.ts.map +1 -0
  265. package/dist/docx/run-formatting.d.ts +16 -0
  266. package/dist/docx/run-formatting.d.ts.map +1 -0
  267. package/dist/docx/run-properties.d.ts +5 -0
  268. package/dist/docx/run-properties.d.ts.map +1 -0
  269. package/dist/docx/run-style-model.d.ts +21 -0
  270. package/dist/docx/run-style-model.d.ts.map +1 -0
  271. package/dist/docx/save.d.ts +5 -0
  272. package/dist/docx/save.d.ts.map +1 -0
  273. package/dist/docx/section-model.d.ts +97 -0
  274. package/dist/docx/section-model.d.ts.map +1 -0
  275. package/dist/docx/sections.d.ts +18 -0
  276. package/dist/docx/sections.d.ts.map +1 -0
  277. package/dist/docx/settings.d.ts +11 -0
  278. package/dist/docx/settings.d.ts.map +1 -0
  279. package/dist/docx/simple-types.d.ts +37 -0
  280. package/dist/docx/simple-types.d.ts.map +1 -0
  281. package/dist/docx/style-numbering-package.d.ts +11 -0
  282. package/dist/docx/style-numbering-package.d.ts.map +1 -0
  283. package/dist/docx/tab-stops.d.ts +8 -0
  284. package/dist/docx/tab-stops.d.ts.map +1 -0
  285. package/dist/docx/table-borders.d.ts +15 -0
  286. package/dist/docx/table-borders.d.ts.map +1 -0
  287. package/dist/docx/table-cell-write.d.ts +12 -0
  288. package/dist/docx/table-cell-write.d.ts.map +1 -0
  289. package/dist/docx/table-defaults.d.ts +20 -0
  290. package/dist/docx/table-defaults.d.ts.map +1 -0
  291. package/dist/docx/table-model.d.ts +101 -0
  292. package/dist/docx/table-model.d.ts.map +1 -0
  293. package/dist/docx/table-of-contents.d.ts +67 -0
  294. package/dist/docx/table-of-contents.d.ts.map +1 -0
  295. package/dist/docx/table-of-figures.d.ts +10 -0
  296. package/dist/docx/table-of-figures.d.ts.map +1 -0
  297. package/dist/docx/table-styles.d.ts +4 -0
  298. package/dist/docx/table-styles.d.ts.map +1 -0
  299. package/dist/docx/table-visuals.d.ts +22 -0
  300. package/dist/docx/table-visuals.d.ts.map +1 -0
  301. package/dist/docx/test-support/access.d.ts +14 -0
  302. package/dist/docx/test-support/access.d.ts.map +1 -0
  303. package/dist/docx/test-support/heading-numbering-fixture.d.ts +5 -0
  304. package/dist/docx/test-support/heading-numbering-fixture.d.ts.map +1 -0
  305. package/dist/docx/test-support/restart-fixture.d.ts +17 -0
  306. package/dist/docx/test-support/restart-fixture.d.ts.map +1 -0
  307. package/dist/docx/test-support/schema-validation.d.ts +24 -0
  308. package/dist/docx/test-support/schema-validation.d.ts.map +1 -0
  309. package/dist/docx/theme-color.d.ts +16 -0
  310. package/dist/docx/theme-color.d.ts.map +1 -0
  311. package/dist/docx/theme-model.d.ts +31 -0
  312. package/dist/docx/theme-model.d.ts.map +1 -0
  313. package/dist/docx/theme.d.ts +6 -0
  314. package/dist/docx/theme.d.ts.map +1 -0
  315. package/dist/docx/underline.d.ts +5 -0
  316. package/dist/docx/underline.d.ts.map +1 -0
  317. package/dist/docx/units.d.ts +2 -0
  318. package/dist/docx/units.d.ts.map +1 -0
  319. package/dist/docx/validate-issues.d.ts +40 -0
  320. package/dist/docx/validate-issues.d.ts.map +1 -0
  321. package/dist/docx/validate-model.d.ts +8 -0
  322. package/dist/docx/validate-model.d.ts.map +1 -0
  323. package/dist/docx/validate-paragraph.d.ts +10 -0
  324. package/dist/docx/validate-paragraph.d.ts.map +1 -0
  325. package/dist/docx/validate-structure.d.ts +10 -0
  326. package/dist/docx/validate-structure.d.ts.map +1 -0
  327. package/dist/docx/watermark.d.ts +14 -0
  328. package/dist/docx/watermark.d.ts.map +1 -0
  329. package/dist/docx/write-comments.d.ts +12 -0
  330. package/dist/docx/write-comments.d.ts.map +1 -0
  331. package/dist/docx/write-drawing.d.ts +12 -0
  332. package/dist/docx/write-drawing.d.ts.map +1 -0
  333. package/dist/docx/write-header-footer.d.ts +21 -0
  334. package/dist/docx/write-header-footer.d.ts.map +1 -0
  335. package/dist/docx/write-inline.d.ts +23 -0
  336. package/dist/docx/write-inline.d.ts.map +1 -0
  337. package/dist/docx/write-notes.d.ts +5 -0
  338. package/dist/docx/write-notes.d.ts.map +1 -0
  339. package/dist/docx/write-paragraph-decoration.d.ts +5 -0
  340. package/dist/docx/write-paragraph-decoration.d.ts.map +1 -0
  341. package/dist/docx/write-paragraph-properties.d.ts +4 -0
  342. package/dist/docx/write-paragraph-properties.d.ts.map +1 -0
  343. package/dist/docx/write-paragraph.d.ts +8 -0
  344. package/dist/docx/write-paragraph.d.ts.map +1 -0
  345. package/dist/docx/write-ranges.d.ts +42 -0
  346. package/dist/docx/write-ranges.d.ts.map +1 -0
  347. package/dist/docx/write-revisions.d.ts +10 -0
  348. package/dist/docx/write-revisions.d.ts.map +1 -0
  349. package/dist/docx/write-run-extra.d.ts +5 -0
  350. package/dist/docx/write-run-extra.d.ts.map +1 -0
  351. package/dist/docx/write-run-validation.d.ts +4 -0
  352. package/dist/docx/write-run-validation.d.ts.map +1 -0
  353. package/dist/docx/write-run.d.ts +7 -0
  354. package/dist/docx/write-run.d.ts.map +1 -0
  355. package/dist/docx/write-sections.d.ts +10 -0
  356. package/dist/docx/write-sections.d.ts.map +1 -0
  357. package/dist/docx/write-table-properties.d.ts +13 -0
  358. package/dist/docx/write-table-properties.d.ts.map +1 -0
  359. package/dist/docx/write-table.d.ts +9 -0
  360. package/dist/docx/write-table.d.ts.map +1 -0
  361. package/dist/docx/write-text-box.d.ts +15 -0
  362. package/dist/docx/write-text-box.d.ts.map +1 -0
  363. package/dist/docx/write.d.ts +25 -0
  364. package/dist/docx/write.d.ts.map +1 -0
  365. package/dist/docx/xml.d.ts +14 -0
  366. package/dist/docx/xml.d.ts.map +1 -0
  367. package/dist/docx/zip-parts.d.ts +5 -0
  368. package/dist/docx/zip-parts.d.ts.map +1 -0
  369. package/dist/geometry/adjustment-aware-shapes.d.ts +63 -0
  370. package/dist/geometry/adjustment-aware-shapes.d.ts.map +1 -0
  371. package/dist/geometry/callout-geometry.d.ts +65 -0
  372. package/dist/geometry/callout-geometry.d.ts.map +1 -0
  373. package/dist/geometry/cloud-bezier-paths.d.ts +55 -0
  374. package/dist/geometry/cloud-bezier-paths.d.ts.map +1 -0
  375. package/dist/geometry/com-avlst-ground-truth.d.ts +48 -0
  376. package/dist/geometry/com-avlst-ground-truth.d.ts.map +1 -0
  377. package/dist/geometry/connector-elbow-geometry.d.ts +41 -0
  378. package/dist/geometry/connector-elbow-geometry.d.ts.map +1 -0
  379. package/dist/geometry/guide-formula-api.d.ts +55 -0
  380. package/dist/geometry/guide-formula-api.d.ts.map +1 -0
  381. package/dist/geometry/guide-formula-eval.d.ts +85 -0
  382. package/dist/geometry/guide-formula-eval.d.ts.map +1 -0
  383. package/dist/geometry/index.cjs +15031 -0
  384. package/dist/geometry/index.d.ts +80 -0
  385. package/dist/geometry/index.d.ts.map +1 -0
  386. package/dist/geometry/index.mjs +14897 -0
  387. package/dist/geometry/indexed.d.ts +6 -0
  388. package/dist/geometry/indexed.d.ts.map +1 -0
  389. package/dist/geometry/preset-clip-paths-core.d.ts +20 -0
  390. package/dist/geometry/preset-clip-paths-core.d.ts.map +1 -0
  391. package/dist/geometry/preset-clip-paths-extended.d.ts +19 -0
  392. package/dist/geometry/preset-clip-paths-extended.d.ts.map +1 -0
  393. package/dist/geometry/preset-connection-sites-action-buttons.d.ts +14 -0
  394. package/dist/geometry/preset-connection-sites-action-buttons.d.ts.map +1 -0
  395. package/dist/geometry/preset-connection-sites-arrows-curved.d.ts +12 -0
  396. package/dist/geometry/preset-connection-sites-arrows-curved.d.ts.map +1 -0
  397. package/dist/geometry/preset-connection-sites-arrows-misc.d.ts +13 -0
  398. package/dist/geometry/preset-connection-sites-arrows-misc.d.ts.map +1 -0
  399. package/dist/geometry/preset-connection-sites-arrows.d.ts +13 -0
  400. package/dist/geometry/preset-connection-sites-arrows.d.ts.map +1 -0
  401. package/dist/geometry/preset-connection-sites-basic-a.d.ts +12 -0
  402. package/dist/geometry/preset-connection-sites-basic-a.d.ts.map +1 -0
  403. package/dist/geometry/preset-connection-sites-basic-b.d.ts +12 -0
  404. package/dist/geometry/preset-connection-sites-basic-b.d.ts.map +1 -0
  405. package/dist/geometry/preset-connection-sites-braces.d.ts +12 -0
  406. package/dist/geometry/preset-connection-sites-braces.d.ts.map +1 -0
  407. package/dist/geometry/preset-connection-sites-callouts-arrow.d.ts +14 -0
  408. package/dist/geometry/preset-connection-sites-callouts-arrow.d.ts.map +1 -0
  409. package/dist/geometry/preset-connection-sites-callouts-basic.d.ts +12 -0
  410. package/dist/geometry/preset-connection-sites-callouts-basic.d.ts.map +1 -0
  411. package/dist/geometry/preset-connection-sites-circular-arrow.d.ts +14 -0
  412. package/dist/geometry/preset-connection-sites-circular-arrow.d.ts.map +1 -0
  413. package/dist/geometry/preset-connection-sites-flowchart.d.ts +19 -0
  414. package/dist/geometry/preset-connection-sites-flowchart.d.ts.map +1 -0
  415. package/dist/geometry/preset-connection-sites-gear9.d.ts +12 -0
  416. package/dist/geometry/preset-connection-sites-gear9.d.ts.map +1 -0
  417. package/dist/geometry/preset-connection-sites-left-circular-arrow.d.ts +12 -0
  418. package/dist/geometry/preset-connection-sites-left-circular-arrow.d.ts.map +1 -0
  419. package/dist/geometry/preset-connection-sites-left-right-circular-arrow.d.ts +13 -0
  420. package/dist/geometry/preset-connection-sites-left-right-circular-arrow.d.ts.map +1 -0
  421. package/dist/geometry/preset-connection-sites-math.d.ts +12 -0
  422. package/dist/geometry/preset-connection-sites-math.d.ts.map +1 -0
  423. package/dist/geometry/preset-connection-sites-misc.d.ts +14 -0
  424. package/dist/geometry/preset-connection-sites-misc.d.ts.map +1 -0
  425. package/dist/geometry/preset-connection-sites-polygons.d.ts +12 -0
  426. package/dist/geometry/preset-connection-sites-polygons.d.ts.map +1 -0
  427. package/dist/geometry/preset-connection-sites-quads.d.ts +14 -0
  428. package/dist/geometry/preset-connection-sites-quads.d.ts.map +1 -0
  429. package/dist/geometry/preset-connection-sites-rects.d.ts +14 -0
  430. package/dist/geometry/preset-connection-sites-rects.d.ts.map +1 -0
  431. package/dist/geometry/preset-connection-sites-ribbons.d.ts +12 -0
  432. package/dist/geometry/preset-connection-sites-ribbons.d.ts.map +1 -0
  433. package/dist/geometry/preset-connection-sites-stars.d.ts +13 -0
  434. package/dist/geometry/preset-connection-sites-stars.d.ts.map +1 -0
  435. package/dist/geometry/preset-connection-sites-table.d.ts +23 -0
  436. package/dist/geometry/preset-connection-sites-table.d.ts.map +1 -0
  437. package/dist/geometry/preset-connection-sites-tabs.d.ts +11 -0
  438. package/dist/geometry/preset-connection-sites-tabs.d.ts.map +1 -0
  439. package/dist/geometry/preset-connection-sites-types.d.ts +52 -0
  440. package/dist/geometry/preset-connection-sites-types.d.ts.map +1 -0
  441. package/dist/geometry/preset-geometry-names.d.ts +53 -0
  442. package/dist/geometry/preset-geometry-names.d.ts.map +1 -0
  443. package/dist/geometry/preset-shape-clip-paths.d.ts +13 -0
  444. package/dist/geometry/preset-shape-clip-paths.d.ts.map +1 -0
  445. package/dist/geometry/preset-shape-definitions-action-buttons.d.ts +45 -0
  446. package/dist/geometry/preset-shape-definitions-action-buttons.d.ts.map +1 -0
  447. package/dist/geometry/preset-shape-definitions-arrow-callouts.d.ts +55 -0
  448. package/dist/geometry/preset-shape-definitions-arrow-callouts.d.ts.map +1 -0
  449. package/dist/geometry/preset-shape-definitions-arrows-refined.d.ts +45 -0
  450. package/dist/geometry/preset-shape-definitions-arrows-refined.d.ts.map +1 -0
  451. package/dist/geometry/preset-shape-definitions-arrows.d.ts +52 -0
  452. package/dist/geometry/preset-shape-definitions-arrows.d.ts.map +1 -0
  453. package/dist/geometry/preset-shape-definitions-chart-marks.d.ts +23 -0
  454. package/dist/geometry/preset-shape-definitions-chart-marks.d.ts.map +1 -0
  455. package/dist/geometry/preset-shape-definitions-cloud-callout.d.ts +28 -0
  456. package/dist/geometry/preset-shape-definitions-cloud-callout.d.ts.map +1 -0
  457. package/dist/geometry/preset-shape-definitions-connectors-brackets.d.ts +37 -0
  458. package/dist/geometry/preset-shape-definitions-connectors-brackets.d.ts.map +1 -0
  459. package/dist/geometry/preset-shape-definitions-curved-arrows-connectors.d.ts +43 -0
  460. package/dist/geometry/preset-shape-definitions-curved-arrows-connectors.d.ts.map +1 -0
  461. package/dist/geometry/preset-shape-definitions-curved-arrows-exact.d.ts +30 -0
  462. package/dist/geometry/preset-shape-definitions-curved-arrows-exact.d.ts.map +1 -0
  463. package/dist/geometry/preset-shape-definitions-flowchart.d.ts +29 -0
  464. package/dist/geometry/preset-shape-definitions-flowchart.d.ts.map +1 -0
  465. package/dist/geometry/preset-shape-definitions-gear6.d.ts +38 -0
  466. package/dist/geometry/preset-shape-definitions-gear6.d.ts.map +1 -0
  467. package/dist/geometry/preset-shape-definitions-gear9.d.ts +24 -0
  468. package/dist/geometry/preset-shape-definitions-gear9.d.ts.map +1 -0
  469. package/dist/geometry/preset-shape-definitions-misc.d.ts +38 -0
  470. package/dist/geometry/preset-shape-definitions-misc.d.ts.map +1 -0
  471. package/dist/geometry/preset-shape-definitions-rects-snips.d.ts +28 -0
  472. package/dist/geometry/preset-shape-definitions-rects-snips.d.ts.map +1 -0
  473. package/dist/geometry/preset-shape-definitions-scrolls-accent-callouts.d.ts +45 -0
  474. package/dist/geometry/preset-shape-definitions-scrolls-accent-callouts.d.ts.map +1 -0
  475. package/dist/geometry/preset-shape-definitions-table.d.ts +121 -0
  476. package/dist/geometry/preset-shape-definitions-table.d.ts.map +1 -0
  477. package/dist/geometry/preset-shape-definitions-tabs-decorations.d.ts +48 -0
  478. package/dist/geometry/preset-shape-definitions-tabs-decorations.d.ts.map +1 -0
  479. package/dist/geometry/preset-shape-definitions.d.ts +28 -0
  480. package/dist/geometry/preset-shape-definitions.d.ts.map +1 -0
  481. package/dist/geometry/preset-shape-paths.d.ts +13 -0
  482. package/dist/geometry/preset-shape-paths.d.ts.map +1 -0
  483. package/dist/geometry/preset-shape-types.d.ts +33 -0
  484. package/dist/geometry/preset-shape-types.d.ts.map +1 -0
  485. package/dist/geometry/preset-text-rect-action-buttons.d.ts +13 -0
  486. package/dist/geometry/preset-text-rect-action-buttons.d.ts.map +1 -0
  487. package/dist/geometry/preset-text-rect-arrows.d.ts +3 -0
  488. package/dist/geometry/preset-text-rect-arrows.d.ts.map +1 -0
  489. package/dist/geometry/preset-text-rect-braces.d.ts +3 -0
  490. package/dist/geometry/preset-text-rect-braces.d.ts.map +1 -0
  491. package/dist/geometry/preset-text-rect-callouts.d.ts +3 -0
  492. package/dist/geometry/preset-text-rect-callouts.d.ts.map +1 -0
  493. package/dist/geometry/preset-text-rect-circular-arrows.d.ts +3 -0
  494. package/dist/geometry/preset-text-rect-circular-arrows.d.ts.map +1 -0
  495. package/dist/geometry/preset-text-rect-flowchart.d.ts +3 -0
  496. package/dist/geometry/preset-text-rect-flowchart.d.ts.map +1 -0
  497. package/dist/geometry/preset-text-rect-misc-a.d.ts +3 -0
  498. package/dist/geometry/preset-text-rect-misc-a.d.ts.map +1 -0
  499. package/dist/geometry/preset-text-rect-misc-b.d.ts +3 -0
  500. package/dist/geometry/preset-text-rect-misc-b.d.ts.map +1 -0
  501. package/dist/geometry/preset-text-rect-polygons.d.ts +3 -0
  502. package/dist/geometry/preset-text-rect-polygons.d.ts.map +1 -0
  503. package/dist/geometry/preset-text-rect-quads.d.ts +3 -0
  504. package/dist/geometry/preset-text-rect-quads.d.ts.map +1 -0
  505. package/dist/geometry/preset-text-rect-ribbons.d.ts +3 -0
  506. package/dist/geometry/preset-text-rect-ribbons.d.ts.map +1 -0
  507. package/dist/geometry/preset-text-rect-stars.d.ts +3 -0
  508. package/dist/geometry/preset-text-rect-stars.d.ts.map +1 -0
  509. package/dist/geometry/preset-text-rect-table.d.ts +20 -0
  510. package/dist/geometry/preset-text-rect-table.d.ts.map +1 -0
  511. package/dist/geometry/preset-text-rect-tabs.d.ts +3 -0
  512. package/dist/geometry/preset-text-rect-tabs.d.ts.map +1 -0
  513. package/dist/geometry/preset-text-rect-types.d.ts +46 -0
  514. package/dist/geometry/preset-text-rect-types.d.ts.map +1 -0
  515. package/dist/geometry/shape-boolean-clipping.d.ts +70 -0
  516. package/dist/geometry/shape-boolean-clipping.d.ts.map +1 -0
  517. package/dist/geometry/shape-boolean-ops.d.ts +142 -0
  518. package/dist/geometry/shape-boolean-ops.d.ts.map +1 -0
  519. package/dist/geometry/shape-boolean-svg.d.ts +31 -0
  520. package/dist/geometry/shape-boolean-svg.d.ts.map +1 -0
  521. package/dist/geometry/shape-boolean-types.d.ts +91 -0
  522. package/dist/geometry/shape-boolean-types.d.ts.map +1 -0
  523. package/dist/geometry/shape-boolean-union.d.ts +79 -0
  524. package/dist/geometry/shape-boolean-union.d.ts.map +1 -0
  525. package/dist/geometry/shape-boolean.d.ts +22 -0
  526. package/dist/geometry/shape-boolean.d.ts.map +1 -0
  527. package/dist/geometry/shape-definitions-extended.d.ts +18 -0
  528. package/dist/geometry/shape-definitions-extended.d.ts.map +1 -0
  529. package/dist/geometry/shape-definitions-primary.d.ts +19 -0
  530. package/dist/geometry/shape-definitions-primary.d.ts.map +1 -0
  531. package/dist/index.cjs +16618 -0
  532. package/dist/index.d.ts +7 -0
  533. package/dist/index.d.ts.map +1 -0
  534. package/dist/index.mjs +16611 -0
  535. package/dist/opc/content-types.d.ts +14 -0
  536. package/dist/opc/content-types.d.ts.map +1 -0
  537. package/dist/opc/index.cjs +228 -0
  538. package/dist/opc/index.d.ts +6 -0
  539. package/dist/opc/index.d.ts.map +1 -0
  540. package/dist/opc/index.mjs +212 -0
  541. package/dist/opc/package.d.ts +14 -0
  542. package/dist/opc/package.d.ts.map +1 -0
  543. package/dist/opc/relationship-types.d.ts +34 -0
  544. package/dist/opc/relationship-types.d.ts.map +1 -0
  545. package/dist/opc/relationships.d.ts +29 -0
  546. package/dist/opc/relationships.d.ts.map +1 -0
  547. package/dist/opc/safe-href.d.ts +3 -0
  548. package/dist/opc/safe-href.d.ts.map +1 -0
  549. package/dist/pptx/chunks/index-CojJtI77.d.ts +9627 -0
  550. package/dist/pptx/chunks/index-CojJtI77.d.ts.map +1 -0
  551. package/dist/pptx/chunks/signature-inspection-status-Bh2oap7B.d.ts +220 -0
  552. package/dist/pptx/chunks/signature-inspection-status-Bh2oap7B.d.ts.map +1 -0
  553. package/dist/pptx/chunks/text-operations-IlJiffp7.d.ts +11122 -0
  554. package/dist/pptx/chunks/text-operations-IlJiffp7.d.ts.map +1 -0
  555. package/dist/pptx/cli/index.cjs +138457 -0
  556. package/dist/pptx/cli/index.d.ts +139 -0
  557. package/dist/pptx/cli/index.d.ts.map +1 -0
  558. package/dist/pptx/cli/index.mjs +138424 -0
  559. package/dist/pptx/converter/index.cjs +32084 -0
  560. package/dist/pptx/converter/index.d.ts +2 -0
  561. package/dist/pptx/converter/index.mjs +32060 -0
  562. package/dist/pptx/index.cjs +172307 -0
  563. package/dist/pptx/index.d.ts +9692 -0
  564. package/dist/pptx/index.d.ts.map +1 -0
  565. package/dist/pptx/index.mjs +171623 -0
  566. package/dist/pptx/signature-node/index.cjs +1299 -0
  567. package/dist/pptx/signature-node/index.d.ts +172 -0
  568. package/dist/pptx/signature-node/index.d.ts.map +1 -0
  569. package/dist/pptx/signature-node/index.mjs +1236 -0
  570. package/dist/units/constants.d.ts +13 -0
  571. package/dist/units/constants.d.ts.map +1 -0
  572. package/dist/units/index.cjs +76 -0
  573. package/dist/units/index.d.ts +3 -0
  574. package/dist/units/index.d.ts.map +1 -0
  575. package/dist/units/index.mjs +45 -0
  576. package/dist/units/units.d.ts +52 -0
  577. package/dist/units/units.d.ts.map +1 -0
  578. package/dist/xml/index.cjs +98 -0
  579. package/dist/xml/index.d.ts +3 -0
  580. package/dist/xml/index.d.ts.map +1 -0
  581. package/dist/xml/index.mjs +85 -0
  582. package/dist/xml/namespaces.d.ts +47 -0
  583. package/dist/xml/namespaces.d.ts.map +1 -0
  584. package/dist/xml/xml.d.ts +31 -0
  585. package/dist/xml/xml.d.ts.map +1 -0
  586. package/package.json +192 -0
@@ -0,0 +1,206 @@
1
+ /**
2
+ * Engine-side input contracts. These are intentionally a separate type family
3
+ * from `@christophervr/docx-core`'s `DocumentModel`: several fields here
4
+ * (keepNext, cantSplit, tblHeader, explicit page/column breaks, sections,
5
+ * columns) are not yet represented in the shared model. `adapter.ts` maps
6
+ * what the current model exposes and leaves the rest at their (Word-default)
7
+ * fallback, so the pipeline keeps compiling as other agents add model
8
+ * fields, and nothing here ever reads `(x as any)`.
9
+ */
10
+ import type { SignedTwips, Twips } from '../index.js';
11
+ export interface LayoutRun {
12
+ text: string;
13
+ bold?: boolean;
14
+ italic?: boolean;
15
+ fontFamily?: string;
16
+ /** Points, matching `TextRun.fontSize` in docx-core. */
17
+ fontSizePt?: number;
18
+ textScalePercent?: number;
19
+ ligatures?: import('../ligatures.js').Ligatures;
20
+ characterSpacingPx?: number;
21
+ kerningThresholdPt?: number;
22
+ /** Positive raises the baseline, negative lowers it. */
23
+ positionPx?: number;
24
+ /** A hard page/column break placed immediately after this run's text. */
25
+ breakAfter?: 'page' | 'column';
26
+ /** An inline picture: occupies its size on the line (`text` is empty). */
27
+ object?: LayoutObject;
28
+ /** Generated text (a list label) that is not part of the paragraph's own characters. */
29
+ synthetic?: boolean;
30
+ /** Generated list marker; the remaining characters in this run are its separator. */
31
+ marker?: {
32
+ length: number;
33
+ alignment: 'left' | 'center' | 'right';
34
+ };
35
+ /** Superscript or subscript: drawn smaller and raised or lowered (note marks are superscript). */
36
+ script?: 'super' | 'sub';
37
+ /** `#rrggbb`, display only. */
38
+ color?: string;
39
+ underline?: boolean;
40
+ strike?: boolean;
41
+ }
42
+ /** A picture's package part and size in CSS pixels; the engine never loads its bytes. */
43
+ export interface LayoutObject {
44
+ partName: string;
45
+ contentType: string;
46
+ widthPx: number;
47
+ heightPx: number;
48
+ }
49
+ /** A floating picture anchored to a paragraph (`wp:anchor`), positioned on the page. */
50
+ export interface LayoutFloat extends LayoutObject {
51
+ /** `wp:positionH/@relativeFrom`: page, margin, column, leftMargin, rightMargin, character… */
52
+ relativeFromH?: string;
53
+ alignH?: 'left' | 'center' | 'right' | 'inside' | 'outside';
54
+ offsetXPx?: number;
55
+ /** `wp:positionV/@relativeFrom`: page, margin, paragraph, line, topMargin, bottomMargin… */
56
+ relativeFromV?: string;
57
+ alignV?: 'top' | 'center' | 'bottom' | 'inside' | 'outside';
58
+ offsetYPx?: number;
59
+ behindText?: boolean;
60
+ wrap?: string;
61
+ }
62
+ /** A paragraph tab stop, positioned from the paragraph's text margin (not its indent). */
63
+ export interface LayoutTabStop {
64
+ posPx: number;
65
+ align: 'left' | 'center' | 'right' | 'decimal' | 'bar' | 'clear' | 'start' | 'end' | 'num';
66
+ leader?: 'none' | 'dot' | 'hyphen' | 'underscore' | 'heavy' | 'middleDot';
67
+ }
68
+ /** A paragraph border side: the line and its `w:space` gap to the text. */
69
+ export interface LayoutParagraphBorder extends LayoutBorder {
70
+ spacePx: number;
71
+ }
72
+ export interface LayoutParagraphBorders {
73
+ top?: LayoutParagraphBorder;
74
+ bottom?: LayoutParagraphBorder;
75
+ left?: LayoutParagraphBorder;
76
+ right?: LayoutParagraphBorder;
77
+ }
78
+ /** A footnote's content, laid out in the page's footnote area. */
79
+ export interface LayoutNote {
80
+ id: string;
81
+ paragraphs: LayoutParagraph[];
82
+ }
83
+ export type ParagraphAlign = 'left' | 'center' | 'right' | 'justify';
84
+ export type LineSpacingRule = 'auto' | 'exact' | 'atLeast';
85
+ export interface LayoutParagraph {
86
+ kind: 'paragraph';
87
+ id: string;
88
+ runs: LayoutRun[];
89
+ align?: ParagraphAlign;
90
+ direction?: 'ltr' | 'rtl';
91
+ spacingBeforeTwips?: Twips;
92
+ spacingAfterTwips?: Twips;
93
+ lineSpacingTwips?: SignedTwips;
94
+ lineSpacingRule?: LineSpacingRule;
95
+ indentLeftTwips?: SignedTwips;
96
+ indentRightTwips?: SignedTwips;
97
+ indentStartTwips?: SignedTwips;
98
+ indentEndTwips?: SignedTwips;
99
+ firstLineTwips?: Twips;
100
+ hangingTwips?: Twips;
101
+ /** `w:contextualSpacing`: suppress spacing between paragraphs sharing `styleId`. */
102
+ contextualSpacing?: boolean;
103
+ styleId?: string;
104
+ /** `w:pageBreakBefore`. */
105
+ pageBreakBefore?: boolean;
106
+ /** `w:keepNext`: keep this paragraph on the same page as the block after it. */
107
+ keepNext?: boolean;
108
+ /** `w:keepLines`: never split this paragraph's own lines across pages. */
109
+ keepLines?: boolean;
110
+ /** `w:widowControl`; Word's document default is on. Undefined means on. */
111
+ widowControl?: boolean;
112
+ /** Floating pictures anchored in this paragraph. */
113
+ floats?: LayoutFloat[];
114
+ /** Custom tab stops (`w:tabs`). */
115
+ tabStops?: LayoutTabStop[];
116
+ /** Footnotes referenced here; they go at the bottom of the page where the paragraph starts. */
117
+ footnotes?: LayoutNote[];
118
+ /** Border lines around the paragraph, with each side's gap to the text. */
119
+ borders?: LayoutParagraphBorders;
120
+ /** `#rrggbb` shading behind the paragraph. */
121
+ shading?: string;
122
+ }
123
+ /** A resolved cell border, ready to draw. */
124
+ export interface LayoutBorder {
125
+ widthPx: number;
126
+ style: 'solid' | 'double' | 'dotted' | 'dashed';
127
+ color: string;
128
+ }
129
+ export interface LayoutCellBorders {
130
+ top?: LayoutBorder;
131
+ right?: LayoutBorder;
132
+ bottom?: LayoutBorder;
133
+ left?: LayoutBorder;
134
+ }
135
+ export interface LayoutCellPadding {
136
+ top: number;
137
+ right: number;
138
+ bottom: number;
139
+ left: number;
140
+ }
141
+ export interface LayoutTableCell {
142
+ paragraphs: LayoutParagraph[];
143
+ /** Column width in CSS pixels; undefined cells share the row's remaining width evenly. */
144
+ widthPx?: number;
145
+ /** Left edge from the table's left, from the table grid (merged cells span grid columns). */
146
+ xPx?: number;
147
+ /** Cell margins (`w:tcMar`, else the table default); content is inset by them. */
148
+ padding?: LayoutCellPadding;
149
+ borders?: LayoutCellBorders;
150
+ /** `#rrggbb` shading fill. */
151
+ shading?: string;
152
+ verticalAlign?: 'top' | 'center' | 'bottom';
153
+ }
154
+ export interface LayoutTableRow {
155
+ cells: LayoutTableCell[];
156
+ /** `w:trPr/w:cantSplit`: this row must stay on one page. */
157
+ cantSplit?: boolean;
158
+ /** `w:trHeight`: a minimum (`atLeast`) or fixed (`exact`) row height. */
159
+ heightPx?: number;
160
+ heightRule?: 'atLeast' | 'exact';
161
+ /** `w:trPr/w:tblHeader`: repeat this row at the top of every page the table continues onto. */
162
+ isHeader?: boolean;
163
+ }
164
+ export interface LayoutTable {
165
+ kind: 'table';
166
+ id: string;
167
+ rows: LayoutTableRow[];
168
+ /** Total grid width, for aligning the table in its column. */
169
+ widthPx?: number;
170
+ /** `w:tblInd`: offset from the column's left edge. */
171
+ indentPx?: number;
172
+ /** `w:jc` on the table. */
173
+ alignment?: 'left' | 'center' | 'right';
174
+ }
175
+ export type LayoutBlock = LayoutParagraph | LayoutTable;
176
+ export interface LayoutPageGeometry {
177
+ widthPx: number;
178
+ heightPx: number;
179
+ marginTopPx: number;
180
+ marginRightPx: number;
181
+ marginBottomPx: number;
182
+ marginLeftPx: number;
183
+ }
184
+ export interface LayoutColumns {
185
+ count: number;
186
+ gapPx: number;
187
+ separator?: boolean;
188
+ /** Explicit column widths and the gap after each column (`w:col`). */
189
+ widths?: {
190
+ widthPx: number;
191
+ gapPx: number;
192
+ }[];
193
+ }
194
+ export interface LayoutSection {
195
+ page: LayoutPageGeometry;
196
+ columns?: LayoutColumns;
197
+ blocks: LayoutBlock[];
198
+ /** How this section begins relative to the previous one; the first section is always a fresh page. */
199
+ break?: 'nextPage' | 'continuous' | 'evenPage' | 'oddPage';
200
+ /** `w:vAlign`: where content sits vertically on each page of the section. */
201
+ verticalAlign?: 'top' | 'center' | 'both' | 'bottom';
202
+ }
203
+ export interface LayoutDocumentInput {
204
+ sections: LayoutSection[];
205
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24 @@
1
+ /**
2
+ * Pure helpers for Word's paragraph "keep together" rules. Kept separate
3
+ * from page-flow.ts (which owns page/column bookkeeping) so the rules
4
+ * themselves are trivial to unit test in isolation.
5
+ */
6
+ /**
7
+ * Word's default widow/orphan control: never leave a single line of a
8
+ * paragraph stranded alone at the bottom of a page/column (an "orphan") or
9
+ * alone at the top of the next one (a "widow"). Returns how many of the
10
+ * paragraph's `totalLines` should actually be placed on the current
11
+ * page/column, given that `fittingLines` would otherwise fit by height alone.
12
+ */
13
+ export declare function adjustForWidowOrphan(totalLines: number, fittingLines: number, widowControl: boolean): number;
14
+ /** `w:contextualSpacing`: suppress spacing between adjacent same-style paragraphs. */
15
+ export declare function suppressesSpacing(previous: {
16
+ styleId?: string;
17
+ contextualSpacing?: boolean;
18
+ } | undefined, current: {
19
+ styleId?: string;
20
+ contextualSpacing?: boolean;
21
+ }): boolean;
22
+ /** Word's document default for widow/orphan control is on unless explicitly turned off. */
23
+ export declare function widowControlEnabled(value: boolean | undefined): boolean;
24
+ //# sourceMappingURL=keep-rules.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"keep-rules.d.ts","sourceRoot":"","sources":["../../../src/docx/layout/keep-rules.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH;;;;;;GAMG;AACH,wBAAgB,oBAAoB,CACnC,UAAU,EAAE,MAAM,EAClB,YAAY,EAAE,MAAM,EACpB,YAAY,EAAE,OAAO,GACnB,MAAM,CAOR;AAED,sFAAsF;AACtF,wBAAgB,iBAAiB,CAChC,QAAQ,EAAE;IAAE,OAAO,CAAC,EAAE,MAAM,CAAC;IAAC,iBAAiB,CAAC,EAAE,OAAO,CAAA;CAAE,GAAG,SAAS,EACvE,OAAO,EAAE;IAAE,OAAO,CAAC,EAAE,MAAM,CAAC;IAAC,iBAAiB,CAAC,EAAE,OAAO,CAAA;CAAE,GACxD,OAAO,CAGT;AAED,2FAA2F;AAC3F,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,OAAO,GAAG,SAAS,GAAG,OAAO,CAEvE"}
@@ -0,0 +1,9 @@
1
+ import type { DocumentModel } from '../index.js';
2
+ import type { LayoutDocumentInput } from './input.js';
3
+ import type { LayoutResult } from './result.js';
4
+ import type { TextMeasurer } from './measure.js';
5
+ /** Paginates an engine-native `LayoutDocumentInput` (bypasses the DocumentModel adapter). */
6
+ export declare function layoutDocument(input: LayoutDocumentInput, measurer: TextMeasurer): LayoutResult;
7
+ /** Paginates a `docx-core` `DocumentModel` directly: `adaptDocumentModel` + `layoutDocument`. */
8
+ export declare function layoutDocumentModel(model: DocumentModel, measurer: TextMeasurer): LayoutResult;
9
+ //# sourceMappingURL=layout.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"layout.d.ts","sourceRoot":"","sources":["../../../src/docx/layout/layout.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAKjD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAC;AACtD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAChD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAEjD,6FAA6F;AAC7F,wBAAgB,cAAc,CAAC,KAAK,EAAE,mBAAmB,EAAE,QAAQ,EAAE,YAAY,GAAG,YAAY,CAc/F;AAED,iGAAiG;AACjG,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,aAAa,EAAE,QAAQ,EAAE,YAAY,GAAG,YAAY,CAQ9F"}
@@ -0,0 +1,4 @@
1
+ import type { Ligatures } from '../ligatures.js';
2
+ /** Explicitly sets every optional class so None cancels inherited font features. */
3
+ export declare function ligatureCss(value: Ligatures): string;
4
+ //# sourceMappingURL=ligatures.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ligatures.d.ts","sourceRoot":"","sources":["../../../src/docx/layout/ligatures.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAEjD,oFAAoF;AACpF,wBAAgB,WAAW,CAAC,KAAK,EAAE,SAAS,GAAG,MAAM,CAGpD"}
@@ -0,0 +1,21 @@
1
+ import { type LayoutFontSpec, type TextMeasurer } from './measure.js';
2
+ import type { BreakToken } from './text-breaks.js';
3
+ import type { LayoutParagraph } from './input.js';
4
+ import { type PlacedToken } from './paragraph-tokens.js';
5
+ /** Where a token's box sits relative to the baseline: its extent above and below it. */
6
+ export declare function tokenExtent(token: BreakToken, paragraph: LayoutParagraph, fonts: LayoutFontSpec[], measurer: TextMeasurer): {
7
+ above: number;
8
+ below: number;
9
+ ascent: number;
10
+ descent: number;
11
+ };
12
+ /**
13
+ * A line's height and baseline: the tallest extent above and below the baseline over its tokens
14
+ * (inline pictures sit on the baseline), scaled by the paragraph's line spacing. Word adds extra
15
+ * spacing above the text, so the baseline sits one descent above the line's bottom.
16
+ */
17
+ export declare function lineMetrics(placed: PlacedToken[], fonts: LayoutFontSpec[], paragraph: LayoutParagraph, measurer: TextMeasurer): {
18
+ heightPx: number;
19
+ baselinePx: number;
20
+ };
21
+ //# sourceMappingURL=line-metrics.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"line-metrics.d.ts","sourceRoot":"","sources":["../../../src/docx/layout/line-metrics.ts"],"names":[],"mappings":"AAAA,OAAO,EAAe,KAAK,cAAc,EAAE,KAAK,YAAY,EAAE,MAAM,cAAc,CAAC;AACnF,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AACnD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAElD,OAAO,EAAU,KAAK,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAMjE,wFAAwF;AACxF,wBAAgB,WAAW,CAC1B,KAAK,EAAE,UAAU,EACjB,SAAS,EAAE,eAAe,EAC1B,KAAK,EAAE,cAAc,EAAE,EACvB,QAAQ,EAAE,YAAY,GACpB;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,MAAM,CAAA;CAAE,CAUnE;AAED;;;;GAIG;AACH,wBAAgB,WAAW,CAC1B,MAAM,EAAE,WAAW,EAAE,EACrB,KAAK,EAAE,cAAc,EAAE,EACvB,SAAS,EAAE,eAAe,EAC1B,QAAQ,EAAE,YAAY,GACpB;IAAE,QAAQ,EAAE,MAAM,CAAC;IAAC,UAAU,EAAE,MAAM,CAAA;CAAE,CAuB1C"}
@@ -0,0 +1,34 @@
1
+ /** A font as the measurer needs it; sizes are already in CSS pixels. */
2
+ export interface LayoutFontSpec {
3
+ family: string;
4
+ sizePx: number;
5
+ bold?: boolean;
6
+ italic?: boolean;
7
+ kerning?: 'normal' | 'none';
8
+ ligatures?: import('../ligatures.js').Ligatures;
9
+ smallCaps?: boolean;
10
+ }
11
+ /** Injectable text measurer: a host supplies canvas or font tables, tests use the fake below. The engine never touches the DOM. */
12
+ export interface TextMeasurer {
13
+ /** Glyph width in CSS pixels, including the requested kerning mode, before scale/spacing. */
14
+ widthOf(text: string, font: LayoutFontSpec): number;
15
+ /** Natural single-spaced line height for `font`, in CSS pixels (ascent + descent + leading). */
16
+ lineHeightOf(font: LayoutFontSpec): number;
17
+ /** Height above the baseline within that line height; about 80% when not provided. */
18
+ ascentOf?(font: LayoutFontSpec): number;
19
+ }
20
+ /** A font's ascent and descent (together its single line height), for baseline alignment. */
21
+ export declare function fontMetrics(measurer: TextMeasurer, font: LayoutFontSpec): {
22
+ ascent: number;
23
+ descent: number;
24
+ };
25
+ /**
26
+ * Deterministic measurer for unit tests: fixed per-character advance and line
27
+ * height derived only from font size, so line-breaking and pagination tests
28
+ * never depend on host font metrics or canvas availability.
29
+ */
30
+ export declare function createFakeMeasurer(options?: {
31
+ charWidthFactor?: number;
32
+ lineHeightFactor?: number;
33
+ }): TextMeasurer;
34
+ //# sourceMappingURL=measure.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"measure.d.ts","sourceRoot":"","sources":["../../../src/docx/layout/measure.ts"],"names":[],"mappings":"AAAA,wEAAwE;AACxE,MAAM,WAAW,cAAc;IAC9B,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,OAAO,CAAC,EAAE,QAAQ,GAAG,MAAM,CAAC;IAC5B,SAAS,CAAC,EAAE,OAAO,iBAAiB,EAAE,SAAS,CAAC;IAChD,SAAS,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,mIAAmI;AACnI,MAAM,WAAW,YAAY;IAC5B,6FAA6F;IAC7F,OAAO,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,cAAc,GAAG,MAAM,CAAC;IACpD,gGAAgG;IAChG,YAAY,CAAC,IAAI,EAAE,cAAc,GAAG,MAAM,CAAC;IAC3C,sFAAsF;IACtF,QAAQ,CAAC,CAAC,IAAI,EAAE,cAAc,GAAG,MAAM,CAAC;CACxC;AAED,6FAA6F;AAC7F,wBAAgB,WAAW,CAC1B,QAAQ,EAAE,YAAY,EACtB,IAAI,EAAE,cAAc,GAClB;IAAE,MAAM,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,MAAM,CAAA;CAAE,CAIrC;AAED;;;;GAIG;AACH,wBAAgB,kBAAkB,CACjC,OAAO,GAAE;IAAE,eAAe,CAAC,EAAE,MAAM,CAAC;IAAC,gBAAgB,CAAC,EAAE,MAAM,CAAA;CAAO,GACnE,YAAY,CAgBd"}
@@ -0,0 +1,45 @@
1
+ import type { LayoutColumns, LayoutPageGeometry } from './input.js';
2
+ import type { LayoutBlockBox, LayoutColumnBox, LayoutFootnoteBox, LayoutPageBox } from './result.js';
3
+ /** Space for the short rule above a page's footnotes. */
4
+ export declare const FOOTNOTE_SEPARATOR_PX = 12;
5
+ /**
6
+ * Mutable fill-position bookkeeping for one section: which page/column is
7
+ * currently being filled and how much vertical space remains in it. A new
8
+ * `PageCursor` is created per section (see `page-flow.ts`'s approximation
9
+ * that a continuous section break still starts a fresh page).
10
+ */
11
+ export declare class PageCursor {
12
+ readonly pages: LayoutPageBox[];
13
+ private readonly equalColumnWidthPx;
14
+ readonly columnHeightPx: number;
15
+ private geometry;
16
+ private columns;
17
+ private columnIndex;
18
+ private yPx;
19
+ private readonly sectionIndex;
20
+ private pageInSection;
21
+ /** Height taken by footnotes (and their separator) at the bottom of the current page. */
22
+ private reservedPx;
23
+ /** Footnotes of the paragraph about to be placed; they join the page its first box lands on. */
24
+ private pending;
25
+ constructor(pages: LayoutPageBox[], geometry: LayoutPageGeometry, columns: LayoutColumns, sectionIndex?: number);
26
+ private pushPage;
27
+ get page(): LayoutPageBox;
28
+ get column(): LayoutColumnBox;
29
+ get columnWidthPx(): number;
30
+ get y(): number;
31
+ get atColumnTop(): boolean;
32
+ remainingHeightPx(): number;
33
+ private pendingHeightPx;
34
+ /**
35
+ * Reserves room for a paragraph's footnotes on whichever page its first box is placed, so the
36
+ * notes print on the same page as their reference, as Word does.
37
+ */
38
+ holdFootnotes(blockId: string, notes: LayoutFootnoteBox[]): void;
39
+ newPage(): void;
40
+ /** Advances to the next column, or a new page when the section has no more columns. */
41
+ newColumn(): void;
42
+ /** Places a box at the current fill position (sets its `yPx`) and advances by `advancePx`. */
43
+ place(box: LayoutBlockBox, advancePx: number): void;
44
+ }
45
+ //# sourceMappingURL=page-cursor.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"page-cursor.d.ts","sourceRoot":"","sources":["../../../src/docx/layout/page-cursor.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAC;AAEpE,OAAO,KAAK,EACX,cAAc,EACd,eAAe,EACf,iBAAiB,EACjB,aAAa,EACb,MAAM,aAAa,CAAC;AAErB,yDAAyD;AACzD,eAAO,MAAM,qBAAqB,KAAK,CAAC;AAExC;;;;;GAKG;AACH,qBAAa,UAAU;IACtB,QAAQ,CAAC,KAAK,EAAE,aAAa,EAAE,CAAC;IAChC,OAAO,CAAC,QAAQ,CAAC,kBAAkB,CAAS;IAC5C,QAAQ,CAAC,cAAc,EAAE,MAAM,CAAC;IAChC,OAAO,CAAC,QAAQ,CAAqB;IACrC,OAAO,CAAC,OAAO,CAAgB;IAC/B,OAAO,CAAC,WAAW,CAAK;IACxB,OAAO,CAAC,GAAG,CAAK;IAChB,OAAO,CAAC,QAAQ,CAAC,YAAY,CAAS;IACtC,OAAO,CAAC,aAAa,CAAK;IAC1B,yFAAyF;IACzF,OAAO,CAAC,UAAU,CAAK;IACvB,gGAAgG;IAChG,OAAO,CAAC,OAAO,CAAgF;gBAG9F,KAAK,EAAE,aAAa,EAAE,EACtB,QAAQ,EAAE,kBAAkB,EAC5B,OAAO,EAAE,aAAa,EACtB,YAAY,SAAI;IAkBjB,OAAO,CAAC,QAAQ;IA+BhB,IAAI,IAAI,IAAI,aAAa,CAExB;IACD,IAAI,MAAM,IAAI,eAAe,CAE5B;IACD,IAAI,aAAa,IAAI,MAAM,CAE1B;IACD,IAAI,CAAC,IAAI,MAAM,CAEd;IACD,IAAI,WAAW,IAAI,OAAO,CAEzB;IACD,iBAAiB,IAAI,MAAM;IAI3B,OAAO,CAAC,eAAe;IAKvB;;;OAGG;IACH,aAAa,CAAC,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,iBAAiB,EAAE,GAAG,IAAI;IAKhE,OAAO,IAAI,IAAI;IAGf,uFAAuF;IACvF,SAAS,IAAI,IAAI;IASjB,8FAA8F;IAC9F,KAAK,CAAC,GAAG,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,GAAG,IAAI;CAenD"}
@@ -0,0 +1,7 @@
1
+ import type { TextMeasurer } from './measure.js';
2
+ import type { LayoutDocumentInput } from './input.js';
3
+ import type { LayoutResult } from './result.js';
4
+ import { type Exclusion } from './wrap.js';
5
+ /** Paginates an already-adapted engine input. See `layout.ts` for the DocumentModel-facing entry point. */
6
+ export declare function layoutSections(input: LayoutDocumentInput, measurer: TextMeasurer, exclusions?: ReadonlyMap<number, Exclusion[]>): LayoutResult;
7
+ //# sourceMappingURL=page-flow.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"page-flow.d.ts","sourceRoot":"","sources":["../../../src/docx/layout/page-flow.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AACjD,OAAO,KAAK,EAAe,mBAAmB,EAAiB,MAAM,YAAY,CAAC;AAClF,OAAO,KAAK,EAAiB,YAAY,EAAE,MAAM,aAAa,CAAC;AAC/D,OAAO,EAAgB,KAAK,SAAS,EAAE,MAAM,WAAW,CAAC;AAoNzD,2GAA2G;AAC3G,wBAAgB,cAAc,CAC7B,KAAK,EAAE,mBAAmB,EAC1B,QAAQ,EAAE,YAAY,EACtB,UAAU,CAAC,EAAE,WAAW,CAAC,MAAM,EAAE,SAAS,EAAE,CAAC,GAC3C,YAAY,CAWd"}
@@ -0,0 +1,6 @@
1
+ import type { LayoutFragment } from './result.js';
2
+ import type { LayoutParagraph } from './input.js';
3
+ import type { PlacedToken } from './paragraph-tokens.js';
4
+ export declare function buildFragments(tokensOnLine: PlacedToken[], paragraph: LayoutParagraph): LayoutFragment[];
5
+ export declare function alignFragments(fragments: LayoutFragment[], width: number, isLastLine: boolean, effectiveAlign: 'left' | 'right' | 'center' | 'justify'): LayoutFragment[];
6
+ //# sourceMappingURL=paragraph-fragments.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"paragraph-fragments.d.ts","sourceRoot":"","sources":["../../../src/docx/layout/paragraph-fragments.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAClD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAClD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAEzD,wBAAgB,cAAc,CAC7B,YAAY,EAAE,WAAW,EAAE,EAC3B,SAAS,EAAE,eAAe,GACxB,cAAc,EAAE,CA+BlB;AAmBD,wBAAgB,cAAc,CAC7B,SAAS,EAAE,cAAc,EAAE,EAC3B,KAAK,EAAE,MAAM,EACb,UAAU,EAAE,OAAO,EACnB,cAAc,EAAE,MAAM,GAAG,OAAO,GAAG,QAAQ,GAAG,SAAS,GACrD,cAAc,EAAE,CAWlB"}
@@ -0,0 +1,37 @@
1
+ import type { TextMeasurer } from './measure.js';
2
+ import type { LayoutLine, LayoutParagraphFrame } from './result.js';
3
+ import type { LayoutParagraph } from './input.js';
4
+ export interface ParagraphLayoutResult {
5
+ /** Lines with `yPx` relative to the paragraph box's own top (0 for the first line). */
6
+ lines: LayoutLine[];
7
+ spacingBeforePx: number;
8
+ spacingAfterPx: number;
9
+ contentHeightPx: number;
10
+ /** Indices (into `lines`) after which an explicit page break token was consumed. */
11
+ pageBreakAfterLine: Set<number>;
12
+ /** Indices after which an explicit column break token was consumed. */
13
+ columnBreakAfterLine: Set<number>;
14
+ /** Space above the first line and below the last taken by top and bottom borders. */
15
+ insetTopPx: number;
16
+ insetBottomPx: number;
17
+ frame?: LayoutParagraphFrame;
18
+ }
19
+ /**
20
+ * Lays out one paragraph's lines within `contentWidthPx` (the column/table
21
+ * cell width available to the paragraph, before indents are subtracted).
22
+ * Page and column breaks are reported back as line indices; the page-flow
23
+ * stage decides what to do with them (start a new page/column) since only it
24
+ * knows the current page/column state.
25
+ */
26
+ /**
27
+ * Space taken from one line by wrapped floating pictures: insets from the line's left and right
28
+ * (beyond the paragraph indents) and a gap to skip first (text below a picture). `yPx` is the
29
+ * line's top relative to the paragraph's first line.
30
+ */
31
+ export type LineBoxFn = (yPx: number, heightPx: number) => {
32
+ leftInsetPx: number;
33
+ rightInsetPx: number;
34
+ gapBeforePx: number;
35
+ };
36
+ export declare function layoutParagraph(paragraph: LayoutParagraph, contentWidthPx: number, measurer: TextMeasurer, note: (message: string) => void, lineBox?: LineBoxFn, startToken?: number): ParagraphLayoutResult;
37
+ //# sourceMappingURL=paragraph-layout.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"paragraph-layout.d.ts","sourceRoot":"","sources":["../../../src/docx/layout/paragraph-layout.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAEjD,OAAO,KAAK,EAAkB,UAAU,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAC;AACpF,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAclD,MAAM,WAAW,qBAAqB;IACrC,uFAAuF;IACvF,KAAK,EAAE,UAAU,EAAE,CAAC;IACpB,eAAe,EAAE,MAAM,CAAC;IACxB,cAAc,EAAE,MAAM,CAAC;IACvB,eAAe,EAAE,MAAM,CAAC;IACxB,oFAAoF;IACpF,kBAAkB,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC;IAChC,uEAAuE;IACvE,oBAAoB,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC;IAClC,qFAAqF;IACrF,UAAU,EAAE,MAAM,CAAC;IACnB,aAAa,EAAE,MAAM,CAAC;IACtB,KAAK,CAAC,EAAE,oBAAoB,CAAC;CAC7B;AAED;;;;;;GAMG;AACH;;;;GAIG;AACH,MAAM,MAAM,SAAS,GAAG,CACvB,GAAG,EAAE,MAAM,EACX,QAAQ,EAAE,MAAM,KACZ;IAAE,WAAW,EAAE,MAAM,CAAC;IAAC,YAAY,EAAE,MAAM,CAAC;IAAC,WAAW,EAAE,MAAM,CAAA;CAAE,CAAC;AAExE,wBAAgB,eAAe,CAC9B,SAAS,EAAE,eAAe,EAC1B,cAAc,EAAE,MAAM,EACtB,QAAQ,EAAE,YAAY,EACtB,IAAI,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,EAC/B,OAAO,CAAC,EAAE,SAAS,EACnB,UAAU,SAAI,GACZ,qBAAqB,CAmPvB"}
@@ -0,0 +1,27 @@
1
+ import type { LayoutFontSpec, TextMeasurer } from './measure.js';
2
+ import type { LayoutFragment } from './result.js';
3
+ import { type BreakToken } from './text-breaks.js';
4
+ import type { LayoutParagraph, LayoutRun } from './input.js';
5
+ /** Word draws superscript and subscript text at about two thirds of the run's size. */
6
+ export declare const SCRIPT_SCALE = 0.65;
7
+ export declare function fontOf(run: LayoutRun): LayoutFontSpec;
8
+ /** Word applies additional character spacing after scaling the glyph advances. */
9
+ export declare function runTextWidth(text: string, run: LayoutRun, measurer: TextMeasurer): number;
10
+ export declare function resolveIndents(paragraph: LayoutParagraph): {
11
+ leftPx: number;
12
+ rightPx: number;
13
+ firstLineExtraPx: number;
14
+ };
15
+ export declare function tokenizeParagraph(paragraph: LayoutParagraph): {
16
+ tokens: BreakToken[];
17
+ runOffsets: number[];
18
+ };
19
+ export interface PlacedToken {
20
+ token: BreakToken;
21
+ widthPx: number;
22
+ /** Glyph position and consumed advance differ for centered/right-aligned list markers. */
23
+ xOffsetPx?: number;
24
+ advancePx?: number;
25
+ leader?: LayoutFragment['leader'];
26
+ }
27
+ //# sourceMappingURL=paragraph-tokens.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"paragraph-tokens.d.ts","sourceRoot":"","sources":["../../../src/docx/layout/paragraph-tokens.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AACjE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAClD,OAAO,EAAkC,KAAK,UAAU,EAAE,MAAM,kBAAkB,CAAC;AACnF,OAAO,KAAK,EAAE,eAAe,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAG7D,uFAAuF;AACvF,eAAO,MAAM,YAAY,OAAO,CAAC;AAEjC,wBAAgB,MAAM,CAAC,GAAG,EAAE,SAAS,GAAG,cAAc,CAerD;AAGD,kFAAkF;AAClF,wBAAgB,YAAY,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,EAAE,SAAS,EAAE,QAAQ,EAAE,YAAY,GAAG,MAAM,CAMzF;AAED,wBAAgB,cAAc,CAAC,SAAS,EAAE,eAAe,GAAG;IAC3D,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,CAAC;IAChB,gBAAgB,EAAE,MAAM,CAAC;CACzB,CAqBA;AAED,wBAAgB,iBAAiB,CAAC,SAAS,EAAE,eAAe,GAAG;IAC9D,MAAM,EAAE,UAAU,EAAE,CAAC;IACrB,UAAU,EAAE,MAAM,EAAE,CAAC;CACrB,CAyBA;AAED,MAAM,WAAW,WAAW;IAC3B,KAAK,EAAE,UAAU,CAAC;IAClB,OAAO,EAAE,MAAM,CAAC;IAChB,0FAA0F;IAC1F,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,MAAM,CAAC,EAAE,cAAc,CAAC,QAAQ,CAAC,CAAC;CAClC"}
@@ -0,0 +1,139 @@
1
+ /** One laid-out fragment of text within a line, styled by a single run. */
2
+ export interface LayoutFragment {
3
+ text: string;
4
+ xPx: number;
5
+ widthPx: number;
6
+ runIndex: number;
7
+ bold?: boolean;
8
+ italic?: boolean;
9
+ fontFamily?: string;
10
+ fontSizePt?: number;
11
+ textScalePercent?: number;
12
+ ligatures?: import('../ligatures.js').Ligatures;
13
+ characterSpacingPx?: number;
14
+ kerningThresholdPt?: number;
15
+ /** An inline picture drawn in this fragment's box, bottom-aligned on the line. */
16
+ object?: import('./input.js').LayoutObject;
17
+ color?: string;
18
+ underline?: boolean;
19
+ strike?: boolean;
20
+ script?: 'super' | 'sub';
21
+ /** Top of the fragment's text box within the line, placing its baseline on the line's. */
22
+ topPx?: number;
23
+ /** Height of the fragment's font box (ascent + descent), used as its CSS line height. */
24
+ boxHeightPx?: number;
25
+ /** A tab's leader fill (dots, hyphens, a line…) drawn across its width. */
26
+ leader?: 'dot' | 'hyphen' | 'underscore' | 'heavy' | 'middleDot';
27
+ }
28
+ /** One visual line of a paragraph, positioned within its block's box. */
29
+ export interface LayoutLine {
30
+ yPx: number;
31
+ heightPx: number;
32
+ fragments: LayoutFragment[];
33
+ /** Distance from the line's top to its baseline. */
34
+ baselinePx?: number;
35
+ /** Space skipped above this line to clear a picture wrapped top-and-bottom; `yPx` is below it. */
36
+ gapBeforePx?: number;
37
+ /** Character range within the paragraph's concatenated run text, for hit-testing. */
38
+ sourceStart: number;
39
+ sourceEnd: number;
40
+ /** First unconsumed paragraph token, for reflow into a column of a different width. */
41
+ nextToken?: number;
42
+ /** First token on this line, for reflowing a split table-cell paragraph. */
43
+ firstToken?: number;
44
+ }
45
+ export interface LayoutParagraphBox {
46
+ kind: 'paragraph';
47
+ blockId: string;
48
+ yPx: number;
49
+ heightPx: number;
50
+ lines: LayoutLine[];
51
+ /** Paragraph borders and shading, spanning the box's height at these horizontal bounds. */
52
+ frame?: LayoutParagraphFrame;
53
+ }
54
+ export interface LayoutParagraphFrame {
55
+ leftPx: number;
56
+ widthPx: number;
57
+ borders?: import('./input.js').LayoutParagraphBorders;
58
+ shading?: string;
59
+ }
60
+ /** Where a cell sits in its row and how it is drawn (borders, shading, padding). */
61
+ export interface LayoutCellGeometry {
62
+ xPx: number;
63
+ widthPx: number;
64
+ paddingLeftPx: number;
65
+ paddingRightPx: number;
66
+ borders?: import('./input.js').LayoutCellBorders;
67
+ shading?: string;
68
+ verticalAlign?: 'top' | 'center' | 'bottom';
69
+ /** Height of the cell's content (with its top and bottom padding), for vertical alignment. */
70
+ contentHeightPx: number;
71
+ }
72
+ export interface LayoutTableRowBox {
73
+ yPx: number;
74
+ heightPx: number;
75
+ /** True when this row is a repeated header copy rather than the row's first placement. */
76
+ repeated: boolean;
77
+ cells: LayoutParagraphBox[][];
78
+ /** Per-cell position and appearance, parallel to `cells`. */
79
+ geometry?: LayoutCellGeometry[];
80
+ }
81
+ export interface LayoutTableBox {
82
+ kind: 'table';
83
+ blockId: string;
84
+ /** Offset from the column's left edge (table indent or alignment). */
85
+ xPx?: number;
86
+ yPx: number;
87
+ heightPx: number;
88
+ rows: LayoutTableRowBox[];
89
+ }
90
+ export type LayoutBlockBox = LayoutParagraphBox | LayoutTableBox;
91
+ export interface LayoutColumnBox {
92
+ xPx: number;
93
+ widthPx: number;
94
+ blocks: LayoutBlockBox[];
95
+ }
96
+ export interface LayoutPageBox {
97
+ index: number;
98
+ /** Index into the input sections this page belongs to. */
99
+ sectionIndex: number;
100
+ /** Zero-based position of this page within its section (for first-page headers and numbering). */
101
+ pageInSection: number;
102
+ widthPx: number;
103
+ heightPx: number;
104
+ marginTopPx: number;
105
+ marginRightPx: number;
106
+ marginBottomPx: number;
107
+ marginLeftPx: number;
108
+ columns: LayoutColumnBox[];
109
+ columnSeparator?: boolean;
110
+ /** Floating pictures on this page, in page coordinates (CSS pixels from the sheet's top-left). */
111
+ floats?: LayoutFloatBox[];
112
+ /** Footnotes at the bottom of the page, in reference order; `yPx` values are within the area. */
113
+ footnotes?: LayoutFootnoteBox[];
114
+ }
115
+ export interface LayoutFootnoteBox {
116
+ id: string;
117
+ /** Top of this note within the footnote area (below the separator). */
118
+ yPx: number;
119
+ heightPx: number;
120
+ paragraphs: LayoutParagraphBox[];
121
+ }
122
+ export interface LayoutFloatBox {
123
+ blockId: string;
124
+ xPx: number;
125
+ yPx: number;
126
+ widthPx: number;
127
+ heightPx: number;
128
+ partName: string;
129
+ contentType: string;
130
+ behindText: boolean;
131
+ /** `wp:wrapSquare`, `wrapTopAndBottom`… (`none` floats over or behind the text). */
132
+ wrap?: string;
133
+ }
134
+ export interface LayoutResult {
135
+ pages: LayoutPageBox[];
136
+ /** Honest, human-readable notes on approximations relative to Word (see docs/parity-roadmap.md §3). */
137
+ approximations: string[];
138
+ }
139
+ //# sourceMappingURL=result.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"result.d.ts","sourceRoot":"","sources":["../../../src/docx/layout/result.ts"],"names":[],"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