pptxgenjs-plus 4.3.7 → 4.3.9

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.
@@ -1,4 +1,4 @@
1
- /* PptxGenJS 4.3.7 @ 2026-11-07T17:12:38.755Z */
1
+ /* PptxGenJS 4.3.9 @ 2026-12-01T20:34:30.120Z */
2
2
 
3
3
  "use strict";
4
4
  const __rslib_import_meta_url__ = /*#__PURE__*/ (function () {
@@ -7533,9 +7533,10 @@ function xml_object_spread_props(target, source) {
7533
7533
  if (Array.isArray(rel.opts._type)) {
7534
7534
  rel.opts._type.forEach((type)=>{
7535
7535
  var _options_secondaryValAxis;
7536
- // TODO: FIXME: theres `options` on chart rels??
7537
7536
  const options = xml_object_spread({}, rel.opts, type.options);
7538
- // let options: IChartOptsLib = { type: type.type, }
7537
+ if (options.dataLabelPosition) {
7538
+ options.dataLabelPosition = resolveDataLabelPosition(options.dataLabelPosition, type.type, options.barGrouping);
7539
+ }
7539
7540
  const valAxisId = options.secondaryValAxis ? AXIS_ID_VALUE_SECONDARY : AXIS_ID_VALUE_PRIMARY;
7540
7541
  const catAxisId = options.secondaryCatAxis ? AXIS_ID_CATEGORY_SECONDARY : AXIS_ID_CATEGORY_PRIMARY;
7541
7542
  usesSecondaryValAxis = usesSecondaryValAxis || ((_options_secondaryValAxis = options.secondaryValAxis) !== null && _options_secondaryValAxis !== void 0 ? _options_secondaryValAxis : false);
@@ -8815,7 +8816,8 @@ function makeNumberStyles(formats) {
8815
8816
  firstDataValues.forEach((val, idx)=>{
8816
8817
  // Leading col is reserved for the 'X-Axis' value, so hard-code it, then loop over col values
8817
8818
  strSheetXml += `<row r="${idx + 2}" spans="1:${intBubbleCols}">`;
8818
- strSheetXml += `<c r="A${idx + 2}"><v>${val}</v></c>`;
8819
+ // An X gap (null/undefined) is an empty cell like a Y gap; `${val}` wrote `<v>null</v>`, a numeric cell that is no number
8820
+ strSheetXml += `<c r="A${idx + 2}"><v>${val || val === 0 ? val : ''}</v></c>`;
8819
8821
  // Add Y-Axis 1->N (idy=0 = Xaxis)
8820
8822
  let idxColLtr = 2;
8821
8823
  for(let idy = 1; idy < data.length; idy++){
@@ -8860,7 +8862,8 @@ function makeNumberStyles(formats) {
8860
8862
  firstDataValues.forEach((val, idx)=>{
8861
8863
  // Leading col is reserved for the 'X-Axis' value, so hard-code it, then loop over col values
8862
8864
  strSheetXml += `<row r="${idx + 2}" spans="1:${data.length}">`;
8863
- strSheetXml += `<c r="A${idx + 2}"><v>${val}</v></c>`;
8865
+ // An X gap (null/undefined) is an empty cell like a Y gap; `${val}` wrote `<v>null</v>`, a numeric cell that is no number
8866
+ strSheetXml += `<c r="A${idx + 2}"><v>${val || val === 0 ? val : ''}</v></c>`;
8864
8867
  // Add Y-Axis 1->N
8865
8868
  for(let idy = 1; idy < data.length; idy++){
8866
8869
  var _data_idy_values;
@@ -23926,7 +23929,7 @@ class PptxGenJS {
23926
23929
  */ pptxgen_define_property(this, "_layout", void 0);
23927
23930
  /**
23928
23931
  * PptxGenJS Library Version
23929
- */ pptxgen_define_property(this, "_version", (/* inlined export .VERSION */"4.3.7"));
23932
+ */ pptxgen_define_property(this, "_version", (/* inlined export .VERSION */"4.3.9"));
23930
23933
  /**
23931
23934
  * @type {string}
23932
23935
  */ pptxgen_define_property(this, "_author", void 0);
@@ -1,4 +1,4 @@
1
- /* PptxGenJS 4.3.7 @ 2026-11-07T17:12:38.755Z */
1
+ /* PptxGenJS 4.3.9 @ 2026-12-01T20:34:30.120Z */
2
2
 
3
3
  import { JSZip } from "@node-projects/jszip";
4
4
  import { parseXml } from "@rgrove/parse-xml";
@@ -7483,9 +7483,10 @@ function xml_object_spread_props(target, source) {
7483
7483
  if (Array.isArray(rel.opts._type)) {
7484
7484
  rel.opts._type.forEach((type)=>{
7485
7485
  var _options_secondaryValAxis;
7486
- // TODO: FIXME: theres `options` on chart rels??
7487
7486
  const options = xml_object_spread({}, rel.opts, type.options);
7488
- // let options: IChartOptsLib = { type: type.type, }
7487
+ if (options.dataLabelPosition) {
7488
+ options.dataLabelPosition = resolveDataLabelPosition(options.dataLabelPosition, type.type, options.barGrouping);
7489
+ }
7489
7490
  const valAxisId = options.secondaryValAxis ? AXIS_ID_VALUE_SECONDARY : AXIS_ID_VALUE_PRIMARY;
7490
7491
  const catAxisId = options.secondaryCatAxis ? AXIS_ID_CATEGORY_SECONDARY : AXIS_ID_CATEGORY_PRIMARY;
7491
7492
  usesSecondaryValAxis = usesSecondaryValAxis || ((_options_secondaryValAxis = options.secondaryValAxis) !== null && _options_secondaryValAxis !== void 0 ? _options_secondaryValAxis : false);
@@ -8764,7 +8765,8 @@ function makeNumberStyles(formats) {
8764
8765
  firstDataValues.forEach((val, idx)=>{
8765
8766
  // Leading col is reserved for the 'X-Axis' value, so hard-code it, then loop over col values
8766
8767
  strSheetXml += `<row r="${idx + 2}" spans="1:${intBubbleCols}">`;
8767
- strSheetXml += `<c r="A${idx + 2}"><v>${val}</v></c>`;
8768
+ // An X gap (null/undefined) is an empty cell like a Y gap; `${val}` wrote `<v>null</v>`, a numeric cell that is no number
8769
+ strSheetXml += `<c r="A${idx + 2}"><v>${val || val === 0 ? val : ''}</v></c>`;
8768
8770
  // Add Y-Axis 1->N (idy=0 = Xaxis)
8769
8771
  let idxColLtr = 2;
8770
8772
  for(let idy = 1; idy < data.length; idy++){
@@ -8809,7 +8811,8 @@ function makeNumberStyles(formats) {
8809
8811
  firstDataValues.forEach((val, idx)=>{
8810
8812
  // Leading col is reserved for the 'X-Axis' value, so hard-code it, then loop over col values
8811
8813
  strSheetXml += `<row r="${idx + 2}" spans="1:${data.length}">`;
8812
- strSheetXml += `<c r="A${idx + 2}"><v>${val}</v></c>`;
8814
+ // An X gap (null/undefined) is an empty cell like a Y gap; `${val}` wrote `<v>null</v>`, a numeric cell that is no number
8815
+ strSheetXml += `<c r="A${idx + 2}"><v>${val || val === 0 ? val : ''}</v></c>`;
8813
8816
  // Add Y-Axis 1->N
8814
8817
  for(let idy = 1; idy < data.length; idy++){
8815
8818
  var _data_idy_values;
@@ -23794,7 +23797,7 @@ class PptxGenJS {
23794
23797
  */ pptxgen_define_property(this, "_layout", void 0);
23795
23798
  /**
23796
23799
  * PptxGenJS Library Version
23797
- */ pptxgen_define_property(this, "_version", (/* inlined export .VERSION */"4.3.7"));
23800
+ */ pptxgen_define_property(this, "_version", (/* inlined export .VERSION */"4.3.9"));
23798
23801
  /**
23799
23802
  * @type {string}
23800
23803
  */ pptxgen_define_property(this, "_author", void 0);