@openpresentation/opf 0.10.1 → 0.11.1

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 (280) hide show
  1. package/dist/{catalogs-DoVmvDr7.d.ts → catalogs-DJ-B5ZyD.d.ts} +79 -9
  2. package/dist/catalogs.d.ts +2 -2
  3. package/dist/catalogs.js +1 -1
  4. package/dist/{chunk-PQJRDNA6.js → chunk-6UPHKXI5.js} +381 -34
  5. package/dist/{chunk-TU7I3KSB.js → chunk-7LF37SG3.js} +7400 -5422
  6. package/dist/{chunk-EWJNRHXA.js → chunk-BP6WMSSS.js} +3 -3
  7. package/dist/{chunk-FHGJX5QK.js → chunk-KWIOQ3QR.js} +73 -32
  8. package/dist/{chunk-D3GQIREP.js → chunk-LTSDDBNW.js} +558 -52
  9. package/dist/{chunk-ZIL7MGZU.js → chunk-M4GTWRK7.js} +333 -102
  10. package/dist/chunk-NPYN4TZ5.js +3516 -0
  11. package/dist/{chunk-RS5GZ5RW.js → chunk-SDETQV7Y.js} +161 -0
  12. package/dist/composition-DzLwY-Mi.d.ts +887 -0
  13. package/dist/composition.d.ts +1 -676
  14. package/dist/composition.js +1 -1
  15. package/dist/docs.js +80 -20
  16. package/dist/examples.d.ts +1 -1
  17. package/dist/examples.js +11 -11
  18. package/dist/font-policy.d.ts +123 -0
  19. package/dist/font-policy.js +1 -0
  20. package/dist/index.d.ts +184 -4
  21. package/dist/index.js +473 -7
  22. package/dist/lint.d.ts +3 -3
  23. package/dist/lint.js +5 -5
  24. package/dist/pagination.d.ts +6 -2
  25. package/dist/pagination.js +5 -5
  26. package/dist/{presentation-BMTdX6O1.d.ts → presentation-bceTClm8.d.ts} +297 -30
  27. package/dist/repo-readme.js +1 -1
  28. package/dist/{schemas-BYe5y8-i.d.ts → schemas-X_NniU4A.d.ts} +8 -0
  29. package/dist/schemas.d.ts +1 -1
  30. package/dist/schemas.js +1 -1
  31. package/dist/spec/catalogs/audiences/academic.json +24 -0
  32. package/dist/spec/catalogs/audiences/all-hands.json +3 -1
  33. package/dist/spec/catalogs/audiences/board.json +3 -1
  34. package/dist/spec/catalogs/audiences/customer.json +25 -0
  35. package/dist/spec/catalogs/audiences/executive.json +24 -0
  36. package/dist/spec/catalogs/audiences/general-public.json +25 -0
  37. package/dist/spec/catalogs/audiences/index.json +73 -1
  38. package/dist/spec/catalogs/audiences/internal-team.json +25 -0
  39. package/dist/spec/catalogs/audiences/investor.json +25 -0
  40. package/dist/spec/catalogs/audiences/marketing.json +25 -0
  41. package/dist/spec/catalogs/audiences/media.json +24 -0
  42. package/dist/spec/catalogs/audiences/partner.json +25 -0
  43. package/dist/spec/catalogs/audiences/regulatory.json +25 -0
  44. package/dist/spec/catalogs/audiences/sales.json +25 -0
  45. package/dist/spec/catalogs/audiences/technical.json +25 -0
  46. package/dist/spec/catalogs/chart-types/100pct-bullet-bar-2x.json +5 -0
  47. package/dist/spec/catalogs/chart-types/100pct-bullet-bar-3x.json +5 -0
  48. package/dist/spec/catalogs/chart-types/100pct-bullet-bar.json +5 -0
  49. package/dist/spec/catalogs/chart-types/100pct-bullet-column-2x.json +5 -0
  50. package/dist/spec/catalogs/chart-types/100pct-bullet-column-3x.json +5 -0
  51. package/dist/spec/catalogs/chart-types/100pct-bullet-column.json +5 -0
  52. package/dist/spec/catalogs/chart-types/100pct-progress-bar.json +10 -0
  53. package/dist/spec/catalogs/chart-types/100pct-stacked-area-2x.json +10 -0
  54. package/dist/spec/catalogs/chart-types/100pct-stacked-area-3x.json +6 -1
  55. package/dist/spec/catalogs/chart-types/100pct-stacked-bar-2x.json +10 -0
  56. package/dist/spec/catalogs/chart-types/100pct-stacked-bar-3x.json +6 -1
  57. package/dist/spec/catalogs/chart-types/100pct-stacked-column-2x.json +10 -0
  58. package/dist/spec/catalogs/chart-types/100pct-stacked-column-3x.json +6 -1
  59. package/dist/spec/catalogs/chart-types/area.json +5 -0
  60. package/dist/spec/catalogs/chart-types/australia.json +10 -0
  61. package/dist/spec/catalogs/chart-types/bar.json +5 -0
  62. package/dist/spec/catalogs/chart-types/box-and-whisker-2x.json +10 -0
  63. package/dist/spec/catalogs/chart-types/box-and-whisker-3x.json +10 -0
  64. package/dist/spec/catalogs/chart-types/box-and-whisker.json +5 -0
  65. package/dist/spec/catalogs/chart-types/bullet-bar-2x.json +5 -0
  66. package/dist/spec/catalogs/chart-types/bullet-bar-3x.json +5 -0
  67. package/dist/spec/catalogs/chart-types/bullet-bar.json +5 -0
  68. package/dist/spec/catalogs/chart-types/bullet-column-2x.json +5 -0
  69. package/dist/spec/catalogs/chart-types/bullet-column-3x.json +5 -0
  70. package/dist/spec/catalogs/chart-types/bullet-column.json +5 -0
  71. package/dist/spec/catalogs/chart-types/canada.json +10 -0
  72. package/dist/spec/catalogs/chart-types/clustered-bar-2x.json +10 -0
  73. package/dist/spec/catalogs/chart-types/clustered-column.json +10 -0
  74. package/dist/spec/catalogs/chart-types/column.json +5 -0
  75. package/dist/spec/catalogs/chart-types/dot-plot-2x.json +5 -0
  76. package/dist/spec/catalogs/chart-types/dot-plot-3x.json +5 -0
  77. package/dist/spec/catalogs/chart-types/dot-plot-4x.json +5 -0
  78. package/dist/spec/catalogs/chart-types/dot-plot-5x.json +5 -0
  79. package/dist/spec/catalogs/chart-types/dot-plot-6x.json +5 -0
  80. package/dist/spec/catalogs/chart-types/dot-plot.json +5 -0
  81. package/dist/spec/catalogs/chart-types/doughnut.json +5 -0
  82. package/dist/spec/catalogs/chart-types/dumbbell.json +5 -0
  83. package/dist/spec/catalogs/chart-types/filled-radar.json +5 -0
  84. package/dist/spec/catalogs/chart-types/funnel.json +5 -0
  85. package/dist/spec/catalogs/chart-types/histogram.json +5 -0
  86. package/dist/spec/catalogs/chart-types/index.json +333 -233
  87. package/dist/spec/catalogs/chart-types/line-2x.json +10 -0
  88. package/dist/spec/catalogs/chart-types/line-3x.json +10 -0
  89. package/dist/spec/catalogs/chart-types/line-with-high-low-and-markers.json +5 -0
  90. package/dist/spec/catalogs/chart-types/line-with-high-low.json +5 -0
  91. package/dist/spec/catalogs/chart-types/line-with-markers-2x.json +10 -0
  92. package/dist/spec/catalogs/chart-types/line-with-markers-3x.json +10 -0
  93. package/dist/spec/catalogs/chart-types/line-with-markers.json +5 -0
  94. package/dist/spec/catalogs/chart-types/line.json +5 -0
  95. package/dist/spec/catalogs/chart-types/pareto.json +9 -14
  96. package/dist/spec/catalogs/chart-types/pie.json +5 -0
  97. package/dist/spec/catalogs/chart-types/radar-with-markers.json +5 -0
  98. package/dist/spec/catalogs/chart-types/radar.json +5 -0
  99. package/dist/spec/catalogs/chart-types/scatter.json +5 -0
  100. package/dist/spec/catalogs/chart-types/sparkline-2x.json +5 -0
  101. package/dist/spec/catalogs/chart-types/sparkline-3x.json +5 -0
  102. package/dist/spec/catalogs/chart-types/sparkline-4x.json +5 -0
  103. package/dist/spec/catalogs/chart-types/sparkline-5x.json +5 -0
  104. package/dist/spec/catalogs/chart-types/sparkline-6x.json +5 -0
  105. package/dist/spec/catalogs/chart-types/sparkline.json +5 -0
  106. package/dist/spec/catalogs/chart-types/stacked-area-2x.json +10 -0
  107. package/dist/spec/catalogs/chart-types/stacked-area-3x.json +6 -1
  108. package/dist/spec/catalogs/chart-types/stacked-bar-2x.json +10 -0
  109. package/dist/spec/catalogs/chart-types/stacked-bar-3x.json +6 -1
  110. package/dist/spec/catalogs/chart-types/stacked-column-2x.json +10 -0
  111. package/dist/spec/catalogs/chart-types/stacked-column-3x.json +6 -1
  112. package/dist/spec/catalogs/chart-types/stacked-line-2x.json +10 -0
  113. package/dist/spec/catalogs/chart-types/stacked-line-3x.json +6 -1
  114. package/dist/spec/catalogs/chart-types/stacked-line-with-markers-2x.json +10 -0
  115. package/dist/spec/catalogs/chart-types/stacked-line-with-markers-3x.json +6 -1
  116. package/dist/spec/catalogs/chart-types/treemap-2x.json +10 -0
  117. package/dist/spec/catalogs/chart-types/treemap-3x.json +10 -0
  118. package/dist/spec/catalogs/chart-types/treemap.json +5 -0
  119. package/dist/spec/catalogs/chart-types/united-kingdom.json +10 -0
  120. package/dist/spec/catalogs/chart-types/united-states.json +10 -0
  121. package/dist/spec/catalogs/chart-types/waterfall.json +5 -0
  122. package/dist/spec/catalogs/chart-types/world.json +6 -1
  123. package/dist/spec/catalogs/font-schemes/consolas.json +3 -0
  124. package/dist/spec/catalogs/font-schemes/courier-new.json +3 -0
  125. package/dist/spec/catalogs/languages/afrikaans.json +3 -0
  126. package/dist/spec/catalogs/languages/albanian.json +3 -0
  127. package/dist/spec/catalogs/languages/amharic.json +3 -0
  128. package/dist/spec/catalogs/languages/arabic.json +3 -0
  129. package/dist/spec/catalogs/languages/armenian.json +3 -0
  130. package/dist/spec/catalogs/languages/aymara.json +3 -0
  131. package/dist/spec/catalogs/languages/azerbaijani.json +3 -0
  132. package/dist/spec/catalogs/languages/bengali.json +3 -0
  133. package/dist/spec/catalogs/languages/berber-latin.json +3 -0
  134. package/dist/spec/catalogs/languages/bosnian-latin.json +3 -0
  135. package/dist/spec/catalogs/languages/bulgarian.json +3 -0
  136. package/dist/spec/catalogs/languages/catalan.json +3 -0
  137. package/dist/spec/catalogs/languages/cebuano.json +3 -0
  138. package/dist/spec/catalogs/languages/chinese-simplified.json +3 -0
  139. package/dist/spec/catalogs/languages/chinese-traditional.json +3 -0
  140. package/dist/spec/catalogs/languages/chittagonian.json +3 -0
  141. package/dist/spec/catalogs/languages/croatian.json +3 -0
  142. package/dist/spec/catalogs/languages/czech.json +3 -0
  143. package/dist/spec/catalogs/languages/danish.json +3 -0
  144. package/dist/spec/catalogs/languages/dutch.json +3 -0
  145. package/dist/spec/catalogs/languages/english-au.json +3 -0
  146. package/dist/spec/catalogs/languages/english-ca.json +3 -0
  147. package/dist/spec/catalogs/languages/english-gb.json +3 -0
  148. package/dist/spec/catalogs/languages/english-in.json +3 -0
  149. package/dist/spec/catalogs/languages/english-us.json +3 -0
  150. package/dist/spec/catalogs/languages/english.json +3 -0
  151. package/dist/spec/catalogs/languages/estonian.json +3 -0
  152. package/dist/spec/catalogs/languages/filipino.json +3 -0
  153. package/dist/spec/catalogs/languages/finnish.json +3 -0
  154. package/dist/spec/catalogs/languages/french.json +3 -0
  155. package/dist/spec/catalogs/languages/fulfulde.json +3 -0
  156. package/dist/spec/catalogs/languages/galician.json +3 -0
  157. package/dist/spec/catalogs/languages/georgian.json +3 -0
  158. package/dist/spec/catalogs/languages/german.json +3 -0
  159. package/dist/spec/catalogs/languages/greek.json +3 -0
  160. package/dist/spec/catalogs/languages/gujarati.json +3 -0
  161. package/dist/spec/catalogs/languages/hausa.json +3 -0
  162. package/dist/spec/catalogs/languages/hebrew.json +3 -0
  163. package/dist/spec/catalogs/languages/hindi.json +3 -0
  164. package/dist/spec/catalogs/languages/hungarian.json +3 -0
  165. package/dist/spec/catalogs/languages/igbo.json +3 -0
  166. package/dist/spec/catalogs/languages/indonesian.json +3 -0
  167. package/dist/spec/catalogs/languages/italian.json +3 -0
  168. package/dist/spec/catalogs/languages/japanese.json +3 -0
  169. package/dist/spec/catalogs/languages/kannada.json +3 -0
  170. package/dist/spec/catalogs/languages/kazakh.json +3 -0
  171. package/dist/spec/catalogs/languages/khmer.json +3 -0
  172. package/dist/spec/catalogs/languages/kinyarwanda.json +3 -0
  173. package/dist/spec/catalogs/languages/korean.json +3 -0
  174. package/dist/spec/catalogs/languages/kurmanji.json +3 -0
  175. package/dist/spec/catalogs/languages/latvian.json +3 -0
  176. package/dist/spec/catalogs/languages/lithuanian.json +3 -0
  177. package/dist/spec/catalogs/languages/macedonian.json +3 -0
  178. package/dist/spec/catalogs/languages/malagasy.json +3 -0
  179. package/dist/spec/catalogs/languages/malay.json +3 -0
  180. package/dist/spec/catalogs/languages/malayalam.json +3 -0
  181. package/dist/spec/catalogs/languages/maori.json +3 -0
  182. package/dist/spec/catalogs/languages/marathi.json +3 -0
  183. package/dist/spec/catalogs/languages/mongolian.json +3 -0
  184. package/dist/spec/catalogs/languages/nepali.json +3 -0
  185. package/dist/spec/catalogs/languages/norwegian.json +3 -0
  186. package/dist/spec/catalogs/languages/odia.json +3 -0
  187. package/dist/spec/catalogs/languages/oromo.json +3 -0
  188. package/dist/spec/catalogs/languages/pashto.json +3 -0
  189. package/dist/spec/catalogs/languages/persian.json +3 -0
  190. package/dist/spec/catalogs/languages/polish.json +3 -0
  191. package/dist/spec/catalogs/languages/portuguese.json +3 -0
  192. package/dist/spec/catalogs/languages/punjabi-gurmukhi.json +3 -0
  193. package/dist/spec/catalogs/languages/punjabi-shahmukhi.json +3 -0
  194. package/dist/spec/catalogs/languages/romanian.json +3 -0
  195. package/dist/spec/catalogs/languages/russian.json +3 -0
  196. package/dist/spec/catalogs/languages/serbian-cyrillic.json +3 -0
  197. package/dist/spec/catalogs/languages/serbian-latin.json +3 -0
  198. package/dist/spec/catalogs/languages/shona.json +3 -0
  199. package/dist/spec/catalogs/languages/slovak.json +3 -0
  200. package/dist/spec/catalogs/languages/slovenian.json +3 -0
  201. package/dist/spec/catalogs/languages/somali.json +3 -0
  202. package/dist/spec/catalogs/languages/spanish.json +3 -0
  203. package/dist/spec/catalogs/languages/swahili.json +3 -0
  204. package/dist/spec/catalogs/languages/swedish.json +3 -0
  205. package/dist/spec/catalogs/languages/tagalog.json +3 -0
  206. package/dist/spec/catalogs/languages/tajik.json +3 -0
  207. package/dist/spec/catalogs/languages/tamil.json +3 -0
  208. package/dist/spec/catalogs/languages/telugu.json +3 -0
  209. package/dist/spec/catalogs/languages/thai.json +3 -0
  210. package/dist/spec/catalogs/languages/turkish.json +3 -0
  211. package/dist/spec/catalogs/languages/ukrainian.json +3 -0
  212. package/dist/spec/catalogs/languages/urdu.json +3 -0
  213. package/dist/spec/catalogs/languages/uzbek-latin.json +3 -0
  214. package/dist/spec/catalogs/languages/vietnamese-quoc-ngu.json +3 -0
  215. package/dist/spec/catalogs/languages/xhosa.json +3 -0
  216. package/dist/spec/catalogs/languages/yoruba.json +3 -0
  217. package/dist/spec/catalogs/languages/zulu.json +3 -0
  218. package/dist/spec/catalogs/narratives/board-meeting.json +21 -21
  219. package/dist/spec/catalogs/narratives/business-narrative.json +8 -8
  220. package/dist/spec/catalogs/narratives/business-review.json +12 -12
  221. package/dist/spec/catalogs/narratives/capacity-planning.json +8 -8
  222. package/dist/spec/catalogs/narratives/challenge-resolution.json +7 -7
  223. package/dist/spec/catalogs/narratives/change-story.json +64 -0
  224. package/dist/spec/catalogs/narratives/classic-story.json +7 -7
  225. package/dist/spec/catalogs/narratives/company-intro.json +9 -9
  226. package/dist/spec/catalogs/narratives/conference-talk.json +1 -1
  227. package/dist/spec/catalogs/narratives/data-story.json +66 -0
  228. package/dist/spec/catalogs/narratives/early-startup-pitch.json +12 -12
  229. package/dist/spec/catalogs/narratives/educate.json +9 -9
  230. package/dist/spec/catalogs/narratives/employee-review.json +8 -8
  231. package/dist/spec/catalogs/narratives/failure-analysis.json +10 -10
  232. package/dist/spec/catalogs/narratives/focus.json +12 -12
  233. package/dist/spec/catalogs/narratives/golden-circle.json +1 -1
  234. package/dist/spec/catalogs/narratives/heros-journey.json +64 -0
  235. package/dist/spec/catalogs/narratives/index.json +81 -0
  236. package/dist/spec/catalogs/narratives/innovation.json +9 -9
  237. package/dist/spec/catalogs/narratives/justice.json +11 -11
  238. package/dist/spec/catalogs/narratives/marketing-strategy.json +11 -11
  239. package/dist/spec/catalogs/narratives/performance-improvement-plan.json +8 -8
  240. package/dist/spec/catalogs/narratives/performance-review.json +11 -11
  241. package/dist/spec/catalogs/narratives/persuade.json +7 -7
  242. package/dist/spec/catalogs/narratives/persuasive-sales.json +8 -8
  243. package/dist/spec/catalogs/narratives/pitch-deck.json +3 -3
  244. package/dist/spec/catalogs/narratives/problem-solution.json +2 -2
  245. package/dist/spec/catalogs/narratives/product-launch.json +10 -10
  246. package/dist/spec/catalogs/narratives/project-proposal.json +10 -10
  247. package/dist/spec/catalogs/narratives/pyramid-principle.json +48 -0
  248. package/dist/spec/catalogs/narratives/qbr.json +3 -3
  249. package/dist/spec/catalogs/narratives/rags-to-riches.json +7 -7
  250. package/dist/spec/catalogs/narratives/reveal.json +8 -8
  251. package/dist/spec/catalogs/narratives/scqa.json +1 -1
  252. package/dist/spec/catalogs/narratives/situation-complication-resolution.json +56 -0
  253. package/dist/spec/catalogs/narratives/sparkline.json +56 -0
  254. package/dist/spec/catalogs/narratives/star-method.json +56 -0
  255. package/dist/spec/catalogs/narratives/status-update.json +6 -6
  256. package/dist/spec/catalogs/narratives/strategic-advisory.json +7 -7
  257. package/dist/spec/catalogs/narratives/strategic-narrative.json +1 -1
  258. package/dist/spec/catalogs/narratives/survey-analysis.json +10 -10
  259. package/dist/spec/catalogs/narratives/survival-story.json +10 -10
  260. package/dist/spec/catalogs/narratives/transformation-arc.json +1 -1
  261. package/dist/spec/catalogs/narratives/trend-analysis.json +7 -7
  262. package/dist/spec/catalogs/narratives/underdog-victory.json +8 -8
  263. package/dist/spec/catalogs/narratives/venture-pitch.json +12 -12
  264. package/dist/spec/catalogs/narratives/vision-roadmap.json +65 -0
  265. package/dist/spec/catalogs/narratives/weekly-progress.json +10 -10
  266. package/dist/spec/catalogs/narratives/what-so-what-now-what.json +48 -0
  267. package/dist/spec/openapi.yaml +5 -0
  268. package/dist/spec/reference/engine-defaults.json +2 -2
  269. package/dist/spec/reference/font-policy.json +3435 -0
  270. package/dist/spec/reference/font-policy.schema.json +328 -0
  271. package/dist/spec/schemas/chart-type.schema.json +51 -11
  272. package/dist/spec/schemas/font-scheme.schema.json +91 -1
  273. package/dist/spec/schemas/language.schema.json +10 -5
  274. package/dist/spec/schemas/opf.schema.json +241 -32
  275. package/dist/spec-files.d.ts +1 -1
  276. package/dist/spec-files.js +1 -1
  277. package/dist/types.d.ts +3 -3
  278. package/dist/validator.d.ts +7 -4
  279. package/dist/validator.js +4 -4
  280. package/package.json +6 -2
@@ -1,676 +1 @@
1
- /** Canonical table grid. No renderer, fonts, DOM or network dependencies. */
2
- interface TableBorder {
3
- color: string;
4
- width: number;
5
- dash?: 'solid' | 'dash' | 'dot';
6
- }
7
- interface TableCellStyle {
8
- fill?: string;
9
- color?: string;
10
- align?: 'left' | 'center' | 'right';
11
- verticalAlign?: 'top' | 'middle' | 'bottom';
12
- padding?: Partial<Record<'top' | 'right' | 'bottom' | 'left', number>>;
13
- borders?: Partial<Record<'top' | 'right' | 'bottom' | 'left', TableBorder>>;
14
- }
15
- interface TableGridCell {
16
- input: unknown;
17
- value: unknown;
18
- style: TableCellStyle;
19
- row: number;
20
- column: number;
21
- rowSpan: number;
22
- colSpan: number;
23
- header: boolean;
24
- path: string;
25
- valuePath: string;
26
- }
27
- interface TableGridIssue {
28
- path: string;
29
- message: string;
30
- }
31
- interface TableGrid {
32
- rows: TableGridCell[][];
33
- columnCount: number;
34
- rowCount: number;
35
- hasHeaders: boolean;
36
- /** Anchor at each covered position; covered positions are not additional cells. */
37
- owners: (TableGridCell | undefined)[][];
38
- issues: TableGridIssue[];
39
- }
40
- declare function tableGrid(value: unknown, path?: string): TableGrid;
41
- /** Row boundaries that preserve every vertical merge, used by pagination. */
42
- declare function tableRowBoundaries(value: unknown): number[];
43
-
44
- declare function colorContrast(foreground: string, background: string): number | undefined;
45
- /** Keep an inherited text color at >=4.5:1; otherwise select black or white.
46
- * Callers must preserve explicit text-color overrides before using this fallback.
47
- * An unresolved/translucent fill preserves the preferred color, without a contrast claim.
48
- */
49
- declare function textColorForFill(fill: string, preferred: string): string;
50
- /** Keep an inherited chart mark at >=3:1 against its opaque panel. Otherwise
51
- * mix toward black or white in bounded 1/255 steps, choosing the first passing
52
- * step (higher contrast breaks a tie). This retains a recognizable palette;
53
- * it does not establish distinction between adjacent series or colorblind safety.
54
- * Explicit mark overrides belong to the caller; unresolved alpha is preserved.
55
- */
56
- declare function chartColorForFill(fill: string, preferred: string): string;
57
-
58
- /** Portable layout geometry. No fonts, DOM, renderer, or network dependencies. */
59
- interface Composition {
60
- mode?: "auto" | "grid" | "row" | "column";
61
- columns?: number;
62
- gap?: number;
63
- padding?: number;
64
- weights?: number[];
65
- minFontSize?: number;
66
- overflow?: "warn" | "error";
67
- }
68
- declare const MAX_COMPOSITION_DEPTH = 32;
69
- interface LayoutBox {
70
- x: number;
71
- y: number;
72
- width: number;
73
- height: number;
74
- }
75
- interface LayoutDiagnostic {
76
- code: "text-overflow" | "small-cell" | "unresolved-content";
77
- path: string;
78
- message: string;
79
- }
80
- /** Physical legacy-family selection supplied by a font provider, independently of its numeric weight. */
81
- interface FontFaceSelection {
82
- family: string;
83
- bold: boolean;
84
- italic: boolean;
85
- }
86
- interface TextStyle {
87
- fontFamily: string;
88
- fontWeight: number;
89
- italic?: boolean;
90
- path?: string;
91
- fontFace?: FontFaceSelection;
92
- }
93
- interface FontFamilies {
94
- heading: string;
95
- body: string;
96
- code: string;
97
- }
98
- declare function resolveFontFamilies(input: unknown): FontFamilies;
99
- interface TextMeasurement {
100
- measure: (text: string, fontSize: number, style: TextStyle) => number;
101
- resolveStyle?: (style: TextStyle) => TextStyle;
102
- /** Shaped vector ink relative to the left baseline origin (positive y down).
103
- * Null means no outline. These are not hinted/antialiased raster bounds. */
104
- outlineBounds?: (text: string, fontSize: number, style: TextStyle) => LayoutBox | null;
105
- }
106
- type MeasureTextWidth = (text: string, fontSize: number) => number;
107
- declare function resolveTextStyle(style: TextStyle, measurement?: TextMeasurement): TextStyle;
108
- declare function textWidthMeasurer(style: TextStyle, measurement?: TextMeasurement): MeasureTextWidth;
109
- /** Validate an optional host outline measurement without inventing raster coverage. */
110
- declare function measureTextOutline(text: string, fontSize: number, style: TextStyle, measurement?: TextMeasurement): LayoutBox | null | undefined;
111
- interface TextLineInk {
112
- width: number;
113
- y: number;
114
- baseline: number;
115
- height: number;
116
- outline: LayoutBox | null;
117
- }
118
- interface TextPlacementLine {
119
- x: number;
120
- y: number;
121
- baseline: number;
122
- height: number;
123
- width: number;
124
- outline: LayoutBox | null;
125
- }
126
- interface TextPlacement {
127
- alignment: 'left' | 'center' | 'right';
128
- /** Reference-pixel clearance around vector outlines; not a universal raster guarantee. */
129
- rasterPadding: number;
130
- lines: TextPlacementLine[];
131
- height: number;
132
- overflow: boolean;
133
- }
134
- interface TextFit {
135
- lines: string[];
136
- fontSize: number;
137
- lineHeight: number;
138
- overflow: boolean;
139
- placement?: TextPlacement;
140
- }
141
- /** Place complete measured lines, preserving alignment where it leaves room for ink.
142
- * Move following baselines together when outlines need more vertical separation. */
143
- declare function placeTextLines(lines: readonly TextLineInk[], box: LayoutBox, alignment?: TextPlacement['alignment'], rasterPadding?: number): TextPlacement;
144
- interface ComposedItem {
145
- path: string;
146
- field: string;
147
- type: string;
148
- value: unknown;
149
- payload: Record<string, unknown>;
150
- box: LayoutBox;
151
- /** Optional visible card allocation; box and all accepted internals occupy its padded interior. */
152
- frameBox?: LayoutBox;
153
- text?: TextFit | RichTextFit | ListFit | CodeTextFit;
154
- textStyle?: TextStyle;
155
- /** Complete accepted quote internals; consumers must reuse these fits and styles. */
156
- quoteLayout?: QuoteLayout;
157
- /** Complete accepted code internals, including source lines and literal tab positions. */
158
- codeLayout?: CodeLayout;
159
- /** Complete shared metric geometry, including its unit, label and metadata. */
160
- metricLayout?: MetricLayout;
161
- /** Complete timeline fields, markers and connector accepted by composition. */
162
- timelineLayout?: TimelineLayout;
163
- /** Effective container settings, including inherited readability constraints. */
164
- composition: Composition;
165
- }
166
- interface ComposedGroup {
167
- path: string;
168
- box: LayoutBox;
169
- contentBox: LayoutBox;
170
- composition: Composition;
171
- }
172
- interface CompositionTrack {
173
- offset: number;
174
- size: number;
175
- }
176
- /** Resolved flow geometry, including empty reserved slots. Promoted regions are not flows. */
177
- interface ComposedFlow {
178
- path: string;
179
- box: LayoutBox;
180
- composition: Composition;
181
- columns: CompositionTrack[];
182
- rows: CompositionTrack[];
183
- gap: number;
184
- itemCount: number;
185
- slotCount: number;
186
- }
187
- /** Additive penalties in grid-score-v9; lower is preferred. These are not quality percentages. */
188
- interface CompositionPenalties {
189
- cellProportions: number;
190
- fontReduction: number;
191
- textOverflow: number;
192
- tableOverflow: number;
193
- smallCells: number;
194
- emptySlots: number;
195
- }
196
- interface CompositionCandidate {
197
- columns: number;
198
- rows: number;
199
- score: number;
200
- penalties: CompositionPenalties;
201
- }
202
- interface CompositionDecision {
203
- path: string;
204
- mode: NonNullable<Composition['mode']> | 'regions';
205
- reason: 'lowest-score' | 'configured-mode' | 'promoted-regions';
206
- selectedColumns?: number;
207
- /** Only candidates actually evaluated by automatic selection, in tie-break order. */
208
- candidates: CompositionCandidate[];
209
- }
210
- interface CompositionExplanation {
211
- algorithm: 'grid-score-v9';
212
- /** Provided widths do not establish shaping, glyph coverage or native fidelity. */
213
- textMeasurement: 'estimated' | 'provided';
214
- /** Optional vector coverage for headings and scalar/rich text, not every payload. */
215
- textOutlines: 'provided' | 'unavailable';
216
- /** Effective body-text reference pixels; furniture reports its own placement padding. Not a universal raster tolerance. */
217
- textRasterPadding: number;
218
- decisions: CompositionDecision[];
219
- /** Payloads whose complete internal fit is not covered by this scoring model. */
220
- unmeasuredPayloads: string[];
221
- }
222
- interface SlideComposition {
223
- width: number;
224
- height: number;
225
- contentBox: LayoutBox;
226
- items: ComposedItem[];
227
- groups: ComposedGroup[];
228
- flows: ComposedFlow[];
229
- diagnostics: LayoutDiagnostic[];
230
- composition: Composition;
231
- /** Repeated furniture is measured separately from body pagination leaves. */
232
- furniture?: FurnitureLayout;
233
- explanation?: CompositionExplanation;
234
- }
235
- interface ComposeSlideOptions {
236
- /** Context for inherited furniture and generated organization names. */
237
- presentation?: {
238
- design?: {
239
- header?: unknown;
240
- footer?: unknown;
241
- };
242
- organization?: unknown;
243
- };
244
- /** One-based displayed number; source paths still use slideIndex. */
245
- slideNumber?: number;
246
- fonts?: Partial<FontFamilies>;
247
- /** Host-resolved alignment for shared content; slide design can override it. */
248
- contentAlignment?: 'left' | 'center' | 'right';
249
- titleAlignment?: 'left' | 'center' | 'right';
250
- /** Unscaled reference pixels around provided vector outlines; defaults to 1 for body text and 2 for furniture. Explicit values apply to both. */
251
- textRasterPadding?: number;
252
- /** Host-resolved body cards. A slide's explicit design.contentBox overrides this value. */
253
- contentBox?: boolean;
254
- textMeasurement?: TextMeasurement;
255
- width?: number;
256
- height?: number;
257
- slideIndex?: number;
258
- layout?: Record<string, unknown>;
259
- /** Return candidate scores and coverage without changing the selected geometry. */
260
- explain?: boolean;
261
- }
262
- declare class OPFCompositionError extends Error {
263
- readonly diagnostics: LayoutDiagnostic[];
264
- readonly code = "layout-overflow";
265
- readonly explanation?: CompositionExplanation;
266
- constructor(diagnostics: LayoutDiagnostic[], explanation?: CompositionExplanation);
267
- }
268
- interface FurniturePartBase {
269
- kind: 'header' | 'footer';
270
- zone: 'left' | 'center' | 'right';
271
- field: 'text' | 'image' | 'organization' | 'section' | 'slideNumber' | 'date';
272
- /** Literal field or controlling flag, with the actual inherited/local path. */
273
- path: string;
274
- /** String/asset source, when different from a generated field's flag. */
275
- sourcePath?: string;
276
- generated: boolean;
277
- box: LayoutBox;
278
- alignment: 'left' | 'center' | 'right';
279
- }
280
- interface FurnitureTextPart extends FurniturePartBase {
281
- type: 'text';
282
- text: string;
283
- style: TextStyle;
284
- requestedFontSize: number;
285
- minFontSize: number;
286
- fit: SourceTextFit;
287
- }
288
- interface FurnitureImagePart extends FurniturePartBase {
289
- type: 'image';
290
- image: unknown;
291
- }
292
- type FurniturePart = FurnitureTextPart | FurnitureImagePart;
293
- interface FurnitureLayout {
294
- algorithm: 'furniture-flow-v2';
295
- /** Includes explicitly empty definitions, which override inherited furniture. */
296
- configured: boolean;
297
- textMeasurement: 'estimated' | 'provided';
298
- textOutlines: 'provided' | 'unavailable';
299
- parts: FurniturePart[];
300
- /** Outer occupied edges; composeSlide adds its normal content gap. */
301
- headerBottom: number;
302
- footerTop: number;
303
- diagnostics: LayoutDiagnostic[];
304
- overflow: boolean;
305
- }
306
- /** Resolve and measure repeated fields without mutating metadata or consulting a clock. */
307
- declare function layoutFurniture(input: unknown, options?: ComposeSlideOptions): FurnitureLayout;
308
- /** Deterministic estimate, not a font shaping engine. Preserves explicit line breaks. */
309
- declare function measureText(text: string, fontSize: number): number;
310
- declare function wrapText(text: string, width: number, fontSize: number, measure?: MeasureTextWidth): string[];
311
- declare function fitText(text: string, box: LayoutBox, requestedSize?: number, minFontSize?: number, measure?: MeasureTextWidth): SourceTextFit;
312
- interface QuoteContent {
313
- text: string;
314
- attribution?: string;
315
- source?: string;
316
- }
317
- /** Source and displayed-text ranges are half-open UTF-16 offsets. Added punctuation has no source range. */
318
- interface QuoteTextSource {
319
- path: string;
320
- start: number;
321
- end: number;
322
- outputStart: number;
323
- outputEnd: number;
324
- }
325
- interface QuoteTextPart {
326
- role: 'body' | 'footer';
327
- path: string;
328
- text: string;
329
- sources: QuoteTextSource[];
330
- /** Available space, before fitting. Invalid dimensions remain visible in failed results. */
331
- box: LayoutBox;
332
- requestedFontSize: number;
333
- minFontSize: number;
334
- requestedStyle: TextStyle;
335
- style: TextStyle;
336
- /** Absent when the available box is invalid; never fit against an invented one-pixel box. */
337
- fit?: TextFit;
338
- }
339
- interface QuoteLayoutDiagnostic extends LayoutDiagnostic {
340
- reason: 'invalid-part-box' | 'part-outside-cell' | 'text-fit' | 'part-overlap';
341
- parts: QuoteTextPart['role'][];
342
- }
343
- interface QuoteLayout {
344
- algorithm: 'quote-flow-v1';
345
- textMeasurement: 'estimated' | 'provided';
346
- parts: QuoteTextPart[];
347
- diagnostics: QuoteLayoutDiagnostic[];
348
- overflow: boolean;
349
- }
350
- interface QuoteLayoutOptions {
351
- /** Canvas short edge divided by 720. Insets retain the current 18 reference-pixel contract. */
352
- scale?: number;
353
- fonts?: Partial<FontFamilies>;
354
- /** Readability floor in reference pixels, before canvas scaling. */
355
- minFontSize?: number;
356
- overflow?: Composition['overflow'];
357
- path?: string;
358
- textMeasurement?: TextMeasurement;
359
- }
360
- /**
361
- * Allocate and measure quote body/footer space for composition, rendering and export. Callers must
362
- * check overflow before accepting the parts. Line boxes are not shaped glyph or native raster bounds.
363
- */
364
- declare function layoutQuote(value: string | QuoteContent, box: LayoutBox, options?: QuoteLayoutOptions): QuoteLayout;
365
- interface MetricContent {
366
- value: string | number;
367
- label?: string;
368
- description?: string;
369
- unit?: string;
370
- delta?: string | number;
371
- trend?: 'up' | 'down' | 'flat';
372
- }
373
- /** Ranges address String(sourceValue), not the numeric token spelling in serialized JSON. */
374
- interface MetricTextSource {
375
- path: string;
376
- value: string | number;
377
- start: number;
378
- end: number;
379
- }
380
- interface MetricTextPart {
381
- role: keyof MetricContent;
382
- path: string;
383
- text: string;
384
- sources: MetricTextSource[];
385
- /** Empty optional fields retain their source mapping but occupy no visible space. */
386
- visible: boolean;
387
- /** Accepted absolute origin/baseline for each fit.sourceLines entry, including blank lines. */
388
- linePositions: {
389
- x: number;
390
- baseline: number;
391
- }[];
392
- box: LayoutBox;
393
- requestedFontSize: number;
394
- minFontSize: number;
395
- requestedStyle: TextStyle;
396
- style: TextStyle;
397
- /** Source-preserving line/segment representation shared with code, with proportional fonts. */
398
- fit?: CodeTextFit;
399
- }
400
- interface MetricLayoutDiagnostic extends LayoutDiagnostic {
401
- reason: 'invalid-part-box' | 'part-outside-cell' | 'text-fit' | 'part-overlap';
402
- parts: MetricTextPart['role'][];
403
- }
404
- interface MetricLayout {
405
- algorithm: 'metric-flow-v1';
406
- alignment: 'left' | 'center' | 'right';
407
- textMeasurement: 'estimated' | 'provided';
408
- arrangement: 'inline-unit' | 'stacked';
409
- /** At most 48 arrangements; value fitting is bounded by 77 reference-size trials per arrangement. */
410
- attempts: number;
411
- parts: MetricTextPart[];
412
- diagnostics: MetricLayoutDiagnostic[];
413
- overflow: boolean;
414
- }
415
- interface MetricLayoutOptions extends QuoteLayoutOptions {
416
- align?: 'left' | 'center' | 'right';
417
- /** Unscaled clearance around available vector outlines; defaults to one reference pixel. */
418
- textRasterPadding?: number;
419
- }
420
- /**
421
- * Measure every metric field before accepting geometry. Short single-line values and units can
422
- * share a baseline; longer values or units stack. No locale formatting, trend icons or rewritten
423
- * source text are invented. Consumers must reuse these accepted parts and source ranges.
424
- */
425
- declare function layoutMetric(value: string | number | MetricContent, box: LayoutBox, options?: MetricLayoutOptions): MetricLayout;
426
- interface TimelineEvent {
427
- when?: string;
428
- what: string;
429
- description?: string;
430
- }
431
- interface TimelineContent {
432
- name?: string;
433
- description?: string;
434
- events: TimelineEvent[];
435
- }
436
- interface TimelineTextPart {
437
- role: 'name' | 'description' | 'when' | 'what' | 'event-description';
438
- eventIndex?: number;
439
- path: string;
440
- text: string;
441
- sources: {
442
- path: string;
443
- start: number;
444
- end: number;
445
- }[];
446
- box: LayoutBox;
447
- alignment: 'left' | 'center';
448
- requestedFontSize: number;
449
- minFontSize: number;
450
- requestedStyle: TextStyle;
451
- style: TextStyle;
452
- fit?: SourceTextFit;
453
- }
454
- interface TimelineLayoutDiagnostic extends LayoutDiagnostic {
455
- reason: 'text-fit' | 'part-outside-cell' | 'event-space';
456
- }
457
- interface TimelineLayout {
458
- algorithm: 'timeline-flow-v1';
459
- arrangement: 'alternating' | 'vertical';
460
- attempts: number;
461
- textMeasurement: 'provided' | 'estimated';
462
- textOutlines: 'provided' | 'unavailable';
463
- parts: TimelineTextPart[];
464
- markers: {
465
- path: string;
466
- eventIndex: number;
467
- x: number;
468
- y: number;
469
- radius: number;
470
- }[];
471
- connector: {
472
- x1: number;
473
- y1: number;
474
- x2: number;
475
- y2: number;
476
- };
477
- diagnostics: TimelineLayoutDiagnostic[];
478
- overflow: boolean;
479
- }
480
- interface TimelineLayoutOptions extends QuoteLayoutOptions {
481
- textRasterPadding?: number;
482
- }
483
- /** Preserve event order and field boundaries while trying at most 50 readable arrangements. */
484
- declare function layoutTimeline(value: readonly TimelineEvent[] | TimelineContent, box: LayoutBox, options?: TimelineLayoutOptions): TimelineLayout;
485
- interface CodeContent {
486
- source: string;
487
- language?: string;
488
- filename?: string;
489
- }
490
- interface TextLineSegment {
491
- kind: 'text' | 'tab';
492
- start: number;
493
- end: number;
494
- /** Measured position relative to this displayed line's origin, in reference pixels. */
495
- x: number;
496
- width: number;
497
- }
498
- /** Exact half-open UTF-16 offsets into the part text, including consumed hard line breaks. */
499
- interface TextLineSource {
500
- start: number;
501
- end: number;
502
- nextStart: number;
503
- boundary: 'soft' | 'hard' | 'end';
504
- width: number;
505
- /** Explicit tab placement is required in SVG; CSS tab-size alone does not implement it. */
506
- segments: TextLineSegment[];
507
- }
508
- interface SourceTextFit extends TextFit {
509
- sourceLines: TextLineSource[];
510
- /** Tabs advance to the next multiple of four measured spaces from each displayed line's origin. */
511
- tabSize: 4;
512
- tabWidth: number;
513
- }
514
- /** Compatibility names for the shared source-preserving line contract. */
515
- type CodeLineSegment = TextLineSegment;
516
- type CodeLineSource = TextLineSource;
517
- interface CodeTextFit extends SourceTextFit {
518
- }
519
- interface CodeTextPart {
520
- role: 'filename' | 'language' | 'body';
521
- path: string;
522
- /** Original text, without case conversion, whitespace normalization or discarded newlines. */
523
- text: string;
524
- sources: {
525
- path: string;
526
- start: number;
527
- end: number;
528
- }[];
529
- generated: boolean;
530
- box: LayoutBox;
531
- requestedFontSize: number;
532
- minFontSize: number;
533
- requestedStyle: TextStyle;
534
- style: TextStyle;
535
- fit?: CodeTextFit;
536
- }
537
- interface CodeLayoutDiagnostic extends LayoutDiagnostic {
538
- reason: 'invalid-part-box' | 'part-outside-cell' | 'text-fit' | 'part-overlap';
539
- parts: CodeTextPart['role'][];
540
- }
541
- interface CodeLayout {
542
- algorithm: 'code-flow-v1';
543
- textMeasurement: 'estimated' | 'provided';
544
- parts: CodeTextPart[];
545
- diagnostics: CodeLayoutDiagnostic[];
546
- overflow: boolean;
547
- }
548
- interface CodeLayoutOptions extends QuoteLayoutOptions {
549
- }
550
- /** Shared filename/language/body allocation. Consumers must reuse the accepted fits and styles. */
551
- declare function layoutCode(value: string | CodeContent, box: LayoutBox, options?: CodeLayoutOptions): CodeLayout;
552
- interface RichTextRun {
553
- text: string;
554
- bold?: boolean;
555
- italic?: boolean;
556
- underline?: boolean;
557
- strikethrough?: boolean;
558
- color?: string;
559
- fontSize?: number;
560
- fontFamily?: string;
561
- link?: string;
562
- superscript?: boolean;
563
- subscript?: boolean;
564
- }
565
- interface RichTextFragment {
566
- text: string;
567
- runIndex: number;
568
- start: number;
569
- end: number;
570
- x: number;
571
- width: number;
572
- fontSize: number;
573
- baselineShift: number;
574
- style: TextStyle;
575
- run: RichTextRun;
576
- }
577
- interface RichTextLine {
578
- fragments: RichTextFragment[];
579
- width: number;
580
- y: number;
581
- baseline: number;
582
- height: number;
583
- }
584
- interface RichTextFit extends TextFit {
585
- richLines: RichTextLine[];
586
- height: number;
587
- }
588
- interface RichTextOptions {
589
- style: TextStyle;
590
- textMeasurement?: TextMeasurement;
591
- /** Use one measured line advance for every line, as native table cells do. */
592
- uniformLineHeight?: boolean;
593
- }
594
- /** Fit mixed styles without flattening font metrics. Run fontSize is in points. */
595
- declare function fitRichText(input: readonly (string | RichTextRun)[], box: LayoutBox, requestedSize?: number, minFontSize?: number, options?: RichTextOptions): RichTextFit;
596
- type ListText = string | readonly (string | RichTextRun)[];
597
- type ListValue = ListText | {
598
- text: ListText;
599
- description?: ListText;
600
- level?: number;
601
- };
602
- interface ListEntryLayout {
603
- index: number;
604
- level: number;
605
- textPath?: string;
606
- descriptionPath?: string;
607
- value: ListText;
608
- descriptionValue?: ListText;
609
- text: RichTextFit;
610
- description?: RichTextFit;
611
- textBox: LayoutBox;
612
- descriptionBox?: LayoutBox;
613
- marker: {
614
- text: string;
615
- x: number;
616
- y: number;
617
- fontSize: number;
618
- style: TextStyle;
619
- indent: number;
620
- };
621
- }
622
- interface ListFit extends TextFit {
623
- listEntries: ListEntryLayout[];
624
- height: number;
625
- }
626
- /** Shared hanging indents, mixed-run fitting and description spacing for list payloads. */
627
- declare function fitList(input: readonly ListValue[], box: LayoutBox, requestedSize?: number, minFontSize?: number, options?: RichTextOptions): ListFit;
628
- interface TableLayoutOptions {
629
- scale?: number;
630
- minFontSize?: number;
631
- fontFamily?: string;
632
- textMeasurement?: TextMeasurement;
633
- path?: string;
634
- }
635
- interface TableCellLayout {
636
- value: unknown;
637
- input: unknown;
638
- sourcePath: string;
639
- style: TableCellStyle;
640
- row: number;
641
- column: number;
642
- rowSpan: number;
643
- colSpan: number;
644
- path: string;
645
- header: boolean;
646
- rich: boolean;
647
- box: LayoutBox;
648
- textBox: LayoutBox;
649
- textStyle: TextStyle;
650
- fit: TextFit | RichTextFit;
651
- }
652
- interface TableRowLayout {
653
- box: LayoutBox;
654
- cells: TableCellLayout[];
655
- }
656
- interface TableLayout {
657
- rows: TableRowLayout[];
658
- columnCount: number;
659
- height: number;
660
- overflow: boolean;
661
- }
662
- /** Shared cell geometry and font fitting for SVG, native PPTX and pagination.
663
- * Short rows retain their 54px preferred height. Multiline rows use the space
664
- * their text needs; constrained tables consume row padding before readable text.
665
- * All dimensions are canvas pixels; minFontSize is an unscaled canvas size.
666
- */
667
- declare function layoutTable(value: unknown, box: LayoutBox, options?: TableLayoutOptions): TableLayout;
668
- /** Compose a validated Slide. Layout resolution remains the caller's responsibility. */
669
- declare function composeSlide(input: unknown, options?: ComposeSlideOptions): SlideComposition;
670
- /** Canonical physical slide size, converted to reference pixels at 96 pixels/inch. */
671
- declare function resolveCanvasDimensions(input: unknown): {
672
- width: number;
673
- height: number;
674
- };
675
-
676
- export { type CodeContent, type CodeLayout, type CodeLayoutDiagnostic, type CodeLayoutOptions, type CodeLineSegment, type CodeLineSource, type CodeTextFit, type CodeTextPart, type ComposeSlideOptions, type ComposedFlow, type ComposedGroup, type ComposedItem, type Composition, type CompositionCandidate, type CompositionDecision, type CompositionExplanation, type CompositionPenalties, type CompositionTrack, type FontFaceSelection, type FontFamilies, type FurnitureImagePart, type FurnitureLayout, type FurniturePart, type FurniturePartBase, type FurnitureTextPart, type LayoutBox, type LayoutDiagnostic, type ListEntryLayout, type ListFit, type ListText, type ListValue, MAX_COMPOSITION_DEPTH, type MeasureTextWidth, type MetricContent, type MetricLayout, type MetricLayoutDiagnostic, type MetricLayoutOptions, type MetricTextPart, type MetricTextSource, OPFCompositionError, type QuoteContent, type QuoteLayout, type QuoteLayoutDiagnostic, type QuoteLayoutOptions, type QuoteTextPart, type QuoteTextSource, type RichTextFit, type RichTextFragment, type RichTextLine, type RichTextOptions, type RichTextRun, type SlideComposition, type SourceTextFit, type TableBorder, type TableCellLayout, type TableCellStyle, type TableGrid, type TableGridCell, type TableGridIssue, type TableLayout, type TableLayoutOptions, type TableRowLayout, type TextFit, type TextLineInk, type TextLineSegment, type TextLineSource, type TextMeasurement, type TextPlacement, type TextPlacementLine, type TextStyle, type TimelineContent, type TimelineEvent, type TimelineLayout, type TimelineLayoutDiagnostic, type TimelineLayoutOptions, type TimelineTextPart, chartColorForFill, colorContrast, composeSlide, fitList, fitRichText, fitText, layoutCode, layoutFurniture, layoutMetric, layoutQuote, layoutTable, layoutTimeline, measureText, measureTextOutline, placeTextLines, resolveCanvasDimensions, resolveFontFamilies, resolveTextStyle, tableGrid, tableRowBoundaries, textColorForFill, textWidthMeasurer, wrapText };
1
+ export { a as CodeContent, b as CodeLayout, c as CodeLayoutDiagnostic, d as CodeLayoutOptions, e as CodeLineSegment, f as CodeLineSource, g as CodeTextFit, h as CodeTextPart, C as ComposeSlideOptions, i as ComposedFlow, j as ComposedGroup, k as ComposedItem, l as ComposedSlideImage, m as Composition, n as CompositionCandidate, o as CompositionDecision, p as CompositionExplanation, q as CompositionPenalties, r as CompositionTrack, D as DEFAULT_FONT_SCHEME, s as DEFAULT_FURNITURE_DATE_FORMAT, t as DEFAULT_SLIDE_NUMBER_FORMAT, aN as FontFaceSelection, u as FontFamilies, F as FontSchemeDiagnostic, v as FurnitureField, w as FurnitureImagePart, x as FurnitureLayout, y as FurniturePart, z as FurniturePartBase, A as FurnitureSocialLink, B as FurnitureTextExtras, E as FurnitureTextPart, G as LayoutBox, L as LayoutDiagnostic, H as ListEntryLayout, I as ListFit, J as ListText, K as ListValue, M as MAX_COMPOSITION_DEPTH, N as MeasureTextWidth, O as MetricContent, P as MetricLayout, Q as MetricLayoutDiagnostic, R as MetricLayoutOptions, S as MetricTextPart, U as MetricTextSource, V as OPFCompositionError, W as QuoteContent, X as QuoteLayout, Y as QuoteLayoutDiagnostic, Z as QuoteLayoutOptions, _ as QuoteTextPart, $ as QuoteTextSource, a2 as ResolvedFontScheme, a3 as RichTextFit, a4 as RichTextFragment, a5 as RichTextLine, a6 as RichTextOptions, a7 as RichTextRun, a8 as SlideComposition, a9 as SlideImageShape, aa as SocialPlatformRecord, ab as SocialProfile, aO as SourceTextFit, aP as TableBorder, aQ as TableCellLayout, aR as TableCellStyle, aS as TableGrid, aT as TableGridCell, aU as TableGridIssue, aV as TableLayout, aW as TableLayoutOptions, aX as TableRowLayout, ac as TextFit, ad as TextLineInk, aY as TextLineSegment, aZ as TextLineSource, T as TextMeasurement, ae as TextPlacement, af as TextPlacementLine, ag as TextStyle, ah as TimelineContent, ai as TimelineEvent, aj as TimelineLayout, ak as TimelineLayoutDiagnostic, al as TimelineLayoutOptions, am as TimelineTextPart, an as chartColorForFill, ao as colorContrast, ap as composeSlide, aq as fitList, ar as fitRichText, as as fitText, at as formatFurnitureDate, au as formatSlideNumber, av as layoutCode, aw as layoutFurniture, ax as layoutMetric, ay as layoutQuote, a_ as layoutTable, az as layoutTimeline, aA as measureText, aB as measureTextOutline, aD as placeTextLines, aE as resolveCanvasDimensions, aG as resolveFontFamilies, aH as resolveFontSchemeReference, aI as resolveSocialProfile, aJ as resolveTextStyle, a$ as slideImageShape, b0 as tableGrid, b1 as tableRowBoundaries, aK as textColorForFill, aL as textWidthMeasurer, aM as wrapText } from './composition-DzLwY-Mi.js';
@@ -1 +1 @@
1
- export { MAX_COMPOSITION_DEPTH, OPFCompositionError, chartColorForFill, colorContrast, composeSlide, fitList, fitRichText, fitText, layoutCode, layoutFurniture, layoutMetric, layoutQuote, layoutTable, layoutTimeline, measureText, measureTextOutline, placeTextLines, resolveCanvasDimensions, resolveFontFamilies, resolveTextStyle, tableGrid, tableRowBoundaries, textColorForFill, textWidthMeasurer, wrapText } from './chunk-PQJRDNA6.js';
1
+ export { DEFAULT_FONT_SCHEME, DEFAULT_FURNITURE_DATE_FORMAT, DEFAULT_SLIDE_NUMBER_FORMAT, MAX_COMPOSITION_DEPTH, OPFCompositionError, chartColorForFill, colorContrast, composeSlide, fitList, fitRichText, fitText, formatFurnitureDate, formatSlideNumber, layoutCode, layoutFurniture, layoutMetric, layoutQuote, layoutTable, layoutTimeline, measureText, measureTextOutline, placeTextLines, resolveCanvasDimensions, resolveFontFamilies, resolveFontSchemeReference, resolveSocialProfile, resolveTextStyle, slideImageShape, tableGrid, tableRowBoundaries, textColorForFill, textWidthMeasurer, wrapText } from './chunk-6UPHKXI5.js';