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,73 @@
1
+ /**
2
+ * `shape-geometry-base`: the geometry cascade before shadow and glow are
3
+ * considered (`shape-geometry-cascade` has the answer a binding applies).
4
+ * HOW a shape's geometry is painted.
5
+ *
6
+ * Every binding resolves fill, stroke, effects and 3D through shared modules
7
+ * already, then ends with the same ~40-line decision tree: connector ->
8
+ * stroke-only preset -> roundRect -> ellipse -> clip-path -> line -> cylinder.
9
+ * That tail was hand-ported five times, and the copies drifted:
10
+ *
11
+ * - Angular compared `shapeType` RAW (`=== 'ellipse' || === 'circle'`) instead
12
+ * of normalising it, so `oval` - a preset offered in the shape picker - and
13
+ * any capitalised spelling missed the ellipse branch entirely.
14
+ * - Angular had no connector, line or cylinder branch at all, so a cylinder
15
+ * fell through to a clip-path instead of its `48% / 12%` radius.
16
+ * - Two fidelity fixes in one day (ellipse pill radius, identity-rect clip)
17
+ * each had to be applied four and five times respectively.
18
+ *
19
+ * This module returns a framework-neutral DECISION; each binding only maps that
20
+ * decision onto its own style-object shape (`React.CSSProperties`, a kebab-case
21
+ * record, etc). Adding a branch here reaches all five bindings at once.
22
+ *
23
+ * @module render/shape-geometry-base
24
+ */
25
+ import type { PptxElement } from 'ooxml-core/pptx';
26
+ /**
27
+ * What the geometry cascade decided to do with a shape's box.
28
+ *
29
+ * `bare` and `strokeOnly` both mean "paint no box"; they differ only in that a
30
+ * stroke-only preset must also drop any background IMAGE, because its fill was
31
+ * resolved before the cascade ran.
32
+ */
33
+ export type ShapeGeometryDecision =
34
+ /** Connector: the SVG renderer paints it; the box itself is empty. */
35
+ {
36
+ readonly kind: 'bare';
37
+ }
38
+ /** Open preset (line, arc, connector family): outline is stroked as SVG. */
39
+ | {
40
+ readonly kind: 'strokeOnly';
41
+ }
42
+ /** roundRect / ellipse / cylinder: a CSS `border-radius` approximation. */
43
+ | {
44
+ readonly kind: 'borderRadius';
45
+ readonly radius: string;
46
+ }
47
+ /** Any other preset with real geometry: a CSS `clip-path`. */
48
+ | {
49
+ readonly kind: 'clipPath';
50
+ readonly clipPath: string;
51
+ }
52
+ /** A `line` preset the evaluator could not open: draw its top edge only. */
53
+ | {
54
+ readonly kind: 'lineEdge';
55
+ readonly strokeWidth: number;
56
+ }
57
+ /** Plain rectangle (or nothing to do): leave the box alone. */
58
+ | {
59
+ readonly kind: 'none';
60
+ };
61
+ /**
62
+ * Resolve a shape element's geometry to a neutral painting decision.
63
+ *
64
+ * Order is load-bearing and matches PowerPoint's own precedence: connectors and
65
+ * open presets never get a box, the two cheap radius approximations win over a
66
+ * clip-path, and `line`/`cylinder` are consulted only once the evaluator has
67
+ * declined to produce geometry.
68
+ *
69
+ * @param element The shape-like element to resolve.
70
+ * @returns The decision a binding should apply to its style object.
71
+ */
72
+ export declare function resolveBaseShapeGeometry(element: PptxElement): ShapeGeometryDecision;
73
+ //# sourceMappingURL=shape-geometry-base.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"shape-geometry-base.d.ts","sourceRoot":"","sources":["../../../src/pptx/render/shape-geometry-base.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AASnD;;;;;;GAMG;AACH,MAAM,MAAM,qBAAqB;AAChC,sEAAsE;AACpE;IAAE,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;CAAE;AAC3B,4EAA4E;GAC1E;IAAE,QAAQ,CAAC,IAAI,EAAE,YAAY,CAAA;CAAE;AACjC,2EAA2E;GACzE;IAAE,QAAQ,CAAC,IAAI,EAAE,cAAc,CAAC;IAAC,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAA;CAAE;AAC5D,8DAA8D;GAC5D;IAAE,QAAQ,CAAC,IAAI,EAAE,UAAU,CAAC;IAAC,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAA;CAAE;AAC1D,4EAA4E;GAC1E;IAAE,QAAQ,CAAC,IAAI,EAAE,UAAU,CAAC;IAAC,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAA;CAAE;AAC7D,+DAA+D;GAC7D;IAAE,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;CAAE,CAAC;AAQ7B;;;;;;;;;;GAUG;AACH,wBAAgB,wBAAwB,CAAC,OAAO,EAAE,WAAW,GAAG,qBAAqB,CA2DpF"}
@@ -22,48 +22,18 @@
22
22
  * @module render/shape-geometry-cascade
23
23
  */
24
24
  import type { PptxElement } from 'ooxml-core/pptx';
25
- /**
26
- * What the geometry cascade decided to do with a shape's box.
27
- *
28
- * `bare` and `strokeOnly` both mean "paint no box"; they differ only in that a
29
- * stroke-only preset must also drop any background IMAGE, because its fill was
30
- * resolved before the cascade ran.
31
- */
32
- export type ShapeGeometryDecision =
33
- /** Connector: the SVG renderer paints it; the box itself is empty. */
34
- {
35
- readonly kind: 'bare';
36
- }
37
- /** Open preset (line, arc, connector family): outline is stroked as SVG. */
38
- | {
39
- readonly kind: 'strokeOnly';
40
- }
41
- /** roundRect / ellipse / cylinder: a CSS `border-radius` approximation. */
42
- | {
43
- readonly kind: 'borderRadius';
44
- readonly radius: string;
45
- }
46
- /** Any other preset with real geometry: a CSS `clip-path`. */
47
- | {
48
- readonly kind: 'clipPath';
49
- readonly clipPath: string;
50
- }
51
- /** A `line` preset the evaluator could not open: draw its top edge only. */
52
- | {
53
- readonly kind: 'lineEdge';
54
- readonly strokeWidth: number;
55
- }
56
- /** Plain rectangle (or nothing to do): leave the box alone. */
57
- | {
58
- readonly kind: 'none';
59
- };
25
+ import type { ShapeGeometryDecision } from './shape-geometry-base.js';
26
+ export type { ShapeGeometryDecision } from './shape-geometry-base.js';
60
27
  /**
61
28
  * Resolve a shape element's geometry to a neutral painting decision.
62
29
  *
63
- * Order is load-bearing and matches PowerPoint's own precedence: connectors and
30
+ * The base cascade (`resolveBaseShapeGeometry`) is unchanged: connectors and
64
31
  * open presets never get a box, the two cheap radius approximations win over a
65
32
  * clip-path, and `line`/`cylinder` are consulted only once the evaluator has
66
- * declined to produce geometry.
33
+ * declined to produce geometry. One thing overrides it: a shape whose outer
34
+ * shadow or glow is painted as a silhouette (`silhouette-effects`) must not be
35
+ * clipped, since a clip-path would cut those effects off; its fill is painted by
36
+ * the SVG overlay instead (`subpath-fill-overlay`).
67
37
  *
68
38
  * @param element The shape-like element to resolve.
69
39
  * @returns The decision a binding should apply to its style object.
@@ -1 +1 @@
1
- {"version":3,"file":"shape-geometry-cascade.d.ts","sourceRoot":"","sources":["../../../src/pptx/render/shape-geometry-cascade.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AASnD;;;;;;GAMG;AACH,MAAM,MAAM,qBAAqB;AAChC,sEAAsE;AACpE;IAAE,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;CAAE;AAC3B,4EAA4E;GAC1E;IAAE,QAAQ,CAAC,IAAI,EAAE,YAAY,CAAA;CAAE;AACjC,2EAA2E;GACzE;IAAE,QAAQ,CAAC,IAAI,EAAE,cAAc,CAAC;IAAC,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAA;CAAE;AAC5D,8DAA8D;GAC5D;IAAE,QAAQ,CAAC,IAAI,EAAE,UAAU,CAAC;IAAC,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAA;CAAE;AAC1D,4EAA4E;GAC1E;IAAE,QAAQ,CAAC,IAAI,EAAE,UAAU,CAAC;IAAC,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAA;CAAE;AAC7D,+DAA+D;GAC7D;IAAE,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;CAAE,CAAC;AAQ7B;;;;;;;;;;GAUG;AACH,wBAAgB,oBAAoB,CAAC,OAAO,EAAE,WAAW,GAAG,qBAAqB,CA2DhF"}
1
+ {"version":3,"file":"shape-geometry-cascade.d.ts","sourceRoot":"","sources":["../../../src/pptx/render/shape-geometry-cascade.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAEnD,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,uBAAuB,CAAC;AAInE,YAAY,EAAE,qBAAqB,EAAE,MAAM,uBAAuB,CAAC;AAEnE;;;;;;;;;;;;;GAaG;AACH,wBAAgB,oBAAoB,CAAC,OAAO,EAAE,WAAW,GAAG,qBAAqB,CAMhF"}
@@ -0,0 +1,118 @@
1
+ /**
2
+ * Shape-following outer shadow and glow.
3
+ *
4
+ * A rectangle (or an ellipse / round rectangle, whose `border-radius` is part of
5
+ * its own box) paints its outer shadow and glow as `box-shadow`. Every other
6
+ * preset, and every custom geometry, paints its fill as a CSS `clip-path` on the
7
+ * same element, and `clip-path` is applied AFTER `filter` and `box-shadow`, so
8
+ * it removed the shadow and the glow along with the corners of the box. A shape
9
+ * with no fill was worse: its `box-shadow` is the shadow of the invisible box,
10
+ * where PowerPoint shadows only the outline.
11
+ *
12
+ * Such a shape now paints like this:
13
+ *
14
+ * - the container loses its clip-path (the geometry cascade answers `none`),
15
+ * - the fill is painted by the per-sub-path SVG overlay (`subpath-fill-overlay`),
16
+ * which is clipped by nothing,
17
+ * - the outer shadow and the glow are ONE SVG `<filter>` on the container
18
+ * (`filter: url(#shape-fx-<id>)`) computed from the painted alpha: fill,
19
+ * outline and text together, so they follow the silhouette and a hollow shape
20
+ * shadows its outline only.
21
+ *
22
+ * The profiles are the rectangle's (`effect-profile.ts`): a shadow is a Gaussian
23
+ * of deviation `0.327 * blurRad`; a glow is the silhouette grown by `0.417 * rad`
24
+ * (a ring of offset copies, since `feMorphology` is a square kernel and would
25
+ * grow diagonal edges by 1.41x) and blurred with deviation `rad / 6`.
26
+ *
27
+ * Only shapes whose other paint stays out of the way qualify: the container's
28
+ * `box-shadow` must carry nothing else (no inner shadow, no line shadow, no 3-D
29
+ * bevel) and the fill must be one the overlay can paint (a solid colour or none).
30
+ *
31
+ * @module render/silhouette-effects
32
+ */
33
+ import type { PptxElement, ShapeStyle } from 'ooxml-core/pptx';
34
+ /** One outer shadow layer, in the units of the box-shadow it replaces. */
35
+ export interface SilhouetteShadowLayer {
36
+ readonly offsetX: number;
37
+ readonly offsetY: number;
38
+ /** The CSS blur length (twice the Gaussian's deviation). */
39
+ readonly blur: number;
40
+ /** `#RRGGBB`. */
41
+ readonly color: string;
42
+ readonly opacity: number;
43
+ }
44
+ /** A glow: the silhouette grown by `spread` then blurred by `blur` (a CSS length). */
45
+ export interface SilhouetteGlow {
46
+ readonly spread: number;
47
+ readonly blur: number;
48
+ readonly color: string;
49
+ readonly opacity: number;
50
+ }
51
+ /** An inner shadow: the offset points to the edge it hugs (as in PowerPoint). */
52
+ export interface SilhouetteInnerShadow {
53
+ readonly offsetX: number;
54
+ readonly offsetY: number;
55
+ /** The CSS blur length (twice the Gaussian's deviation). */
56
+ readonly blur: number;
57
+ readonly color: string;
58
+ readonly opacity: number;
59
+ }
60
+ /** The effects a silhouette filter paints. */
61
+ export interface SilhouetteEffectParams {
62
+ readonly shadows: readonly SilhouetteShadowLayer[];
63
+ readonly glow?: SilhouetteGlow;
64
+ readonly inner?: SilhouetteInnerShadow;
65
+ }
66
+ /** What a binding needs to apply the effects of one shape. */
67
+ export interface SilhouetteEffects {
68
+ readonly filterId: string;
69
+ /** The `filter` value that applies it. */
70
+ readonly cssReference: string;
71
+ /** The `<filter>` markup, to inject next to the soft-edge filter. */
72
+ readonly filterMarkup: string;
73
+ /** The filter also paints the inner shadow, so the box-shadow must not. */
74
+ readonly paintsInnerShadow: boolean;
75
+ }
76
+ /** The id of the filter a shape's silhouette effects are painted with. */
77
+ export declare function getSilhouetteFilterId(elementId: string): string;
78
+ /**
79
+ * The outer shadow layers of a style, exactly as the `box-shadow` path resolves
80
+ * them (`getOuterShadowCss` / `getMultiLayerShadowCss`).
81
+ */
82
+ export declare function resolveOuterShadowLayers(style: ShapeStyle, rotation: number | undefined): SilhouetteShadowLayer[];
83
+ /** The glow of a style as dilation and blur lengths, or `undefined`. */
84
+ export declare function resolveGlow(style: ShapeStyle): SilhouetteGlow | undefined;
85
+ /** The inner shadow of a style, with the numbers `getInnerShadowCss` uses. */
86
+ export declare function resolveInnerShadow(style: ShapeStyle): SilhouetteInnerShadow | undefined;
87
+ /** The effect parameters of a shape that paints them as a silhouette, or `undefined`. */
88
+ export declare function getSilhouetteEffectParams(element: PptxElement): SilhouetteEffectParams | undefined;
89
+ /** Which end of a morph a layer belongs to; its opacity follows `--pptx-morph-p`. */
90
+ export type SilhouetteMorphSide = 'out' | 'in';
91
+ /** The custom property carrying a morph's eased progress (see `silhouette-morph`). */
92
+ export declare const MORPH_PROGRESS_VAR = "--pptx-morph-p";
93
+ /**
94
+ * The `<filter>` markup that paints `params` around an element of `width` x
95
+ * `height`. With `outgoing`, the effects of the other end of a morph are
96
+ * painted too, dissolving out as `params` dissolve in (see `silhouette-morph`).
97
+ */
98
+ export declare function buildSilhouetteFilterMarkup(filterId: string, width: number, height: number, params: SilhouetteEffectParams, outgoing?: SilhouetteEffectParams): string;
99
+ /**
100
+ * The silhouette effects of a shape, or `undefined` when its shadow and glow
101
+ * ride on its `box-shadow` as before.
102
+ */
103
+ export declare function getSilhouetteEffects(element: PptxElement): SilhouetteEffects | undefined;
104
+ /**
105
+ * Whether the fill of a shape with silhouette effects is painted by the SVG
106
+ * overlay: it was clipped by a clip-path, and has a fill to paint.
107
+ */
108
+ export declare function silhouetteFillsOverlay(element: PptxElement): boolean;
109
+ /**
110
+ * Whether the fill of a shape with silhouette effects is a CSS background on a
111
+ * clipped child layer (`silhouette-fill-layer`): a gradient, pattern or picture
112
+ * fill, which an SVG path cannot paint. The clip applies to the layer before the
113
+ * container's filter, so the filter still sees the silhouette.
114
+ */
115
+ export declare function silhouetteFillsLayer(element: PptxElement): boolean;
116
+ /** Whether a shape paints its outer shadow and glow as a silhouette. */
117
+ export declare function usesSilhouetteEffects(element: PptxElement): boolean;
118
+ //# sourceMappingURL=silhouette-effects.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"silhouette-effects.d.ts","sourceRoot":"","sources":["../../../src/pptx/render/silhouette-effects.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AACH,OAAO,KAAK,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAQ/D,0EAA0E;AAC1E,MAAM,WAAW,qBAAqB;IACrC,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,4DAA4D;IAC5D,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,iBAAiB;IACjB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;CACzB;AAED,sFAAsF;AACtF,MAAM,WAA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SAAS,CAczE;AAED,8EAA8E;AAC9E,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,UAAU,GAAG,qBAAqB,GAAG,SAAS,CAWvF;AAqBD,yFAAyF;AACzF,wBAAgB,yBAAyB,CACxC,OAAO,EAAE,WAAW,GAClB,sBAAsB,GAAG,SAAS,CA2DpC;AAoBD,qFAAqF;AACrF,MAAM,MAAM,mBAAmB,GAAG,KAAK,GAAG,IAAI,CAAC;AAE/C,sFAAsF;AACtF,eAAO,MAAM,kBAAkB,mBAAmB,CAAC;AAqJnD;;;;GAIG;AACH,wBAAgB,2BAA2B,CAC1C,QAAQ,EAAE,MAAM,EAChB,KAAK,EAAE,MAAM,EACb,MAAM,EAAE,MAAM,EACd,MAAM,EAAE,sBAAsB,EAC9B,QAAQ,CAAC,EAAE,sBAAsB,GAC/B,MAAM,CAuBR;AAED;;;GAGG;AACH,wBAAgB,oBAAoB,CAAC,OAAO,EAAE,WAAW,GAAG,iBAAiB,GAAG,SAAS,CAkBxF;AAED;;;GAGG;AACH,wBAAgB,sBAAsB,CAAC,OAAO,EAAE,WAAW,GAAG,OAAO,CASpE;AAED;;;;;GAKG;AACH,wBAAgB,oBAAoB,CAAC,OAAO,EAAE,WAAW,GAAG,OAAO,CAMlE;AAED,wEAAwE;AACxE,wBAAgB,qBAAqB,CAAC,OAAO,EAAE,WAAW,GAAG,OAAO,CAEnE"}
@@ -0,0 +1,19 @@
1
+ /**
2
+ * The fill of a silhouette shape (see `silhouette-effects`) whose fill is a
3
+ * gradient, pattern or picture: the container's filter paints its shadow and
4
+ * glow from the painted alpha, so the fill must not be clipped on the container.
5
+ * It is a child layer carrying the same CSS background and the clip-path of the
6
+ * geometry; a child's clip applies before the container's filter.
7
+ *
8
+ * @module render/silhouette-fill-layer
9
+ */
10
+ import type { PptxElement } from 'ooxml-core/pptx';
11
+ /** The camelCase style of the fill layer, to be rendered as an inert absolute child. */
12
+ export interface SilhouetteFillLayer {
13
+ readonly style: Readonly<Record<string, string>>;
14
+ /** The same declarations as a `style` attribute value. */
15
+ readonly cssText: string;
16
+ }
17
+ /** The fill layer of a shape, or `undefined` when its fill is not painted that way. */
18
+ export declare function getSilhouetteFillLayer(element: PptxElement): SilhouetteFillLayer | undefined;
19
+ //# sourceMappingURL=silhouette-fill-layer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"silhouette-fill-layer.d.ts","sourceRoot":"","sources":["../../../src/pptx/render/silhouette-fill-layer.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAOnD,wFAAwF;AACxF,MAAM,WAAW,mBAAmB;IACnC,QAAQ,CAAC,KAAK,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC;IACjD,0DAA0D;IAC1D,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;CACzB;AAED,uFAAuF;AACvF,wBAAgB,sBAAsB,CAAC,OAAO,EAAE,WAAW,GAAG,mBAAmB,GAAG,SAAS,CA+B5F"}
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Rebuilds, under `root`, each silhouette filter whose shape a registered morph
3
+ * brings in. A filter that already carries the dissolve layers is left alone.
4
+ */
5
+ export declare function refreshSilhouetteMorphFilters(root: ParentNode): void;
6
+ //# sourceMappingURL=silhouette-morph-refresh.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"silhouette-morph-refresh.d.ts","sourceRoot":"","sources":["../../../src/pptx/render/silhouette-morph-refresh.ts"],"names":[],"mappings":"AAeA;;;GAGG;AACH,wBAAgB,6BAA6B,CAAC,IAAI,EAAE,UAAU,GAAG,IAAI,CA2BpE"}
@@ -0,0 +1,36 @@
1
+ /**
2
+ * The other end of a morph, handed to the silhouette filter of the shape that
3
+ * arrives (see `morph-effect-silhouette`).
4
+ *
5
+ * A filter is built from one element, and a morphing shape paints the effects of
6
+ * BOTH its ends, so the plan registers the outgoing end here, scaled into the
7
+ * arriving shape's frame, and `getSilhouetteEffects` adds its layers to the
8
+ * arriving shape's filter. The entry matches by id AND by the arriving shape's
9
+ * own effects, so a stale entry never touches another shape; the layers it adds
10
+ * sit at opacity `1 - p` and read `p` from the container's keyframes, which end
11
+ * at `p = 1`, so a shape that renders after its morph looks exactly as it did.
12
+ *
13
+ * @module render/silhouette-morph-registry
14
+ */
15
+ import type { SilhouetteEffectParams } from './silhouette-effects.js';
16
+ /** The outgoing end of a morph, with what rebuilds the arriving shape's filter. */
17
+ export interface SilhouetteMorphEntry {
18
+ /** The arriving shape's own effects. */
19
+ readonly params: SilhouetteEffectParams;
20
+ readonly width: number;
21
+ readonly height: number;
22
+ /** The arriving shape's own effects, serialized (the match key). */
23
+ readonly own: string;
24
+ /** The outgoing end's effects, in the arriving shape's frame. */
25
+ readonly out: SilhouetteEffectParams;
26
+ }
27
+ /** Registers the outgoing end of the morph that brings `elementId` in. */
28
+ export declare function registerSilhouetteMorph(elementId: string, own: SilhouetteEffectParams, out: SilhouetteEffectParams, size: {
29
+ width: number;
30
+ height: number;
31
+ }): void;
32
+ /** The registered morph that brings `elementId` in, if any. */
33
+ export declare function silhouetteMorphEntry(elementId: string): SilhouetteMorphEntry | undefined;
34
+ /** The outgoing end's effects for a shape with `own` effects, if a morph brings it in. */
35
+ export declare function silhouetteMorphFor(elementId: string, own: SilhouetteEffectParams): SilhouetteEffectParams | undefined;
36
+ //# sourceMappingURL=silhouette-morph-registry.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"silhouette-morph-registry.d.ts","sourceRoot":"","sources":["../../../src/pptx/render/silhouette-morph-registry.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AACH,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,sBAAsB,CAAC;AAEnE,mFAAmF;AACnF,MAAM,WAAW,oBAAoB;IACpC,wCAAwC;IACxC,QAAQ,CAAC,MAAM,EAAE,sBAAsB,CAAC;IACxC,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,oEAAoE;IACpE,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;IACrB,iEAAiE;IACjE,QAAQ,CAAC,GAAG,EAAE,sBAAsB,CAAC;CACrC;AAID,0EAA0E;AAC1E,wBAAgB,uBAAuB,CACtC,SAAS,EAAE,MAAM,EACjB,GAAG,EAAE,sBAAsB,EAC3B,GAAG,EAAE,sBAAsB,EAC3B,IAAI,EAAE;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,CAAA;CAAE,GACrC,IAAI,CAEN;AAED,+DAA+D;AAC/D,wBAAgB,oBAAoB,CAAC,SAAS,EAAE,MAAM,GAAG,oBAAoB,GAAG,SAAS,CAExF;AAED,0FAA0F;AAC1F,wBAAgB,kBAAkB,CACjC,SAAS,EAAE,MAAM,EACjB,GAAG,EAAE,sBAAsB,GACzB,sBAAsB,GAAG,SAAS,CAGpC"}
@@ -1,4 +1,5 @@
1
1
  import type { ToolbarActionId } from './toolbar-actions.js';
2
+ import type { SaveProgressStatus } from './controller/save-progress-controller.js';
2
3
  export type StatusBarTranslate = (key: string, params?: Record<string, string | number>) => string;
3
4
  /** Public intent ids. Hosts map them to their native handlers. */
4
5
  export type StatusBarControlId = 'notes' | 'normal' | 'sorter' | 'slideShow' | 'zoomOut' | 'zoomFit' | 'zoomIn';
@@ -11,6 +12,8 @@ export interface StatusBarViewState {
11
12
  /** Already-translated save indicator, see {@link resolveStatusBarSave}. */
12
13
  saveText: string;
13
14
  saveKind?: StatusBarSaveKind;
15
+ /** Polite announcement of a save in progress, throttled; empty when none runs. */
16
+ saveAnnouncement?: string;
14
17
  /** Omit to hide the whole zoom cluster. */
15
18
  zoomPercent?: number;
16
19
  showNotes?: boolean;
@@ -34,9 +37,10 @@ export interface StatusBarAutosave {
34
37
  timestamp?: number;
35
38
  }
36
39
  /** The one save-indicator rule: autosave state first, then the dirty flag. */
37
- export declare function resolveStatusBarSave(t: StatusBarTranslate, autosave: StatusBarAutosave | undefined, dirty: boolean, now?: number): {
40
+ export declare function resolveStatusBarSave(t: StatusBarTranslate, autosave: StatusBarAutosave | undefined, dirty: boolean, now?: number, progress?: SaveProgressStatus): {
38
41
  text: string;
39
42
  kind: StatusBarSaveKind;
43
+ announcement?: string;
40
44
  };
41
45
  /** Map a viewer mode string to the pressed view button (unknown modes press none). */
42
46
  export declare function statusBarViewMode(mode: string | undefined, sorterOpen?: boolean): StatusBarViewMode | undefined;
@@ -61,6 +65,8 @@ export interface StatusBarHostState {
61
65
  /** The host's `hiddenActions`: `zoom`, `notes` and `fullscreen` (the Slide Show button). */
62
66
  hiddenActions?: readonly ToolbarActionId[] | undefined;
63
67
  translate: StatusBarTranslate;
68
+ /** A save to the host's storage in progress, see `saveProgressStatus`. */
69
+ saveProgress?: SaveProgressStatus | undefined;
64
70
  /** Clock for the "Saved n minutes ago" text; defaults to now. */
65
71
  now?: number;
66
72
  }
@@ -1 +1 @@
1
- {"version":3,"file":"status-bar-state.d.ts","sourceRoot":"","sources":["../../../src/pptx/render/status-bar-state.ts"],"names":[],"mappings":"AAWA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAEzD,MAAM,MAAM,kBAAkB,GAAG,CAAC,GAAG,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC,KAAK,MAAM,CAAC;AAEnG,kEAAkE;AAClE,MAAM,MAAM,kBAAkB,GAC3B,OAAO,GACP,QAAQ,GACR,QAAQ,GACR,WAAW,GACX,SAAS,GACT,SAAS,GACT,QAAQ,CAAC;AAEZ,MAAM,MAAM,iBAAiB,GAAG,MAAM,GAAG,QAAQ,GAAG,OAAO,CAAC;AAC5D,MAAM,MAAM,iBAAiB,GAAG,QAAQ,GAAG,QAAQ,GAAG,WAAW,CAAC;AAElE,MAAM,WAAW,kBAAk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MAAM,MAAM,uBAAuB,GAAG,OAAO,CAAC,MAAM,CAAC,kBAAkB,EAAE,MAAM,IAAI,CAAC,CAAC,CAAC;AAEtF,oFAAoF;AACpF,wBAAgB,uBAAuB,CAAC,KAAK,EAAE,KAAK,EAAE,QAAQ,EAAE,uBAAuB,GAAG,IAAI,CAK7F"}
@@ -24,4 +24,26 @@ export declare function isStrokeOnlyPresetElement(element: PptxElement): boolean
24
24
  * strands. Returns `undefined` for anything that is not a stroke-only preset.
25
25
  */
26
26
  export declare function strokeOnlyPresetPathData(element: PptxElement): string | undefined;
27
+ /**
28
+ * Evaluate a preset's sub-paths when it uses the split layout: at least one
29
+ * sub-path opts out of the stroke (`a:path/@stroke="0"`), the way the ECMA-376
30
+ * definitions separate an unstroked FILL path from a separate STROKE path
31
+ * (`arc` is a wedge plus an open arc, `smileyFace` a face plus eyes and mouth,
32
+ * `can`, `cube`, `bevel`, brackets, braces, callouts, fold-over corners and
33
+ * action buttons likewise).
34
+ *
35
+ * PowerPoint fills only along the fill paths and strokes only along the stroked
36
+ * ones. The merged clip outline a binding would otherwise stroke includes the
37
+ * edges of the unstroked fill paths (an arc's radial edges, a bracket's chord),
38
+ * which PowerPoint never draws. Fully open presets are not part of this set:
39
+ * {@link getStrokeOnlyPresetPaths} owns them.
40
+ */
41
+ export declare function getSplitStrokePresetPaths(element: PptxElement): PresetSubpathResult[] | undefined;
42
+ /**
43
+ * SVG path data of only the stroked sub-paths of a split-layout preset (see
44
+ * {@link getSplitStrokePresetPaths}), or `undefined` when the preset is not one
45
+ * or has no stroked geometry. Every outline of such a preset (flat, gradient or
46
+ * pattern line) is drawn along this path.
47
+ */
48
+ export declare function splitStrokePresetPathData(element: PptxElement): string | undefined;
27
49
  //# sourceMappingURL=stroke-only-preset.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"stroke-only-preset.d.ts","sourceRoot":"","sources":["../../../src/pptx/render/stroke-only-preset.ts"],"names":[],"mappings":"AAsBA,OAAO,KAAK,EAAE,WAAW,EAAE,mBAAmB,EAAE,MAAM,iBAAiB,CAAC;AAExE;;;;;;;;;GASG;AACH,wBAAgB,wBAAwB,CAAC,OAAO,EAAE,WAAW,GAAG,mBAAmB,EAAE,GAAG,SAAS,CAwBhG;AAED;;;;GAIG;AACH,wBAAgB,yBAAyB,CAAC,OAAO,EAAE,WAAW,GAAG,OAAO,CAEvE;AAED;;;;;;GAMG;AACH,wBAAgB,wBAAwB,CAAC,OAAO,EAAE,WAAW,GAAG,MAAM,GAAG,SAAS,CAOjF"}
1
+ {"version":3,"file":"stroke-only-preset.d.ts","sourceRoot":"","sources":["../../../src/pptx/render/stroke-only-preset.ts"],"names":[],"mappings":"AAsBA,OAAO,KAAK,EAAE,WAAW,EAAE,mBAAmB,EAAE,MAAM,iBAAiB,CAAC;AAExE;;;;;;;;;GASG;AACH,wBAAgB,wBAAwB,CAAC,OAAO,EAAE,WAAW,GAAG,mBAAmB,EAAE,GAAG,SAAS,CAwBhG;AAED;;;;GAIG;AACH,wBAAgB,yBAAyB,CAAC,OAAO,EAAE,WAAW,GAAG,OAAO,CAEvE;AAED;;;;;;GAMG;AACH,wBAAgB,wBAAwB,CAAC,OAAO,EAAE,WAAW,GAAG,MAAM,GAAG,SAAS,CAOjF;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAgB,yBAAyB,CAAC,OAAO,EAAE,WAAW,GAAG,mBAAmB,EAAE,GAAG,SAAS,CAkBjG;AAED;;;;;GAKG;AACH,wBAAgB,yBAAyB,CAAC,OAAO,EAAE,WAAW,GAAG,MAAM,GAAG,SAAS,CAKlF"}
@@ -1 +1 @@
1
- {"version":3,"file":"stroke-outline.d.ts","sourceRoot":"","sources":["../../../src/pptx/render/stroke-outline.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;AACH,OAAO,KAAK,EAAE,WAAW,EAAc,MAAM,iBAAiB,CAAC;AAQ/D,OAAO,KAAK,EAAE,iBAAiB,EAAE,M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,MAAM,GAAG,SAAS,CAiCpB;AAQD,sGAAsG;AACtG,wBAAgB,yBAAyB,CAAC,SAAS,CAAC,EAAE,MAAM,GAAG,OAAO,CAErE;AAED,MAAM,WAAW,yBAAyB;IACzC,CAAC,EAAE,MAAM,CAAC;IACV,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC;CACnB;AAqBD,uFAAuF;AACvF,wBAAgB,4BAA4B,CAC3C,SAAS,EAAE,MAAM,GAAG,SAAS,EAC7B,KAAK,EAAE,MAAM,EACb,MAAM,EAAE,MAAM,EACd,WAAW,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAClC,yBAAyB,GAAG,SAAS,CAkCvC;AA4ID;;;;;GAKG;AACH,wBAAgB,qBAAqB,CAAC,OAAO,EAAE,WAAW,GAAG,MAAM,CAWlE;AAED;;;;;GAKG;AACH,wBAAgB,iBAAiB,CAAC,OAAO,EAAE,WAAW,GAAG,cAAc,CAKtE;AA2CD;;;;;;;;;;GAUG;AACH,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,WAAW,GAAG,aAAa,GAAG,SAAS,CAwElF;AAED;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,oBAAoB,CAAC,OAAO,EAAE,WAAW,GAAG,MAAM,GAAG,SAAS,CAO7E;AAED;;;;;GAKG;AACH,wBAAgB,mBAAmB,CAAC,OAAO,EAAE,WAAW,GAAG,OAAO,CAEjE"}
@@ -28,11 +28,10 @@
28
28
  * ({@link suppressesCssFill}) drops the CSS background so the flat colour does
29
29
  * not show underneath.
30
30
  *
31
- * Restricted to a solid (or absent) fill: a gradient/pattern/image fill keeps
32
- * the existing single merged clip-path box, since neither geometry kind's
33
- * sub-paths can carry an independent paint SERVER (only a solid, mode-shifted
34
- * colour), and the common case for both bug classes - shading/bevel highlights,
35
- * `smileyFace`'s eyes - is a solid theme colour.
31
+ * A solid (or absent) fill is painted entirely by the overlay. A gradient,
32
+ * pattern or picture fill keeps the single merged clip-path box (a sub-path
33
+ * cannot carry its own paint server) and gets only the shading veils on top
34
+ * (`buildShadingOverlay`).
36
35
  */
37
36
  import type { PptxElement } from 'ooxml-core/pptx';
38
37
  import type { SubpathPaint } from './vector-subpath-paint.js';
@@ -44,6 +43,13 @@ export interface SubpathFillOverlay {
44
43
  readonly viewBoxWidth: number;
45
44
  /** `viewBox` height, in the same coordinate space as every `paints[].d`. */
46
45
  readonly viewBoxHeight: number;
46
+ /**
47
+ * Set when the overlay paints the fill of a shape that is not clipped (its
48
+ * shadow and glow are a silhouette filter, see `silhouette-effects`), as
49
+ * opposed to the shading sub-paths of a shape that is. A binding that paints
50
+ * the whole fill itself (React's custom geometry and wedge callouts) skips it.
51
+ */
52
+ readonly silhouette?: boolean;
47
53
  }
48
54
  /**
49
55
  * Whether a binding must drop its CSS `background-color` / `background-image`
@@ -1 +1 @@
1
- {"version":3,"file":"subpath-fill-overlay.d.ts","sourceRoot":"","sources":["../../../src/pptx/render/subpath-fill-overlay.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmCG;AACH,OAAO,KAAK,EAIX,WAAW,EACX,MAAM,iBAAiB,CAAC;AASzB,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AAqB3D,kFAAkF;AAClF,MAAM,WAAW,kBAAkB;IAClC,kDAAkD;IAClD,QAAQ,CAAC,MAAM,EAAE,SAAS,YAAY,EAAE,CAAC;IACzC,2EAA2E;IAC3E,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAC;IAC9B,4EAA4E;IAC5E,QAAQ,CAAC,aAAa,EAAE,MAAM,CAAC;CAC/B;AAoHD;;;;;GAKG;AACH,wBAAgB,iBAAiB,CAAC,OAAO,EAAE,WAAW,GAAG,OAAO,CAE/D;AAED;;;GAGG;AACH,wBAAgB,uBAAuB,CAAC,OAAO,EAAE,WAAW,GAAG,kBAAkB,GAAG,SAAS,CAiB5F"}
1
+ {"version":3,"file":"subpath-fill-overlay.d.ts","sourceRoot":"","sources":["../../../src/pptx/render/subpath-fill-overlay.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCG;AACH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAMnD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AAG3D,kFAAkF;AAClF,MAAM,WAAW,kBAAkB;IAClC,kDAAkD;IAClD,QAAQ,CAAC,MAAM,EAAE,SAAS,YAAY,EAAE,CAAC;IACzC,2EAA2E;IAC3E,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAC;IAC9B,4EAA4E;IAC5E,QAAQ,CAAC,aAAa,EAAE,MAAM,CAAC;IAC/B;;;;;OAKG;IACH,QAAQ,CAAC,UAAU,CAAC,EAAE,OAAO,CAAC;CAC9B;AAgBD;;;;;GAKG;AACH,wBAAgB,iBAAiB,CAAC,OAAO,EAAE,WAAW,GAAG,OAAO,CAK/D;AAkDD;;;GAGG;AACH,wBAAgB,uBAAuB,CAAC,OAAO,EAAE,WAAW,GAAG,kBAAkB,GAAG,SAAS,CAmB5F"}
@@ -0,0 +1,38 @@
1
+ /**
2
+ * The per-sub-path geometry of a shape: custom geometry with structured paths,
3
+ * or a preset's evaluated sub-paths. Shared by the per-sub-path fill overlay
4
+ * (`subpath-fill-overlay`) and the silhouette effects (`silhouette-effects`),
5
+ * which paint a shape's fill as SVG paths when a CSS `clip-path` cannot.
6
+ *
7
+ * @module render/subpath-geometry
8
+ */
9
+ import type { CustomGeometrySubpathSvg, PptxElement } from 'ooxml-core/pptx';
10
+ /**
11
+ * The box a preset is evaluated at: the element's authored extent, floored at
12
+ * zero. Matches `getContainerStyle`'s `paintedElementSize` (not imported
13
+ * directly, to avoid a `fill-style.ts` <-> `element-style.ts` <->
14
+ * `subpath-fill-overlay.ts` import cycle: `fill-style.ts` consumes
15
+ * {@link suppressesCssFill} and `element-style.ts` consumes `fill-style.ts`).
16
+ * This used to pad out to `MIN_ELEMENT_SIZE`, which stretched a degenerate
17
+ * shape's per-sub-path fill overlay past its authored extent in read-only
18
+ * rendering (issue #285); any interaction-only padding now lives solely in
19
+ * `elementHitTargetStyle`, which never touches paint.
20
+ */
21
+ export declare function paintedSize(element: PptxElement): {
22
+ width: number;
23
+ height: number;
24
+ };
25
+ /** Resolved per-sub-path geometry needing individual paint, or `undefined`. */
26
+ export interface SubpathGeometry {
27
+ subpaths: CustomGeometrySubpathSvg[];
28
+ width: number;
29
+ height: number;
30
+ }
31
+ /**
32
+ * Resolve an element's per-sub-path geometry when, and only when, it genuinely
33
+ * needs individual paint handling - custom geometry with structured sub-paths,
34
+ * or a preset whose evaluated sub-paths vary. Returns `undefined` for every
35
+ * ordinary shape so callers keep their existing single merged fill/clip.
36
+ */
37
+ export declare function getSubpathGeometry(element: PptxElement, force?: boolean): SubpathGeometry | undefined;
38
+ //# sourceMappingURL=subpath-geometry.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"subpath-geometry.d.ts","sourceRoot":"","sources":["../../../src/pptx/render/subpath-geometry.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,OAAO,KAAK,EAGX,wBAAwB,EACxB,WAAW,EACX,MAAM,iBAAiB,CAAC;AAOzB;;;;;;;;;;GAUG;AACH,wBAAgB,WAAW,CAAC,OAAO,EAAE,WAAW,GAAG;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,CAAA;CAAE,CAKnF;AA0BD,+EAA+E;AAC/E,MAAM,WAAW,eAAe;IAC/B,QAAQ,EAAE,wBAAwB,EAAE,CAAC;IACrC,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;CACf;AAUD;;;;;G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1,8 @@
1
+ /** Scopes every reference inside `root` (and `root` itself). */
2
+ export declare function scopeSvgIds(root: Element | Document): void;
3
+ /**
4
+ * Starts scoping the ids of `doc` (idempotent, reference counted). Returns a
5
+ * function that releases it.
6
+ */
7
+ export declare function installSvgIdScope(doc?: Document): () => void;
8
+ //# sourceMappingURL=svg-id-scope.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"svg-id-scope.d.ts","sourceRoot":"","sources":["../../../src/pptx/render/svg-id-scope.ts"],"names":[],"mappings":"AAsHA,gEAAgE;AAChE,wBAAgB,WAAW,CAAC,IAAI,EAAE,OAAO,GAAG,QAAQ,GAAG,IAAI,CAO1D;AAyBD;;;GAGG;AACH,wBAAgB,iBAAiB,CAAC,GAAG,GAAE,QAAmB,GAAG,MAAM,IAAI,CA8CtE"}
@@ -0,0 +1,36 @@
1
+ /**
2
+ * Puts a table cell's paragraph on PowerPoint's baselines.
3
+ *
4
+ * A cell lays its text out with the same line model as a text box (measured
5
+ * on PowerPoint 16 exports: a table cell and a text box with the same font,
6
+ * size and `a:lnSpc` put their baselines on the same pixel for 12 to 40pt
7
+ * text at 50% to 300% and at 6 to 72pt exact), so the move
8
+ * `paragraph-baseline` computes for shape text applies unchanged. Without it
9
+ * the browser centres the leading above and below the line, which put a 150%
10
+ * paragraph 3px high and a 72pt exact one 18px high.
11
+ *
12
+ * @module render/table-cell-baseline
13
+ */
14
+ import { type BaselinePlacement, type FontBoxMeasure } from './paragraph-baseline.js';
15
+ import { type CellTextRun, type TableCellCss } from './table-style.js';
16
+ /** What {@link cellBaselinePlacement} reads from one paragraph block of a cell. */
17
+ export interface CellBaselineInput {
18
+ /** The block's runs. */
19
+ runs: readonly CellTextRun[];
20
+ /** The block's own `line-height` (a multiplier or a px string), else the cell's applies. */
21
+ lineHeight: number | string | undefined;
22
+ /** The block's own font size (pt), set when every run sets one. */
23
+ strutPt: number | undefined;
24
+ /** The cell's resolved style: its font and line height for runs and blocks that set none. */
25
+ cellCss: TableCellCss | undefined;
26
+ /** The table's default text size (pt), for a cell that sets none. */
27
+ defaultFontPt?: number | undefined;
28
+ measure?: FontBoxMeasure | undefined;
29
+ }
30
+ /**
31
+ * The inline style that moves a cell paragraph onto PowerPoint's baselines,
32
+ * or `undefined` when it needs none or cannot be modelled (no known font
33
+ * size, several sizes or faces, super- and subscripts).
34
+ */
35
+ export declare function cellBaselinePlacement(input: CellBaselineInput): BaselinePlacement | undefined;
36
+ //# sourceMappingURL=table-cell-baseline.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"table-cell-baseline.d.ts","sourceRoot":"","sources":["../../../src/pptx/render/table-cell-baseline.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AACH,OAAO,EAEN,KAAK,iBAAiB,EACtB,KAAK,cAAc,EACnB,MAAM,sBAAsB,CAAC;AAG9B,OAAO,EAAgB,KAAK,WAAW,EAAE,KAAK,YAAY,EAAE,MAAM,eAAe,CAAC;AAmBlF,mFAAmF;AACnF,MAAM,WAAW,iBAAiB;IACjC,wBAAwB;IACxB,IAAI,EAAE,SAAS,WAAW,EAAE,CAAC;IAC7B,4FAA4F;IAC5F,UAAU,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;IACxC,mEAAmE;IACnE,OAAO,EAAE,MAAM,GAAG,SAAS,CAAC;IAC5B,6FAA6F;IAC7F,OAAO,EAAE,YAAY,GAAG,SAAS,CAAC;IAClC,qEAAqE;IACrE,aAAa,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACnC,OAAO,CAAC,EAAE,cAAc,GAAG,SAAS,CAAC;CACrC;AAED;;;;GAIG;AACH,wBAAgB,qBAAqB,CAAC,KAAK,EAAE,iBAAiB,GAAG,iBAAiB,GAAG,SAAS,CA0C7F"}
@@ -0,0 +1,21 @@
1
+ /**
2
+ * table-cell-border-inset.ts: PowerPoint measures a cell margin from the grid
3
+ * line, so a row is `content + marT + marB` tall whatever the borders are.
4
+ * `border-collapse` puts half of each border inside the cell box, which would
5
+ * add the full border width (about 1px per row for a hairline grid) to every
6
+ * row. This takes that half out of the padding, using the borders the cell
7
+ * finally paints (its own and the ones its table style gives it), for the
8
+ * default margins as well as explicit ones.
9
+ *
10
+ * @module table-cell-border-inset
11
+ */
12
+ import type { PptxTableCellStyle } from 'ooxml-core/pptx';
13
+ import type { TableCellCss } from './table-style.js';
14
+ /** The width in px a resolved `border-*` value paints, 0 for none. */
15
+ export declare function borderCssWidthPx(value: unknown): number;
16
+ /**
17
+ * Set each side's padding to its margin (the cell's own, else the default
18
+ * already in `css`) less half of the border painted on that side.
19
+ */
20
+ export declare function insetPaddingForBorders(css: TableCellCss, cellStyle: PptxTableCellStyle | undefined): void;
21
+ //# sourceMappingURL=table-cell-border-inset.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"table-cell-border-inset.d.ts","sourceRoot":"","sources":["../../../src/pptx/render/table-cell-border-inset.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AACH,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AAE1D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAMlD,sEAAsE;AACtE,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,OAAO,GAAG,MAAM,CAMvD;AAUD;;;GAGG;AACH,wBAAgB,sBAAsB,CACrC,GAAG,EAAE,YAAY,EACjB,SAAS,EAAE,kBAAkB,GAAG,SAAS,GACvC,IAAI,CAWN"}
@@ -1 +1 @@
1
- {"version":3,"file":"table-cell-css.d.ts","sourceRoot":"","sources":["../../../src/pptx/render/table-cell-css.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AACH,OAAO,KAAK,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAKpE,OAAO,KAAK,EAAE,YAAY,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC;AASrE,8EAA8E;AAC9E,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