ooxml-core 1.24.3 → 1.25.1

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 (446) hide show
  1. package/dist/PptxHandler-5UO5DD5K.mjs +4 -0
  2. package/dist/{PptxHandler-WQPEYOSS.mjs → PptxHandler-AUK27AQD.mjs} +3 -3
  3. package/dist/{PptxHandler-2YPMMGOJ.cjs → PptxHandler-QBGEZDCO.cjs} +3 -3
  4. package/dist/{PresentationBuilder-F5U4KEGH.cjs → PresentationBuilder-CI45KEHL.cjs} +5 -5
  5. package/dist/{PresentationBuilder-FGWHIJV7.mjs → PresentationBuilder-MEETJGEA.mjs} +3 -3
  6. package/dist/{PresentationBuilder-PS5S52M3.mjs → PresentationBuilder-RX7D75GZ.mjs} +2 -2
  7. package/dist/automation/index.cjs +10188 -6069
  8. package/dist/automation/index.mjs +10188 -6069
  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-K2XWOVLV.mjs → chunk-5F7OB7PA.mjs} +4075 -1949
  126. package/dist/{chunk-2AFO3HNI.mjs → chunk-635WPRNJ.mjs} +2235 -2095
  127. package/dist/{chunk-O6ISWI34.mjs → chunk-6DHZZD5R.mjs} +1102 -1024
  128. package/dist/{chunk-GBKBR4CX.mjs → chunk-E2PYQQQV.mjs} +1 -1
  129. package/dist/{chunk-4IFENOU7.mjs → chunk-E3PRAHL6.mjs} +1 -1
  130. package/dist/{chunk-5SE4FGS4.cjs → chunk-GMETZZ3V.cjs} +4989 -2863
  131. package/dist/{chunk-HKCSJAQD.mjs → chunk-HVRFRYYS.mjs} +5 -5
  132. package/dist/{chunk-QCZX6K67.cjs → chunk-S5TGOEQX.cjs} +1107 -1028
  133. package/dist/{chunk-RF2YPEKI.mjs → chunk-TX2QFS3J.mjs} +3976 -1833
  134. package/dist/{chunk-OJWKGDJF.mjs → chunk-VGDHSED6.mjs} +1 -1
  135. package/dist/diagram/approximate.d.ts +19 -0
  136. package/dist/diagram/approximate.d.ts.map +1 -0
  137. package/dist/diagram/builtin/catalog.d.ts +3 -0
  138. package/dist/diagram/builtin/catalog.d.ts.map +1 -0
  139. package/dist/diagram/builtin/data.d.ts +3 -0
  140. package/dist/diagram/builtin/data.d.ts.map +1 -0
  141. package/dist/diagram/builtin/definitions.d.ts +7 -0
  142. package/dist/diagram/builtin/definitions.d.ts.map +1 -0
  143. package/dist/diagram/builtin/index.cjs +1348 -0
  144. package/dist/diagram/builtin/index.d.ts +3 -0
  145. package/dist/diagram/builtin/index.d.ts.map +1 -0
  146. package/dist/diagram/builtin/index.mjs +1337 -0
  147. package/dist/diagram/builtin/layouts.d.ts +15 -0
  148. package/dist/diagram/builtin/layouts.d.ts.map +1 -0
  149. package/dist/diagram/builtin/types.d.ts +13 -0
  150. package/dist/diagram/builtin/types.d.ts.map +1 -0
  151. package/dist/diagram/catalogue.d.ts +51 -0
  152. package/dist/diagram/catalogue.d.ts.map +1 -0
  153. package/dist/diagram/data-model.d.ts.map +1 -1
  154. package/dist/diagram/drawing-from-views.d.ts +11 -0
  155. package/dist/diagram/drawing-from-views.d.ts.map +1 -0
  156. package/dist/diagram/drawing-resolve.d.ts +34 -0
  157. package/dist/diagram/drawing-resolve.d.ts.map +1 -0
  158. package/dist/diagram/drawing-view.d.ts +104 -0
  159. package/dist/diagram/drawing-view.d.ts.map +1 -0
  160. package/dist/diagram/drawing.d.ts.map +1 -1
  161. package/dist/diagram/edit/design-commands.d.ts +27 -0
  162. package/dist/diagram/edit/design-commands.d.ts.map +1 -0
  163. package/dist/diagram/edit/index.d.ts +15 -0
  164. package/dist/diagram/edit/index.d.ts.map +1 -0
  165. package/dist/diagram/edit/node-edit.d.ts +66 -0
  166. package/dist/diagram/edit/node-edit.d.ts.map +1 -0
  167. package/dist/diagram/edit/node-ops.d.ts +71 -0
  168. package/dist/diagram/edit/node-ops.d.ts.map +1 -0
  169. package/dist/diagram/edit/node-order.d.ts +28 -0
  170. package/dist/diagram/edit/node-order.d.ts.map +1 -0
  171. package/dist/diagram/edit/node-style.d.ts +42 -0
  172. package/dist/diagram/edit/node-style.d.ts.map +1 -0
  173. package/dist/diagram/edit/node-tree.d.ts +10 -0
  174. package/dist/diagram/edit/node-tree.d.ts.map +1 -0
  175. package/dist/diagram/edit/outline.d.ts +11 -0
  176. package/dist/diagram/edit/outline.d.ts.map +1 -0
  177. package/dist/diagram/edit/reflow-category.d.ts +18 -0
  178. package/dist/diagram/edit/reflow-category.d.ts.map +1 -0
  179. package/dist/diagram/edit/reflow-directional.d.ts +53 -0
  180. package/dist/diagram/edit/reflow-directional.d.ts.map +1 -0
  181. package/dist/diagram/edit/reflow-geometric.d.ts +59 -0
  182. package/dist/diagram/edit/reflow-geometric.d.ts.map +1 -0
  183. package/dist/diagram/edit/reflow-stacked.d.ts +32 -0
  184. package/dist/diagram/edit/reflow-stacked.d.ts.map +1 -0
  185. package/dist/diagram/edit/reflow.d.ts +48 -0
  186. package/dist/diagram/edit/reflow.d.ts.map +1 -0
  187. package/dist/diagram/edit/shape-match.d.ts +34 -0
  188. package/dist/diagram/edit/shape-match.d.ts.map +1 -0
  189. package/dist/diagram/edit/types.d.ts +31 -0
  190. package/dist/diagram/edit/types.d.ts.map +1 -0
  191. package/dist/diagram/index.cjs +3934 -910
  192. package/dist/diagram/index.d.ts +9 -0
  193. package/dist/diagram/index.d.ts.map +1 -1
  194. package/dist/diagram/index.mjs +3860 -912
  195. package/dist/diagram/model/node.d.ts +10 -0
  196. package/dist/diagram/model/node.d.ts.map +1 -1
  197. package/dist/diagram/relationships.d.ts +8 -0
  198. package/dist/diagram/relationships.d.ts.map +1 -1
  199. package/dist/diagram/strings/de.d.ts +3 -0
  200. package/dist/diagram/strings/de.d.ts.map +1 -0
  201. package/dist/diagram/strings/en.d.ts +74 -0
  202. package/dist/diagram/strings/en.d.ts.map +1 -0
  203. package/dist/diagram/strings/es.d.ts +3 -0
  204. package/dist/diagram/strings/es.d.ts.map +1 -0
  205. package/dist/diagram/strings/fr.d.ts +3 -0
  206. package/dist/diagram/strings/fr.d.ts.map +1 -0
  207. package/dist/diagram/strings/index.d.ts +11 -0
  208. package/dist/diagram/strings/index.d.ts.map +1 -0
  209. package/dist/diagram/strings/zh-CN.d.ts +3 -0
  210. package/dist/diagram/strings/zh-CN.d.ts.map +1 -0
  211. package/dist/diagram/text/index.d.ts +5 -0
  212. package/dist/diagram/text/index.d.ts.map +1 -0
  213. package/dist/diagram/text/node-text-neutral.d.ts +29 -0
  214. package/dist/diagram/text/node-text-neutral.d.ts.map +1 -0
  215. package/dist/diagram/text/node-text-paragraphs.d.ts +6 -0
  216. package/dist/diagram/text/node-text-paragraphs.d.ts.map +1 -0
  217. package/dist/diagram/text/node-text-projection.d.ts +48 -0
  218. package/dist/diagram/text/node-text-projection.d.ts.map +1 -0
  219. package/dist/diagram/text/node-text-reconciliation.d.ts +4 -0
  220. package/dist/diagram/text/node-text-reconciliation.d.ts.map +1 -0
  221. package/dist/diagram/types.d.ts +12 -0
  222. package/dist/diagram/types.d.ts.map +1 -1
  223. package/dist/diagram/write/data-edit.d.ts +30 -0
  224. package/dist/diagram/write/data-edit.d.ts.map +1 -0
  225. package/dist/diagram/write/data.d.ts +62 -0
  226. package/dist/diagram/write/data.d.ts.map +1 -0
  227. package/dist/diagram/write/index.d.ts +4 -0
  228. package/dist/diagram/write/index.d.ts.map +1 -0
  229. package/dist/diagram/write/inserted.d.ts +14 -0
  230. package/dist/diagram/write/inserted.d.ts.map +1 -0
  231. package/dist/docx/chart-edit.d.ts +33 -0
  232. package/dist/docx/chart-edit.d.ts.map +1 -0
  233. package/dist/docx/chart-save.d.ts +14 -0
  234. package/dist/docx/chart-save.d.ts.map +1 -0
  235. package/dist/docx/chart.d.ts +5 -3
  236. package/dist/docx/chart.d.ts.map +1 -1
  237. package/dist/docx/diagram-edit.d.ts +50 -0
  238. package/dist/docx/diagram-edit.d.ts.map +1 -0
  239. package/dist/docx/diagram-nodes.d.ts +2 -0
  240. package/dist/docx/diagram-nodes.d.ts.map +1 -0
  241. package/dist/docx/diagram-save.d.ts +12 -0
  242. package/dist/docx/diagram-save.d.ts.map +1 -0
  243. package/dist/docx/diagram.d.ts +17 -9
  244. package/dist/docx/diagram.d.ts.map +1 -1
  245. package/dist/docx/embedded.cjs +5741 -2973
  246. package/dist/docx/embedded.mjs +5741 -2973
  247. package/dist/docx/index.cjs +10098 -6118
  248. package/dist/docx/index.d.ts +4 -1
  249. package/dist/docx/index.d.ts.map +1 -1
  250. package/dist/docx/index.mjs +10084 -6119
  251. package/dist/docx/load/index.cjs +5840 -3072
  252. package/dist/docx/load/index.mjs +5840 -3072
  253. package/dist/docx/parse.d.ts.map +1 -1
  254. package/dist/docx/part-relationships.d.ts.map +1 -1
  255. package/dist/docx/relationship-allocator.d.ts +19 -0
  256. package/dist/docx/relationship-allocator.d.ts.map +1 -1
  257. package/dist/docx/save.d.ts.map +1 -1
  258. package/dist/docx/ui/chart-commands.d.ts +19 -0
  259. package/dist/docx/ui/chart-commands.d.ts.map +1 -0
  260. package/dist/docx/ui/index.cjs +1482 -655
  261. package/dist/docx/ui/index.d.ts +2 -0
  262. package/dist/docx/ui/index.d.ts.map +1 -1
  263. package/dist/docx/ui/index.mjs +1479 -656
  264. package/dist/docx/ui/ribbon-action-ids.d.ts +1 -1
  265. package/dist/docx/ui/ribbon-action-ids.d.ts.map +1 -1
  266. package/dist/docx/ui/smartart-approximate.d.ts +5 -0
  267. package/dist/docx/ui/smartart-approximate.d.ts.map +1 -0
  268. package/dist/docx/write-chart-drawing.d.ts +12 -0
  269. package/dist/docx/write-chart-drawing.d.ts.map +1 -0
  270. package/dist/docx/write-diagram-drawing.d.ts +13 -0
  271. package/dist/docx/write-diagram-drawing.d.ts.map +1 -0
  272. package/dist/docx/write-drawing-patch.d.ts +8 -0
  273. package/dist/docx/write-drawing-patch.d.ts.map +1 -0
  274. package/dist/docx/write-drawing.d.ts.map +1 -1
  275. package/dist/drawingml/index.cjs +863 -0
  276. package/dist/drawingml/index.d.ts +7 -0
  277. package/dist/drawingml/index.d.ts.map +1 -1
  278. package/dist/drawingml/index.mjs +840 -1
  279. package/dist/drawingml/read-paragraph-properties.d.ts +8 -0
  280. package/dist/drawingml/read-paragraph-properties.d.ts.map +1 -0
  281. package/dist/drawingml/read-run-properties.d.ts +15 -0
  282. package/dist/drawingml/read-run-properties.d.ts.map +1 -0
  283. package/dist/drawingml/read-text-body.d.ts +13 -0
  284. package/dist/drawingml/read-text-body.d.ts.map +1 -0
  285. package/dist/drawingml/text-model.d.ts +210 -0
  286. package/dist/drawingml/text-model.d.ts.map +1 -0
  287. package/dist/drawingml/write-paragraph-properties.d.ts +12 -0
  288. package/dist/drawingml/write-paragraph-properties.d.ts.map +1 -0
  289. package/dist/drawingml/write-run-properties.d.ts +11 -0
  290. package/dist/drawingml/write-run-properties.d.ts.map +1 -0
  291. package/dist/drawingml/write-text-body.d.ts +18 -0
  292. package/dist/drawingml/write-text-body.d.ts.map +1 -0
  293. package/dist/drawingml/write-text-xml.d.ts +26 -0
  294. package/dist/drawingml/write-text-xml.d.ts.map +1 -0
  295. package/dist/index.cjs +10078 -2908
  296. package/dist/index.mjs +10078 -2908
  297. package/dist/opc/index.cjs +10 -0
  298. package/dist/opc/index.mjs +10 -1
  299. package/dist/opc/package.d.ts +5 -0
  300. package/dist/opc/package.d.ts.map +1 -1
  301. package/dist/pptx/automation/index.cjs +6845 -3885
  302. package/dist/pptx/automation/index.d.ts +5 -5
  303. package/dist/pptx/automation/index.mjs +6 -6
  304. package/dist/pptx/chunks/{elements-iUzpAeqR.d.ts → elements-DhW764aK.d.ts} +23 -14
  305. package/dist/pptx/chunks/elements-DhW764aK.d.ts.map +1 -0
  306. package/dist/pptx/chunks/{index-C3xhAMSa.d.ts → index-CX0RM1fF.d.ts} +4 -4
  307. package/dist/pptx/chunks/{index-C3xhAMSa.d.ts.map → index-CX0RM1fF.d.ts.map} +1 -1
  308. package/dist/pptx/chunks/{index-nKQ4s7FA.d.ts → index-CgjEEpfK.d.ts} +18 -9
  309. package/dist/pptx/chunks/index-CgjEEpfK.d.ts.map +1 -0
  310. package/dist/pptx/chunks/{index-4FmgJajb.d.ts → index-DCbp5fOs.d.ts} +100 -95
  311. package/dist/pptx/chunks/index-DCbp5fOs.d.ts.map +1 -0
  312. package/dist/pptx/chunks/{smart-art-ENMMEbmW.d.ts → smart-art-BEEl0l8X.d.ts} +514 -306
  313. package/dist/pptx/chunks/smart-art-BEEl0l8X.d.ts.map +1 -0
  314. package/dist/pptx/chunks/{text-operations-CfLVZ7DK.d.ts → text-operations-CjalmJIi.d.ts} +2 -2
  315. package/dist/pptx/chunks/{text-operations-CfLVZ7DK.d.ts.map → text-operations-CjalmJIi.d.ts.map} +1 -1
  316. package/dist/pptx/cli/index.cjs +6330 -3372
  317. package/dist/pptx/cli/index.d.ts +1 -1
  318. package/dist/pptx/cli/index.mjs +5 -5
  319. package/dist/pptx/converter/index.cjs +107 -75
  320. package/dist/pptx/converter/index.d.ts +1 -1
  321. package/dist/pptx/converter/index.mjs +3 -3
  322. package/dist/pptx/editor/render/editor-history.cjs +3 -1
  323. package/dist/pptx/editor/render/editor-history.d.ts +9 -1
  324. package/dist/pptx/editor/render/editor-history.d.ts.map +1 -1
  325. package/dist/pptx/editor/render/editor-history.mjs +3 -2
  326. package/dist/pptx/editor/render/find-replace.cjs +14 -14
  327. package/dist/pptx/editor/render/find-replace.d.ts +2 -2
  328. package/dist/pptx/editor/render/find-replace.mjs +1 -1
  329. package/dist/pptx/editor/render/slide-operations.cjs +8 -8
  330. package/dist/pptx/editor/render/slide-operations.mjs +2 -2
  331. package/dist/pptx/editor/render/text-runs-style-patch.d.ts +1 -1
  332. package/dist/pptx/editor/render/text-style-scope.d.ts +1 -1
  333. package/dist/pptx/index.cjs +7750 -4725
  334. package/dist/pptx/index.d.ts +7 -7
  335. package/dist/pptx/index.mjs +6 -6
  336. package/dist/pptx/node/index.d.ts +1 -1
  337. package/dist/pptx/signature-node/index.mjs +2 -2
  338. package/dist/pptx/smartart-layouts/index.cjs +26 -23
  339. package/dist/pptx/smartart-layouts/index.d.ts +7 -5
  340. package/dist/pptx/smartart-layouts/index.d.ts.map +1 -1
  341. package/dist/pptx/smartart-layouts/index.mjs +26 -23
  342. package/dist/teams/index.cjs +20165 -18388
  343. package/dist/teams/index.mjs +20165 -18388
  344. package/dist/text/index.cjs +106 -0
  345. package/dist/text/index.d.ts +2 -0
  346. package/dist/text/index.d.ts.map +1 -1
  347. package/dist/text/index.mjs +103 -1
  348. package/dist/text/locale-number.d.ts +15 -0
  349. package/dist/text/locale-number.d.ts.map +1 -0
  350. package/dist/text/tsv.d.ts +8 -0
  351. package/dist/text/tsv.d.ts.map +1 -0
  352. package/dist/visio/index.cjs +3574 -1953
  353. package/dist/visio/index.mjs +3574 -1953
  354. package/dist/visio/ui/index.cjs +3562 -1941
  355. package/dist/visio/ui/index.mjs +3562 -1941
  356. package/dist/xlsx/edit/chart-colors.d.ts +2 -2
  357. package/dist/xlsx/edit/chart-colors.d.ts.map +1 -1
  358. package/dist/xlsx/edit/chart-design.d.ts +11 -0
  359. package/dist/xlsx/edit/chart-design.d.ts.map +1 -0
  360. package/dist/xlsx/edit/chart-element-fill.d.ts.map +1 -1
  361. package/dist/xlsx/edit/chart-series-fill.d.ts.map +1 -1
  362. package/dist/xlsx/edit/chart-series-gradient.d.ts +6 -34
  363. package/dist/xlsx/edit/chart-series-gradient.d.ts.map +1 -1
  364. package/dist/xlsx/edit/chart-series-transparency.d.ts.map +1 -1
  365. package/dist/xlsx/edit/chart-space-patch.d.ts +13 -0
  366. package/dist/xlsx/edit/chart-space-patch.d.ts.map +1 -0
  367. package/dist/xlsx/edit/chart-space-series.d.ts +14 -0
  368. package/dist/xlsx/edit/chart-space-series.d.ts.map +1 -0
  369. package/dist/xlsx/edit/charts.d.ts +22 -6
  370. package/dist/xlsx/edit/charts.d.ts.map +1 -1
  371. package/dist/xlsx/edit/clipboard-text.d.ts +2 -7
  372. package/dist/xlsx/edit/clipboard-text.d.ts.map +1 -1
  373. package/dist/xlsx/edit/context.d.ts +3 -1
  374. package/dist/xlsx/edit/context.d.ts.map +1 -1
  375. package/dist/xlsx/edit/drawings.d.ts.map +1 -1
  376. package/dist/xlsx/edit/index.d.ts +3 -1
  377. package/dist/xlsx/edit/index.d.ts.map +1 -1
  378. package/dist/xlsx/edit/session.d.ts.map +1 -1
  379. package/dist/xlsx/edit/shift-formulas.d.ts.map +1 -1
  380. package/dist/xlsx/edit/smart-art.d.ts +32 -0
  381. package/dist/xlsx/edit/smart-art.d.ts.map +1 -0
  382. package/dist/xlsx/edit/types.d.ts +12 -1
  383. package/dist/xlsx/edit/types.d.ts.map +1 -1
  384. package/dist/xlsx/embedded-chart-space.d.ts +19 -0
  385. package/dist/xlsx/embedded-chart-space.d.ts.map +1 -0
  386. package/dist/xlsx/index.cjs +6464 -3108
  387. package/dist/xlsx/index.d.ts +1 -0
  388. package/dist/xlsx/index.d.ts.map +1 -1
  389. package/dist/xlsx/index.mjs +6458 -3109
  390. package/dist/xlsx/load/index.cjs +5732 -3843
  391. package/dist/xlsx/load/index.mjs +5732 -3843
  392. package/dist/xlsx/model.d.ts +71 -15
  393. package/dist/xlsx/model.d.ts.map +1 -1
  394. package/dist/xlsx/read/chart.d.ts +10 -0
  395. package/dist/xlsx/read/chart.d.ts.map +1 -1
  396. package/dist/xlsx/read/drawing.d.ts.map +1 -1
  397. package/dist/xlsx/read/smart-art.d.ts.map +1 -1
  398. package/dist/xlsx/smart-art-notices.d.ts +6 -0
  399. package/dist/xlsx/smart-art-notices.d.ts.map +1 -0
  400. package/dist/xlsx/ui/commands/contextual.d.ts +6 -1
  401. package/dist/xlsx/ui/commands/contextual.d.ts.map +1 -1
  402. package/dist/xlsx/ui/commands/i18n/chart-series.d.ts.map +1 -1
  403. package/dist/xlsx/ui/commands/i18n/core-features.d.ts.map +1 -1
  404. package/dist/xlsx/ui/commands/i18n/index.d.ts.map +1 -1
  405. package/dist/xlsx/ui/commands/i18n/ribbon-tabs.d.ts.map +1 -1
  406. package/dist/xlsx/ui/commands/i18n/smartart.d.ts +3 -0
  407. package/dist/xlsx/ui/commands/i18n/smartart.d.ts.map +1 -0
  408. package/dist/xlsx/ui/commands/icons.d.ts.map +1 -1
  409. package/dist/xlsx/ui/index.cjs +6671 -2910
  410. package/dist/xlsx/ui/index.mjs +6670 -2910
  411. package/dist/xlsx/ui/locales/de/index.d.ts.map +1 -1
  412. package/dist/xlsx/ui/locales/de/smartart.d.ts +2 -0
  413. package/dist/xlsx/ui/locales/de/smartart.d.ts.map +1 -0
  414. package/dist/xlsx/ui/locales/en/index.d.ts.map +1 -1
  415. package/dist/xlsx/ui/locales/en/smartart.d.ts +2 -0
  416. package/dist/xlsx/ui/locales/en/smartart.d.ts.map +1 -0
  417. package/dist/xlsx/ui/locales/es/index.d.ts.map +1 -1
  418. package/dist/xlsx/ui/locales/es/smartart.d.ts +2 -0
  419. package/dist/xlsx/ui/locales/es/smartart.d.ts.map +1 -0
  420. package/dist/xlsx/ui/locales/fr/index.d.ts.map +1 -1
  421. package/dist/xlsx/ui/locales/fr/smartart.d.ts +2 -0
  422. package/dist/xlsx/ui/locales/fr/smartart.d.ts.map +1 -0
  423. package/dist/xlsx/ui/locales/zh-CN/index.d.ts.map +1 -1
  424. package/dist/xlsx/ui/locales/zh-CN/smartart.d.ts +2 -0
  425. package/dist/xlsx/ui/locales/zh-CN/smartart.d.ts.map +1 -0
  426. package/dist/xlsx/write/chart-cache.d.ts.map +1 -1
  427. package/dist/xlsx/write/chart-colors.d.ts +1 -8
  428. package/dist/xlsx/write/chart-colors.d.ts.map +1 -1
  429. package/dist/xlsx/write/chart-space.d.ts +8 -0
  430. package/dist/xlsx/write/chart-space.d.ts.map +1 -1
  431. package/dist/xlsx/write/chart-title.d.ts +2 -2
  432. package/dist/xlsx/write/chart-title.d.ts.map +1 -1
  433. package/dist/xlsx/write/chart.d.ts +4 -3
  434. package/dist/xlsx/write/chart.d.ts.map +1 -1
  435. package/dist/xlsx/write/drawing.d.ts +10 -3
  436. package/dist/xlsx/write/drawing.d.ts.map +1 -1
  437. package/dist/xlsx/write/smart-art.d.ts +17 -0
  438. package/dist/xlsx/write/smart-art.d.ts.map +1 -0
  439. package/package.json +6 -1
  440. package/dist/PptxHandler-VXK5EY7J.mjs +0 -4
  441. package/dist/pptx/chunks/elements-iUzpAeqR.d.ts.map +0 -1
  442. package/dist/pptx/chunks/index-4FmgJajb.d.ts.map +0 -1
  443. package/dist/pptx/chunks/index-nKQ4s7FA.d.ts.map +0 -1
  444. package/dist/pptx/chunks/smart-art-ENMMEbmW.d.ts.map +0 -1
  445. package/dist/xlsx/write/chart-patch.d.ts +0 -9
  446. package/dist/xlsx/write/chart-patch.d.ts.map +0 -1
@@ -0,0 +1,86 @@
1
+ /**
2
+ * The chart data sheet: the categories x series table behind every product's "Edit Data" view
3
+ * (PowerPoint and Word open it for an embedded chart, Excel edits the cells themselves). This is
4
+ * the format-neutral model of that table and the edits a person can make to it; a product maps
5
+ * the edits onto its own chart model (pptx: `applyChartDataSheetEdits` in the pptx area), so
6
+ * formatting that lives on a series or a point is kept by the product, not rebuilt from here.
7
+ *
8
+ * Grid coordinates used by the sheet UI: row 0 is the header row (series names), column 0 the
9
+ * category column; row `r >= 1` is category `r - 1` and column `c >= 1` is series `c - 1`.
10
+ *
11
+ * @module chart/data-sheet
12
+ */
13
+ /**
14
+ * One value of a series: a number, or `null` for a blank cell (written as a missing cached point).
15
+ * The one series-values shape of the chart core: the data sheet holds it and the `chart/edit`
16
+ * series operations (`setChartSeriesValues`, `addChartSeries`...) take it.
17
+ */
18
+ export type ChartSeriesValue = number | null;
19
+ /** One series column: its name and one value per category (`null` for a blank cell). */
20
+ export interface ChartDataSheetSeries {
21
+ name: string;
22
+ values: readonly ChartSeriesValue[];
23
+ }
24
+ /** The neutral chart data shape: category labels down the rows, series across the columns. */
25
+ export interface ChartDataSheet {
26
+ categories: readonly string[];
27
+ series: readonly ChartDataSheetSeries[];
28
+ }
29
+ /** One edit of the sheet. A product applies these in order to its own chart model. */
30
+ export type ChartDataSheetEdit = {
31
+ kind: 'value';
32
+ series: number;
33
+ category: number;
34
+ value: number;
35
+ } | {
36
+ kind: 'series-name';
37
+ series: number;
38
+ name: string;
39
+ } | {
40
+ kind: 'category-label';
41
+ category: number;
42
+ label: string;
43
+ } | {
44
+ kind: 'add-series';
45
+ } | {
46
+ kind: 'remove-series';
47
+ series: number;
48
+ } | {
49
+ kind: 'add-category';
50
+ } | {
51
+ kind: 'remove-category';
52
+ category: number;
53
+ };
54
+ /** The name a new series gets: `Series N`, PowerPoint's own naming. */
55
+ export declare function nextChartSeriesName(seriesCount: number): string;
56
+ /** The label a new category gets: `Cat N`, as the PowerPoint editor has always named it. */
57
+ export declare function nextChartCategoryName(categoryCount: number): string;
58
+ /**
59
+ * Whether `edit` can be applied to `sheet`: indices in range, a finite value, and never removing
60
+ * the last series or category (a chart with no series or no category has nothing to plot, and
61
+ * the sheet would have no row or column to add data back into).
62
+ */
63
+ export declare function canApplyChartDataSheetEdit(sheet: ChartDataSheet, edit: ChartDataSheetEdit): boolean;
64
+ /** Applies one edit, or returns `null` when {@link canApplyChartDataSheetEdit} refuses it. */
65
+ export declare function applyChartDataSheetEdit(sheet: ChartDataSheet, edit: ChartDataSheetEdit): ChartDataSheet | null;
66
+ /** Applies edits in order, skipping any the sheet refuses at that point. */
67
+ export declare function applyChartDataSheetEdits(sheet: ChartDataSheet, edits: readonly ChartDataSheetEdit[]): ChartDataSheet;
68
+ /** A cell of the sheet in grid coordinates (see the module comment). */
69
+ export interface ChartDataSheetCell {
70
+ row: number;
71
+ col: number;
72
+ }
73
+ /**
74
+ * The edit that writes `raw` into one grid cell: a series name in the header row, a category
75
+ * label in the category column, a value elsewhere. `parseNumber` reads a value cell (pass a
76
+ * locale-aware parser); a value that does not parse gives `null`, as does the corner cell.
77
+ */
78
+ export declare function chartDataSheetCellEdit(cell: ChartDataSheetCell, raw: string, parseNumber: (raw: string) => number | null): ChartDataSheetEdit | null;
79
+ /**
80
+ * The edits that paste a block of cells (rows of text, as `parseTsv` reads the clipboard) with
81
+ * its top-left corner on `anchor`. Like the spreadsheet behind PowerPoint's chart, a block that
82
+ * runs past the last series or category adds the series and categories it needs first; a value
83
+ * cell that does not parse is skipped, and the corner cell is never written.
84
+ */
85
+ export declare function chartDataSheetPasteEdits(sheet: ChartDataSheet, anchor: ChartDataSheetCell, block: readonly (readonly string[])[], parseNumber: (raw: string) => number | null): ChartDataSheetEdit[];
86
+ //# sourceMappingURL=data-sheet.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"data-sheet.d.ts","sourceRoot":"","sources":["../../chart/data-sheet.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH;;;;GAIG;AACH,MAAM,MAAM,gBAAgB,GAAG,MAAM,GAAG,IAAI,CAAC;AAE7C,wFAAwF;AACxF,MAAM,WAAW,oBAAoB;IACpC,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,SAAS,gBAAgB,EAAE,CAAC;CACpC;AAED,8FAA8F;AAC9F,MAAM,WAAW,cAAc;IAC9B,UAAU,EAAE,SAAS,MAAM,EAAE,CAAC;IAC9B,MAAM,EAAE,SAAS,oBAAoB,EAAE,CAAC;CACxC;AAED,sFAAsF;AACtF,MAAM,MAAM,kBAAkB,GAC3B;IAAE,IAAI,EAAE,OAAO,CAAC;IAAC,MAAM,EAAE,MAAM,CAAC;IAAC,QAAQ,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,GAClE;IAAE,IAAI,E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ED;;;;;GAKG;AACH,wBAAgB,wBAAwB,CACvC,KAAK,EAAE,cAAc,EACrB,MAAM,EAAE,kBAAkB,EAC1B,KAAK,EAAE,SAAS,CAAC,SAAS,MAAM,EAAE,CAAC,EAAE,EACrC,WAAW,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,MAAM,GAAG,IAAI,GACzC,kBAAkB,EAAE,CAmBtB"}
@@ -0,0 +1,49 @@
1
+ import type { ChartAxis, ChartAxisKind, ChartSpace } from '../model.js';
2
+ import type { ChartShapeProperties } from '../model-series.js';
3
+ /**
4
+ * The first axis of a kind (PowerPoint's addressing), the axis with an id, or the axis at a
5
+ * position of `plotArea.axes` (a Format pane's `axis:N` target).
6
+ */
7
+ export type ChartAxisTarget = ChartAxisKind | {
8
+ id: number;
9
+ } | {
10
+ index: number;
11
+ };
12
+ export interface ChartAxisEdit {
13
+ /** `c:delete` is the inverse. */
14
+ visible?: boolean;
15
+ /** Axis title text; `null` or `''` removes the title. */
16
+ title?: string | null;
17
+ min?: number | null;
18
+ max?: number | null;
19
+ majorUnit?: number | null;
20
+ minorUnit?: number | null;
21
+ /** Date axis: the unit of the major and minor units (`days`, `months`, `years`). */
22
+ majorTimeUnit?: string | null;
23
+ minorTimeUnit?: string | null;
24
+ /** Logarithmic scale base (2..1000); `null` returns to a linear scale. */
25
+ logBase?: number | null;
26
+ /** Categories or values in reverse order (`c:orientation val="maxMin"`). */
27
+ reverse?: boolean;
28
+ /** A format code not linked to the source; `''` removes `c:numFmt` (the axis follows its data). */
29
+ numberFormat?: string;
30
+ majorTickMark?: 'cross' | 'in' | 'out' | 'none';
31
+ minorTickMark?: 'cross' | 'in' | 'out' | 'none';
32
+ tickLabelPosition?: 'high' | 'low' | 'nextTo' | 'none';
33
+ /** Where the other axis crosses: `autoZero`, `min`, `max`, or a value. */
34
+ crosses?: 'autoZero' | 'min' | 'max' | number;
35
+ majorGridlines?: boolean;
36
+ minorGridlines?: boolean;
37
+ /** Value axis: a built-in unit (`thousands`, `millions`...) or a custom divisor; `null` clears. */
38
+ displayUnits?: string | number | null;
39
+ }
40
+ /** The axis an edit targets; throws when the part has no such axis. */
41
+ export declare function chartAxisAt(space: ChartSpace, target: ChartAxisTarget): ChartAxis;
42
+ /** Edits one axis. */
43
+ export declare function setChartAxis(space: ChartSpace, target: ChartAxisTarget, edit: ChartAxisEdit): ChartSpace;
44
+ /**
45
+ * Sets the outline of an axis's major or minor gridlines (colour, width, dash), keeping the rest
46
+ * of their shape; styling gridlines turns them on, as in PowerPoint. `null` removes the styling.
47
+ */
48
+ export declare function setChartGridlineShape(space: ChartSpace, target: ChartAxisTarget, which: 'major' | 'minor', shape: Pick<ChartShapeProperties, 'line' | 'fill'> | null): ChartSpace;
49
+ //# sourceMappingURL=axes.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"axes.d.ts","sourceRoot":"","sources":["../../../chart/edit/axes.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,SAAS,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AACrE,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,iBAAiB,CAAC;AAI5D;;;GAGG;AACH,MAAM,MAAM,eAAe,GAAG,aAAa,GAAG;IAAE,EAAE,EAAE,MAAM,CAAA;CAAE,GAAG;IAAE,KAAK,EAAE,MAAM,CAAA;CAAE,CAAC;AAEjF,MAAM,WAAW,aAAa;IAC7B,iCAAiC;IACjC,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,yDAAyD;IACzD,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,GAAG,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACpB,GAAG,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,oFAAoF;IACpF,aAAa,CAAC,EAAE,MAAM,GA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
+ /** The numeric dimension type a layout draws: `size` (treemap, sunburst), `colorVal`, `val`. */
4
+ export declare function chartExValueType(layoutId: string): string;
5
+ /**
6
+ * Sets the values of the series at `index` (numbers, or `null` for a blank). Semantics: PowerPoint.
7
+ */
8
+ export declare function setChartExSeriesValues(space: ChartExSpace, index: number, values: readonly ChartSeriesValue[]): ChartExSpace;
9
+ /**
10
+ * Sets the categories of every series: one list, or the levels of a hierarchy (treemap, sunburst;
11
+ * leaf level first). Semantics: PowerPoint (categories belong to the chart, so each series' data
12
+ * gets them).
13
+ */
14
+ export declare function setChartExCategories(space: ChartExSpace, categories: readonly (readonly string[])[] | readonly string[]): ChartExSpace;
15
+ //# sourceMappingURL=chartex-data.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"chartex-data.d.ts","sourceRoot":"","sources":["../../../chart/edit/chartex-data.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AACtD,OAAO,KAAK,EAA+C,YAAY,EAAE,MAAM,aAAa,CAAC;AAG7F,gGAAgG;AAChG,wBAAgB,gBAAgB,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,CAMzD;AA+CD;;GAEG;AACH,wBAAgB,sBAAsB,CACrC,KAAK,EAAE,YAAY,EACnB,KAAK,EAAE,MAAM,EACb,MAAM,EAAE,SAAS,gBAAgB,EAAE,GACjC,YAAY,CASd;AAED;;;;GAIG;AACH,wBAAgB,oBAAoB,CACnC,KAAK,EAAE,YAAY,EACnB,UAAU,EAAE,SAAS,CAAC,SAAS,MAAM,EAAE,CAAC,EAAE,GAAG,SAAS,MAAM,EAAE,GAC5D,YAAY,CAgBd"}
@@ -0,0 +1,61 @@
1
+ import type { DrawingFill } from '../../drawingml/types.js';
2
+ import type { ChartExBinning, ChartExSeries, ChartExSpace } from '../ex/model.js';
3
+ /** A copy of `space` changed by `recipe`; `space` itself is never mutated. */
4
+ export declare function editChartExSpace(space: ChartExSpace, recipe: (draft: ChartExSpace) => void): ChartExSpace;
5
+ /** The series at `index` (compared as a position, never used as a property key). */
6
+ export declare function chartExSeriesAt(space: ChartExSpace, index: number): ChartExSeries;
7
+ /**
8
+ * Sets the chart title text, or removes the title (`undefined`). An existing rich title keeps its
9
+ * formatting and its first run takes the text; a title linked to a cell (`cx:txData`) or a new one
10
+ * becomes one rich run, as PowerPoint writes it (with the `a:bodyPr` the schema requires, which
11
+ * PowerPoint's builder leaves out). Semantics: PowerPoint.
12
+ */
13
+ export declare function setChartExTitle(space: ChartExSpace, text: string | undefined): ChartExSpace;
14
+ /**
15
+ * Shows, moves or hides the legend. A shown legend keeps its alignment, overlay and formatting; a
16
+ * new one is centred and not overlaid. Semantics: PowerPoint.
17
+ */
18
+ export declare function setChartExLegend(space: ChartExSpace, options: {
19
+ visible: boolean;
20
+ position?: string;
21
+ }): ChartExSpace;
22
+ /**
23
+ * Shows or hides the data labels of every series. Hiding removes `cx:dataLabels`; showing keeps
24
+ * existing labels and gives the others category name and value. Semantics: PowerPoint.
25
+ */
26
+ export declare function setChartExDataLabelsVisible(space: ChartExSpace, visible: boolean): ChartExSpace;
27
+ /**
28
+ * Renames the series at `index`. A name linked to a cell keeps its formula with the new cached
29
+ * text (pass `keepReference: false` to drop the link); a rich or missing name becomes cached text.
30
+ * Semantics: PowerPoint.
31
+ */
32
+ export declare function renameChartExSeries(space: ChartExSpace, index: number, name: string, options?: {
33
+ keepReference?: boolean;
34
+ }): ChartExSpace;
35
+ /** Sets (or, with `undefined`, removes) the fill of the series at `index`; the outline stays. */
36
+ export declare function setChartExSeriesFill(space: ChartExSpace, index: number, fill: DrawingFill | undefined): ChartExSpace;
37
+ /**
38
+ * Waterfall options of the series at `index`: the point indexes drawn as totals (`subtotals`, an
39
+ * empty list removes them) and whether connector lines show. Semantics: PowerPoint.
40
+ */
41
+ export declare function setChartExWaterfall(space: ChartExSpace, index: number, options: {
42
+ subtotals?: readonly number[];
43
+ connectorLines?: boolean;
44
+ }): ChartExSpace;
45
+ /**
46
+ * Histogram binning of the series at `index`: by category (`'category'`), or numeric bins with
47
+ * either a bin size or a bin count (the size wins, as PowerPoint writes only one). Semantics:
48
+ * PowerPoint.
49
+ */
50
+ export declare function setChartExBinning(space: ChartExSpace, index: number, binning: ChartExBinning | 'category'): ChartExSpace;
51
+ /** Treemap parent label layout (`none`, `banner`, `overlapping`) of the series at `index`. */
52
+ export declare function setChartExParentLabelLayout(space: ChartExSpace, index: number, parentLabelLayout: 'none' | 'banner' | 'overlapping'): ChartExSpace;
53
+ /** Box and whisker options of the series at `index`. Semantics: PowerPoint. */
54
+ export declare function setChartExBoxWhisker(space: ChartExSpace, index: number, options: {
55
+ quartileMethod?: 'inclusive' | 'exclusive';
56
+ meanLine?: boolean;
57
+ meanMarker?: boolean;
58
+ nonoutliers?: boolean;
59
+ outliers?: boolean;
60
+ }): ChartExSpace;
61
+ //# sourceMappingURL=chartex.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"chartex.d.ts","sourceRoot":"","sources":["../../../chart/edit/chartex.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AACzD,OAAO,KAAK,EACX,cAAc,EAEd,aAAa,EAEb,YAAY,EACZ,MAAM,aAAa,CAAC;AAKrB,8EAA8E;AAC9E,wBAAgB,gBAAgB,CAC/B,KAAK,EAAE,YAAY,EACnB,MAAM,EAAE,CAAC,KAAK,EAAE,YAAY,KAAK,IAAI,GACnC,YAAY,CAId;AAED,oFAAoF;AACpF,wBAAgB,eAAe,CAAC,KAAK,EAAE,YAAY,EAAE,KAAK,EAAE,MAAM,GAAG,aAAa,CAOjF;AAED;;;;;GAKG;AACH,wBAAgB,eAAe,CAAC,KAAK,EAAE,YAAY,EAAE,IAAI,EAAE,MAAM,GAAG,SAAS,GAAG,YAAY,CAY3F;AAMD;;;GAGG;AACH,wBAAgB,gBAAgB,CAC/B,KAAK,EAAE,YAAY,EACnB,OAAO,EAAE;I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AAO,CAAC;IACrB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACnB,GACC,YAAY,CAMd"}
@@ -0,0 +1,10 @@
1
+ import { type ChartDataSheet, type ChartDataSheetEdit } from '../data-sheet.js';
2
+ import type { ChartSpace } from '../model.js';
3
+ /** The data sheet of `space`: the first series' categories, every series' name and values. */
4
+ export declare function chartSpaceDataSheet(space: ChartSpace): ChartDataSheet;
5
+ /**
6
+ * Applies data sheet edits to `space` in order, skipping any the sheet refuses at that point
7
+ * (`canApplyChartDataSheetEdit`). Returns `space` itself when nothing applied.
8
+ */
9
+ export declare function applyChartSpaceDataSheetEdits(space: ChartSpace, edits: readonly ChartDataSheetEdit[]): ChartSpace;
10
+ //# sourceMappingURL=data-sheet.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"data-sheet.d.ts","sourceRoot":"","sources":["../../../chart/edit/data-sheet.ts"],"names":[],"mappings":"AASA,OAAO,EAIN,KAAK,cAAc,EACnB,KAAK,kBAAkB,EACvB,MAAM,eAAe,CAAC;AACvB,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAkB3C,8FAA8F;AAC9F,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,UAAU,GAAG,cAAc,CA8BrE;AA6DD;;;GAGG;AACH,wBAAgB,6BAA6B,CAC5C,KAAK,EAAE,UAAU,EACjB,KAAK,EAAE,SAAS,kBAAkB,EAAE,GAClC,UAAU,CAaZ"}
@@ -0,0 +1,27 @@
1
+ import type { ChartPlotGroup, ChartSpace } from '../model.js';
2
+ import type { ChartSpaceSeries } from '../model-series.js';
3
+ /** A copy of `space` changed by `recipe`; `space` itself is never mutated. */
4
+ export declare function editChartSpace(space: ChartSpace, recipe: (draft: ChartSpace) => void): ChartSpace;
5
+ /** One series with the group that holds it. */
6
+ export interface ChartSeriesEntry {
7
+ group: ChartPlotGroup;
8
+ groupIndex: number;
9
+ series: ChartSpaceSeries;
10
+ /** Position inside the group's series list. */
11
+ position: number;
12
+ }
13
+ /** Every series of every group, in document order. */
14
+ export declare function chartSeriesEntries(space: ChartSpace): ChartSeriesEntry[];
15
+ /** Every series of every group, in document order. */
16
+ export declare const chartSpaceSeries: (space: ChartSpace) => ChartSpaceSeries[];
17
+ /**
18
+ * The series at flattened position `index`. The index comes from callers at run time, so it is
19
+ * compared as a position and never used as a property key (a key such as `__proto__` must not
20
+ * select an object to write through).
21
+ */
22
+ export declare function chartSeriesEntryAt(space: ChartSpace, index: number): ChartSeriesEntry;
23
+ /** The first chart group; edits that need one throw when the plot area has none. */
24
+ export declare function firstChartGroup(space: ChartSpace): ChartPlotGroup;
25
+ /** Sets `key` to `value`, or removes it when `value` is `undefined` (exact optional properties). */
26
+ export declare function assignOrDelete<T extends object, K extends keyof T>(target: T, key: K, value: T[K] | undefined): void;
27
+ //# sourceMappingURL=draft.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"draft.d.ts","sourceRoot":"","sources":["../../../chart/edit/draft.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAC3D,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AAExD,8EAA8E;AAC9E,wBAAgB,cAAc,CAAC,KAAK,EAAE,UAAU,EAAE,MAAM,EAAE,CAAC,KAAK,EAAE,UAAU,KAAK,IAAI,GAAG,UAAU,CAIjG;AAED,+CAA+C;AAC/C,MAAM,WAAW,gBAAgB;IAChC,KAAK,EAAE,cAAc,CAAC;IACtB,UAAU,EAAE,MAAM,CAAC;IACnB,MAAM,EAAE,gBAAgB,CAAC;IACzB,+CAA+C;IAC/C,QAAQ,EAAE,MAAM,CAAC;CACjB;AAED,sDAAsD;AACtD,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,UAAU,GAAG,gBAAgB,EAAE,CAIxE;AAED,sDAAsD;AACtD,eAAO,MAAM,gBAAgB,UAAW,UAAU,KAAG,gBAAgB,EACd,CAAC;AAExD;;;;GAIG;AACH,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,UAAU,EAAE,KAAK,EAAE,MAAM,GAAG,gBAAgB,CAQrF;AAED,oFAAoF;AACpF,wBAAgB,eAAe,CAAC,KAAK,EAAE,UAAU,GAAG,cAAc,CAIjE;AAED,oGAAoG;AACpG,wBAAgB,cAAc,CAAC,CAAC,SAAS,MAAM,EAAE,CAAC,SAAS,MAAM,CAAC,EACjE,MAAM,EAAE,CAAC,EACT,GAAG,EAAE,CAAC,EACN,KAAK,EAAE,CAAC,CAAC,CAAC,CAAC,GAAG,SAAS,GACrB,IAAI,CAGN"}
@@ -0,0 +1,47 @@
1
+ import type { DrawingColor, DrawingFill, DrawingLine } from '../../drawingml/types.js';
2
+ import type { ChartPlotGroup, ChartSpace } from '../model.js';
3
+ import type { ChartShapeProperties, ChartSpaceSeries } from '../model-series.js';
4
+ import { type ChartGradientFillEdit } from './gradient.js';
5
+ /** Chart elements with their own shape properties. */
6
+ export declare const CHART_ELEMENT_PARTS: readonly ['chartArea', 'plotArea', 'title', 'legend', 'floor', 'sideWall', 'backWall'];
7
+ export type ChartElementPart = (typeof CHART_ELEMENT_PARTS)[number];
8
+ /** The fill an element declares, if any (an inherited style fill is not seen here). */
9
+ export declare function chartElementShape(space: ChartSpace, part: ChartElementPart): ChartShapeProperties | undefined;
10
+ /** Sets (or, with `undefined`, removes so the style applies) an element's fill. */
11
+ export declare function setChartElementFill(space: ChartSpace, part: ChartElementPart, fill: DrawingFill | undefined): ChartSpace;
12
+ /** Sets (or removes) an element's outline. */
13
+ export declare function setChartElementLine(space: ChartSpace, part: ChartElementPart, line: DrawingLine | undefined): ChartSpace;
14
+ /** Whether a group's series are coloured by their line (line, stock, scatter, unfilled radar). */
15
+ export declare function chartGroupPaintsLine(group: Pick<ChartPlotGroup, 'kind' | 'radarStyle'>): boolean;
16
+ /**
17
+ * A series moving between a filled family (bar, area, pie) and a line family keeps its colour:
18
+ * the fill becomes the line (Excel's 2.25 pt round-capped series line) or the line the fill, when
19
+ * the other paint is not set. Semantics: PowerPoint's writer, which paints a line series by its
20
+ * series colour; Excel's line width and cap.
21
+ */
22
+ export declare function repaintSeriesForFamily(series: ChartSpaceSeries, toLine: boolean): void;
23
+ /** Sets a series' fill (`undefined` returns it to the automatic colour); points lose their own. */
24
+ export declare function setChartSeriesFill(space: ChartSpace, index: number, fill: DrawingFill | undefined): ChartSpace;
25
+ /** Sets a series' outline, merged into the current one (`null` removes it). */
26
+ export declare function setChartSeriesLine(space: ChartSpace, index: number, line: DrawingLine | null): ChartSpace;
27
+ /**
28
+ * Sets the colour of a series as the Format pane's colour picker does: the fill, or the line of a
29
+ * series drawn as a line, keeping the previous colour's transparency. `null` removes the paint so
30
+ * the series takes its automatic colour again.
31
+ */
32
+ export declare function setChartSeriesColor(space: ChartSpace, index: number, color: DrawingColor | null): ChartSpace;
33
+ /** Sets a solid series fill's transparency (0..100); other fills are left alone. */
34
+ export declare function setChartSeriesTransparency(space: ChartSpace, index: number, percent: number): ChartSpace;
35
+ /** Sets (or removes, with `undefined`) one data point's fill, through its `c:dPt` override. */
36
+ export declare function setChartDataPointFill(space: ChartSpace, index: number, point: number, fill: DrawingFill | undefined): ChartSpace;
37
+ /** A gradient edit of a series fill; `undefined` when it does not apply or changes nothing. */
38
+ export declare function editChartSeriesGradient(space: ChartSpace, index: number, edit: ChartGradientFillEdit, defaultColor: DrawingColor): {
39
+ space: ChartSpace;
40
+ stopIndex: number;
41
+ } | undefined;
42
+ /** A gradient edit of an element fill (a new gradient starts from its solid colour, else white). */
43
+ export declare function editChartElementGradient(space: ChartSpace, part: ChartElementPart, edit: ChartGradientFillEdit): {
44
+ space: ChartSpace;
45
+ stopIndex: number;
46
+ } | undefined;
47
+ //# sourceMappingURL=fill.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fill.d.ts","sourceRoot":"","sources":["../../../chart/edit/fill.ts"],"names":[],"mapp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I,EAAE,WAAW,GAAG,SAAS,GAC3B,UAAU,CAMZ;AAED,+EAA+E;AAC/E,wBAAgB,kBAAkB,CACjC,KAAK,EAAE,UAAU,EACjB,KAAK,EAAE,MAAM,EACb,IAAI,EAAE,WAAW,GAAG,IAAI,GACtB,UAAU,CASZ;AAED;;;;GAIG;AACH,wBAAgB,mBAAmB,CAClC,KAAK,EAAE,UAAU,EACjB,KAAK,EAAE,MAAM,EACb,KAAK,EAAE,YAAY,GAAG,IAAI,GACxB,UAAU,CAcZ;AAED,oFAAoF;AACpF,wBAAgB,0BAA0B,CACzC,KAAK,EAAE,UAAU,EACjB,KAAK,EAAE,MAAM,EACb,OAAO,EAAE,MAAM,GACb,UAAU,CAUZ;AAED,+FAA+F;AAC/F,wBAAgB,qBAAqB,CACpC,KAAK,EAAE,UAAU,EACjB,KAAK,EAAE,MAAM,EACb,KAAK,EAAE,MAAM,EACb,IAAI,EAAE,WAAW,GAAG,SAAS,GAC3B,UAAU,CAkBZ;AAED,+FAA+F;AAC/F,wBAAgB,uBAAuB,CACtC,KAAK,EAAE,UAAU,EACjB,KAAK,EAAE,MAAM,EACb,IAAI,EAAE,qBAAqB,EAC3B,YAAY,EAAE,YAAY,GACxB;IAAE,KAAK,EAAE,UAAU,CAAC;IAAC,SAAS,EAAE,MAAM,CAAA;CAAE,GAAG,SAAS,CAOtD;AAED,oGAAoG;AACpG,wBAAgB,wBAAwB,CACvC,KAAK,EAAE,UAAU,EACjB,IAAI,EAAE,gBAAgB,EACtB,IAAI,EAAE,qBAAqB,GACzB;IAAE,KAAK,EAAE,UAAU,CAAC;IAAC,SAAS,EAAE,MAAM,CAAA;CAAE,GAAG,SAAS,CAQtD"}
@@ -0,0 +1,44 @@
1
+ import { type DrawingGradientGeometryType, type RectGradientDirection } from '../../drawingml/gradient-geometry.js';
2
+ import type { DrawingColor, DrawingFill } from '../../drawingml/types.js';
3
+ /** One gradient edit; `C` is the colour type a stop colour is given in. */
4
+ export type ChartGradientFillEdit<C = DrawingColor> = {
5
+ kind: 'create';
6
+ } | {
7
+ kind: 'preset';
8
+ id: number;
9
+ } | {
10
+ kind: 'angle';
11
+ value: number;
12
+ } | {
13
+ kind: 'geometry';
14
+ type: DrawingGradientGeometryType;
15
+ direction?: RectGradientDirection;
16
+ } | {
17
+ kind: 'stop';
18
+ index: number;
19
+ position?: number;
20
+ color?: C;
21
+ transparency?: number;
22
+ brightness?: number;
23
+ } | {
24
+ kind: 'add';
25
+ index: number;
26
+ } | {
27
+ kind: 'remove';
28
+ index: number;
29
+ };
30
+ export type ChartGradientFillValue = Extract<DrawingFill, {
31
+ kind: 'gradient';
32
+ }>;
33
+ /** Transparency of a gradient stop in percent (0 when the stop is missing). */
34
+ export declare function chartGradientStopTransparency(fill: ChartGradientFillValue, index: number): number;
35
+ /**
36
+ * The gradient after `edit`, and the stop the editor should select, or `undefined` when the edit
37
+ * does not apply (a stop edit on a non-gradient fill) or changes nothing. `defaultColor` is the
38
+ * first stop of a gradient created from a non-gradient fill.
39
+ */
40
+ export declare function editChartGradientFill<C = DrawingColor>(old: DrawingFill | undefined, edit: ChartGradientFillEdit<C>, defaultColor: DrawingColor, toColor?: (color: C) => DrawingColor): {
41
+ fill: ChartGradientFillValue;
42
+ stopIndex: number;
43
+ } | undefined;
44
+ //# sourceMappingURL=gradient.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"gradient.d.ts","sourceRoot":"","sources":["../../../chart/edit/gradient.ts"],"names":[],"mappings":"AAMA,OAAO,EAEN,KAAK,2BAA2B,EAChC,KAAK,qBAAqB,EAC1B,MAAM,mCAAmC,CAAC;AAE3C,OAAO,KAAK,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AASvE,2EAA2E;AAC3E,MAAM,MAAM,qBAAqB,CAAC,CAAC,GAAG,YAAY,IAC/C;IAAE,IAAI,EAAE,QAAQ,CAAA;CAAE,GAClB;IAAE,IAAI,EAAE,QAAQ,CAAC;IAAC,EAAE,EAAE,MAAM,CAAA;CAAE,GAC9B;IAAE,IAAI,EAAE,OAAO,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,GAChC;IAAE,IAAI,EAAE,UAAU,CAAC;IAAC,IAAI,EAAE,2BAA2B,CAAC;IAAC,SAAS,CAAC,EAAE,qBAAqB,CAAA;CAAE,GAC1F;IACA,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,KAAK,CAAC,EAAE,CAAC,CAAC;IACV,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,UAAU,CAAC,EAAE,MAAM,CAAC;CACnB,GACD;IAAE,IAAI,EAAE,KAAK,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,GAC9B;IAAE,IAAI,EAAE,QAAQ,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,CAAC;AAErC,MAAM,MAAM,sBAAsB,GAAG,OAAO,CAAC,WAAW,EAAE;IAAE,IAAI,EAAE,UAAU,CAAA;CAAE,CAAC,CAAC;AAEhF,+EAA+E;AAC/E,wBAAgB,6BAA6B,CAAC,IAAI,EAAE,sBAAsB,EAAE,KAAK,EAAE,MAAM,GAAG,MAAM,CAGjG;AAOD;;;;GAIG;AACH,wBAAgB,qBAAqB,CAAC,CAAC,GAAG,YAAY,EACrD,GAAG,EAAE,WAAW,GAAG,SAAS,EAC5B,IAAI,EAAE,qBAAqB,CAAC,CAAC,CAAC,EAC9B,YAAY,EAAE,YAAY,EAC1B,OAAO,GAAE,CAAC,KAAK,EAAE,CAAC,KAAK,YAAuB,GAC5C;IAAE,IAAI,EAAE,sBAAsB,CAAC;IAAC,SAAS,EAAE,MAAM,CAAA;CAAE,GAAG,SAAS,CA+DjE"}
@@ -0,0 +1,14 @@
1
+ import type { ChartSpace } from '../model.js';
2
+ export interface ChartGroupOptionsEdit {
3
+ /** Gap between categories, percent of a bar's width (bar, 3-D bar, bar of pie). */
4
+ gapWidth?: number;
5
+ /** Overlap of a category's bars, percent (2-D bar). */
6
+ overlap?: number;
7
+ /** Angle of the first slice, degrees (pie, doughnut). */
8
+ firstSliceAngle?: number;
9
+ /** Doughnut hole size, percent of the diameter. */
10
+ holeSize?: number;
11
+ }
12
+ /** Edits the options of the group holding series `seriesIndex`. */
13
+ export declare function setChartGroupOptions(space: ChartSpace, seriesIndex: number, edit: ChartGroupOptionsEdit): ChartSpace;
14
+ //# sourceMappingURL=group-options.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"group-options.d.ts","sourceRoot":"","sources":["../../../chart/edit/group-options.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAI3C,MAAM,WAAW,qBAAqB;IACrC,mFAAmF;IACnF,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,uDAAuD;IACvD,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,yDAAyD;IACzD,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,mDAAmD;IACnD,QAAQ,CAAC,EAAE,MAAM,CAAC;CAClB;AASD,mEAAmE;AACnE,wBAAgB,oBAAoB,CACnC,KAAK,EAAE,UAAU,EACjB,WAAW,EAAE,MAAM,EACnB,IAAI,EAAE,qBAAqB,GACzB,UAAU,CAcZ"}
@@ -0,0 +1,23 @@
1
+ export * from './draft.js';
2
+ export * from './paint.js';
3
+ export * from './gradient.js';
4
+ export * from './title.js';
5
+ export * from './legend-labels.js';
6
+ export * from './axes.js';
7
+ export * from './series.js';
8
+ export * from './series-data.js';
9
+ export * from './type.js';
10
+ export * from './type-axes.js';
11
+ export { GROUP_FIELDS as CHART_GROUP_FIELDS, groupHasAxes as chartGroupHasAxes, stripSeriesForKind as chartSeriesForKind, } from './type-schema.js';
12
+ export * from './fill.js';
13
+ export * from './style.js';
14
+ export * from './quick-layout.js';
15
+ export * from './target.js';
16
+ export * from './target-paint.js';
17
+ export * from './group-options.js';
18
+ export * from './intent.js';
19
+ export * from './data-sheet.js';
20
+ export * from './new-chart.js';
21
+ export * from './chartex.js';
22
+ export * from './chartex-data.js';
23
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../chart/edit/index.ts"],"names":[],"mappings":"AAGA,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC;AACxB,cAAc,YAAY,CAAC;AAC3B,cAAc,SAAS,CAAC;AACxB,cAAc,iBAAiB,CAAC;AAChC,cAAc,QAAQ,CAAC;AACvB,cAAc,UAAU,CAAC;AACzB,cAAc,eAAe,CAAC;AAC9B,cAAc,QAAQ,CAAC;AACvB,cAAc,aAAa,CAAC;AAC5B,OAAO,EACN,YAAY,IAAI,kBAAkB,EAClC,YAAY,IAAI,iBAAiB,EACjC,kBAAkB,IAAI,kBAAkB,GACxC,MAAM,eAAe,CAAC;AACvB,cAAc,QAAQ,CAAC;AACvB,cAAc,SAAS,CAAC;AACxB,cAAc,gBAAgB,CAAC;AAC/B,cAAc,UAAU,CAAC;AACzB,cAAc,gBAAgB,CAAC;AAC/B,cAAc,iBAAiB,CAAC;AAChC,cAAc,UAAU,CAAC;AACzB,cAAc,cAAc,CAAC;AAC7B,cAAc,aAAa,CAAC;AAC5B,cAAc,WAAW,CAAC;AAC1B,cAAc,gBAAgB,CAAC"}
@@ -0,0 +1,72 @@
1
+ import type { DrawingFill, DrawingLine } from '../../drawingml/types.js';
2
+ import type { ChartSpace } from '../model.js';
3
+ import { type ChartAxisEdit } from './axes.js';
4
+ import { type ChartGroupOptionsEdit } from './group-options.js';
5
+ import { type ChartDataLabelsEdit, type ChartLegendEdit } from './legend-labels.js';
6
+ import type { ChartFormatTarget } from './target.js';
7
+ export type ChartEditIntent =
8
+ /** Replace a target's fill; `undefined` returns it to the chart style ("Automatic"). */
9
+ {
10
+ op: 'fill';
11
+ target: ChartFormatTarget;
12
+ fill: DrawingFill | undefined;
13
+ }
14
+ /** Replace a target's outline, or with `merge` change only the given outline settings. */
15
+ | {
16
+ op: 'line';
17
+ target: ChartFormatTarget;
18
+ line: DrawingLine | undefined;
19
+ merge?: boolean;
20
+ }
21
+ /** Transparency (0..100) of a target's solid fill or solid outline, keeping its colour. */
22
+ | {
23
+ op: 'transparency';
24
+ target: ChartFormatTarget;
25
+ paint: 'fill' | 'line';
26
+ percent: number;
27
+ }
28
+ /** Axis options of the axis at `axisIndex` of `plotArea.axes`. */
29
+ | {
30
+ op: 'axis';
31
+ axisIndex: number;
32
+ edit: ChartAxisEdit;
33
+ } | {
34
+ op: 'legend';
35
+ edit: ChartLegendEdit;
36
+ }
37
+ /** The chart's data labels, or one series' own labels. */
38
+ | {
39
+ op: 'dataLabels';
40
+ seriesIndex?: number;
41
+ edit: ChartDataLabelsEdit;
42
+ }
43
+ /** Series Options of the group holding series `seriesIndex`. */
44
+ | {
45
+ op: 'groupOptions';
46
+ seriesIndex: number;
47
+ edit: ChartGroupOptionsEdit;
48
+ }
49
+ /** A built-in chart style: 1..48 (`c:style`) or 101..148 (`c14:style`). */
50
+ | {
51
+ op: 'style';
52
+ id: number;
53
+ }
54
+ /** A curated Chart Styles preset (`chart/style-presets`). */
55
+ | {
56
+ op: 'stylePreset';
57
+ preset: string;
58
+ }
59
+ /** Change Colors: recolour from palette `from` to palette `to` (the caller records `to`). */
60
+ | {
61
+ op: 'colorPalette';
62
+ from: number;
63
+ to: number;
64
+ }
65
+ /** Quick Layout `layout` (1..11). */
66
+ | {
67
+ op: 'quickLayout';
68
+ layout: number;
69
+ };
70
+ /** Applies `intent`, returning a new model; throws like the operation it names. */
71
+ export declare function applyChartEditIntent(space: ChartSpace, intent: ChartEditIntent): ChartSpace;
72
+ //# sourceMappingURL=intent.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"intent.d.ts","sourceRoot":"","sources":["../../../chart/edit/intent.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,WAAW,EAAE,WAAW,EAAE,MA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BAAqB,CAAA;CAAE;AAC1E,2EAA2E;GACzE;IAAE,EAAE,EAAE,OAAO,CAAC;IAAC,EAAE,EAAE,MAAM,CAAA;CAAE;AAC7B,6DAA6D;GAC3D;IAAE,EAAE,EAAE,aAAa,CAAC;IAAC,MAAM,EAAE,MAAM,CAAA;CAAE;AACvC,6FAA6F;GAC3F;IAAE,EAAE,EAAE,cAAc,CAAC;IAAC,IAAI,EAAE,MAAM,CAAC;IAAC,EAAE,EAAE,MAAM,CAAA;CAAE;AAClD,qCAAqC;GACnC;IAAE,EAAE,EAAE,aAAa,CAAC;IAAC,MAAM,EAAE,MAAM,CAAA;CAAE,CAAC;AAEzC,mFAAmF;AACnF,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,UAAU,EAAE,MAAM,EAAE,eAAe,GAAG,UAAU,CA6B3F"}
@@ -0,0 +1,34 @@
1
+ import type { ChartSpace } from '../model.js';
2
+ /** ST_LegendPos. */
3
+ export type ChartLegendPosition = 'b' | 'tr' | 'l' | 'r' | 't';
4
+ export interface ChartLegendEdit {
5
+ visible?: boolean;
6
+ position?: ChartLegendPosition;
7
+ overlay?: boolean;
8
+ }
9
+ /** Shows, hides, places or overlays the legend. Hiding removes `c:legend` and its entries. */
10
+ export declare function setChartLegend(space: ChartSpace, edit: ChartLegendEdit): ChartSpace;
11
+ export interface ChartDataLabelsEdit {
12
+ show?: boolean;
13
+ showValue?: boolean;
14
+ showCategoryName?: boolean;
15
+ showSeriesName?: boolean;
16
+ showPercent?: boolean;
17
+ showBubbleSize?: boolean;
18
+ showLegendKey?: boolean;
19
+ /** `c:dLblPos` (`ctr`, `inEnd`, `outEnd`, `bestFit`...); `null` returns to the default. */
20
+ position?: string | null;
21
+ /** `null` removes the separator. */
22
+ separator?: string | null;
23
+ /** A number format code not linked to the source; `null` removes it. */
24
+ numberFormat?: string | null;
25
+ }
26
+ /**
27
+ * Edits the data labels of the whole chart (every group's `c:dLbls`) or of one series. Hiding the
28
+ * chart's labels also removes every series' own labels, as Office's Chart Elements box does; hiding
29
+ * one series' labels writes switched-off labels on it so the group's labels do not show through.
30
+ */
31
+ export declare function setChartDataLabels(space: ChartSpace, edit: ChartDataLabelsEdit, target?: {
32
+ series?: number;
33
+ }): ChartSpace;
34
+ //# sourceMappingURL=legend-labels.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"legend-labels.d.ts","sourceRoot":"","sources":["../../../chart/edit/legend-labels.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAI3C,oBAAoB;AACpB,MAAM,MAAM,mBAAmB,GAAG,GAAG,GAAG,IAAI,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,CAAC;AAE/D,MAAM,WAAW,eAAe;IAC/B,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,QAAQ,CAAC,EAAE,mBAAmB,CAAC;IAC/B,OAAO,CAAC,EAAE,OAAO,CAAC;CAClB;AAED,8FAA8F;AAC9F,wBAAgB,cAAc,CAAC,KAAK,EAAE,UAAU,EAAE,IAAI,EAAE,eAAe,GAAG,UAAU,CAYnF;AAED,MAAM,WAAW,mBAAmB;IACnC,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,2FAA2F;IAC3F,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,oCAAoC;IACpC,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,wEAAwE;IACxE,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAC7B;AAoDD;;;;GAIG;AACH,wBAAgB,kBAAkB,CACjC,KAAK,EAAE,UAAU,EACjB,IAAI,EAAE,mBAAmB,EACzB,MAAM,GAAE;IAAE,MAAM,CAAC,EAAE,MAAM,CAAA;CAAO,GAC9B,UAAU,CAeZ"}
@@ -0,0 +1,14 @@
1
+ import type { ChartDataSheet } from '../data-sheet.js';
2
+ import type { ChartSpace } from '../model.js';
3
+ import { type ChartTypeTarget } from './type.js';
4
+ /** The sample data Word and PowerPoint put behind a new chart. */
5
+ export declare const DEFAULT_CHART_DATA_SHEET: ChartDataSheet;
6
+ export interface NewChartOptions {
7
+ /** The chart title; absent for no title (`c:autoTitleDeleted`). */
8
+ title?: string;
9
+ /** The worksheet the formulas name; Office's `Sheet1` by default. */
10
+ sheetName?: string;
11
+ }
12
+ /** A new chart part showing `sheet` as `target` (a column chart when `target` is absent). */
13
+ export declare function newChartSpace(sheet?: ChartDataSheet, target?: ChartTypeTarget, options?: NewChartOptions): ChartSpace;
14
+ //# sourceMappingURL=new-chart.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"new-chart.d.ts","sourceRoot":"","sources":["../../../chart/edit/new-chart.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AACpD,OAAO,KAAK,EAAkB,UAAU,EAAE,MAAM,UAAU,CAAC;AAM3D,OAAO,EAAgB,KAAK,eAAe,EAAE,MAAM,QAAQ,CAAC;AAG5D,kEAAkE;AAClE,eAAO,MAAM,wBAAwB,EAAE,cAOtC,CAAC;AAEF,MAAM,WAAW,eAAe;IAC/B,mEAAmE;IACnE,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,qEAAqE;IACrE,SAAS,CAAC,EAAE,MAAM,CAAC;CACnB;AAgBD,6FAA6F;AAC7F,wBAAgB,aAAa,CAC5B,KAAK,GAAE,cAAyC,EAChD,MAAM,CAAC,EAAE,eAAe,EACxB,OAAO,GAAE,eAAoB,GAC3B,UAAU,CA0BZ"}
@@ -0,0 +1,20 @@
1
+ import type { DrawingColor, DrawingFill } from '../../drawingml/types.js';
2
+ /** Equality of DrawingML colours, including the ordered transform sequence. */
3
+ export declare function sameDrawingColor(a: DrawingColor | undefined, b: DrawingColor | undefined): boolean;
4
+ /** The opacity transforms (`alpha`, `alphaMod`, `alphaOff`) of a colour, cloned. */
5
+ export declare const drawingColorAlphaTransforms: (color: DrawingColor | undefined) => DrawingColor['transforms'];
6
+ /** `color` with the opacity transforms of `from` appended (a recolour keeps transparency). */
7
+ export declare function withAlphaOf(color: DrawingColor, from: DrawingColor | undefined): DrawingColor;
8
+ /** Transparency in percent (0..100) after the ordered transforms; the scheme is irrelevant. */
9
+ export declare function drawingColorTransparency(color: DrawingColor): number | undefined;
10
+ /** Checks a 0..100 percentage, with the message the chart editors show. */
11
+ export declare function assertChartPercent(value: number, message: string): void;
12
+ /** `color` with its opacity transforms replaced by one `a:alpha` for `percent` transparency. */
13
+ export declare function withDrawingColorTransparency(color: DrawingColor, percent: number): DrawingColor;
14
+ /**
15
+ * A gradient whose every stop is `previous` (plus its own shading transforms) recoloured to `next`;
16
+ * any other fill comes back unchanged. Palette transforms precede gradient shading transforms in
17
+ * the XML Office saves, so the stop keeps the transforms after the palette's.
18
+ */
19
+ export declare function recolorPaletteGradient(fill: DrawingFill | undefined, previous: DrawingColor, next: DrawingColor): DrawingFill | undefined;
20
+ //# sourceMappingURL=paint.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"paint.d.ts","sourceRoot":"","sources":["../../../chart/edit/paint.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAIvE,+EAA+E;AAC/E,wBAAgB,gBAAgB,CAC/B,CAAC,EAAE,YAAY,GAAG,SAAS,EAC3B,CAAC,EAAE,YAAY,GAAG,SAAS,GACzB,OAAO,CAWT;AAED,oFAAoF;AACpF,eAAO,MAAM,2BAA2B,UAChC,YAAY,GAAG,SAAS,KAC7B,YAAY,CAAC,YAAY,CACoD,CAAC;AAEjF,8FAA8F;AAC9F,wBAAgB,WAAW,CAAC,KAAK,EAAE,YAAY,EAAE,IAAI,EAAE,YAAY,GAAG,SAAS,GAAG,YAAY,CAI7F;AAED,+FAA+F;AAC/F,wBAAgB,wBAAwB,CAAC,KAAK,EAAE,YAAY,GAAG,MAAM,GAAG,SAAS,CAOhF;AAED,2EAA2E;AAC3E,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,IAAI,CAEvE;AAED,gGAAgG;AAChG,wBAAgB,4BAA4B,CAAC,KAAK,EAAE,YAAY,EAAE,OAAO,EAAE,MAAM,GAAG,YAAY,CAO/F;AAED;;;;GAIG;AACH,wBAAgB,sBAAsB,CACrC,IAAI,EAAE,WAAW,GAAG,SAAS,EAC7B,QAAQ,EAAE,YAAY,EACtB,IAAI,EAAE,YAAY,GAChB,WAAW,GAAG,SAAS,CAsBzB"}
@@ -0,0 +1,16 @@
1
+ import type { ChartSpace } from '../model.js';
2
+ /** The chart group families a Quick Layout applies to. */
3
+ export declare const CHART_QUICK_LAYOUT_KINDS: ReadonlySet<string>;
4
+ /** The parts of a layout; `applyChartQuickLayout` applies every part unless told otherwise. */
5
+ export type ChartQuickLayoutPart = 'title' | 'legend' | 'dataLabels' | 'axes' | 'dataTable' | 'spacing';
6
+ /** Whether the chart's first group takes Quick Layouts (bar, column, line, area). */
7
+ export declare function chartSupportsQuickLayout(space: ChartSpace): boolean;
8
+ /**
9
+ * Applies Quick Layout `n` (1..11). `only` limits it to some parts (a product that already writes
10
+ * the title or legend from its own model applies the rest). Throws for an unknown layout or a
11
+ * chart family without layouts.
12
+ */
13
+ export declare function applyChartQuickLayout(space: ChartSpace, n: number, only?: readonly ChartQuickLayoutPart[]): ChartSpace;
14
+ /** The Quick Layout the chart currently shows (its number), if its elements match one exactly. */
15
+ export declare function chartQuickLayoutOf(space: ChartSpace): number | undefined;
16
+ //# sourceMappingURL=quick-layout.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"quick-layout.d.ts","sourceRoot":"","sources":["../../../chart/edit/quick-layout.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAW3C,0DAA0D;AAC1D,eAAO,MAAM,wBAAwB,EAAE,WAAW,CAAC,MAAM,CAAoC,CAAC;AAE9F,+FAA+F;AAC/F,MAAM,MAAM,oBAAoB,GAC7B,OAAO,GACP,QAAQ,GACR,YAAY,GACZ,MAAM,GACN,WAAW,GACX,SAAS,CAAC;AAWb,qFAAqF;AACrF,wBAAgB,wBAAwB,CAAC,KAAK,EAAE,UAAU,GAAG,OAAO,CAGnE;AA6BD;;;;GAIG;AACH,wBAAgB,qBAAqB,CACpC,KAAK,EAAE,UAAU,EACjB,CAAC,EAAE,MAAM,EACT,IAAI,GAAE,SAAS,oBAAoB,EAAc,GAC/C,UAAU,CA+BZ;AA2BD,kGAAkG;AAClG,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,UAAU,GAAG,MAAM,GAAG,SAAS,CAGxE"}