ooxml-core 1.24.2 → 1.25.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 (444) hide show
  1. package/dist/PptxHandler-AN42B3JR.mjs +4 -0
  2. package/dist/{PptxHandler-KFEE7O7W.cjs → PptxHandler-O25PF53M.cjs} +3 -3
  3. package/dist/{PptxHandler-5TWAQWPK.mjs → PptxHandler-UTNNU6PO.mjs} +3 -3
  4. package/dist/{PresentationBuilder-SXLRXYDI.cjs → PresentationBuilder-A4XU72IV.cjs} +5 -5
  5. package/dist/{PresentationBuilder-SCT5AQBP.mjs → PresentationBuilder-GTXNYSRI.mjs} +2 -2
  6. package/dist/{PresentationBuilder-SVHIKT4C.mjs → PresentationBuilder-TNMO5MPC.mjs} +3 -3
  7. package/dist/automation/index.cjs +10181 -6066
  8. package/dist/automation/index.mjs +10181 -6066
  9. package/dist/chart/data-sheet.d.ts +86 -0
  10. package/dist/chart/data-sheet.d.ts.map +1 -0
  11. package/dist/chart/edit/axes.d.ts +49 -0
  12. package/dist/chart/edit/axes.d.ts.map +1 -0
  13. package/dist/chart/edit/chartex-data.d.ts +15 -0
  14. package/dist/chart/edit/chartex-data.d.ts.map +1 -0
  15. package/dist/chart/edit/chartex.d.ts +61 -0
  16. package/dist/chart/edit/chartex.d.ts.map +1 -0
  17. package/dist/chart/edit/data-sheet.d.ts +10 -0
  18. package/dist/chart/edit/data-sheet.d.ts.map +1 -0
  19. package/dist/chart/edit/draft.d.ts +27 -0
  20. package/dist/chart/edit/draft.d.ts.map +1 -0
  21. package/dist/chart/edit/fill.d.ts +47 -0
  22. package/dist/chart/edit/fill.d.ts.map +1 -0
  23. package/dist/chart/edit/gradient.d.ts +44 -0
  24. package/dist/chart/edit/gradient.d.ts.map +1 -0
  25. package/dist/chart/edit/group-options.d.ts +14 -0
  26. package/dist/chart/edit/group-options.d.ts.map +1 -0
  27. package/dist/chart/edit/index.d.ts +23 -0
  28. package/dist/chart/edit/index.d.ts.map +1 -0
  29. package/dist/chart/edit/intent.d.ts +72 -0
  30. package/dist/chart/edit/intent.d.ts.map +1 -0
  31. package/dist/chart/edit/legend-labels.d.ts +34 -0
  32. package/dist/chart/edit/legend-labels.d.ts.map +1 -0
  33. package/dist/chart/edit/new-chart.d.ts +14 -0
  34. package/dist/chart/edit/new-chart.d.ts.map +1 -0
  35. package/dist/chart/edit/paint.d.ts +20 -0
  36. package/dist/chart/edit/paint.d.ts.map +1 -0
  37. package/dist/chart/edit/quick-layout.d.ts +16 -0
  38. package/dist/chart/edit/quick-layout.d.ts.map +1 -0
  39. package/dist/chart/edit/series-data.d.ts +8 -0
  40. package/dist/chart/edit/series-data.d.ts.map +1 -0
  41. package/dist/chart/edit/series.d.ts +57 -0
  42. package/dist/chart/edit/series.d.ts.map +1 -0
  43. package/dist/chart/edit/style.d.ts +18 -0
  44. package/dist/chart/edit/style.d.ts.map +1 -0
  45. package/dist/chart/edit/target-paint.d.ts +19 -0
  46. package/dist/chart/edit/target-paint.d.ts.map +1 -0
  47. package/dist/chart/edit/target.d.ts +31 -0
  48. package/dist/chart/edit/target.d.ts.map +1 -0
  49. package/dist/chart/edit/title.d.ts +24 -0
  50. package/dist/chart/edit/title.d.ts.map +1 -0
  51. package/dist/chart/edit/type-axes.d.ts +14 -0
  52. package/dist/chart/edit/type-axes.d.ts.map +1 -0
  53. package/dist/chart/edit/type-schema.d.ts +15 -0
  54. package/dist/chart/edit/type-schema.d.ts.map +1 -0
  55. package/dist/chart/edit/type.d.ts +16 -0
  56. package/dist/chart/edit/type.d.ts.map +1 -0
  57. package/dist/chart/ex/index.d.ts +4 -0
  58. package/dist/chart/ex/index.d.ts.map +1 -0
  59. package/dist/chart/ex/model.d.ts +291 -0
  60. package/dist/chart/ex/model.d.ts.map +1 -0
  61. package/dist/chart/ex/parse-axis.d.ts +6 -0
  62. package/dist/chart/ex/parse-axis.d.ts.map +1 -0
  63. package/dist/chart/ex/parse-series.d.ts +6 -0
  64. package/dist/chart/ex/parse-series.d.ts.map +1 -0
  65. package/dist/chart/ex/parse-text.d.ts +14 -0
  66. package/dist/chart/ex/parse-text.d.ts.map +1 -0
  67. package/dist/chart/ex/parse-util.d.ts +36 -0
  68. package/dist/chart/ex/parse-util.d.ts.map +1 -0
  69. package/dist/chart/ex/parse.d.ts +10 -0
  70. package/dist/chart/ex/parse.d.ts.map +1 -0
  71. package/dist/chart/ex/write-series.d.ts +13 -0
  72. package/dist/chart/ex/write-series.d.ts.map +1 -0
  73. package/dist/chart/ex/write-util.d.ts +23 -0
  74. package/dist/chart/ex/write-util.d.ts.map +1 -0
  75. package/dist/chart/ex/write.d.ts +24 -0
  76. package/dist/chart/ex/write.d.ts.map +1 -0
  77. package/dist/chart/index.cjs +7258 -3107
  78. package/dist/chart/index.d.ts +8 -0
  79. package/dist/chart/index.d.ts.map +1 -1
  80. package/dist/chart/index.mjs +7117 -3110
  81. package/dist/chart/keep-source.d.ts +11 -0
  82. package/dist/chart/keep-source.d.ts.map +1 -0
  83. package/dist/chart/keep-unmodelled.d.ts +6 -0
  84. package/dist/chart/keep-unmodelled.d.ts.map +1 -0
  85. package/dist/chart/model-series.d.ts +6 -0
  86. package/dist/chart/model-series.d.ts.map +1 -1
  87. package/dist/chart/model.d.ts +14 -0
  88. package/dist/chart/model.d.ts.map +1 -1
  89. package/dist/chart/parse-plot.d.ts.map +1 -1
  90. package/dist/chart/parse-series.d.ts +1 -1
  91. package/dist/chart/parse-series.d.ts.map +1 -1
  92. package/dist/chart/parse-util.d.ts +2 -0
  93. package/dist/chart/parse-util.d.ts.map +1 -1
  94. package/dist/chart/quick-layouts.d.ts +41 -0
  95. package/dist/chart/quick-layouts.d.ts.map +1 -0
  96. package/dist/chart/render/summary-from-chartex.d.ts +3 -0
  97. package/dist/chart/render/summary-from-chartex.d.ts.map +1 -1
  98. package/dist/chart/style-presets.d.ts +20 -0
  99. package/dist/chart/style-presets.d.ts.map +1 -0
  100. package/dist/chart/workbook/cellref.d.ts +53 -0
  101. package/dist/chart/workbook/cellref.d.ts.map +1 -0
  102. package/dist/chart/workbook/create.d.ts +6 -0
  103. package/dist/chart/workbook/create.d.ts.map +1 -0
  104. package/dist/chart/workbook/index.d.ts +10 -0
  105. package/dist/chart/workbook/index.d.ts.map +1 -0
  106. package/dist/chart/workbook/layout.d.ts +35 -0
  107. package/dist/chart/workbook/layout.d.ts.map +1 -0
  108. package/dist/chart/workbook/package-save.d.ts +48 -0
  109. package/dist/chart/workbook/package-save.d.ts.map +1 -0
  110. package/dist/chart/workbook/sheet-cells.d.ts +31 -0
  111. package/dist/chart/workbook/sheet-cells.d.ts.map +1 -0
  112. package/dist/chart/workbook/space-writes.d.ts +5 -0
  113. package/dist/chart/workbook/space-writes.d.ts.map +1 -0
  114. package/dist/chart/workbook/tables.d.ts +20 -0
  115. package/dist/chart/workbook/tables.d.ts.map +1 -0
  116. package/dist/chart/workbook/validation.d.ts +12 -0
  117. package/dist/chart/workbook/validation.d.ts.map +1 -0
  118. package/dist/chart/workbook/writer.d.ts +55 -0
  119. package/dist/chart/workbook/writer.d.ts.map +1 -0
  120. package/dist/chart/write-axes.d.ts.map +1 -1
  121. package/dist/chart/write-plot.d.ts.map +1 -1
  122. package/dist/chart/write-series.d.ts.map +1 -1
  123. package/dist/chart/write-shape.d.ts +2 -0
  124. package/dist/chart/write-shape.d.ts.map +1 -1
  125. package/dist/{chunk-NE7626A4.mjs → chunk-4IYYW3CX.mjs} +5 -5
  126. package/dist/{chunk-6IIMI5RS.mjs → chunk-6DHZZD5R.mjs} +1103 -1025
  127. package/dist/{chunk-GBKBR4CX.mjs → chunk-E2PYQQQV.mjs} +1 -1
  128. package/dist/{chunk-XK55DEUD.cjs → chunk-JE3DVWAJ.cjs} +4991 -2865
  129. package/dist/{chunk-7N7C5BNM.mjs → chunk-NBSJDA3B.mjs} +2236 -2096
  130. package/dist/{chunk-GVP262WE.mjs → chunk-QXWRJDVE.mjs} +4077 -1951
  131. package/dist/{chunk-4LZIUJI3.cjs → chunk-S5TGOEQX.cjs} +1108 -1029
  132. package/dist/{chunk-CWCDFPKN.mjs → chunk-VHGMYNWM.mjs} +1 -1
  133. package/dist/{chunk-ON7XVRHQ.mjs → chunk-X7IIABZ6.mjs} +3978 -1835
  134. package/dist/{chunk-KVKTHGIY.mjs → chunk-YWTKOZMT.mjs} +1 -1
  135. package/dist/crypto/detect.d.ts +5 -1
  136. package/dist/crypto/detect.d.ts.map +1 -1
  137. package/dist/crypto/index.cjs +1 -1
  138. package/dist/crypto/index.mjs +1 -1
  139. package/dist/diagram/approximate.d.ts +19 -0
  140. package/dist/diagram/approximate.d.ts.map +1 -0
  141. package/dist/diagram/builtin/catalog.d.ts +3 -0
  142. package/dist/diagram/builtin/catalog.d.ts.map +1 -0
  143. package/dist/diagram/builtin/data.d.ts +3 -0
  144. package/dist/diagram/builtin/data.d.ts.map +1 -0
  145. package/dist/diagram/builtin/definitions.d.ts +7 -0
  146. package/dist/diagram/builtin/definitions.d.ts.map +1 -0
  147. package/dist/diagram/builtin/index.cjs +1348 -0
  148. package/dist/diagram/builtin/index.d.ts +3 -0
  149. package/dist/diagram/builtin/index.d.ts.map +1 -0
  150. package/dist/diagram/builtin/index.mjs +1337 -0
  151. package/dist/diagram/builtin/layouts.d.ts +15 -0
  152. package/dist/diagram/builtin/layouts.d.ts.map +1 -0
  153. package/dist/diagram/builtin/types.d.ts +13 -0
  154. package/dist/diagram/builtin/types.d.ts.map +1 -0
  155. package/dist/diagram/catalogue.d.ts +51 -0
  156. package/dist/diagram/catalogue.d.ts.map +1 -0
  157. package/dist/diagram/data-model.d.ts.map +1 -1
  158. package/dist/diagram/drawing-from-views.d.ts +11 -0
  159. package/dist/diagram/drawing-from-views.d.ts.map +1 -0
  160. package/dist/diagram/drawing-resolve.d.ts +34 -0
  161. package/dist/diagram/drawing-resolve.d.ts.map +1 -0
  162. package/dist/diagram/drawing-view.d.ts +104 -0
  163. package/dist/diagram/drawing-view.d.ts.map +1 -0
  164. package/dist/diagram/drawing.d.ts.map +1 -1
  165. package/dist/diagram/edit/design-commands.d.ts +27 -0
  166. package/dist/diagram/edit/design-commands.d.ts.map +1 -0
  167. package/dist/diagram/edit/index.d.ts +15 -0
  168. package/dist/diagram/edit/index.d.ts.map +1 -0
  169. package/dist/diagram/edit/node-edit.d.ts +66 -0
  170. package/dist/diagram/edit/node-edit.d.ts.map +1 -0
  171. package/dist/diagram/edit/node-ops.d.ts +71 -0
  172. package/dist/diagram/edit/node-ops.d.ts.map +1 -0
  173. package/dist/diagram/edit/node-order.d.ts +28 -0
  174. package/dist/diagram/edit/node-order.d.ts.map +1 -0
  175. package/dist/diagram/edit/node-style.d.ts +42 -0
  176. package/dist/diagram/edit/node-style.d.ts.map +1 -0
  177. package/dist/diagram/edit/node-tree.d.ts +10 -0
  178. package/dist/diagram/edit/node-tree.d.ts.map +1 -0
  179. package/dist/diagram/edit/outline.d.ts +11 -0
  180. package/dist/diagram/edit/outline.d.ts.map +1 -0
  181. package/dist/diagram/edit/reflow-category.d.ts +18 -0
  182. package/dist/diagram/edit/reflow-category.d.ts.map +1 -0
  183. package/dist/diagram/edit/reflow-directional.d.ts +53 -0
  184. package/dist/diagram/edit/reflow-directional.d.ts.map +1 -0
  185. package/dist/diagram/edit/reflow-geometric.d.ts +59 -0
  186. package/dist/diagram/edit/reflow-geometric.d.ts.map +1 -0
  187. package/dist/diagram/edit/reflow-stacked.d.ts +32 -0
  188. package/dist/diagram/edit/reflow-stacked.d.ts.map +1 -0
  189. package/dist/diagram/edit/reflow.d.ts +48 -0
  190. package/dist/diagram/edit/reflow.d.ts.map +1 -0
  191. package/dist/diagram/edit/shape-match.d.ts +34 -0
  192. package/dist/diagram/edit/shape-match.d.ts.map +1 -0
  193. package/dist/diagram/edit/types.d.ts +31 -0
  194. package/dist/diagram/edit/types.d.ts.map +1 -0
  195. package/dist/diagram/index.cjs +3934 -910
  196. package/dist/diagram/index.d.ts +9 -0
  197. package/dist/diagram/index.d.ts.map +1 -1
  198. package/dist/diagram/index.mjs +3860 -912
  199. package/dist/diagram/model/node.d.ts +10 -0
  200. package/dist/diagram/model/node.d.ts.map +1 -1
  201. package/dist/diagram/relationships.d.ts +8 -0
  202. package/dist/diagram/relationships.d.ts.map +1 -1
  203. package/dist/diagram/strings/de.d.ts +3 -0
  204. package/dist/diagram/strings/de.d.ts.map +1 -0
  205. package/dist/diagram/strings/en.d.ts +74 -0
  206. package/dist/diagram/strings/en.d.ts.map +1 -0
  207. package/dist/diagram/strings/es.d.ts +3 -0
  208. package/dist/diagram/strings/es.d.ts.map +1 -0
  209. package/dist/diagram/strings/fr.d.ts +3 -0
  210. package/dist/diagram/strings/fr.d.ts.map +1 -0
  211. package/dist/diagram/strings/index.d.ts +11 -0
  212. package/dist/diagram/strings/index.d.ts.map +1 -0
  213. package/dist/diagram/strings/zh-CN.d.ts +3 -0
  214. package/dist/diagram/strings/zh-CN.d.ts.map +1 -0
  215. package/dist/diagram/text/index.d.ts +5 -0
  216. package/dist/diagram/text/index.d.ts.map +1 -0
  217. package/dist/diagram/text/node-text-neutral.d.ts +29 -0
  218. package/dist/diagram/text/node-text-neutral.d.ts.map +1 -0
  219. package/dist/diagram/text/node-text-paragraphs.d.ts +6 -0
  220. package/dist/diagram/text/node-text-paragraphs.d.ts.map +1 -0
  221. package/dist/diagram/text/node-text-projection.d.ts +48 -0
  222. package/dist/diagram/text/node-text-projection.d.ts.map +1 -0
  223. package/dist/diagram/text/node-text-reconciliation.d.ts +4 -0
  224. package/dist/diagram/text/node-text-reconciliation.d.ts.map +1 -0
  225. package/dist/diagram/types.d.ts +12 -0
  226. package/dist/diagram/types.d.ts.map +1 -1
  227. package/dist/diagram/write/data-edit.d.ts +30 -0
  228. package/dist/diagram/write/data-edit.d.ts.map +1 -0
  229. package/dist/diagram/write/data.d.ts +62 -0
  230. package/dist/diagram/write/data.d.ts.map +1 -0
  231. package/dist/diagram/write/index.d.ts +4 -0
  232. package/dist/diagram/write/index.d.ts.map +1 -0
  233. package/dist/diagram/write/inserted.d.ts +14 -0
  234. package/dist/diagram/write/inserted.d.ts.map +1 -0
  235. package/dist/docx/chart-edit.d.ts +33 -0
  236. package/dist/docx/chart-edit.d.ts.map +1 -0
  237. package/dist/docx/chart-save.d.ts +14 -0
  238. package/dist/docx/chart-save.d.ts.map +1 -0
  239. package/dist/docx/chart.d.ts +5 -3
  240. package/dist/docx/chart.d.ts.map +1 -1
  241. package/dist/docx/diagram-edit.d.ts +50 -0
  242. package/dist/docx/diagram-edit.d.ts.map +1 -0
  243. package/dist/docx/diagram-nodes.d.ts +2 -0
  244. package/dist/docx/diagram-nodes.d.ts.map +1 -0
  245. package/dist/docx/diagram-save.d.ts +12 -0
  246. package/dist/docx/diagram-save.d.ts.map +1 -0
  247. package/dist/docx/diagram.d.ts +17 -9
  248. package/dist/docx/diagram.d.ts.map +1 -1
  249. package/dist/docx/embedded.cjs +5191 -2423
  250. package/dist/docx/embedded.mjs +5191 -2423
  251. package/dist/docx/index.cjs +10063 -6083
  252. package/dist/docx/index.d.ts +4 -1
  253. package/dist/docx/index.d.ts.map +1 -1
  254. package/dist/docx/index.mjs +10049 -6084
  255. package/dist/docx/load/index.cjs +5841 -3073
  256. package/dist/docx/load/index.mjs +5841 -3073
  257. package/dist/docx/parse.d.ts.map +1 -1
  258. package/dist/docx/part-relationships.d.ts.map +1 -1
  259. package/dist/docx/relationship-allocator.d.ts +19 -0
  260. package/dist/docx/relationship-allocator.d.ts.map +1 -1
  261. package/dist/docx/save.d.ts.map +1 -1
  262. package/dist/docx/ui/chart-commands.d.ts +19 -0
  263. package/dist/docx/ui/chart-commands.d.ts.map +1 -0
  264. package/dist/docx/ui/index.cjs +1482 -655
  265. package/dist/docx/ui/index.d.ts +2 -0
  266. package/dist/docx/ui/index.d.ts.map +1 -1
  267. package/dist/docx/ui/index.mjs +1479 -656
  268. package/dist/docx/ui/ribbon-action-ids.d.ts +1 -1
  269. package/dist/docx/ui/ribbon-action-ids.d.ts.map +1 -1
  270. package/dist/docx/ui/smartart-approximate.d.ts +5 -0
  271. package/dist/docx/ui/smartart-approximate.d.ts.map +1 -0
  272. package/dist/docx/write-chart-drawing.d.ts +12 -0
  273. package/dist/docx/write-chart-drawing.d.ts.map +1 -0
  274. package/dist/docx/write-diagram-drawing.d.ts +13 -0
  275. package/dist/docx/write-diagram-drawing.d.ts.map +1 -0
  276. package/dist/docx/write-drawing-patch.d.ts +8 -0
  277. package/dist/docx/write-drawing-patch.d.ts.map +1 -0
  278. package/dist/docx/write-drawing.d.ts.map +1 -1
  279. package/dist/drawingml/index.cjs +863 -0
  280. package/dist/drawingml/index.d.ts +7 -0
  281. package/dist/drawingml/index.d.ts.map +1 -1
  282. package/dist/drawingml/index.mjs +840 -1
  283. package/dist/drawingml/read-paragraph-properties.d.ts +8 -0
  284. package/dist/drawingml/read-paragraph-properties.d.ts.map +1 -0
  285. package/dist/drawingml/read-run-properties.d.ts +15 -0
  286. package/dist/drawingml/read-run-properties.d.ts.map +1 -0
  287. package/dist/drawingml/read-text-body.d.ts +13 -0
  288. package/dist/drawingml/read-text-body.d.ts.map +1 -0
  289. package/dist/drawingml/text-model.d.ts +210 -0
  290. package/dist/drawingml/text-model.d.ts.map +1 -0
  291. package/dist/drawingml/write-paragraph-properties.d.ts +12 -0
  292. package/dist/drawingml/write-paragraph-properties.d.ts.map +1 -0
  293. package/dist/drawingml/write-run-properties.d.ts +11 -0
  294. package/dist/drawingml/write-run-properties.d.ts.map +1 -0
  295. package/dist/drawingml/write-text-body.d.ts +18 -0
  296. package/dist/drawingml/write-text-body.d.ts.map +1 -0
  297. package/dist/drawingml/write-text-xml.d.ts +26 -0
  298. package/dist/drawingml/write-text-xml.d.ts.map +1 -0
  299. package/dist/index.cjs +10068 -2908
  300. package/dist/index.mjs +10068 -2908
  301. package/dist/pptx/automation/index.cjs +6849 -3889
  302. package/dist/pptx/automation/index.d.ts +9 -6
  303. package/dist/pptx/automation/index.d.ts.map +1 -1
  304. package/dist/pptx/automation/index.mjs +7 -7
  305. package/dist/pptx/chunks/{elements-iUzpAeqR.d.ts → elements-DhW764aK.d.ts} +23 -14
  306. package/dist/pptx/chunks/elements-DhW764aK.d.ts.map +1 -0
  307. package/dist/pptx/chunks/{index-C3xhAMSa.d.ts → index-CX0RM1fF.d.ts} +4 -4
  308. package/dist/pptx/chunks/{index-C3xhAMSa.d.ts.map → index-CX0RM1fF.d.ts.map} +1 -1
  309. package/dist/pptx/chunks/{index-nKQ4s7FA.d.ts → index-CgjEEpfK.d.ts} +18 -9
  310. package/dist/pptx/chunks/index-CgjEEpfK.d.ts.map +1 -0
  311. package/dist/pptx/chunks/{index-4FmgJajb.d.ts → index-DCbp5fOs.d.ts} +100 -95
  312. package/dist/pptx/chunks/index-DCbp5fOs.d.ts.map +1 -0
  313. package/dist/pptx/chunks/{smart-art-ENMMEbmW.d.ts → smart-art-BEEl0l8X.d.ts} +514 -306
  314. package/dist/pptx/chunks/smart-art-BEEl0l8X.d.ts.map +1 -0
  315. package/dist/pptx/chunks/{text-operations-CfLVZ7DK.d.ts → text-operations-CjalmJIi.d.ts} +2 -2
  316. package/dist/pptx/chunks/{text-operations-CfLVZ7DK.d.ts.map → text-operations-CjalmJIi.d.ts.map} +1 -1
  317. package/dist/pptx/cli/index.cjs +6333 -3375
  318. package/dist/pptx/cli/index.d.ts +1 -1
  319. package/dist/pptx/cli/index.mjs +5 -5
  320. package/dist/pptx/converter/index.cjs +107 -75
  321. package/dist/pptx/converter/index.d.ts +1 -1
  322. package/dist/pptx/converter/index.mjs +3 -3
  323. package/dist/pptx/editor/render/editor-history.cjs +3 -1
  324. package/dist/pptx/editor/render/editor-history.d.ts +9 -1
  325. package/dist/pptx/editor/render/editor-history.d.ts.map +1 -1
  326. package/dist/pptx/editor/render/editor-history.mjs +3 -2
  327. package/dist/pptx/editor/render/find-replace.cjs +14 -14
  328. package/dist/pptx/editor/render/find-replace.d.ts +2 -2
  329. package/dist/pptx/editor/render/find-replace.mjs +1 -1
  330. package/dist/pptx/editor/render/slide-operations.cjs +8 -8
  331. package/dist/pptx/editor/render/slide-operations.mjs +2 -2
  332. package/dist/pptx/editor/render/text-runs-style-patch.d.ts +1 -1
  333. package/dist/pptx/editor/render/text-style-scope.d.ts +1 -1
  334. package/dist/pptx/index.cjs +7753 -4728
  335. package/dist/pptx/index.d.ts +7 -7
  336. package/dist/pptx/index.mjs +6 -6
  337. package/dist/pptx/node/index.d.ts +1 -1
  338. package/dist/pptx/signature-node/index.mjs +2 -2
  339. package/dist/pptx/smartart-layouts/index.cjs +26 -23
  340. package/dist/pptx/smartart-layouts/index.d.ts +7 -5
  341. package/dist/pptx/smartart-layouts/index.d.ts.map +1 -1
  342. package/dist/pptx/smartart-layouts/index.mjs +26 -23
  343. package/dist/teams/index.cjs +20165 -18388
  344. package/dist/teams/index.mjs +20165 -18388
  345. package/dist/text/index.cjs +106 -0
  346. package/dist/text/index.d.ts +2 -0
  347. package/dist/text/index.d.ts.map +1 -1
  348. package/dist/text/index.mjs +103 -1
  349. package/dist/text/locale-number.d.ts +15 -0
  350. package/dist/text/locale-number.d.ts.map +1 -0
  351. package/dist/text/tsv.d.ts +8 -0
  352. package/dist/text/tsv.d.ts.map +1 -0
  353. package/dist/visio/index.cjs +3574 -1953
  354. package/dist/visio/index.mjs +3574 -1953
  355. package/dist/visio/ui/index.cjs +3562 -1941
  356. package/dist/visio/ui/index.mjs +3562 -1941
  357. package/dist/xlsx/edit/chart-colors.d.ts +2 -2
  358. package/dist/xlsx/edit/chart-colors.d.ts.map +1 -1
  359. package/dist/xlsx/edit/chart-design.d.ts +11 -0
  360. package/dist/xlsx/edit/chart-design.d.ts.map +1 -0
  361. package/dist/xlsx/edit/chart-element-fill.d.ts.map +1 -1
  362. package/dist/xlsx/edit/chart-series-fill.d.ts.map +1 -1
  363. package/dist/xlsx/edit/chart-series-gradient.d.ts +6 -34
  364. package/dist/xlsx/edit/chart-series-gradient.d.ts.map +1 -1
  365. package/dist/xlsx/edit/chart-series-transparency.d.ts.map +1 -1
  366. package/dist/xlsx/edit/chart-space-patch.d.ts +13 -0
  367. package/dist/xlsx/edit/chart-space-patch.d.ts.map +1 -0
  368. package/dist/xlsx/edit/chart-space-series.d.ts +14 -0
  369. package/dist/xlsx/edit/chart-space-series.d.ts.map +1 -0
  370. package/dist/xlsx/edit/charts.d.ts +22 -6
  371. package/dist/xlsx/edit/charts.d.ts.map +1 -1
  372. package/dist/xlsx/edit/clipboard-text.d.ts +2 -7
  373. package/dist/xlsx/edit/clipboard-text.d.ts.map +1 -1
  374. package/dist/xlsx/edit/index.d.ts +3 -1
  375. package/dist/xlsx/edit/index.d.ts.map +1 -1
  376. package/dist/xlsx/edit/session.d.ts.map +1 -1
  377. package/dist/xlsx/edit/shift-formulas.d.ts.map +1 -1
  378. package/dist/xlsx/edit/smart-art.d.ts +32 -0
  379. package/dist/xlsx/edit/smart-art.d.ts.map +1 -0
  380. package/dist/xlsx/edit/types.d.ts +12 -1
  381. package/dist/xlsx/edit/types.d.ts.map +1 -1
  382. package/dist/xlsx/embedded-chart-space.d.ts +19 -0
  383. package/dist/xlsx/embedded-chart-space.d.ts.map +1 -0
  384. package/dist/xlsx/index.cjs +6457 -3105
  385. package/dist/xlsx/index.d.ts +1 -0
  386. package/dist/xlsx/index.d.ts.map +1 -1
  387. package/dist/xlsx/index.mjs +6451 -3106
  388. package/dist/xlsx/load/index.cjs +5733 -3844
  389. package/dist/xlsx/load/index.mjs +5733 -3844
  390. package/dist/xlsx/model.d.ts +71 -15
  391. package/dist/xlsx/model.d.ts.map +1 -1
  392. package/dist/xlsx/read/chart.d.ts +10 -0
  393. package/dist/xlsx/read/chart.d.ts.map +1 -1
  394. package/dist/xlsx/read/drawing.d.ts.map +1 -1
  395. package/dist/xlsx/read/smart-art.d.ts.map +1 -1
  396. package/dist/xlsx/smart-art-notices.d.ts +6 -0
  397. package/dist/xlsx/smart-art-notices.d.ts.map +1 -0
  398. package/dist/xlsx/ui/commands/contextual.d.ts +6 -1
  399. package/dist/xlsx/ui/commands/contextual.d.ts.map +1 -1
  400. package/dist/xlsx/ui/commands/i18n/chart-series.d.ts.map +1 -1
  401. package/dist/xlsx/ui/commands/i18n/core-features.d.ts.map +1 -1
  402. package/dist/xlsx/ui/commands/i18n/index.d.ts.map +1 -1
  403. package/dist/xlsx/ui/commands/i18n/ribbon-tabs.d.ts.map +1 -1
  404. package/dist/xlsx/ui/commands/i18n/smartart.d.ts +3 -0
  405. package/dist/xlsx/ui/commands/i18n/smartart.d.ts.map +1 -0
  406. package/dist/xlsx/ui/commands/icons.d.ts.map +1 -1
  407. package/dist/xlsx/ui/index.cjs +6664 -2907
  408. package/dist/xlsx/ui/index.mjs +6663 -2907
  409. package/dist/xlsx/ui/locales/de/index.d.ts.map +1 -1
  410. package/dist/xlsx/ui/locales/de/smartart.d.ts +2 -0
  411. package/dist/xlsx/ui/locales/de/smartart.d.ts.map +1 -0
  412. package/dist/xlsx/ui/locales/en/index.d.ts.map +1 -1
  413. package/dist/xlsx/ui/locales/en/smartart.d.ts +2 -0
  414. package/dist/xlsx/ui/locales/en/smartart.d.ts.map +1 -0
  415. package/dist/xlsx/ui/locales/es/index.d.ts.map +1 -1
  416. package/dist/xlsx/ui/locales/es/smartart.d.ts +2 -0
  417. package/dist/xlsx/ui/locales/es/smartart.d.ts.map +1 -0
  418. package/dist/xlsx/ui/locales/fr/index.d.ts.map +1 -1
  419. package/dist/xlsx/ui/locales/fr/smartart.d.ts +2 -0
  420. package/dist/xlsx/ui/locales/fr/smartart.d.ts.map +1 -0
  421. package/dist/xlsx/ui/locales/zh-CN/index.d.ts.map +1 -1
  422. package/dist/xlsx/ui/locales/zh-CN/smartart.d.ts +2 -0
  423. package/dist/xlsx/ui/locales/zh-CN/smartart.d.ts.map +1 -0
  424. package/dist/xlsx/write/chart-cache.d.ts.map +1 -1
  425. package/dist/xlsx/write/chart-colors.d.ts +1 -8
  426. package/dist/xlsx/write/chart-colors.d.ts.map +1 -1
  427. package/dist/xlsx/write/chart-space.d.ts +8 -0
  428. package/dist/xlsx/write/chart-space.d.ts.map +1 -1
  429. package/dist/xlsx/write/chart-title.d.ts +2 -2
  430. package/dist/xlsx/write/chart-title.d.ts.map +1 -1
  431. package/dist/xlsx/write/chart.d.ts +4 -3
  432. package/dist/xlsx/write/chart.d.ts.map +1 -1
  433. package/dist/xlsx/write/drawing.d.ts +10 -3
  434. package/dist/xlsx/write/drawing.d.ts.map +1 -1
  435. package/dist/xlsx/write/smart-art.d.ts +17 -0
  436. package/dist/xlsx/write/smart-art.d.ts.map +1 -0
  437. package/package.json +6 -1
  438. package/dist/PptxHandler-KBJ4TN3T.mjs +0 -4
  439. package/dist/pptx/chunks/elements-iUzpAeqR.d.ts.map +0 -1
  440. package/dist/pptx/chunks/index-4FmgJajb.d.ts.map +0 -1
  441. package/dist/pptx/chunks/index-nKQ4s7FA.d.ts.map +0 -1
  442. package/dist/pptx/chunks/smart-art-ENMMEbmW.d.ts.map +0 -1
  443. package/dist/xlsx/write/chart-patch.d.ts +0 -9
  444. package/dist/xlsx/write/chart-patch.d.ts.map +0 -1
@@ -0,0 +1,53 @@
1
+ /**
2
+ * Directional/flow SmartArt reflow layout implementations.
3
+ *
4
+ * Contains reflow algorithms for layouts that use directional or
5
+ * sequential flow arrangements: timeline, relationship,
6
+ * chevron, and bending/snake.
7
+ *
8
+ * These are "visual reflow" layouts used after editing operations to
9
+ * reposition nodes without requiring the full layout engine.
10
+ *
11
+ * @module diagram/edit/reflow-directional
12
+ */
13
+ import type { DiagramShapeView } from '../drawing-view.js';
14
+ import type { DiagramNode } from '../model/node.js';
15
+ import type { DiagramReflowBounds } from './types.js';
16
+ /**
17
+ * Timeline layout reflow: nodes along a horizontal line with
18
+ * alternating above/below placement.
19
+ *
20
+ * @param nodes - Content nodes to lay out.
21
+ * @param bounds - Container bounding box.
22
+ * @returns Array of positioned drawing shapes.
23
+ */
24
+ export declare function reflowTimeline(nodes: DiagramNode[], bounds: DiagramReflowBounds): DiagramShapeView[];
25
+ /**
26
+ * Relationship layout reflow: nodes with bidirectional arrows.
27
+ * For 2 nodes: side-by-side with double-headed arrow.
28
+ * For 3+: arranged in a circle with connectors.
29
+ *
30
+ * @param nodes - Content nodes to lay out.
31
+ * @param bounds - Container bounding box.
32
+ * @returns Array of positioned drawing shapes.
33
+ */
34
+ export declare function reflowRelationship(nodes: DiagramNode[], bounds: DiagramReflowBounds): DiagramShapeView[];
35
+ /**
36
+ * Chevron layout reflow: arrow-shaped nodes flowing horizontally.
37
+ * Each node is a chevron/arrow shape pointing right.
38
+ *
39
+ * @param nodes - Content nodes to lay out.
40
+ * @param bounds - Container bounding box.
41
+ * @returns Array of positioned drawing shapes.
42
+ */
43
+ export declare function reflowChevron(nodes: DiagramNode[], bounds: DiagramReflowBounds): DiagramShapeView[];
44
+ /**
45
+ * Bending / Snake layout reflow: nodes in a serpentine path.
46
+ * Nodes flow left-to-right, then right-to-left on the next row, etc.
47
+ *
48
+ * @param nodes - Content nodes to lay out.
49
+ * @param bounds - Container bounding box.
50
+ * @returns Array of positioned drawing shapes.
51
+ */
52
+ export declare function reflowBending(nodes: DiagramNode[], bounds: DiagramReflowBounds): DiagramShapeView[];
53
+ //# sourceMappingURL=reflow-directional.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"reflow-directional.d.ts","sourceRoot":"","sources":["../../../diagram/edit/reflow-directional.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AACxD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AACjD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAC;AAInD;;;;;;;GAOG;AACH,wBAAgB,cAAc,CAC7B,KAAK,EAAE,WAAW,EAAE,EACpB,MAAM,EAAE,mBAAmB,GACzB,gBAAgB,EAAE,CA4CpB;AAID;;;;;;;;GAQG;AACH,wBAAgB,kBAAkB,CACjC,KAAK,EAAE,WAAW,EAAE,EACpB,MAAM,EAAE,mBAAmB,GACzB,gBAAgB,EAAE,CAmEpB;AAID;;;;;;;GAOG;AACH,wBAAgB,aAAa,CAC5B,KAAK,EAAE,WAAW,EAAE,EACpB,MAAM,EAAE,mBAAmB,GACzB,gBAAgB,EAAE,CAsBpB;AAID;;;;;;;GAOG;AACH,wBAAgB,aAAa,CAC5B,KAAK,EAAE,WAAW,EAAE,EACpB,MAAM,EAAE,mBAAmB,GACzB,gBAAgB,EAAE,CA0EpB"}
@@ -0,0 +1,59 @@
1
+ /**
2
+ * Geometric SmartArt reflow layout implementations.
3
+ *
4
+ * Contains reflow algorithms for layouts that use geometric or spatial
5
+ * arrangements: cycle (circular), matrix (grid), venn (overlapping circles),
6
+ * target (concentric rings), and gear (interlocking gears).
7
+ *
8
+ * These are "visual reflow" layouts used after editing operations to
9
+ * reposition nodes without requiring the full layout engine.
10
+ *
11
+ * @module diagram/edit/reflow-geometric
12
+ */
13
+ import type { DiagramShapeView } from '../drawing-view.js';
14
+ import type { DiagramNode } from '../model/node.js';
15
+ import type { DiagramReflowBounds } from './types.js';
16
+ /**
17
+ * Cycle layout reflow: distribute nodes around a circle.
18
+ *
19
+ * @param nodes - Content nodes to lay out.
20
+ * @param bounds - Container bounding box.
21
+ * @returns Array of positioned drawing shapes.
22
+ */
23
+ export declare function reflowCycle(nodes: DiagramNode[], bounds: DiagramReflowBounds): DiagramShapeView[];
24
+ /**
25
+ * Matrix layout reflow: place nodes in a grid pattern.
26
+ *
27
+ * @param nodes - Content nodes to lay out.
28
+ * @param bounds - Container bounding box.
29
+ * @returns Array of positioned drawing shapes.
30
+ */
31
+ export declare function reflowMatrix(nodes: DiagramNode[], bounds: DiagramReflowBounds): DiagramShapeView[];
32
+ /**
33
+ * Target / Bullseye layout reflow: concentric rings with nodes.
34
+ * Outermost ring is the first node, innermost is the last.
35
+ *
36
+ * @param nodes - Content nodes to lay out.
37
+ * @param bounds - Container bounding box.
38
+ * @returns Array of positioned drawing shapes.
39
+ */
40
+ export declare function reflowTarget(nodes: DiagramNode[], bounds: DiagramReflowBounds): DiagramShapeView[];
41
+ /**
42
+ * Gear layout reflow: interlocking gear shapes in a triangular arrangement.
43
+ * Up to 3 main gears with extra nodes listed to the side.
44
+ *
45
+ * @param nodes - Content nodes to lay out.
46
+ * @param bounds - Container bounding box.
47
+ * @returns Array of positioned drawing shapes.
48
+ */
49
+ export declare function reflowGear(nodes: DiagramNode[], bounds: DiagramReflowBounds): DiagramShapeView[];
50
+ /**
51
+ * Venn layout reflow: overlapping circles for 2-4 nodes,
52
+ * horizontal row for 5+.
53
+ *
54
+ * @param nodes - Content nodes to lay out.
55
+ * @param bounds - Container bounding box.
56
+ * @returns Array of positioned drawing shapes.
57
+ */
58
+ export declare function reflowVenn(nodes: DiagramNode[], bounds: DiagramReflowBounds): DiagramShapeView[];
59
+ //# sourceMappingURL=reflow-geometric.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"reflow-geometric.d.ts","sourceRoot":"","sources":["../../../diagram/edit/reflow-geometric.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AACxD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AACjD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAC;AAInD;;;;;;GAMG;AACH,wBAAgB,WAAW,CAAC,KAAK,EAAE,WAAW,EAAE,EAAE,MAAM,EAAE,mBAAmB,GAAG,gBAAgB,EAAE,CAwBjG;AAID;;;;;;GAMG;AACH,wBAAgB,YAAY,CAC3B,KAAK,EAAE,WAAW,EAAE,EACpB,MAAM,EAAE,mBAAmB,GACzB,gBAAgB,EAAE,CAyBpB;AAID;;;;;;;GAOG;AACH,wBAAgB,YAAY,CAC3B,KAAK,EAAE,WAAW,EAAE,EACpB,MAAM,EAAE,mBAAmB,GACzB,gBAAgB,EAAE,CAuBpB;AAID;;;;;;;GAOG;AACH,wBAAgB,UAAU,CAAC,KAAK,EAAE,WAAW,EAAE,EAAE,MAAM,EAAE,mBAAmB,GAAG,gBAAgB,EAAE,CAmDhG;AAID;;;;;;;GAOG;AACH,wBAAgB,UAAU,CAAC,KAAK,EAAE,WAAW,EAAE,EAAE,MAAM,EAAE,mBAAmB,GAAG,gBAAgB,EAAE,CA0ChG"}
@@ -0,0 +1,32 @@
1
+ /**
2
+ * Stacked SmartArt reflow layout implementations.
3
+ *
4
+ * Contains reflow algorithms for layouts that stack nodes vertically
5
+ * with varying widths: pyramid and funnel.
6
+ *
7
+ * These are "visual reflow" layouts used after editing operations to
8
+ * reposition nodes without requiring the full layout engine.
9
+ *
10
+ * @module diagram/edit/reflow-stacked
11
+ */
12
+ import type { DiagramShapeView } from '../drawing-view.js';
13
+ import type { DiagramNode } from '../model/node.js';
14
+ import type { DiagramReflowBounds } from './types.js';
15
+ /**
16
+ * Pyramid layout reflow: stacked bands from narrow (top) to wide (bottom).
17
+ *
18
+ * @param nodes - Content nodes to lay out.
19
+ * @param bounds - Container bounding box.
20
+ * @returns Array of positioned drawing shapes.
21
+ */
22
+ export declare function reflowPyramid(nodes: DiagramNode[], bounds: DiagramReflowBounds): DiagramShapeView[];
23
+ /**
24
+ * Funnel layout reflow: nodes stacked vertically with decreasing width
25
+ * (widest at top, narrowest at bottom).
26
+ *
27
+ * @param nodes - Content nodes to lay out.
28
+ * @param bounds - Container bounding box.
29
+ * @returns Array of positioned drawing shapes.
30
+ */
31
+ export declare function reflowFunnel(nodes: DiagramNode[], bounds: DiagramReflowBounds): DiagramShapeView[];
32
+ //# sourceMappingURL=reflow-stacked.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"reflow-stacked.d.ts","sourceRoot":"","sources":["../../../diagram/edit/reflow-stacked.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AACxD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AACjD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAC;AAInD;;;;;;GAMG;AACH,wBAAgB,aAAa,CAC5B,KAAK,EAAE,WAAW,EAAE,EACpB,MAAM,EAAE,mBAAmB,GACzB,gBAAgB,EAAE,CAyBpB;AAID;;;;;;;GAOG;AACH,wBAAgB,YAAY,CAC3B,KAAK,EAAE,WAAW,EAAE,EACpB,MAAM,EAAE,mBAAmB,GACzB,gBAAgB,EAAE,CAyBpB"}
@@ -0,0 +1,48 @@
1
+ /**
2
+ * SmartArt layout reflow dispatcher and basic layout implementations.
3
+ *
4
+ * Contains the main `reflowDiagramLayout` entry point which dispatches to
5
+ * the appropriate layout algorithm, plus the simpler layout implementations
6
+ * (list, process, hierarchy).
7
+ *
8
+ * @module diagram/edit/reflow
9
+ */
10
+ import type { DiagramShapeView } from '../drawing-view.js';
11
+ import type { DiagramData } from '../model/data.js';
12
+ import type { DiagramNode } from '../model/node.js';
13
+ import type { DiagramReflowBounds } from './types.js';
14
+ /** The nodes that carry text: the content a reflow lays out (root `doc` points have none). */
15
+ export declare function diagramContentNodes<N extends DiagramNode>(nodes: N[]): N[];
16
+ /**
17
+ * Position data for a single node produced by the reflow engine.
18
+ */
19
+ export interface ReflowedNodePosition {
20
+ /** Unique identifier of the SmartArt node. */
21
+ nodeId: string;
22
+ /** Horizontal position in pixels. */
23
+ x: number;
24
+ /** Vertical position in pixels. */
25
+ y: number;
26
+ /** Width of the node in pixels. */
27
+ width: number;
28
+ /** Height of the node in pixels. */
29
+ height: number;
30
+ }
31
+ /**
32
+ * Recalculate positions for all SmartArt nodes based on the current
33
+ * layout type and node structure.
34
+ *
35
+ * This function computes visually reasonable positions for the 5 most
36
+ * common layout types. It does not aim for pixel-perfect PowerPoint
37
+ * fidelity, but produces clean, well-spaced layouts.
38
+ *
39
+ * Returns an array of `DiagramShapeView` entries that can be
40
+ * set on `data.drawingShapes` to update the visual layout, or returns
41
+ * `undefined` if the layout type is not supported for reflow.
42
+ *
43
+ * @param data - SmartArt data model with nodes, connections, and layout type.
44
+ * @param bounds - Container bounding box on the slide.
45
+ * @returns Array of positioned drawing shapes, or undefined.
46
+ */
47
+ export declare function reflowDiagramLayout(data: Pick<DiagramData, 'nodes' | 'resolvedLayoutType' | 'layoutType'>, bounds: DiagramReflowBounds): DiagramShapeView[] | undefined;
48
+ //# sourceMappingURL=reflow.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"reflow.d.ts","sourceRoot":"","sources":["../../../diagram/edit/reflow.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AAExD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AACjD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAiBjD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAC;AAEnD,8FAA8F;AAC9F,wBAAgB,mBAAmB,CAAC,CAAC,SAAS,WAAW,EAAE,KAAK,EAAE,CAAC,EAAE,GAAG,CAAC,EAAE,CAE1E;AAID;;GAEG;AACH,MAAM,WAAW,oBAAoB;IACpC,8CAA8C;IAC9C,MAAM,EAAE,MAAM,CAAC;IACf,qCAAqC;IACrC,CAAC,EAAE,MAAM,CAAC;IACV,mCAAmC;IACnC,CAAC,EAAE,MAAM,CAAC;IACV,mCAAmC;IACnC,KAAK,EAAE,MAAM,CAAC;IACd,oCAAoC;IACpC,MAAM,EAAE,MAAM,CAAC;CACf;AAID;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,mBAAmB,CAClC,IAAI,EAAE,IAAI,CAAC,WAAW,EAAE,OAAO,GAAG,oBAAoB,GAAG,YAAY,CAAC,EACtE,MAAM,EAAE,mBAAmB,GACzB,gBAAgB,EAAE,GAAG,SAAS,CA0ChC"}
@@ -0,0 +1,34 @@
1
+ /**
2
+ * Drawing-shape bookkeeping shared by the SmartArt node operations: which
3
+ * shape shows a node, and how an edit marks the shapes stale. Moved from
4
+ * `pptx/core/utils/smartart-editing-node-ops.ts` and
5
+ * `smartart-editing-node-style.ts`, which each kept a copy of the matcher.
6
+ *
7
+ * @module diagram/edit/shape-match
8
+ */
9
+ import type { DiagramNode } from '../model/node.js';
10
+ import type { DiagramEditShape } from './types.js';
11
+ /**
12
+ * Mark drawing shapes as stale after a structural node edit.
13
+ *
14
+ * - If the element previously had drawing shapes (from file load or a prior
15
+ * reflow), returns an empty array `[]` to signal that a rebuild is needed.
16
+ * - If the element never had drawing shapes (`undefined`), returns `undefined`
17
+ * so the family renderer continues handling display without triggering
18
+ * a lossy reflow (e.g. polygon-to-chevron downgrade for pyramid layouts).
19
+ */
20
+ export declare function markDiagramShapesStale<S>(shapes: S[] | undefined): S[] | undefined;
21
+ /**
22
+ * Find the drawing shape index that corresponds to a given node ID: a reflow
23
+ * shape's id suffix, else a 1:1 positional mapping when the counts align, else
24
+ * a unique non-empty text match. `-1` when none resolves (PowerPoint-generated
25
+ * shapes with opaque ids).
26
+ */
27
+ export declare function findDiagramShapeIndex(shapes: readonly DiagramEditShape[], nodes: readonly DiagramNode[], nodeId: string): number;
28
+ /**
29
+ * Replace the shape that shows `nodeId` with `patch(shape)` (immutable copy).
30
+ * Shapes that are absent or empty are returned unchanged; an unresolvable
31
+ * match returns `[]` so a full rebuild picks the change up.
32
+ */
33
+ export declare function patchDiagramShape<S extends DiagramEditShape>(shapes: S[] | undefined, nodes: readonly DiagramNode[], nodeId: string, patch: (shape: S) => S): S[] | undefined;
34
+ //# sourceMappingURL=shape-match.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"shape-match.d.ts","sourceRoot":"","sources":["../../../diagram/edit/shape-match.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AACjD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAEhD;;;;;;;;GAQG;AACH,wBAAgB,sBAAsB,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,GAAG,SAAS,GAAG,CAAC,EAAE,GAAG,SAAS,CAElF;AAED;;;;;GAKG;AACH,wBAAgB,qBAAqB,CACpC,MAAM,EAAE,SAAS,gBAAgB,EAAE,EACnC,KAAK,EAAE,SAAS,WAAW,EAAE,EAC7B,MAAM,EAAE,MAAM,GACZ,MAAM,CA8BR;AAED;;;;GAIG;AACH,wBAAgB,iBAAiB,CAAC,CAAC,SAAS,gBAAgB,EAC3D,MAAM,EAAE,CAAC,EAAE,GAAG,SAAS,EACvB,KAAK,EAAE,SAAS,WAAW,EAAE,EAC7B,MAAM,EAAE,MAAM,EACd,KAAK,EAAE,CAAC,KAAK,EAAE,CAAC,KAAK,CAAC,GACpB,CAAC,EAAE,GAAG,SAAS,CAWjB"}
@@ -0,0 +1,31 @@
1
+ import type { DiagramConnection } from '../types.js';
2
+ import type { DiagramNode } from '../model/node.js';
3
+ /** A drawing shape as the node operations see it: the id they match and the text they patch. */
4
+ export interface DiagramEditShape {
5
+ id: string;
6
+ text?: string | undefined;
7
+ }
8
+ /** The parts of a parsed SmartArt graphic the node operations read and replace. */
9
+ export interface DiagramEditableData<N extends DiagramNode = DiagramNode, S extends DiagramEditShape = DiagramEditShape> {
10
+ nodes: N[];
11
+ connections?: DiagramConnection[] | undefined;
12
+ /** Cached or reflowed drawing shapes; `[]` after an edit marks them stale. */
13
+ drawingShapes?: S[] | undefined;
14
+ /** Save hint: the cached drawing no longer matches the data model. */
15
+ drawingDirty?: boolean | undefined;
16
+ }
17
+ export interface DiagramEditOptions {
18
+ /**
19
+ * Mints the `modelId` of a new point. Defaults to a braced upper-case GUID, the form PowerPoint
20
+ * requires (`{XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX}`); PowerPoint rejects other ids as corrupt.
21
+ */
22
+ createModelId?: () => string;
23
+ }
24
+ /** The rectangle a reflow lays shapes out in, in the host's units (pixels for pptx). */
25
+ export interface DiagramReflowBounds {
26
+ x: number;
27
+ y: number;
28
+ width: number;
29
+ height: number;
30
+ }
31
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../diagram/edit/types.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAC;AAClD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAEjD,gGAAgG;AAChG,MAAM,WAAW,gBAAgB;IAChC,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC1B;AAED,mFAAmF;AACnF,MAAM,WAAW,mBAAmB,CACnC,CAAC,SAAS,WAAW,GAAG,WAAW,EACnC,CAAC,SAAS,gBAAgB,GAAG,gBAAgB;IAE7C,KAAK,EAAE,CAAC,EAAE,CAAC;IACX,WAAW,CAAC,EAAE,iBAAiB,EAAE,GAAG,SAAS,CAAC;IAC9C,8EAA8E;IAC9E,aAAa,CAAC,EAAE,CAAC,EAAE,GAAG,SAAS,CAAC;IAChC,sEAAsE;IACtE,YAAY,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;CACnC;AAED,MAAM,WAAW,kBAAkB;IAClC;;;OAGG;IACH,aAAa,CAAC,EAAE,MAAM,MAAM,CAAC;CAC7B;AAED,wFAAwF;AACxF,MAAM,WAAW,mBAAmB;IACnC,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;IACV,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;CACf"}