postext 1.4.2 → 1.5.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 (1072) hide show
  1. package/README.md +76 -202
  2. package/dist/__tests__/breakOpportunities.test.d.ts +2 -0
  3. package/dist/__tests__/breakOpportunities.test.d.ts.map +1 -0
  4. package/dist/__tests__/breakOpportunities.test.js +204 -0
  5. package/dist/__tests__/breakOpportunities.test.js.map +1 -0
  6. package/dist/__tests__/bundle.test.js +399 -1
  7. package/dist/__tests__/bundle.test.js.map +1 -1
  8. package/dist/__tests__/bundleLocaleAndBytes.test.d.ts +2 -0
  9. package/dist/__tests__/bundleLocaleAndBytes.test.d.ts.map +1 -0
  10. package/dist/__tests__/bundleLocaleAndBytes.test.js +177 -0
  11. package/dist/__tests__/bundleLocaleAndBytes.test.js.map +1 -0
  12. package/dist/__tests__/colorAlpha.test.d.ts +2 -0
  13. package/dist/__tests__/colorAlpha.test.d.ts.map +1 -0
  14. package/dist/__tests__/colorAlpha.test.js +87 -0
  15. package/dist/__tests__/colorAlpha.test.js.map +1 -0
  16. package/dist/__tests__/columnBalancing.test.js +88 -0
  17. package/dist/__tests__/columnBalancing.test.js.map +1 -1
  18. package/dist/__tests__/columnClip.test.js +20 -0
  19. package/dist/__tests__/columnClip.test.js.map +1 -1
  20. package/dist/__tests__/columnRuleBands.test.d.ts +2 -0
  21. package/dist/__tests__/columnRuleBands.test.d.ts.map +1 -0
  22. package/dist/__tests__/columnRuleBands.test.js +146 -0
  23. package/dist/__tests__/columnRuleBands.test.js.map +1 -0
  24. package/dist/__tests__/contentWarnings.test.d.ts +2 -0
  25. package/dist/__tests__/contentWarnings.test.d.ts.map +1 -0
  26. package/dist/__tests__/contentWarnings.test.js +219 -0
  27. package/dist/__tests__/contentWarnings.test.js.map +1 -0
  28. package/dist/__tests__/continuation.test.js +2 -1
  29. package/dist/__tests__/continuation.test.js.map +1 -1
  30. package/dist/__tests__/createLayout.test.js +18 -1
  31. package/dist/__tests__/createLayout.test.js.map +1 -1
  32. package/dist/__tests__/cropMarks.test.d.ts +2 -0
  33. package/dist/__tests__/cropMarks.test.d.ts.map +1 -0
  34. package/dist/__tests__/cropMarks.test.js +138 -0
  35. package/dist/__tests__/cropMarks.test.js.map +1 -0
  36. package/dist/__tests__/defaults/calloutStyles.test.js +30 -0
  37. package/dist/__tests__/defaults/calloutStyles.test.js.map +1 -1
  38. package/dist/__tests__/defaults/headingsBreakBefore.test.d.ts +2 -0
  39. package/dist/__tests__/defaults/headingsBreakBefore.test.d.ts.map +1 -0
  40. package/dist/__tests__/defaults/headingsBreakBefore.test.js +78 -0
  41. package/dist/__tests__/defaults/headingsBreakBefore.test.js.map +1 -0
  42. package/dist/__tests__/defaults/paragraphStyles.test.js +22 -0
  43. package/dist/__tests__/defaults/paragraphStyles.test.js.map +1 -1
  44. package/dist/__tests__/design/bleedClip.test.d.ts +2 -0
  45. package/dist/__tests__/design/bleedClip.test.d.ts.map +1 -0
  46. package/dist/__tests__/design/bleedClip.test.js +91 -0
  47. package/dist/__tests__/design/bleedClip.test.js.map +1 -0
  48. package/dist/__tests__/design/boxBorderInside.test.d.ts +2 -0
  49. package/dist/__tests__/design/boxBorderInside.test.d.ts.map +1 -0
  50. package/dist/__tests__/design/boxBorderInside.test.js +102 -0
  51. package/dist/__tests__/design/boxBorderInside.test.js.map +1 -0
  52. package/dist/__tests__/design/designLineHeight.test.d.ts +2 -0
  53. package/dist/__tests__/design/designLineHeight.test.d.ts.map +1 -0
  54. package/dist/__tests__/design/designLineHeight.test.js +108 -0
  55. package/dist/__tests__/design/designLineHeight.test.js.map +1 -0
  56. package/dist/__tests__/design/designText.test.d.ts +2 -0
  57. package/dist/__tests__/design/designText.test.d.ts.map +1 -0
  58. package/dist/__tests__/design/designText.test.js +331 -0
  59. package/dist/__tests__/design/designText.test.js.map +1 -0
  60. package/dist/__tests__/design/designTextJustify.test.d.ts +2 -0
  61. package/dist/__tests__/design/designTextJustify.test.d.ts.map +1 -0
  62. package/dist/__tests__/design/designTextJustify.test.js +119 -0
  63. package/dist/__tests__/design/designTextJustify.test.js.map +1 -0
  64. package/dist/__tests__/design/designTextNegativeTracking.test.d.ts +2 -0
  65. package/dist/__tests__/design/designTextNegativeTracking.test.d.ts.map +1 -0
  66. package/dist/__tests__/design/designTextNegativeTracking.test.js +95 -0
  67. package/dist/__tests__/design/designTextNegativeTracking.test.js.map +1 -0
  68. package/dist/__tests__/design/designTextRender.test.d.ts +2 -0
  69. package/dist/__tests__/design/designTextRender.test.d.ts.map +1 -0
  70. package/dist/__tests__/design/designTextRender.test.js +106 -0
  71. package/dist/__tests__/design/designTextRender.test.js.map +1 -0
  72. package/dist/__tests__/design/dropCap.test.d.ts +2 -0
  73. package/dist/__tests__/design/dropCap.test.d.ts.map +1 -0
  74. package/dist/__tests__/design/dropCap.test.js +205 -0
  75. package/dist/__tests__/design/dropCap.test.js.map +1 -0
  76. package/dist/__tests__/design/ellipsis.test.d.ts +2 -0
  77. package/dist/__tests__/design/ellipsis.test.d.ts.map +1 -0
  78. package/dist/__tests__/design/ellipsis.test.js +113 -0
  79. package/dist/__tests__/design/ellipsis.test.js.map +1 -0
  80. package/dist/__tests__/design/headingDesignClip.test.d.ts +2 -0
  81. package/dist/__tests__/design/headingDesignClip.test.d.ts.map +1 -0
  82. package/dist/__tests__/design/headingDesignClip.test.js +60 -0
  83. package/dist/__tests__/design/headingDesignClip.test.js.map +1 -0
  84. package/dist/__tests__/design/headingDesignSideChannel.test.d.ts +2 -0
  85. package/dist/__tests__/design/headingDesignSideChannel.test.d.ts.map +1 -0
  86. package/dist/__tests__/design/headingDesignSideChannel.test.js +187 -0
  87. package/dist/__tests__/design/headingDesignSideChannel.test.js.map +1 -0
  88. package/dist/__tests__/design/inColumnTitleBreak.test.d.ts +2 -0
  89. package/dist/__tests__/design/inColumnTitleBreak.test.d.ts.map +1 -0
  90. package/dist/__tests__/design/inColumnTitleBreak.test.js +60 -0
  91. package/dist/__tests__/design/inColumnTitleBreak.test.js.map +1 -0
  92. package/dist/__tests__/design/openerBottomAnchor.test.d.ts +2 -0
  93. package/dist/__tests__/design/openerBottomAnchor.test.d.ts.map +1 -0
  94. package/dist/__tests__/design/openerBottomAnchor.test.js +106 -0
  95. package/dist/__tests__/design/openerBottomAnchor.test.js.map +1 -0
  96. package/dist/__tests__/design/openerChapterNumber.test.d.ts +2 -0
  97. package/dist/__tests__/design/openerChapterNumber.test.d.ts.map +1 -0
  98. package/dist/__tests__/design/openerChapterNumber.test.js +163 -0
  99. package/dist/__tests__/design/openerChapterNumber.test.js.map +1 -0
  100. package/dist/__tests__/design/openerImageReserve.test.d.ts +2 -0
  101. package/dist/__tests__/design/openerImageReserve.test.d.ts.map +1 -0
  102. package/dist/__tests__/design/openerImageReserve.test.js +83 -0
  103. package/dist/__tests__/design/openerImageReserve.test.js.map +1 -0
  104. package/dist/__tests__/design/openerReserve.test.d.ts +2 -0
  105. package/dist/__tests__/design/openerReserve.test.d.ts.map +1 -0
  106. package/dist/__tests__/design/openerReserve.test.js +147 -0
  107. package/dist/__tests__/design/openerReserve.test.js.map +1 -0
  108. package/dist/__tests__/design/ruleDefaults.test.d.ts +2 -0
  109. package/dist/__tests__/design/ruleDefaults.test.d.ts.map +1 -0
  110. package/dist/__tests__/design/ruleDefaults.test.js +59 -0
  111. package/dist/__tests__/design/ruleDefaults.test.js.map +1 -0
  112. package/dist/__tests__/design/runningHeads.test.js +4 -2
  113. package/dist/__tests__/design/runningHeads.test.js.map +1 -1
  114. package/dist/__tests__/design/titleTextWrapped.test.d.ts +2 -0
  115. package/dist/__tests__/design/titleTextWrapped.test.d.ts.map +1 -0
  116. package/dist/__tests__/design/titleTextWrapped.test.js +258 -0
  117. package/dist/__tests__/design/titleTextWrapped.test.js.map +1 -0
  118. package/dist/__tests__/design/trackingAlignment.test.d.ts +2 -0
  119. package/dist/__tests__/design/trackingAlignment.test.d.ts.map +1 -0
  120. package/dist/__tests__/design/trackingAlignment.test.js +101 -0
  121. package/dist/__tests__/design/trackingAlignment.test.js.map +1 -0
  122. package/dist/__tests__/design/verticalAlignOverflow.test.d.ts +2 -0
  123. package/dist/__tests__/design/verticalAlignOverflow.test.d.ts.map +1 -0
  124. package/dist/__tests__/design/verticalAlignOverflow.test.js +68 -0
  125. package/dist/__tests__/design/verticalAlignOverflow.test.js.map +1 -0
  126. package/dist/__tests__/exports.test.js +24 -0
  127. package/dist/__tests__/exports.test.js.map +1 -1
  128. package/dist/__tests__/fontStack.test.d.ts +2 -0
  129. package/dist/__tests__/fontStack.test.d.ts.map +1 -0
  130. package/dist/__tests__/fontStack.test.js +100 -0
  131. package/dist/__tests__/fontStack.test.js.map +1 -0
  132. package/dist/__tests__/frontmatterValues.test.d.ts +2 -0
  133. package/dist/__tests__/frontmatterValues.test.d.ts.map +1 -0
  134. package/dist/__tests__/frontmatterValues.test.js +119 -0
  135. package/dist/__tests__/frontmatterValues.test.js.map +1 -0
  136. package/dist/__tests__/gradedRunt.test.d.ts +2 -0
  137. package/dist/__tests__/gradedRunt.test.d.ts.map +1 -0
  138. package/dist/__tests__/gradedRunt.test.js +66 -0
  139. package/dist/__tests__/gradedRunt.test.js.map +1 -0
  140. package/dist/__tests__/headingAlign.test.d.ts +2 -0
  141. package/dist/__tests__/headingAlign.test.d.ts.map +1 -0
  142. package/dist/__tests__/headingAlign.test.js +92 -0
  143. package/dist/__tests__/headingAlign.test.js.map +1 -0
  144. package/dist/__tests__/headingInlineMarks.test.d.ts +2 -0
  145. package/dist/__tests__/headingInlineMarks.test.d.ts.map +1 -0
  146. package/dist/__tests__/headingInlineMarks.test.js +126 -0
  147. package/dist/__tests__/headingInlineMarks.test.js.map +1 -0
  148. package/dist/__tests__/headingLetterSpacing.test.d.ts +2 -0
  149. package/dist/__tests__/headingLetterSpacing.test.d.ts.map +1 -0
  150. package/dist/__tests__/headingLetterSpacing.test.js +135 -0
  151. package/dist/__tests__/headingLetterSpacing.test.js.map +1 -0
  152. package/dist/__tests__/headingNumberPlaceholders.test.d.ts +2 -0
  153. package/dist/__tests__/headingNumberPlaceholders.test.d.ts.map +1 -0
  154. package/dist/__tests__/headingNumberPlaceholders.test.js +104 -0
  155. package/dist/__tests__/headingNumberPlaceholders.test.js.map +1 -0
  156. package/dist/__tests__/headingNumberingStyles.test.d.ts +2 -0
  157. package/dist/__tests__/headingNumberingStyles.test.d.ts.map +1 -0
  158. package/dist/__tests__/headingNumberingStyles.test.js +151 -0
  159. package/dist/__tests__/headingNumberingStyles.test.js.map +1 -0
  160. package/dist/__tests__/headingSourceTitle.test.d.ts +2 -0
  161. package/dist/__tests__/headingSourceTitle.test.d.ts.map +1 -0
  162. package/dist/__tests__/headingSourceTitle.test.js +35 -0
  163. package/dist/__tests__/headingSourceTitle.test.js.map +1 -0
  164. package/dist/__tests__/headingStyleBreakAfterPagebreak.test.d.ts +2 -0
  165. package/dist/__tests__/headingStyleBreakAfterPagebreak.test.d.ts.map +1 -0
  166. package/dist/__tests__/headingStyleBreakAfterPagebreak.test.js +52 -0
  167. package/dist/__tests__/headingStyleBreakAfterPagebreak.test.js.map +1 -0
  168. package/dist/__tests__/hiddenHeadings.test.d.ts +2 -0
  169. package/dist/__tests__/hiddenHeadings.test.d.ts.map +1 -0
  170. package/dist/__tests__/hiddenHeadings.test.js +137 -0
  171. package/dist/__tests__/hiddenHeadings.test.js.map +1 -0
  172. package/dist/__tests__/htmlHostReset.test.d.ts +2 -0
  173. package/dist/__tests__/htmlHostReset.test.d.ts.map +1 -0
  174. package/dist/__tests__/htmlHostReset.test.js +63 -0
  175. package/dist/__tests__/htmlHostReset.test.js.map +1 -0
  176. package/dist/__tests__/hyphenationLocale.test.d.ts +2 -0
  177. package/dist/__tests__/hyphenationLocale.test.d.ts.map +1 -0
  178. package/dist/__tests__/hyphenationLocale.test.js +143 -0
  179. package/dist/__tests__/hyphenationLocale.test.js.map +1 -0
  180. package/dist/__tests__/justifyTracking.test.d.ts +2 -0
  181. package/dist/__tests__/justifyTracking.test.d.ts.map +1 -0
  182. package/dist/__tests__/justifyTracking.test.js +217 -0
  183. package/dist/__tests__/justifyTracking.test.js.map +1 -0
  184. package/dist/__tests__/layoutWorkerClient.test.d.ts +2 -0
  185. package/dist/__tests__/layoutWorkerClient.test.d.ts.map +1 -0
  186. package/dist/__tests__/layoutWorkerClient.test.js +140 -0
  187. package/dist/__tests__/layoutWorkerClient.test.js.map +1 -0
  188. package/dist/__tests__/links.test.d.ts +2 -0
  189. package/dist/__tests__/links.test.d.ts.map +1 -0
  190. package/dist/__tests__/links.test.js +227 -0
  191. package/dist/__tests__/links.test.js.map +1 -0
  192. package/dist/__tests__/localisedStrings.test.d.ts +2 -0
  193. package/dist/__tests__/localisedStrings.test.d.ts.map +1 -0
  194. package/dist/__tests__/localisedStrings.test.js +118 -0
  195. package/dist/__tests__/localisedStrings.test.js.map +1 -0
  196. package/dist/__tests__/looseLines.test.d.ts +2 -0
  197. package/dist/__tests__/looseLines.test.d.ts.map +1 -0
  198. package/dist/__tests__/looseLines.test.js +72 -0
  199. package/dist/__tests__/looseLines.test.js.map +1 -0
  200. package/dist/__tests__/mainEntryReact.test.d.ts +2 -0
  201. package/dist/__tests__/mainEntryReact.test.d.ts.map +1 -0
  202. package/dist/__tests__/mainEntryReact.test.js +13 -0
  203. package/dist/__tests__/mainEntryReact.test.js.map +1 -0
  204. package/dist/__tests__/mathBundle.test.d.ts +2 -0
  205. package/dist/__tests__/mathBundle.test.d.ts.map +1 -0
  206. package/dist/__tests__/mathBundle.test.js +80 -0
  207. package/dist/__tests__/mathBundle.test.js.map +1 -0
  208. package/dist/__tests__/mathEngine.test.d.ts +2 -0
  209. package/dist/__tests__/mathEngine.test.d.ts.map +1 -0
  210. package/dist/__tests__/mathEngine.test.js +69 -0
  211. package/dist/__tests__/mathEngine.test.js.map +1 -0
  212. package/dist/__tests__/mathEngineInit.test.d.ts +2 -0
  213. package/dist/__tests__/mathEngineInit.test.d.ts.map +1 -0
  214. package/dist/__tests__/mathEngineInit.test.js +33 -0
  215. package/dist/__tests__/mathEngineInit.test.js.map +1 -0
  216. package/dist/__tests__/mathSize.test.d.ts +2 -0
  217. package/dist/__tests__/mathSize.test.d.ts.map +1 -0
  218. package/dist/__tests__/mathSize.test.js +168 -0
  219. package/dist/__tests__/mathSize.test.js.map +1 -0
  220. package/dist/__tests__/mathSizeMigration.test.d.ts +2 -0
  221. package/dist/__tests__/mathSizeMigration.test.d.ts.map +1 -0
  222. package/dist/__tests__/mathSizeMigration.test.js +188 -0
  223. package/dist/__tests__/mathSizeMigration.test.js.map +1 -0
  224. package/dist/__tests__/measureCache.test.js +148 -4
  225. package/dist/__tests__/measureCache.test.js.map +1 -1
  226. package/dist/__tests__/measureCacheKeepBreaks.test.d.ts +2 -0
  227. package/dist/__tests__/measureCacheKeepBreaks.test.d.ts.map +1 -0
  228. package/dist/__tests__/measureCacheKeepBreaks.test.js +59 -0
  229. package/dist/__tests__/measureCacheKeepBreaks.test.js.map +1 -0
  230. package/dist/__tests__/noBreakSpaces.test.d.ts +2 -0
  231. package/dist/__tests__/noBreakSpaces.test.d.ts.map +1 -0
  232. package/dist/__tests__/noBreakSpaces.test.js +208 -0
  233. package/dist/__tests__/noBreakSpaces.test.js.map +1 -0
  234. package/dist/__tests__/numberFormats.test.d.ts +2 -0
  235. package/dist/__tests__/numberFormats.test.d.ts.map +1 -0
  236. package/dist/__tests__/numberFormats.test.js +142 -0
  237. package/dist/__tests__/numberFormats.test.js.map +1 -0
  238. package/dist/__tests__/paletteEverywhere.test.d.ts +2 -0
  239. package/dist/__tests__/paletteEverywhere.test.d.ts.map +1 -0
  240. package/dist/__tests__/paletteEverywhere.test.js +228 -0
  241. package/dist/__tests__/paletteEverywhere.test.js.map +1 -0
  242. package/dist/__tests__/paragraphStyleIndent.test.d.ts +2 -0
  243. package/dist/__tests__/paragraphStyleIndent.test.d.ts.map +1 -0
  244. package/dist/__tests__/paragraphStyleIndent.test.js +91 -0
  245. package/dist/__tests__/paragraphStyleIndent.test.js.map +1 -0
  246. package/dist/__tests__/parse/attrQuoting.test.d.ts +2 -0
  247. package/dist/__tests__/parse/attrQuoting.test.d.ts.map +1 -0
  248. package/dist/__tests__/parse/attrQuoting.test.js +87 -0
  249. package/dist/__tests__/parse/attrQuoting.test.js.map +1 -0
  250. package/dist/__tests__/parse/codeSpans.test.d.ts +2 -0
  251. package/dist/__tests__/parse/codeSpans.test.d.ts.map +1 -0
  252. package/dist/__tests__/parse/codeSpans.test.js +31 -0
  253. package/dist/__tests__/parse/codeSpans.test.js.map +1 -0
  254. package/dist/__tests__/parse/intrawordUnderscore.test.d.ts +2 -0
  255. package/dist/__tests__/parse/intrawordUnderscore.test.d.ts.map +1 -0
  256. package/dist/__tests__/parse/intrawordUnderscore.test.js +69 -0
  257. package/dist/__tests__/parse/intrawordUnderscore.test.js.map +1 -0
  258. package/dist/__tests__/parse/scripts.test.js +4 -1
  259. package/dist/__tests__/parse/scripts.test.js.map +1 -1
  260. package/dist/__tests__/parts.test.js +103 -0
  261. package/dist/__tests__/parts.test.js.map +1 -1
  262. package/dist/__tests__/pipeline/balancingRecord.test.d.ts +2 -0
  263. package/dist/__tests__/pipeline/balancingRecord.test.d.ts.map +1 -0
  264. package/dist/__tests__/pipeline/balancingRecord.test.js +176 -0
  265. package/dist/__tests__/pipeline/balancingRecord.test.js.map +1 -0
  266. package/dist/__tests__/pipeline/blockquoteStyle.test.d.ts +2 -0
  267. package/dist/__tests__/pipeline/blockquoteStyle.test.d.ts.map +1 -0
  268. package/dist/__tests__/pipeline/blockquoteStyle.test.js +99 -0
  269. package/dist/__tests__/pipeline/blockquoteStyle.test.js.map +1 -0
  270. package/dist/__tests__/pipeline/calloutContinuation.test.d.ts +2 -0
  271. package/dist/__tests__/pipeline/calloutContinuation.test.d.ts.map +1 -0
  272. package/dist/__tests__/pipeline/calloutContinuation.test.js +133 -0
  273. package/dist/__tests__/pipeline/calloutContinuation.test.js.map +1 -0
  274. package/dist/__tests__/pipeline/calloutContinuationInset.test.d.ts +2 -0
  275. package/dist/__tests__/pipeline/calloutContinuationInset.test.d.ts.map +1 -0
  276. package/dist/__tests__/pipeline/calloutContinuationInset.test.js +116 -0
  277. package/dist/__tests__/pipeline/calloutContinuationInset.test.js.map +1 -0
  278. package/dist/__tests__/pipeline/calloutCornerWideIcon.test.d.ts +2 -0
  279. package/dist/__tests__/pipeline/calloutCornerWideIcon.test.d.ts.map +1 -0
  280. package/dist/__tests__/pipeline/calloutCornerWideIcon.test.js +69 -0
  281. package/dist/__tests__/pipeline/calloutCornerWideIcon.test.js.map +1 -0
  282. package/dist/__tests__/pipeline/calloutFloatMargins.test.d.ts +2 -0
  283. package/dist/__tests__/pipeline/calloutFloatMargins.test.d.ts.map +1 -0
  284. package/dist/__tests__/pipeline/calloutFloatMargins.test.js +104 -0
  285. package/dist/__tests__/pipeline/calloutFloatMargins.test.js.map +1 -0
  286. package/dist/__tests__/pipeline/calloutInlineResourceGap.test.d.ts +2 -0
  287. package/dist/__tests__/pipeline/calloutInlineResourceGap.test.d.ts.map +1 -0
  288. package/dist/__tests__/pipeline/calloutInlineResourceGap.test.js +148 -0
  289. package/dist/__tests__/pipeline/calloutInlineResourceGap.test.js.map +1 -0
  290. package/dist/__tests__/pipeline/calloutListColor.test.d.ts +2 -0
  291. package/dist/__tests__/pipeline/calloutListColor.test.d.ts.map +1 -0
  292. package/dist/__tests__/pipeline/calloutListColor.test.js +86 -0
  293. package/dist/__tests__/pipeline/calloutListColor.test.js.map +1 -0
  294. package/dist/__tests__/pipeline/calloutRaggedLines.test.d.ts +2 -0
  295. package/dist/__tests__/pipeline/calloutRaggedLines.test.d.ts.map +1 -0
  296. package/dist/__tests__/pipeline/calloutRaggedLines.test.js +65 -0
  297. package/dist/__tests__/pipeline/calloutRaggedLines.test.js.map +1 -0
  298. package/dist/__tests__/pipeline/calloutRuntTracking.test.d.ts +2 -0
  299. package/dist/__tests__/pipeline/calloutRuntTracking.test.d.ts.map +1 -0
  300. package/dist/__tests__/pipeline/calloutRuntTracking.test.js +84 -0
  301. package/dist/__tests__/pipeline/calloutRuntTracking.test.js.map +1 -0
  302. package/dist/__tests__/pipeline/calloutSplitMinLinesChild.test.d.ts +2 -0
  303. package/dist/__tests__/pipeline/calloutSplitMinLinesChild.test.d.ts.map +1 -0
  304. package/dist/__tests__/pipeline/calloutSplitMinLinesChild.test.js +187 -0
  305. package/dist/__tests__/pipeline/calloutSplitMinLinesChild.test.js.map +1 -0
  306. package/dist/__tests__/pipeline/calloutStripeRadius.test.d.ts +2 -0
  307. package/dist/__tests__/pipeline/calloutStripeRadius.test.d.ts.map +1 -0
  308. package/dist/__tests__/pipeline/calloutStripeRadius.test.js +127 -0
  309. package/dist/__tests__/pipeline/calloutStripeRadius.test.js.map +1 -0
  310. package/dist/__tests__/pipeline/calloutTitleLineHeight.test.d.ts +2 -0
  311. package/dist/__tests__/pipeline/calloutTitleLineHeight.test.d.ts.map +1 -0
  312. package/dist/__tests__/pipeline/calloutTitleLineHeight.test.js +81 -0
  313. package/dist/__tests__/pipeline/calloutTitleLineHeight.test.js.map +1 -0
  314. package/dist/__tests__/pipeline/calloutTypography.test.d.ts +2 -0
  315. package/dist/__tests__/pipeline/calloutTypography.test.d.ts.map +1 -0
  316. package/dist/__tests__/pipeline/calloutTypography.test.js +97 -0
  317. package/dist/__tests__/pipeline/calloutTypography.test.js.map +1 -0
  318. package/dist/__tests__/pipeline/capUnderHeadFloats.test.d.ts +2 -0
  319. package/dist/__tests__/pipeline/capUnderHeadFloats.test.d.ts.map +1 -0
  320. package/dist/__tests__/pipeline/capUnderHeadFloats.test.js +68 -0
  321. package/dist/__tests__/pipeline/capUnderHeadFloats.test.js.map +1 -0
  322. package/dist/__tests__/pipeline/captionAlign.test.d.ts +2 -0
  323. package/dist/__tests__/pipeline/captionAlign.test.d.ts.map +1 -0
  324. package/dist/__tests__/pipeline/captionAlign.test.js +99 -0
  325. package/dist/__tests__/pipeline/captionAlign.test.js.map +1 -0
  326. package/dist/__tests__/pipeline/chipPalette.test.d.ts +2 -0
  327. package/dist/__tests__/pipeline/chipPalette.test.d.ts.map +1 -0
  328. package/dist/__tests__/pipeline/chipPalette.test.js +80 -0
  329. package/dist/__tests__/pipeline/chipPalette.test.js.map +1 -0
  330. package/dist/__tests__/pipeline/chipVerticalPadding.test.d.ts +2 -0
  331. package/dist/__tests__/pipeline/chipVerticalPadding.test.d.ts.map +1 -0
  332. package/dist/__tests__/pipeline/chipVerticalPadding.test.js +66 -0
  333. package/dist/__tests__/pipeline/chipVerticalPadding.test.js.map +1 -0
  334. package/dist/__tests__/pipeline/chips.test.js +32 -0
  335. package/dist/__tests__/pipeline/chips.test.js.map +1 -1
  336. package/dist/__tests__/pipeline/closingBoxLever.test.d.ts +2 -0
  337. package/dist/__tests__/pipeline/closingBoxLever.test.d.ts.map +1 -0
  338. package/dist/__tests__/pipeline/closingBoxLever.test.js +68 -0
  339. package/dist/__tests__/pipeline/closingBoxLever.test.js.map +1 -0
  340. package/dist/__tests__/pipeline/closingBoxOrder.test.d.ts +2 -0
  341. package/dist/__tests__/pipeline/closingBoxOrder.test.d.ts.map +1 -0
  342. package/dist/__tests__/pipeline/closingBoxOrder.test.js +87 -0
  343. package/dist/__tests__/pipeline/closingBoxOrder.test.js.map +1 -0
  344. package/dist/__tests__/pipeline/closingPageAfterFloat.test.d.ts +2 -0
  345. package/dist/__tests__/pipeline/closingPageAfterFloat.test.d.ts.map +1 -0
  346. package/dist/__tests__/pipeline/closingPageAfterFloat.test.js +159 -0
  347. package/dist/__tests__/pipeline/closingPageAfterFloat.test.js.map +1 -0
  348. package/dist/__tests__/pipeline/closingPageAfterFloatPage.test.d.ts +2 -0
  349. package/dist/__tests__/pipeline/closingPageAfterFloatPage.test.d.ts.map +1 -0
  350. package/dist/__tests__/pipeline/closingPageAfterFloatPage.test.js +90 -0
  351. package/dist/__tests__/pipeline/closingPageAfterFloatPage.test.js.map +1 -0
  352. package/dist/__tests__/pipeline/colonBalancing.test.js +19 -15
  353. package/dist/__tests__/pipeline/colonBalancing.test.js.map +1 -1
  354. package/dist/__tests__/pipeline/colonListRoom.test.d.ts +2 -0
  355. package/dist/__tests__/pipeline/colonListRoom.test.d.ts.map +1 -0
  356. package/dist/__tests__/pipeline/colonListRoom.test.js +127 -0
  357. package/dist/__tests__/pipeline/colonListRoom.test.js.map +1 -0
  358. package/dist/__tests__/pipeline/columnWidthRebreak.test.d.ts +2 -0
  359. package/dist/__tests__/pipeline/columnWidthRebreak.test.d.ts.map +1 -0
  360. package/dist/__tests__/pipeline/columnWidthRebreak.test.js +124 -0
  361. package/dist/__tests__/pipeline/columnWidthRebreak.test.js.map +1 -0
  362. package/dist/__tests__/pipeline/compoundBreaks.test.d.ts +2 -0
  363. package/dist/__tests__/pipeline/compoundBreaks.test.d.ts.map +1 -0
  364. package/dist/__tests__/pipeline/compoundBreaks.test.js +368 -0
  365. package/dist/__tests__/pipeline/compoundBreaks.test.js.map +1 -0
  366. package/dist/__tests__/pipeline/continuationUnderFloat.test.d.ts +2 -0
  367. package/dist/__tests__/pipeline/continuationUnderFloat.test.d.ts.map +1 -0
  368. package/dist/__tests__/pipeline/continuationUnderFloat.test.js +64 -0
  369. package/dist/__tests__/pipeline/continuationUnderFloat.test.js.map +1 -0
  370. package/dist/__tests__/pipeline/crossChapterRef.test.d.ts +2 -0
  371. package/dist/__tests__/pipeline/crossChapterRef.test.d.ts.map +1 -0
  372. package/dist/__tests__/pipeline/crossChapterRef.test.js +124 -0
  373. package/dist/__tests__/pipeline/crossChapterRef.test.js.map +1 -0
  374. package/dist/__tests__/pipeline/dashBreaks.test.d.ts +2 -0
  375. package/dist/__tests__/pipeline/dashBreaks.test.d.ts.map +1 -0
  376. package/dist/__tests__/pipeline/dashBreaks.test.js +358 -0
  377. package/dist/__tests__/pipeline/dashBreaks.test.js.map +1 -0
  378. package/dist/__tests__/pipeline/defaultOpenerPaint.test.d.ts +2 -0
  379. package/dist/__tests__/pipeline/defaultOpenerPaint.test.d.ts.map +1 -0
  380. package/dist/__tests__/pipeline/defaultOpenerPaint.test.js +128 -0
  381. package/dist/__tests__/pipeline/defaultOpenerPaint.test.js.map +1 -0
  382. package/dist/__tests__/pipeline/displayMathFlow.test.d.ts +2 -0
  383. package/dist/__tests__/pipeline/displayMathFlow.test.d.ts.map +1 -0
  384. package/dist/__tests__/pipeline/displayMathFlow.test.js +156 -0
  385. package/dist/__tests__/pipeline/displayMathFlow.test.js.map +1 -0
  386. package/dist/__tests__/pipeline/emptyResourceTemplate.test.d.ts +2 -0
  387. package/dist/__tests__/pipeline/emptyResourceTemplate.test.d.ts.map +1 -0
  388. package/dist/__tests__/pipeline/emptyResourceTemplate.test.js +66 -0
  389. package/dist/__tests__/pipeline/emptyResourceTemplate.test.js.map +1 -0
  390. package/dist/__tests__/pipeline/figureBodyAlign.test.d.ts +2 -0
  391. package/dist/__tests__/pipeline/figureBodyAlign.test.d.ts.map +1 -0
  392. package/dist/__tests__/pipeline/figureBodyAlign.test.js +92 -0
  393. package/dist/__tests__/pipeline/figureBodyAlign.test.js.map +1 -0
  394. package/dist/__tests__/pipeline/floatAfterCitingLine.test.d.ts +2 -0
  395. package/dist/__tests__/pipeline/floatAfterCitingLine.test.d.ts.map +1 -0
  396. package/dist/__tests__/pipeline/floatAfterCitingLine.test.js +217 -0
  397. package/dist/__tests__/pipeline/floatAfterCitingLine.test.js.map +1 -0
  398. package/dist/__tests__/pipeline/floatFirstSlot.test.js +15 -0
  399. package/dist/__tests__/pipeline/floatFirstSlot.test.js.map +1 -1
  400. package/dist/__tests__/pipeline/floatOverInlineResource.test.d.ts +2 -0
  401. package/dist/__tests__/pipeline/floatOverInlineResource.test.d.ts.map +1 -0
  402. package/dist/__tests__/pipeline/floatOverInlineResource.test.js +75 -0
  403. package/dist/__tests__/pipeline/floatOverInlineResource.test.js.map +1 -0
  404. package/dist/__tests__/pipeline/floatPlacementRules.test.d.ts +2 -0
  405. package/dist/__tests__/pipeline/floatPlacementRules.test.d.ts.map +1 -0
  406. package/dist/__tests__/pipeline/floatPlacementRules.test.js +177 -0
  407. package/dist/__tests__/pipeline/floatPlacementRules.test.js.map +1 -0
  408. package/dist/__tests__/pipeline/floatSlots.test.js +35 -1
  409. package/dist/__tests__/pipeline/floatSlots.test.js.map +1 -1
  410. package/dist/__tests__/pipeline/hardHyphenBreaks.test.d.ts +2 -0
  411. package/dist/__tests__/pipeline/hardHyphenBreaks.test.d.ts.map +1 -0
  412. package/dist/__tests__/pipeline/hardHyphenBreaks.test.js +165 -0
  413. package/dist/__tests__/pipeline/hardHyphenBreaks.test.js.map +1 -0
  414. package/dist/__tests__/pipeline/headingDesignCuts.test.d.ts +2 -0
  415. package/dist/__tests__/pipeline/headingDesignCuts.test.d.ts.map +1 -0
  416. package/dist/__tests__/pipeline/headingDesignCuts.test.js +96 -0
  417. package/dist/__tests__/pipeline/headingDesignCuts.test.js.map +1 -0
  418. package/dist/__tests__/pipeline/headingSnapPerLevel.test.d.ts +2 -0
  419. package/dist/__tests__/pipeline/headingSnapPerLevel.test.d.ts.map +1 -0
  420. package/dist/__tests__/pipeline/headingSnapPerLevel.test.js +97 -0
  421. package/dist/__tests__/pipeline/headingSnapPerLevel.test.js.map +1 -0
  422. package/dist/__tests__/pipeline/headingSplitOrphans.test.d.ts +2 -0
  423. package/dist/__tests__/pipeline/headingSplitOrphans.test.d.ts.map +1 -0
  424. package/dist/__tests__/pipeline/headingSplitOrphans.test.js +134 -0
  425. package/dist/__tests__/pipeline/headingSplitOrphans.test.js.map +1 -0
  426. package/dist/__tests__/pipeline/hyphenAcrossColumns.test.d.ts +2 -0
  427. package/dist/__tests__/pipeline/hyphenAcrossColumns.test.d.ts.map +1 -0
  428. package/dist/__tests__/pipeline/hyphenAcrossColumns.test.js +232 -0
  429. package/dist/__tests__/pipeline/hyphenAcrossColumns.test.js.map +1 -0
  430. package/dist/__tests__/pipeline/indentAfterOutOfFlow.test.d.ts +2 -0
  431. package/dist/__tests__/pipeline/indentAfterOutOfFlow.test.d.ts.map +1 -0
  432. package/dist/__tests__/pipeline/indentAfterOutOfFlow.test.js +93 -0
  433. package/dist/__tests__/pipeline/indentAfterOutOfFlow.test.js.map +1 -0
  434. package/dist/__tests__/pipeline/inlineFigureSpace.test.d.ts +2 -0
  435. package/dist/__tests__/pipeline/inlineFigureSpace.test.d.ts.map +1 -0
  436. package/dist/__tests__/pipeline/inlineFigureSpace.test.js +195 -0
  437. package/dist/__tests__/pipeline/inlineFigureSpace.test.js.map +1 -0
  438. package/dist/__tests__/pipeline/lineSourceEdges.test.d.ts +2 -0
  439. package/dist/__tests__/pipeline/lineSourceEdges.test.d.ts.map +1 -0
  440. package/dist/__tests__/pipeline/lineSourceEdges.test.js +143 -0
  441. package/dist/__tests__/pipeline/lineSourceEdges.test.js.map +1 -0
  442. package/dist/__tests__/pipeline/lineSourceRanges.test.d.ts +2 -0
  443. package/dist/__tests__/pipeline/lineSourceRanges.test.d.ts.map +1 -0
  444. package/dist/__tests__/pipeline/lineSourceRanges.test.js +96 -0
  445. package/dist/__tests__/pipeline/lineSourceRanges.test.js.map +1 -0
  446. package/dist/__tests__/pipeline/listTopSnap.test.d.ts +2 -0
  447. package/dist/__tests__/pipeline/listTopSnap.test.d.ts.map +1 -0
  448. package/dist/__tests__/pipeline/listTopSnap.test.js +90 -0
  449. package/dist/__tests__/pipeline/listTopSnap.test.js.map +1 -0
  450. package/dist/__tests__/pipeline/looseParagraphLimit.test.d.ts +2 -0
  451. package/dist/__tests__/pipeline/looseParagraphLimit.test.d.ts.map +1 -0
  452. package/dist/__tests__/pipeline/looseParagraphLimit.test.js +63 -0
  453. package/dist/__tests__/pipeline/looseParagraphLimit.test.js.map +1 -0
  454. package/dist/__tests__/pipeline/nestedListSpacing.test.d.ts +2 -0
  455. package/dist/__tests__/pipeline/nestedListSpacing.test.d.ts.map +1 -0
  456. package/dist/__tests__/pipeline/nestedListSpacing.test.js +62 -0
  457. package/dist/__tests__/pipeline/nestedListSpacing.test.js.map +1 -0
  458. package/dist/__tests__/pipeline/openerColumnStarts.test.d.ts +2 -0
  459. package/dist/__tests__/pipeline/openerColumnStarts.test.d.ts.map +1 -0
  460. package/dist/__tests__/pipeline/openerColumnStarts.test.js +189 -0
  461. package/dist/__tests__/pipeline/openerColumnStarts.test.js.map +1 -0
  462. package/dist/__tests__/pipeline/openerFillsPage.test.d.ts +2 -0
  463. package/dist/__tests__/pipeline/openerFillsPage.test.d.ts.map +1 -0
  464. package/dist/__tests__/pipeline/openerFillsPage.test.js +133 -0
  465. package/dist/__tests__/pipeline/openerFillsPage.test.js.map +1 -0
  466. package/dist/__tests__/pipeline/openerTallerThanColumn.test.d.ts +2 -0
  467. package/dist/__tests__/pipeline/openerTallerThanColumn.test.d.ts.map +1 -0
  468. package/dist/__tests__/pipeline/openerTallerThanColumn.test.js +139 -0
  469. package/dist/__tests__/pipeline/openerTallerThanColumn.test.js.map +1 -0
  470. package/dist/__tests__/pipeline/orderedNumberWidth.test.d.ts +2 -0
  471. package/dist/__tests__/pipeline/orderedNumberWidth.test.d.ts.map +1 -0
  472. package/dist/__tests__/pipeline/orderedNumberWidth.test.js +69 -0
  473. package/dist/__tests__/pipeline/orderedNumberWidth.test.js.map +1 -0
  474. package/dist/__tests__/pipeline/pageSpanHeadingWidth.test.d.ts +2 -0
  475. package/dist/__tests__/pipeline/pageSpanHeadingWidth.test.d.ts.map +1 -0
  476. package/dist/__tests__/pipeline/pageSpanHeadingWidth.test.js +74 -0
  477. package/dist/__tests__/pipeline/pageSpanHeadingWidth.test.js.map +1 -0
  478. package/dist/__tests__/pipeline/paragraphContainerTail.test.d.ts +2 -0
  479. package/dist/__tests__/pipeline/paragraphContainerTail.test.d.ts.map +1 -0
  480. package/dist/__tests__/pipeline/paragraphContainerTail.test.js +218 -0
  481. package/dist/__tests__/pipeline/paragraphContainerTail.test.js.map +1 -0
  482. package/dist/__tests__/pipeline/paragraphStyleFaces.test.d.ts +2 -0
  483. package/dist/__tests__/pipeline/paragraphStyleFaces.test.d.ts.map +1 -0
  484. package/dist/__tests__/pipeline/paragraphStyleFaces.test.js +121 -0
  485. package/dist/__tests__/pipeline/paragraphStyleFaces.test.js.map +1 -0
  486. package/dist/__tests__/pipeline/paragraphStyles.test.js +85 -0
  487. package/dist/__tests__/pipeline/paragraphStyles.test.js.map +1 -1
  488. package/dist/__tests__/pipeline/raggedOptimal.test.d.ts +2 -0
  489. package/dist/__tests__/pipeline/raggedOptimal.test.d.ts.map +1 -0
  490. package/dist/__tests__/pipeline/raggedOptimal.test.js +231 -0
  491. package/dist/__tests__/pipeline/raggedOptimal.test.js.map +1 -0
  492. package/dist/__tests__/pipeline/resolvedPaletteCopy.test.d.ts +2 -0
  493. package/dist/__tests__/pipeline/resolvedPaletteCopy.test.d.ts.map +1 -0
  494. package/dist/__tests__/pipeline/resolvedPaletteCopy.test.js +68 -0
  495. package/dist/__tests__/pipeline/resolvedPaletteCopy.test.js.map +1 -0
  496. package/dist/__tests__/pipeline/resourceNumberingRules.test.d.ts +2 -0
  497. package/dist/__tests__/pipeline/resourceNumberingRules.test.d.ts.map +1 -0
  498. package/dist/__tests__/pipeline/resourceNumberingRules.test.js +103 -0
  499. package/dist/__tests__/pipeline/resourceNumberingRules.test.js.map +1 -0
  500. package/dist/__tests__/pipeline/sectionPageOwnership.test.d.ts +2 -0
  501. package/dist/__tests__/pipeline/sectionPageOwnership.test.d.ts.map +1 -0
  502. package/dist/__tests__/pipeline/sectionPageOwnership.test.js +89 -0
  503. package/dist/__tests__/pipeline/sectionPageOwnership.test.js.map +1 -0
  504. package/dist/__tests__/pipeline/sectionPaletteSharedBase.test.d.ts +2 -0
  505. package/dist/__tests__/pipeline/sectionPaletteSharedBase.test.d.ts.map +1 -0
  506. package/dist/__tests__/pipeline/sectionPaletteSharedBase.test.js +278 -0
  507. package/dist/__tests__/pipeline/sectionPaletteSharedBase.test.js.map +1 -0
  508. package/dist/__tests__/pipeline/sectionPaletteTables.test.d.ts +2 -0
  509. package/dist/__tests__/pipeline/sectionPaletteTables.test.d.ts.map +1 -0
  510. package/dist/__tests__/pipeline/sectionPaletteTables.test.js +104 -0
  511. package/dist/__tests__/pipeline/sectionPaletteTables.test.js.map +1 -0
  512. package/dist/__tests__/pipeline/sideBoxAtColumnEnd.test.d.ts +2 -0
  513. package/dist/__tests__/pipeline/sideBoxAtColumnEnd.test.d.ts.map +1 -0
  514. package/dist/__tests__/pipeline/sideBoxAtColumnEnd.test.js +176 -0
  515. package/dist/__tests__/pipeline/sideBoxAtColumnEnd.test.js.map +1 -0
  516. package/dist/__tests__/pipeline/sideColumnPercent.test.d.ts +2 -0
  517. package/dist/__tests__/pipeline/sideColumnPercent.test.d.ts.map +1 -0
  518. package/dist/__tests__/pipeline/sideColumnPercent.test.js +114 -0
  519. package/dist/__tests__/pipeline/sideColumnPercent.test.js.map +1 -0
  520. package/dist/__tests__/pipeline/snippetDollarEscape.test.d.ts +2 -0
  521. package/dist/__tests__/pipeline/snippetDollarEscape.test.d.ts.map +1 -0
  522. package/dist/__tests__/pipeline/snippetDollarEscape.test.js +112 -0
  523. package/dist/__tests__/pipeline/snippetDollarEscape.test.js.map +1 -0
  524. package/dist/__tests__/pipeline/snippetLineBreaks.test.d.ts +2 -0
  525. package/dist/__tests__/pipeline/snippetLineBreaks.test.d.ts.map +1 -0
  526. package/dist/__tests__/pipeline/snippetLineBreaks.test.js +178 -0
  527. package/dist/__tests__/pipeline/snippetLineBreaks.test.js.map +1 -0
  528. package/dist/__tests__/pipeline/spanCutUnderColumnFloat.test.d.ts +2 -0
  529. package/dist/__tests__/pipeline/spanCutUnderColumnFloat.test.d.ts.map +1 -0
  530. package/dist/__tests__/pipeline/spanCutUnderColumnFloat.test.js +90 -0
  531. package/dist/__tests__/pipeline/spanCutUnderColumnFloat.test.js.map +1 -0
  532. package/dist/__tests__/pipeline/splitBoxCappedBand.test.d.ts +2 -0
  533. package/dist/__tests__/pipeline/splitBoxCappedBand.test.d.ts.map +1 -0
  534. package/dist/__tests__/pipeline/splitBoxCappedBand.test.js +64 -0
  535. package/dist/__tests__/pipeline/splitBoxCappedBand.test.js.map +1 -0
  536. package/dist/__tests__/pipeline/tableCellNoBreakSpaces.test.d.ts +2 -0
  537. package/dist/__tests__/pipeline/tableCellNoBreakSpaces.test.d.ts.map +1 -0
  538. package/dist/__tests__/pipeline/tableCellNoBreakSpaces.test.js +97 -0
  539. package/dist/__tests__/pipeline/tableCellNoBreakSpaces.test.js.map +1 -0
  540. package/dist/__tests__/pipeline/tableHeaderTracking.test.d.ts +2 -0
  541. package/dist/__tests__/pipeline/tableHeaderTracking.test.d.ts.map +1 -0
  542. package/dist/__tests__/pipeline/tableHeaderTracking.test.js +139 -0
  543. package/dist/__tests__/pipeline/tableHeaderTracking.test.js.map +1 -0
  544. package/dist/__tests__/pipeline/tableSplitTextRoom.test.d.ts +2 -0
  545. package/dist/__tests__/pipeline/tableSplitTextRoom.test.d.ts.map +1 -0
  546. package/dist/__tests__/pipeline/tableSplitTextRoom.test.js +90 -0
  547. package/dist/__tests__/pipeline/tableSplitTextRoom.test.js.map +1 -0
  548. package/dist/__tests__/pipeline/tableStyles.test.js +94 -1
  549. package/dist/__tests__/pipeline/tableStyles.test.js.map +1 -1
  550. package/dist/__tests__/pipeline/tallParagraphShortColumn.test.d.ts +2 -0
  551. package/dist/__tests__/pipeline/tallParagraphShortColumn.test.d.ts.map +1 -0
  552. package/dist/__tests__/pipeline/tallParagraphShortColumn.test.js +79 -0
  553. package/dist/__tests__/pipeline/tallParagraphShortColumn.test.js.map +1 -0
  554. package/dist/__tests__/pipeline/textFaces.test.d.ts +2 -0
  555. package/dist/__tests__/pipeline/textFaces.test.d.ts.map +1 -0
  556. package/dist/__tests__/pipeline/textFaces.test.js +258 -0
  557. package/dist/__tests__/pipeline/textFaces.test.js.map +1 -0
  558. package/dist/__tests__/pipeline/trailingBand.test.js +29 -0
  559. package/dist/__tests__/pipeline/trailingBand.test.js.map +1 -1
  560. package/dist/__tests__/pipeline/trailingCapHeading.test.d.ts +2 -0
  561. package/dist/__tests__/pipeline/trailingCapHeading.test.d.ts.map +1 -0
  562. package/dist/__tests__/pipeline/trailingCapHeading.test.js +69 -0
  563. package/dist/__tests__/pipeline/trailingCapHeading.test.js.map +1 -0
  564. package/dist/__tests__/pipeline/trailingCapOverflow.test.d.ts +2 -0
  565. package/dist/__tests__/pipeline/trailingCapOverflow.test.d.ts.map +1 -0
  566. package/dist/__tests__/pipeline/trailingCapOverflow.test.js +116 -0
  567. package/dist/__tests__/pipeline/trailingCapOverflow.test.js.map +1 -0
  568. package/dist/__tests__/placeholders.test.js +100 -2
  569. package/dist/__tests__/placeholders.test.js.map +1 -1
  570. package/dist/__tests__/punctuationGlue.test.d.ts +2 -0
  571. package/dist/__tests__/punctuationGlue.test.d.ts.map +1 -0
  572. package/dist/__tests__/punctuationGlue.test.js +165 -0
  573. package/dist/__tests__/punctuationGlue.test.js.map +1 -0
  574. package/dist/__tests__/raggedHyphenation.test.d.ts +2 -0
  575. package/dist/__tests__/raggedHyphenation.test.d.ts.map +1 -0
  576. package/dist/__tests__/raggedHyphenation.test.js +184 -0
  577. package/dist/__tests__/raggedHyphenation.test.js.map +1 -0
  578. package/dist/__tests__/renderWarnings.test.d.ts +2 -0
  579. package/dist/__tests__/renderWarnings.test.d.ts.map +1 -0
  580. package/dist/__tests__/renderWarnings.test.js +72 -0
  581. package/dist/__tests__/renderWarnings.test.js.map +1 -0
  582. package/dist/__tests__/resolvedLocale.test.d.ts +2 -0
  583. package/dist/__tests__/resolvedLocale.test.d.ts.map +1 -0
  584. package/dist/__tests__/resolvedLocale.test.js +51 -0
  585. package/dist/__tests__/resolvedLocale.test.js.map +1 -0
  586. package/dist/__tests__/runningChapter.test.d.ts +2 -0
  587. package/dist/__tests__/runningChapter.test.d.ts.map +1 -0
  588. package/dist/__tests__/runningChapter.test.js +161 -0
  589. package/dist/__tests__/runningChapter.test.js.map +1 -0
  590. package/dist/__tests__/runtFixStretchLimit.test.d.ts +2 -0
  591. package/dist/__tests__/runtFixStretchLimit.test.d.ts.map +1 -0
  592. package/dist/__tests__/runtFixStretchLimit.test.js +145 -0
  593. package/dist/__tests__/runtFixStretchLimit.test.js.map +1 -0
  594. package/dist/__tests__/scriptStacking.test.d.ts +2 -0
  595. package/dist/__tests__/scriptStacking.test.d.ts.map +1 -0
  596. package/dist/__tests__/scriptStacking.test.js +331 -0
  597. package/dist/__tests__/scriptStacking.test.js.map +1 -0
  598. package/dist/__tests__/sectionPaletteFlow.test.d.ts +2 -0
  599. package/dist/__tests__/sectionPaletteFlow.test.d.ts.map +1 -0
  600. package/dist/__tests__/sectionPaletteFlow.test.js +51 -0
  601. package/dist/__tests__/sectionPaletteFlow.test.js.map +1 -0
  602. package/dist/__tests__/singleInk.test.js +64 -2
  603. package/dist/__tests__/singleInk.test.js.map +1 -1
  604. package/dist/__tests__/singleInkRender.test.d.ts +2 -0
  605. package/dist/__tests__/singleInkRender.test.d.ts.map +1 -0
  606. package/dist/__tests__/singleInkRender.test.js +396 -0
  607. package/dist/__tests__/singleInkRender.test.js.map +1 -0
  608. package/dist/__tests__/spaceDirective.test.js +75 -0
  609. package/dist/__tests__/spaceDirective.test.js.map +1 -1
  610. package/dist/__tests__/table/model.test.js +124 -1
  611. package/dist/__tests__/table/model.test.js.map +1 -1
  612. package/dist/__tests__/tableFillSeams.test.d.ts +2 -0
  613. package/dist/__tests__/tableFillSeams.test.d.ts.map +1 -0
  614. package/dist/__tests__/tableFillSeams.test.js +180 -0
  615. package/dist/__tests__/tableFillSeams.test.js.map +1 -0
  616. package/dist/__tests__/toc.test.js +23 -2
  617. package/dist/__tests__/toc.test.js.map +1 -1
  618. package/dist/__tests__/tocLeaderKerning.test.d.ts +2 -0
  619. package/dist/__tests__/tocLeaderKerning.test.d.ts.map +1 -0
  620. package/dist/__tests__/tocLeaderKerning.test.js +83 -0
  621. package/dist/__tests__/tocLeaderKerning.test.js.map +1 -0
  622. package/dist/__tests__/tocNumberBaseline.test.d.ts +2 -0
  623. package/dist/__tests__/tocNumberBaseline.test.d.ts.map +1 -0
  624. package/dist/__tests__/tocNumberBaseline.test.js +90 -0
  625. package/dist/__tests__/tocNumberBaseline.test.js.map +1 -0
  626. package/dist/__tests__/tocPartsHeight.test.d.ts +2 -0
  627. package/dist/__tests__/tocPartsHeight.test.d.ts.map +1 -0
  628. package/dist/__tests__/tocPartsHeight.test.js +41 -0
  629. package/dist/__tests__/tocPartsHeight.test.js.map +1 -0
  630. package/dist/__tests__/trackedLineAlign.test.d.ts +2 -0
  631. package/dist/__tests__/trackedLineAlign.test.d.ts.map +1 -0
  632. package/dist/__tests__/trackedLineAlign.test.js +96 -0
  633. package/dist/__tests__/trackedLineAlign.test.js.map +1 -0
  634. package/dist/bundle/adapters.d.ts +10 -3
  635. package/dist/bundle/adapters.d.ts.map +1 -1
  636. package/dist/bundle/adapters.js +13 -5
  637. package/dist/bundle/adapters.js.map +1 -1
  638. package/dist/bundle/api.d.ts +32 -0
  639. package/dist/bundle/api.d.ts.map +1 -1
  640. package/dist/bundle/api.js +12 -2
  641. package/dist/bundle/api.js.map +1 -1
  642. package/dist/bundle/book.d.ts +6 -1
  643. package/dist/bundle/book.d.ts.map +1 -1
  644. package/dist/bundle/book.js +89 -17
  645. package/dist/bundle/book.js.map +1 -1
  646. package/dist/bundle/codec.d.ts +87 -3
  647. package/dist/bundle/codec.d.ts.map +1 -1
  648. package/dist/bundle/codec.js +193 -13
  649. package/dist/bundle/codec.js.map +1 -1
  650. package/dist/bundle/configVersion.d.ts +295 -0
  651. package/dist/bundle/configVersion.d.ts.map +1 -0
  652. package/dist/bundle/configVersion.js +788 -0
  653. package/dist/bundle/configVersion.js.map +1 -0
  654. package/dist/bundle/index.d.ts +6 -4
  655. package/dist/bundle/index.d.ts.map +1 -1
  656. package/dist/bundle/index.js +2 -1
  657. package/dist/bundle/index.js.map +1 -1
  658. package/dist/bundle/manifest.d.ts +19 -5
  659. package/dist/bundle/manifest.d.ts.map +1 -1
  660. package/dist/bundle/manifest.js +53 -21
  661. package/dist/bundle/manifest.js.map +1 -1
  662. package/dist/bundle/types.d.ts +19 -0
  663. package/dist/bundle/types.d.ts.map +1 -1
  664. package/dist/bundle/zip.d.ts +14 -1
  665. package/dist/bundle/zip.d.ts.map +1 -1
  666. package/dist/bundle/zip.js +13 -2
  667. package/dist/bundle/zip.js.map +1 -1
  668. package/dist/canvas-backend/blockRender.d.ts +3 -1
  669. package/dist/canvas-backend/blockRender.d.ts.map +1 -1
  670. package/dist/canvas-backend/blockRender.js +27 -17
  671. package/dist/canvas-backend/blockRender.js.map +1 -1
  672. package/dist/canvas-backend/decorations.d.ts.map +1 -1
  673. package/dist/canvas-backend/decorations.js +6 -36
  674. package/dist/canvas-backend/decorations.js.map +1 -1
  675. package/dist/canvas-backend/headerFooter.d.ts +3 -1
  676. package/dist/canvas-backend/headerFooter.d.ts.map +1 -1
  677. package/dist/canvas-backend/headerFooter.js +85 -22
  678. package/dist/canvas-backend/headerFooter.js.map +1 -1
  679. package/dist/canvas-backend/index.d.ts +17 -3
  680. package/dist/canvas-backend/index.d.ts.map +1 -1
  681. package/dist/canvas-backend/index.js +75 -14
  682. package/dist/canvas-backend/index.js.map +1 -1
  683. package/dist/canvas-backend/renderResourceBlock.d.ts +45 -5
  684. package/dist/canvas-backend/renderResourceBlock.d.ts.map +1 -1
  685. package/dist/canvas-backend/renderResourceBlock.js +133 -22
  686. package/dist/canvas-backend/renderResourceBlock.js.map +1 -1
  687. package/dist/columnClip.d.ts +13 -2
  688. package/dist/columnClip.d.ts.map +1 -1
  689. package/dist/columnClip.js +37 -4
  690. package/dist/columnClip.js.map +1 -1
  691. package/dist/columnRule.d.ts +7 -2
  692. package/dist/columnRule.d.ts.map +1 -1
  693. package/dist/columnRule.js +27 -2
  694. package/dist/columnRule.js.map +1 -1
  695. package/dist/configWarnings.d.ts +26 -0
  696. package/dist/configWarnings.d.ts.map +1 -0
  697. package/dist/configWarnings.js +223 -0
  698. package/dist/configWarnings.js.map +1 -0
  699. package/dist/createLayout.d.ts +16 -1
  700. package/dist/createLayout.d.ts.map +1 -1
  701. package/dist/createLayout.js +25 -22
  702. package/dist/createLayout.js.map +1 -1
  703. package/dist/cropMarks.d.ts +28 -0
  704. package/dist/cropMarks.d.ts.map +1 -0
  705. package/dist/cropMarks.js +40 -0
  706. package/dist/cropMarks.js.map +1 -0
  707. package/dist/defaults/bodyText.d.ts +12 -2
  708. package/dist/defaults/bodyText.d.ts.map +1 -1
  709. package/dist/defaults/bodyText.js +132 -7
  710. package/dist/defaults/bodyText.js.map +1 -1
  711. package/dist/defaults/calloutStyles.d.ts +13 -2
  712. package/dist/defaults/calloutStyles.d.ts.map +1 -1
  713. package/dist/defaults/calloutStyles.js +64 -4
  714. package/dist/defaults/calloutStyles.js.map +1 -1
  715. package/dist/defaults/chipStyles.d.ts +4 -3
  716. package/dist/defaults/chipStyles.d.ts.map +1 -1
  717. package/dist/defaults/chipStyles.js +11 -3
  718. package/dist/defaults/chipStyles.js.map +1 -1
  719. package/dist/defaults/headerFooter.d.ts +11 -1
  720. package/dist/defaults/headerFooter.d.ts.map +1 -1
  721. package/dist/defaults/headerFooter.js +52 -4
  722. package/dist/defaults/headerFooter.js.map +1 -1
  723. package/dist/defaults/headingStyles.d.ts +7 -3
  724. package/dist/defaults/headingStyles.d.ts.map +1 -1
  725. package/dist/defaults/headingStyles.js +34 -6
  726. package/dist/defaults/headingStyles.js.map +1 -1
  727. package/dist/defaults/headings.d.ts +10 -2
  728. package/dist/defaults/headings.d.ts.map +1 -1
  729. package/dist/defaults/headings.js +79 -16
  730. package/dist/defaults/headings.js.map +1 -1
  731. package/dist/defaults/index.d.ts +1 -1
  732. package/dist/defaults/index.d.ts.map +1 -1
  733. package/dist/defaults/index.js +1 -1
  734. package/dist/defaults/index.js.map +1 -1
  735. package/dist/defaults/layout.d.ts.map +1 -1
  736. package/dist/defaults/layout.js +27 -0
  737. package/dist/defaults/layout.js.map +1 -1
  738. package/dist/defaults/lists-shared.d.ts +2 -0
  739. package/dist/defaults/lists-shared.d.ts.map +1 -1
  740. package/dist/defaults/lists-shared.js +2 -0
  741. package/dist/defaults/lists-shared.js.map +1 -1
  742. package/dist/defaults/math.d.ts.map +1 -1
  743. package/dist/defaults/math.js +12 -0
  744. package/dist/defaults/math.js.map +1 -1
  745. package/dist/defaults/orderedLists.d.ts +7 -1
  746. package/dist/defaults/orderedLists.d.ts.map +1 -1
  747. package/dist/defaults/orderedLists.js +30 -4
  748. package/dist/defaults/orderedLists.js.map +1 -1
  749. package/dist/defaults/page.d.ts.map +1 -1
  750. package/dist/defaults/page.js +7 -2
  751. package/dist/defaults/page.js.map +1 -1
  752. package/dist/defaults/paragraphStyles.d.ts +2 -1
  753. package/dist/defaults/paragraphStyles.d.ts.map +1 -1
  754. package/dist/defaults/paragraphStyles.js +26 -1
  755. package/dist/defaults/paragraphStyles.js.map +1 -1
  756. package/dist/defaults/resourceTypes.d.ts +5 -1
  757. package/dist/defaults/resourceTypes.d.ts.map +1 -1
  758. package/dist/defaults/resourceTypes.js +37 -6
  759. package/dist/defaults/resourceTypes.js.map +1 -1
  760. package/dist/defaults/shared.d.ts +10 -0
  761. package/dist/defaults/shared.d.ts.map +1 -1
  762. package/dist/defaults/shared.js +79 -0
  763. package/dist/defaults/shared.js.map +1 -1
  764. package/dist/defaults/tableStyle.d.ts +1 -1
  765. package/dist/defaults/tableStyle.d.ts.map +1 -1
  766. package/dist/defaults/tableStyle.js +40 -6
  767. package/dist/defaults/tableStyle.js.map +1 -1
  768. package/dist/defaults/toc.d.ts +2 -1
  769. package/dist/defaults/toc.d.ts.map +1 -1
  770. package/dist/defaults/toc.js +2 -1
  771. package/dist/defaults/toc.js.map +1 -1
  772. package/dist/defaults/unorderedLists.d.ts +1 -0
  773. package/dist/defaults/unorderedLists.d.ts.map +1 -1
  774. package/dist/defaults/unorderedLists.js +7 -1
  775. package/dist/defaults/unorderedLists.js.map +1 -1
  776. package/dist/design/layout.d.ts +41 -3
  777. package/dist/design/layout.d.ts.map +1 -1
  778. package/dist/design/layout.js +322 -90
  779. package/dist/design/layout.js.map +1 -1
  780. package/dist/design/placeholders.d.ts +39 -4
  781. package/dist/design/placeholders.d.ts.map +1 -1
  782. package/dist/design/placeholders.js +61 -11
  783. package/dist/design/placeholders.js.map +1 -1
  784. package/dist/design/richText.d.ts +110 -0
  785. package/dist/design/richText.d.ts.map +1 -0
  786. package/dist/design/richText.js +458 -0
  787. package/dist/design/richText.js.map +1 -0
  788. package/dist/frontmatter.d.ts +14 -0
  789. package/dist/frontmatter.d.ts.map +1 -1
  790. package/dist/frontmatter.js +61 -0
  791. package/dist/frontmatter.js.map +1 -1
  792. package/dist/html-backend.d.ts +60 -2
  793. package/dist/html-backend.d.ts.map +1 -1
  794. package/dist/html-backend.js +317 -62
  795. package/dist/html-backend.js.map +1 -1
  796. package/dist/hyphenate.d.ts +30 -4
  797. package/dist/hyphenate.d.ts.map +1 -1
  798. package/dist/hyphenate.js +71 -5
  799. package/dist/hyphenate.js.map +1 -1
  800. package/dist/index.d.ts +28 -19
  801. package/dist/index.d.ts.map +1 -1
  802. package/dist/index.js +17 -11
  803. package/dist/index.js.map +1 -1
  804. package/dist/knuthPlass/breakpoints.d.ts +21 -0
  805. package/dist/knuthPlass/breakpoints.d.ts.map +1 -1
  806. package/dist/knuthPlass/breakpoints.js +205 -14
  807. package/dist/knuthPlass/breakpoints.js.map +1 -1
  808. package/dist/knuthPlass/constants.d.ts +15 -0
  809. package/dist/knuthPlass/constants.d.ts.map +1 -1
  810. package/dist/knuthPlass/constants.js +15 -0
  811. package/dist/knuthPlass/constants.js.map +1 -1
  812. package/dist/knuthPlass/pretextAdapter.d.ts +23 -2
  813. package/dist/knuthPlass/pretextAdapter.d.ts.map +1 -1
  814. package/dist/knuthPlass/pretextAdapter.js +95 -9
  815. package/dist/knuthPlass/pretextAdapter.js.map +1 -1
  816. package/dist/knuthPlass/richAdapter.d.ts +26 -2
  817. package/dist/knuthPlass/richAdapter.d.ts.map +1 -1
  818. package/dist/knuthPlass/richAdapter.js +79 -18
  819. package/dist/knuthPlass/richAdapter.js.map +1 -1
  820. package/dist/knuthPlass/tracking.d.ts +24 -0
  821. package/dist/knuthPlass/tracking.d.ts.map +1 -0
  822. package/dist/knuthPlass/tracking.js +77 -0
  823. package/dist/knuthPlass/tracking.js.map +1 -0
  824. package/dist/knuthPlass/types.d.ts +66 -4
  825. package/dist/knuthPlass/types.d.ts.map +1 -1
  826. package/dist/lineInk.d.ts +12 -0
  827. package/dist/lineInk.d.ts.map +1 -0
  828. package/dist/lineInk.js +20 -0
  829. package/dist/lineInk.js.map +1 -0
  830. package/dist/locale.d.ts +26 -0
  831. package/dist/locale.d.ts.map +1 -0
  832. package/dist/locale.js +63 -0
  833. package/dist/locale.js.map +1 -0
  834. package/dist/looseLines.d.ts +44 -0
  835. package/dist/looseLines.d.ts.map +1 -0
  836. package/dist/looseLines.js +46 -0
  837. package/dist/looseLines.js.map +1 -0
  838. package/dist/math/THIRD_PARTY_LICENSES.txt +221 -0
  839. package/dist/math/engine.d.ts +24 -0
  840. package/dist/math/engine.d.ts.map +1 -1
  841. package/dist/math/engine.js +252 -83
  842. package/dist/math/engine.js.map +1 -1
  843. package/dist/math/index.d.ts +1 -1
  844. package/dist/math/index.d.ts.map +1 -1
  845. package/dist/math/index.js +1 -1
  846. package/dist/math/index.js.map +1 -1
  847. package/dist/math/mathjax.d.ts +20 -0
  848. package/dist/math/mathjax.d.ts.map +1 -0
  849. package/dist/math/mathjax.js +29 -0
  850. package/dist/measure/breakRules.d.ts +50 -0
  851. package/dist/measure/breakRules.d.ts.map +1 -0
  852. package/dist/measure/breakRules.js +116 -0
  853. package/dist/measure/breakRules.js.map +1 -0
  854. package/dist/measure/cache.d.ts.map +1 -1
  855. package/dist/measure/cache.js +26 -5
  856. package/dist/measure/cache.js.map +1 -1
  857. package/dist/measure/cjk.d.ts +19 -0
  858. package/dist/measure/cjk.d.ts.map +1 -0
  859. package/dist/measure/cjk.js +70 -0
  860. package/dist/measure/cjk.js.map +1 -0
  861. package/dist/measure/font.d.ts +21 -5
  862. package/dist/measure/font.d.ts.map +1 -1
  863. package/dist/measure/font.js +61 -4
  864. package/dist/measure/font.js.map +1 -1
  865. package/dist/measure/index.d.ts +16 -2
  866. package/dist/measure/index.d.ts.map +1 -1
  867. package/dist/measure/index.js +61 -1
  868. package/dist/measure/index.js.map +1 -1
  869. package/dist/measure/links.d.ts +15 -0
  870. package/dist/measure/links.d.ts.map +1 -0
  871. package/dist/measure/links.js +115 -0
  872. package/dist/measure/links.js.map +1 -0
  873. package/dist/measure/plain.d.ts +10 -2
  874. package/dist/measure/plain.d.ts.map +1 -1
  875. package/dist/measure/plain.js +175 -25
  876. package/dist/measure/plain.js.map +1 -1
  877. package/dist/measure/rich.d.ts +86 -6
  878. package/dist/measure/rich.d.ts.map +1 -1
  879. package/dist/measure/rich.js +808 -131
  880. package/dist/measure/rich.js.map +1 -1
  881. package/dist/measure/spaces.d.ts +34 -0
  882. package/dist/measure/spaces.d.ts.map +1 -0
  883. package/dist/measure/spaces.js +42 -0
  884. package/dist/measure/spaces.js.map +1 -0
  885. package/dist/measure/types.d.ts +99 -0
  886. package/dist/measure/types.d.ts.map +1 -1
  887. package/dist/measure/types.js +19 -0
  888. package/dist/measure/types.js.map +1 -1
  889. package/dist/numberWords.d.ts +22 -0
  890. package/dist/numberWords.d.ts.map +1 -0
  891. package/dist/numberWords.js +155 -0
  892. package/dist/numberWords.js.map +1 -0
  893. package/dist/numbering.d.ts +52 -3
  894. package/dist/numbering.d.ts.map +1 -1
  895. package/dist/numbering.js +116 -16
  896. package/dist/numbering.js.map +1 -1
  897. package/dist/parse/blockParser.d.ts.map +1 -1
  898. package/dist/parse/blockParser.js +54 -7
  899. package/dist/parse/blockParser.js.map +1 -1
  900. package/dist/parse/index.d.ts +1 -1
  901. package/dist/parse/index.d.ts.map +1 -1
  902. package/dist/parse/index.js.map +1 -1
  903. package/dist/parse/injectSpans.d.ts +3 -1
  904. package/dist/parse/injectSpans.d.ts.map +1 -1
  905. package/dist/parse/injectSpans.js +8 -4
  906. package/dist/parse/injectSpans.js.map +1 -1
  907. package/dist/parse/inlineFormatting.d.ts +50 -2
  908. package/dist/parse/inlineFormatting.d.ts.map +1 -1
  909. package/dist/parse/inlineFormatting.js +441 -26
  910. package/dist/parse/inlineFormatting.js.map +1 -1
  911. package/dist/parse/inlineSnippet.d.ts +12 -3
  912. package/dist/parse/inlineSnippet.d.ts.map +1 -1
  913. package/dist/parse/inlineSnippet.js +10 -3
  914. package/dist/parse/inlineSnippet.js.map +1 -1
  915. package/dist/parse/links.d.ts +9 -0
  916. package/dist/parse/links.d.ts.map +1 -0
  917. package/dist/parse/links.js +23 -0
  918. package/dist/parse/links.js.map +1 -0
  919. package/dist/parse/sourceMapping.d.ts.map +1 -1
  920. package/dist/parse/sourceMapping.js +68 -7
  921. package/dist/parse/sourceMapping.js.map +1 -1
  922. package/dist/parse/types.d.ts +32 -0
  923. package/dist/parse/types.d.ts.map +1 -1
  924. package/dist/pipeline/bandCaps.d.ts +26 -5
  925. package/dist/pipeline/bandCaps.d.ts.map +1 -1
  926. package/dist/pipeline/bandCaps.js +47 -20
  927. package/dist/pipeline/bandCaps.js.map +1 -1
  928. package/dist/pipeline/build.d.ts.map +1 -1
  929. package/dist/pipeline/build.js +1417 -172
  930. package/dist/pipeline/build.js.map +1 -1
  931. package/dist/pipeline/buildBlockKind.d.ts +4 -0
  932. package/dist/pipeline/buildBlockKind.d.ts.map +1 -1
  933. package/dist/pipeline/buildBlockKind.js +38 -7
  934. package/dist/pipeline/buildBlockKind.js.map +1 -1
  935. package/dist/pipeline/buildHelpers.d.ts +5 -2
  936. package/dist/pipeline/buildHelpers.d.ts.map +1 -1
  937. package/dist/pipeline/buildHelpers.js +101 -25
  938. package/dist/pipeline/buildHelpers.js.map +1 -1
  939. package/dist/pipeline/buildMeasurement.d.ts.map +1 -1
  940. package/dist/pipeline/buildMeasurement.js +6 -2
  941. package/dist/pipeline/buildMeasurement.js.map +1 -1
  942. package/dist/pipeline/calloutLayout.d.ts +34 -7
  943. package/dist/pipeline/calloutLayout.d.ts.map +1 -1
  944. package/dist/pipeline/calloutLayout.js +331 -44
  945. package/dist/pipeline/calloutLayout.js.map +1 -1
  946. package/dist/pipeline/chips.d.ts.map +1 -1
  947. package/dist/pipeline/chips.js +3 -0
  948. package/dist/pipeline/chips.js.map +1 -1
  949. package/dist/pipeline/columnBalancing.d.ts +26 -6
  950. package/dist/pipeline/columnBalancing.d.ts.map +1 -1
  951. package/dist/pipeline/columnBalancing.js +82 -21
  952. package/dist/pipeline/columnBalancing.js.map +1 -1
  953. package/dist/pipeline/config.d.ts +18 -0
  954. package/dist/pipeline/config.d.ts.map +1 -1
  955. package/dist/pipeline/config.js +44 -7
  956. package/dist/pipeline/config.js.map +1 -1
  957. package/dist/pipeline/contentWarnings.d.ts +50 -0
  958. package/dist/pipeline/contentWarnings.d.ts.map +1 -0
  959. package/dist/pipeline/contentWarnings.js +362 -0
  960. package/dist/pipeline/contentWarnings.js.map +1 -0
  961. package/dist/pipeline/continuation.d.ts.map +1 -1
  962. package/dist/pipeline/continuation.js +25 -5
  963. package/dist/pipeline/continuation.js.map +1 -1
  964. package/dist/pipeline/floatPlacement.d.ts +16 -7
  965. package/dist/pipeline/floatPlacement.d.ts.map +1 -1
  966. package/dist/pipeline/floatPlacement.js +22 -5
  967. package/dist/pipeline/floatPlacement.js.map +1 -1
  968. package/dist/pipeline/floatSlots.d.ts +30 -4
  969. package/dist/pipeline/floatSlots.d.ts.map +1 -1
  970. package/dist/pipeline/floatSlots.js +42 -7
  971. package/dist/pipeline/floatSlots.js.map +1 -1
  972. package/dist/pipeline/headerFooter.d.ts +125 -11
  973. package/dist/pipeline/headerFooter.d.ts.map +1 -1
  974. package/dist/pipeline/headerFooter.js +444 -69
  975. package/dist/pipeline/headerFooter.js.map +1 -1
  976. package/dist/pipeline/headingDesignCuts.d.ts +40 -0
  977. package/dist/pipeline/headingDesignCuts.d.ts.map +1 -0
  978. package/dist/pipeline/headingDesignCuts.js +72 -0
  979. package/dist/pipeline/headingDesignCuts.js.map +1 -0
  980. package/dist/pipeline/headingStyles.d.ts +12 -0
  981. package/dist/pipeline/headingStyles.d.ts.map +1 -1
  982. package/dist/pipeline/headingStyles.js +45 -1
  983. package/dist/pipeline/headingStyles.js.map +1 -1
  984. package/dist/pipeline/lists.d.ts +33 -1
  985. package/dist/pipeline/lists.d.ts.map +1 -1
  986. package/dist/pipeline/lists.js +53 -2
  987. package/dist/pipeline/lists.js.map +1 -1
  988. package/dist/pipeline/measureContentBlock.d.ts +25 -1
  989. package/dist/pipeline/measureContentBlock.d.ts.map +1 -1
  990. package/dist/pipeline/measureContentBlock.js +137 -17
  991. package/dist/pipeline/measureContentBlock.js.map +1 -1
  992. package/dist/pipeline/outline.d.ts +10 -5
  993. package/dist/pipeline/outline.d.ts.map +1 -1
  994. package/dist/pipeline/outline.js +38 -14
  995. package/dist/pipeline/outline.js.map +1 -1
  996. package/dist/pipeline/paragraphContainers.d.ts +13 -4
  997. package/dist/pipeline/paragraphContainers.d.ts.map +1 -1
  998. package/dist/pipeline/paragraphContainers.js +4 -3
  999. package/dist/pipeline/paragraphContainers.js.map +1 -1
  1000. package/dist/pipeline/partPalette.d.ts +49 -3
  1001. package/dist/pipeline/partPalette.d.ts.map +1 -1
  1002. package/dist/pipeline/partPalette.js +414 -46
  1003. package/dist/pipeline/partPalette.js.map +1 -1
  1004. package/dist/pipeline/parts.d.ts +5 -1
  1005. package/dist/pipeline/parts.d.ts.map +1 -1
  1006. package/dist/pipeline/parts.js +16 -0
  1007. package/dist/pipeline/parts.js.map +1 -1
  1008. package/dist/pipeline/placeholders.d.ts +152 -3
  1009. package/dist/pipeline/placeholders.d.ts.map +1 -1
  1010. package/dist/pipeline/placeholders.js +259 -33
  1011. package/dist/pipeline/placeholders.js.map +1 -1
  1012. package/dist/pipeline/placement.d.ts +6 -1
  1013. package/dist/pipeline/placement.d.ts.map +1 -1
  1014. package/dist/pipeline/placement.js +13 -2
  1015. package/dist/pipeline/placement.js.map +1 -1
  1016. package/dist/pipeline/raggedLines.d.ts +5 -0
  1017. package/dist/pipeline/raggedLines.d.ts.map +1 -1
  1018. package/dist/pipeline/raggedLines.js +24 -3
  1019. package/dist/pipeline/raggedLines.js.map +1 -1
  1020. package/dist/pipeline/resourceLayout.d.ts +6 -4
  1021. package/dist/pipeline/resourceLayout.d.ts.map +1 -1
  1022. package/dist/pipeline/resourceLayout.js +137 -36
  1023. package/dist/pipeline/resourceLayout.js.map +1 -1
  1024. package/dist/pipeline/resourceNumbering.d.ts.map +1 -1
  1025. package/dist/pipeline/resourceNumbering.js +5 -15
  1026. package/dist/pipeline/resourceNumbering.js.map +1 -1
  1027. package/dist/pipeline/styles.d.ts +38 -5
  1028. package/dist/pipeline/styles.d.ts.map +1 -1
  1029. package/dist/pipeline/styles.js +99 -46
  1030. package/dist/pipeline/styles.js.map +1 -1
  1031. package/dist/pipeline/toc.d.ts.map +1 -1
  1032. package/dist/pipeline/toc.js +41 -5
  1033. package/dist/pipeline/toc.js.map +1 -1
  1034. package/dist/react/createLayout.d.ts +20 -0
  1035. package/dist/react/createLayout.d.ts.map +1 -0
  1036. package/dist/react/createLayout.js +50 -0
  1037. package/dist/react/createLayout.js.map +1 -0
  1038. package/dist/react/index.d.ts +3 -0
  1039. package/dist/react/index.d.ts.map +1 -0
  1040. package/dist/react/index.js +4 -0
  1041. package/dist/react/index.js.map +1 -0
  1042. package/dist/svg/singleInk.d.ts +46 -1
  1043. package/dist/svg/singleInk.d.ts.map +1 -1
  1044. package/dist/svg/singleInk.js +180 -10
  1045. package/dist/svg/singleInk.js.map +1 -1
  1046. package/dist/table/model.d.ts +36 -1
  1047. package/dist/table/model.d.ts.map +1 -1
  1048. package/dist/table/model.js +163 -20
  1049. package/dist/table/model.js.map +1 -1
  1050. package/dist/types.d.ts +979 -68
  1051. package/dist/types.d.ts.map +1 -1
  1052. package/dist/vdt.d.ts +439 -13
  1053. package/dist/vdt.d.ts.map +1 -1
  1054. package/dist/vdt.js +91 -0
  1055. package/dist/vdt.js.map +1 -1
  1056. package/dist/worker/client.d.ts +15 -1
  1057. package/dist/worker/client.d.ts.map +1 -1
  1058. package/dist/worker/client.js +52 -3
  1059. package/dist/worker/client.js.map +1 -1
  1060. package/dist/worker/entryUrl.d.ts +15 -0
  1061. package/dist/worker/entryUrl.d.ts.map +1 -0
  1062. package/dist/worker/entryUrl.js +33 -0
  1063. package/dist/worker/entryUrl.js.map +1 -0
  1064. package/dist/worker/fonts.d.ts +18 -0
  1065. package/dist/worker/fonts.d.ts.map +1 -0
  1066. package/dist/worker/fonts.js +53 -0
  1067. package/dist/worker/fonts.js.map +1 -0
  1068. package/dist/worker/layout.worker.js +41 -6
  1069. package/dist/worker/layout.worker.js.map +1 -1
  1070. package/dist/worker/protocol.d.ts +4 -0
  1071. package/dist/worker/protocol.d.ts.map +1 -1
  1072. package/package.json +12 -5
package/dist/vdt.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import type { ColorPaletteEntry, DocumentMetadata, PostextResource, Resource, TableCellAlign, TableCellVerticalAlign, ResolvedPageConfig, ResolvedLayoutConfig, ResolvedBodyTextConfig, ResolvedHeadingsConfig, ResolvedTableStyleConfig, ResolvedNamedTableStyleConfig, TableRules, ResolvedCaptionStyleConfig, ResolvedDiagramStyleConfig, ResolvedParagraphStyleConfig, ResolvedCalloutStyleConfig, ResolvedChipStyleConfig, CalloutSpan, CalloutPlacement, ResolvedUnorderedListsConfig, ResolvedOrderedListsConfig, ResolvedMathConfig, ResolvedDesignSlot, ResolvedPartsConfig, ResolvedHeadingStyleConfig, ResolvedTocConfig, PageRole, PartState } from './types';
1
+ import type { ColorPaletteEntry, DocumentMetadata, PostextResource, Resource, TableCellAlign, TableCellVerticalAlign, ResolvedPageConfig, ResolvedLayoutConfig, ResolvedBodyTextConfig, ResolvedHeadingsConfig, ResolvedTableStyleConfig, ResolvedNamedTableStyleConfig, TableRules, ResolvedCaptionStyleConfig, ResolvedDiagramStyleConfig, ResolvedParagraphStyleConfig, ResolvedCalloutStyleConfig, ResolvedChipStyleConfig, CalloutSpan, CalloutPlacement, ResolvedUnorderedListsConfig, ResolvedOrderedListsConfig, ResolvedMathConfig, ResolvedPdfGenerationConfig, ResolvedDesignSlot, ResolvedPartsConfig, ResolvedHeadingStyleConfig, ResolvedTocConfig, PageRole, PartState, PostextConfig } from './types';
2
2
  import type { NumeralStyle } from './numbering';
3
3
  import type { MathRender } from './math/types';
4
4
  export interface BoundingBox {
@@ -33,10 +33,18 @@ export interface ResolvedConfig {
33
33
  headingStyles: ResolvedHeadingStyleConfig[];
34
34
  /** The table of contents `:::toc` prints. */
35
35
  toc: ResolvedTocConfig;
36
+ /** The document language (`PostextConfig.locale`) when the config sets
37
+ * one; `resolvedLocale()` falls back to the hyphenation locale. Spelled-
38
+ * out heading numbers follow it. */
39
+ locale?: PostextConfig['locale'];
36
40
  /** The document's colour palette, kept so per-resource-type caption
37
41
  * overrides (`ResourceType.captionStyle`) can resolve palette colours at
38
42
  * layout time. Absent when the config defines no palette. */
39
43
  colorPalette?: ColorPaletteEntry[];
44
+ /** The PDF settings (`PostextConfig.pdfGeneration`), resolved, when the
45
+ * config sets any. Layout ignores them; `renderToPdf` in postext-pdf
46
+ * reads them for each setting its own options leave out. */
47
+ pdfGeneration?: ResolvedPdfGenerationConfig;
40
48
  }
41
49
  export type VDTBlockType = 'paragraph' | 'heading' | 'resource' | 'blockquote' | 'listItem' | 'footnoteRef' | 'mathDisplay' | 'callout';
42
50
  export type TextAlign = 'left' | 'justify' | 'center' | 'right';
@@ -50,6 +58,9 @@ export interface VDTChipRun {
50
58
  italic?: boolean;
51
59
  /** Script offset off the baseline (px, positive down). */
52
60
  baselineShift?: number;
61
+ /** The first of a subscript and a superscript set over each other, as
62
+ * on {@link VDTLineSegment.stacked}. */
63
+ stacked?: boolean;
53
64
  }
54
65
  /** A laid-out inline chip (`:chip[…]`): a box drawn from
55
66
  * `x + marginLeft` (the segment's left edge `x`), `boxWidth` wide, from
@@ -85,6 +96,13 @@ export interface VDTLineSegment {
85
96
  width: number;
86
97
  bold?: boolean;
87
98
  italic?: boolean;
99
+ /** Target of the Markdown link (`[text](url)`) this segment is part of:
100
+ * an `http:`, `https:`, `mailto:`, `tel:` or `ftp:` URL, or a relative
101
+ * one. The HTML backend wraps the linked words in an `<a>`, the PDF
102
+ * backend adds a URI link annotation (absolute URLs only); the canvas
103
+ * paints them as plain text. A word glued to the link text (its closing
104
+ * full stop) shares the link. */
105
+ href?: string;
88
106
  /** Present when `kind === 'math'`. The rendered formula. */
89
107
  mathRender?: MathRender;
90
108
  /** Present when `kind === 'swatch'`: an inline colour swatch (`:swatch{…}`),
@@ -102,6 +120,12 @@ export interface VDTLineSegment {
102
120
  * Renderers recolour it (link colour) and the PDF backend emits a link
103
121
  * annotation to the resource's named destination. */
104
122
  refResourceId?: string;
123
+ /** Set on the second and later segments of one `:ref` painted as several
124
+ * runs (a label in small capitals: one run per case). Such a segment
125
+ * continues the previous one's reference: it takes no plain-text char of
126
+ * its own, and renderers extend that segment's link (one anchor, one
127
+ * annotation, one `Link` element) instead of opening another. */
128
+ refContinues?: boolean;
105
129
  /** True when this segment is part of a caption's numbered label, so renderers
106
130
  * paint it in the configured caption-label colour. */
107
131
  captionLabel?: boolean;
@@ -116,12 +140,53 @@ export interface VDTLineSegment {
116
140
  * renderers add to the line's baseline. */
117
141
  script?: 'sup' | 'sub';
118
142
  baselineShift?: number;
143
+ /** Set on the first of a subscript and a superscript that touch
144
+ * (`T~0~^2^`, `T^2^~0~`), which are set one over the other: this segment
145
+ * advances nothing (`width` 0) and the next one is painted at the same
146
+ * x, its `width` the pair's advance (the wider of the two). A renderer
147
+ * that paints segments one after another by their widths sets them
148
+ * stacked as it is; one that flows text (HTML inline runs) gives this
149
+ * segment a box that takes no room. */
150
+ stacked?: boolean;
119
151
  }
120
152
  export interface VDTLine {
121
153
  text: string;
154
+ /** Where the line sits and its natural width: the sum of its segments'
155
+ * widths, spaces at their measured width. A justified line (not the last
156
+ * of its paragraph, not {@link ragged}, with a word space) is painted
157
+ * wider: its spaces take the slack (see {@link justifiedSpaceRatio}), so
158
+ * its text runs from `bbox.x` to the right edge of its block,
159
+ * `block.bbox.x + block.bbox.width`. So does a last line wider than that
160
+ * edge, whose spaces are narrowed to fit. An overlay or a hit test on the
161
+ * painted text widens or narrows such a line to that edge. */
122
162
  bbox: BoundingBox;
123
163
  baseline: number;
164
+ /** The line ends inside a word, or at least not at a space. Mostly the
165
+ * break added the hyphen it ends with: a dictionary syllable, a soft
166
+ * hyphen typed in the text, a word divided for being wider than the
167
+ * line. It is also set where the break adds nothing: after a hyphen the
168
+ * word carries ({@link hardHyphen}; on the breaker that sets words run by
169
+ * run, and on Knuth–Plass for ragged text), after an em or en dash set
170
+ * closed between words (`bodyText.breakAfterDashes`, on every breaker but
171
+ * pretext's first-fit one; no `hardHyphen`, the line ends on the dash),
172
+ * at a URL joint, between ideographs. Pretext's first-fit breaker (a
173
+ * heading, a paragraph set line by line without formatting) leaves it
174
+ * false after a hyphen or a dash of the text. Whether a final `-` is the
175
+ * text's own is read from `hardHyphen`. */
124
176
  hyphenated: boolean;
177
+ /** Set on a {@link hyphenated} line that ends after a hyphen the text
178
+ * carries ("meta-" | "analyses", or a word wider than the line cut right
179
+ * after one): the hyphen is part of the text and of the line's source
180
+ * range, and the break added nothing. Absent otherwise. */
181
+ hardHyphen?: boolean;
182
+ /** The line opens with the hyphen of the compound the line before broke
183
+ * at, repeated (`bodyText.repeatHyphen`, "vencer-" | "-se"): its `text`
184
+ * and first segment start with a `-` that is not in the source there,
185
+ * and `plainStart` / `sourceStart` point past it. The PDF backend paints
186
+ * it under an `/ActualText` that leaves it out, so text copied or
187
+ * extracted from the PDF reads the word once ("vencer-se"). Absent
188
+ * otherwise. */
189
+ repeatedHyphen?: boolean;
125
190
  /** Per-segment data for justified rendering */
126
191
  segments?: VDTLineSegment[];
127
192
  /** Whether this is the last line of the paragraph (ragged even when justified) */
@@ -129,7 +194,8 @@ export interface VDTLine {
129
194
  /** Set ragged inside a justified paragraph: a line a URL made unfillable
130
195
  * (its few word spaces would stretch past the loose-line threshold). */
131
196
  ragged?: boolean;
132
- /** Approximate character offset in the original markdown source where this line begins */
197
+ /** Approximate character offset in the original markdown source where this line begins.
198
+ * A line that opens with a backslash escape (`\$40`) begins at its backslash. */
133
199
  sourceStart?: number;
134
200
  /** Approximate character offset just past the last source character contributing to this line */
135
201
  sourceEnd?: number;
@@ -138,8 +204,18 @@ export interface VDTLine {
138
204
  /** Plain-text end offset within the block's plain text (exclusive) */
139
205
  plainEnd?: number;
140
206
  /** For justified (non-last) lines: ratio of the applied justified space width
141
- * to the normal space width of the block's font. 1.0 means natural spacing. */
207
+ * to the normal space width of the block's font. 1.0 means natural spacing.
208
+ * The line's `bbox.width` stays its natural width; painted, each space
209
+ * grows by the slack shared among them, and the line ends on the right
210
+ * edge of the measure. */
142
211
  justifiedSpaceRatio?: number;
212
+ /** Tracking this line takes on top of its block's (`VDTBlock.letterSpacing`),
213
+ * px after every glyph — negative tightens: a justified line its word
214
+ * spaces alone would set past `bodyText.maxWordSpacing` or
215
+ * `minWordSpacing`, within `bodyText.maxJustifyTracking`. Measured into
216
+ * the widths of its text segments; renderers paint the line with the sum
217
+ * of both. Absent when the line takes none. */
218
+ letterSpacing?: number;
143
219
  }
144
220
  /** A single laid-out table cell: its primary grid position, pixel rect within
145
221
  * the block, alignment, header flag, and the measured rich-text lines of its
@@ -157,6 +233,9 @@ export interface VDTResourceTableCellImage {
157
233
  /** Alternative text of the image (the resource's `altText`, else its
158
234
  * caption), for accessible output. */
159
235
  altText?: string;
236
+ /** For an SVG with a print master (`Resource.svg.pdfFileId`): the
237
+ * master's id, which the PDF backend embeds in place of the SVG. */
238
+ pdfFileId?: string;
160
239
  /** Pixel rect of the image, in the same frame as the cell `rect`. */
161
240
  rect: BoundingBox;
162
241
  }
@@ -177,6 +256,10 @@ export interface VDTResourceTableCell {
177
256
  /** The cell's own fill (hex, `TableCell.background` resolved through the
178
257
  * palette), painted instead of the table's header / body fill. */
179
258
  background?: string;
259
+ /** A body cell on an alternate (even-numbered) body row of a table with
260
+ * zebra rows: it takes `bodyAlternateBackground` instead of
261
+ * `bodyBackground`. Set only while the table style enables them. */
262
+ alternate?: boolean;
180
263
  }
181
264
  /** Laid-out table geometry for a `kind: 'table'` resource block. */
182
265
  export interface VDTResourceTableLayout {
@@ -203,6 +286,9 @@ export interface VDTResourceTableLayout {
203
286
  headerBackground?: string;
204
287
  /** Body background colour (hex), or undefined for no fill. */
205
288
  bodyBackground?: string;
289
+ /** Fill of the alternate body rows (hex, `tableStyle.bodyAlternateBackground`),
290
+ * painted on the cells marked `alternate`; absent without zebra rows. */
291
+ bodyAlternateBackground?: string;
206
292
  cells: VDTResourceTableCell[];
207
293
  /** Column x-edges (length = columnCount + 1) relative to block origin. */
208
294
  columnEdges: number[];
@@ -232,6 +318,34 @@ export interface RoundedOutline {
232
318
  * the frame is stroked along and the fills are clipped to; with half the
233
319
  * border width it is the frame's outer contour. */
234
320
  export declare function tableFrameOutline(table: Pick<VDTResourceTableLayout, 'rowEdges' | 'frameRadii'>, x: number, y: number, width: number, outset?: number): RoundedOutline;
321
+ /** The fill (hex) a table cell is painted with, or undefined for none: the
322
+ * cell's own `background`, else the header tint for a header cell, else
323
+ * the alternate body fill on a zebra row, else the body fill. Every
324
+ * backend paints cells through it. */
325
+ export declare function tableCellFill(table: Pick<VDTResourceTableLayout, 'headerBackground' | 'bodyBackground' | 'bodyAlternateBackground'>, cell: Pick<VDTResourceTableCell, 'background' | 'isHeader' | 'alternate'>): string | undefined;
326
+ /** One cell fill as {@link tableCellFillRects} paints it. */
327
+ export interface TableCellFillRects {
328
+ /** The fill (hex), as {@link tableCellFill} gives it. */
329
+ fill: string;
330
+ /** The cell's rect, then the strips it runs across the edges it shares
331
+ * with later neighbours. */
332
+ rects: BoundingBox[];
333
+ }
334
+ /**
335
+ * The cell fills of a laid-out table in paint order, each as the cell's
336
+ * rect followed by a strip across every edge it shares with an opaque
337
+ * neighbour painted after it: along the shared part of the edge, reaching
338
+ * half the narrower cell into each. A renderer that anti-aliases each fill
339
+ * on its own — an HTML page at a fractional device-pixel ratio, a PDF
340
+ * viewer — would otherwise let the page show through where two fills meet
341
+ * inside a pixel: a faint seam between cells of one tint. The strip covers
342
+ * the edge's pixels whole, and the later cell, painted over it, blends its
343
+ * edge into the earlier fill instead of the page. Translucent fills keep
344
+ * to their own cell (the overlap would show). The HTML and PDF backends
345
+ * paint the fills this way; the canvas snaps its fills to device pixels
346
+ * instead.
347
+ */
348
+ export declare function tableCellFillRects(table: Pick<VDTResourceTableLayout, 'cells' | 'headerBackground' | 'bodyBackground' | 'bodyAlternateBackground'>): TableCellFillRects[];
235
349
  /** Background bar painted behind a resource caption (issue #49 §7). */
236
350
  export interface VDTCaptionBar {
237
351
  /** Bar rect — block-relative until placement offsets it, like caption lines. */
@@ -375,15 +489,31 @@ export interface VDTBlock {
375
489
  * in-column rendering shows as spaces. */
376
490
  titleBreaks?: number[];
377
491
  titleLength?: number;
492
+ /** The heading's title as written in the source — before its level's
493
+ * (or style's) `textTransform`, numbering prefix excluded, forced title
494
+ * breaks as spaces. Present only when the lines print it otherwise (an
495
+ * `uppercase` heading) and the title cites no resource (a `:ref` label
496
+ * is resolved in the lines only), so PDF bookmarks can name the heading
497
+ * as it was written (EF-81). The `{titleText}` design placeholder is
498
+ * the title as printed, transform applied. */
499
+ sourceTitle?: string;
378
500
  /** Index of the originating content block in the parsed markdown block
379
501
  * list. Stable across layout passes — used by column balancing to key
380
- * extra-spacing adjustments to headings. */
502
+ * extra-spacing adjustments to headings. A floated figure or table (in
503
+ * `page.floats`, or a page-wide one in a span column) carries the index
504
+ * of the block that first cites or embeds it, which is where a tagged
505
+ * PDF reads it. */
381
506
  contentIndex?: number;
382
507
  /** Id of the heading style (`{style="…"}`) applied to this heading. */
383
508
  headingStyleId?: string;
384
509
  /** True for a heading whose style has `numbered: false`: it advances no
385
510
  * counter and `{chapterNumber}` is empty on its pages. */
386
511
  unnumbered?: boolean;
512
+ /** True for a level-1 heading whose style has `runningChapter: false` (a
513
+ * plate, a map): the running heads pass over it and keep naming the
514
+ * chapter in force before it (`{chapterTitle}`, `{chapterNumber}`,
515
+ * `{attr.<key>}`, the `h1` guide words). */
516
+ notRunningChapter?: boolean;
387
517
  /** Present on the part row of an expanded `:::toc`: the row's design is
388
518
  * laid out from `toc.parts.design` with these values (see
389
519
  * `buildHeadersAndFooters`), replacing the block's (empty) line. */
@@ -403,6 +533,11 @@ export interface VDTBlock {
403
533
  pageIndex?: number;
404
534
  };
405
535
  numberPrefix?: string;
536
+ /** A numbered heading's counter: its level's running count (the `3` of
537
+ * a third chapter, whatever its template prints). Backs `{numberDecimal}`,
538
+ * `{numberRoman}`, `{numberWords}`… in heading designs. Absent on
539
+ * unnumbered headings and other blocks. */
540
+ headingNumber?: number;
406
541
  fontString: string;
407
542
  boldFontString?: string;
408
543
  italicFontString?: string;
@@ -413,10 +548,18 @@ export interface VDTBlock {
413
548
  /** Colour for inline `:ref` segments (`refResourceId` set). */
414
549
  refColor?: string;
415
550
  textAlign: TextAlign;
416
- /** Tracking applied to this block's text (px added after every glyph).
417
- * Set by column balancing on a loose paragraph; renderers paint it via
418
- * canvas `letterSpacing`, CSS `letter-spacing` or PDF `Tc`. */
551
+ /** Tracking applied to this block's text (px added after every glyph;
552
+ * negative tightens). Set by column balancing on a loose paragraph, on
553
+ * a paragraph set a line short to pull up a runt, and on a heading whose
554
+ * level or heading style sets `letterSpacing` (EF-83). Renderers paint it
555
+ * via canvas `letterSpacing`, CSS `letter-spacing` or PDF `Tc`, adding a
556
+ * line's own `VDTLine.letterSpacing`. */
419
557
  letterSpacing?: number;
558
+ /** Column balancing: the levers that fired on this block — space added
559
+ * above it, the paragraph run a line long — and how much. Absent when
560
+ * balancing left the block alone. The band caps that cut a band level
561
+ * are recorded on its columns (`VDTColumn.bandCapped`, `trailingCap`). */
562
+ balancing?: VDTBalancing;
420
563
  /** Character offset in the original markdown where the source content for this block starts */
421
564
  sourceStart?: number;
422
565
  /** Character offset just past the last source character for this block */
@@ -435,8 +578,17 @@ export interface VDTBlock {
435
578
  bulletColor?: string;
436
579
  /** Absolute page X coordinate where the bullet is drawn */
437
580
  bulletOffsetX?: number;
438
- /** Absolute page Y coordinate for the bullet's vertical midpoint (paired with textBaseline='middle') */
581
+ /** Absolute page Y coordinate for the bullet's vertical midpoint (paired
582
+ * with textBaseline='middle'): its em box centred on the text's
583
+ * x-height. Every marker has it, a contents number included, as up to
584
+ * postext 1.4; a renderer that knows `bulletBaselineY` prefers that. */
439
585
  bulletY?: number;
586
+ /** Absolute page Y coordinate of the baseline a marker set as text sits
587
+ * on — a contents entry's number, which shares the first line's baseline
588
+ * whatever its face and size. When present, renderers paint the marker
589
+ * (and its separator) with its alphabetic baseline here instead of
590
+ * centring it on `bulletY`. Absent for list bullets and numbers. */
591
+ bulletBaselineY?: number;
440
592
  /** Ordered-list separator drawn as its own run after the number (only when
441
593
  * its style differs from the number's; otherwise `bulletText` carries it). */
442
594
  separatorText?: string;
@@ -444,7 +596,8 @@ export interface VDTBlock {
444
596
  separatorFontString?: string;
445
597
  /** Separator colour (hex) */
446
598
  separatorColor?: string;
447
- /** Absolute page X coordinate where the separator run starts (shares `bulletY`) */
599
+ /** Absolute page X coordinate where the separator run starts (shares the
600
+ * bullet's `bulletY`, or its `bulletBaselineY` when set) */
448
601
  separatorX?: number;
449
602
  /** List kind for `listItem` blocks — drives bullet shape and text decoration. */
450
603
  listKind?: 'unordered' | 'ordered' | 'task';
@@ -457,7 +610,10 @@ export interface VDTBlock {
457
610
  tex?: string;
458
611
  /** When true, the block is skipped during rendering but still reserves
459
612
  * its bbox space within the column flow. Used for headings with
460
- * `span: 'page'` whose visual output is produced by an opener band. */
613
+ * `span: 'page'` whose visual output is produced by an opener band, and
614
+ * for structural headings (`hidden` on their level or style), which
615
+ * reserve nothing: their lines keep the text (contents, bookmarks,
616
+ * running heads) but have no height. */
461
617
  hidden?: boolean;
462
618
  /** Optional in-column design slot rendered in place of the block's default
463
619
  * text content. Populated for heading blocks whose level has
@@ -506,6 +662,36 @@ export interface ResolvedCalloutBlock {
506
662
  /** On a split callout: `true` while another fragment follows this one. */
507
663
  continued?: boolean;
508
664
  }
665
+ /** The column-balancing levers (`headings.balancing`), in the order they
666
+ * are tried on a short column:
667
+ * - `trailingCallout` — a box closing the column moved down by the room
668
+ * under its foot (after `afterFloat` with `closingBox: 'last'`, never
669
+ * with `'off'`);
670
+ * - `heading` — whole grid lines above a heading;
671
+ * - `listEnd` — a grid line where a list ends;
672
+ * - `afterDisplay` — a grid line under a display formula or a box;
673
+ * - `afterFloat` — a grid line under a float band heading the column;
674
+ * - `looseParagraph` — a paragraph re-broken a line long (plus tracking
675
+ * when word spacing alone could not gain the line). */
676
+ export type BalanceLever = 'trailingCallout' | 'heading' | 'listEnd' | 'afterDisplay' | 'afterFloat' | 'looseParagraph';
677
+ /** What column balancing did to one block (`VDTBlock.balancing`). */
678
+ export interface VDTBalancing {
679
+ /** The levers that fired on the block, in the order above. Usually one;
680
+ * a paragraph after a list can take the list-end line and also run a
681
+ * line long. */
682
+ levers: BalanceLever[];
683
+ /** Space the spacing levers added above the block, in px: whole grid
684
+ * lines, or the exact room under a closing box (`trailingCallout`).
685
+ * `0` when only `looseParagraph` fired — that paragraph grows by its
686
+ * extra lines instead. */
687
+ spaceAbove: number;
688
+ /** `looseParagraph`: lines the paragraph gained. */
689
+ extraLines?: number;
690
+ /** `looseParagraph`: tracking that gained the line, in thousandths of an
691
+ * em (`0` when word spacing alone did); the block's `letterSpacing` is
692
+ * the same value in px. */
693
+ tracking?: number;
694
+ }
509
695
  export interface VDTColumn {
510
696
  index: number;
511
697
  bbox: BoundingBox;
@@ -539,6 +725,21 @@ export interface VDTFootnoteArea {
539
725
  notes: VDTBlock[];
540
726
  separator: boolean;
541
727
  }
728
+ /** One run of a design text line set with inline marks (`inlineMarks`):
729
+ * its own font (bold, italic, a script at the reduced size) and advance.
730
+ * Runs are painted one after another from the line's `xOffset`. */
731
+ export interface VDTDesignTextRun {
732
+ text: string;
733
+ fontString: string;
734
+ /** Advance of the run, tracking included. */
735
+ width: number;
736
+ /** Superscript / subscript offset off the baseline (px, positive down). */
737
+ baselineShift?: number;
738
+ /** The first of a subscript and a superscript set over each other, as
739
+ * on {@link VDTLineSegment.stacked}: width 0, the next run painted at
740
+ * the same x. */
741
+ stacked?: boolean;
742
+ }
542
743
  /** Line of wrapped text inside a `VDTDesignTextBlock`. */
543
744
  export interface VDTDesignTextLine {
544
745
  text: string;
@@ -548,6 +749,23 @@ export interface VDTDesignTextLine {
548
749
  baselineY: number;
549
750
  /** Measured width of the visible text. */
550
751
  width: number;
752
+ /** Present when the line mixes fonts (a text with inline marks) or is
753
+ * justified: paint these runs instead of `text` in the block font, each
754
+ * at the end of the one before. `text` stays the plain concatenation of
755
+ * the runs. A justified line is cut after every word space, and each
756
+ * run's `width` takes its spaces' share of the stretch. */
757
+ runs?: VDTDesignTextRun[];
758
+ /** Present on a justified line (`align: 'justify'`): the px added to every
759
+ * word space (U+0020 and the no-break space U+00A0), as CSS
760
+ * `word-spacing` adds it. The runs' widths already include it. */
761
+ wordSpacingPx?: number;
762
+ }
763
+ /** Outline of the glyphs of a design text block, resolved to px / hex. */
764
+ export interface VDTDesignTextStroke {
765
+ widthPx: number;
766
+ color: string;
767
+ /** Paint the outline only, leaving the letters unfilled. */
768
+ hollow?: boolean;
551
769
  }
552
770
  /** Rounded-rectangle box style resolved to absolute px / hex values. */
553
771
  export interface VDTDesignBoxStyle {
@@ -570,6 +788,10 @@ export interface VDTDesignTextBlock {
570
788
  /** Tracking applied after every glyph, in px (canvas `letterSpacing`,
571
789
  * CSS `letter-spacing`, PDF `Tc`). Absent or 0 = none. */
572
790
  letterSpacingPx?: number;
791
+ /** Outline stroked over the glyphs after they are filled (canvas
792
+ * `strokeText`, CSS `-webkit-text-stroke`, PDF text render mode 1/2).
793
+ * Absent = none. */
794
+ stroke?: VDTDesignTextStroke;
573
795
  /** Source range of the text this block displays when it mirrors document
574
796
  * text (an opener's `{titleText}`), so editors can map clicks on the
575
797
  * band back to the markdown. */
@@ -579,6 +801,11 @@ export interface VDTDesignTextBlock {
579
801
  * per-character source offsets, when the text mirrors document text. */
580
802
  sourceText?: string;
581
803
  sourceMap?: number[];
804
+ /** Pagination furniture rather than document text — the title a split
805
+ * callout repeats on a continuation, its "Continued" marker: a tagged
806
+ * PDF marks it an artifact and the HTML hides it from assistive
807
+ * technology, so the text is read once. */
808
+ artifact?: boolean;
582
809
  }
583
810
  /** Rendered rule inside a design slot. */
584
811
  export interface VDTDesignRuleBlock {
@@ -593,6 +820,11 @@ export interface VDTDesignBoxBlock {
593
820
  kind: 'box';
594
821
  bbox: BoundingBox;
595
822
  box: VDTDesignBoxStyle;
823
+ /** Paint the box clipped to this rounded outline (page coordinates, like
824
+ * `bbox`): the stripe of a callout whose frame has a `borderRadius`
825
+ * follows the frame's rounded corners, as CSS clips a `border-left` to
826
+ * `border-radius`. Absent = no clip. */
827
+ clip?: RoundedOutline;
596
828
  }
597
829
  /** Image drawn from the resource image registry (e.g. a callout icon). */
598
830
  export interface VDTDesignImageBlock {
@@ -601,6 +833,14 @@ export interface VDTDesignImageBlock {
601
833
  /** Out-of-band binary id resolved at render time (canvas registry, HTML
602
834
  * `resourceImageUrl`, PDF resource image map). */
603
835
  fileId: string;
836
+ /** The kind of the resource's picture: whether `diagramStyle.singleInk`
837
+ * tints it (an SVG) or not (a bitmap). Absent on a VDT built before the
838
+ * field existed; the canvas and HTML backends then guess from the
839
+ * registered source or the URL. */
840
+ imageKind?: 'bitmap' | 'svg';
841
+ /** For an SVG with a print master (`Resource.svg.pdfFileId`): the
842
+ * master's id, which the PDF backend embeds in place of the SVG. */
843
+ pdfFileId?: string;
604
844
  }
605
845
  export type VDTDesignBlock = VDTDesignTextBlock | VDTDesignRuleBlock | VDTDesignBoxBlock | VDTDesignImageBlock;
606
846
  export interface VDTDesignSlot {
@@ -615,6 +855,12 @@ export type VDTHeaderFooterBlock = VDTDesignBlock;
615
855
  export type VDTHeaderFooterTextBlock = VDTDesignTextBlock;
616
856
  /** @deprecated Use `VDTDesignRuleBlock`. */
617
857
  export type VDTRuleBlock = VDTDesignRuleBlock;
858
+ /** A column rule resolved to px and hex (see `VDTPage.columnRule`). */
859
+ export interface VDTColumnRule {
860
+ enabled: boolean;
861
+ color: string;
862
+ lineWidthPx: number;
863
+ }
618
864
  export interface VDTPage {
619
865
  index: number;
620
866
  width: number;
@@ -641,6 +887,11 @@ export interface VDTPage {
641
887
  titleSourceEnd?: number;
642
888
  };
643
889
  columns: VDTColumn[];
890
+ /** The column rule of a page laid out with a heading style's own
891
+ * `layout` (a styled section's pages) when it differs from the
892
+ * document's `layout.columnRule`: whether it is drawn, its colour and its
893
+ * width. Absent on every other page, which takes the document's rule. */
894
+ columnRule?: VDTColumnRule;
644
895
  header?: VDTDesignSlot;
645
896
  footer?: VDTDesignSlot;
646
897
  /** Optional full-width opener band above the column flow, used for
@@ -677,7 +928,7 @@ export interface VDTPage {
677
928
  /** Something the layout could not set as asked and placed anyway — a box
678
929
  * taller than any column it could go to. Hosts surface these as warnings;
679
930
  * the geometry still describes what was painted. */
680
- export interface LayoutWarning {
931
+ export interface CalloutOverflowWarning {
681
932
  /** `calloutOverflow`: a `:::callout` box that fits no column was placed
682
933
  * overflowing its column (by `overflowPx`). */
683
934
  kind: 'calloutOverflow';
@@ -689,12 +940,173 @@ export interface LayoutWarning {
689
940
  /** How far past the column's free room the content reaches (px). */
690
941
  overflowPx: number;
691
942
  }
943
+ /** A configuration value the engine could not use as written, and what it
944
+ * used instead. Produced by `collectConfigWarnings` (also on
945
+ * {@link VDTDocument.configWarnings}); hosts surface these as warnings.
946
+ * Unlike a {@link LayoutWarning} or a {@link ContentWarning} it belongs to
947
+ * no page. */
948
+ export interface ConfigWarning {
949
+ /** `unknownNumberFormat`: a list `numberFormat`, a page-numbering
950
+ * `format` or a resource type's `counterFormat` in no spelling the
951
+ * engine knows; it numbers in decimal.
952
+ * `fontFamilyStack`: a `fontFamily` (or `…FontFamily`) holding a CSS font
953
+ * stack; the text is set in the stack's first family.
954
+ * `sideColumnPercentClamped`: a `oneAndHalf` layout's
955
+ * `sideColumnPercent` that would leave one of its columns with no width
956
+ * (or is not a number); the columns are cut at `used` percent instead.
957
+ * `unknownConfigKey`: a key the heading settings or a paragraph style do
958
+ * not have (`headings`, `headings.balancing`, a heading level, a heading
959
+ * style, a paragraph style — and the same under
960
+ * `htmlViewer.overrides`), such as a misspelt `letterSpacng`; the
961
+ * engine ignores it. `value` is the key, `used` is empty, and
962
+ * `suggestion` names the key it is closest to, when one is close. */
963
+ kind: 'unknownNumberFormat' | 'fontFamilyStack' | 'sideColumnPercentClamped' | 'unknownConfigKey';
964
+ /** Where the value sits in the config, e.g.
965
+ * `orderedLists.levels[1].numberFormat`, `header.elements[0].fontFamily`,
966
+ * `headingStyles[2].layout.sideColumnPercent`. */
967
+ path: string;
968
+ /** The value as written (the key itself, for `unknownConfigKey`). */
969
+ value: string;
970
+ /** The value the engine used instead (`arabic` / `decimal`, the first
971
+ * family of the stack, the side column's percent); empty for an
972
+ * `unknownConfigKey`, which is ignored. */
973
+ used: string;
974
+ /** `unknownConfigKey` only: the known key the unknown one is closest to
975
+ * (another case, a letter or two apart), when there is one. */
976
+ suggestion?: string;
977
+ }
978
+ /** Where a content warning points: the source range of the construct in
979
+ * the markdown given to the build (frontmatter included), and the page it
980
+ * was placed on. Both are absent when the construct has no place in the
981
+ * text (a style id set on a resource that is never placed) or put nothing
982
+ * on a page (an embed of an unknown id). */
983
+ interface ContentWarningBase {
984
+ sourceStart?: number;
985
+ sourceEnd?: number;
986
+ pageIndex?: number;
987
+ }
988
+ /** A reference the build could not resolve, or markup it did not
989
+ * recognise and set in a fallback: the output is complete but not what the
990
+ * source asked for. Computed from the source before layout (see
991
+ * `collectContentWarnings`); the build lists them in
992
+ * {@link VDTDocument.contentWarnings}. Narrow on `kind` — further kinds may
993
+ * be added in minor releases. */
994
+ export type ContentWarning = ContentWarningBase & (
995
+ /** A `::resource{id}` embed, an inline `:ref{id}` or a table cell's
996
+ * image names a resource id no resource has: the embed is left out, the
997
+ * reference prints `?` (or its `text=` label) with no number or link, the
998
+ * cell stays text-only. `inResource` names the
999
+ * resource whose caption, note or cell holds the reference. */
1000
+ {
1001
+ kind: 'unknownResourceId';
1002
+ resourceId: string;
1003
+ usage: 'embed' | 'ref' | 'cellImage';
1004
+ inResource?: string;
1005
+ }
1006
+ /** A `:::name` line whose name is neither a directive nor a container:
1007
+ * it is set as text. */
1008
+ | {
1009
+ kind: 'unknownDirective';
1010
+ name: string;
1011
+ }
1012
+ /** A `::name` line that is not a well-formed embed standing alone —
1013
+ * `::resource{id="…"}` with double quotes and no other attribute, after
1014
+ * a blank line: it is set as text. */
1015
+ | {
1016
+ kind: 'malformedEmbed';
1017
+ name: string;
1018
+ }
1019
+ /** `:::paragraphs{style}` names no paragraph style: the paragraphs are set
1020
+ * as body text. */
1021
+ | {
1022
+ kind: 'unknownParagraphStyle';
1023
+ style: string;
1024
+ }
1025
+ /** `:::callout{type}` names none of the configured callout styles: the box
1026
+ * takes the first one. Not raised while `calloutStyles` is unset or
1027
+ * empty (every type is then the built-in plain box). */
1028
+ | {
1029
+ kind: 'unknownCalloutType';
1030
+ type: string;
1031
+ }
1032
+ /** `:chip[…]{style}` names no chip style: the chip takes the first one.
1033
+ * `inResource` names the resource whose caption, note or cell holds it. */
1034
+ | {
1035
+ kind: 'unknownChipStyle';
1036
+ style: string;
1037
+ inResource?: string;
1038
+ }
1039
+ /** A heading's `{style}` attribute names no heading style: the heading
1040
+ * and its section keep the level's own settings. */
1041
+ | {
1042
+ kind: 'unknownHeadingStyle';
1043
+ style: string;
1044
+ level: number;
1045
+ }
1046
+ /** A table resource's `table.styleId` names no `tableStyles` entry: the
1047
+ * table is set in the document's `tableStyle`. */
1048
+ | {
1049
+ kind: 'unknownTableStyle';
1050
+ styleId: string;
1051
+ resourceId: string;
1052
+ }
1053
+ /** A table's grid is not rectangular once its merges are counted (see
1054
+ * `tableGridIssues`): cells are laid out by their array index, so a cell
1055
+ * left out HTML-style under a `colSpan` / `rowSpan` shifts the cells
1056
+ * after it (`spanOverlap`: a visible cell sits under a merge instead of
1057
+ * carrying `hiddenBy`), or a row ends short and leaves a hole
1058
+ * (`missingCells`). `row` / `col` locate the first issue; `count` is
1059
+ * how many the table has. */
1060
+ | {
1061
+ kind: 'raggedTableGrid';
1062
+ resourceId: string;
1063
+ reason: 'spanOverlap' | 'missingCells';
1064
+ row: number;
1065
+ col: number;
1066
+ count: number;
1067
+ });
1068
+ /** What a build reports in `VDTDocument.warnings`: a construct the layout
1069
+ * had to force ({@link CalloutOverflowWarning}), with the shape it has had
1070
+ * since postext 1.4. What the source names wrongly is in
1071
+ * {@link VDTDocument.contentWarnings} instead. */
1072
+ export type LayoutWarning = CalloutOverflowWarning;
1073
+ /** Reported by the renderers (canvas, HTML, PDF) through their `onWarning`
1074
+ * option while they paint — never stored in the VDT, since what a host
1075
+ * can supply changes after the layout. */
1076
+ export interface MissingImageWarning {
1077
+ /** `missingImage`: an image (figure, table-cell image, callout icon or
1078
+ * design image) had no picture to draw — nothing registered for it
1079
+ * (canvas), no URL (HTML), no or undecodable bytes (PDF) — and was
1080
+ * painted as a neutral placeholder. */
1081
+ kind: 'missingImage';
1082
+ /** The payload id the host resolves (`registerResourceImage`,
1083
+ * `resourceImageUrl`, `resourceBytes`). */
1084
+ fileId: string;
1085
+ /** The resource the image belongs to, when the painter knows it (a
1086
+ * figure or a cell image; not a callout icon or design image). */
1087
+ resourceId?: string;
1088
+ /** Page of the first placeholder, in its document. */
1089
+ pageIndex: number;
1090
+ /** Which of the documents given to a multi-document render (a book
1091
+ * rendered to one PDF) the page belongs to. */
1092
+ documentIndex?: number;
1093
+ }
1094
+ /** Warnings a renderer reports while painting. */
1095
+ export type RenderWarning = MissingImageWarning;
692
1096
  export interface VDTDocument {
693
1097
  pages: VDTPage[];
694
1098
  blocks: VDTBlock[];
695
- /** Layout warnings raised while placing the content (see
696
- * {@link LayoutWarning}); absent or empty when everything fit. */
1099
+ /** Layout warnings raised while placing the content: boxes the layout
1100
+ * had to force (see {@link LayoutWarning}). Absent or empty when
1101
+ * everything fit. */
697
1102
  warnings?: LayoutWarning[];
1103
+ /** References and markup the source names wrongly, each set in a
1104
+ * fallback (see {@link ContentWarning}), located on the pages of the
1105
+ * finished layout. Absent when the source is clean. */
1106
+ contentWarnings?: ContentWarning[];
1107
+ /** Configuration values the engine replaced (see {@link ConfigWarning});
1108
+ * absent when the config is clean. */
1109
+ configWarnings?: ConfigWarning[];
698
1110
  config: ResolvedConfig;
699
1111
  baselineGrid: number;
700
1112
  /** Pixel offset from canvas edge to trim edge (0 when cutLines disabled) */
@@ -711,6 +1123,11 @@ export interface VDTDocument {
711
1123
  /** Physical pages before page 0 (`PostextContent.continuation`): shifts
712
1124
  * parity everywhere. Absent or 0 for a self-contained document. */
713
1125
  pageIndexOffset?: number;
1126
+ /** Physical pages of the whole book the document belongs to
1127
+ * (`continuation.bookPageCount`), what `{bookTotalPages}` prints. Absent
1128
+ * when the host did not say: the placeholder then counts the pages up
1129
+ * to the end of this document. */
1130
+ bookPageCount?: number;
714
1131
  /** Indices of the pages where a `:::numbering{startAt=…}` directive
715
1132
  * restarts the page count, ascending. The pages before the first one
716
1133
  * continue the inherited numbering (`continuation.pageNumbering` or
@@ -725,6 +1142,10 @@ export interface VDTDocument {
725
1142
  * `continuation.part`): `{partTitle}` / `{partNumber}` and the part's
726
1143
  * palette overrides apply from page 0 until the document opens a part. */
727
1144
  partStart?: PartState;
1145
+ /** The page before this document is the part page of `partStart`
1146
+ * (`continuation.afterPartPage`): a first page left blank is the part's
1147
+ * verso and takes `parts.versoDesign`. */
1148
+ afterPartPage?: boolean;
728
1149
  /** Parts set without a divider page (`parts.page: false`): each takes
729
1150
  * effect on the page of the first block placed after its fence
730
1151
  * (`afterContentIndex`, the fence's closing content index). */
@@ -735,6 +1156,10 @@ export interface VDTDocument {
735
1156
  palette?: Record<string, string>;
736
1157
  }[];
737
1158
  }
1159
+ /** What a design image block records of the resource picture `fileId`
1160
+ * (already picked from `resource`): its kind, which decides whether
1161
+ * `diagramStyle.singleInk` tints it, and an SVG's print master. */
1162
+ export declare function pictureTraits(resource: Resource | undefined, fileId: string): Pick<VDTDesignImageBlock, 'imageKind' | 'pdfFileId'>;
738
1163
  export declare function createBoundingBox(x: number, y: number, width: number, height: number): BoundingBox;
739
1164
  export declare function createVDTDocument(config: ResolvedConfig, baselineGrid: number): VDTDocument;
740
1165
  export declare function createVDTPage(index: number, width: number, height: number, contentArea?: BoundingBox): VDTPage;
@@ -751,4 +1176,5 @@ export declare function computePageTextExtent(page: VDTPage): {
751
1176
  top: number;
752
1177
  bottom: number;
753
1178
  } | null;
1179
+ export {};
754
1180
  //# sourceMappingURL=vdt.d.ts.map