ooxml-core 1.44.0 → 1.46.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 (93) hide show
  1. package/dist/PptxHandler-FZ43IJFP.mjs +5 -0
  2. package/dist/{PptxHandler-3VAVJDFB.mjs → PptxHandler-HWEOIHEA.mjs} +2 -2
  3. package/dist/PptxHandler-XAUKKK36.cjs +14 -0
  4. package/dist/{PresentationBuilder-KHL6GONR.cjs → PresentationBuilder-2BCCMZW7.cjs} +6 -6
  5. package/dist/{PresentationBuilder-7LJMTRJ6.mjs → PresentationBuilder-66RV4F45.mjs} +2 -2
  6. package/dist/{PresentationBuilder-PY2GB4IG.mjs → PresentationBuilder-AFD72LIG.mjs} +3 -3
  7. package/dist/automation/index.cjs +22 -8
  8. package/dist/automation/index.mjs +22 -8
  9. package/dist/chart/edit/fill.d.ts +6 -2
  10. package/dist/chart/edit/fill.d.ts.map +1 -1
  11. package/dist/chart/edit/group-options.d.ts +4 -0
  12. package/dist/chart/edit/group-options.d.ts.map +1 -1
  13. package/dist/chart/edit/new-chart-minimal.d.ts +13 -0
  14. package/dist/chart/edit/new-chart-minimal.d.ts.map +1 -0
  15. package/dist/chart/edit/new-chart.d.ts +34 -1
  16. package/dist/chart/edit/new-chart.d.ts.map +1 -1
  17. package/dist/chart/edit/secondary-axis.d.ts +8 -1
  18. package/dist/chart/edit/secondary-axis.d.ts.map +1 -1
  19. package/dist/chart/edit/type.d.ts +2 -0
  20. package/dist/chart/edit/type.d.ts.map +1 -1
  21. package/dist/chart/index.cjs +426 -266
  22. package/dist/chart/index.mjs +424 -267
  23. package/dist/{chunk-3J6VIKLP.cjs → chunk-5TOVSCVT.cjs} +3 -3
  24. package/dist/{chunk-4LEVL6ZW.mjs → chunk-E2TTMUKU.mjs} +681 -142
  25. package/dist/{chunk-7T3SJQA6.cjs → chunk-E5TGYYKO.cjs} +1 -0
  26. package/dist/{chunk-VKFKEVHK.mjs → chunk-EI6555OK.mjs} +1 -1
  27. package/dist/{chunk-R7NS42KQ.mjs → chunk-FKU2Z6ZB.mjs} +1 -1
  28. package/dist/{chunk-243ZYX2B.mjs → chunk-G6LEU3Y5.mjs} +1 -1
  29. package/dist/{chunk-JHYU7HGG.mjs → chunk-H43QQVJU.mjs} +1 -1
  30. package/dist/{chunk-HLYOHD2Z.mjs → chunk-HH3AYM63.mjs} +664 -146
  31. package/dist/{chunk-RNZQ2OU4.cjs → chunk-IBRV3AK3.cjs} +1930 -1412
  32. package/dist/{chunk-WEAWSXUX.mjs → chunk-L6MJGE3Q.mjs} +4 -4
  33. package/dist/{chunk-IPV3J3I5.mjs → chunk-LXVE2VKR.mjs} +4 -1
  34. package/dist/{chunk-QZPOPUI5.cjs → chunk-QUAFASFC.cjs} +4 -0
  35. package/dist/{chunk-XTUX5RMG.cjs → chunk-T4BVZTII.cjs} +9 -9
  36. package/dist/{chunk-KCDLTVUI.mjs → chunk-X2DC7XRL.mjs} +17 -16
  37. package/dist/{chunk-OORQCSVA.mjs → chunk-ZLUHU2SU.mjs} +1 -0
  38. package/dist/docx/index.cjs +300 -144
  39. package/dist/docx/index.mjs +300 -144
  40. package/dist/index.cjs +496 -336
  41. package/dist/index.mjs +496 -336
  42. package/dist/pptx/automation/index.cjs +879 -310
  43. package/dist/pptx/automation/index.d.ts +6 -6
  44. package/dist/pptx/automation/index.mjs +5 -5
  45. package/dist/pptx/chunks/{elements-PBugbKtv.d.ts → elements-B4Z6N-Gz.d.ts} +4 -477
  46. package/dist/pptx/chunks/elements-B4Z6N-Gz.d.ts.map +1 -0
  47. package/dist/pptx/chunks/{index-CCJiD-Bm.d.ts → index-BPGaFlm5.d.ts} +6 -6
  48. package/dist/pptx/chunks/{index-CCJiD-Bm.d.ts.map → index-BPGaFlm5.d.ts.map} +1 -1
  49. package/dist/pptx/chunks/{index-Bj-hur0D.d.ts → index-D4-WJQ1r.d.ts} +4 -4
  50. package/dist/pptx/chunks/{index-Bj-hur0D.d.ts.map → index-D4-WJQ1r.d.ts.map} +1 -1
  51. package/dist/pptx/chunks/{index-CGNb1TV9.d.ts → index-DtFoPmk7.d.ts} +108 -10
  52. package/dist/pptx/chunks/index-DtFoPmk7.d.ts.map +1 -0
  53. package/dist/pptx/chunks/{table-C7ITXL3Y.d.ts → table-BfgZfw5R.d.ts} +488 -4
  54. package/dist/pptx/chunks/table-BfgZfw5R.d.ts.map +1 -0
  55. package/dist/pptx/chunks/{text-operations-BNJr7aGa.d.ts → text-operations-CVHXOSit.d.ts} +19 -4
  56. package/dist/pptx/chunks/{text-operations-BNJr7aGa.d.ts.map → text-operations-CVHXOSit.d.ts.map} +1 -1
  57. package/dist/pptx/cli/index.cjs +832 -263
  58. package/dist/pptx/cli/index.d.ts +1 -1
  59. package/dist/pptx/cli/index.mjs +4 -4
  60. package/dist/pptx/converter/index.cjs +1 -0
  61. package/dist/pptx/converter/index.d.ts +1 -1
  62. package/dist/pptx/converter/index.mjs +2 -2
  63. package/dist/pptx/editor/render/collaboration-live-patch-target.cjs +4 -4
  64. package/dist/pptx/editor/render/collaboration-live-patch-target.mjs +2 -2
  65. package/dist/pptx/editor/render/collaboration-reconcile.cjs +8 -8
  66. package/dist/pptx/editor/render/collaboration-reconcile.mjs +2 -2
  67. package/dist/pptx/editor/render/collaboration-sync.cjs +14 -14
  68. package/dist/pptx/editor/render/collaboration-sync.d.ts.map +1 -1
  69. package/dist/pptx/editor/render/collaboration-sync.mjs +1 -1
  70. package/dist/pptx/editor/render/custom-show-operations.cjs +2 -2
  71. package/dist/pptx/editor/render/custom-show-operations.mjs +1 -1
  72. package/dist/pptx/editor/render/find-replace.cjs +15 -15
  73. package/dist/pptx/editor/render/find-replace.d.ts +2 -2
  74. package/dist/pptx/editor/render/find-replace.mjs +2 -2
  75. package/dist/pptx/editor/render/slide-operations.cjs +9 -9
  76. package/dist/pptx/editor/render/slide-operations.mjs +3 -3
  77. package/dist/pptx/editor/render/table-layout.d.ts +1 -1
  78. package/dist/pptx/editor/render/text-runs-style-patch.d.ts +1 -1
  79. package/dist/pptx/editor/render/text-style-scope.d.ts +1 -1
  80. package/dist/pptx/index.cjs +909 -315
  81. package/dist/pptx/index.d.ts +7 -7
  82. package/dist/pptx/index.mjs +5 -5
  83. package/dist/pptx/node/index.d.ts +1 -1
  84. package/dist/xlsx/index.cjs +22 -8
  85. package/dist/xlsx/index.mjs +22 -8
  86. package/dist/xlsx/ui/index.cjs +22 -8
  87. package/dist/xlsx/ui/index.mjs +22 -8
  88. package/package.json +1 -1
  89. package/dist/PptxHandler-V23RDNEX.cjs +0 -14
  90. package/dist/PptxHandler-WB3KL2WH.mjs +0 -5
  91. package/dist/pptx/chunks/elements-PBugbKtv.d.ts.map +0 -1
  92. package/dist/pptx/chunks/index-CGNb1TV9.d.ts.map +0 -1
  93. package/dist/pptx/chunks/table-C7ITXL3Y.d.ts.map +0 -1
@@ -3482,9 +3482,9 @@ function writeChartAxisFormatting(root, formatting) {
3482
3482
  const previous = readChartFormatting(root);
3483
3483
  let changed = false;
3484
3484
  for (const part of ["categoryAxis", "valueAxis"]) {
3485
- const axis = nodes[part];
3485
+ const axis2 = nodes[part];
3486
3486
  const entry3 = formatting.entries[part];
3487
- if (!axis || !entry3) continue;
3487
+ if (!axis2 || !entry3) continue;
3488
3488
  for (const [name, flag, value, successors] of [
3489
3489
  [
3490
3490
  "delete",
@@ -3532,17 +3532,17 @@ function writeChartAxisFormatting(root, formatting) {
3532
3532
  const key = name === "delete" ? "axisVisible" : "labelsVisible";
3533
3533
  const revealingAxis = name === "tickLblPos" && entry3.axisVisible === true && previous?.entries[part]?.axisVisible === false;
3534
3534
  if (flag === previous?.entries[part]?.[key] && !revealingAxis) continue;
3535
- let node = first(axis, name, NS.c);
3535
+ let node = first(axis2, name, NS.c);
3536
3536
  const old = node?.getAttribute("val");
3537
3537
  if (name === "delete" && old !== void 0 && old !== null && (flag && (old === "0" || old === "false") || !flag && (old === "1" || old === "true")))
3538
3538
  continue;
3539
3539
  if (name === "tickLblPos" && node && (flag ? old !== "none" : old === "none")) continue;
3540
3540
  if (!node) {
3541
3541
  node = root.ownerDocument.createElementNS(NS.c, "c:" + name);
3542
- const before = elements(axis).find(
3542
+ const before = elements(axis2).find(
3543
3543
  (child3) => child3.namespaceURI === NS.c && successors.includes(child3.localName)
3544
3544
  );
3545
- axis.insertBefore(node, before ?? null);
3545
+ axis2.insertBefore(node, before ?? null);
3546
3546
  }
3547
3547
  node.setAttribute("val", value);
3548
3548
  changed = true;
@@ -4837,8 +4837,8 @@ function parseGroup(context, element2) {
4837
4837
  element: element2.localName,
4838
4838
  is3D,
4839
4839
  series: children(element2, "ser", NS.c).map((ser) => parseSeries(context, ser)),
4840
- axisIds: children(element2, "axId", NS.c).flatMap((axis) => {
4841
- const raw2 = attribute(axis, "val")?.trim();
4840
+ axisIds: children(element2, "axId", NS.c).flatMap((axis2) => {
4841
+ const raw2 = attribute(axis2, "val")?.trim();
4842
4842
  const id = raw2 ? Number(raw2) : Number.NaN;
4843
4843
  return Number.isFinite(id) ? [id] : [];
4844
4844
  })
@@ -4987,9 +4987,9 @@ function parsePlotArea(context, element2) {
4987
4987
  plotArea.groups.push(parseGroup(context, child3));
4988
4988
  handled.add(child3.localName);
4989
4989
  }
4990
- const axis = AXIS_ELEMENTS[child3.localName];
4991
- if (axis) {
4992
- plotArea.axes.push(parseAxis(context, child3, axis));
4990
+ const axis2 = AXIS_ELEMENTS[child3.localName];
4991
+ if (axis2) {
4992
+ plotArea.axes.push(parseAxis(context, child3, axis2));
4993
4993
  handled.add(child3.localName);
4994
4994
  }
4995
4995
  }
@@ -5543,14 +5543,14 @@ var AXIS_ELEMENTS2 = {
5543
5543
  ser: "serAx"
5544
5544
  };
5545
5545
  var gridlinesXml = (context, local, present2, shape) => present2 ? elementXml(local, shapePropertiesXml(context, shape)) : "";
5546
- function axisXml(context, axis) {
5547
- const { scaling } = axis;
5546
+ function axisXml(context, axis2) {
5547
+ const { scaling } = axis2;
5548
5548
  return elementXml(
5549
- AXIS_ELEMENTS2[axis.kind],
5550
- valXml("axId", axis.id) + elementXml(
5549
+ AXIS_ELEMENTS2[axis2.kind],
5550
+ valXml("axId", axis2.id) + elementXml(
5551
5551
  "scaling",
5552
5552
  valXml("logBase", scaling.logBase) + valXml("orientation", scaling.orientation) + valXml("max", scaling.max) + valXml("min", scaling.min)
5553
- ) + valXml("delete", axis.deleted) + valXml("axPos", axis.position) + gridlinesXml(context, "majorGridlines", axis.majorGridlines, axis.majorGridlinesSpPr) + gridlinesXml(context, "minorGridlines", axis.minorGridlines, axis.minorGridlinesSpPr) + titleXml(context, axis.title) + numberFormatXml(axis.numberFormat) + valXml("majorTickMark", axis.majorTickMark) + valXml("minorTickMark", axis.minorTickMark) + valXml("tickLblPos", axis.tickLabelPosition) + shapePropertiesXml(context, axis.spPr) + textBodyXml(context, axis.txPr) + valXml("crossAx", axis.crossAxisId) + valXml("crosses", axis.crosses) + valXml("crossesAt", axis.crossesAt) + valXml("crossBetween", axis.crossBetween) + valXml("auto", axis.auto) + valXml("lblAlgn", axis.labelAlign) + valXml("lblOffset", axis.labelOffset) + valXml("baseTimeUnit", axis.baseTimeUnit) + valXml("majorUnit", axis.majorUnit) + valXml("majorTimeUnit", axis.majorTimeUnit) + valXml("minorUnit", axis.minorUnit) + valXml("minorTimeUnit", axis.minorTimeUnit) + displayUnitsXml(context, axis.displayUnits) + valXml("tickLblSkip", axis.tickLabelSkip) + valXml("tickMarkSkip", axis.tickMarkSkip) + valXml("noMultiLvlLbl", axis.noMultiLevelLabels) + raw(context, axis.extLst)
5553
+ ) + valXml("delete", axis2.deleted) + valXml("axPos", axis2.position) + gridlinesXml(context, "majorGridlines", axis2.majorGridlines, axis2.majorGridlinesSpPr) + gridlinesXml(context, "minorGridlines", axis2.minorGridlines, axis2.minorGridlinesSpPr) + titleXml(context, axis2.title) + numberFormatXml(axis2.numberFormat) + valXml("majorTickMark", axis2.majorTickMark) + valXml("minorTickMark", axis2.minorTickMark) + valXml("tickLblPos", axis2.tickLabelPosition) + shapePropertiesXml(context, axis2.spPr) + textBodyXml(context, axis2.txPr) + valXml("crossAx", axis2.crossAxisId) + valXml("crosses", axis2.crosses) + valXml("crossesAt", axis2.crossesAt) + valXml("crossBetween", axis2.crossBetween) + valXml("auto", axis2.auto) + valXml("lblAlgn", axis2.labelAlign) + valXml("lblOffset", axis2.labelOffset) + valXml("baseTimeUnit", axis2.baseTimeUnit) + valXml("majorUnit", axis2.majorUnit) + valXml("majorTimeUnit", axis2.majorTimeUnit) + valXml("minorUnit", axis2.minorUnit) + valXml("minorTimeUnit", axis2.minorTimeUnit) + displayUnitsXml(context, axis2.displayUnits) + valXml("tickLblSkip", axis2.tickLabelSkip) + valXml("tickMarkSkip", axis2.tickMarkSkip) + valXml("noMultiLvlLbl", axis2.noMultiLevelLabels) + raw(context, axis2.extLst)
5554
5554
  );
5555
5555
  }
5556
5556
 
@@ -5624,7 +5624,7 @@ function groupXml(context, group2) {
5624
5624
  function plotAreaXml(context, plotArea) {
5625
5625
  return elementXml(
5626
5626
  "plotArea",
5627
- layoutXml(context, plotArea.layout) + plotArea.groups.map((group2) => groupXml(context, group2)).join("") + plotArea.axes.map((axis) => axisXml(context, axis)).join("") + dataTableXml(context, plotArea.dataTable) + shapePropertiesXml(context, plotArea.spPr) + raw(context, plotArea.extLst)
5627
+ layoutXml(context, plotArea.layout) + plotArea.groups.map((group2) => groupXml(context, group2)).join("") + plotArea.axes.map((axis2) => axisXml(context, axis2)).join("") + dataTableXml(context, plotArea.dataTable) + shapePropertiesXml(context, plotArea.spPr) + raw(context, plotArea.extLst)
5628
5628
  );
5629
5629
  }
5630
5630
 
@@ -6033,14 +6033,14 @@ function parseLegend2(context, element2) {
6033
6033
  }
6034
6034
 
6035
6035
  // chart/ex/parse-axis.ts
6036
- function parseScaling(context, axis) {
6037
- const category = cxChild(axis, "catScaling");
6036
+ function parseScaling(context, axis2) {
6037
+ const category = cxChild(axis2, "catScaling");
6038
6038
  if (category)
6039
6039
  return assignDefined(
6040
6040
  { kind: "cat" },
6041
6041
  { gapWidth: autoNumberAttribute(context, category, "gapWidth") }
6042
6042
  );
6043
- const value = cxChild(axis, "valScaling");
6043
+ const value = cxChild(axis2, "valScaling");
6044
6044
  if (!value) return void 0;
6045
6045
  return assignDefined(
6046
6046
  { kind: "val" },
@@ -6251,9 +6251,9 @@ function parseSeries2(context, element2) {
6251
6251
  const labels2 = cxChild(element2, "dataLabels");
6252
6252
  const inline = cxChild(element2, "data");
6253
6253
  const layout = cxChild(element2, "layoutPr");
6254
- const axisIds = cxChildren(element2, "axisId").map((axis) => indexAttribute(context, axis, "val")).filter((id) => id !== void 0);
6254
+ const axisIds2 = cxChildren(element2, "axisId").map((axis2) => indexAttribute(context, axis2, "val")).filter((id) => id !== void 0);
6255
6255
  return assignDefined(
6256
- { layoutId: attribute(element2, "layoutId") ?? "", dataPoints, axisIds },
6256
+ { layoutId: attribute(element2, "layoutId") ?? "", dataPoints, axisIds: axisIds2 },
6257
6257
  {
6258
6258
  hidden: boolAttribute(context, element2, "hidden"),
6259
6259
  ownerIndex: numberAttribute(context, element2, "ownerIdx"),
@@ -6295,7 +6295,7 @@ function parsePlotArea2(context, element2) {
6295
6295
  const regionExtLst = extensionList2(region);
6296
6296
  if (regionExtLst) out.regionExtLst = regionExtLst;
6297
6297
  }
6298
- out.axes = cxChildren(element2, "axis").map((axis) => parseAxis2(context, axis));
6298
+ out.axes = cxChildren(element2, "axis").map((axis2) => parseAxis2(context, axis2));
6299
6299
  return assignDefined(out, { spPr: shapeProperties2(element2), extLst: extensionList2(element2) });
6300
6300
  }
6301
6301
  function namespaceDeclarations2(root) {
@@ -6546,19 +6546,19 @@ function scalingXml(scaling) {
6546
6546
  );
6547
6547
  }
6548
6548
  var tickMarksXml = (local, marks) => marks ? cxElement(local, "", attributes([["type", marks.type]])) : "";
6549
- function axisXml2(context, axis) {
6550
- const units2 = axis.units;
6549
+ function axisXml2(context, axis2) {
6550
+ const units2 = axis2.units;
6551
6551
  const gridlines = (local, value) => value ? cxElement(local, shapeXml(context, value.spPr)) : "";
6552
6552
  return cxElement(
6553
6553
  "axis",
6554
- scalingXml(axis.scaling) + titleXml2(context, axis.title) + (units2 ? cxElement(
6554
+ scalingXml(axis2.scaling) + titleXml2(context, axis2.title) + (units2 ? cxElement(
6555
6555
  "units",
6556
6556
  titleXml2(context, units2.label, "unitsLabel") + raw(context, units2.extLst),
6557
6557
  attributes([["unit", units2.unit]])
6558
- ) : "") + gridlines("majorGridlines", axis.majorGridlines) + gridlines("minorGridlines", axis.minorGridlines) + tickMarksXml("majorTickMarks", axis.majorTickMarks) + tickMarksXml("minorTickMarks", axis.minorTickMarks) + (axis.tickLabels ? cxElement("tickLabels", raw(context, axis.tickLabels.extLst)) : "") + numberFormatXml2(axis.numberFormat) + shapeXml(context, axis.spPr) + textBodyXml2(context, axis.txPr) + raw(context, axis.extLst),
6558
+ ) : "") + gridlines("majorGridlines", axis2.majorGridlines) + gridlines("minorGridlines", axis2.minorGridlines) + tickMarksXml("majorTickMarks", axis2.majorTickMarks) + tickMarksXml("minorTickMarks", axis2.minorTickMarks) + (axis2.tickLabels ? cxElement("tickLabels", raw(context, axis2.tickLabels.extLst)) : "") + numberFormatXml2(axis2.numberFormat) + shapeXml(context, axis2.spPr) + textBodyXml2(context, axis2.txPr) + raw(context, axis2.extLst),
6559
6559
  attributes([
6560
- ["id", axis.id],
6561
- ["hidden", axis.hidden]
6560
+ ["id", axis2.id],
6561
+ ["hidden", axis2.hidden]
6562
6562
  ])
6563
6563
  );
6564
6564
  }
@@ -6593,7 +6593,7 @@ function writeChartExSpace(space, options2 = {}) {
6593
6593
  );
6594
6594
  const plotArea = cxElement(
6595
6595
  "plotArea",
6596
- region + plot.axes.map((axis) => axisXml2(context, axis)).join("") + shapeXml(context, plot.spPr) + raw(context, plot.extLst)
6596
+ region + plot.axes.map((axis2) => axisXml2(context, axis2)).join("") + shapeXml(context, plot.spPr) + raw(context, plot.extLst)
6597
6597
  );
6598
6598
  const legend = space.legend;
6599
6599
  const legendXml2 = legend ? cxElement(
@@ -6924,9 +6924,9 @@ function chartExSeriesAt(space, index) {
6924
6924
  return series2;
6925
6925
  }
6926
6926
  function chartExAxisAt(space, index) {
6927
- const axis = typeof index === "number" && Number.isSafeInteger(index) ? space.plotArea.axes.find((_, position) => position === index) : void 0;
6928
- if (!axis) throw new RangeError(`No chart axis at index ${String(index)}`);
6929
- return axis;
6927
+ const axis2 = typeof index === "number" && Number.isSafeInteger(index) ? space.plotArea.axes.find((_, position) => position === index) : void 0;
6928
+ if (!axis2) throw new RangeError(`No chart axis at index ${String(index)}`);
6929
+ return axis2;
6930
6930
  }
6931
6931
  function setChartExTitle(space, text2) {
6932
6932
  return editChartExSpace(space, (draft) => {
@@ -7204,7 +7204,7 @@ function setChartExLayout(space, layout) {
7204
7204
  ];
7205
7205
  for (const series2 of draft.plotArea.series)
7206
7206
  series2.axisIds = draft.plotArea.axes.flatMap(
7207
- (axis) => axis.id === void 0 ? [] : [axis.id]
7207
+ (axis2) => axis2.id === void 0 ? [] : [axis2.id]
7208
7208
  );
7209
7209
  } else {
7210
7210
  draft.plotArea.axes = [];
@@ -8853,8 +8853,8 @@ function chartSummarySeries(source, chartType, groupLabels, groupSmooth) {
8853
8853
  Object.assign(out, summaryAnalysis(source));
8854
8854
  return out;
8855
8855
  }
8856
- function valueAxisId(chartSpace, axisIds) {
8857
- return axisIds.find(
8856
+ function valueAxisId(chartSpace, axisIds2) {
8857
+ return axisIds2.find(
8858
8858
  (id) => chartSpace.plotArea.axes.some((a2) => a2.id === id && a2.kind === "val")
8859
8859
  );
8860
8860
  }
@@ -9557,35 +9557,35 @@ function chartExSummaryFromModel(space) {
9557
9557
  showLegend: legend !== void 0
9558
9558
  };
9559
9559
  if (chartType === "boxWhisker") {
9560
- summary.axes = space.plotArea.axes.flatMap((axis) => {
9561
- const scaling = axis.scaling;
9560
+ summary.axes = space.plotArea.axes.flatMap((axis2) => {
9561
+ const scaling = axis2.scaling;
9562
9562
  if (!scaling) return [];
9563
9563
  const value = scaling.kind === "val";
9564
9564
  return [
9565
9565
  {
9566
9566
  kind: value ? "val" : "cat",
9567
- ...axis.id === void 0 ? {} : { id: axis.id },
9567
+ ...axis2.id === void 0 ? {} : { id: axis2.id },
9568
9568
  position: value ? "l" : "b",
9569
- deleted: axis.hidden ?? false,
9569
+ deleted: axis2.hidden ?? false,
9570
9570
  scaling: {
9571
9571
  ...value && typeof scaling.min === "number" ? { min: scaling.min } : {},
9572
9572
  ...value && typeof scaling.max === "number" ? { max: scaling.max } : {}
9573
9573
  },
9574
- majorGridlines: !!axis.majorGridlines,
9575
- minorGridlines: !!axis.minorGridlines,
9576
- ...axis.majorGridlines?.spPr ? { majorGridlinesSpPr: axis.majorGridlines.spPr } : {},
9577
- ...axis.minorGridlines?.spPr ? { minorGridlinesSpPr: axis.minorGridlines.spPr } : {},
9574
+ majorGridlines: !!axis2.majorGridlines,
9575
+ minorGridlines: !!axis2.minorGridlines,
9576
+ ...axis2.majorGridlines?.spPr ? { majorGridlinesSpPr: axis2.majorGridlines.spPr } : {},
9577
+ ...axis2.minorGridlines?.spPr ? { minorGridlinesSpPr: axis2.minorGridlines.spPr } : {},
9578
9578
  ...value && typeof scaling.majorUnit === "number" ? { majorUnit: scaling.majorUnit } : {},
9579
9579
  ...value && typeof scaling.minorUnit === "number" ? { minorUnit: scaling.minorUnit } : {},
9580
- ...axis.spPr ? { spPr: axis.spPr } : {},
9581
- ...axis.numberFormat ? { numberFormat: axis.numberFormat } : {},
9582
- ...axis.tickLabels ? {} : { tickLabelPosition: "none" }
9580
+ ...axis2.spPr ? { spPr: axis2.spPr } : {},
9581
+ ...axis2.numberFormat ? { numberFormat: axis2.numberFormat } : {},
9582
+ ...axis2.tickLabels ? {} : { tickLabelPosition: "none" }
9583
9583
  }
9584
9584
  ];
9585
9585
  });
9586
9586
  }
9587
9587
  if (chartType === "funnel") {
9588
- const cat = space.plotArea.axes.find((axis) => axis.scaling?.kind === "cat")?.scaling;
9588
+ const cat = space.plotArea.axes.find((axis2) => axis2.scaling?.kind === "cat")?.scaling;
9589
9589
  if (cat?.kind === "cat" && typeof cat.gapWidth === "number")
9590
9590
  summary.funnelGapWidth = cat.gapWidth;
9591
9591
  }
@@ -10530,44 +10530,44 @@ function formatDate(date, unit, format) {
10530
10530
 
10531
10531
  // chart/render/chart-svg-date-axis.ts
10532
10532
  function chartDateAxis(model, plot, out) {
10533
- const axis = model.axes?.category?.source;
10533
+ const axis2 = model.axes?.category?.source;
10534
10534
  const values = model.dateCategories;
10535
- if (axis?.kind !== "date" || !values?.length) return void 0;
10535
+ if (axis2?.kind !== "date" || !values?.length) return void 0;
10536
10536
  const points2 = values.flatMap(
10537
10537
  (value, index) => value === null || !Number.isFinite(value) ? [] : [{ value, index }]
10538
10538
  ).sort((a2, b) => a2.value - b.value);
10539
10539
  if (!points2.length) return void 0;
10540
- const min = axis.scaling.min ?? points2[0].value;
10541
- const max = axis.scaling.max ?? points2.at(-1).value;
10540
+ const min = axis2.scaling.min ?? points2[0].value;
10541
+ const max = axis2.scaling.max ?? points2.at(-1).value;
10542
10542
  if (!Number.isFinite(min) || !Number.isFinite(max) || max < min) return void 0;
10543
10543
  const position = (value) => {
10544
10544
  const ratio = max === min ? 0.5 : (value - min) / (max - min);
10545
- const t = axis.scaling.orientation === "maxMin" ? 1 - ratio : ratio;
10545
+ const t = axis2.scaling.orientation === "maxMin" ? 1 - ratio : ratio;
10546
10546
  return model.horizontal ? plot.y + plot.h * (1 - t) : plot.x + plot.w * t;
10547
10547
  };
10548
10548
  const visible = points2.filter((p) => p.value >= min && p.value <= max);
10549
10549
  const unitOf = (unit2) => unit2 === "months" || unit2 === "years" ? unit2 : "days";
10550
- const unit = unitOf(axis.majorTimeUnit ?? axis.baseTimeUnit);
10550
+ const unit = unitOf(axis2.majorTimeUnit ?? axis2.baseTimeUnit);
10551
10551
  const ticks = calendarTicks(
10552
10552
  min,
10553
10553
  max,
10554
10554
  model.date1904 ?? false,
10555
10555
  unit,
10556
- Math.max(1, axis.majorUnit ?? 1)
10556
+ Math.max(1, axis2.majorUnit ?? 1)
10557
10557
  );
10558
10558
  const attrs2 = chartTextAttributes(model, "categoryAxis");
10559
10559
  const size = attrs2.size ?? 10;
10560
- const y = axis.position === "t" ? plot.y : plot.y + plot.h;
10560
+ const y = axis2.position === "t" ? plot.y : plot.y + plot.h;
10561
10561
  const paint2 = model.axes?.category?.line;
10562
10562
  const stroke = { color: paint2?.color ?? "#BFBFBF", width: paint2?.width ?? 1 };
10563
10563
  const mark = (serial, placement, length) => {
10564
- if (!placement || placement === "none" || axis.deleted) return;
10565
- const inward = axis.position === "t" ? length : -length;
10564
+ if (!placement || placement === "none" || axis2.deleted) return;
10565
+ const inward = axis2.position === "t" ? length : -length;
10566
10566
  const start = placement === "cross" ? -length : 0;
10567
10567
  const end = placement === "cross" ? length : placement === "in" ? inward : -inward;
10568
10568
  if (model.horizontal) {
10569
- const x = axis.position === "r" ? plot.x + plot.w : plot.x;
10570
- const direction = axis.position === "r" ? -1 : 1;
10569
+ const x = axis2.position === "r" ? plot.x + plot.w : plot.x;
10570
+ const direction = axis2.position === "r" ? -1 : 1;
10571
10571
  const a2 = placement === "cross" ? -length : 0;
10572
10572
  const b = placement === "cross" ? length : placement === "in" ? direction * length : -direction * length;
10573
10573
  out.push(
@@ -10579,19 +10579,19 @@ function chartDateAxis(model, plot, out) {
10579
10579
  );
10580
10580
  };
10581
10581
  ticks.forEach((serial, index) => {
10582
- if (index % Math.max(1, axis.tickMarkSkip ?? 1) === 0) mark(serial, axis.majorTickMark, 4);
10583
- if (axis.deleted || model.dataTable || axis.tickLabelPosition === "none" || index % Math.max(1, axis.tickLabelSkip ?? 1))
10582
+ if (index % Math.max(1, axis2.tickMarkSkip ?? 1) === 0) mark(serial, axis2.majorTickMark, 4);
10583
+ if (axis2.deleted || model.dataTable || axis2.tickLabelPosition === "none" || index % Math.max(1, axis2.tickLabelSkip ?? 1))
10584
10584
  return;
10585
10585
  const label = formatDate(
10586
10586
  excelSerialToDate(serial, model.date1904),
10587
10587
  unit,
10588
- axis.numberFormat?.formatCode
10588
+ axis2.numberFormat?.formatCode
10589
10589
  );
10590
10590
  if (model.horizontal)
10591
10591
  out.push(text(plot.x - 4, position(serial) + size * 0.3, label, { ...attrs2, anchor: "end" }));
10592
10592
  else {
10593
- const above = axis.tickLabelPosition === "high" || axis.tickLabelPosition !== "low" && axis.position === "t";
10594
- const baseline = axis.tickLabelPosition === "high" ? plot.y : axis.tickLabelPosition === "low" ? plot.y + plot.h : y;
10593
+ const above = axis2.tickLabelPosition === "high" || axis2.tickLabelPosition !== "low" && axis2.position === "t";
10594
+ const baseline = axis2.tickLabelPosition === "high" ? plot.y : axis2.tickLabelPosition === "low" ? plot.y + plot.h : y;
10595
10595
  out.push(
10596
10596
  text(position(serial), baseline + (above ? -4 : size + 3), label, {
10597
10597
  ...attrs2,
@@ -10600,15 +10600,15 @@ function chartDateAxis(model, plot, out) {
10600
10600
  );
10601
10601
  }
10602
10602
  });
10603
- if (axis.minorTickMark && axis.minorTickMark !== "none")
10603
+ if (axis2.minorTickMark && axis2.minorTickMark !== "none")
10604
10604
  for (const serial of calendarTicks(
10605
10605
  min,
10606
10606
  max,
10607
10607
  model.date1904 ?? false,
10608
- unitOf(axis.minorTimeUnit ?? axis.baseTimeUnit ?? unit),
10609
- Math.max(1, axis.minorUnit ?? 1)
10608
+ unitOf(axis2.minorTimeUnit ?? axis2.baseTimeUnit ?? unit),
10609
+ Math.max(1, axis2.minorUnit ?? 1)
10610
10610
  ))
10611
- mark(serial, axis.minorTickMark, 2.5);
10611
+ mark(serial, axis2.minorTickMark, 2.5);
10612
10612
  return {
10613
10613
  order: visible.map((p) => p.index),
10614
10614
  band: (index) => position(values[index] ?? min),
@@ -10753,12 +10753,12 @@ function chartLineDashArray(style, width) {
10753
10753
  }
10754
10754
 
10755
10755
  // chart/render/chart-svg-axes.ts
10756
- function axisTickText(value, axis, percent = false) {
10757
- return formatChartNumber(value, axis?.source.numberFormat?.formatCode) ?? formatAxisValue(value, percent);
10756
+ function axisTickText(value, axis2, percent = false) {
10757
+ return formatChartNumber(value, axis2?.source.numberFormat?.formatCode) ?? formatAxisValue(value, percent);
10758
10758
  }
10759
- function axisLine(model, axis, part, x1, y1, x2, y2) {
10760
- if (axis?.source.deleted) return "";
10761
- return styledAxisLine(x1, y1, x2, y2, axis?.line, chartStroke(model, part));
10759
+ function axisLine(model, axis2, part, x1, y1, x2, y2) {
10760
+ if (axis2?.source.deleted) return "";
10761
+ return styledAxisLine(x1, y1, x2, y2, axis2?.line, chartStroke(model, part));
10762
10762
  }
10763
10763
  function styledAxisLine(x1, y1, x2, y2, paint2, fallback) {
10764
10764
  const color2 = paint2?.color ?? fallback.color;
@@ -10770,7 +10770,7 @@ function styledAxisLine(x1, y1, x2, y2, paint2, fallback) {
10770
10770
  dash ? ` stroke-dasharray="${dash}"/>` : "/>"
10771
10771
  );
10772
10772
  }
10773
- function axisGridlines(model, axis, ticks, position, plot, vertical) {
10773
+ function axisGridlines(model, axis2, ticks, position, plot, vertical) {
10774
10774
  const draw2 = (values, paint2, minor2) => {
10775
10775
  const fallback = chartStroke(model, minor2 ? "gridlineMinor" : "gridlineMajor");
10776
10776
  return values.map((value) => {
@@ -10778,8 +10778,8 @@ function axisGridlines(model, axis, ticks, position, plot, vertical) {
10778
10778
  return vertical ? styledAxisLine(p, plot.y, p, plot.y + plot.h, paint2, fallback) : styledAxisLine(plot.x, p, plot.x + plot.w, p, paint2, fallback);
10779
10779
  }).join("");
10780
10780
  };
10781
- const major = !axis || axis.source.majorGridlines ? draw2(ticks, axis?.majorGrid, false) : "";
10782
- const minor = axis?.source.minorGridlines ? draw2(axis.minorTicks, axis.minorGrid, true) : "";
10781
+ const major = !axis2 || axis2.source.majorGridlines ? draw2(ticks, axis2?.majorGrid, false) : "";
10782
+ const minor = axis2?.source.minorGridlines ? draw2(axis2.minorTicks, axis2.minorGrid, true) : "";
10783
10783
  return major + minor;
10784
10784
  }
10785
10785
 
@@ -10848,20 +10848,20 @@ function computeLogValueRange(series2, logBase) {
10848
10848
  logBase
10849
10849
  };
10850
10850
  }
10851
- function computeValueRangeForAxis(series2, axis, plotHeightPx) {
10852
- const requestedLogBase = axis?.logBase ?? 10;
10853
- const logBase = axis?.logScale && Number.isFinite(requestedLogBase) && requestedLogBase > 1 ? requestedLogBase : axis?.logScale ? 10 : void 0;
10851
+ function computeValueRangeForAxis(series2, axis2, plotHeightPx) {
10852
+ const requestedLogBase = axis2?.logBase ?? 10;
10853
+ const logBase = axis2?.logScale && Number.isFinite(requestedLogBase) && requestedLogBase > 1 ? requestedLogBase : axis2?.logScale ? 10 : void 0;
10854
10854
  const automatic = logBase ? computeLogValueRange(series2, logBase) : computeAxisValueRange(series2, plotHeightPx);
10855
- return withAxisBounds(automatic, axis, logBase);
10855
+ return withAxisBounds(automatic, axis2, logBase);
10856
10856
  }
10857
- function computeStackedValueRangeForAxis(series2, catCount, axis, isPercent, plotSizePx) {
10857
+ function computeStackedValueRangeForAxis(series2, catCount, axis2, isPercent, plotSizePx) {
10858
10858
  if (isPercent) {
10859
10859
  return {
10860
10860
  ...percentStackedRange(series2, catCount, plotSizePx),
10861
- ...axis?.orientation === "maxMin" ? { reverseOrder: true } : {}
10861
+ ...axis2?.orientation === "maxMin" ? { reverseOrder: true } : {}
10862
10862
  };
10863
10863
  }
10864
- return withAxisBounds(computeAxisStackedValueRange(series2, catCount, plotSizePx), axis);
10864
+ return withAxisBounds(computeAxisStackedValueRange(series2, catCount, plotSizePx), axis2);
10865
10865
  }
10866
10866
  function percentStackedRange(series2, catCount, plotSizePx) {
10867
10867
  const shares = series2.map((entry3) => ({
@@ -10884,9 +10884,9 @@ function percentStackedRange(series2, catCount, plotSizePx) {
10884
10884
  ...unit !== void 0 && 100 % unit === 0 && min % unit === 0 ? { majorUnit: unit } : {}
10885
10885
  };
10886
10886
  }
10887
- function withAxisBounds(automatic, axis, logBase) {
10888
- const validMin = typeof axis?.min === "number" && Number.isFinite(axis.min) && (!logBase || axis.min > 0) ? axis.min : void 0;
10889
- const validMax = typeof axis?.max === "number" && Number.isFinite(axis.max) && (!logBase || axis.max > 0) ? axis.max : void 0;
10887
+ function withAxisBounds(automatic, axis2, logBase) {
10888
+ const validMin = typeof axis2?.min === "number" && Number.isFinite(axis2.min) && (!logBase || axis2.min > 0) ? axis2.min : void 0;
10889
+ const validMax = typeof axis2?.max === "number" && Number.isFinite(axis2.max) && (!logBase || axis2.max > 0) ? axis2.max : void 0;
10890
10890
  const min = validMin ?? automatic.min;
10891
10891
  let max = validMax ?? automatic.max;
10892
10892
  const majorUnit = validMin === void 0 && validMax === void 0 ? automatic.majorUnit : void 0;
@@ -10900,7 +10900,7 @@ function withAxisBounds(automatic, axis, logBase) {
10900
10900
  span: Math.max(span, Number.EPSILON),
10901
10901
  ...majorUnit !== void 0 ? { majorUnit } : {},
10902
10902
  ...logBase ? { logScale: true, logBase } : {},
10903
- ...axis?.orientation === "maxMin" ? { reverseOrder: true } : {}
10903
+ ...axis2?.orientation === "maxMin" ? { reverseOrder: true } : {}
10904
10904
  };
10905
10905
  }
10906
10906
  function valueToYLog(val, range2, topY, bottomY) {
@@ -10911,10 +10911,10 @@ function valueToYLog(val, range2, topY, bottomY) {
10911
10911
  return range2.reverseOrder ? topY + ratio * (bottomY - topY) : bottomY - ratio * (bottomY - topY);
10912
10912
  }
10913
10913
  function findLogAxis(axes) {
10914
- return axes?.find((axis) => axis.axisType === "valAx" && axis.logScale);
10914
+ return axes?.find((axis2) => axis2.axisType === "valAx" && axis2.logScale);
10915
10915
  }
10916
10916
  function computeValueRangeForChart(series2, axes, plotHeightPx) {
10917
- const primaryAxis = axes?.find((axis) => axis.axisType === "valAx" && axis.axPos === "l") ?? axes?.find((axis) => axis.axisType === "valAx" && axis.axPos !== "r");
10917
+ const primaryAxis = axes?.find((axis2) => axis2.axisType === "valAx" && axis2.axPos === "l") ?? axes?.find((axis2) => axis2.axisType === "valAx" && axis2.axPos !== "r");
10918
10918
  return computeValueRangeForAxis(series2, primaryAxis, plotHeightPx);
10919
10919
  }
10920
10920
 
@@ -10947,11 +10947,11 @@ function generateIntervalTicks(range2, unit) {
10947
10947
  const count = Math.min(Math.max(last - first2 + 1, 0), 2e3);
10948
10948
  return Array.from({ length: count }, (_, index) => (first2 + index) * unit);
10949
10949
  }
10950
- function generateAxisTicks(range2, axis, defaultIntervals) {
10950
+ function generateAxisTicks(range2, axis2, defaultIntervals) {
10951
10951
  if (range2.logScale && range2.logBase) {
10952
10952
  return generateLogTicks(range2);
10953
10953
  }
10954
- const explicit = generateIntervalTicks(range2, axis?.majorUnit ?? 0);
10954
+ const explicit = generateIntervalTicks(range2, axis2?.majorUnit ?? 0);
10955
10955
  if (explicit.length > 0) {
10956
10956
  return explicit;
10957
10957
  }
@@ -10964,12 +10964,12 @@ function generateAxisTicks(range2, axis, defaultIntervals) {
10964
10964
  (_, index) => range2.min + range2.span / defaultIntervals * index
10965
10965
  );
10966
10966
  }
10967
- function generateMinorAxisTicks(range2, axis) {
10968
- const minor = generateIntervalTicks(range2, axis?.minorUnit ?? 0);
10967
+ function generateMinorAxisTicks(range2, axis2) {
10968
+ const minor = generateIntervalTicks(range2, axis2?.minorUnit ?? 0);
10969
10969
  if (minor.length === 0) {
10970
10970
  return [];
10971
10971
  }
10972
- const majorUnit = axis?.majorUnit;
10972
+ const majorUnit = axis2?.majorUnit;
10973
10973
  if (!majorUnit || !Number.isFinite(majorUnit) || majorUnit <= 0) {
10974
10974
  return minor;
10975
10975
  }
@@ -10980,33 +10980,33 @@ function generateMinorAxisTicks(range2, axis) {
10980
10980
  }
10981
10981
 
10982
10982
  // chart/render/chart-view-axes.ts
10983
- function chartAxisRatio(value, scale, axis) {
10984
- const range2 = axis?.range;
10983
+ function chartAxisRatio(value, scale, axis2) {
10984
+ const range2 = axis2?.range;
10985
10985
  const ratio = range2?.logScale ? Math.log(Math.max(value, range2.min) / range2.min) / Math.log(range2.max / range2.min) : (value - scale.min) / (scale.max - scale.min || 1);
10986
10986
  return range2?.reverseOrder ? 1 - ratio : ratio;
10987
10987
  }
10988
- function chartAxisLabels(axis) {
10989
- return axis?.source.deleted !== true && axis?.source.tickLabelPosition !== "none";
10988
+ function chartAxisLabels(axis2) {
10989
+ return axis2?.source.deleted !== true && axis2?.source.tickLabelPosition !== "none";
10990
10990
  }
10991
- function options(axis) {
10991
+ function options(axis2) {
10992
10992
  return {
10993
- ...axis.scaling,
10994
- ...axis.scaling.logBase === void 0 ? {} : { logScale: true },
10995
- ...axis.majorUnit === void 0 ? {} : { majorUnit: axis.majorUnit },
10996
- ...axis.minorUnit === void 0 ? {} : { minorUnit: axis.minorUnit }
10993
+ ...axis2.scaling,
10994
+ ...axis2.scaling.logBase === void 0 ? {} : { logScale: true },
10995
+ ...axis2.majorUnit === void 0 ? {} : { majorUnit: axis2.majorUnit },
10996
+ ...axis2.minorUnit === void 0 ? {} : { minorUnit: axis2.minorUnit }
10997
10997
  };
10998
10998
  }
10999
10999
  function applyChartAxes(model, chart, color2) {
11000
11000
  if (!chart.axes?.length) return;
11001
11001
  const axes = chart.axes;
11002
- const linked = axes.filter((axis) => axis.id !== void 0 && chart.axisIds?.includes(axis.id));
11002
+ const linked = axes.filter((axis2) => axis2.id !== void 0 && chart.axisIds?.includes(axis2.id));
11003
11003
  const candidates = linked.length ? linked : axes;
11004
11004
  const xy = model.type === "scatter" || model.type === "bubble";
11005
- const value = candidates.find((axis) => axis.kind === "val" && !["b", "t"].includes(axis.position ?? "")) ?? candidates.find((axis) => axis.kind === "val");
11005
+ const value = candidates.find((axis2) => axis2.kind === "val" && !["b", "t"].includes(axis2.position ?? "")) ?? candidates.find((axis2) => axis2.kind === "val");
11006
11006
  const category = candidates.find(
11007
- (axis) => xy ? axis.kind === "val" && axis !== value : axis.kind === "cat" || axis.kind === "date"
11007
+ (axis2) => xy ? axis2.kind === "val" && axis2 !== value : axis2.kind === "cat" || axis2.kind === "date"
11008
11008
  );
11009
- const secondary = axes.find((axis) => axis.kind === "val" && axis !== value && axis !== category);
11009
+ const secondary = axes.find((axis2) => axis2.kind === "val" && axis2 !== value && axis2 !== category);
11010
11010
  const paint2 = (shape) => {
11011
11011
  const ln = shape?.line;
11012
11012
  const fill = ln?.fill;
@@ -11017,8 +11017,8 @@ function applyChartAxes(model, chart, color2) {
11017
11017
  ...ln?.dash === void 0 ? {} : { dash: ln.dash }
11018
11018
  };
11019
11019
  };
11020
- const bind = (axis, scale, values) => {
11021
- const opts = options(axis);
11020
+ const bind = (axis2, scale, values) => {
11021
+ const opts = options(axis2);
11022
11022
  const automatic = opts.logScale ? computeLogValueRange(
11023
11023
  [{ values: values ?? [] }],
11024
11024
  opts.logBase && Number.isFinite(opts.logBase) && opts.logBase > 1 ? opts.logBase : 10
@@ -11036,12 +11036,12 @@ function applyChartAxes(model, chart, color2) {
11036
11036
  scale.ticks = generateAxisTicks(range2, opts, 5);
11037
11037
  }
11038
11038
  return {
11039
- source: axis,
11039
+ source: axis2,
11040
11040
  range: range2,
11041
11041
  minorTicks: generateMinorAxisTicks(range2, opts),
11042
- line: paint2(axis.spPr),
11043
- majorGrid: paint2(axis.majorGridlinesSpPr),
11044
- minorGrid: paint2(axis.minorGridlinesSpPr)
11042
+ line: paint2(axis2.spPr),
11043
+ majorGrid: paint2(axis2.majorGridlinesSpPr),
11044
+ minorGrid: paint2(axis2.minorGridlinesSpPr)
11045
11045
  };
11046
11046
  };
11047
11047
  const out = {};
@@ -13676,13 +13676,13 @@ function scatter(model, area, out, size) {
13676
13676
  s.values.forEach((_, i) => {
13677
13677
  reach = Math.max(reach, radiusOf(s.sizes?.[i] ?? void 0) ?? 0);
13678
13678
  });
13679
- const widen = (s, length, axis) => {
13680
- if (axis?.range.logScale) return s;
13679
+ const widen = (s, length, axis2) => {
13680
+ if (axis2?.range.logScale) return s;
13681
13681
  const pad2 = reach * (s.max - s.min || 1) / Math.max(1, length - 2 * reach);
13682
13682
  return {
13683
13683
  ...s,
13684
- min: axis?.source.scaling.min === void 0 ? s.min - pad2 : s.min,
13685
- max: axis?.source.scaling.max === void 0 ? s.max + pad2 : s.max
13684
+ min: axis2?.source.scaling.min === void 0 ? s.min - pad2 : s.min,
13685
+ max: axis2?.source.scaling.max === void 0 ? s.max + pad2 : s.max
13686
13686
  };
13687
13687
  };
13688
13688
  const xView = widen(xs, plot.w, model.axes?.category);
@@ -14819,124 +14819,124 @@ function editChartGradientFill(old, edit, defaultColor, toColor = identity) {
14819
14819
 
14820
14820
  // chart/edit/axes.ts
14821
14821
  function chartAxisAt(space, target) {
14822
- const axis = space.plotArea.axes.find(
14822
+ const axis2 = space.plotArea.axes.find(
14823
14823
  (item, position) => typeof target === "string" ? item.kind === target : "index" in target ? position === target.index : item.id === target.id
14824
14824
  );
14825
- if (!axis) throw new RangeError(`No chart axis ${JSON.stringify(target)}`);
14826
- return axis;
14825
+ if (!axis2) throw new RangeError(`No chart axis ${JSON.stringify(target)}`);
14826
+ return axis2;
14827
14827
  }
14828
- function setNumber(axis, key, value) {
14828
+ function setNumber(axis2, key, value) {
14829
14829
  if (value === void 0) return;
14830
14830
  if (value !== null && !(Number.isFinite(value) && value > 0))
14831
14831
  throw new RangeError(`Chart axis ${key} must be a positive number`);
14832
- assignOrDelete(axis, key, value ?? void 0);
14832
+ assignOrDelete(axis2, key, value ?? void 0);
14833
14833
  }
14834
- function applyAxis(axis, edit) {
14835
- if (edit.position !== void 0) assignOrDelete(axis, "position", edit.position ?? void 0);
14834
+ function applyAxis(axis2, edit) {
14835
+ if (edit.position !== void 0) assignOrDelete(axis2, "position", edit.position ?? void 0);
14836
14836
  if (edit.crossBetween !== void 0)
14837
- assignOrDelete(axis, "crossBetween", edit.crossBetween ?? void 0);
14838
- if (edit.crossAxisId !== void 0) axis.crossAxisId = edit.crossAxisId;
14839
- if (edit.visible !== void 0) axis.deleted = !edit.visible;
14837
+ assignOrDelete(axis2, "crossBetween", edit.crossBetween ?? void 0);
14838
+ if (edit.crossAxisId !== void 0) axis2.crossAxisId = edit.crossAxisId;
14839
+ if (edit.visible !== void 0) axis2.deleted = !edit.visible;
14840
14840
  if (edit.title !== void 0)
14841
14841
  assignOrDelete(
14842
- axis,
14842
+ axis2,
14843
14843
  "title",
14844
- edit.title ? chartTitleWithText(axis.title, edit.title) : void 0
14844
+ edit.title ? chartTitleWithText(axis2.title, edit.title) : void 0
14845
14845
  );
14846
14846
  for (const key of ["min", "max"]) {
14847
14847
  const value = edit[key];
14848
14848
  if (value === void 0) continue;
14849
14849
  if (value !== null && !Number.isFinite(value))
14850
14850
  throw new RangeError(`Chart axis ${key} must be a finite number`);
14851
- assignOrDelete(axis.scaling, key, value ?? void 0);
14851
+ assignOrDelete(axis2.scaling, key, value ?? void 0);
14852
14852
  }
14853
- const { min, max } = axis.scaling;
14853
+ const { min, max } = axis2.scaling;
14854
14854
  if (min !== void 0 && max !== void 0 && min >= max)
14855
14855
  throw new RangeError("Chart axis minimum must be less than its maximum");
14856
- setNumber(axis, "majorUnit", edit.majorUnit);
14857
- setNumber(axis, "minorUnit", edit.minorUnit);
14856
+ setNumber(axis2, "majorUnit", edit.majorUnit);
14857
+ setNumber(axis2, "minorUnit", edit.minorUnit);
14858
14858
  if (edit.majorTimeUnit !== void 0)
14859
- assignOrDelete(axis, "majorTimeUnit", edit.majorTimeUnit ?? void 0);
14859
+ assignOrDelete(axis2, "majorTimeUnit", edit.majorTimeUnit ?? void 0);
14860
14860
  if (edit.minorTimeUnit !== void 0)
14861
- assignOrDelete(axis, "minorTimeUnit", edit.minorTimeUnit ?? void 0);
14861
+ assignOrDelete(axis2, "minorTimeUnit", edit.minorTimeUnit ?? void 0);
14862
14862
  if (edit.baseTimeUnit !== void 0)
14863
- assignOrDelete(axis, "baseTimeUnit", edit.baseTimeUnit ?? void 0);
14863
+ assignOrDelete(axis2, "baseTimeUnit", edit.baseTimeUnit ?? void 0);
14864
14864
  if (edit.logBase !== void 0) {
14865
14865
  if (edit.logBase !== null && !(edit.logBase >= 2 && edit.logBase <= 1e3))
14866
14866
  throw new RangeError("Chart axis log base must be from 2 to 1000");
14867
- assignOrDelete(axis.scaling, "logBase", edit.logBase ?? void 0);
14867
+ assignOrDelete(axis2.scaling, "logBase", edit.logBase ?? void 0);
14868
14868
  }
14869
- if (edit.reverse !== void 0) axis.scaling.orientation = edit.reverse ? "maxMin" : "minMax";
14869
+ if (edit.reverse !== void 0) axis2.scaling.orientation = edit.reverse ? "maxMin" : "minMax";
14870
14870
  if (edit.numberFormat !== void 0)
14871
14871
  assignOrDelete(
14872
- axis,
14872
+ axis2,
14873
14873
  "numberFormat",
14874
14874
  edit.numberFormat ? { formatCode: edit.numberFormat, sourceLinked: edit.numberFormatSourceLinked ?? false } : void 0
14875
14875
  );
14876
- else if (edit.numberFormatSourceLinked !== void 0 && axis.numberFormat)
14877
- axis.numberFormat.sourceLinked = edit.numberFormatSourceLinked;
14876
+ else if (edit.numberFormatSourceLinked !== void 0 && axis2.numberFormat)
14877
+ axis2.numberFormat.sourceLinked = edit.numberFormatSourceLinked;
14878
14878
  for (const key of ["auto", "noMultiLevelLabels"])
14879
- if (edit[key] !== void 0) axis[key] = edit[key];
14879
+ if (edit[key] !== void 0) axis2[key] = edit[key];
14880
14880
  if (edit.labelAlign !== void 0)
14881
- assignOrDelete(axis, "labelAlign", edit.labelAlign ?? void 0);
14881
+ assignOrDelete(axis2, "labelAlign", edit.labelAlign ?? void 0);
14882
14882
  for (const key of ["labelOffset", "tickLabelSkip", "tickMarkSkip"]) {
14883
14883
  const value = edit[key];
14884
14884
  if (value === void 0) continue;
14885
14885
  if (value !== null && (!Number.isInteger(value) || value < (key === "labelOffset" ? 0 : 1) || value > (key === "labelOffset" ? 1e3 : 2147483647)))
14886
14886
  throw new RangeError(`Invalid chart axis ${key}`);
14887
- assignOrDelete(axis, key, value ?? void 0);
14887
+ assignOrDelete(axis2, key, value ?? void 0);
14888
14888
  }
14889
- if (edit.majorTickMark !== void 0) axis.majorTickMark = edit.majorTickMark;
14890
- if (edit.minorTickMark !== void 0) axis.minorTickMark = edit.minorTickMark;
14891
- if (edit.tickLabelPosition !== void 0) axis.tickLabelPosition = edit.tickLabelPosition;
14889
+ if (edit.majorTickMark !== void 0) axis2.majorTickMark = edit.majorTickMark;
14890
+ if (edit.minorTickMark !== void 0) axis2.minorTickMark = edit.minorTickMark;
14891
+ if (edit.tickLabelPosition !== void 0) axis2.tickLabelPosition = edit.tickLabelPosition;
14892
14892
  if (edit.crosses !== void 0) {
14893
14893
  if (typeof edit.crosses === "number") {
14894
- delete axis.crosses;
14895
- axis.crossesAt = edit.crosses;
14894
+ delete axis2.crosses;
14895
+ axis2.crossesAt = edit.crosses;
14896
14896
  } else {
14897
- delete axis.crossesAt;
14898
- axis.crosses = edit.crosses;
14897
+ delete axis2.crossesAt;
14898
+ axis2.crosses = edit.crosses;
14899
14899
  }
14900
14900
  }
14901
14901
  if (edit.majorGridlines !== void 0) {
14902
- axis.majorGridlines = edit.majorGridlines;
14903
- if (!edit.majorGridlines) delete axis.majorGridlinesSpPr;
14902
+ axis2.majorGridlines = edit.majorGridlines;
14903
+ if (!edit.majorGridlines) delete axis2.majorGridlinesSpPr;
14904
14904
  }
14905
14905
  if (edit.minorGridlines !== void 0) {
14906
- axis.minorGridlines = edit.minorGridlines;
14907
- if (!edit.minorGridlines) delete axis.minorGridlinesSpPr;
14906
+ axis2.minorGridlines = edit.minorGridlines;
14907
+ if (!edit.minorGridlines) delete axis2.minorGridlinesSpPr;
14908
14908
  }
14909
14909
  if (edit.displayUnits !== void 0) {
14910
- if (axis.kind !== "val") throw new RangeError("Only a value axis has display units");
14910
+ if (axis2.kind !== "val") throw new RangeError("Only a value axis has display units");
14911
14911
  const units2 = edit.displayUnits;
14912
14912
  if (typeof units2 === "number" && (!Number.isFinite(units2) || units2 <= 0))
14913
14913
  throw new RangeError("Custom chart display units must be a positive finite number");
14914
- const { builtInUnit: _builtIn, customUnit: _custom, ...kept } = axis.displayUnits ?? {};
14914
+ const { builtInUnit: _builtIn, customUnit: _custom, ...kept } = axis2.displayUnits ?? {};
14915
14915
  assignOrDelete(
14916
- axis,
14916
+ axis2,
14917
14917
  "displayUnits",
14918
14918
  units2 === null ? void 0 : typeof units2 === "number" ? { ...kept, customUnit: units2 } : { ...kept, builtInUnit: units2 }
14919
14919
  );
14920
14920
  }
14921
14921
  }
14922
14922
  function setChartAxis(space, target, edit) {
14923
- if (edit.crossAxisId !== void 0 && !space.plotArea.axes.some((axis) => axis.id === edit.crossAxisId))
14923
+ if (edit.crossAxisId !== void 0 && !space.plotArea.axes.some((axis2) => axis2.id === edit.crossAxisId))
14924
14924
  throw new RangeError("The crossing axis does not exist");
14925
14925
  return editChartSpace(space, (draft) => applyAxis(chartAxisAt(draft, target), edit));
14926
14926
  }
14927
14927
  function setChartGridlineShape(space, target, which, shape) {
14928
14928
  return editChartSpace(space, (draft) => {
14929
- const axis = chartAxisAt(draft, target);
14929
+ const axis2 = chartAxisAt(draft, target);
14930
14930
  const key = which === "major" ? "majorGridlinesSpPr" : "minorGridlinesSpPr";
14931
14931
  if (shape === null) {
14932
- delete axis[key];
14932
+ delete axis2[key];
14933
14933
  return;
14934
14934
  }
14935
- const next = { ...axis[key] };
14935
+ const next = { ...axis2[key] };
14936
14936
  if (shape.line !== void 0) next.line = structuredClone(shape.line);
14937
14937
  if (shape.fill !== void 0) next.fill = structuredClone(shape.fill);
14938
- axis[key] = next;
14939
- axis[which === "major" ? "majorGridlines" : "minorGridlines"] = true;
14938
+ axis2[key] = next;
14939
+ axis2[which === "major" ? "majorGridlines" : "minorGridlines"] = true;
14940
14940
  });
14941
14941
  }
14942
14942
 
@@ -15022,7 +15022,16 @@ function repaintSeriesForFamily(series2, toLine) {
15022
15022
  shape.fill = structuredClone(shape.line.fill);
15023
15023
  }
15024
15024
  function clearPointPaint(series2, key) {
15025
- for (const point of series2.dataPoints) if (point.spPr) delete point.spPr[key];
15025
+ const emptied = (part) => Object.keys(part).every((name) => name === "sourceXml");
15026
+ for (const point of series2.dataPoints) {
15027
+ if (!point.spPr) continue;
15028
+ delete point.spPr[key];
15029
+ if (point.spPr.line && emptied(point.spPr.line)) delete point.spPr.line;
15030
+ if (emptied(point.spPr)) delete point.spPr;
15031
+ }
15032
+ series2.dataPoints = series2.dataPoints.filter(
15033
+ (point) => Object.keys(point).some((name) => name !== "index")
15034
+ );
15026
15035
  }
15027
15036
  function setChartSeriesFill(space, index, fill) {
15028
15037
  return editChartSpace(space, (draft) => {
@@ -15041,7 +15050,7 @@ function setChartSeriesLine(space, index, line3) {
15041
15050
  );
15042
15051
  });
15043
15052
  }
15044
- function setChartSeriesColor(space, index, color2) {
15053
+ function setChartSeriesColor(space, index, color2, options2 = {}) {
15045
15054
  return editChartSpace(space, (draft) => {
15046
15055
  const { series: series2 } = chartSeriesEntryAt(draft, index);
15047
15056
  const shape = series2.spPr ??= {};
@@ -15051,7 +15060,7 @@ function setChartSeriesColor(space, index, color2) {
15051
15060
  const fill = color2 ? { kind: "solid", color: withAlphaOf(color2, previous) } : void 0;
15052
15061
  if (line3) assignOrDelete(shape.line ??= {}, "fill", fill);
15053
15062
  else assignOrDelete(shape, "fill", fill);
15054
- clearPointPaint(series2, line3 ? "line" : "fill");
15063
+ if (!options2.keepPointColors) clearPointPaint(series2, line3 ? "line" : "fill");
15055
15064
  });
15056
15065
  }
15057
15066
  function setChartSeriesTransparency(space, index, percent) {
@@ -15135,10 +15144,10 @@ function chartTargetDraftShapes(draft, target) {
15135
15144
  return [chartAxisAt(draft, { index: target.axisIndex }).spPr ??= {}];
15136
15145
  case "majorGridlines":
15137
15146
  case "minorGridlines": {
15138
- const axis = chartAxisAt(draft, { index: target.axisIndex });
15147
+ const axis2 = chartAxisAt(draft, { index: target.axisIndex });
15139
15148
  const major = target.kind === "majorGridlines";
15140
- axis[major ? "majorGridlines" : "minorGridlines"] = true;
15141
- return [axis[major ? "majorGridlinesSpPr" : "minorGridlinesSpPr"] ??= {}];
15149
+ axis2[major ? "majorGridlines" : "minorGridlines"] = true;
15150
+ return [axis2[major ? "majorGridlinesSpPr" : "minorGridlinesSpPr"] ??= {}];
15142
15151
  }
15143
15152
  case "dataLabels": {
15144
15153
  if (target.seriesIndex === void 0) {
@@ -16468,9 +16477,9 @@ var CATEGORY_ONLY = [
16468
16477
  "minorTimeUnit"
16469
16478
  ];
16470
16479
  var VALUE_ONLY = ["crossBetween", "displayUnits"];
16471
- function convertChartAxis(axis, kind) {
16472
- if (axis.kind === kind) return axis;
16473
- const next = structuredClone(axis);
16480
+ function convertChartAxis(axis2, kind) {
16481
+ if (axis2.kind === kind) return axis2;
16482
+ const next = structuredClone(axis2);
16474
16483
  next.kind = kind;
16475
16484
  if (kind === "val") {
16476
16485
  for (const key of CATEGORY_ONLY) delete next[key];
@@ -16503,7 +16512,7 @@ var SWITCHABLE = {
16503
16512
  stock: false,
16504
16513
  surface: true
16505
16514
  };
16506
- function elementFor(kind, is3D) {
16515
+ function chartGroupElement(kind, is3D) {
16507
16516
  const match = Object.entries(CHART_GROUP_ELEMENTS).find(
16508
16517
  ([, value]) => value.kind === kind && value.is3D === is3D
16509
16518
  );
@@ -16519,7 +16528,7 @@ function groupingFor(element2, grouping) {
16519
16528
  var horizontalBars = (group2) => group2.kind === "bar" && group2.barDirection === "bar";
16520
16529
  function newGroup(base, target, series2) {
16521
16530
  const is3D = target.is3D ?? (base.is3D && SWITCHABLE[target.kind] === true);
16522
- const element2 = elementFor(target.kind, is3D);
16531
+ const element2 = chartGroupElement(target.kind, is3D);
16523
16532
  const group2 = { kind: target.kind, element: element2, is3D, series: series2, axisIds: [] };
16524
16533
  const allowed = GROUP_FIELDS[element2] ?? [];
16525
16534
  for (const key of allowed)
@@ -16545,11 +16554,11 @@ function newGroup(base, target, series2) {
16545
16554
  return group2;
16546
16555
  }
16547
16556
  function withSeriesAxis(space, group2, axes) {
16548
- if ((group2.element === "line3DChart" || group2.kind === "surface") && !axes.some((axis) => axis.kind === "ser")) {
16557
+ if ((group2.element === "line3DChart" || group2.kind === "surface") && !axes.some((axis2) => axis2.kind === "ser")) {
16549
16558
  const id = Math.max(
16550
16559
  0,
16551
16560
  ...[...space.plotArea.axes, ...axes].flatMap(
16552
- (axis) => axis.id === void 0 ? [] : [axis.id]
16561
+ (axis2) => axis2.id === void 0 ? [] : [axis2.id]
16553
16562
  )
16554
16563
  ) + 1;
16555
16564
  axes.push({
@@ -16569,11 +16578,11 @@ function withSeriesAxis(space, group2, axes) {
16569
16578
  function groupAxes(space, base, group2) {
16570
16579
  if (!groupHasAxes(group2.element)) return [];
16571
16580
  const xy = isXYChartKind(group2.kind);
16572
- const byId = (id) => space.plotArea.axes.find((axis) => axis.id === id);
16573
- const old = base.axisIds.map(byId).filter((axis) => axis !== void 0);
16581
+ const byId = (id) => space.plotArea.axes.find((axis2) => axis2.id === id);
16582
+ const old = base.axisIds.map(byId).filter((axis2) => axis2 !== void 0);
16574
16583
  if (old.length < 2) {
16575
16584
  const taken = new Set(
16576
- space.plotArea.axes.flatMap((axis) => axis.id === void 0 ? [] : [axis.id])
16585
+ space.plotArea.axes.flatMap((axis2) => axis2.id === void 0 ? [] : [axis2.id])
16577
16586
  );
16578
16587
  const free = DEFAULT_CHART_AXIS_IDS.every((id) => !taken.has(id));
16579
16588
  const top = Math.max(0, ...taken);
@@ -16581,9 +16590,9 @@ function groupAxes(space, base, group2) {
16581
16590
  return withSeriesAxis(space, group2, defaultChartAxes(horizontalBars(group2), xy, ids));
16582
16591
  }
16583
16592
  const rotate = horizontalBars(base) !== horizontalBars(group2);
16584
- const axes = old.slice(0, group2.element === "line3DChart" || group2.is3D ? 3 : 2).map((axis, i) => {
16585
- const kind = i === 0 ? xy ? "val" : axis.kind === "val" ? "cat" : axis.kind : axis.kind;
16586
- const next = convertChartAxis(axis, kind);
16593
+ const axes = old.slice(0, group2.element === "line3DChart" || group2.is3D ? 3 : 2).map((axis2, i) => {
16594
+ const kind = i === 0 ? xy ? "val" : axis2.kind === "val" ? "cat" : axis2.kind : axis2.kind;
16595
+ const next = convertChartAxis(axis2, kind);
16587
16596
  if (rotate) assignOrDelete(next, "position", rotatedAxisPosition(next.position));
16588
16597
  if (i === 1 && next.kind === "val" && xy !== isXYChartKind(base.kind))
16589
16598
  next.crossBetween = xy ? "midCat" : "between";
@@ -16608,7 +16617,7 @@ function setChartType(space, target) {
16608
16617
  if (group2.is3D && target.kind === "bar" && group2.grouping === "standard" && base.axisIds.length < 3)
16609
16618
  group2.grouping = "clustered";
16610
16619
  const axes = groupAxes(draft, base, group2);
16611
- group2.axisIds = axes.flatMap((axis) => axis.id === void 0 ? [] : [axis.id]);
16620
+ group2.axisIds = axes.flatMap((axis2) => axis2.id === void 0 ? [] : [axis2.id]);
16612
16621
  draft.plotArea.groups = [group2];
16613
16622
  draft.plotArea.axes = axes;
16614
16623
  if (!group2.is3D) {
@@ -16744,15 +16753,15 @@ function chartSupportsQuickLayout(space) {
16744
16753
  return !!group2 && CHART_QUICK_LAYOUT_KINDS.has(group2.kind);
16745
16754
  }
16746
16755
  function applyAxes(draft, layout) {
16747
- for (const axis of draft.plotArea.axes) {
16748
- const value = axis.kind === "val";
16749
- if (!value && axis.kind !== "cat" && axis.kind !== "date") continue;
16756
+ for (const axis2 of draft.plotArea.axes) {
16757
+ const value = axis2.kind === "val";
16758
+ if (!value && axis2.kind !== "cat" && axis2.kind !== "date") continue;
16750
16759
  const titled = value ? layout.valAxisTitle : layout.catAxisTitle;
16751
- if (!titled) delete axis.title;
16752
- else axis.title ??= newChartTitle(CHART_QUICK_LAYOUT_AXIS_TITLE);
16753
- axis.majorGridlines = value && layout.majorGridlines;
16754
- axis.minorGridlines = value && layout.minorGridlines;
16755
- axis.deleted = value ? !layout.valueAxis : false;
16760
+ if (!titled) delete axis2.title;
16761
+ else axis2.title ??= newChartTitle(CHART_QUICK_LAYOUT_AXIS_TITLE);
16762
+ axis2.majorGridlines = value && layout.majorGridlines;
16763
+ axis2.minorGridlines = value && layout.minorGridlines;
16764
+ axis2.deleted = value ? !layout.valueAxis : false;
16756
16765
  }
16757
16766
  }
16758
16767
  function applyDataTable(draft, layout) {
@@ -16803,8 +16812,8 @@ function applyChartQuickLayout(space, n2, only = ALL_PARTS) {
16803
16812
  }
16804
16813
  function matches(space, layout) {
16805
16814
  const axes = space.plotArea.axes;
16806
- const val = axes.find((axis) => axis.kind === "val");
16807
- const cat = axes.find((axis) => axis.kind === "cat" || axis.kind === "date");
16815
+ const val = axes.find((axis2) => axis2.kind === "val");
16816
+ const cat = axes.find((axis2) => axis2.kind === "cat" || axis2.kind === "date");
16808
16817
  const bar = space.plotArea.groups.find((group2) => group2.kind === "bar");
16809
16818
  const labels2 = space.plotArea.groups.some(
16810
16819
  (group2) => group2.dataLabels && group2.dataLabels.deleted !== true && group2.dataLabels.showValue
@@ -16862,6 +16871,12 @@ var RANGES = {
16862
16871
  firstSliceAngle: [0, 360],
16863
16872
  holeSize: [1, 90]
16864
16873
  };
16874
+ var isChartGroupOption = (key) => Object.hasOwn(RANGES, key);
16875
+ function assertChartGroupOption(key, value) {
16876
+ const [min, max] = RANGES[key];
16877
+ if (!Number.isInteger(value) || value < min || value > max)
16878
+ throw new RangeError(`Chart ${key} must be a whole number from ${min} to ${max}`);
16879
+ }
16865
16880
  function setChartGroupOptions(space, seriesIndex, edit) {
16866
16881
  return editChartSpace(space, (draft) => {
16867
16882
  const { group: group2 } = chartSeriesEntryAt(draft, seriesIndex);
@@ -16874,9 +16889,7 @@ function setChartGroupOptions(space, seriesIndex, edit) {
16874
16889
  delete group2[key];
16875
16890
  continue;
16876
16891
  }
16877
- const [min, max] = RANGES[key];
16878
- if (!Number.isInteger(value) || value < min || value > max)
16879
- throw new RangeError(`Chart ${key} must be a whole number from ${min} to ${max}`);
16892
+ assertChartGroupOption(key, value);
16880
16893
  group2[key] = value;
16881
16894
  }
16882
16895
  });
@@ -17209,9 +17222,9 @@ function setChartView3D(space, edit) {
17209
17222
 
17210
17223
  // chart/edit/secondary-axis.ts
17211
17224
  function axisPair(space, group2) {
17212
- if (group2.axisIds.length !== 2 || new Set(space.plotArea.axes.map((axis) => axis.id)).size !== space.plotArea.axes.length)
17225
+ if (group2.axisIds.length !== 2 || new Set(space.plotArea.axes.map((axis2) => axis2.id)).size !== space.plotArea.axes.length)
17213
17226
  return void 0;
17214
- const [x, y] = group2.axisIds.map((id) => space.plotArea.axes.find((axis) => axis.id === id));
17227
+ const [x, y] = group2.axisIds.map((id) => space.plotArea.axes.find((axis2) => axis2.id === id));
17215
17228
  return x && y && ["cat", "date"].includes(x.kind) && y.kind === "val" && x.crossAxisId === y.id && y.crossAxisId === x.id ? [x, y] : void 0;
17216
17229
  }
17217
17230
  function chartSeriesSecondaryAxisSupported(space, seriesIndex) {
@@ -17240,7 +17253,7 @@ function isolateSeries(space, index) {
17240
17253
  space.plotArea.groups.splice(groupIndex, 1, ...segments);
17241
17254
  return chartSeriesEntryAt(space, index).group;
17242
17255
  }
17243
- function setChartSeriesSecondaryAxis(space, seriesIndex, secondary) {
17256
+ function setChartSeriesSecondaryAxis(space, seriesIndex, secondary, options2 = {}) {
17244
17257
  if (!chartSeriesSecondaryAxisSupported(space, seriesIndex))
17245
17258
  throw new RangeError(
17246
17259
  "Secondary-axis editing needs a later series in a supported vertical 2D chart"
@@ -17254,12 +17267,12 @@ function setChartSeriesSecondaryAxis(space, seriesIndex, secondary) {
17254
17267
  return;
17255
17268
  }
17256
17269
  if (group2.axisIds[1] !== primary.axisIds[1]) return;
17257
- const existing = draft.plotArea.axes.filter((axis) => axis.kind === "cat" || axis.kind === "date").map((axis) => axisPair(draft, { ...primary, axisIds: [axis.id, axis.crossAxisId] })).find((pair) => pair && pair[1].id !== primary.axisIds[1]);
17270
+ const existing = draft.plotArea.axes.filter((axis2) => axis2.kind === "cat" || axis2.kind === "date").map((axis2) => axisPair(draft, { ...primary, axisIds: [axis2.id, axis2.crossAxisId] })).find((pair) => pair && pair[1].id !== primary.axisIds[1]);
17258
17271
  if (existing) {
17259
- group2.axisIds = existing.map((axis) => axis.id);
17272
+ group2.axisIds = existing.map((axis2) => axis2.id);
17260
17273
  return;
17261
17274
  }
17262
- const used = new Set(draft.plotArea.axes.map((axis) => axis.id));
17275
+ const used = new Set(draft.plotArea.axes.map((axis2) => axis2.id));
17263
17276
  const allocate = () => {
17264
17277
  let id = 500000003;
17265
17278
  while (used.has(id)) id++;
@@ -17267,7 +17280,9 @@ function setChartSeriesSecondaryAxis(space, seriesIndex, secondary) {
17267
17280
  used.add(id);
17268
17281
  return id;
17269
17282
  };
17270
- const ids = [allocate(), allocate()];
17283
+ const ids = options2.axisIds ? [...options2.axisIds] : [allocate(), allocate()];
17284
+ if (options2.axisIds && (ids[0] === ids[1] || ids.some((id) => used.has(id) || !Number.isSafeInteger(id) || id < 0 || id > 4294967295)))
17285
+ throw new RangeError("Secondary axis ids must be two unused whole numbers");
17271
17286
  const horizontal = primary.barDirection === "bar";
17272
17287
  const axes = defaultChartAxes(horizontal, false, ids);
17273
17288
  axes[0] = { ...structuredClone(axisPair(draft, primary)[0]), id: ids[0], crossAxisId: ids[1] };
@@ -17413,6 +17428,58 @@ function applyChartSpaceDataSheetEdits(space, edits) {
17413
17428
  return editChartSpace(next, (draft) => applyStandardChartLayout(draft, layoutSheet, count));
17414
17429
  }
17415
17430
 
17431
+ // chart/edit/new-chart-minimal.ts
17432
+ var VARIED = /* @__PURE__ */ new Set(["pie", "doughnut", "ofPie"]);
17433
+ function schemaGrouping(element2, grouping) {
17434
+ const bar = element2 === "barChart" || element2 === "bar3DChart";
17435
+ if (bar) return grouping ?? "clustered";
17436
+ return grouping === void 0 || grouping === "clustered" ? "standard" : grouping;
17437
+ }
17438
+ function minimalChartGroup(target, series2) {
17439
+ const is3D = target.is3D ?? false;
17440
+ const element2 = chartGroupElement(target.kind, is3D);
17441
+ const allowed = GROUP_FIELDS[element2] ?? [];
17442
+ const own = isXYChartKind(target.kind) ? series2.map((item) => stripSeriesForKind(item, "bar", target.kind)) : series2;
17443
+ const group2 = { kind: target.kind, element: element2, is3D, series: own, axisIds: [] };
17444
+ if (target.kind === "bar") group2.barDirection = target.barDirection ?? "col";
17445
+ if (allowed.includes("grouping")) group2.grouping = schemaGrouping(element2, target.grouping);
17446
+ if (allowed.includes("varyColors")) group2.varyColors = VARIED.has(target.kind);
17447
+ if (target.kind === "ofPie") group2.ofPieType = "pie";
17448
+ if (target.kind === "scatter") group2.scatterStyle = "lineMarker";
17449
+ if (target.kind === "radar") group2.radarStyle = "marker";
17450
+ return group2;
17451
+ }
17452
+ function axis(kind, id, crossAxisId, position) {
17453
+ return {
17454
+ kind,
17455
+ id,
17456
+ crossAxisId,
17457
+ position,
17458
+ scaling: { orientation: "minMax" },
17459
+ deleted: false,
17460
+ majorGridlines: false,
17461
+ minorGridlines: false
17462
+ };
17463
+ }
17464
+ function minimalChartAxes(group2, ids) {
17465
+ if (!groupHasAxes(group2.element)) return [];
17466
+ const [first2, second, third] = ids;
17467
+ const horizontal = group2.kind === "bar" && group2.barDirection === "bar";
17468
+ const axes = [
17469
+ axis(isXYChartKind(group2.kind) ? "val" : "cat", first2, second, horizontal ? "l" : "b"),
17470
+ axis("val", second, first2, horizontal ? "b" : "l")
17471
+ ];
17472
+ if (group2.element === "line3DChart" || group2.kind === "surface")
17473
+ axes.push(axis("ser", third, second, "b"));
17474
+ return axes;
17475
+ }
17476
+ function minimalChartTitle(text2) {
17477
+ const rich = chartTextBodyFromXml(
17478
+ `<a:bodyPr/><a:lstStyle/><a:p><a:r><a:t>${escapeText(text2)}</a:t></a:r></a:p>`
17479
+ );
17480
+ return { tx: { rich, text: rich.text }, text: rich.text, overlay: false };
17481
+ }
17482
+
17416
17483
  // chart/edit/new-chart.ts
17417
17484
  var DEFAULT_CHART_DATA_SHEET = {
17418
17485
  categories: ["Category 1", "Category 2", "Category 3", "Category 4"],
@@ -17422,21 +17489,84 @@ var DEFAULT_CHART_DATA_SHEET = {
17422
17489
  { name: "Series 3", values: [2, 2, 3, 5] }
17423
17490
  ]
17424
17491
  };
17425
- function series(sheet, index, sheetName) {
17492
+ var CATEGORY_ONLY2 = [
17493
+ "labelAlign",
17494
+ "noMultiLevelLabels",
17495
+ "tickLabelSkip",
17496
+ "tickMarkSkip"
17497
+ ];
17498
+ function withDateAxis(space) {
17499
+ return editChartSpace(space, (draft) => {
17500
+ const axis2 = draft.plotArea.axes[0];
17501
+ if (axis2?.kind !== "cat") return;
17502
+ axis2.kind = "date";
17503
+ for (const key of CATEGORY_ONLY2) delete axis2[key];
17504
+ });
17505
+ }
17506
+ function series(sheet, index, options2, sheetName) {
17426
17507
  const entry3 = sheet.series[index];
17508
+ if (options2.data === "literal")
17509
+ return {
17510
+ index,
17511
+ order: index,
17512
+ tx: { value: entry3.name, text: entry3.name },
17513
+ ...options2.profile === "minimal" ? {} : { invertIfNegative: false },
17514
+ dataPoints: [],
17515
+ categories: categorySource(sheet.categories, void 0),
17516
+ values: numberSource(entry3.values, void 0)
17517
+ };
17427
17518
  const formulas = standardChartFormulas(sheetName, index, sheet.categories.length);
17428
17519
  return {
17429
17520
  index,
17430
17521
  order: index,
17431
17522
  tx: { reference: categorySource([entry3.name], void 0, formulas.name), text: entry3.name },
17432
- invertIfNegative: false,
17523
+ ...options2.profile === "minimal" ? {} : { invertIfNegative: false },
17433
17524
  dataPoints: [],
17434
17525
  categories: categorySource(sheet.categories, void 0, formulas.categories),
17435
17526
  values: numberSource(entry3.values, void 0, formulas.values)
17436
17527
  };
17437
17528
  }
17438
- function newChartSpace(sheet = DEFAULT_CHART_DATA_SHEET, target, options2 = {}) {
17439
- const sheetName = options2.sheetName ?? DEFAULT_CHART_SHEET_NAME;
17529
+ function axisIds(options2) {
17530
+ const ids = options2.axisIds ?? [];
17531
+ const [first2, second, third] = [
17532
+ ids[0] ?? DEFAULT_CHART_AXIS_IDS[0],
17533
+ ids[1] ?? DEFAULT_CHART_AXIS_IDS[1],
17534
+ ids[2] ?? DEFAULT_CHART_AXIS_IDS[1] + 1
17535
+ ];
17536
+ for (const id of [first2, second, third])
17537
+ if (!Number.isSafeInteger(id) || id < 0)
17538
+ throw new RangeError("Chart axis ids must be non-negative whole numbers");
17539
+ if ((/* @__PURE__ */ new Set([first2, second, third])).size !== 3)
17540
+ throw new RangeError("Chart axis ids must differ");
17541
+ return [first2, second, third];
17542
+ }
17543
+ function withAxisIds(space, ids) {
17544
+ return editChartSpace(space, (draft) => {
17545
+ const map = /* @__PURE__ */ new Map();
17546
+ draft.plotArea.axes.forEach((axis2, position) => {
17547
+ if (axis2.id !== void 0 && ids[position] !== void 0) map.set(axis2.id, ids[position]);
17548
+ });
17549
+ const renumber = (id) => map.get(id) ?? id;
17550
+ for (const axis2 of draft.plotArea.axes) {
17551
+ if (axis2.id !== void 0) axis2.id = renumber(axis2.id);
17552
+ if (axis2.crossAxisId !== void 0) axis2.crossAxisId = renumber(axis2.crossAxisId);
17553
+ }
17554
+ for (const group2 of draft.plotArea.groups) group2.axisIds = group2.axisIds.map(renumber);
17555
+ });
17556
+ }
17557
+ function withGroupSettings(space, settings) {
17558
+ return editChartSpace(space, (draft) => {
17559
+ const group2 = draft.plotArea.groups[0];
17560
+ const allowed = GROUP_FIELDS[group2.element] ?? [];
17561
+ for (const [key, value] of Object.entries(settings)) {
17562
+ if (value === void 0) continue;
17563
+ if (!allowed.includes(key)) throw new RangeError(`A ${group2.element} has no ${key} setting`);
17564
+ if (isChartGroupOption(key)) assertChartGroupOption(key, value);
17565
+ Object.assign(group2, { [key]: structuredClone(value) });
17566
+ }
17567
+ });
17568
+ }
17569
+ function officeChartSpace(sheet, target, options2, sheetName) {
17440
17570
  const group2 = {
17441
17571
  kind: "bar",
17442
17572
  element: "barChart",
@@ -17446,10 +17576,10 @@ function newChartSpace(sheet = DEFAULT_CHART_DATA_SHEET, target, options2 = {})
17446
17576
  varyColors: false,
17447
17577
  gapWidth: 219,
17448
17578
  overlap: -27,
17449
- series: sheet.series.map((_, index) => series(sheet, index, sheetName)),
17579
+ series: sheet.series.map((_, index) => series(sheet, index, options2, sheetName)),
17450
17580
  axisIds: [...DEFAULT_CHART_AXIS_IDS]
17451
17581
  };
17452
- let space = {
17582
+ const space = {
17453
17583
  roundedCorners: false,
17454
17584
  autoTitleDeleted: options2.title === void 0,
17455
17585
  plotArea: { layout: {}, groups: [group2], axes: defaultChartAxes(false, false) },
@@ -17458,9 +17588,36 @@ function newChartSpace(sheet = DEFAULT_CHART_DATA_SHEET, target, options2 = {})
17458
17588
  };
17459
17589
  const column = !target || target.kind === "bar" && (target.barDirection ?? "col") === "col";
17460
17590
  if (target && !(column && !target.is3D && (target.grouping ?? "clustered") === "clustered"))
17461
- space = setChartType(space, target);
17462
- if (options2.title !== void 0) space = setChartTitle(space, options2.title);
17463
- return setChartLegend(space, { position: "b" });
17591
+ return setChartType(space, target);
17592
+ return space;
17593
+ }
17594
+ function minimalChartSpace(sheet, target, options2, sheetName) {
17595
+ const group2 = minimalChartGroup(
17596
+ target ?? { kind: "bar" },
17597
+ sheet.series.map((_, index) => series(sheet, index, options2, sheetName))
17598
+ );
17599
+ if (group2.kind === "stock" && ![3, 4].includes(group2.series.length))
17600
+ throw new RangeError("A stock chart requires three or four price series");
17601
+ const axes = minimalChartAxes(group2, axisIds(options2));
17602
+ group2.axisIds = axes.flatMap((axis2) => axis2.id === void 0 ? [] : [axis2.id]);
17603
+ return {
17604
+ autoTitleDeleted: options2.title === void 0,
17605
+ plotArea: { layout: {}, groups: [group2], axes },
17606
+ plotVisibleOnly: true,
17607
+ displayBlanksAs: "gap"
17608
+ };
17609
+ }
17610
+ function newChartSpace(sheet = DEFAULT_CHART_DATA_SHEET, target, options2 = {}) {
17611
+ const sheetName = options2.sheetName ?? DEFAULT_CHART_SHEET_NAME;
17612
+ let space = options2.profile === "minimal" ? minimalChartSpace(sheet, target, options2, sheetName) : officeChartSpace(sheet, target, options2, sheetName);
17613
+ if (options2.profile !== "minimal" && options2.axisIds !== void 0)
17614
+ space = withAxisIds(space, axisIds(options2));
17615
+ if (options2.dateAxis) space = withDateAxis(space);
17616
+ if (options2.group) space = withGroupSettings(space, options2.group);
17617
+ if (options2.title !== void 0)
17618
+ space = options2.profile === "minimal" ? { ...space, title: minimalChartTitle(options2.title), autoTitleDeleted: false } : setChartTitle(space, options2.title);
17619
+ const legend = options2.legendPosition === void 0 ? "b" : options2.legendPosition;
17620
+ return legend === null ? space : setChartLegend(space, { position: legend });
17464
17621
  }
17465
17622
 
17466
17623
  // chart/edit/apply-appearance.ts
@@ -17588,21 +17745,21 @@ function chartExStyleSpace(space) {
17588
17745
  } : {},
17589
17746
  plotArea: {
17590
17747
  ...styles(space.plotArea),
17591
- axes: space.plotArea.axes.map((axis) => ({
17592
- kind: axis.scaling?.kind ?? "val",
17748
+ axes: space.plotArea.axes.map((axis2) => ({
17749
+ kind: axis2.scaling?.kind ?? "val",
17593
17750
  scaling: {},
17594
- ...styles(axis),
17595
- ...axis.title ? {
17751
+ ...styles(axis2),
17752
+ ...axis2.title ? {
17596
17753
  title: {
17597
- ...styles(axis.title),
17598
- ...axis.title.tx?.rich ? { tx: { rich: axis.title.tx.rich, text: axis.title.tx.rich.text } } : {}
17754
+ ...styles(axis2.title),
17755
+ ...axis2.title.tx?.rich ? { tx: { rich: axis2.title.tx.rich, text: axis2.title.tx.rich.text } } : {}
17599
17756
  }
17600
17757
  } : {},
17601
- ...axis.id === void 0 ? {} : { id: axis.id },
17602
- majorGridlines: !!axis.majorGridlines,
17603
- minorGridlines: !!axis.minorGridlines,
17604
- ...axis.majorGridlines?.spPr ? { majorGridlinesSpPr: axis.majorGridlines.spPr } : {},
17605
- ...axis.minorGridlines?.spPr ? { minorGridlinesSpPr: axis.minorGridlines.spPr } : {}
17758
+ ...axis2.id === void 0 ? {} : { id: axis2.id },
17759
+ majorGridlines: !!axis2.majorGridlines,
17760
+ minorGridlines: !!axis2.minorGridlines,
17761
+ ...axis2.majorGridlines?.spPr ? { majorGridlinesSpPr: axis2.majorGridlines.spPr } : {},
17762
+ ...axis2.minorGridlines?.spPr ? { minorGridlinesSpPr: axis2.minorGridlines.spPr } : {}
17606
17763
  })),
17607
17764
  groups: space.plotArea.series.map((series2) => ({
17608
17765
  kind: "bar",
@@ -17638,19 +17795,19 @@ function editChartExStyle(space, operation) {
17638
17795
  if (after.title.tx?.rich) draft.title.tx = { ...draft.title.tx, rich: after.title.tx.rich };
17639
17796
  }
17640
17797
  if (draft.legend && after.legend) copyStyle(draft.legend, after.legend);
17641
- draft.plotArea.axes.forEach((axis, index) => {
17798
+ draft.plotArea.axes.forEach((axis2, index) => {
17642
17799
  const edited = after.plotArea.axes[index];
17643
17800
  if (!edited) return;
17644
- copyStyle(axis, edited);
17645
- if (axis.title && edited.title) {
17646
- copyStyle(axis.title, edited.title);
17647
- if (edited.title.tx?.rich) axis.title.tx = { ...axis.title.tx, rich: edited.title.tx.rich };
17801
+ copyStyle(axis2, edited);
17802
+ if (axis2.title && edited.title) {
17803
+ copyStyle(axis2.title, edited.title);
17804
+ if (edited.title.tx?.rich) axis2.title.tx = { ...axis2.title.tx, rich: edited.title.tx.rich };
17648
17805
  }
17649
17806
  for (const key of ["majorGridlines", "minorGridlines"]) {
17650
17807
  const shape = edited[key === "majorGridlines" ? "majorGridlinesSpPr" : "minorGridlinesSpPr"];
17651
17808
  if (shape) {
17652
- axis[key] ??= {};
17653
- axis[key].spPr = structuredClone(shape);
17809
+ axis2[key] ??= {};
17810
+ axis2[key].spPr = structuredClone(shape);
17654
17811
  }
17655
17812
  }
17656
17813
  });
@@ -17695,10 +17852,10 @@ function shapes(space, target) {
17695
17852
  case "axis":
17696
17853
  case "majorGridlines":
17697
17854
  case "minorGridlines": {
17698
- const axis = space.plotArea.axes[target.axisIndex];
17699
- if (!axis) throw new RangeError("No chart axis at index.");
17700
- if (target.kind === "axis") return [axis.spPr ??= {}];
17701
- return [(axis[target.kind] ??= {}).spPr ??= {}];
17855
+ const axis2 = space.plotArea.axes[target.axisIndex];
17856
+ if (!axis2) throw new RangeError("No chart axis at index.");
17857
+ if (target.kind === "axis") return [axis2.spPr ??= {}];
17858
+ return [(axis2[target.kind] ??= {}).spPr ??= {}];
17702
17859
  }
17703
17860
  case "dataLabels": {
17704
17861
  const series2 = target.seriesIndex === void 0 ? space.plotArea.series : [chartExSeriesAt(space, target.seriesIndex)];
@@ -17788,25 +17945,25 @@ function editChartExAxis(space, index, edit) {
17788
17945
  throw new RangeError("Invalid ChartEx axis scaling.");
17789
17946
  }
17790
17947
  return editChartExSpace(space, (draft) => {
17791
- const axis = chartExAxisAt(draft, index);
17948
+ const axis2 = chartExAxisAt(draft, index);
17792
17949
  for (const key of ["min", "max", "majorUnit", "minorUnit"])
17793
17950
  if (edit[key] !== void 0) {
17794
- if (axis.scaling?.kind !== "val")
17951
+ if (axis2.scaling?.kind !== "val")
17795
17952
  throw new RangeError("Only a value axis supports numeric scaling.");
17796
- if (edit[key] === null) delete axis.scaling[key];
17797
- else axis.scaling[key] = edit[key];
17953
+ if (edit[key] === null) delete axis2.scaling[key];
17954
+ else axis2.scaling[key] = edit[key];
17798
17955
  }
17799
- if (axis.scaling?.kind === "val" && typeof axis.scaling.min === "number" && typeof axis.scaling.max === "number" && axis.scaling.min >= axis.scaling.max)
17956
+ if (axis2.scaling?.kind === "val" && typeof axis2.scaling.min === "number" && typeof axis2.scaling.max === "number" && axis2.scaling.min >= axis2.scaling.max)
17800
17957
  throw new RangeError("Axis maximum must exceed its minimum.");
17801
- if (edit.visible !== void 0) axis.hidden = !edit.visible;
17958
+ if (edit.visible !== void 0) axis2.hidden = !edit.visible;
17802
17959
  if (edit.tickLabels !== void 0) {
17803
- if (edit.tickLabels) axis.tickLabels ??= {};
17804
- else delete axis.tickLabels;
17960
+ if (edit.tickLabels) axis2.tickLabels ??= {};
17961
+ else delete axis2.tickLabels;
17805
17962
  }
17806
17963
  for (const key of ["majorGridlines", "minorGridlines"])
17807
17964
  if (edit[key] !== void 0) {
17808
- if (edit[key]) axis[key] ??= {};
17809
- else delete axis[key];
17965
+ if (edit[key]) axis2[key] ??= {};
17966
+ else delete axis2[key];
17810
17967
  }
17811
17968
  for (const [key, target] of [
17812
17969
  ["majorTickMark", "majorTickMarks"],
@@ -17814,28 +17971,28 @@ function editChartExAxis(space, index, edit) {
17814
17971
  ])
17815
17972
  if (edit[key] !== void 0) {
17816
17973
  const value = edit[key];
17817
- if (value === null) delete axis[target];
17974
+ if (value === null) delete axis2[target];
17818
17975
  else {
17819
17976
  if (!["in", "out", "cross", "none"].includes(value))
17820
17977
  throw new RangeError("Invalid tick mark.");
17821
- axis[target] = { type: value };
17978
+ axis2[target] = { type: value };
17822
17979
  }
17823
17980
  }
17824
17981
  if (edit.title !== void 0) {
17825
17982
  const { title: _chartTitle, ...base } = draft;
17826
17983
  const title = setChartExTitle(
17827
- { ...base, ...axis.title ? { title: axis.title } : {} },
17984
+ { ...base, ...axis2.title ? { title: axis2.title } : {} },
17828
17985
  edit.title ?? void 0
17829
17986
  ).title;
17830
- if (title) axis.title = title;
17831
- else delete axis.title;
17987
+ if (title) axis2.title = title;
17988
+ else delete axis2.title;
17832
17989
  }
17833
17990
  if (edit.numberFormat !== void 0) {
17834
- if (edit.numberFormat === null) delete axis.numberFormat;
17835
- else axis.numberFormat = structuredClone(edit.numberFormat);
17991
+ if (edit.numberFormat === null) delete axis2.numberFormat;
17992
+ else axis2.numberFormat = structuredClone(edit.numberFormat);
17836
17993
  }
17837
17994
  if (edit.units !== void 0) {
17838
- if (edit.units === null) delete axis.units;
17995
+ if (edit.units === null) delete axis2.units;
17839
17996
  else {
17840
17997
  if (![
17841
17998
  "hundreds",
@@ -17850,7 +18007,7 @@ function editChartExAxis(space, index, edit) {
17850
18007
  "percentage"
17851
18008
  ].includes(edit.units))
17852
18009
  throw new RangeError("Unsupported ChartEx display units.");
17853
- axis.units = { ...axis.units, unit: edit.units };
18010
+ axis2.units = { ...axis2.units, unit: edit.units };
17854
18011
  }
17855
18012
  }
17856
18013
  });
@@ -17946,9 +18103,9 @@ function applyChartExEditAction(space, action) {
17946
18103
  return setChartExAxis(space, action.axisIndex, action.edit);
17947
18104
  case "tickLabels":
17948
18105
  return editChartExSpace(space, (draft) => {
17949
- const axis = chartExAxisAt(draft, action.axisIndex);
17950
- if (action.visible) axis.tickLabels ??= {};
17951
- else delete axis.tickLabels;
18106
+ const axis2 = chartExAxisAt(draft, action.axisIndex);
18107
+ if (action.visible) axis2.tickLabels ??= {};
18108
+ else delete axis2.tickLabels;
17952
18109
  });
17953
18110
  case "pointLabel":
17954
18111
  return setChartExPointLabel(space, action.seriesIndex, action.pointIndex, action.label);
@@ -18245,15 +18402,15 @@ function setChartSeriesAxis(space, seriesIndex, valueAxisId2) {
18245
18402
  const { group: group2 } = chartSeriesEntryAt(space, seriesIndex);
18246
18403
  if (group2.is3D || !["bar", "line", "area", "scatter", "bubble"].includes(group2.kind))
18247
18404
  throw new RangeError("This chart family has no editable axis pair");
18248
- if (new Set(space.plotArea.axes.map((axis) => axis.id)).size !== space.plotArea.axes.length)
18405
+ if (new Set(space.plotArea.axes.map((axis2) => axis2.id)).size !== space.plotArea.axes.length)
18249
18406
  throw new RangeError("Ambiguous chart axis ids");
18250
18407
  const horizontal = group2.kind === "bar" && group2.barDirection === "bar";
18251
18408
  const candidates = space.plotArea.axes.filter(
18252
- (axis) => axis.kind === "val" && (valueAxisId2 === null ? axis.position === (horizontal ? "b" : "l") : axis.id === valueAxisId2)
18409
+ (axis2) => axis2.kind === "val" && (valueAxisId2 === null ? axis2.position === (horizontal ? "b" : "l") : axis2.id === valueAxisId2)
18253
18410
  );
18254
18411
  if (candidates.length !== 1) throw new RangeError("No unique existing value axis");
18255
18412
  const value = candidates[0];
18256
- const category = space.plotArea.axes.find((axis) => axis.id === value.crossAxisId);
18413
+ const category = space.plotArea.axes.find((axis2) => axis2.id === value.crossAxisId);
18257
18414
  const xy = group2.kind === "scatter" || group2.kind === "bubble";
18258
18415
  if (value.id === void 0 || category?.id === void 0 || category.crossAxisId !== value.id || (xy ? category.kind !== "val" : !["cat", "date"].includes(category.kind)))
18259
18416
  throw new RangeError("Axis references do not form a coherent pair");
@@ -18286,7 +18443,7 @@ function setChartSeriesType(space, index, target) {
18286
18443
  return structuredClone(space);
18287
18444
  if (group2.is3D || target.is3D || !["bar", "line", "area"].includes(group2.kind) || !["bar", "line", "area"].includes(target.kind) || group2.barDirection === "bar" || target.barDirection === "bar")
18288
18445
  throw new RangeError("Series combo types need vertical 2D column, line or area families");
18289
- const pair = group2.axisIds.map((id) => space.plotArea.axes.find((axis) => axis.id === id));
18446
+ const pair = group2.axisIds.map((id) => space.plotArea.axes.find((axis2) => axis2.id === id));
18290
18447
  if (pair.length !== 2 || !pair[0] || !pair[1] || !["cat", "date"].includes(pair[0].kind) || pair[1].kind !== "val" || pair[0].crossAxisId !== pair[1].id || pair[1].crossAxisId !== pair[0].id)
18291
18448
  throw new RangeError("Combo types need a coherent category/value axis pair");
18292
18449
  if (group2.series.length > 1 && group2.extLst)
@@ -18357,14 +18514,14 @@ function setChartGroupDecorations(space, edit) {
18357
18514
  // chart/edit/axis-label.ts
18358
18515
  function setChartDisplayUnitsLabel(space, target, edit) {
18359
18516
  return editChartSpace(space, (draft) => {
18360
- const axis = chartAxisAt(draft, target);
18361
- if (axis.kind !== "val") throw new RangeError("Only a value axis has a display-units label");
18517
+ const axis2 = chartAxisAt(draft, target);
18518
+ if (axis2.kind !== "val") throw new RangeError("Only a value axis has a display-units label");
18362
18519
  if (edit === null) {
18363
- if (axis.displayUnits) delete axis.displayUnits.label;
18520
+ if (axis2.displayUnits) delete axis2.displayUnits.label;
18364
18521
  return;
18365
18522
  }
18366
- axis.displayUnits ??= {};
18367
- const label = axis.displayUnits.label ??= {};
18523
+ axis2.displayUnits ??= {};
18524
+ const label = axis2.displayUnits.label ??= {};
18368
18525
  if (edit.text === null) delete label.tx;
18369
18526
  else if (edit.text !== void 0)
18370
18527
  assignOrDelete(
@@ -18535,4 +18692,4 @@ function rebaseChartData(space, sheetName) {
18535
18692
  return { chartSpace: next, rows: rows2 };
18536
18693
  }
18537
18694
 
18538
- export { BEST_FIT_EDGE_TOLERANCE, BEST_FIT_OUTSIDE_GAP, BEST_FIT_RIM_INSET, CHART_AUTO_TITLE, CHART_COLOR_PALETTES, CHART_COLOR_STYLE_CONTENT_TYPE, CHART_COLOR_STYLE_NS, CHART_COLOR_STYLE_REL, CHART_ELEMENT_PARTS, CHART_ERROR_BAR_DIRECTIONS, CHART_ERROR_BAR_TYPES, CHART_ERROR_VALUE_TYPES, CHART_EX_LAYOUTS, CHART_EX_ROOT_DECLARATIONS, CHART_GROUP_ELEMENTS, GROUP_FIELDS as CHART_GROUP_FIELDS, CHART_MARKER_SYMBOLS, CHART_QUICK_LAYOUTS, CHART_QUICK_LAYOUT_AXIS_TITLE, CHART_QUICK_LAYOUT_KINDS, CHART_STYLE_PARTS, CHART_STYLE_PRESETS, DATA_LABEL_CATEGORY_PERCENT_SEPARATOR, DATA_LABEL_SEPARATOR, DEFAULT_BAR_GAP_WIDTH, DEFAULT_CHART_AXIS_IDS, DEFAULT_CHART_DATA_SHEET, DEFAULT_CHART_PALETTE, DEFAULT_CHART_SHEET_NAME, DEFAULT_THEME_COLORS, DRAWN_CHART_TYPES, LABEL_COLLISION_GAP, STOCK_DEFAULT_DOWN_FILL, STOCK_DEFAULT_UP_FILL, STOCK_DEFAULT_WICK_COLOR, STOCK_TICK_WIDTH, THEME_SLOTS, addChartCategory, addChartExSeries, addChartSeries, aggregate, aggregateByCategory, appendChartExWorkbookData, appendChartWorkbookSheet, applyCellWritesToWorksheet, applyChartAppearance, applyChartColorPalette, applyChartDataSheetEdit, applyChartDataSheetEdits, applyChartEditIntent, applyChartExAppearance, applyChartExEditAction, applyChartExEditIntent, applyChartExSpaceDataSheetEdits, applyChartQuickLayout, applyChartSpaceDataSheetEdits, applyChartStylePreset, applyLabelManualLayout, applyStandardChartLayout, assertBarClusterOptions, assertChartPercent, assignOrDelete, autoSeriesColor, automaticMarkerSymbol, axisTargetIntervals, boxMeanMarkerPath, boxMesh, boxWhiskerDistribution, buildChart3DBoxFaceColors, buildChartGradientDef, buildHierarchyRoots, buildMarkerPrimitive, buildWaterfallSteps, builtInChartStyleXml, builtInChartTextStyle, calendarTicks, canApplyChartDataSheetEdit, categorySource, categoryTotals, chart3DApplies, chart3DSvg, chartAxisAt, chartCacheValues, chartColorScheme, chartColorStyleId, chartColorStyleXml, chartDataLabelsRange, chartDataSheetCellEdit, chartDataSheetPasteEdits, chartDataTableMetrics, chartDataWorksheetXml, chartDrawingColorFromHex, chartDrawingGradientFrom, chartEffectEditsFromAppearance, chartElementShape, chartErrorBarAmount, chartExAxisAt, chartExDataChanged, chartExDataLayout, chartExLevelValues, chartExLocalRange, chartExSeriesAt, chartExSeriesData, chartExSeriesDimension, chartExSpaceDataSheet, chartExSpaceWorkbookWrites, chartExStyleSpace, chartExSummary, chartExSummaryFromModel, chartExValueType, chartExWriteOptionsOf, chartFillFromAppearance, chartFormatTargetKey, chartGradientMarkup, chartGradientStopTransparency, groupHasAxes as chartGroupHasAxes, chartGroupPaintsLine, chartIssuesLostOnWrite, chartLineDashArray, chartLineFromAppearance, chartMarkerRadius, chartPaletteColors, chartPaletteSeriesColor, chartPaletteSeriesColorChoice, chartPointsToEmu, chartQuickLayoutOf, chartSampleVariance, chartSeriesAnalysisSupported, chartSeriesEntries, chartSeriesEntryAt, stripSeriesForKind as chartSeriesForKind, chartSeriesMarkerSvg, chartSeriesMarkersSupported, chartSeriesOnSecondaryAxis, chartSeriesSecondaryAxisSupported, chartSourceValues, chartSpaceDataSheet, chartSpaceKind, chartSpaceSeries, chartSpaceWorkbookWrites, chartStylePresetOfColors, chartSummaryFromSpace, chartSummarySeries, chartSummaryView, chartSupportsQuickLayout, chartTargetDraftShapes, chartTargetEffects, chartTargetHasText, chartTargetShape, chartTargetTextFormatting, chartTargetThreeD, chartTextBodyElement, chartTextEditsFromAppearance, chartThemePalette, chartThreeDFromAppearance, chartTitleRichXml, chartTitleWithText, chartTrendlineKind, chartTrendlineType, chartWorkbookRowsXml, clearChartAreaPaint, clusteredBarGeometry, columnIndexToLetter, columnLetterToIndex, composeDataLabelText, computeAxisStackedValueRange, computeAxisValueRange, computeBoxStats, computeBubbleRadius, computeFunnelGeometry, computeHierarchicalSunburstArcs, computeHistogramBins, computeLinearRegression, computeLogValueRange, computeRSquared, computeRadarPoints, computeStackedSeriesPlots, computeStackedValueRangeForAxis, computeSunburstArcs, computeValueRangeForAxis, computeValueRangeForChart, computeWaterfallRange, convertChartAxis, createChart3DCamera, createChartExSpace, createChartWorkbook, defaultChartAxes, drawingColorAlphaTransforms, drawingColorTransparency, editChartEffectList, editChartElementGradient, editChartExAxis, editChartExLabels, editChartExPointLabel, editChartExSpace, editChartExStyle, editChartGradientFill, editChartLayout, editChartLine, editChartSeriesGradient, editChartShapeProperties, editChartShapeXml, editChartSpace, editChartTextBody, editChartTextRunProperties, effectiveBuiltInChartStyle, excelSerialToDate, expandRangeAddresses, extrudeMesh, findChartColorPalette, findChartQuickLayout, findChartStylePreset, findLogAxis, firstChartGroup, fitChartTrendline, fitPolynomial, formatCellAddress, formatChartNumber, formatChartNumberWithColor, formatCompactAxisValue, formatDate, formatExponentialEquation, formatLinearEquation, formatLogarithmicEquation, formatPolynomialEquation, formatPowerEquation, formatTrendlineCoefficient, generateAxisTicks, generateLogTicks, generateMinorAxisTicks, getChartStylePalette, groupRowsByCategory, hasManualLayoutFields, hierarchyBranchLabels, hydrateChartExSpace, impliesAutoTitle, isChartExRoot, isChartexOnlyType, isEmbeddedXlsxPart, isXYChartKind, layoutTreemap, markerOutline, markerRadius, maxBubbleSize, medianBubbleRadius, modulateLuminance, moveChartSeries, newChartSpace, newChartTitle, nextChartCategoryName, nextChartSeriesName, niceAxisStep, niceValueAxisBounds, normalizeLevels, nudgeOutsideLabels, numberSource, openEmbeddedPackage, parseCellAddress, parseChartExSpace, parseChartFormatTargetKey, parseChartFormulaRange, parseChartSpace, patchChartFormulas, placeBestFitLabel, polylineRunsPath, quoteChartSheetName, radarAngle, radarRingPoints, readBuiltInChartStyle, readChartFormatting, readChartManualLayoutValues, readChartStyle, readDisplayNaAsBlank, rebaseChartData, recolorPaletteGradient, removeChartCategory, removeChartExSeries, removeChartSeries, removeGradientStop, renameChartExSeries, renameChartSeries, renderChartSpaceSvg, renderChartSummarySvg, renderChartSvg, renderExcelDateFormat, repaintSeriesForFamily, resolveAutoTitleText, resolveBlankDisplay, resolveChart3DProjection, resolveChartGradient, resolveChartStyleDefinition, resolveDataLabelFlags, resolveManualLayoutRect, resolveManualPlotRect, retextChartTextBody, rotatedAxisPosition, sameChartColors, sameDrawingColor, sampleSmoothLine, saveChartWorkbookUpdates, scottBinCount, seriesMarkerViews, setChartAxis, setChartAxisTitleText, setChartCategories, setChartCategoryLevels, setChartChrome, setChartDataLabelFormatting, setChartDataLabels, setChartDataLabelsRange, setChartDataPointFill, setChartDataPointValue, setChartDataTable, setChartDisplayUnitsLabel, setChartElementFill, setChartElementLine, setChartErrorBars, setChartExAxis, setChartExBinning, setChartExBoxWhisker, setChartExCategories, setChartExDataLabelsVisible, setChartExLayout, setChartExLegend, setChartExParentLabelLayout, setChartExPointLabel, setChartExSeriesFill, setChartExSeriesValues, setChartExTitle, setChartExWaterfall, setChartGridlineShape, setChartGroupDecorations, setChartGroupOptions, setChartGrouping, setChartLayout, setChartLegend, setChartLegendEntries, setChartMarker, setChartNumericCategories, setChartPointLabel, setChartPointOptions, setChartProtection, setChartSeriesAxis, setChartSeriesBubbleSizes, setChartSeriesColor, setChartSeriesFill, setChartSeriesLine, setChartSeriesOptions, setChartSeriesSecondaryAxis, setChartSeriesTransparency, setChartSeriesType, setChartSeriesValues, setChartSeriesXValues, setChartStyle, setChartSurface, setChartTargetEffect, setChartTargetFill, setChartTargetLine, setChartTargetLineOptions, setChartTargetPattern, setChartTargetText, setChartTargetThreeD, setChartTargetTransparency, setChartTitle, setChartTitleOverlay, setChartTitleRuns, setChartTitleVisible, setChartTrendline, setChartType, setChartTypedCategories, setChartView3D, shade, shadeChart3DFace, sharedStringTexts, smoothLinePath, sortGradientStops, squarify, standardChartFormulas, standardChartLayoutSheet, stockCandle, stockSlots, summaryMarkers, sunburstArcPath, syncWorksheetTables, themeColor, tint, updateGradientStop, validateAtomicChartWorkbookWrites, validateChartTextEdit, valueToYLog, visibleRuns, withAlphaOf, withAxisBounds, withChartGradientDirection, withDrawingColorTransparency, withUnmodelledChartChildren, withinLinearTransform, worksheetPathsByName, writeChartAxisFormatting, writeChartExSpace, writeChartExSpaceOverSource, writeChartFillFormatting, writeChartLayoutFormatting, writeChartSpace, writeChartSpaceOverSource, writeChartWorkbookUpdates };
18695
+ export { BEST_FIT_EDGE_TOLERANCE, BEST_FIT_OUTSIDE_GAP, BEST_FIT_RIM_INSET, CHART_AUTO_TITLE, CHART_COLOR_PALETTES, CHART_COLOR_STYLE_CONTENT_TYPE, CHART_COLOR_STYLE_NS, CHART_COLOR_STYLE_REL, CHART_ELEMENT_PARTS, CHART_ERROR_BAR_DIRECTIONS, CHART_ERROR_BAR_TYPES, CHART_ERROR_VALUE_TYPES, CHART_EX_LAYOUTS, CHART_EX_ROOT_DECLARATIONS, CHART_GROUP_ELEMENTS, GROUP_FIELDS as CHART_GROUP_FIELDS, CHART_MARKER_SYMBOLS, CHART_QUICK_LAYOUTS, CHART_QUICK_LAYOUT_AXIS_TITLE, CHART_QUICK_LAYOUT_KINDS, CHART_STYLE_PARTS, CHART_STYLE_PRESETS, DATA_LABEL_CATEGORY_PERCENT_SEPARATOR, DATA_LABEL_SEPARATOR, DEFAULT_BAR_GAP_WIDTH, DEFAULT_CHART_AXIS_IDS, DEFAULT_CHART_DATA_SHEET, DEFAULT_CHART_PALETTE, DEFAULT_CHART_SHEET_NAME, DEFAULT_THEME_COLORS, DRAWN_CHART_TYPES, LABEL_COLLISION_GAP, STOCK_DEFAULT_DOWN_FILL, STOCK_DEFAULT_UP_FILL, STOCK_DEFAULT_WICK_COLOR, STOCK_TICK_WIDTH, THEME_SLOTS, addChartCategory, addChartExSeries, addChartSeries, aggregate, aggregateByCategory, appendChartExWorkbookData, appendChartWorkbookSheet, applyCellWritesToWorksheet, applyChartAppearance, applyChartColorPalette, applyChartDataSheetEdit, applyChartDataSheetEdits, applyChartEditIntent, applyChartExAppearance, applyChartExEditAction, applyChartExEditIntent, applyChartExSpaceDataSheetEdits, applyChartQuickLayout, applyChartSpaceDataSheetEdits, applyChartStylePreset, applyLabelManualLayout, applyStandardChartLayout, assertBarClusterOptions, assertChartGroupOption, assertChartPercent, assignOrDelete, autoSeriesColor, automaticMarkerSymbol, axisTargetIntervals, boxMeanMarkerPath, boxMesh, boxWhiskerDistribution, buildChart3DBoxFaceColors, buildChartGradientDef, buildHierarchyRoots, buildMarkerPrimitive, buildWaterfallSteps, builtInChartStyleXml, builtInChartTextStyle, calendarTicks, canApplyChartDataSheetEdit, categorySource, categoryTotals, chart3DApplies, chart3DSvg, chartAxisAt, chartCacheValues, chartColorScheme, chartColorStyleId, chartColorStyleXml, chartDataLabelsRange, chartDataSheetCellEdit, chartDataSheetPasteEdits, chartDataTableMetrics, chartDataWorksheetXml, chartDrawingColorFromHex, chartDrawingGradientFrom, chartEffectEditsFromAppearance, chartElementShape, chartErrorBarAmount, chartExAxisAt, chartExDataChanged, chartExDataLayout, chartExLevelValues, chartExLocalRange, chartExSeriesAt, chartExSeriesData, chartExSeriesDimension, chartExSpaceDataSheet, chartExSpaceWorkbookWrites, chartExStyleSpace, chartExSummary, chartExSummaryFromModel, chartExValueType, chartExWriteOptionsOf, chartFillFromAppearance, chartFormatTargetKey, chartGradientMarkup, chartGradientStopTransparency, chartGroupElement, groupHasAxes as chartGroupHasAxes, chartGroupPaintsLine, chartIssuesLostOnWrite, chartLineDashArray, chartLineFromAppearance, chartMarkerRadius, chartPaletteColors, chartPaletteSeriesColor, chartPaletteSeriesColorChoice, chartPointsToEmu, chartQuickLayoutOf, chartSampleVariance, chartSeriesAnalysisSupported, chartSeriesEntries, chartSeriesEntryAt, stripSeriesForKind as chartSeriesForKind, chartSeriesMarkerSvg, chartSeriesMarkersSupported, chartSeriesOnSecondaryAxis, chartSeriesSecondaryAxisSupported, chartSourceValues, chartSpaceDataSheet, chartSpaceKind, chartSpaceSeries, chartSpaceWorkbookWrites, chartStylePresetOfColors, chartSummaryFromSpace, chartSummarySeries, chartSummaryView, chartSupportsQuickLayout, chartTargetDraftShapes, chartTargetEffects, chartTargetHasText, chartTargetShape, chartTargetTextFormatting, chartTargetThreeD, chartTextBodyElement, chartTextEditsFromAppearance, chartThemePalette, chartThreeDFromAppearance, chartTitleRichXml, chartTitleWithText, chartTrendlineKind, chartTrendlineType, chartWorkbookRowsXml, clearChartAreaPaint, clusteredBarGeometry, columnIndexToLetter, columnLetterToIndex, composeDataLabelText, computeAxisStackedValueRange, computeAxisValueRange, computeBoxStats, computeBubbleRadius, computeFunnelGeometry, computeHierarchicalSunburstArcs, computeHistogramBins, computeLinearRegression, computeLogValueRange, computeRSquared, computeRadarPoints, computeStackedSeriesPlots, computeStackedValueRangeForAxis, computeSunburstArcs, computeValueRangeForAxis, computeValueRangeForChart, computeWaterfallRange, convertChartAxis, createChart3DCamera, createChartExSpace, createChartWorkbook, defaultChartAxes, drawingColorAlphaTransforms, drawingColorTransparency, editChartEffectList, editChartElementGradient, editChartExAxis, editChartExLabels, editChartExPointLabel, editChartExSpace, editChartExStyle, editChartGradientFill, editChartLayout, editChartLine, editChartSeriesGradient, editChartShapeProperties, editChartShapeXml, editChartSpace, editChartTextBody, editChartTextRunProperties, effectiveBuiltInChartStyle, excelSerialToDate, expandRangeAddresses, extrudeMesh, findChartColorPalette, findChartQuickLayout, findChartStylePreset, findLogAxis, firstChartGroup, fitChartTrendline, fitPolynomial, formatCellAddress, formatChartNumber, formatChartNumberWithColor, formatCompactAxisValue, formatDate, formatExponentialEquation, formatLinearEquation, formatLogarithmicEquation, formatPolynomialEquation, formatPowerEquation, formatTrendlineCoefficient, generateAxisTicks, generateLogTicks, generateMinorAxisTicks, getChartStylePalette, groupRowsByCategory, hasManualLayoutFields, hierarchyBranchLabels, hydrateChartExSpace, impliesAutoTitle, isChartExRoot, isChartGroupOption, isChartexOnlyType, isEmbeddedXlsxPart, isXYChartKind, layoutTreemap, markerOutline, markerRadius, maxBubbleSize, medianBubbleRadius, modulateLuminance, moveChartSeries, newChartSpace, newChartTitle, nextChartCategoryName, nextChartSeriesName, niceAxisStep, niceValueAxisBounds, normalizeLevels, nudgeOutsideLabels, numberSource, openEmbeddedPackage, parseCellAddress, parseChartExSpace, parseChartFormatTargetKey, parseChartFormulaRange, parseChartSpace, patchChartFormulas, placeBestFitLabel, polylineRunsPath, quoteChartSheetName, radarAngle, radarRingPoints, readBuiltInChartStyle, readChartFormatting, readChartManualLayoutValues, readChartStyle, readDisplayNaAsBlank, rebaseChartData, recolorPaletteGradient, removeChartCategory, removeChartExSeries, removeChartSeries, removeGradientStop, renameChartExSeries, renameChartSeries, renderChartSpaceSvg, renderChartSummarySvg, renderChartSvg, renderExcelDateFormat, repaintSeriesForFamily, resolveAutoTitleText, resolveBlankDisplay, resolveChart3DProjection, resolveChartGradient, resolveChartStyleDefinition, resolveDataLabelFlags, resolveManualLayoutRect, resolveManualPlotRect, retextChartTextBody, rotatedAxisPosition, sameChartColors, sameDrawingColor, sampleSmoothLine, saveChartWorkbookUpdates, scottBinCount, seriesMarkerViews, setChartAxis, setChartAxisTitleText, setChartCategories, setChartCategoryLevels, setChartChrome, setChartDataLabelFormatting, setChartDataLabels, setChartDataLabelsRange, setChartDataPointFill, setChartDataPointValue, setChartDataTable, setChartDisplayUnitsLabel, setChartElementFill, setChartElementLine, setChartErrorBars, setChartExAxis, setChartExBinning, setChartExBoxWhisker, setChartExCategories, setChartExDataLabelsVisible, setChartExLayout, setChartExLegend, setChartExParentLabelLayout, setChartExPointLabel, setChartExSeriesFill, setChartExSeriesValues, setChartExTitle, setChartExWaterfall, setChartGridlineShape, setChartGroupDecorations, setChartGroupOptions, setChartGrouping, setChartLayout, setChartLegend, setChartLegendEntries, setChartMarker, setChartNumericCategories, setChartPointLabel, setChartPointOptions, setChartProtection, setChartSeriesAxis, setChartSeriesBubbleSizes, setChartSeriesColor, setChartSeriesFill, setChartSeriesLine, setChartSeriesOptions, setChartSeriesSecondaryAxis, setChartSeriesTransparency, setChartSeriesType, setChartSeriesValues, setChartSeriesXValues, setChartStyle, setChartSurface, setChartTargetEffect, setChartTargetFill, setChartTargetLine, setChartTargetLineOptions, setChartTargetPattern, setChartTargetText, setChartTargetThreeD, setChartTargetTransparency, setChartTitle, setChartTitleOverlay, setChartTitleRuns, setChartTitleVisible, setChartTrendline, setChartType, setChartTypedCategories, setChartView3D, shade, shadeChart3DFace, sharedStringTexts, smoothLinePath, sortGradientStops, squarify, standardChartFormulas, standardChartLayoutSheet, stockCandle, stockSlots, summaryMarkers, sunburstArcPath, syncWorksheetTables, themeColor, tint, updateGradientStop, validateAtomicChartWorkbookWrites, validateChartTextEdit, valueToYLog, visibleRuns, withAlphaOf, withAxisBounds, withChartGradientDirection, withDrawingColorTransparency, withUnmodelledChartChildren, withinLinearTransform, worksheetPathsByName, writeChartAxisFormatting, writeChartExSpace, writeChartExSpaceOverSource, writeChartFillFormatting, writeChartLayoutFormatting, writeChartSpace, writeChartSpaceOverSource, writeChartWorkbookUpdates };