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
@@ -12,6 +12,8 @@
12
12
  * @module render/morph-animation
13
13
  */
14
14
  import type { PptxElement, PptxSlide } from 'ooxml-core/pptx';
15
+ import type { MorphViewSize } from './morph-flip-turn.js';
16
+ import type { MorphTextMeasure } from './morph-text-frame.js';
15
17
  import type { MorphAnimationStyle, MorphMode, MorphPair } from './morph-types.js';
16
18
  import type { ZOrderJourney } from './morph-z-order.js';
17
19
  /**
@@ -67,7 +69,9 @@ export declare function morphPairNeedsCrossfade(fromElement: PptxElement, toElem
67
69
  * (`a:alphaModFix`) counts for the same reason: the same picture faded from
68
70
  * invisible to opaque between two slides is a staple of Morph authoring, and
69
71
  * treating it as inert held it at the old transparency until the overlay came
70
- * down, when it popped in (issue #141).
72
+ * down, when it popped in (issue #141). A shape's SHADOW or GLOW counts too:
73
+ * PowerPoint fades a shadow whose distance or blur changed in place (see
74
+ * `morph-effect-carry`), where an inert pair showed the new one from frame 1.
71
75
  */
72
76
  export declare function isInertMorphPair(fromElement: PptxElement, toElement: PptxElement): boolean;
73
77
  /**
@@ -144,9 +148,11 @@ export declare function morphPairIncomingFadesIn(fromElement: PptxElement, toEle
144
148
  * behaviour before the ghost set existed.
145
149
  * @param zSwaps - Incoming id -> z-index journey for stacking-order swaps (see
146
150
  * {@link computeZOrderSwaps}). The track rides the same shorthand.
151
+ * @param measure - Text measurement for `resolveMorphTextAlignment`; defaults
152
+ * to a canvas.
147
153
  * @returns An array of animation style descriptors for each pair.
148
154
  */
149
- export declare function generateMorphAnimations(pairs: MorphPair[], durationMs: number, _mode?: MorphMode, ghostIds?: ReadonlySet<string>, zSwaps?: ReadonlyMap<string, ZOrderJourney>): MorphAnimationStyle[];
155
+ export declare function generateMorphAnimations(pairs: MorphPair[], durationMs: number, mode?: MorphMode, ghostIds?: ReadonlySet<string>, zSwaps?: ReadonlyMap<string, ZOrderJourney>, measure?: MorphTextMeasure, view?: MorphViewSize): MorphAnimationStyle[];
150
156
  /**
151
157
  * Generate the OUTGOING half of every matched pair.
152
158
  *
@@ -176,9 +182,11 @@ export declare function generateMorphAnimations(pairs: MorphPair[], durationMs:
176
182
  * @param ghostIds - Outgoing ids the overlay will paint (see
177
183
  * {@link resolveMorphGhostIds}); pairs outside it get no ghost. Defaults to
178
184
  * "all", the behaviour before the ghost set existed.
185
+ * @param mode - Morph granularity; only `object` carries text lines.
186
+ * @param measure - Text measurement for `resolveMorphTextAlignment`.
179
187
  * @returns Ghost animation descriptors keyed by the OUTGOING element id.
180
188
  */
181
- export declare function generateMorphGhostAnimations(pairs: MorphPair[], durationMs: number, startIndex: number, ghostIds?: ReadonlySet<string>): MorphAnimationStyle[];
189
+ export declare function generateMorphGhostAnimations(pairs: MorphPair[], durationMs: number, startIndex: number, ghostIds?: ReadonlySet<string>, mode?: MorphMode, measure?: MorphTextMeasure, view?: MorphViewSize): MorphAnimationStyle[];
182
190
  /**
183
191
  * The target angle to animate TO so the element turns the short way round.
184
192
  *
@@ -206,10 +214,11 @@ export declare function shortestRotationTarget(fromDeg: number, toDeg: number):
206
214
  /**
207
215
  * Generate fade-out animations for elements that only exist on the outgoing slide.
208
216
  *
209
- * The shape dissolves in the FIRST quarter of the morph rather than across the
210
- * whole of it, and holds at zero from there (see
211
- * {@link MORPH_FADE_OUT_END_PERCENT} for the frames that were measured). Fading
212
- * it over the full duration left it half-visible at the midpoint, on top of an
217
+ * The shape dissolves over the first third of the morph's eased progress (the
218
+ * first quarter of its time) rather than across the whole of it, and holds at
219
+ * zero from there (see `MORPH_FADE_OUT_END_PROGRESS` for the frames that were
220
+ * measured). Fading it over the full duration left it half-visible at the
221
+ * midpoint, on top of an
213
222
  * incoming replacement that was itself half-visible, so the middle of every
214
223
  * morph read as a double exposure where PowerPoint shows a clean gap.
215
224
  *
@@ -229,9 +238,10 @@ export declare function generateUnmatchedFadeOutAnimations(elements: PptxElement
229
238
  /**
230
239
  * Generate fade-in animations for elements that only exist on the incoming slide.
231
240
  *
232
- * The shape stays completely invisible until the morph is
233
- * {@link MORPH_FADE_IN_START_PERCENT}% through, then dissolves in on a
234
- * decelerating curve. See that constant for the frames that were measured.
241
+ * The shape stays completely invisible until the morph's eased progress is two
242
+ * thirds of the way (about {@link MORPH_FADE_IN_START_PERCENT}% of its time),
243
+ * then dissolves in linearly in that progress, which decelerates hard into the
244
+ * end. See `MORPH_FADE_IN_START_PROGRESS` for the frames that were measured.
235
245
  *
236
246
  * Nothing scales: PowerPoint's dissolve keeps the box exactly where it is.
237
247
  *
@@ -271,7 +281,9 @@ export declare function generateTextMorphAnimations(pair: MorphPair, durationMs:
271
281
  * @param zIndexBase - The z-index the live stage gives the incoming slide's
272
282
  * first top-level element (see {@link computeZOrderSwaps}); a binding that
273
283
  * paints master/layout shapes beneath the slide passes their count.
284
+ * @param measure - Text measurement for carrying unchanged text lines (see
285
+ * `morph-text-frame`); defaults to a canvas.
274
286
  * @returns A complete array of animation style descriptors for the transition.
275
287
  */
276
- export declare function generateFullMorphTransition(fromSlide: PptxSlide, toSlide: PptxSlide, durationMs: number, mode?: MorphMode, zIndexBase?: number): MorphAnimationStyle[];
288
+ export declare function generateFullMorphTransition(fromSlide: PptxSlide, toSlide: PptxSlide, durationMs: number, mode?: MorphMode, zIndexBase?: number, measure?: MorphTextMeasure, view?: MorphViewSize): MorphAnimationStyle[];
277
289
  //# sourceMappingURL=morph-animation.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"morph-animation.d.ts","sourceRoot":"","sources":["../../../src/pptx/render/morph-animation.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AACH,OAAO,KAAK,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AA2B9D,OAAO,KAAK,EAAE,mBAAmB,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAS/E,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAA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EAAE,MAAM,GAChB,mBAAmB,EAAE,CAuCvB;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,2BAA2B,CAC1C,IAAI,EAAE,SAAS,EACf,UAAU,EAAE,MAAM,EAClB,IAAI,EAAE,MAAM,GAAG,WAAW,EAC1B,SAAS,EAAE,MAAM,GACf,mBAAmB,EAAE,CAkBvB;AAMD;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,2BAA2B,CAC1C,SAAS,EAAE,SAAS,EACpB,OAAO,EAAE,SAAS,EAClB,UAAU,EAAE,MAAM,EAClB,IAAI,GAAE,SAAoB,EAC1B,UAAU,SAAI,EACd,OAAO,CAAC,EAAE,gBAAgB,EAC1B,IAAI,CAAC,EAAE,aAAa,GAClB,mBAAmB,EAAE,CA2HvB"}
@@ -0,0 +1,8 @@
1
+ import type { MorphTextPiecePlan } from './morph-text-piece-plan.js';
2
+ import type { MorphPair } from './morph-types.js';
3
+ /**
4
+ * Add the carry of every split pair's body copies to the piece plan that
5
+ * already animates them, and their outline tracks to `outlineAnimations`.
6
+ */
7
+ export declare function addMorphBodyCopyCarry(pairs: readonly MorphPair[], durationMs: number, pieces: MorphTextPiecePlan, outlineAnimations: Map<string, string>, customGeometryAnimations?: Map<string, string>): void;
8
+ //# sourceMappingURL=morph-body-carry.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"morph-body-carry.d.ts","sourceRoot":"","sources":["../../../src/pptx/render/morph-body-carry.ts"],"names":[],"mappings":"AAeA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAClE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAE/C;;;GAGG;AACH,wBAAgB,qBAAqB,CACpC,KAAK,EAAE,SAAS,SAAS,EAAE,EAC3B,UAAU,EAAE,MAAM,EAClB,MAAM,EAAE,kBAAkB,EAC1B,iBAAiB,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,EACtC,wBAAwB,CAAC,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,GAC5C,IAAI,CAkCN"}
@@ -0,0 +1,60 @@
1
+ /**
2
+ * The geometry and effect CARRY animations of a morph's matched shapes: what
3
+ * `morph-shape-carry` and `morph-effect-carry` describe, turned into the
4
+ * animations the plan routes onto each half.
5
+ *
6
+ * A carry only means anything on a half whose journey is the plain box
7
+ * journey (`translate` + `scale` from one box onto the other): it is written in
8
+ * that box's local frame. A text box carried line for line, an in-slot rewrite
9
+ * or an off-stage single copy travels some other way and is left alone.
10
+ *
11
+ * @module render/morph-carry
12
+ */
13
+ import type { PptxElement } from 'ooxml-core/pptx';
14
+ import type { MorphEffectPainter } from './morph-effect-carry.js';
15
+ import type { MorphCarryHalf } from './morph-shape-carry.js';
16
+ import type { MorphTextMeasure } from './morph-text-frame.js';
17
+ import type { MorphAnimationStyle, MorphMode, MorphPair } from './morph-types.js';
18
+ /** Whether both halves of a pair travel on the box journey. */
19
+ export declare function morphPairRidesBox(from: PptxElement, to: PptxElement, mode: MorphMode, measure?: MorphTextMeasure): boolean;
20
+ /** Which effects a half paints itself, rather than a ghost dissolving them over it. */
21
+ export interface MorphCarryTarget {
22
+ /** The element id the half is painted under. */
23
+ readonly id: string;
24
+ readonly half: MorphCarryHalf;
25
+ /** Whether this half is the only painter of the pair's effects. */
26
+ readonly effects: boolean;
27
+ /**
28
+ * `underGhost` when the outgoing ghost dissolves over this half and paints
29
+ * the outgoing effects itself (see `morph-effect-carry`). Defaults to `alone`.
30
+ */
31
+ readonly effectPainter?: MorphEffectPainter;
32
+ }
33
+ /**
34
+ * The carry animations of one half: on its container (radii, effects, clip)
35
+ * and on its outline path (`target: 'outline'`).
36
+ */
37
+ export declare function buildMorphCarryAnimations(pair: MorphPair, target: MorphCarryTarget, durationMs: number, tag: string): MorphAnimationStyle[];
38
+ /** Result of {@link generateMorphCarryAnimations}. */
39
+ export interface MorphCarryResult {
40
+ readonly animations: MorphAnimationStyle[];
41
+ /** Pairs whose incoming half got a geometry carry (their outline needs no other tween). */
42
+ readonly carried: ReadonlySet<MorphPair>;
43
+ }
44
+ /**
45
+ * Carry animations for every matched pair whose halves ride the box journey.
46
+ *
47
+ * @param pairs - The matched pairs.
48
+ * @param durationMs - The morph's duration.
49
+ * @param ghostIds - Outgoing ids the overlay paints (see `resolveMorphGhostIds`).
50
+ * @param needsCrossfade - Whether a pair's ghost dissolves over its incoming half.
51
+ * @param inert - Whether a pair is inert (it is then not animated at all).
52
+ * @param mode - Morph granularity.
53
+ * @param measure - Text measurement for the text-alignment check.
54
+ * @param incomingFadesIn - Whether a ghosted pair's incoming half fades in (see
55
+ * `morphPairIncomingFadesIn`). When it does not, the ghost dissolves over a
56
+ * full-strength half, which then fades the incoming effects in under it.
57
+ * Without it such a half carries no effects, as before.
58
+ */
59
+ export declare function generateMorphCarryAnimations(pairs: readonly MorphPair[], durationMs: number, ghostIds: ReadonlySet<string>, needsCrossfade: (from: PptxElement, to: PptxElement) => boolean, inert: (from: PptxElement, to: PptxElement) => boolean, mode: MorphMode, measure?: MorphTextMeasure, incomingFadesIn?: (from: PptxElement, to: PptxElement, ghosted: boolean) => boolean): MorphCarryResult;
60
+ //# sourceMappingURL=morph-carry.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"morph-carry.d.ts","sourceRoot":"","sources":["../../../src/pptx/render/morph-carry.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AACH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAEnD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAE/D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAE1D,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAG3D,OAAO,KAAK,EAAE,mBAAmB,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAG/E,+DAA+D;AAC/D,wBAAgB,iB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ClB"}
@@ -0,0 +1,37 @@
1
+ /**
2
+ * Cubic-bezier arithmetic for the morph timing curves.
3
+ *
4
+ * CSS can only state a timing function per keyframe interval, while PowerPoint
5
+ * drives every part of a morph (travel, resize, rotation, fill colour, and the
6
+ * dissolve of unmatched shapes) from one eased progress value. These helpers
7
+ * let a keyframe interval reproduce an exact slice of that one curve, so the
8
+ * dissolve windows are stated in eased progress and still render with plain
9
+ * CSS keyframes.
10
+ */
11
+ /** Control points of a CSS `cubic-bezier(x1, y1, x2, y2)`. */
12
+ export type BezierPoints = readonly [number, number, number, number];
13
+ /** Progress along a CSS cubic-bezier easing at normalised time `t` (0..1). */
14
+ export declare function easedProgress(t: number, x1: number, y1: number, x2: number, y2: number): number;
15
+ /** The normalised time (0..1) at which the easing reaches `progress` (0..1). */
16
+ export declare function timeAtProgress(progress: number, points: BezierPoints): number;
17
+ /** A slice of an easing curve, ready to be one keyframe interval. */
18
+ export interface EasingSegment {
19
+ /** Where the slice starts, in normalised time (0..1). */
20
+ readonly startTime: number;
21
+ /** Where the slice ends, in normalised time (0..1). */
22
+ readonly endTime: number;
23
+ /** The slice renormalised to a unit square, as a CSS timing function. */
24
+ readonly easing: string;
25
+ }
26
+ /**
27
+ * The part of `points` between eased progress `fromProgress` and `toProgress`,
28
+ * as a keyframe interval and the CSS timing function that reproduces it.
29
+ *
30
+ * A property interpolated linearly from one keyframe to the next on this
31
+ * timing function moves in exact proportion to the whole curve's progress, so
32
+ * "linear in eased progress between a and b" becomes two keyframes and one
33
+ * `animation-timing-function`. The slice of a cubic Bezier is itself a cubic
34
+ * Bezier (de Casteljau), so nothing is approximated.
35
+ */
36
+ export declare function easingSegment(points: BezierPoints, fromProgress: number, toProgress: number): EasingSegment;
37
+ //# sourceMappingURL=morph-easing.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"morph-easing.d.ts","sourceRoot":"","sources":["../../../src/pptx/render/morph-easing.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,8DAA8D;AAC9D,MAAM,MAAM,YAAY,GAAG,SAAS,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC;AAqDrE,8EAA8E;AAC9E,wBAAgB,aAAa,CAAC,CAAC,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,GAAG,MAAM,CAE/F;AAED,gFAAgF;AAChF,wBAAgB,cAAc,CAAC,QAAQ,EAAE,MAAM,EAAE,MAAM,EAAE,YAAY,GAAG,MAAM,CAG7E;AAED,qEAAqE;AACrE,MAAM,WAAW,aAAa;IAC7B,yDAAyD;IACzD,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,uDAAuD;IACvD,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,yEAAyE;IACzE,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;CACxB;AAMD;;;;;;;;;GASG;AACH,wBAAgB,aAAa,CAC5B,MAAM,EAAE,YAAY,EACpB,YAAY,EAAE,MAAM,EACpB,UAAU,EAAE,MAAM,GAChB,aAAa,CAwBf"}
@@ -0,0 +1,75 @@
1
+ /**
2
+ * A morphing shape's EFFECTS (outer shadow, glow) carried the way PowerPoint
3
+ * carries them.
4
+ *
5
+ * Measured on PowerPoint 16 (`CreateVideo`, 60 fps, 720p, Morph by object,
6
+ * 2 s) on a rectangle with a hard black outer shadow (20 pt at 45 degrees, no
7
+ * blur) growing from 200 x 120 pt to 440 x 240 pt: mid-morph there are TWO
8
+ * shadows, one offset `20 pt * W(p) / W0` (the outgoing shadow riding the box)
9
+ * and one `20 pt * W(p) / W1` (the incoming one). Where the box has grown
10
+ * 0.12, 0.23, 0.36, 0.48, 0.59, 0.68, 0.76, 0.83, 0.89, 0.93 of the way, the
11
+ * outer one's alpha reads 0.90, 0.80, 0.67, 0.54, 0.44, 0.35, 0.27, 0.20, 0.14,
12
+ * 0.08 and the inner one's 0.16, 0.27, 0.40, 0.53, 0.61, 0.71, 0.80, 0.85,
13
+ * 0.92, 0.95: `1 - p` and `p` of the morph's eased progress within 0.05, and
14
+ * where the two overlap the shadow stays fully opaque (at 50 % transparency
15
+ * it holds 0.52; with a fill change too, the same). A glow and a soft edge
16
+ * dissolve the same way, two renders each riding the box: a 20 pt soft edge's
17
+ * profile across the right edge is fitted within 0.002-0.005 coverage at every
18
+ * frame by `(1 - p) F(x / k0) + p F(x / k1)`, against 0.02-0.07 for one
19
+ * feather of either end riding the box. A shadow whose
20
+ * distance and blur change in place (10 -> 50 pt, 0 -> 30 pt) fades its new
21
+ * extent in on `p`. PowerPoint cross-dissolves the two ends' effects; the body
22
+ * is ONE shape mid-morph (see `morph-shape-carry`).
23
+ *
24
+ * A CSS `box-shadow` list paints both shadows on the half's own container, in
25
+ * its local frame, plus the layers `morph-effect-shadow` adds where they
26
+ * overlap so the stack sums like a dissolve instead of dipping. A glow is a
27
+ * `drop-shadow()` chain fitted by `morph-effect-glow`. Both are baked as
28
+ * keyframes on the morph's eased progress, since the overlap's alpha is not
29
+ * linear in it.
30
+ *
31
+ * Under a ghost: when the outgoing ghost dissolves over a half that stays at
32
+ * full strength (an opaque body whose fill changed), the ghost paints the
33
+ * outgoing effects itself, fading on `1 - p`, so the incoming half only fades
34
+ * its own in, with the overlap solved for the ghost on top. A half that fades
35
+ * in as well is left alone: it dissolves with its ghost in one additive group
36
+ * when the overlay lifts it (`morph-crossfade-group`), which is the measured
37
+ * blend already.
38
+ *
39
+ * Not carried: a soft edge. It is an SVG filter fixed in the element's own
40
+ * frame, which no keyframe can reach, so a half painting alone keeps the
41
+ * incoming feather riding the box throughout (0.01-0.07 coverage off
42
+ * PowerPoint mid-morph); only a pair dissolving in an additive group gets the
43
+ * measured blend. Several drop-shadows on one end (a glow and a line glow)
44
+ * have no chain to fit and run each one's radius and colour across instead.
45
+ *
46
+ * @module render/morph-effect-carry
47
+ */
48
+ import type { PptxElement } from 'ooxml-core/pptx';
49
+ import type { MorphCarryHalf } from './morph-shape-carry.js';
50
+ /**
51
+ * Whether two shapes paint different container effects (shadow, glow), so a
52
+ * pair that does not move still has something to morph: PowerPoint fades a
53
+ * shadow whose distance or blur changed in place (see the module notes).
54
+ */
55
+ export declare function morphEffectsDiffer(from: PptxElement, to: PptxElement): boolean;
56
+ /** What an effect carry adds to one half's container. */
57
+ export interface MorphEffectCarry {
58
+ /** A keyframes body (stops on the morph's eased progress), run with `linear` timing. */
59
+ readonly keyframes: string;
60
+ }
61
+ /**
62
+ * Who paints the outgoing effects: the half itself (`alone`), or the ghost
63
+ * dissolving over a half that stays at full strength (`underGhost`).
64
+ */
65
+ export type MorphEffectPainter = 'alone' | 'underGhost';
66
+ /**
67
+ * The effect carry for one half of a pair, or `undefined` when both ends'
68
+ * effects land identically in that half's frame.
69
+ *
70
+ * @param painter - `alone` when this half is the only painter of the pair's
71
+ * effects; `underGhost` when the outgoing ghost dissolves over this
72
+ * (incoming, full-strength) half and paints the outgoing effects itself.
73
+ */
74
+ export declare function buildMorphEffectCarry(from: PptxElement, to: PptxElement, half: MorphCarryHalf, painter?: MorphEffectPainter): MorphEffectCarry | undefined;
75
+ //# sourceMappingURL=morph-effect-carry.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"morph-effect-carry.d.ts","sourceRoot":"","sources":["../../../src/pptx/render/morph-effect-carry.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8CG;AACH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAWnD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAO1D;;;;GAIG;AACH,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,WAAW,EAAE,EAAE,EAAE,WAAW,GAAG,OAAO,CAO9E;AAED,yDAAyD;AACzD,MAAM,WAAW,gBAAgB;IAChC,wFAAwF;IACxF,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;CAC3B;AAED;;;GAGG;AACH,MAAM,MAAM,kBAAkB,GAAG,OAAO,GAAG,YAAY,CAAC;AA0GxD;;;;;;;GAOG;AACH,wBAAgB,qBAAqB,CACpC,IAAI,EAAE,WAAW,EACjB,EAAE,EAAE,WAAW,EACf,IAAI,EAAE,cAAc,EACpB,OAAO,GAAE,kBAA4B,GACnC,gBAAgB,GAAG,SAAS,CAwC9B"}
@@ -0,0 +1,42 @@
1
+ /**
2
+ * The `filter` that cross-dissolves a morphing shape's two glows the way
3
+ * PowerPoint does.
4
+ *
5
+ * Measured on PowerPoint 16 (`CreateVideo`, 60 fps, 720p, Morph by object,
6
+ * 2 s) on a rectangle with a 20 pt yellow glow growing from 200 x 120 pt to
7
+ * 440 x 240 pt: the halo beyond the body's right edge is fitted within 0.008
8
+ * (0-1 of full glow) at every frame by `(1 - p) G(x / k0) + p G(x / k1)`, the
9
+ * outgoing and the incoming glow each riding the box (`k = W(p) / W`) and
10
+ * dissolving on the morph's eased progress, and only within 0.017 by the best
11
+ * single glow of any width. So PowerPoint dissolves two glows, as it does two
12
+ * shadows, rather than widening one.
13
+ *
14
+ * A glow is a `drop-shadow()`, and a filter list cannot sum two of them: the
15
+ * second one shadows the first one's output, glow and all. Painting the
16
+ * NARROWER glow first and the wider one over the result keeps that error
17
+ * small, and the two alphas are fitted per keyframe (Gauss-Newton on a 1-D
18
+ * profile across a straight edge, `drop-shadow` being a Gaussian of the
19
+ * silhouette) so the chain lands on the dissolve; in that model the fit is
20
+ * within 0.002 alpha of the dissolve where the plain fades are 0.005-0.02 off
21
+ * and one widening glow 0.007-0.01 off.
22
+ *
23
+ * @module render/morph-effect-glow
24
+ */
25
+ /** One end's glow: its blur radius in the half's local px and its colour alpha. */
26
+ export interface GlowEnd {
27
+ readonly radius: number;
28
+ readonly alpha: number;
29
+ }
30
+ /**
31
+ * The two alphas of the chain (narrow glow first, wide glow second) that best
32
+ * paint `(1 - p) A + p B` at progress `p`, where `a` is the outgoing glow and
33
+ * `b` the incoming one, both in the same frame.
34
+ */
35
+ export declare function fitGlowChain(a: GlowEnd, b: GlowEnd, p: number): [number, number];
36
+ /**
37
+ * The incoming glow's alpha under a ghost that paints the outgoing glow at
38
+ * `1 - p` OVER it, so the two composite to `(1 - p) A + p B`. Least squares
39
+ * on the same profile.
40
+ */
41
+ export declare function fitGlowUnderGhost(a: GlowEnd, b: GlowEnd, p: number): number;
42
+ //# sourceMappingURL=morph-effect-glow.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"morph-effect-glow.d.ts","sourceRoot":"","sources":["../../../src/pptx/render/morph-effect-glow.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AAEH,mFAAmF;AACnF,MAAM,WAAW,OAAO;IACvB,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;CACvB;AA0ED;;;;GAIG;AACH,wBAAgB,YAAY,CAAC,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,MAAM,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CA6ChF;AAED;;;;GAIG;AACH,wBAAgB,iBAAiB,CAAC,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,MAAM,GAAG,MAAM,CAa3E"}
@@ -0,0 +1,10 @@
1
+ import type { ShadowLayer } from './morph-effect-shadow.js';
2
+ /** `box-shadow` layers, `[]` for none, or `undefined` when a layer cannot be read. */
3
+ export declare function parseShadows(value: string | undefined): ShadowLayer[] | undefined;
4
+ /** A layer's lengths scaled into a frame `kx` x `ky` times the one it was written in. */
5
+ export declare function scaleLayer(layer: ShadowLayer, kx: number, ky: number): ShadowLayer;
6
+ /** The same layer in another colour alpha. */
7
+ export declare function withAlpha(layer: ShadowLayer, alpha: number): ShadowLayer;
8
+ /** `drop-shadow()` functions of a filter, or `undefined` when it has anything else. */
9
+ export declare function parseDropShadows(value: string | undefined): ShadowLayer[] | undefined;
10
+ //# sourceMappingURL=morph-effect-parse.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"morph-effect-parse.d.ts","sourceRoot":"","sources":["../../../src/pptx/render/morph-effect-parse.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAsBzD,sFAAsF;AACtF,wBAAgB,YAAY,CAAC,KAAK,EAAE,MAAM,GAAG,SAAS,GAAG,WAAW,EAAE,GAAG,SAAS,CAgBjF;AAED,yFAAyF;AACzF,wBAAgB,UAAU,CAAC,KAAK,EAAE,WAAW,EAAE,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,GAAG,WAAW,CAQlF;AAED,8CAA8C;AAC9C,wBAAgB,SAAS,CAAC,KAAK,EAAE,WAAW,EAAE,KAAK,EAAE,MAAM,GAAG,WAAW,CAGxE;AAED,uFAAuF;AACvF,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,MAAM,GAAG,SAAS,GAAG,WAAW,EAAE,GAAG,SAAS,CAUrF"}
@@ -0,0 +1,71 @@
1
+ /**
2
+ * The `box-shadow` list that cross-dissolves a morphing shape's two outer
3
+ * shadows the way PowerPoint does: per pixel `(1 - p) A + p B`.
4
+ *
5
+ * Measured on PowerPoint 16 (`CreateVideo`, 60 fps, 720p, Morph by object,
6
+ * 2 s) on a rectangle growing from 200 x 120 pt to 440 x 240 pt with a hard
7
+ * black shadow 20 pt at 45 degrees: where the outgoing and the incoming shadow
8
+ * overlap, the shadow reads alpha 1.00 at EVERY frame (0.99-1.00 with a fill
9
+ * change as well), while each one alone reads `1 - p` and `p`. With the
10
+ * shadow at 50 % transparency the overlap holds 0.52 throughout and each alone
11
+ * fades from 0.52. That is a true cross-dissolve of two renders, not two fades
12
+ * stacked: two layers of one `box-shadow` composite source-over, so the
13
+ * overlap dipped to 0.75 at the midpoint.
14
+ *
15
+ * The overlap of two hard shadows of the same box is itself a rectangle, so an
16
+ * extra layer on top of the two fades can paint exactly the missing alpha
17
+ * there: `box-shadow` draws a box-shaped rectangle, a negative spread shrinks
18
+ * it evenly, and a few of them side by side tile any narrower rectangle (tiles
19
+ * that cross each other only composite right at alpha 1, so a translucent
20
+ * overlap gets one centred tile and leaves two end strips to the plain fades).
21
+ * Its alpha and colour are solved per keyframe so the stack composites to the
22
+ * dissolve (`overlapColor`). Blurred shadows get the same layer with the
23
+ * smaller blur: exact where both are solid, an approximation in their fringes
24
+ * (in a 1-D model of a 300 px shadow, mean error 0.003-0.028 against 0.11-0.135
25
+ * without it, for blur deviations of 5-26 px).
26
+ *
27
+ * Measured after (same deck, ours vs PowerPoint): the hard shadow's overlap
28
+ * reads 1.00 at 10-90 % where it read 0.93, 0.83, 0.77, 0.77, 0.81, 0.86, and
29
+ * the translucent one holds 0.50, its own still alpha (PowerPoint's is 0.52),
30
+ * where it dipped to 0.45.
31
+ *
32
+ * @module render/morph-effect-shadow
33
+ */
34
+ /** One parsed `box-shadow` layer, lengths in the half's local px. */
35
+ export interface ShadowLayer {
36
+ inset: boolean;
37
+ /** Offset x, offset y, then optional blur and spread. */
38
+ lengths: number[];
39
+ /** RGB 0-255 and alpha 0-1. */
40
+ color: [number, number, number, number];
41
+ }
42
+ /** Where two outer layers overlap, as layers to paint there, or `undefined` when none can. */
43
+ export interface ShadowOverlap {
44
+ readonly tiles: ReadonlyArray<{
45
+ dx: number;
46
+ dy: number;
47
+ spread: number;
48
+ }>;
49
+ readonly blur: number;
50
+ }
51
+ /**
52
+ * The overlap of outgoing layer `a` and incoming layer `b`, both already in
53
+ * the half's local frame of `width` x `height`.
54
+ */
55
+ export declare function shadowOverlap(a: ShadowLayer, b: ShadowLayer, width: number, height: number): ShadowOverlap | undefined;
56
+ type Rgba = [number, number, number, number];
57
+ /**
58
+ * The overlap layer's colour at progress `p`, painted over the fades below it.
59
+ *
60
+ * `alone`: this half paints both fades itself, `b` at `p` over `a` at `1 - p`,
61
+ * and the stack has to composite to `(1 - p) A + p B`. `underGhost`: the
62
+ * outgoing ghost paints `A` at `1 - p` OVER this half (`b` at `p` only), so
63
+ * this half's own stack has to be whatever that composites to the dissolve.
64
+ */
65
+ export declare function overlapColor(a: Rgba, b: Rgba, p: number, mode: 'alone' | 'underGhost'): Rgba | undefined;
66
+ /** One layer as `box-shadow` text, with its colour's alpha multiplied by `alpha`. */
67
+ export declare function serializeShadow(layer: ShadowLayer, alpha: number): string;
68
+ /** The overlap's tiles painted in `color`. */
69
+ export declare function serializeOverlap(overlap: ShadowOverlap, color: Rgba): string[];
70
+ export {};
71
+ //# sourceMappingURL=morph-effect-shadow.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"morph-effect-shadow.d.ts","sourceRoot":"","sources":["../../../src/pptx/render/morph-effect-shadow.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AAEH,qEAAqE;AACrE,MAAM,WAAW,WAAW;IAC3B,KAAK,EAAE,OAAO,CAAC;IACf,yDAAyD;IACzD,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,+BAA+B;IAC/B,KAAK,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC;CACxC;AAwED,8FAA8F;AAC9F,MAAM,WAAW,aAAa;IAC7B,QAAQ,CAAC,KAAK,EAAE,aAAa,CAAC;QAAE,EAAE,EAAE,MAAM,CAAC;QAAC,EAAE,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IAC1E,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;CACtB;AAED;;;GAGG;AACH,wBAAgB,aAAa,CAC5B,CAAC,EAAE,WAAW,EACd,CAAC,EAAE,WAAW,EACd,KAAK,EAAE,MAAM,EACb,MAAM,EAAE,MAAM,GACZ,aAAa,GAAG,SAAS,CAwB3B;AAED,KAAK,IAAI,GAAG,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC;AAE7C;;;;;;;GAOG;AACH,wBAAgB,YAAY,CAC3B,CAAC,EAAE,IAAI,EACP,CAAC,EAAE,IAAI,EACP,CAAC,EAAE,MAAM,EACT,IAAI,EAAE,OAAO,GAAG,YAAY,GAC1B,IAAI,GAAG,SAAS,CAyBlB;AAED,qFAAqF;AACrF,wBAAgB,eAAe,CAAC,KAAK,EAAE,WAAW,EAAE,KAAK,EAAE,MAAM,GAAG,MAAM,CAIzE;AAED,8CAA8C;AAC9C,wBAAgB,gBAAgB,CAAC,OAAO,EAAE,aAAa,EAAE,KAAK,EAAE,IAAI,GAAG,MAAM,EAAE,CAI9E"}
@@ -67,7 +67,7 @@ export declare function boxOverlapRatio(a: PptxElement, b: PptxElement): number;
67
67
  * two end states, residual < 1/255, with the arriving title AND the
68
68
  * departing wording both following the same curve. That is one object
69
69
  * dissolving into another, not four shapes appearing and one leaving:
70
- * unmatched shapes hold, then fade out by 23% and in from 42%, which would
70
+ * unmatched shapes hold, then fade out by about 25% and in from about 45%, which would
71
71
  * leave the middle of the transition empty (issue #146).
72
72
  * - topic -> topic (five children against five, same boxes): also a clean
73
73
  * blend, so decomposing there is harmless - each child simply crossfades
@@ -111,7 +111,7 @@ export declare function flattenMorphElements(elements: readonly PptxElement[], c
111
111
  * That refusal is exactly wrong here. The wheel deck's topic slides each hold
112
112
  * the same panel with the challenge's own wording, so every topic-to-topic morph
113
113
  * left its three text boxes unpaired: the old wording faded out inside the first
114
- * quarter, the new one only began at 42%, and the middle of the transition was
114
+ * quarter, the new one only began at about 45%, and the middle of the transition was
115
115
  * empty. PowerPoint crossfades them - measured on its own render of slides 5->6
116
116
  * (`CreateVideo`, 62.5fps), where every frame of that panel is a blend of the
117
117
  * two end states whose weights sum to 1.000 for the whole transition (issue
@@ -0,0 +1,55 @@
1
+ /**
2
+ * A shape whose flip changes between the slides TURNS over in 3D, the way
3
+ * PowerPoint's Morph plays it.
4
+ *
5
+ * Measured on PowerPoint 16 (`CreateVideo`, 60 fps, 720p, Morph by object, 2 s):
6
+ * a filled right triangle with a 6 pt outline, flipped horizontally (or
7
+ * vertically) and moved, never squashes flat through zero. Every frame is the
8
+ * triangle rotated about its own vertical (horizontal) centre line and seen
9
+ * through one perspective camera:
10
+ *
11
+ * - the vanishing point is the SLIDE's centre, not the shape's (fitting the
12
+ * shape's centre left 4.3 px of error per vertex, the slide's 0.8 px);
13
+ * - the eye sits 1100 px in front of a 1280 x 720 slide, which is a 60 degree
14
+ * horizontal field of view: `distance = (width / 2) / tan(30 deg)`
15
+ * (1000 px fits to 1.2 px, 1100 px to 0.8 px, 1200 px to 1.35 px, for both
16
+ * the horizontal and the vertical flip);
17
+ * - the angle runs 0 -> 180 degrees on the travel's own curve (48.0 degrees
18
+ * where the centre has travelled 26.6%, 122.7 where it has travelled
19
+ * 68.3%), and the turn is always the one that brings the shape's own +x
20
+ * side (+y for a vertical flip, in its unflipped geometry) towards the
21
+ * viewer, whichever way the flip goes: flipping a right triangle swings its
22
+ * right side out of the slide, flipping it back swings its (mirrored) left.
23
+ *
24
+ * The journey's two keyframes become `translate(v) perspective(d) translate(t - v)
25
+ * rotate(r) rotateY(a) rotateX(b) scale(sx, sy) scaleX(fx) scaleY(fy)`, with `v`
26
+ * the slide centre seen from the element's own centre (its transform origin)
27
+ * and `fx`, `fy` the OUTGOING flips on both frames: the turn makes the mirror,
28
+ * so `rotateY(180deg) scaleX(fx)` paints exactly `scaleX(-fx)` at the end. Every
29
+ * argument is linear in the eased progress, so the browser's numeric
30
+ * per-function interpolation between two frames is the measured motion.
31
+ *
32
+ * @module render/morph-flip-turn
33
+ */
34
+ import type { PptxElement } from 'ooxml-core/pptx';
35
+ /** The slide the morph plays on, in the element coordinates (px). */
36
+ export interface MorphViewSize {
37
+ readonly width: number;
38
+ readonly height: number;
39
+ }
40
+ /** PowerPoint's 16:9 slide in the engine's pixels, for callers that pass none. */
41
+ export declare const DEFAULT_MORPH_VIEW: MorphViewSize;
42
+ /** Whether a pair's horizontal or vertical flip changes, so its body turns over. */
43
+ export declare function morphFlipTurns(from: PptxElement, to: PptxElement): boolean;
44
+ /** The two journey transforms of one half of a turning pair. */
45
+ export interface MorphFlipTurnFrames {
46
+ readonly start: string;
47
+ readonly end: string;
48
+ }
49
+ /**
50
+ * The start and end `transform` of the half painted as `local` (its box is the
51
+ * frame the transform acts in, about its centre), for a pair travelling from
52
+ * `from`'s box at `fromRot` degrees to `to`'s box at `toRot`.
53
+ */
54
+ export declare function buildMorphFlipTurn(local: PptxElement, from: PptxElement, to: PptxElement, fromRot: number, toRot: number, view?: MorphViewSize): MorphFlipTurnFrames;
55
+ //# sourceMappingURL=morph-flip-turn.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"morph-flip-turn.d.ts","sourceRoot":"","sources":["../../../src/pptx/render/morph-flip-turn.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AACH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAEnD,qEAAqE;AACrE,MAAM,WAAW,aAAa;IAC7B,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;CACxB;AAED,kFAAkF;AAClF,eAAO,MAAM,kBAAkB,EAAE,aAA4C,CAAC;AAO9E,oFAAoF;AACpF,wBAAgB,cAAc,CAAC,IAAI,EAAE,WAAW,EAAE,EAAE,EAAE,WAAW,GAAG,OAAO,CAK1E;AAED,gEAAgE;AAChE,MAAM,WAAW,mBAAmB;IACnC,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;CACrB;AAED;;;;GAIG;AACH,wBAAgB,kBAAkB,CACjC,KAAK,EAAE,WAAW,EAClB,IAAI,EAAE,WAAW,EACjB,EAAE,EAAE,WAAW,EACf,OAAO,EAAE,MAAM,EACf,KAAK,EAAE,MAAM,EACb,IAAI,GAAE,aAAkC,GACtC,mBAAmB,CA2BrB"}
@@ -0,0 +1,30 @@
1
+ /**
2
+ * A shape's GEOMETRY FAMILY, and the matching rule PowerPoint applies to it.
3
+ *
4
+ * Measured on PowerPoint 16 (`CreateVideo`, 60 fps, 720p, Morph by object, a
5
+ * slide duplicated so every shape keeps its `a16:creationId`):
6
+ *
7
+ * - a rectangle turned into an ellipse, a rounded rectangle or a freeform
8
+ * (Edit Points), and an isosceles triangle turned into a pentagon, do NOT
9
+ * morph: the old shape fades out where it stood (gone by about 25% of the
10
+ * morph) and the new one fades in where it lands (from about 45%), exactly
11
+ * the unmatched pair's dissolve;
12
+ * - two freeforms whose nodes differ, even in number, still morph;
13
+ * - the same rectangle -> ellipse change on a `!!`-named pair morphs its
14
+ * outline (see `morph-outline-blend`).
15
+ *
16
+ * So identity alone pairs two shapes only when their geometry family (the
17
+ * preset, or "custom" for any authored path) is the same; the `!!` name
18
+ * overrides it.
19
+ *
20
+ * @module render/morph-geometry-key
21
+ */
22
+ import type { PptxElement } from 'ooxml-core/pptx';
23
+ /** A shape's geometry family: its preset, or `custom` for an authored path. */
24
+ export declare function morphGeometryKey(element: PptxElement): string | undefined;
25
+ /**
26
+ * Whether two shapes are different geometry families, which PowerPoint never
27
+ * pairs on identity alone (only a `!!` name pairs them).
28
+ */
29
+ export declare function morphGeometryBreaksPair(from: PptxElement, to: PptxElement): boolean;
30
+ //# sourceMappingURL=morph-geometry-key.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"morph-geometry-key.d.ts","sourceRoot":"","sources":["../../../src/pptx/render/morph-geometry-key.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAGnD,+EAA+E;AAC/E,wBAAgB,gBAAgB,CAAC,OAAO,EAAE,WAAW,GAAG,MAAM,GAAG,SAAS,CAGzE;AAED;;;GAGG;AACH,wBAAgB,uBAAuB,CAAC,IAAI,EAAE,WAAW,EAAE,EAAE,EAAE,WAAW,GAAG,OAAO,CAInF"}
@@ -1 +1 @@
1
- {"version":3,"file":"morph-image-crop.d.ts","sourceRoot":"","sources":["../../../src/pptx/render/morph-image-crop.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAKnD,OAAO,KAAK,EAAE,mBAAmB,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAmCpE;;;;;;GAMG;AACH,wBAAgB,qBAAqB,CAAC,WAAW,EAAE,WAAW,EAAE,SAAS,EAAE,WAAW,GAAG,OAAO,CAQ/F;AAsED,MAAM,WAAW,oBAAoB;IACpC,6DAA6D;IAC7D,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,kEAAkE;IAClE,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,4CAA4C;IAC5C,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;CAC3B;AAED;;;;;;;;GAQG;AACH,wBAAgB,yBAAyB,CACxC,WAAW,EAAE,WAAW,EACxB,SAAS,EAAE,WAAW,GACpB,oBAAoB,EAAE,CA0BxB;AAiED;;;;;;;;;;GAUG;AACH,wBAAgB,gCAAgC,CAC/C,KAAK,EAAE,SAAS,EAAE,EAClB,UAAU,EAAE,MAAM,GAChB,mBAAmB,EAAE,CAUvB;AAED;;;;;;;;;;;;GAYG;AACH,wBAAgB,gCAAgC,CAC/C,KAAK,EAAE,SAAS,EAAE,EAClB,UAAU,EAAE,MAAM,EAClB,QAAQ,CAAC,EAAE,WAAW,CAAC,MAAM,CAAC,GAC5B,mBAAmB,EAAE,CAavB"}
1
+ {"version":3,"file":"morph-image-crop.d.ts","sourceRoot":"","sources":["../../../src/pptx/render/morph-image-crop.ts"],"names":[],"mappings":"AAA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;;;;;;GASG;AACH,wBAAgB,oBAAoB,CAAC,OAAO,EAAE,WAAW,GAAG,MAAM,GAAG,SAAS,CAyB7E;AAMD;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,wBAAgB,kBAAkB,CAAC,SAAS,EAAE,SAAS,EAAE,OAAO,EAAE,SAAS,GAAG,SAAS,EAAE,CAGxF;AAED;;;;;;GAMG;AACH,wBAAgB,sBAAsB,CAAC,SAAS,EAAE,SAAS,EAAE,OAAO,EAAE,SAAS,GAAG,gBAAgB,CAyRjG"}
1
+ {"version":3,"file":"morph-matching.d.ts","sourceRoot":"","sources":["../../../src/pptx/render/morph-matching.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AACH,OAAO,KAAK,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAa9D,OAAO,KAAK,EAAE,gBAAgB,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAQjE,OAAO,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAC;AAenD;;;;;;;;;GASG;AACH,wBAAgB,oBAAoB,CAAC,OAAO,EAAE,WAAW,GAAG,MAAM,GAAG,SAAS,CAyB7E;AAMD;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,wBAAgB,kBAAkB,CAAC,SAAS,EAAE,SAAS,EAAE,OAAO,EAAE,SAAS,GAAG,SAAS,EAAE,CAGxF;AAED;;;;;;GAMG;AACH,wBAAgB,sBAAsB,CAAC,SAAS,EAAE,SAAS,EAAE,OAAO,EAAE,SAAS,GAAG,gBAAgB,CAoSjG"}
@@ -0,0 +1,7 @@
1
+ import type { SvgPathCommand } from './morph-types.js';
2
+ /**
3
+ * Two outlines as two rings of the same length whose points correspond, or
4
+ * `undefined` when either is not one closed sub-path.
5
+ */
6
+ export declare function blendOutlineCommands(a: readonly SvgPathCommand[], b: readonly SvgPathCommand[]): [SvgPathCommand[], SvgPathCommand[]] | undefined;
7
+ //# sourceMappingURL=morph-outline-blend.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"morph-outline-blend.d.ts","sourceRoot":"","sources":["../../../src/pptx/render/morph-outline-blend.ts"],"names":[],"mappings":"AA0BA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAqDpD;;;GAGG;AACH,wBAAgB,oBAAoB,CACnC,CAAC,EAAE,SAAS,cAAc,EAAE,EAC5B,CAAC,EAAE,SAAS,cAAc,EAAE,GAC1B,CAAC,cAAc,EAAE,EAAE,cAAc,EAAE,CAAC,GAAG,SAAS,CAalD"}
@@ -67,7 +67,7 @@ export declare function buildMorphMergedOrder(outgoing: readonly PptxElement[],
67
67
  *
68
68
  * A ghost that DISSOLVES is deliberately not counted, which is why the caller
69
69
  * passes only the holding ones. It stops hiding anything within the first
70
- * quarter of the morph, well before an arrival starts to appear at 42% (see
70
+ * quarter of the morph, well before an arrival starts to appear at about 45% (see
71
71
  * `MORPH_FADE_OUT_END_PERCENT` / `MORPH_FADE_IN_START_PERCENT`), so lifting for
72
72
  * it buys nothing and moves an animation the live stage should own: issue
73
73
  * #131's overview-to-topic hop dissolves the whole centre out and the arriving