ooxml-ui 1.42.0 → 1.44.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 (257) hide show
  1. package/dist/base.d.ts +0 -1
  2. package/dist/chart/design-galleries.d.ts +1 -0
  3. package/dist/chart/format-pane-3d.d.ts +0 -1
  4. package/dist/chart/format-pane-advanced-intent.d.ts +0 -1
  5. package/dist/chart/format-pane-analysis.d.ts +0 -1
  6. package/dist/chart/format-pane-axis.d.ts +0 -1
  7. package/dist/chart/format-pane-common.d.ts +0 -1
  8. package/dist/chart/format-pane-effects.d.ts +0 -1
  9. package/dist/chart/format-pane-fields.d.ts +0 -1
  10. package/dist/chart/format-pane-fill-kinds.d.ts +0 -1
  11. package/dist/chart/format-pane-fill-line.d.ts +0 -1
  12. package/dist/chart/format-pane-locales/es.d.ts +0 -1
  13. package/dist/chart/format-pane-model.d.ts +0 -1
  14. package/dist/chart/format-pane-options.d.ts +0 -1
  15. package/dist/chart/format-pane-space.d.ts +0 -1
  16. package/dist/chart/format-pane-text.d.ts +0 -1
  17. package/dist/chrome/find-bar.d.ts +1 -2
  18. package/dist/chrome/status-bar.d.ts +2 -0
  19. package/dist/chrome/status-bar.d.ts.map +1 -1
  20. package/dist/{chunk-4RFFOPBU.js → chunk-2ZYRZANE.js} +1 -1
  21. package/dist/{chunk-Y6KY34VD.js → chunk-I57TCM2Q.js} +57 -11
  22. package/dist/{chunk-TTT5IQBU.js → chunk-JWBWLGEY.js} +2 -2
  23. package/dist/{chunk-LBIABP4I.js → chunk-M4ARYL3L.js} +1 -1
  24. package/dist/{chunk-7L4NP4HN.js → chunk-NH5ZSZMI.js} +1 -1
  25. package/dist/controls.d.ts +1 -1
  26. package/dist/controls.d.ts.map +1 -1
  27. package/dist/controls.js +1 -1
  28. package/dist/dialog/message-dialogs.d.ts.map +1 -1
  29. package/dist/docx/locales/en-app.d.ts +5 -0
  30. package/dist/docx/locales/en.d.ts +5 -0
  31. package/dist/docx/localization-strings.d.ts +5 -0
  32. package/dist/docx/title-bar.d.ts +2 -1
  33. package/dist/docx.js +40 -11
  34. package/dist/embedding/region-host.d.ts +0 -1
  35. package/dist/files/save-progress-label.d.ts +22 -0
  36. package/dist/files/save-progress-label.d.ts.map +1 -0
  37. package/dist/fonts/custom-fonts.d.ts +0 -1
  38. package/dist/form/color-swatches.d.ts +0 -1
  39. package/dist/image-native-size.d.ts +0 -1
  40. package/dist/index.js +4 -4
  41. package/dist/picture-artistic-filters.d.ts +0 -1
  42. package/dist/picture-artistic-preview.d.ts +0 -1
  43. package/dist/picture-effects.d.ts +1 -0
  44. package/dist/picture-paint.d.ts +0 -1
  45. package/dist/picture-view.d.ts +1 -0
  46. package/dist/pptx/{chart-3d-view-scene-CGLU6ISD.mjs → chart-3d-view-scene-D6OJTZYC.mjs} +3 -2
  47. package/dist/pptx/{chart-3d-view-scene-C7QUQTXD.cjs → chart-3d-view-scene-PC2RUBL4.cjs} +38 -37
  48. package/dist/pptx/{chunk-JP26TA3Q.cjs → chunk-2GDYTHUY.cjs} +12 -12
  49. package/dist/pptx/{chunk-YZWKNFPU.cjs → chunk-2SO3BL67.cjs} +2706 -160
  50. package/dist/pptx/{chunk-C7G2CSU2.mjs → chunk-BNPTGOEZ.mjs} +3 -3
  51. package/dist/pptx/{chunk-OPLK7GPB.mjs → chunk-D3DQS2J2.mjs} +7908 -7828
  52. package/dist/pptx/chunk-EDIAPF6J.mjs +135 -0
  53. package/dist/pptx/{chunk-DH6EKOVI.mjs → chunk-H6M3FKNG.mjs} +1 -1
  54. package/dist/pptx/{chunk-CK6RYGB4.cjs → chunk-HB6CH2FF.cjs} +3 -126
  55. package/dist/pptx/chunk-HWJKBKCW.cjs +147 -0
  56. package/dist/pptx/{chunk-BA4CJI4U.mjs → chunk-KYTG7WNC.mjs} +3 -115
  57. package/dist/pptx/{chunk-RI4YZ4AG.cjs → chunk-LK35P6RE.cjs} +10303 -10275
  58. package/dist/pptx/{chunk-TW5UQCZS.mjs → chunk-TDALHSYV.mjs} +2605 -168
  59. package/dist/pptx/{chunk-SF3MYUTD.mjs → chunk-W2QJX2ON.mjs} +5 -0
  60. package/dist/pptx/{chunk-XTYRGVT5.cjs → chunk-ZH35NTNU.cjs} +49 -49
  61. package/dist/pptx/{chunk-WNDGU3GQ.cjs → chunk-ZHVKGGLQ.cjs} +5 -0
  62. package/dist/pptx/dom/elements/connector.d.ts.map +1 -1
  63. package/dist/pptx/dom/elements/equation.d.ts.map +1 -1
  64. package/dist/pptx/dom/elements/media.d.ts.map +1 -1
  65. package/dist/pptx/dom/elements/ole.d.ts.map +1 -1
  66. package/dist/pptx/dom/elements/reflection-mirror-content.d.ts.map +1 -1
  67. package/dist/pptx/dom/elements/shape-filter-defs.d.ts +5 -0
  68. package/dist/pptx/dom/elements/shape-filter-defs.d.ts.map +1 -1
  69. package/dist/pptx/dom/elements/table.d.ts.map +1 -1
  70. package/dist/pptx/dom/elements/text-shape.d.ts.map +1 -1
  71. package/dist/pptx/dom/elements/text-warp.d.ts.map +1 -1
  72. package/dist/pptx/dom/index.cjs +527 -449
  73. package/dist/pptx/dom/index.mjs +116 -39
  74. package/dist/pptx/export/html2canvas-clone.cjs +7 -6
  75. package/dist/pptx/export/html2canvas-clone.mjs +2 -1
  76. package/dist/pptx/i18n/index.cjs +6 -6
  77. package/dist/pptx/i18n/index.mjs +1 -1
  78. package/dist/pptx/i18n/translations-en.d.ts.map +1 -1
  79. package/dist/pptx/index.cjs +3844 -3659
  80. package/dist/pptx/index.mjs +6 -5
  81. package/dist/pptx/render/chart-combo-stock.cjs +4 -3
  82. package/dist/pptx/render/chart-combo-stock.mjs +2 -1
  83. package/dist/pptx/render/chart-overlays.cjs +8 -7
  84. package/dist/pptx/render/chart-overlays.mjs +2 -1
  85. package/dist/pptx/render/chart-surface-treemap.cjs +5 -4
  86. package/dist/pptx/render/chart-surface-treemap.mjs +2 -1
  87. package/dist/pptx/render/chart-view-model.cjs +45 -44
  88. package/dist/pptx/render/chart-view-model.mjs +2 -1
  89. package/dist/pptx/render/chart-waterfall-map.cjs +7 -6
  90. package/dist/pptx/render/chart-waterfall-map.mjs +2 -1
  91. package/dist/pptx/render/connector-dash.d.ts +2 -1
  92. package/dist/pptx/render/connector-dash.d.ts.map +1 -1
  93. package/dist/pptx/render/connector-path.d.ts +1 -1
  94. package/dist/pptx/render/connector-path.d.ts.map +1 -1
  95. package/dist/pptx/render/connector-style.d.ts +4 -2
  96. package/dist/pptx/render/connector-style.d.ts.map +1 -1
  97. package/dist/pptx/render/controller/index.d.ts +2 -0
  98. package/dist/pptx/render/controller/index.d.ts.map +1 -1
  99. package/dist/pptx/render/controller/save-progress-controller.d.ts +56 -0
  100. package/dist/pptx/render/controller/save-progress-controller.d.ts.map +1 -0
  101. package/dist/pptx/render/dash-path-start.d.ts +38 -0
  102. package/dist/pptx/render/dash-path-start.d.ts.map +1 -0
  103. package/dist/pptx/render/dash-pattern.d.ts +61 -0
  104. package/dist/pptx/render/dash-pattern.d.ts.map +1 -0
  105. package/dist/pptx/render/device-pixel-exact.d.ts +34 -0
  106. package/dist/pptx/render/device-pixel-exact.d.ts.map +1 -0
  107. package/dist/pptx/render/device-pixel-group.d.ts +42 -0
  108. package/dist/pptx/render/device-pixel-group.d.ts.map +1 -0
  109. package/dist/pptx/render/device-pixel-stroke.d.ts +21 -3
  110. package/dist/pptx/render/device-pixel-stroke.d.ts.map +1 -1
  111. package/dist/pptx/render/element-style-transform.d.ts +6 -5
  112. package/dist/pptx/render/element-style-transform.d.ts.map +1 -1
  113. package/dist/pptx/render/embedded-fonts-sheet.d.ts +31 -0
  114. package/dist/pptx/render/embedded-fonts-sheet.d.ts.map +1 -0
  115. package/dist/pptx/render/equation-box-style.d.ts +23 -0
  116. package/dist/pptx/render/equation-box-style.d.ts.map +1 -0
  117. package/dist/pptx/render/fill-style.d.ts +16 -1
  118. package/dist/pptx/render/fill-style.d.ts.map +1 -1
  119. package/dist/pptx/render/font-line-gap.d.ts +3 -0
  120. package/dist/pptx/render/font-line-gap.d.ts.map +1 -0
  121. package/dist/pptx/render/font-settled.d.ts.map +1 -1
  122. package/dist/pptx/render/gradient-svg-image.d.ts +20 -0
  123. package/dist/pptx/render/gradient-svg-image.d.ts.map +1 -0
  124. package/dist/pptx/render/group-fill.d.ts.map +1 -1
  125. package/dist/pptx/render/hollow-shape-hit-test.d.ts +23 -1
  126. package/dist/pptx/render/hollow-shape-hit-test.d.ts.map +1 -1
  127. package/dist/pptx/render/index.d.ts +12 -0
  128. package/dist/pptx/render/index.d.ts.map +1 -1
  129. package/dist/pptx/render/linked-text-box-overflow.d.ts +20 -5
  130. package/dist/pptx/render/linked-text-box-overflow.d.ts.map +1 -1
  131. package/dist/pptx/render/media-control-bar.d.ts +41 -0
  132. package/dist/pptx/render/media-control-bar.d.ts.map +1 -0
  133. package/dist/pptx/render/media-playback.d.ts +6 -6
  134. package/dist/pptx/render/media-playback.d.ts.map +1 -1
  135. package/dist/pptx/render/morph-animation.d.ts.map +1 -1
  136. package/dist/pptx/render/morph-carry.d.ts.map +1 -1
  137. package/dist/pptx/render/morph-connector-carry.d.ts +43 -0
  138. package/dist/pptx/render/morph-connector-carry.d.ts.map +1 -0
  139. package/dist/pptx/render/morph-effect-carry.d.ts +2 -0
  140. package/dist/pptx/render/morph-effect-carry.d.ts.map +1 -1
  141. package/dist/pptx/render/morph-effect-silhouette.d.ts +23 -0
  142. package/dist/pptx/render/morph-effect-silhouette.d.ts.map +1 -0
  143. package/dist/pptx/render/morph-geometry-key.d.ts.map +1 -1
  144. package/dist/pptx/render/morph-line-carry.d.ts +27 -0
  145. package/dist/pptx/render/morph-line-carry.d.ts.map +1 -1
  146. package/dist/pptx/render/morph-line-ends.d.ts +27 -0
  147. package/dist/pptx/render/morph-line-ends.d.ts.map +1 -0
  148. package/dist/pptx/render/morph-line-reach.d.ts +72 -0
  149. package/dist/pptx/render/morph-line-reach.d.ts.map +1 -0
  150. package/dist/pptx/render/morph-overlay-order.d.ts.map +1 -1
  151. package/dist/pptx/render/morph-plan-carry.d.ts +41 -0
  152. package/dist/pptx/render/morph-plan-carry.d.ts.map +1 -0
  153. package/dist/pptx/render/morph-plan-channels.d.ts +30 -0
  154. package/dist/pptx/render/morph-plan-channels.d.ts.map +1 -0
  155. package/dist/pptx/render/morph-plan-crossfade.d.ts +23 -0
  156. package/dist/pptx/render/morph-plan-crossfade.d.ts.map +1 -0
  157. package/dist/pptx/render/morph-plan-css.d.ts +55 -0
  158. package/dist/pptx/render/morph-plan-css.d.ts.map +1 -0
  159. package/dist/pptx/render/morph-plan-lift.d.ts +44 -0
  160. package/dist/pptx/render/morph-plan-lift.d.ts.map +1 -0
  161. package/dist/pptx/render/morph-plan-overlay.d.ts +62 -0
  162. package/dist/pptx/render/morph-plan-overlay.d.ts.map +1 -0
  163. package/dist/pptx/render/morph-plan-types.d.ts +208 -0
  164. package/dist/pptx/render/morph-plan-types.d.ts.map +1 -0
  165. package/dist/pptx/render/morph-plan.d.ts +4 -252
  166. package/dist/pptx/render/morph-plan.d.ts.map +1 -1
  167. package/dist/pptx/render/morph-predicates.d.ts.map +1 -1
  168. package/dist/pptx/render/morph-shape-carry.d.ts.map +1 -1
  169. package/dist/pptx/render/paragraph-baseline.d.ts +39 -0
  170. package/dist/pptx/render/paragraph-baseline.d.ts.map +1 -1
  171. package/dist/pptx/render/path-gradient-rect.d.ts +1 -1
  172. package/dist/pptx/render/path-gradient-rect.d.ts.map +1 -1
  173. package/dist/pptx/render/shape-geometry-base.d.ts +73 -0
  174. package/dist/pptx/render/shape-geometry-base.d.ts.map +1 -0
  175. package/dist/pptx/render/shape-geometry-cascade.d.ts +7 -37
  176. package/dist/pptx/render/shape-geometry-cascade.d.ts.map +1 -1
  177. package/dist/pptx/render/silhouette-effects.d.ts +118 -0
  178. package/dist/pptx/render/silhouette-effects.d.ts.map +1 -0
  179. package/dist/pptx/render/silhouette-fill-layer.d.ts +19 -0
  180. package/dist/pptx/render/silhouette-fill-layer.d.ts.map +1 -0
  181. package/dist/pptx/render/silhouette-morph-refresh.d.ts +6 -0
  182. package/dist/pptx/render/silhouette-morph-refresh.d.ts.map +1 -0
  183. package/dist/pptx/render/silhouette-morph-registry.d.ts +36 -0
  184. package/dist/pptx/render/silhouette-morph-registry.d.ts.map +1 -0
  185. package/dist/pptx/render/status-bar-state.d.ts +7 -1
  186. package/dist/pptx/render/status-bar-state.d.ts.map +1 -1
  187. package/dist/pptx/render/stroke-only-preset.d.ts +22 -0
  188. package/dist/pptx/render/stroke-only-preset.d.ts.map +1 -1
  189. package/dist/pptx/render/stroke-outline.d.ts.map +1 -1
  190. package/dist/pptx/render/subpath-fill-overlay.d.ts +11 -5
  191. package/dist/pptx/render/subpath-fill-overlay.d.ts.map +1 -1
  192. package/dist/pptx/render/subpath-geometry.d.ts +38 -0
  193. package/dist/pptx/render/subpath-geometry.d.ts.map +1 -0
  194. package/dist/pptx/render/svg-gradient-paint.d.ts.map +1 -1
  195. package/dist/pptx/render/svg-id-scope.d.ts +8 -0
  196. package/dist/pptx/render/svg-id-scope.d.ts.map +1 -0
  197. package/dist/pptx/render/table-cell-baseline.d.ts +36 -0
  198. package/dist/pptx/render/table-cell-baseline.d.ts.map +1 -0
  199. package/dist/pptx/render/table-cell-border-inset.d.ts +21 -0
  200. package/dist/pptx/render/table-cell-border-inset.d.ts.map +1 -0
  201. package/dist/pptx/render/table-cell-css.d.ts.map +1 -1
  202. package/dist/pptx/render/table-cell-paragraphs.d.ts +13 -1
  203. package/dist/pptx/render/table-cell-paragraphs.d.ts.map +1 -1
  204. package/dist/pptx/render/table-style-bg-settle.d.ts +43 -0
  205. package/dist/pptx/render/table-style-bg-settle.d.ts.map +1 -0
  206. package/dist/pptx/render/table-style-bg-span.d.ts +26 -0
  207. package/dist/pptx/render/table-style-bg-span.d.ts.map +1 -0
  208. package/dist/pptx/render/table-style-borders.d.ts.map +1 -1
  209. package/dist/pptx/render/table-style-builtins-data.d.ts +1 -1
  210. package/dist/pptx/render/table-style-builtins-data.d.ts.map +1 -1
  211. package/dist/pptx/render/table-style-fill.d.ts.map +1 -1
  212. package/dist/pptx/render/table-style-shadow.d.ts +20 -0
  213. package/dist/pptx/render/table-style-shadow.d.ts.map +1 -0
  214. package/dist/pptx/render/table-style-theme-refs.d.ts.map +1 -1
  215. package/dist/pptx/render/table-style.d.ts +9 -0
  216. package/dist/pptx/render/table-style.d.ts.map +1 -1
  217. package/dist/pptx/render/text-block-style.d.ts +5 -0
  218. package/dist/pptx/render/text-block-style.d.ts.map +1 -1
  219. package/dist/pptx/render/text-field-substitution.d.ts +13 -14
  220. package/dist/pptx/render/text-field-substitution.d.ts.map +1 -1
  221. package/dist/pptx/render/text-paragraphs.d.ts +11 -1
  222. package/dist/pptx/render/text-paragraphs.d.ts.map +1 -1
  223. package/dist/pptx/render/text-warp-arch.d.ts +25 -0
  224. package/dist/pptx/render/text-warp-arch.d.ts.map +1 -0
  225. package/dist/pptx/render/text-warp-closed-paths.d.ts +53 -0
  226. package/dist/pptx/render/text-warp-closed-paths.d.ts.map +1 -0
  227. package/dist/pptx/render/text-warp-envelope-curves.d.ts.map +1 -1
  228. package/dist/pptx/render/text-warp-envelope-map.d.ts +12 -0
  229. package/dist/pptx/render/text-warp-envelope-map.d.ts.map +1 -1
  230. package/dist/pptx/render/text-warp-glyph-outline.d.ts.map +1 -1
  231. package/dist/pptx/render/text-warp-polygon-clip.d.ts +21 -0
  232. package/dist/pptx/render/text-warp-polygon-clip.d.ts.map +1 -0
  233. package/dist/pptx/render/text-warp-preset-definitions-extra.d.ts +21 -0
  234. package/dist/pptx/render/text-warp-preset-definitions-extra.d.ts.map +1 -0
  235. package/dist/pptx/render/text-warp-preset-definitions.d.ts +19 -0
  236. package/dist/pptx/render/text-warp-preset-definitions.d.ts.map +1 -1
  237. package/dist/pptx/render/text-warp-preset-sampler.d.ts.map +1 -1
  238. package/dist/pptx/render/text-warp-run-paint.d.ts +19 -0
  239. package/dist/pptx/render/text-warp-run-paint.d.ts.map +1 -0
  240. package/dist/pptx/render/text-warp.d.ts.map +1 -1
  241. package/dist/pptx/render/visual-effects.d.ts +9 -0
  242. package/dist/pptx/render/visual-effects.d.ts.map +1 -1
  243. package/dist/pptx/{smartart-insert-preview-P4NV2FRD.cjs → smartart-insert-preview-55QCEISC.cjs} +8 -7
  244. package/dist/pptx/{smartart-insert-preview-AE7D4I7L.mjs → smartart-insert-preview-GPBTE3HU.mjs} +7 -6
  245. package/dist/pptx/web-components/status-bar.d.ts.map +1 -1
  246. package/dist/render-cache.d.ts +0 -1
  247. package/dist/ribbon/ribbon-group.d.ts +1 -2
  248. package/dist/ribbon/svg-preview.d.ts +0 -1
  249. package/dist/teams.js +2 -2
  250. package/dist/visio/title-bar.d.ts +3 -1
  251. package/dist/visio/viewer-backstage.d.ts +2 -0
  252. package/dist/visio/viewer-file-commands.d.ts +2 -2
  253. package/dist/visio.js +75 -20
  254. package/dist/xlsx/editor-files.d.ts +1 -1
  255. package/dist/xlsx/title-bar.d.ts +2 -1
  256. package/dist/xlsx.js +21 -12
  257. package/package.json +2 -2
@@ -0,0 +1,208 @@
1
+ /**
2
+ * The contract of a morph plan: {@link MorphTransitionPlan} (what a binding
3
+ * plays) and {@link MorphPlanOptions} (the per-binding knobs of building one).
4
+ * `morph-plan` re-exports both and holds the entry point; see its header for
5
+ * how a morph is composed.
6
+ *
7
+ * @module render/morph-plan-types
8
+ */
9
+ import type { PptxElement } from 'ooxml-core/pptx';
10
+ import type { MorphCrossfadeGroup } from './morph-crossfade-group.js';
11
+ import type { MorphViewSize } from './morph-flip-turn.js';
12
+ import type { MorphOverlayLayer } from './morph-overlay-layers.js';
13
+ import type { MorphOverlayStackEntry } from './morph-overlay-stack.js';
14
+ import type { MorphCopyPart } from './morph-text-body.js';
15
+ import type { MorphTextMeasure } from './morph-text-frame.js';
16
+ /** Everything needed to play one morph transition. */
17
+ export interface MorphTransitionPlan {
18
+ /** All `@keyframes` blocks, to inject as a single stylesheet. */
19
+ keyframesCss: string;
20
+ /** Incoming-slide element id -> CSS `animation` shorthand. */
21
+ incomingAnimations: Map<string, string>;
22
+ /** Outgoing-slide element id -> CSS `animation` shorthand. */
23
+ outgoingAnimations: Map<string, string>;
24
+ /**
25
+ * Incoming-slide element id -> CSS `animation` shorthand for the `<img>`
26
+ * INSIDE that element, never for the element's own container.
27
+ *
28
+ * A picture's source crop (`a:srcRect`, which is what PowerPoint's "Scale
29
+ * Height"/"Scale Width" writes) is painted by transforming the img within
30
+ * its frame, and the frame itself is usually identical on both slides - so
31
+ * this is a separate channel rather than another entry in
32
+ * {@link MorphTransitionPlan.incomingAnimations}, which would collide on the
33
+ * same element id. {@link buildMorphScopedCss} emits it as a descendant
34
+ * rule; a binding that applies animations as inline props instead must
35
+ * target the img itself (issue #148).
36
+ */
37
+ incomingImageAnimations: Map<string, string>;
38
+ /** Outgoing (ghost) counterpart of {@link MorphTransitionPlan.incomingImageAnimations}. */
39
+ outgoingImageAnimations: Map<string, string>;
40
+ /**
41
+ * Element id -> CSS `animation` shorthand for the PATH of the element's
42
+ * outline overlay (the `<svg data-pptx-outline>` every binding paints a
43
+ * centred or gradient outline with), present only when a shape's outline is
44
+ * re-pathed per frame (see `morph-shape-carry`). Like the image channel it is
45
+ * a descendant rule, emitted by {@link buildMorphScopedCss}; the ids may be
46
+ * incoming, outgoing or copy ids, so each half's rules carry all of them.
47
+ */
48
+ outlineAnimations?: Map<string, string>;
49
+ /**
50
+ * Element id -> the `animation` shorthand of each strand path of a compound
51
+ * outline, in paint order (each strand is re-pathed on its own); emitted
52
+ * next to {@link MorphTransitionPlan.outlineAnimations}.
53
+ */
54
+ outlineStrandAnimations?: Map<string, string[]>;
55
+ /**
56
+ * Element id -> CSS `animation` shorthand for the paths of a freeform's
57
+ * custom-geometry `<svg data-pptx-custom-geometry>`, which a binding that
58
+ * paints custom geometry as a vector (rather than a clipped box) stamps;
59
+ * emitted next to {@link MorphTransitionPlan.outlineAnimations}.
60
+ */
61
+ customGeometryAnimations?: Map<string, string>;
62
+ /**
63
+ * Element id -> CSS `animation` shorthand for the painted strand
64
+ * (`[data-pptx-line]`) of a straight connector, which keeps its width while
65
+ * the wrapper's journey scales (see `morph-line-carry`); emitted next to
66
+ * {@link MorphTransitionPlan.outlineAnimations}.
67
+ */
68
+ lineAnimations?: Map<string, string>;
69
+ /**
70
+ * Incoming-slide element id -> CSS `animation` shorthand for the copy the
71
+ * overlay paints, above every ghost.
72
+ *
73
+ * These are the arriving shapes a ghost would otherwise hide for the whole
74
+ * transition (see {@link MorphTransitionPlan.overlayIncomingElements}). Their
75
+ * entry in {@link MorphTransitionPlan.incomingAnimations} has been replaced
76
+ * by one that holds them invisible, so the stage copy stays out of the way
77
+ * and only this one is seen.
78
+ */
79
+ overlayIncomingAnimations: Map<string, string>;
80
+ /**
81
+ * The incoming-slide elements to paint in the overlay ON TOP of
82
+ * {@link MorphTransitionPlan.outgoingElements}, in document order.
83
+ *
84
+ * The overlay is one flat layer above the live stage, which is only faithful
85
+ * while every ghost really does belong on top of everything the stage draws.
86
+ * A shape arriving INSIDE a persisting one does not: the wheel deck's centre
87
+ * disc is unchanged between slides, so its ghost is opaque for the whole
88
+ * morph, and the title and body dissolving in within it were invisible until
89
+ * the overlay came down (issue #146). Painting those here restores the order
90
+ * PowerPoint composites in.
91
+ *
92
+ * Usually empty. A binding renders these with the INCOMING slide as their
93
+ * context, applying {@link MorphTransitionPlan.overlayIncomingAnimations}.
94
+ *
95
+ * A lifted half that is one end of a cross-dissolve is NOT here: it moves
96
+ * into {@link MorphTransitionPlan.crossfadeGroups} so it can be composited
97
+ * with its own ghost.
98
+ */
99
+ overlayIncomingElements: PptxElement[];
100
+ /**
101
+ * Pairs the overlay paints BOTH halves of, to be rendered as one isolated
102
+ * group blending additively (see `morph-crossfade-group`).
103
+ *
104
+ * Their elements are deliberately absent from
105
+ * {@link MorphTransitionPlan.outgoingElements} and
106
+ * {@link MorphTransitionPlan.overlayIncomingElements}: a binding that renders
107
+ * the groups paints each half exactly once, and one that ignored them would
108
+ * drop the pair rather than paint it twice.
109
+ *
110
+ * A pair that dissolves where it stands also has its dissolve moved OFF the
111
+ * two elements and onto {@link MorphCrossfadeGroup.outgoingAnimation} /
112
+ * {@link MorphCrossfadeGroup.incomingAnimation}, for the binding to put on
113
+ * the wrapper it paints each half in; the elements are then absent from
114
+ * `outgoingAnimations` / `overlayIncomingAnimations` too, so no scoped rule
115
+ * animates them. One that MOVES keeps its animations where they were.
116
+ *
117
+ * Painted above {@link MorphTransitionPlan.overlayIncomingElements}, in the
118
+ * incoming slide's document order.
119
+ */
120
+ crossfadeGroups: MorphCrossfadeGroup[];
121
+ /**
122
+ * The outgoing slide's elements, in document order, for the binding to
123
+ * render in its transition overlay for the duration of the morph. Most carry
124
+ * an entry in {@link MorphTransitionPlan.outgoingAnimations}: they either
125
+ * fade out in place (no counterpart) or glide onto a counterpart, dissolving
126
+ * into it when the appearance changed.
127
+ *
128
+ * A ghost standing in for an INERT pair deliberately has no entry there and
129
+ * is painted statically. Its keyframes would run from itself to itself, and
130
+ * a running animation would put it on its own compositing layer, whose
131
+ * raster the browser snaps to whole device pixels - visibly shifting a shape
132
+ * that is not supposed to move at all (issue #161).
133
+ *
134
+ * This is a SUBSET of the outgoing slide: a shape the live stage already
135
+ * draws identically is left out, because the overlay is opaque above it and
136
+ * would hide the incoming slide's own arrivals. See `resolveMorphGhostIds`.
137
+ */
138
+ outgoingElements: PptxElement[];
139
+ /** Outgoing ghost id to the incoming text layout it paints while travelling. */
140
+ outgoingTextReplacements?: ReadonlyMap<string, string>;
141
+ /**
142
+ * {@link MorphTransitionPlan.outgoingElements} and
143
+ * {@link MorphTransitionPlan.overlayIncomingElements} together, in the ONE
144
+ * back-to-front order the overlay must paint them in, as runs of
145
+ * consecutive same-slide shapes (see `morph-overlay-layers`).
146
+ *
147
+ * A binding renders each run as its own stacked layer, in this order: an
148
+ * `'outgoing'` run against the outgoing slide inside a
149
+ * `data-pptx-morph-outgoing` scope, an `'incoming'` run against the incoming
150
+ * slide inside a `data-pptx-morph-lifted` scope. Painting every ghost below
151
+ * every lifted arrival instead let a full-slide picture fading in veil the
152
+ * title travelling above it (issue #141).
153
+ *
154
+ * A run is split wherever a crossfade group belongs inside it, and
155
+ * {@link MorphTransitionPlan.overlayStack} says where each group goes.
156
+ */
157
+ overlayLayers: MorphOverlayLayer[];
158
+ /**
159
+ * Every run of {@link MorphTransitionPlan.overlayLayers} and every
160
+ * {@link MorphTransitionPlan.crossfadeGroups} group, back to front. Read it
161
+ * through `morphOverlayStackSlots` or `morphOverlayElementSlots` (see
162
+ * `morph-overlay-stack`). Painting every group above every run let three
163
+ * dissolving text columns show through the picture bands the incoming slide
164
+ * stacks above them, then vanish from them when the overlay came down
165
+ * (issue #141, slides 6 to 7).
166
+ */
167
+ overlayStack: MorphOverlayStackEntry[];
168
+ /**
169
+ * Id -> source id for the copies the overlay paints of a text pair that is
170
+ * carried piece by piece (see `morph-text-piece-plan`). Each copy is in
171
+ * {@link MorphTransitionPlan.crossfadeGroups} as an element of its own; a
172
+ * binding that builds its overlay from a clone of the rendered slide instead
173
+ * clones the source's node under the copy's id.
174
+ */
175
+ textPieceSources?: ReadonlyMap<string, string>;
176
+ /**
177
+ * Copy id -> the part of its source a copy paints, for a shape whose text is
178
+ * carried apart from its body (see `morph-text-body`): `'body'` without the
179
+ * text, `'text'` without the fill and outline. The copy's element already
180
+ * says so; a binding that clones the source's node strips the other part.
181
+ */
182
+ morphCopyParts?: ReadonlyMap<string, MorphCopyPart>;
183
+ /** Animation duration in ms, echoed for convenience. */
184
+ durationMs: number;
185
+ }
186
+ /** Per-binding knobs for {@link buildMorphTransitionPlan}. */
187
+ export interface MorphPlanOptions {
188
+ /**
189
+ * The z-index the live stage gives the incoming slide's FIRST top-level
190
+ * element. Stacking-order swaps ride z-index journeys written in the
191
+ * stage's real z space, so a binding that paints master/layout shapes
192
+ * beneath the slide (React's presentation stage) passes their count;
193
+ * a stage that starts the slide at 0 leaves it out.
194
+ */
195
+ readonly zIndexBase?: number;
196
+ /**
197
+ * How text is measured when a pair's unchanged text is carried line for
198
+ * line (see `morph-text-frame`). Defaults to a canvas; tests pass their own.
199
+ */
200
+ readonly measureText?: MorphTextMeasure;
201
+ /**
202
+ * The slide's size in element pixels: the camera a turning flip is seen
203
+ * through sits over its centre (see `morph-flip-turn`). Defaults to the
204
+ * 16:9 slide, 1280 x 720.
205
+ */
206
+ readonly slideSize?: MorphViewSize;
207
+ }
208
+ //# sourceMappingURL=morph-plan-types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"morph-plan-types.d.ts","sourceRoot":"","sources":["../../../src/pptx/render/morph-plan-types.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAEnD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AACnE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AACvD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAChE,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,uBAAuB,CAAC;AACpE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AACvD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAE3D,sDAAsD;AACtD,MAAM,WAAW,mBAAmB;IACnC,iEAAiE;IACjE,YAAY,EAAE,MAAM,CAAC;IACrB,8DAA8D;IAC9D,kBAAkB,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACxC,8DAA8D;IAC9D,kBAAkB,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACxC;;;;;;;;;;;;OAYG;IACH,uBAAuB,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC7C,2FAA2F;IAC3F,uBAAuB,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,C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E,gBAAgB,CAAC;IACxC;;;;OAIG;IACH,QAAQ,CAAC,SAAS,CAAC,EAAE,aAAa,CAAC;CACnC"}
@@ -37,208 +37,13 @@
37
37
  *
38
38
  * @module render/morph-plan
39
39
  */
40
- import type { PptxElement, PptxSlide } from 'ooxml-core/pptx';
41
- import type { MorphCrossfadeGroup } from './morph-crossfade-group.js';
42
- import type { MorphViewSize } from './morph-flip-turn.js';
43
- import type { MorphOverlayLayer } from './morph-overlay-layers.js';
44
- import type { MorphOverlayStackEntry } from './morph-overlay-stack.js';
45
- import type { MorphCopyPart } from './morph-text-body.js';
46
- import type { MorphTextMeasure } from './morph-text-frame.js';
40
+ import type { PptxSlide } from 'ooxml-core/pptx';
41
+ import type { MorphPlanOptions, MorphTransitionPlan } from './morph-plan-types.js';
47
42
  import type { MorphMode } from './morph-types.js';
48
- /** Everything needed to play one morph transition. */
49
- export interface MorphTransitionPlan {
50
- /** All `@keyframes` blocks, to inject as a single stylesheet. */
51
- keyframesCss: string;
52
- /** Incoming-slide element id -> CSS `animation` shorthand. */
53
- incomingAnimations: Map<string, string>;
54
- /** Outgoing-slide element id -> CSS `animation` shorthand. */
55
- outgoingAnimations: Map<string, string>;
56
- /**
57
- * Incoming-slide element id -> CSS `animation` shorthand for the `<img>`
58
- * INSIDE that element, never for the element's own container.
59
- *
60
- * A picture's source crop (`a:srcRect`, which is what PowerPoint's "Scale
61
- * Height"/"Scale Width" writes) is painted by transforming the img within
62
- * its frame, and the frame itself is usually identical on both slides - so
63
- * this is a separate channel rather than another entry in
64
- * {@link MorphTransitionPlan.incomingAnimations}, which would collide on the
65
- * same element id. {@link buildMorphScopedCss} emits it as a descendant
66
- * rule; a binding that applies animations as inline props instead must
67
- * target the img itself (issue #148).
68
- */
69
- incomingImageAnimations: Map<string, string>;
70
- /** Outgoing (ghost) counterpart of {@link MorphTransitionPlan.incomingImageAnimations}. */
71
- outgoingImageAnimations: Map<string, string>;
72
- /**
73
- * Element id -> CSS `animation` shorthand for the PATH of the element's
74
- * outline overlay (the `<svg data-pptx-outline>` every binding paints a
75
- * centred or gradient outline with), present only when a shape's outline is
76
- * re-pathed per frame (see `morph-shape-carry`). Like the image channel it is
77
- * a descendant rule, emitted by {@link buildMorphScopedCss}; the ids may be
78
- * incoming, outgoing or copy ids, so each half's rules carry all of them.
79
- */
80
- outlineAnimations?: Map<string, string>;
81
- /**
82
- * Element id -> the `animation` shorthand of each strand path of a compound
83
- * outline, in paint order (each strand is re-pathed on its own); emitted
84
- * next to {@link MorphTransitionPlan.outlineAnimations}.
85
- */
86
- outlineStrandAnimations?: Map<string, string[]>;
87
- /**
88
- * Element id -> CSS `animation` shorthand for the paths of a freeform's
89
- * custom-geometry `<svg data-pptx-custom-geometry>`, which a binding that
90
- * paints custom geometry as a vector (rather than a clipped box) stamps;
91
- * emitted next to {@link MorphTransitionPlan.outlineAnimations}.
92
- */
93
- customGeometryAnimations?: Map<string, string>;
94
- /**
95
- * Element id -> CSS `animation` shorthand for the painted strand
96
- * (`[data-pptx-line]`) of a straight connector, which keeps its width while
97
- * the wrapper's journey scales (see `morph-line-carry`); emitted next to
98
- * {@link MorphTransitionPlan.outlineAnimations}.
99
- */
100
- lineAnimations?: Map<string, string>;
101
- /**
102
- * Incoming-slide element id -> CSS `animation` shorthand for the copy the
103
- * overlay paints, above every ghost.
104
- *
105
- * These are the arriving shapes a ghost would otherwise hide for the whole
106
- * transition (see {@link MorphTransitionPlan.overlayIncomingElements}). Their
107
- * entry in {@link MorphTransitionPlan.incomingAnimations} has been replaced
108
- * by one that holds them invisible, so the stage copy stays out of the way
109
- * and only this one is seen.
110
- */
111
- overlayIncomingAnimations: Map<string, string>;
112
- /**
113
- * The incoming-slide elements to paint in the overlay ON TOP of
114
- * {@link MorphTransitionPlan.outgoingElements}, in document order.
115
- *
116
- * The overlay is one flat layer above the live stage, which is only faithful
117
- * while every ghost really does belong on top of everything the stage draws.
118
- * A shape arriving INSIDE a persisting one does not: the wheel deck's centre
119
- * disc is unchanged between slides, so its ghost is opaque for the whole
120
- * morph, and the title and body dissolving in within it were invisible until
121
- * the overlay came down (issue #146). Painting those here restores the order
122
- * PowerPoint composites in.
123
- *
124
- * Usually empty. A binding renders these with the INCOMING slide as their
125
- * context, applying {@link MorphTransitionPlan.overlayIncomingAnimations}.
126
- *
127
- * A lifted half that is one end of a cross-dissolve is NOT here: it moves
128
- * into {@link MorphTransitionPlan.crossfadeGroups} so it can be composited
129
- * with its own ghost.
130
- */
131
- overlayIncomingElements: PptxElement[];
132
- /**
133
- * Pairs the overlay paints BOTH halves of, to be rendered as one isolated
134
- * group blending additively (see `morph-crossfade-group`).
135
- *
136
- * Their elements are deliberately absent from
137
- * {@link MorphTransitionPlan.outgoingElements} and
138
- * {@link MorphTransitionPlan.overlayIncomingElements}: a binding that renders
139
- * the groups paints each half exactly once, and one that ignored them would
140
- * drop the pair rather than paint it twice.
141
- *
142
- * A pair that dissolves where it stands also has its dissolve moved OFF the
143
- * two elements and onto {@link MorphCrossfadeGroup.outgoingAnimation} /
144
- * {@link MorphCrossfadeGroup.incomingAnimation}, for the binding to put on
145
- * the wrapper it paints each half in; the elements are then absent from
146
- * `outgoingAnimations` / `overlayIncomingAnimations` too, so no scoped rule
147
- * animates them. One that MOVES keeps its animations where they were.
148
- *
149
- * Painted above {@link MorphTransitionPlan.overlayIncomingElements}, in the
150
- * incoming slide's document order.
151
- */
152
- crossfadeGroups: MorphCrossfadeGroup[];
153
- /**
154
- * The outgoing slide's elements, in document order, for the binding to
155
- * render in its transition overlay for the duration of the morph. Most carry
156
- * an entry in {@link MorphTransitionPlan.outgoingAnimations}: they either
157
- * fade out in place (no counterpart) or glide onto a counterpart, dissolving
158
- * into it when the appearance changed.
159
- *
160
- * A ghost standing in for an INERT pair deliberately has no entry there and
161
- * is painted statically. Its keyframes would run from itself to itself, and
162
- * a running animation would put it on its own compositing layer, whose
163
- * raster the browser snaps to whole device pixels - visibly shifting a shape
164
- * that is not supposed to move at all (issue #161).
165
- *
166
- * This is a SUBSET of the outgoing slide: a shape the live stage already
167
- * draws identically is left out, because the overlay is opaque above it and
168
- * would hide the incoming slide's own arrivals. See `resolveMorphGhostIds`.
169
- */
170
- outgoingElements: PptxElement[];
171
- /** Outgoing ghost id to the incoming text layout it paints while travelling. */
172
- outgoingTextReplacements?: ReadonlyMap<string, string>;
173
- /**
174
- * {@link MorphTransitionPlan.outgoingElements} and
175
- * {@link MorphTransitionPlan.overlayIncomingElements} together, in the ONE
176
- * back-to-front order the overlay must paint them in, as runs of
177
- * consecutive same-slide shapes (see `morph-overlay-layers`).
178
- *
179
- * A binding renders each run as its own stacked layer, in this order: an
180
- * `'outgoing'` run against the outgoing slide inside a
181
- * `data-pptx-morph-outgoing` scope, an `'incoming'` run against the incoming
182
- * slide inside a `data-pptx-morph-lifted` scope. Painting every ghost below
183
- * every lifted arrival instead let a full-slide picture fading in veil the
184
- * title travelling above it (issue #141).
185
- *
186
- * A run is split wherever a crossfade group belongs inside it, and
187
- * {@link MorphTransitionPlan.overlayStack} says where each group goes.
188
- */
189
- overlayLayers: MorphOverlayLayer[];
190
- /**
191
- * Every run of {@link MorphTransitionPlan.overlayLayers} and every
192
- * {@link MorphTransitionPlan.crossfadeGroups} group, back to front. Read it
193
- * through `morphOverlayStackSlots` or `morphOverlayElementSlots` (see
194
- * `morph-overlay-stack`). Painting every group above every run let three
195
- * dissolving text columns show through the picture bands the incoming slide
196
- * stacks above them, then vanish from them when the overlay came down
197
- * (issue #141, slides 6 to 7).
198
- */
199
- overlayStack: MorphOverlayStackEntry[];
200
- /**
201
- * Id -> source id for the copies the overlay paints of a text pair that is
202
- * carried piece by piece (see `morph-text-piece-plan`). Each copy is in
203
- * {@link MorphTransitionPlan.crossfadeGroups} as an element of its own; a
204
- * binding that builds its overlay from a clone of the rendered slide instead
205
- * clones the source's node under the copy's id.
206
- */
207
- textPieceSources?: ReadonlyMap<string, string>;
208
- /**
209
- * Copy id -> the part of its source a copy paints, for a shape whose text is
210
- * carried apart from its body (see `morph-text-body`): `'body'` without the
211
- * text, `'text'` without the fill and outline. The copy's element already
212
- * says so; a binding that clones the source's node strips the other part.
213
- */
214
- morphCopyParts?: ReadonlyMap<string, MorphCopyPart>;
215
- /** Animation duration in ms, echoed for convenience. */
216
- durationMs: number;
217
- }
43
+ export { buildMorphAnimationRules, buildMorphOutlineRules, buildMorphScopedCss, } from './morph-plan-css.js';
44
+ export type { MorphPlanOptions, MorphTransitionPlan } from './morph-plan-types.js';
218
45
  /** Map a parsed `<p159:morph @option>` onto the engine's granularity mode. */
219
46
  export declare function morphOptionToMode(option: string | undefined): MorphMode;
220
- /** Per-binding knobs for {@link buildMorphTransitionPlan}. */
221
- export interface MorphPlanOptions {
222
- /**
223
- * The z-index the live stage gives the incoming slide's FIRST top-level
224
- * element. Stacking-order swaps ride z-index journeys written in the
225
- * stage's real z space, so a binding that paints master/layout shapes
226
- * beneath the slide (React's presentation stage) passes their count;
227
- * a stage that starts the slide at 0 leaves it out.
228
- */
229
- readonly zIndexBase?: number;
230
- /**
231
- * How text is measured when a pair's unchanged text is carried line for
232
- * line (see `morph-text-frame`). Defaults to a canvas; tests pass their own.
233
- */
234
- readonly measureText?: MorphTextMeasure;
235
- /**
236
- * The slide's size in element pixels: the camera a turning flip is seen
237
- * through sits over its centre (see `morph-flip-turn`). Defaults to the
238
- * 16:9 slide, 1280 x 720.
239
- */
240
- readonly slideSize?: MorphViewSize;
241
- }
242
47
  /**
243
48
  * Build the render plan for morphing `fromSlide` into `toSlide`.
244
49
  *
@@ -246,57 +51,4 @@ export interface MorphPlanOptions {
246
51
  * nothing to fade), so a caller can fall back to a plain transition.
247
52
  */
248
53
  export declare function buildMorphTransitionPlan(fromSlide: PptxSlide | undefined, toSlide: PptxSlide | undefined, durationMs: number, mode?: MorphMode, options?: MorphPlanOptions): MorphTransitionPlan | undefined;
249
- /**
250
- * Render a plan as a self-contained stylesheet that drives the morph purely
251
- * through CSS, with no per-element prop plumbing.
252
- *
253
- * Every binding already stamps `data-element-id` on each rendered element, so
254
- * scoping rules to an ancestor carrying `scopeAttribute` is enough to animate
255
- * a whole slide. This is what lets Vue / Angular / Svelte / Vanilla play a
256
- * morph without threading an animation map through their slide-stage
257
- * components.
258
- *
259
- * @param plan - The plan to render.
260
- * @param scopeAttribute - Attribute (already present on the ancestor) that
261
- * scopes these rules, e.g. `data-pptx-morph-incoming`. Pass an empty string
262
- * to emit document-level rules: element ids embed their slide path, so they
263
- * are unique to the slide being animated and need no ancestor to disambiguate.
264
- * That is what lets a binding whose incoming slide is rendered OUTSIDE the
265
- * overlay (Angular, React) still drive it from here.
266
- * @param which - Which half to emit: the live stage's `incoming` elements, the
267
- * overlay's `outgoing` ghosts, or the `lifted` copies the overlay paints over
268
- * those ghosts (see {@link MorphTransitionPlan.overlayIncomingElements}).
269
- * @returns Keyframes plus the scoped `animation` rules, ready to inject.
270
- */
271
- export declare function buildMorphScopedCss(plan: MorphTransitionPlan, scopeAttribute: string, which?: 'incoming' | 'outgoing' | 'lifted'): string;
272
- /**
273
- * Just the `animation` rules of a plan, with no `@keyframes` block.
274
- *
275
- * For a binding that already injects {@link MorphTransitionPlan.keyframesCss}
276
- * itself and applies the element-level animations some other way (React merges
277
- * them into its per-element animation state), but still needs the descendant
278
- * rules that {@link MorphTransitionPlan.incomingImageAnimations} cannot be
279
- * expressed as an inline style for.
280
- *
281
- * @param plan - The plan to render.
282
- * @param scopeAttribute - As {@link buildMorphScopedCss}.
283
- * @param which - Which half of the transition to emit.
284
- * @param only - `'image'` emits only the `<img>` descendant rules; omit for all.
285
- * @returns The newline-joined rules (no trailing newline); `''` when there are none.
286
- */
287
- export declare function buildMorphAnimationRules(plan: MorphTransitionPlan, scopeAttribute: string, which?: 'incoming' | 'outgoing' | 'lifted', only?: 'image'): string;
288
- /**
289
- * The outline-path rules of a plan (see
290
- * {@link MorphTransitionPlan.outlineAnimations}), keyed on `keyAttribute`.
291
- *
292
- * {@link buildMorphAnimationRules} keys them on `data-element-id`; a binding
293
- * whose overlay paints its halves without that attribute (React's overlay
294
- * wraps each one in a `data-pptx-morph-outgoing` / `data-pptx-morph-lifted`
295
- * element named after its id instead) passes that attribute. A re-pathed
296
- * outline animates the CSS `d` property, so the rules sit behind a support
297
- * check; without it the static path stays, scaled with its box as before.
298
- *
299
- * @returns The rules, or `''` when the plan re-paths no outline.
300
- */
301
- export declare function buildMorphOutlineRules(plan: MorphTransitionPlan, keyAttribute: string, prefix?: string): string;
302
54
  //# sourceMappingURL=morph-plan.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"morph-plan.d.ts","sourceRoot":"","sources":["../../../src/pptx/render/morph-plan.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsCG;AACH,OAAO,KAAK,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAU9D,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AACnE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAGvD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAChE,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,uBAAuB,CAAC;AAKpE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAKvD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAE3D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAkB/C,sDAAsD;AACtD,MAAM,WAAW,mBAAmB;IACnC,iEAAiE;IACjE,YAAY,EAAE,MAAM,CAAC;IACrB,8DAA8D;IAC9D,kBAAkB,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACxC,8DAA8D;IAC9D,kBAAkB,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACxC;;;;;;;;;;;;OAYG;IACH,uBAAuB,EAAE,GAAG,CAAC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AS,MAAM,EAAE,CAAC;IAC5C,sFAAsF;IACtF,QAAQ,CAAC,aAAa,CAAC,EAAE,MAAM,CAAC;IAChC,8EAA8E;IAC9E,QAAQ,CAAC,gBAAgB,CAAC,EAAE,MAAM,CAAC;IACnC;;;OAGG;IACH,QAAQ,CAAC,sBAAsB,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;IACpD;;;OAGG;IACH,QAAQ,CAAC,eAAe,CAAC,EAAE,MAAM,CAAC;CAClC;AAUD;;;;GAIG;AACH,wBAAgB,sBAAsB,CAAC,IAAI,EAAE,WAAW,EAAE,EAAE,EAAE,WAAW,GAAG,OAAO,CA8BlF;AAsBD;;;GAGG;AACH,wBAAgB,oBAAoB,CACnC,IAAI,EAAE,WAAW,EACjB,EAAE,EAAE,WAAW,EACf,IAAI,EAAE,cAAc,GAClB,eAAe,GAAG,SAAS,CAuI7B"}
@@ -38,6 +38,12 @@ import type { ParagraphRun, RenderParagraph } from './paragraph-types.js';
38
38
  export interface FontBox {
39
39
  ascent: number;
40
40
  descent: number;
41
+ /**
42
+ * The line gap (same unit as `ascent`) PowerPoint adds above the ascent
43
+ * before scaling the box to its pitch; browsers do not expose it (see
44
+ * `font-line-gap`). Absent means none.
45
+ */
46
+ lineGap?: number;
41
47
  /**
42
48
  * Set when the box describes a stand-in: the font is a web font that has
43
49
  * not loaded yet (or is missing), so the browser measured a fallback face.
@@ -122,11 +128,30 @@ export interface BaselineGeometry {
122
128
  export declare function baselineShiftOf(geometry: BaselineGeometry): number | undefined;
123
129
  /** The font a paragraph's text is measured at for the proportions PowerPoint scales to its pitch. */
124
130
  export declare function referenceFont(style: ParagraphRun['style'], family: string): string;
131
+ /**
132
+ * The box PowerPoint scales to its pitch. A Windows or Office font that is
133
+ * missing here (a legacy East Asian one, an Office cloud font, a styled face
134
+ * name) is laid out by PowerPoint on its own metrics, not on the stand-in the
135
+ * browser measured; a web font still loading keeps its path.
136
+ */
137
+ export declare function referenceBox(measured: FontBox | undefined, family: string | undefined): FontBox | undefined;
125
138
  /** {@link resolveParagraphBaselineShift} that also says whether a stand-in font was measured. */
126
139
  export declare function resolveParagraphBaseline(input: BaselineShiftInput): {
127
140
  shift: number | undefined;
128
141
  provisional: boolean;
142
+ extentDelta?: number;
129
143
  } | undefined;
144
+ /**
145
+ * How much taller (px) PowerPoint's last line is than its pitch, or `undefined`
146
+ * when it is as tall. PowerPoint ends a text body at the last line's baseline
147
+ * plus the descent, not at the bottom of the line pitch (measured on table
148
+ * rows of one and two paragraphs, Calibri and Arial at 12 to 40pt: a cell
149
+ * grows to `(lines - 1) p + baseline + D + margins`): a pitch above single
150
+ * spacing is shorter than `p` by the quarter of it under the descent, and one
151
+ * below single spacing is taller, since the 75% baseline floor leaves the
152
+ * descent hanging below the line.
153
+ */
154
+ export declare function lastLineExtentDelta(size: number, pitch: number, reference: FontBox): number | undefined;
130
155
  /**
131
156
  * Move `paragraph` onto PowerPoint's baselines (see
132
157
  * {@link resolveParagraphBaselineShift}) with a relative `top`, which leaves
@@ -137,6 +162,20 @@ export declare function applyParagraphBaselineShift(paragraph: RenderParagraph,
137
162
  fontFamily: string;
138
163
  fontSizePx: number;
139
164
  }, measure?: FontBoxMeasure): void;
165
+ /** What {@link baselinePlacementStyle} answers: the inline style and what it was made from. */
166
+ export interface BaselinePlacement {
167
+ style: Record<string, string | number>;
168
+ shift: number | undefined;
169
+ provisional: boolean;
170
+ /** See {@link lastLineExtentDelta}: how much taller the last line is than its pitch (px). */
171
+ extentDelta?: number;
172
+ }
173
+ /**
174
+ * The inline style that puts one paragraph block on PowerPoint's baselines (a
175
+ * relative `top`, and the pending marker while its font is a stand-in), or
176
+ * `undefined` when it needs none. Shared by shape text and table cells.
177
+ */
178
+ export declare function baselinePlacementStyle(input: BaselineShiftInput): BaselinePlacement | undefined;
140
179
  /** The custom property that marks a paragraph placed from a stand-in font's box. */
141
180
  export declare const BASELINE_PENDING_VAR = "--pptx-baseline-pending";
142
181
  /**
@@ -1 +1 @@
1
- {"version":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;IAAC,WAAW,CAAC,EAAE,MAAM,CAAA;CAAE,GAAG,SAAS,CAiDvF;AAED;;;;;;;;;GASG;AACH,wBAAgB,mBAAmB,CAClC,IAAI,EAAE,MAAM,EACZ,KAAK,EAAE,MAAM,EACb,SAAS,EAAE,OAAO,GAChB,MAAM,GAAG,SAAS,CAIpB;AAkBD;;;;;GAKG;AACH,wBAAgB,2BAA2B,CAC1C,SAAS,EAAE,eAAe,EAC1B,IAAI,EAAE,SAAS,GAAG,SAAS,EAC3B,KAAK,EAAE;IAAE,UAAU,EAAE,MAAM,CAAC;IAAC,UAAU,EAAE,MAAM,CAAA;CAAE,EACjD,OAAO,CAAC,EAAE,cAAc,GACtB,IAAI,CA2BN;AAED,+FAA+F;AAC/F,MAAM,WAAW,iBAAiB;IACjC,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC,CAAC;IACvC,KAAK,EAAE,MAAM,GAAG,SAAS,CAAC;IAC1B,WAAW,EAAE,OAAO,CAAC;IACrB,6FAA6F;IAC7F,WAAW,CAAC,EAAE,MAAM,CAAC;CACrB;AAED;;;;GAIG;AACH,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,kBAAkB,GAAG,iBAAiB,GAAG,SAAS,CAkB/F;AAED,oFAAoF;AACpF,eAAO,MAAM,oBAAoB,4BAA4B,CAAC;AAE9D;;;;GAIG;AACH,wBAAgB,qBAAqB,CAAC,KAAK,EAAE,kBAAkB,GAAG,MAAM,CAiBvE;AAED,kGAAkG;AAClG,wBAAgB,qBAAqB,CAAC,KAAK,EAAE,MAAM,GAAG,kBAAkB,GAAG,SAAS,CAiBnF"}
@@ -1,2 +1,2 @@
1
- export { buildRectPathGradientSvg, buildRectPathGradientImage, type RectPathGradientStop, type RectPathGradientFocalPoint, type RectPathGradientFillToRect, } from 'ooxml-core/diagram';
1
+ export { buildRectPathGradientSvg, buildRectPathGradientExactSvg, buildRectPathGradientImage, type RectPathGradientStop, type RectPathGradientFocalPoint, type RectPathGradientFillToRect, } from 'ooxml-core/diagram';
2
2
  //# sourceMappingURL=path-gradient-rect.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"path-gradient-rect.d.ts","sourceRoot":"","sources":["../../../src/pptx/render/path-gradient-rect.ts"],"names":[],"mappings":"AACA,OAAO,EACN,wBAAwB,EACxB,0BAA0B,EAC1B,KAAK,oBAAoB,EACzB,KAAK,0BAA0B,EAC/B,KAAK,0BAA0B,GAC/B,MAAM,oBAAoB,CAAC"}
1
+ {"version":3,"file":"path-gradient-rect.d.ts","sourceRoot":"","sources":["../../../src/pptx/render/path-gradient-rect.ts"],"names":[],"mappings":"AACA,OAAO,EACN,wBAAwB,EACxB,6BAA6B,EAC7B,0BAA0B,EAC1B,KAAK,oBAAoB,EACzB,KAAK,0BAA0B,EAC/B,KAAK,0BAA0B,GAC/B,MAAM,oBAAoB,CAAC"}