ooxml-ui 1.40.0 → 1.41.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 (322) hide show
  1. package/README.md +1 -1
  2. package/custom-elements.json +480 -0
  3. package/dist/base.d.ts +0 -1
  4. package/dist/building-block-styles.d.ts +0 -1
  5. package/dist/chart/data-sheet-keys.d.ts +0 -1
  6. package/dist/chart/data-sheet.d.ts +1 -2
  7. package/dist/chart/format-pane-advanced-space.d.ts +0 -1
  8. package/dist/chart/format-pane-analysis.d.ts +0 -1
  9. package/dist/chart/format-pane-fields.d.ts +0 -1
  10. package/dist/chart/format-pane-fill-line.d.ts +0 -1
  11. package/dist/chart/format-pane-intent.d.ts +0 -1
  12. package/dist/chart/format-pane-locales/de.d.ts +0 -1
  13. package/dist/chart/format-pane-locales/en.d.ts +0 -1
  14. package/dist/chart/format-pane-text.d.ts +0 -1
  15. package/dist/chart/format-pane-translate.d.ts +0 -1
  16. package/dist/chrome/account.d.ts +1 -2
  17. package/dist/chrome/print-preview.d.ts +1 -2
  18. package/dist/chrome/ruler.d.ts +1 -2
  19. package/dist/chrome/status-bar.d.ts +1 -2
  20. package/dist/chrome/tab-drag.d.ts +0 -1
  21. package/dist/chrome/task-pane.d.ts +1 -2
  22. package/dist/chunk-4RFFOPBU.js +90 -0
  23. package/dist/{chunk-BOTLS2PR.js → chunk-4ZSZPUE5.js} +20 -0
  24. package/dist/{chunk-XL77FR4B.js → chunk-6EOS74O4.js} +6 -0
  25. package/dist/{chunk-GZNBWWJ5.js → chunk-6FFZFH73.js} +43 -27
  26. package/dist/{chunk-FYBLAPAJ.js → chunk-7L4NP4HN.js} +149 -76
  27. package/dist/{chunk-QLHCGV4C.js → chunk-FE5KE5TR.js} +1 -1
  28. package/dist/{chunk-C4KI635Q.js → chunk-II43ALTT.js} +1 -1
  29. package/dist/{chunk-6VF4FEMY.js → chunk-LBIABP4I.js} +1 -1
  30. package/dist/{chunk-T5ARELU2.js → chunk-N6AKS4ED.js} +1 -1
  31. package/dist/{chunk-YZH2QS7J.js → chunk-Q6WZEGAM.js} +1 -1
  32. package/dist/{chunk-IZ7XMMMJ.js → chunk-TTT5IQBU.js} +10 -5
  33. package/dist/{chunk-QAX4FAB7.js → chunk-Y6KY34VD.js} +1632 -202
  34. package/dist/comments/mentions.d.ts +0 -1
  35. package/dist/comments/types.d.ts +0 -1
  36. package/dist/controls.d.ts +16 -3
  37. package/dist/controls.d.ts.map +1 -1
  38. package/dist/controls.js +4 -4
  39. package/dist/dialog/chart-picker.d.ts +1 -2
  40. package/dist/dialog/dialog-footer.d.ts +1 -2
  41. package/dist/dialog/dialog-session.d.ts +0 -1
  42. package/dist/dialog/dialog.d.ts +1 -2
  43. package/dist/dialog/focus.d.ts +0 -1
  44. package/dist/dialog/message-dialog.d.ts +84 -0
  45. package/dist/dialog/message-dialog.d.ts.map +1 -0
  46. package/dist/dialog/message-dialogs.d.ts +38 -0
  47. package/dist/dialog/message-dialogs.d.ts.map +1 -0
  48. package/dist/dialog/options-categories.d.ts +0 -1
  49. package/dist/dialog/options-controls.d.ts +0 -1
  50. package/dist/dialog/progress-dialog.d.ts +1 -2
  51. package/dist/dialog/share-controller.d.ts +38 -0
  52. package/dist/dialog/share-dialog-locales.d.ts +47 -0
  53. package/dist/dialog/share-dialog-locales.d.ts.map +1 -0
  54. package/dist/dialog/share-dialog.d.ts +121 -0
  55. package/dist/dialog/share-dialog.d.ts.map +1 -0
  56. package/dist/docx/backstage-account.d.ts +3 -0
  57. package/dist/docx/backstage-open.d.ts +4 -0
  58. package/dist/docx/backstage-pages.d.ts +8 -1
  59. package/dist/docx/backstage.d.ts +1 -1
  60. package/dist/docx/cloud-labels.d.ts +4 -0
  61. package/dist/docx/editor-chrome.d.ts +16 -1
  62. package/dist/docx/editor-core.d.ts +13 -1
  63. package/dist/docx/element-api.d.ts +17 -1
  64. package/dist/docx/file-commands.d.ts +2 -2
  65. package/dist/docx/locales/en-app.d.ts +36 -0
  66. package/dist/docx/locales/en.d.ts +36 -0
  67. package/dist/docx/localization-strings.d.ts +36 -0
  68. package/dist/docx.js +402 -54
  69. package/dist/files/cloud-files-labels.d.ts +44 -0
  70. package/dist/files/cloud-files-labels.d.ts.map +1 -0
  71. package/dist/files/cloud-files-view.d.ts +42 -0
  72. package/dist/files/cloud-files-view.d.ts.map +1 -0
  73. package/dist/files/cloud-files.d.ts +130 -0
  74. package/dist/files/cloud-files.d.ts.map +1 -0
  75. package/dist/files/connected-services-labels.d.ts +6 -0
  76. package/dist/files/connected-services.d.ts +70 -0
  77. package/dist/files/connected-services.d.ts.map +1 -0
  78. package/dist/files/open-places.d.ts +58 -0
  79. package/dist/files/open-places.d.ts.map +1 -0
  80. package/dist/fonts/availability.d.ts +0 -1
  81. package/dist/fonts/catalog.d.ts +0 -1
  82. package/dist/fonts/custom-fonts.d.ts +0 -1
  83. package/dist/form/checkbox.d.ts +1 -2
  84. package/dist/form/color-custom.d.ts +1 -2
  85. package/dist/form/color-grid.d.ts +1 -2
  86. package/dist/form/color-input/live-color-leaves.d.ts +0 -1
  87. package/dist/form/radio.d.ts +1 -2
  88. package/dist/form/search-field.d.ts +1 -2
  89. package/dist/form/symbol-picker.d.ts +1 -2
  90. package/dist/form/zoom-slider.d.ts +1 -2
  91. package/dist/image-native-size.d.ts +0 -1
  92. package/dist/index.d.ts +1 -1
  93. package/dist/index.js +10 -10
  94. package/dist/menu/command-search.d.ts +1 -2
  95. package/dist/menu/context-menu.d.ts +1 -2
  96. package/dist/menu/menu-item.d.ts +1 -2
  97. package/dist/notices/paste-options.d.ts +1 -2
  98. package/dist/notices/read-only-banner.d.ts.map +1 -1
  99. package/dist/notices/toasts.d.ts +1 -2
  100. package/dist/picture-effects.d.ts +0 -1
  101. package/dist/picture-pixels.d.ts.map +1 -1
  102. package/dist/picture-standard-filter.d.ts +0 -1
  103. package/dist/picture-view.d.ts +0 -1
  104. package/dist/pptx/{chart-3d-view-scene-V55XPBBF.cjs → chart-3d-view-scene-C7QUQTXD.cjs} +37 -37
  105. package/dist/pptx/{chart-3d-view-scene-BKNMGRGO.mjs → chart-3d-view-scene-CGLU6ISD.mjs} +2 -2
  106. package/dist/pptx/{chunk-ZLK243QC.cjs → chunk-4SZSTDER.cjs} +49 -49
  107. package/dist/pptx/{chunk-S5VKG3XJ.cjs → chunk-7XXOLM7H.cjs} +1 -1
  108. package/dist/pptx/{chunk-WZHYA2B3.mjs → chunk-DH6EKOVI.mjs} +1 -1
  109. package/dist/pptx/{chunk-MK2ASJSY.mjs → chunk-G4VNRJUX.mjs} +6 -0
  110. package/dist/pptx/{chunk-BLONL4S7.mjs → chunk-IN46QNJE.mjs} +1 -1
  111. package/dist/pptx/{chunk-NUB6VP7R.mjs → chunk-J6PRXB72.mjs} +6986 -2851
  112. package/dist/pptx/{chunk-HIRBPTML.cjs → chunk-JP26TA3Q.cjs} +12 -12
  113. package/dist/pptx/{chunk-XTC6MQYM.mjs → chunk-JU3ZV73R.mjs} +3 -3
  114. package/dist/pptx/{chunk-XWAX3PZO.cjs → chunk-RN3JVXVN.cjs} +7198 -3021
  115. package/dist/pptx/{chunk-WQI3NLMY.mjs → chunk-SF3MYUTD.mjs} +41 -0
  116. package/dist/pptx/{chunk-QK6LJT3K.mjs → chunk-TW5UQCZS.mjs} +7 -17
  117. package/dist/pptx/{chunk-CRV7G4GC.cjs → chunk-WNDGU3GQ.cjs} +41 -0
  118. package/dist/pptx/{chunk-3ESFHUZI.cjs → chunk-XZSGVMRN.cjs} +6 -0
  119. package/dist/pptx/{chunk-KJICUZXM.cjs → chunk-YZWKNFPU.cjs} +6 -16
  120. package/dist/pptx/dom/elements/shape-filter-defs.d.ts.map +1 -1
  121. package/dist/pptx/dom/elements/text-shape.d.ts.map +1 -1
  122. package/dist/pptx/dom/index.cjs +434 -428
  123. package/dist/pptx/dom/index.mjs +17 -11
  124. package/dist/pptx/dom/slide-stage.d.ts.map +1 -1
  125. package/dist/pptx/dom/types.d.ts +8 -1
  126. package/dist/pptx/dom/types.d.ts.map +1 -1
  127. package/dist/pptx/export/html2canvas-clone.cjs +6 -6
  128. package/dist/pptx/export/html2canvas-clone.mjs +1 -1
  129. package/dist/pptx/export/presentation-save.d.ts +15 -0
  130. package/dist/pptx/export/presentation-save.d.ts.map +1 -1
  131. package/dist/pptx/i18n/index.cjs +6 -6
  132. package/dist/pptx/i18n/index.mjs +1 -1
  133. package/dist/pptx/i18n/translations-en.d.ts.map +1 -1
  134. package/dist/pptx/index.cjs +3541 -3373
  135. package/dist/pptx/index.mjs +6 -6
  136. package/dist/pptx/render/abutting-edge-bleed-style.d.ts +24 -0
  137. package/dist/pptx/render/abutting-edge-bleed-style.d.ts.map +1 -0
  138. package/dist/pptx/render/abutting-edge-bleed.d.ts +56 -0
  139. package/dist/pptx/render/abutting-edge-bleed.d.ts.map +1 -0
  140. package/dist/pptx/render/chart-combo-stock.cjs +3 -3
  141. package/dist/pptx/render/chart-combo-stock.mjs +1 -1
  142. package/dist/pptx/render/chart-overlays.cjs +7 -7
  143. package/dist/pptx/render/chart-overlays.mjs +1 -1
  144. package/dist/pptx/render/chart-surface-treemap.cjs +4 -4
  145. package/dist/pptx/render/chart-surface-treemap.mjs +1 -1
  146. package/dist/pptx/render/chart-view-model.cjs +44 -44
  147. package/dist/pptx/render/chart-view-model.mjs +1 -1
  148. package/dist/pptx/render/chart-waterfall-map.cjs +6 -6
  149. package/dist/pptx/render/chart-waterfall-map.mjs +1 -1
  150. package/dist/pptx/render/cloud-open.d.ts +56 -0
  151. package/dist/pptx/render/cloud-open.d.ts.map +1 -0
  152. package/dist/pptx/render/connector-style.d.ts +2 -2
  153. package/dist/pptx/render/connector-style.d.ts.map +1 -1
  154. package/dist/pptx/render/element-style-transform.d.ts +11 -3
  155. package/dist/pptx/render/element-style-transform.d.ts.map +1 -1
  156. package/dist/pptx/render/fill-style.d.ts.map +1 -1
  157. package/dist/pptx/render/index.d.ts +11 -0
  158. package/dist/pptx/render/index.d.ts.map +1 -1
  159. package/dist/pptx/render/inline-list-presentation.d.ts.map +1 -1
  160. package/dist/pptx/render/morph-animation.d.ts +23 -11
  161. package/dist/pptx/render/morph-animation.d.ts.map +1 -1
  162. package/dist/pptx/render/morph-body-carry.d.ts +8 -0
  163. package/dist/pptx/render/morph-body-carry.d.ts.map +1 -0
  164. package/dist/pptx/render/morph-carry.d.ts +60 -0
  165. package/dist/pptx/render/morph-carry.d.ts.map +1 -0
  166. package/dist/pptx/render/morph-easing.d.ts +37 -0
  167. package/dist/pptx/render/morph-easing.d.ts.map +1 -0
  168. package/dist/pptx/render/morph-effect-carry.d.ts +75 -0
  169. package/dist/pptx/render/morph-effect-carry.d.ts.map +1 -0
  170. package/dist/pptx/render/morph-effect-glow.d.ts +42 -0
  171. package/dist/pptx/render/morph-effect-glow.d.ts.map +1 -0
  172. package/dist/pptx/render/morph-effect-parse.d.ts +10 -0
  173. package/dist/pptx/render/morph-effect-parse.d.ts.map +1 -0
  174. package/dist/pptx/render/morph-effect-shadow.d.ts +71 -0
  175. package/dist/pptx/render/morph-effect-shadow.d.ts.map +1 -0
  176. package/dist/pptx/render/morph-flatten.d.ts +2 -2
  177. package/dist/pptx/render/morph-flip-turn.d.ts +55 -0
  178. package/dist/pptx/render/morph-flip-turn.d.ts.map +1 -0
  179. package/dist/pptx/render/morph-geometry-key.d.ts +30 -0
  180. package/dist/pptx/render/morph-geometry-key.d.ts.map +1 -0
  181. package/dist/pptx/render/morph-image-crop.d.ts.map +1 -1
  182. package/dist/pptx/render/morph-matching.d.ts.map +1 -1
  183. package/dist/pptx/render/morph-outline-blend.d.ts +7 -0
  184. package/dist/pptx/render/morph-outline-blend.d.ts.map +1 -0
  185. package/dist/pptx/render/morph-overlay-order.d.ts +1 -1
  186. package/dist/pptx/render/morph-overlay-stack.d.ts +85 -0
  187. package/dist/pptx/render/morph-overlay-stack.d.ts.map +1 -0
  188. package/dist/pptx/render/morph-plan.d.ts +73 -1
  189. package/dist/pptx/render/morph-plan.d.ts.map +1 -1
  190. package/dist/pptx/render/morph-predicates.d.ts.map +1 -1
  191. package/dist/pptx/render/morph-shape-carry-path.d.ts +40 -0
  192. package/dist/pptx/render/morph-shape-carry-path.d.ts.map +1 -0
  193. package/dist/pptx/render/morph-shape-carry.d.ts +73 -0
  194. package/dist/pptx/render/morph-shape-carry.d.ts.map +1 -0
  195. package/dist/pptx/render/morph-text-bands.d.ts +44 -0
  196. package/dist/pptx/render/morph-text-bands.d.ts.map +1 -0
  197. package/dist/pptx/render/morph-text-baseline.d.ts +47 -0
  198. package/dist/pptx/render/morph-text-baseline.d.ts.map +1 -0
  199. package/dist/pptx/render/morph-text-blend.d.ts +71 -0
  200. package/dist/pptx/render/morph-text-blend.d.ts.map +1 -0
  201. package/dist/pptx/render/morph-text-body-copies.d.ts +51 -0
  202. package/dist/pptx/render/morph-text-body-copies.d.ts.map +1 -0
  203. package/dist/pptx/render/morph-text-body.d.ts +31 -0
  204. package/dist/pptx/render/morph-text-body.d.ts.map +1 -0
  205. package/dist/pptx/render/morph-text-flip.d.ts +49 -0
  206. package/dist/pptx/render/morph-text-flip.d.ts.map +1 -0
  207. package/dist/pptx/render/morph-text-frame-read.d.ts +97 -0
  208. package/dist/pptx/render/morph-text-frame-read.d.ts.map +1 -0
  209. package/dist/pptx/render/morph-text-frame.d.ts +66 -0
  210. package/dist/pptx/render/morph-text-frame.d.ts.map +1 -0
  211. package/dist/pptx/render/morph-text-ink.d.ts +43 -0
  212. package/dist/pptx/render/morph-text-ink.d.ts.map +1 -0
  213. package/dist/pptx/render/morph-text-lines.d.ts +73 -0
  214. package/dist/pptx/render/morph-text-lines.d.ts.map +1 -0
  215. package/dist/pptx/render/morph-text-piece-plan.d.ts +37 -0
  216. package/dist/pptx/render/morph-text-piece-plan.d.ts.map +1 -0
  217. package/dist/pptx/render/morph-text-pieces.d.ts +87 -0
  218. package/dist/pptx/render/morph-text-pieces.d.ts.map +1 -0
  219. package/dist/pptx/render/morph-text-slot.d.ts +19 -4
  220. package/dist/pptx/render/morph-text-slot.d.ts.map +1 -1
  221. package/dist/pptx/render/morph-text-spans.d.ts +27 -0
  222. package/dist/pptx/render/morph-text-spans.d.ts.map +1 -0
  223. package/dist/pptx/render/morph-text-transform.d.ts +108 -0
  224. package/dist/pptx/render/morph-text-transform.d.ts.map +1 -0
  225. package/dist/pptx/render/morph-types.d.ts +79 -38
  226. package/dist/pptx/render/morph-types.d.ts.map +1 -1
  227. package/dist/pptx/render/paragraph-baseline.d.ts +87 -0
  228. package/dist/pptx/render/paragraph-baseline.d.ts.map +1 -0
  229. package/dist/pptx/render/paragraph-spacing.d.ts +29 -66
  230. package/dist/pptx/render/paragraph-spacing.d.ts.map +1 -1
  231. package/dist/pptx/render/paragraph-types.d.ts +7 -0
  232. package/dist/pptx/render/paragraph-types.d.ts.map +1 -1
  233. package/dist/pptx/render/presentation-action.d.ts +3 -2
  234. package/dist/pptx/render/presentation-action.d.ts.map +1 -1
  235. package/dist/pptx/render/read-only-badge.d.ts +23 -0
  236. package/dist/pptx/render/read-only-badge.d.ts.map +1 -0
  237. package/dist/pptx/render/share-session.d.ts +4 -7
  238. package/dist/pptx/render/share-session.d.ts.map +1 -1
  239. package/dist/pptx/render/stroke-clip-edge.d.ts +6 -1
  240. package/dist/pptx/render/stroke-clip-edge.d.ts.map +1 -1
  241. package/dist/pptx/render/stroke-compound-strands.d.ts +30 -0
  242. package/dist/pptx/render/stroke-compound-strands.d.ts.map +1 -0
  243. package/dist/pptx/render/stroke-outline.d.ts.map +1 -1
  244. package/dist/pptx/render/table-cell-paragraphs.d.ts.map +1 -1
  245. package/dist/pptx/render/text-block-style.d.ts.map +1 -1
  246. package/dist/pptx/render/text-flip-compensation.d.ts +51 -0
  247. package/dist/pptx/render/text-flip-compensation.d.ts.map +1 -0
  248. package/dist/pptx/render/text-paragraphs.d.ts.map +1 -1
  249. package/dist/pptx/render/transition-template-elements.d.ts +33 -0
  250. package/dist/pptx/render/transition-template-elements.d.ts.map +1 -0
  251. package/dist/pptx/render/viewer-api-guard.d.ts +36 -0
  252. package/dist/pptx/render/viewer-api-guard.d.ts.map +1 -0
  253. package/dist/pptx/render/viewer-dialogs.d.ts +31 -0
  254. package/dist/pptx/render/viewer-dialogs.d.ts.map +1 -0
  255. package/dist/pptx/render/viewer-hyperlinks.d.ts +2 -1
  256. package/dist/pptx/render/viewer-hyperlinks.d.ts.map +1 -1
  257. package/dist/pptx/render/viewer-props-manifest.d.ts.map +1 -1
  258. package/dist/pptx/{smartart-insert-preview-BP4WAD5U.mjs → smartart-insert-preview-GA6ELFRB.mjs} +7 -7
  259. package/dist/pptx/{smartart-insert-preview-USGRDZHJ.cjs → smartart-insert-preview-PQTEVG7C.cjs} +8 -8
  260. package/dist/pptx/theme/index.cjs +18 -18
  261. package/dist/pptx/theme/index.mjs +1 -1
  262. package/dist/pptx/web-components/index.d.ts.map +1 -1
  263. package/dist/pptx/web-components/office-aliases.d.ts +4 -0
  264. package/dist/pptx/web-components/office-aliases.d.ts.map +1 -1
  265. package/dist/pptx/web-components/office-token-bridge.d.ts +1 -1
  266. package/dist/pptx/web-components/office-token-bridge.d.ts.map +1 -1
  267. package/dist/presence.js +3 -3
  268. package/dist/{presentation-preview-ZVJNGOJO.js → presentation-preview-KGBTDTNM.js} +1 -1
  269. package/dist/render-cache.d.ts +0 -1
  270. package/dist/ribbon/auto-collapse.d.ts +0 -1
  271. package/dist/ribbon/button.d.ts +1 -2
  272. package/dist/ribbon/gallery-styles.d.ts +0 -1
  273. package/dist/ribbon/keytip-run.d.ts +0 -1
  274. package/dist/ribbon/overflow.d.ts +0 -1
  275. package/dist/ribbon/ribbon-section.d.ts +1 -2
  276. package/dist/ribbon/ribbon-stack.d.ts +1 -2
  277. package/dist/ribbon/safe-svg.d.ts +0 -1
  278. package/dist/ribbon/scroll-more.d.ts +0 -1
  279. package/dist/smartart/smartart-picker.d.ts +1 -2
  280. package/dist/smartart/smartart-text-pane-tools.d.ts +0 -1
  281. package/dist/smartart.js +3 -3
  282. package/dist/suite/document-store.d.ts +10 -0
  283. package/dist/suite.js +45 -6
  284. package/dist/teams/app/content-preview.d.ts +1 -1
  285. package/dist/teams/app/dialogs.d.ts +18 -0
  286. package/dist/teams/app/teams-app.d.ts +8 -0
  287. package/dist/teams/i18n/locales/de.d.ts +4 -0
  288. package/dist/teams/i18n/locales/en/shell.d.ts +4 -0
  289. package/dist/teams/i18n/locales/en.d.ts +4 -0
  290. package/dist/teams/i18n/locales/es.d.ts +4 -0
  291. package/dist/teams/i18n/locales/fr.d.ts +4 -0
  292. package/dist/teams/i18n/locales/zh-CN.d.ts +4 -0
  293. package/dist/teams.js +7 -7
  294. package/dist/theme-bridge.d.ts +0 -1
  295. package/dist/theme.js +2 -2
  296. package/dist/tokens.d.ts +5 -0
  297. package/dist/tokens.d.ts.map +1 -1
  298. package/dist/visio/binding.d.ts +3 -0
  299. package/dist/visio/controller.d.ts +2 -0
  300. package/dist/visio/locales/cloud-files.d.ts +4 -0
  301. package/dist/visio/viewer-backstage.d.ts +5 -1
  302. package/dist/visio/viewer-cloud-places.d.ts +16 -0
  303. package/dist/visio/viewer-connected-services.d.ts +13 -0
  304. package/dist/visio/viewer-element.d.ts +16 -1
  305. package/dist/visio/viewer-share-ui.d.ts +27 -0
  306. package/dist/visio/viewer-share.d.ts +7 -2
  307. package/dist/visio.js +476 -69
  308. package/dist/xlsx/backstage/cloud-labels.d.ts +4 -0
  309. package/dist/xlsx/backstage/index.d.ts +1 -1
  310. package/dist/xlsx/backstage/pages-account.d.ts +2 -0
  311. package/dist/xlsx/backstage/pages-file.d.ts +0 -1
  312. package/dist/xlsx/backstage/pages-open.d.ts +2 -0
  313. package/dist/xlsx/backstage/pages-share.d.ts +5 -6
  314. package/dist/xlsx/backstage/parts.d.ts +5 -0
  315. package/dist/xlsx/component.d.ts +8 -0
  316. package/dist/xlsx/editor-core.d.ts +10 -1
  317. package/dist/xlsx/editor-files.d.ts +14 -1
  318. package/dist/xlsx/editor-shell.d.ts +3 -0
  319. package/dist/xlsx/element-api.d.ts +14 -5
  320. package/dist/xlsx.js +247 -89
  321. package/package.json +3 -3
  322. package/dist/chunk-7RRN2GPO.js +0 -19
@@ -0,0 +1,49 @@
1
+ /**
2
+ * What a flip does to carried morph text.
3
+ *
4
+ * PowerPoint never mirrors text: a horizontally flipped shape paints its text
5
+ * as the unflipped shape does, and a vertical flip turns it upside down about
6
+ * its text rectangle (`text-flip-compensation`). So the text of a flipped
7
+ * shape is the text of an UNFLIPPED shape turned by 180 degrees per vertical
8
+ * flip, as long as its text rectangle mirrors onto itself (equal left and
9
+ * right insets, and a geometry text rectangle centred across the box).
10
+ *
11
+ * A flip that changes between the slides therefore morphs like a rotation
12
+ * that changes by 180 degrees. Measured on PowerPoint 16 (`CreateVideo`,
13
+ * 60 fps, 720p): a "Lorem ipsum dolor" text box gaining `flipV` while it moves
14
+ * turns its text 0 -> -13 -> -32 -> -53 -> -75 -> -96 -> -115 -> ... -> -180
15
+ * degrees (anti-clockwise, never mirrored or squashed: the ink stays 318 px
16
+ * long and 26 px tall on every frame), about the middle of its text; a filled
17
+ * rounded rectangle gaining `flipV` does the same with its text while its body
18
+ * flips edge-on. That is the half-turn rule `shortestRotationTarget` already
19
+ * applies to a shape turning 0 -> 180.
20
+ *
21
+ * @module render/morph-text-flip
22
+ */
23
+ import type { PptxElement } from 'ooxml-core/pptx';
24
+ /** The turn (degrees) a vertical flip adds to an element's text. */
25
+ export declare function morphTextFlipTurn(element: Pick<PptxElement, 'flipVertical'>): number;
26
+ /**
27
+ * The unflipped element whose text paints exactly where `element`'s does, or
28
+ * `undefined` when there is none (an off-centre text rectangle). An unflipped
29
+ * element is returned as it is.
30
+ */
31
+ export declare function morphTextUpright(element: PptxElement): PptxElement | undefined;
32
+ /**
33
+ * Whether a matched SHAPE (one that paints a body) gains or loses a flip
34
+ * while holding the same text, so its text has to be carried apart from its
35
+ * body (`morph-text-body`): the body flips edge-on, the text never squashes.
36
+ * Such a pair is painted through the overlay even when nothing else about it
37
+ * changes, since the split copies stand in for its ghost.
38
+ */
39
+ export declare function morphShapeTextFlipChanges(from: PptxElement, to: PptxElement): boolean;
40
+ /**
41
+ * The element rotations (degrees) the two halves of a carried text pair are
42
+ * stated at on their first and last frames, each half keeping its own flips.
43
+ * Their TEXT turns the short way from one half's text angle to the other's.
44
+ */
45
+ export declare function morphCarriedTextRotations(from: PptxElement, to: PptxElement): {
46
+ ghost: [number, number];
47
+ incoming: [number, number];
48
+ };
49
+ //# sourceMappingURL=morph-text-flip.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"morph-text-flip.d.ts","sourceRoot":"","sources":["../../../src/pptx/render/morph-text-flip.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAWnD,oEAAoE;AACpE,wBAAgB,iBAAiB,CAAC,OAAO,EAAE,IAAI,CAAC,WAAW,EAAE,cAAc,CAAC,GAAG,MAAM,CAEpF;AAED;;;;GAIG;AACH,wBAAgB,gBAAgB,CAAC,OAAO,EAAE,WAAW,GAAG,WAAW,GAAG,SAAS,CAc9E;AAED;;;;;;GAMG;AACH,wBAAgB,yBAAyB,CAAC,IAAI,EAAE,WAAW,EAAE,EAAE,EAAE,WAAW,GAAG,OAAO,CAcrF;AAED;;;;GAIG;AACH,wBAAgB,yBAAyB,CACxC,IAAI,EAAE,WAAW,EACjB,EAAE,EAAE,WAAW,GACb;IAAE,KAAK,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAAC,QAAQ,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;CAAE,CASzD"}
@@ -0,0 +1,97 @@
1
+ /**
2
+ * One half of a carried-text morph: where its text is anchored and how wide
3
+ * each of its lines is. See `morph-text-frame` for what PowerPoint does with it.
4
+ *
5
+ * @module render/morph-text-frame-read
6
+ */
7
+ import type { PptxElement } from 'ooxml-core/pptx';
8
+ import type { RenderParagraph } from './paragraph-types.js';
9
+ /**
10
+ * Advance width of `text` painted in the canvas `font` shorthand, or
11
+ * `undefined` when nothing can measure (no DOM).
12
+ */
13
+ export type MorphTextMeasure = (text: string, font: string, kerning: boolean) => number | undefined;
14
+ /** The default measurer: a 2D canvas, the same one the text renderer uses. */
15
+ export declare const measureMorphTextWithCanvas: MorphTextMeasure;
16
+ /** What one half contributes: its anchor and its paragraphs' line extents. */
17
+ export interface TextFrame {
18
+ anchorX: number;
19
+ anchorY: number;
20
+ align: string;
21
+ vAlign: string;
22
+ /** Column width the paragraphs lay out in. */
23
+ available: number;
24
+ wraps: boolean;
25
+ /** Left and top body insets, in px from the element's own box. */
26
+ insetLeft: number;
27
+ insetTop: number;
28
+ /** Bottom body inset and the element's height, for middle and bottom anchors. */
29
+ insetBottom: number;
30
+ boxHeight: number;
31
+ /** `a:bodyPr/@anchorCtr`: the paragraphs are centred as one shrink-wrapped block. */
32
+ anchorCenter: boolean;
33
+ /**
34
+ * A distributed or justified vertical anchor: the column spreads several
35
+ * paragraphs over the box (`space-between`) rather than centring them.
36
+ */
37
+ anchorSpread?: boolean;
38
+ paragraphs: FrameParagraph[];
39
+ }
40
+ /** One paragraph of a {@link TextFrame}. */
41
+ export interface FrameParagraph {
42
+ text: string;
43
+ fonts: string[];
44
+ /** Largest run font size (px), the paragraph's line extent for alignment. */
45
+ size: number;
46
+ runs: RenderParagraph['runs'];
47
+ /** Font size (px) of the paragraph's own strut: its line boxes are at least this tall. */
48
+ strut: number;
49
+ /** The canvas font of the paragraph's strut (the body's face at its strut size). */
50
+ strutFont: string;
51
+ /** The CSS `line-height` the paragraph lays out with. */
52
+ lineHeight: number | string;
53
+ /**
54
+ * The gap (px) below the paragraph: its own `margin-bottom` plus the next
55
+ * paragraph's `margin-top`, which the flex column adds.
56
+ */
57
+ spaceAfterPx: number;
58
+ /** `margin-top` (px) above the paragraph; only the first one's moves the block. */
59
+ spaceBeforePx?: number;
60
+ /** The relative `top` (px) that puts the paragraph on PowerPoint's baselines. */
61
+ baselineShiftPx?: number;
62
+ /** `margin-left` and `text-indent` (px) the paragraph is laid out with. */
63
+ marginLeftPx: number;
64
+ textIndentPx: number;
65
+ /** Font size (px) of the paragraph element itself, before its runs. */
66
+ ownStrut: number;
67
+ /** The paragraph's own `text-align` and `text-align-last`, as painted. */
68
+ textAlign: string;
69
+ textAlignLast: string | undefined;
70
+ /** Whether a margin, indent or space before moves its lines off the plain column. */
71
+ indented: boolean;
72
+ }
73
+ /**
74
+ * Whether `element` paints anything besides its text: a picture, a group, a
75
+ * fill or an outline. Such a pair's text can only be carried apart from its
76
+ * body (see `morph-text-body`).
77
+ */
78
+ export declare function paintsBody(element: PptxElement): boolean;
79
+ /** What {@link readFrame} may accept beyond a plain, upright, body-less text box. */
80
+ export interface ReadFrameOptions {
81
+ /**
82
+ * Accept a rotated box. Its frame is read in the box's own, unrotated
83
+ * coordinates, so the caller has to rotate whatever it derives from it.
84
+ */
85
+ rotated?: boolean;
86
+ /** Accept a box that paints a fill or an outline, reading only its text. */
87
+ withBody?: boolean;
88
+ /**
89
+ * Accept a horizontally flipped box. Its text is painted unmirrored (see
90
+ * `text-flip-compensation`), so it reads like an unflipped box's as long
91
+ * as its left and right insets match, at any rotation.
92
+ */
93
+ flippedH?: boolean;
94
+ }
95
+ export declare function readFrame(element: PptxElement, options?: ReadFrameOptions): TextFrame | undefined;
96
+ export declare function paragraphWidth(paragraph: FrameParagraph, measure: MorphTextMeasure): number | undefined;
97
+ //# sourceMappingURL=morph-text-frame-read.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"morph-text-frame-read.d.ts","sourceRoot":"","sources":["../../../src/pptx/render/morph-text-frame-read.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AASnD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAOzD;;;GAGG;AACH,MAAM,MAAM,gBAAgB,GAAG,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,KAAK,MAAM,GAAG,SAAS,CAAC;AAIpG,8EAA8E;AAC9E,eAAO,MAAM,0BAA0B,EAAE,gBAYxC,CAAC;AAEF,8EAA8E;AAC9E,MAAM,WAAW,SAAS;IACzB,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,8CAA8C;IAC9C,SAAS,EAAE,MAAM,CAAC;IAClB,KAAK,EAAE,OAAO,CAAC;IACf,kEAAkE;IAClE,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,MAAM,CAAC;IACjB,iFAAiF;IACjF,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,MAAM,CAAC;IAClB,qFAAqF;IACrF,YAAY,EAAE,OAAO,CAAC;IACtB;;;OAGG;IACH,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,UAAU,EAAE,cAAc,EAAE,CAAC;CAC7B;AAED,4CAA4C;AAC5C,MAAM,WAAW,cAAc;IAC9B,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,EAAE,CAAC;IAChB,6EAA6E;IAC7E,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,eAAe,CAAC,MAAM,CAAC,CAAC;IAC9B,0FAA0F;IAC1F,KAAK,EAAE,MAAM,CAAC;IACd,oFAAoF;IACpF,SAAS,EAAE,MAAM,CAAC;IAClB,yDAAyD;IACzD,UAAU,EAAE,MAAM,GAAG,MAAM,CAAC;IAC5B;;;OAGG;IACH,YAAY,EAAE,MAAM,CAAC;IACrB,mFAAmF;IACnF,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,iFAAiF;IACjF,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,2EAA2E;IAC3E,YAAY,EAAE,MAAM,CAAC;IACrB,YAAY,EAAE,MAAM,CAAC;IACrB,uEAAuE;IACvE,QAAQ,EAAE,MAAM,CAAC;IACjB,0EAA0E;IAC1E,SAAS,EAAE,MAAM,CAAC;IAClB,aAAa,EAAE,MAAM,GAAG,SAAS,CAAC;IAClC,qFAAqF;IACrF,QAAQ,EAAE,OAAO,CAAC;CAClB;AAQD;;;;GAIG;AACH,wBAAgB,UAAU,CAAC,OAAO,EAAE,WAAW,GAAG,OAAO,CAoBxD;AAsBD,qFAAqF;AACrF,MAAM,WAAW,gBAAgB;IAChC;;;OAGG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,4EAA4E;IAC5E,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;CACnB;AAOD,wBAAgB,SAAS,CACxB,OAAO,EAAE,WAAW,EACpB,OAAO,GAAE,gBAAqB,GAC5B,SAAS,GAAG,SAAS,CA8HvB;AAED,wBAAgB,cAAc,CAC7B,SAAS,EAAE,cAAc,EACzB,OAAO,EAAE,gBAAgB,GACvB,MAAM,GAAG,SAAS,CAWpB"}
@@ -0,0 +1,66 @@
1
+ /**
2
+ * Where a morphing text box's TEXT sits, so a matched pair can carry its
3
+ * glyphs rather than its box.
4
+ *
5
+ * A matched pair normally interpolates its whole box: the incoming half starts
6
+ * scaled onto the outgoing box and the ghost ends scaled onto the incoming one.
7
+ * For a shape that is the morph PowerPoint plays. For a text box it is not,
8
+ * because PowerPoint morphs the text's own line fragments, not the container.
9
+ * Measured on PowerPoint 16's render (`CreateVideo`, 60 fps, 960 x 540):
10
+ *
11
+ * - Calibri -> Courier New, same box, 32 pt: the line's right edge travels
12
+ * 565 -> 776 px on the morph curve while its left edge stays at 49-50 px,
13
+ * and BOTH renders are stretched onto that interpolated line: mid-morph the
14
+ * Calibri word "Lorem" is visibly widened and the Courier one narrowed, and
15
+ * where the two faces place a letter differently (monospace against
16
+ * proportional) the two copies show through each other.
17
+ * - Calibri 24 -> 48 pt, same box: one sharp copy that scales uniformly about
18
+ * the line's start, 209 -> 419 px wide and 19 -> 40 px tall.
19
+ * - Calibri Light -> Calibri (issue #141, synthetic and the corporate deck's
20
+ * slides 6 -> 7): the two faces have nearly proportional advances, so the
21
+ * stretched renders coincide and read as one copy whose weight thickens.
22
+ * - A wrapped paragraph whose line breaks differ (28 -> 36 pt in a 500 pt
23
+ * box) splits into the pieces that share a line in BOTH layouts
24
+ * ("consectetur" leaves the end of line 1 for the start of line 2), and
25
+ * each piece flies on its own.
26
+ * - A box that TURNS (0 -> 40 or 60 degrees, Calibri -> Arial or 32 -> 40
27
+ * pt) carries one glyph-aligned copy too, turning about the middle of its
28
+ * text (see `morph-text-transform`).
29
+ * - A box flipped horizontally paints its text unmirrored, and a flip that
30
+ * changes between the slides leaves the text alone: it travels and
31
+ * restyles exactly like an unflipped one, never mirroring through zero.
32
+ * - A box flipped vertically paints its text upside down, and gaining or
33
+ * losing that flip turns the text half way round about its middle
34
+ * (see `morph-text-flip`).
35
+ *
36
+ * The overlay can only move a whole element, so this resolves the case where
37
+ * every paragraph is ONE line in both layouts (or the two layouts are the same
38
+ * text in the same fonts in an equally wide column, which breaks identically):
39
+ * then each half maps onto the other by one scale about the text's alignment
40
+ * anchor, and the result is exact for one paragraph and close for several.
41
+ * Wrapped text whose breaks may differ is split into its pieces instead (see
42
+ * `morph-text-pieces`), or left to the box interpolation when it cannot be.
43
+ *
44
+ * @module render/morph-text-frame
45
+ */
46
+ import type { PptxElement } from 'ooxml-core/pptx';
47
+ import type { MorphFontMetrics } from './morph-text-baseline.js';
48
+ import type { MorphTextMeasure, ReadFrameOptions } from './morph-text-frame-read.js';
49
+ import type { MorphTextAlignment } from './morph-text-transform.js';
50
+ export type { MorphTextMeasure } from './morph-text-frame-read.js';
51
+ export { measureMorphTextWithCanvas } from './morph-text-frame-read.js';
52
+ export type { MorphTextAlignment, MorphTextTransform } from './morph-text-transform.js';
53
+ export { morphTextGhostEnd, morphTextGhostStart, morphTextIncomingEnd, morphTextIncomingStart, morphTextTail, } from './morph-text-transform.js';
54
+ /**
55
+ * Resolve how a matched text pair's outgoing text maps onto its incoming text,
56
+ * or `undefined` when the pair has to keep interpolating its box.
57
+ *
58
+ * @param from - The outgoing half.
59
+ * @param to - The incoming half.
60
+ * @param measure - Text measurement; defaults to a canvas. Without one only a
61
+ * pair in identical fonts and an equally wide column can be aligned.
62
+ */
63
+ export declare function resolveMorphTextAlignment(fromHalf: PptxElement, toHalf: PptxElement, measure?: MorphTextMeasure, options?: Pick<ReadFrameOptions, 'withBody'> & {
64
+ metrics?: MorphFontMetrics;
65
+ }): MorphTextAlignment | undefined;
66
+ //# sourceMappingURL=morph-text-frame.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"morph-text-frame.d.ts","sourceRoot":"","sources":["../../../src/pptx/render/morph-text-frame.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4CG;AACH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAGnD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAM9D,OAAO,KAAK,EAAE,gBAAgB,EAAE,gBAAgB,EAAa,MAAM,yBAAyB,CAAC;AAG7F,OAAO,KAAK,EAAc,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAE7E,YAAY,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAChE,OAAO,EAAE,0BAA0B,EAAE,MAAM,yBAAyB,CAAC;AACrE,YAAY,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AACrF,OAAO,EACN,iBAAiB,EACjB,mBAAmB,EACnB,oBAAoB,EACpB,sBAAsB,EACtB,aAAa,GACb,MAAM,wBAAwB,CAAC;AA8DhC;;;;;;;;GAQG;AACH,wBAAgB,yBAAyB,CACxC,QAAQ,EAAE,WAAW,EACrB,MAAM,EAAE,WAAW,EACnB,OAAO,GAAE,gBAA6C,EACtD,OAAO,GAAE,IAAI,CAAC,gBAAgB,EAAE,UAAU,CAAC,GAAG;IAAE,OAAO,CAAC,EAAE,gBAAgB,CAAA;CAAO,GAC/E,kBAAkB,GAAG,SAAS,CAoIhC"}
@@ -0,0 +1,43 @@
1
+ /**
2
+ * Where a morphing text box's glyphs actually paint ink, so the band a text
3
+ * piece is clipped to (`morph-text-pieces`) can follow its own words rather
4
+ * than the line boxes they sit in. A descender, an italic overhang or an
5
+ * accent reaches past its line box; a band cut at the line box slices it off,
6
+ * one cut through the ink of the neighbouring line lets that line show twice.
7
+ *
8
+ * The canvas reports both the ink box of a string (`actualBoundingBox*`) and
9
+ * the font's own ascent and descent (`fontBoundingBox*`), which is what CSS
10
+ * places a line's baseline with.
11
+ *
12
+ * @module render/morph-text-ink
13
+ */
14
+ import type { FrameParagraph, MorphTextMeasure } from './morph-text-frame-read.js';
15
+ import type { MorphTextRect } from './morph-text-spans.js';
16
+ /** A string's ink and its font's ascent and descent, in px about its baseline origin. */
17
+ export interface MorphTextInkBox {
18
+ /** Ink extent left of the origin (positive reaches left) and right of it. */
19
+ left: number;
20
+ right: number;
21
+ /** Ink above and below the baseline. */
22
+ ascent: number;
23
+ descent: number;
24
+ /** The font's ascent and descent, which place the baseline in its line. */
25
+ fontAscent: number;
26
+ fontDescent: number;
27
+ }
28
+ /** Ink of `text` painted in the canvas `font`, or `undefined` when nothing can measure. */
29
+ export type MorphTextInkMeasure = (text: string, font: string, kerning: boolean) => MorphTextInkBox | undefined;
30
+ /** The default ink measurer: a 2D canvas, the one the advance widths come from. */
31
+ export declare const measureMorphTextInkWithCanvas: MorphTextInkMeasure;
32
+ /**
33
+ * The baseline (px from the line's top) of a line of `paragraph` whose runs
34
+ * are `touched`, `height` tall. CSS centres each inline box's line height on
35
+ * its own ascent and descent; the strut is the paragraph's own font at its own
36
+ * size, and under exact spacing (runs at `line-height: 0`) it alone counts.
37
+ */
38
+ export declare function lineBaseline(paragraph: FrameParagraph, touched: number[], sizeOf: (index: number) => number, height: number, ink: MorphTextInkMeasure): number | undefined;
39
+ /** Where each glyph of `[start, end)`, advancing from `x` on `baseline`, paints ink. */
40
+ export declare function glyphInk(paragraph: FrameParagraph, start: number, end: number, x: number, baseline: number, measure: MorphTextMeasure, ink: MorphTextInkMeasure): MorphTextRect[] | undefined;
41
+ /** The smallest rectangle holding every one of `rects`, or `undefined` for none. */
42
+ export declare function union(rects: MorphTextRect[]): MorphTextRect | undefined;
43
+ //# sourceMappingURL=morph-text-ink.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"morph-text-ink.d.ts","sourceRoot":"","sources":["../../../src/pptx/render/morph-text-ink.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AACH,OAAO,KAAK,EAAE,cAAc,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAChF,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAGxD,yFAAyF;AACzF,MAAM,WAAW,eAAe;IAC/B,6EAA6E;IAC7E,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,wCAAwC;IACxC,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,CAAC;IAChB,2EAA2E;IAC3E,UAAU,EAAE,MAAM,CAAC;IACnB,WAAW,EAAE,MAAM,CAAC;CACpB;AAED,2FAA2F;AAC3F,MAAM,MAAM,mBAAmB,GAAG,CACjC,IAAI,EAAE,MAAM,EACZ,IAAI,EAAE,MAAM,EACZ,OAAO,EAAE,OAAO,KACZ,eAAe,GAAG,SAAS,CAAC;AAIjC,mFAAmF;AACnF,eAAO,MAAM,6BAA6B,EAAE,mBAoB3C,CAAC;AAEF;;;;;GAKG;AACH,wBAAgB,YAAY,CAC3B,SAAS,EAAE,cAAc,EACzB,OAAO,EAAE,MAAM,EAAE,EACjB,MAAM,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,MAAM,EACjC,MAAM,EAAE,MAAM,EACd,GAAG,EAAE,mBAAmB,GACtB,MAAM,GAAG,SAAS,CAmBpB;AAED,wFAAwF;AACxF,wBAAgB,QAAQ,CACvB,SAAS,EAAE,cAAc,EACzB,KAAK,EAAE,MAAM,EACb,GAAG,EAAE,MAAM,EACX,CAAC,EAAE,MAAM,EACT,QAAQ,EAAE,MAAM,EAChB,OAAO,EAAE,gBAAgB,EACzB,GAAG,EAAE,mBAAmB,GACtB,aAAa,EAAE,GAAG,SAAS,CAwB7B;AAED,oFAAoF;AACpF,wBAAgB,KAAK,CAAC,KAAK,EAAE,aAAa,EAAE,GAAG,aAAa,GAAG,SAAS,CAUvE"}
@@ -0,0 +1,73 @@
1
+ /**
2
+ * Where each WORD of a morphing text box sits once its paragraphs wrap, so a
3
+ * pair whose line breaks differ can be split into the pieces PowerPoint flies
4
+ * on their own (see `morph-text-pieces`).
5
+ *
6
+ * This is a greedy word wrap over the canvas measurement `morph-text-frame`
7
+ * already uses, which is how the browser breaks plain Latin text, followed by
8
+ * the CSS the renderer paints with: `margin-left` and `text-indent` narrow
9
+ * and shift a paragraph's lines, `text-align` places each line (`justify`
10
+ * spreads every line but a paragraph's last over its spaces), a line is as
11
+ * tall as its largest run, paragraph margins open the gaps between them, and
12
+ * the flex column centres or bottom-aligns the whole block for a middle or bottom
13
+ * anchor.
14
+ *
15
+ * A shrink-wrapped (`anchorCtr`) block that fits on one line per paragraph is
16
+ * as wide as its widest paragraph (`width: fit-content`), centred in the box,
17
+ * as PowerPoint draws it.
18
+ *
19
+ * It refuses anything it cannot reproduce with confidence: mixed font sizes in
20
+ * different faces or under exact line spacing, distributed alignment,
21
+ * transformed or shifted text, a non-breaking space in justified text, a
22
+ * word wider than its column, a break within a pixel of the column edge
23
+ * (where rounding could move it), a shrink-wrapped block that wraps, holds a
24
+ * line break or nearly fills the column (PowerPoint shrinks a wrapped one to
25
+ * its longest line, `fit-content` does not), several paragraphs spread over a
26
+ * distributed anchor, and text overflowing a box not anchored at its top
27
+ * (both lay it out alike, but a piece, a copy of the box, loses what spills
28
+ * past its edge, which measured worse than carrying the box).
29
+ *
30
+ * @module render/morph-text-lines
31
+ */
32
+ import type { MorphTextMeasure, TextFrame } from './morph-text-frame-read.js';
33
+ import type { MorphTextInkMeasure } from './morph-text-ink.js';
34
+ import type { MorphTextRect } from './morph-text-spans.js';
35
+ export type { MorphTextRect } from './morph-text-spans.js';
36
+ /** One word, in px from the element's own top-left corner. */
37
+ export interface MorphTextWord {
38
+ /** Paragraph index within the frame. */
39
+ paragraph: number;
40
+ /** Line index within the whole frame. */
41
+ line: number;
42
+ /** Left and right advance extent of the word. */
43
+ x0: number;
44
+ x1: number;
45
+ /** Where its glyphs paint, when an ink measurer was given: all of them, and each. */
46
+ ink?: MorphTextRect;
47
+ glyphs?: MorphTextRect[];
48
+ }
49
+ /** One laid-out line. */
50
+ export interface MorphTextLine {
51
+ top: number;
52
+ height: number;
53
+ /** Left edge of the line's first word and right edge of its last. */
54
+ x0: number;
55
+ x1: number;
56
+ /** Whether `justify` spread the line's words apart. */
57
+ justified: boolean;
58
+ }
59
+ /** A frame's words, in reading order, and its lines. */
60
+ export interface MorphTextLayout {
61
+ words: MorphTextWord[];
62
+ lines: MorphTextLine[];
63
+ /** Bottom of the last line, plus the space after the last paragraph. */
64
+ bottom: number;
65
+ }
66
+ /**
67
+ * Lay out `frame` word by word, or `undefined` when its layout cannot be
68
+ * reproduced with confidence.
69
+ *
70
+ * @param ink - Ink measurement; without it the words carry no ink boxes.
71
+ */
72
+ export declare function layoutMorphTextWords(frame: TextFrame, measure: MorphTextMeasure, ink?: MorphTextInkMeasure): MorphTextLayout | undefined;
73
+ //# sourceMappingURL=morph-text-lines.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"morph-text-lines.d.ts","sourceRoot":"","sources":["../../../src/pptx/render/morph-text-lines.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AACH,OAAO,KAAK,EAAkB,gBAAgB,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AAE3F,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAE5D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAIxD,YAAY,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAExD,8DAA8D;AAC9D,MAAM,WAAW,aAAa;IAC7B,wCAAwC;IACxC,SAAS,EAAE,MAAM,CAAC;IAClB,yCAAyC;IACzC,IAAI,EAAE,MAAM,CAAC;IACb,iDAAiD;IACjD,EAAE,EAAE,MAAM,CAAC;IACX,EAAE,EAAE,MAAM,CAAC;IACX,qFAAqF;IACrF,GAAG,CAAC,EAAE,aAAa,CAAC;IACpB,MAAM,CAAC,EAAE,aAAa,EAAE,CAAC;CACzB;AAED,yBAAyB;AACzB,MAAM,WAAW,aAAa;IAC7B,GAAG,EAAE,MAAM,CAAC;IACZ,MAAM,EAAE,MAAM,CAAC;IACf,qEAAqE;IACrE,EAAE,EAAE,MAAM,CAAC;IACX,EAAE,EAAE,MAAM,CAAC;IACX,uDAAuD;IACvD,SAAS,EAAE,OAAO,CAAC;CACnB;AAED,wDAAwD;AACxD,MAAM,WAAW,eAAe;IAC/B,KAAK,EAAE,aAAa,EAAE,CAAC;IACvB,KAAK,EAAE,aAAa,EAAE,CAAC;IACvB,wEAAwE;IACxE,MAAM,EAAE,MAAM,CAAC;CACf;AAgID;;;;;GAKG;AACH,wBAAgB,oBAAoB,CACnC,KAAK,EAAE,SAAS,EAChB,OAAO,EAAE,gBAAgB,EACzB,GAAG,CAAC,EAAE,mBAAmB,GACvB,eAAe,GAAG,SAAS,CAyE7B"}
@@ -0,0 +1,37 @@
1
+ import type { MorphCrossfadeGroup } from './morph-crossfade-group.js';
2
+ import type { MorphTextMeasure } from './morph-text-frame.js';
3
+ import type { MorphPair } from './morph-types.js';
4
+ /** What the plan adds for the pairs carried piece by piece. */
5
+ export interface MorphTextPiecePlan {
6
+ /** The pairs replaced by pieces. */
7
+ pairs: MorphPair[];
8
+ /** One group per piece, in the pairs' order. */
9
+ groups: MorphCrossfadeGroup[];
10
+ /** Copy id -> CSS `animation` shorthand, for the outgoing and incoming copies. */
11
+ outgoingAnimations: Map<string, string>;
12
+ incomingAnimations: Map<string, string>;
13
+ keyframes: string[];
14
+ /**
15
+ * Copy id -> the id of the element it copies. A copy may be taller than its
16
+ * source (see `MorphTextPieceSplit`); a binding that clones the source's node
17
+ * gives the clone the copy's height.
18
+ */
19
+ sources: Map<string, string>;
20
+ }
21
+ /** The id a piece copy is painted under. */
22
+ export declare function morphTextPieceId(sourceId: string, index: number): string;
23
+ /**
24
+ * Split every matched text pair whose layout changed into its pieces.
25
+ *
26
+ * Only pairs whose ghost is painted qualify, and only those the whole-box
27
+ * text mapping (`resolveMorphTextAlignment`) cannot carry: a pair it carries
28
+ * already moves exactly, and one it refuses for a reason other than its line
29
+ * breaks is refused here too.
30
+ *
31
+ * @param pairs - The matched pairs.
32
+ * @param ghostIds - Outgoing ids the overlay paints.
33
+ * @param durationMs - The morph's duration.
34
+ * @param measure - Text measurement; defaults to a canvas.
35
+ */
36
+ export declare function buildMorphTextPiecePlan(pairs: readonly MorphPair[], ghostIds: ReadonlySet<string>, durationMs: number, measure?: MorphTextMeasure): MorphTextPiecePlan;
37
+ //# sourceMappingURL=morph-text-piece-plan.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"morph-text-piece-plan.d.ts","sourceRoot":"","sources":["../../../src/pptx/render/morph-text-piece-plan.ts"],"names":[],"mappings":"AAsBA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AACnE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAc3D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAG/C,+DAA+D;AAC/D,MAAM,WAAW,kBAAkB;IAClC,oCAAoC;IACpC,KAAK,EAAE,SAAS,EAAE,CAAC;IACnB,gDAAgD;IAChD,MAAM,EAAE,mBAAmB,EAAE,CAAC;IAC9B,kFAAkF;IAClF,kBAAkB,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACxC,kBAAkB,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACxC,SAAS,EAAE,MAAM,EAAE,CAAC;IACpB;;;;OAIG;IACH,OAAO,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CAC7B;AAED,4CAA4C;AAC5C,wBAAgB,gBAAgB,CAAC,QAAQ,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,MAAM,CAExE;AAmDD;;;;;;;;;;;;GAYG;AACH,wBAAgB,uBAAuB,CACtC,KAAK,EAAE,SAAS,SAAS,EAAE,EAC3B,QAAQ,EAAE,WAAW,CAAC,MAAM,CAAC,EAC7B,UAAU,EAAE,MAAM,EAClB,OAAO,CAAC,EAAE,gBAAgB,GACxB,kBAAkB,CAuDpB"}
@@ -0,0 +1,87 @@
1
+ /**
2
+ * The pieces a rewrapped text box is carried in.
3
+ *
4
+ * Measured on PowerPoint 16's render (`CreateVideo`, 60 fps) of a synthetic
5
+ * pair built through COM: one Calibri paragraph in a 500 pt box with no
6
+ * insets, 28 pt on the first slide and 36 pt on the second, played as Morph
7
+ * by object and as Morph by word (both carry these pieces the same way). The
8
+ * two sizes break the paragraph differently,
9
+ *
10
+ * 28 pt: "Lorem ipsum dolor sit amet consectetur" / "adipiscing elit sed
11
+ * do eiusmod tempor" / "incididunt"
12
+ * 36 pt: "Lorem ipsum dolor sit amet" / "consectetur adipiscing elit sed
13
+ * do" / "eiusmod tempor incididunt"
14
+ *
15
+ * and PowerPoint flies the FIVE runs of words that share a line in both
16
+ * layouts ("Lorem ... amet", "consectetur", "adipiscing elit sed do",
17
+ * "eiusmod tempor", "incididunt") as separate pieces. Each piece's box
18
+ * travels in a straight line from where its words sit on the first slide to
19
+ * where they sit on the second, and scales from one size to the other, on the
20
+ * one morph curve: template-matched at three frames of the 960 x 540 by-word
21
+ * render, every piece's x, y and scale read the same eased progress within
22
+ * 0.02 (0.19, 0.49 and 0.74 at frames 85, 105 and 125 of a morph starting at
23
+ * frame 63.5). This module's pieces, painted by the React demo, match the
24
+ * 1280 x 720 by-object render to a mean pixel difference of 0.8-1.6/255 at
25
+ * 10-90% (5.5/255 when the box was interpolated whole).
26
+ *
27
+ * The same pair rendered again with one property changed (right and centre
28
+ * alignment, a middle or bottom anchor, a first-line or hanging indent, two
29
+ * paragraphs with space before and after, one word at a larger size, Georgia
30
+ * italic, and Calibri -> Cambria or 28 -> 32 pt with the box widened so the
31
+ * breaks stay the same) flies the same runs the same way: a middle or bottom
32
+ * anchored box flies them between its anchored lines, an indented line
33
+ * between its indented positions, and a pair whose breaks stay the same
34
+ * carries each line on its own scale (Calibri -> Cambria stretches its lines
35
+ * by 1.050, 1.047 and 1.079, which no one scale of the box matches). A
36
+ * justified paragraph is the exception: its words are spaced by however much
37
+ * room their line has left, and mid-morph each word is sharp at its own
38
+ * interpolated place, so every word of a justified line is a piece of its own.
39
+ * Painted by the React demo these match PowerPoint to a mean of 1.1-1.3/255
40
+ * at 10-90% (4.4-4.8/255 while the anchored, indented and mixed-size pairs
41
+ * kept their box interpolation, 2.7/255 while the justified pair was laid out
42
+ * as left-aligned).
43
+ *
44
+ * A piece is described by the same mapping `morph-text-frame` uses for a whole
45
+ * box (`MorphTextAlignment`), plus the band of each half it shows
46
+ * (`morph-text-bands`).
47
+ *
48
+ * @module render/morph-text-pieces
49
+ */
50
+ import type { PptxElement } from 'ooxml-core/pptx';
51
+ import type { MorphTextAlignment, MorphTextMeasure } from './morph-text-frame.js';
52
+ import type { MorphTextInkMeasure } from './morph-text-ink.js';
53
+ import type { MorphTextBand } from './morph-text-bands.js';
54
+ export type { MorphTextBand } from './morph-text-bands.js';
55
+ /** One piece: how it maps across, and the part of each half it shows. */
56
+ export interface MorphTextPiece {
57
+ alignment: MorphTextAlignment;
58
+ /** What the outgoing half shows of this piece. */
59
+ fromBand: MorphTextBand;
60
+ /** What the incoming half shows of this piece. */
61
+ toBand: MorphTextBand;
62
+ }
63
+ /** A pair split into pieces, and how tall each half's box must be to hold its text. */
64
+ export interface MorphTextPieceSplit {
65
+ pieces: MorphTextPiece[];
66
+ /**
67
+ * The halves' heights grown to cover their last line. A box whose text
68
+ * overflows it (no autofit) still paints that text on the slide, but a
69
+ * binding may clip a copy to its box; top-anchored text does not move when
70
+ * its box grows, so the copies are painted at these heights.
71
+ */
72
+ fromHeight: number;
73
+ toHeight: number;
74
+ }
75
+ /**
76
+ * Split a matched text pair into the pieces PowerPoint carries, or `undefined`
77
+ * when it cannot be laid out with confidence (the pair then keeps its box
78
+ * interpolation). Both halves must say exactly the same thing.
79
+ *
80
+ * @param from - The outgoing half.
81
+ * @param to - The incoming half.
82
+ * @param measure - Text measurement; defaults to a canvas.
83
+ * @param ink - Ink measurement for the bands' edges; defaults to a canvas
84
+ * when `measure` does, and to none (line-box edges) otherwise.
85
+ */
86
+ export declare function resolveMorphTextPieces(from: PptxElement, to: PptxElement, measure?: MorphTextMeasure, ink?: MorphTextInkMeasure | undefined): MorphTextPieceSplit | undefined;
87
+ //# sourceMappingURL=morph-text-pieces.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"morph-text-pieces.d.ts","sourceRoot":"","sources":["../../../src/pptx/render/morph-text-pieces.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgDG;AACH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAGnD,OAAO,KAAK,EAAE,kBAAkB,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAE/E,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAE5D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAKxD,YAAY,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAExD,yEAAyE;AACzE,MAAM,WAAW,cAAc;IAC9B,SAAS,EAAE,kBAAkB,CAAC;IAC9B,kDAAkD;IAClD,QAAQ,EAAE,aAAa,CAAC;IACxB,kDAAkD;IAClD,MAAM,EAAE,aAAa,CAAC;CACtB;AAED,uFAAuF;AACvF,MAAM,WAAW,mBAAmB;IACnC,MAAM,EAAE,cAAc,EAAE,CAAC;IACzB;;;;;OAKG;IACH,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,MAAM,CAAC;CACjB;AAID;;;;;;;;;;GAUG;AACH,wBAAgB,sBAAsB,CACrC,IAAI,EAAE,WAAW,EACjB,EAAE,EAAE,WAAW,EACf,OAAO,GAAE,gBAA6C,EACtD,GAAG,GAAE,mBAAmB,GAAG,SAEf,GACV,mBAAmB,GAAG,SAAS,CA4EjC"}
@@ -6,12 +6,27 @@
6
6
  */
7
7
  import type { PptxElement } from 'ooxml-core/pptx';
8
8
  /**
9
- * A text box entirely outside the top or left edge can adopt its destination
10
- * font size before it enters the slide. This avoids superimposing two layouts
11
- * of the same text during its flight. Restrict this to size-only run changes:
12
- * a change in wording, font, colour or emphasis still needs a cross-dissolve.
9
+ * A size-only text change that can fly as ONE copy, because one end of the
10
+ * flight is entirely outside the top or left edge where the switch between
11
+ * the two layouts cannot be seen. This avoids superimposing two layouts of the
12
+ * same text during its flight. Restrict this to size-only run changes: a
13
+ * change in wording, font, colour or emphasis still needs a cross-dissolve.
14
+ *
15
+ * Either end qualifies. Issue #141's slides 17 -> 18 bring a parked paragraph
16
+ * IN from off the left edge; played backwards (18 -> 17) the same paragraph
17
+ * flies OUT to that parking spot, and checking only the source left the
18
+ * reverse cross-dissolving two layouts across the slide.
19
+ *
20
+ * @see morphOffstageTextAdoptsTarget for which layout the single copy paints.
13
21
  */
14
22
  export declare function morphOffstageTextSizeChange(from: PptxElement, to: PptxElement): boolean;
23
+ /**
24
+ * Whether the single travelling copy of {@link morphOffstageTextSizeChange}
25
+ * paints the DESTINATION layout: only when the source is the off-stage end,
26
+ * so the switch happens before the text enters. When the destination is the
27
+ * off-stage end the copy keeps its own layout until it has left the slide.
28
+ */
29
+ export declare function morphOffstageTextAdoptsTarget(from: PptxElement, to: PptxElement): boolean;
15
30
  /**
16
31
  * Whether a matched pair of TEXT BOXES holds different wording in the same slot.
17
32
  *
@@ -1 +1 @@
1
- {"version":3,"file":"morph-text-slot.d.ts","sourceRoot":"","sources":["../../../src/pptx/render/morph-text-slot.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAyBnD;;;;;GAKG;AACH,wBAAgB,2BAA2B,CAAC,IAAI,EAAE,WAAW,EAAE,EAAE,EAAE,WAAW,GAAG,OAAO,CAoCvF;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,wBAAgB,uBAAuB,CAAC,WAAW,EAAE,WAAW,EAAE,SAAS,EAAE,WAAW,GAAG,OAAO,CAUjG"}
1
+ {"version":3,"file":"morph-text-slot.d.ts","sourceRoot":"","sources":["../../../src/pptx/render/morph-text-slot.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAiCnD;;;;;;;;;;;;;GAaG;AACH,wBAAgB,2BAA2B,CAAC,IAAI,EAAE,WAAW,EAAE,EAAE,EAAE,WAAW,GAAG,OAAO,CAEvF;AAED;;;;;GAKG;AACH,wBAAgB,6BAA6B,CAAC,IAAI,EAAE,WAAW,EAAE,EAAE,EAAE,WAAW,GAAG,OAAO,CAEzF;AAuCD;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,wBAAgB,uBAAuB,CAAC,WAAW,EAAE,WAAW,EAAE,SAAS,EAAE,WAAW,GAAG,OAAO,CAUjG"}
@@ -0,0 +1,27 @@
1
+ /**
2
+ * The text of a morphing paragraph, run by run: which runs a stretch of it
3
+ * spans and how far it advances, measured the way the browser lays it out.
4
+ * Shared by the word layout (`morph-text-lines`) and its ink (`morph-text-ink`).
5
+ *
6
+ * @module render/morph-text-spans
7
+ */
8
+ import type { FrameParagraph, MorphTextMeasure } from './morph-text-frame-read.js';
9
+ /** A rectangle in px from an element's own top-left corner. */
10
+ export interface MorphTextRect {
11
+ left: number;
12
+ top: number;
13
+ right: number;
14
+ bottom: number;
15
+ }
16
+ export declare function pxOf(value: string | number | undefined): number | undefined;
17
+ /** The runs of `paragraph` that `[start, end)` touches, with the slice of each. */
18
+ export declare function slices(paragraph: FrameParagraph, start: number, end: number): {
19
+ index: number;
20
+ text: string;
21
+ from: number;
22
+ }[];
23
+ /** Advance width of `paragraph.text.slice(start, end)`, measured run by run. */
24
+ export declare function spanWidth(paragraph: FrameParagraph, start: number, end: number, measure: MorphTextMeasure): number | undefined;
25
+ /** The font family of a canvas `font` shorthand. */
26
+ export declare const familyOf: (font: string) => string;
27
+ //# sourceMappingURL=morph-text-spans.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"morph-text-spans.d.ts","sourceRoot":"","sources":["../../../src/pptx/render/morph-text-spans.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,OAAO,KAAK,EAAE,cAAc,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAEhF,+DAA+D;AAC/D,MAAM,WAAW,aAAa;IAC7B,IAAI,EAAE,MAAM,CAAC;IACb,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;CACf;AAED,wBAAgB,IAAI,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,GAAG,MAAM,GAAG,SAAS,CAM3E;AAED,mFAAmF;AACnF,wBAAgB,MAAM,CAAC,SAAS,EAAE,cAAc,EAAE,KAAK,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM;WACvD,MAAM;UAAQ,MAAM;UAAQ,MAAM;IAWtD;AAED,gFAAgF;AAChF,wBAAgB,SAAS,CACxB,SAAS,EAAE,cAAc,EACzB,KAAK,EAAE,MAAM,EACb,GAAG,EAAE,MAAM,EACX,OAAO,EAAE,gBAAgB,GACvB,MAAM,GAAG,SAAS,CAWpB;AAED,oDAAoD;AACpD,eAAO,MAAM,QAAQ,SAAU,MAAM,KAAG,MAA8C,CAAC"}