pptxgenjs-plus 4.3.7 → 4.3.8

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.8 @ 2026-11-11T18:27:23.052Z */
2
2
 
3
3
  "use strict";
4
4
  const __rslib_import_meta_url__ = /*#__PURE__*/ (function () {
@@ -8815,7 +8815,8 @@ function makeNumberStyles(formats) {
8815
8815
  firstDataValues.forEach((val, idx)=>{
8816
8816
  // Leading col is reserved for the 'X-Axis' value, so hard-code it, then loop over col values
8817
8817
  strSheetXml += `<row r="${idx + 2}" spans="1:${intBubbleCols}">`;
8818
- strSheetXml += `<c r="A${idx + 2}"><v>${val}</v></c>`;
8818
+ // 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
8819
+ strSheetXml += `<c r="A${idx + 2}"><v>${val || val === 0 ? val : ''}</v></c>`;
8819
8820
  // Add Y-Axis 1->N (idy=0 = Xaxis)
8820
8821
  let idxColLtr = 2;
8821
8822
  for(let idy = 1; idy < data.length; idy++){
@@ -8860,7 +8861,8 @@ function makeNumberStyles(formats) {
8860
8861
  firstDataValues.forEach((val, idx)=>{
8861
8862
  // Leading col is reserved for the 'X-Axis' value, so hard-code it, then loop over col values
8862
8863
  strSheetXml += `<row r="${idx + 2}" spans="1:${data.length}">`;
8863
- strSheetXml += `<c r="A${idx + 2}"><v>${val}</v></c>`;
8864
+ // 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
8865
+ strSheetXml += `<c r="A${idx + 2}"><v>${val || val === 0 ? val : ''}</v></c>`;
8864
8866
  // Add Y-Axis 1->N
8865
8867
  for(let idy = 1; idy < data.length; idy++){
8866
8868
  var _data_idy_values;
@@ -23926,7 +23928,7 @@ class PptxGenJS {
23926
23928
  */ pptxgen_define_property(this, "_layout", void 0);
23927
23929
  /**
23928
23930
  * PptxGenJS Library Version
23929
- */ pptxgen_define_property(this, "_version", (/* inlined export .VERSION */"4.3.7"));
23931
+ */ pptxgen_define_property(this, "_version", (/* inlined export .VERSION */"4.3.8"));
23930
23932
  /**
23931
23933
  * @type {string}
23932
23934
  */ 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.8 @ 2026-11-11T18:27:23.052Z */
2
2
 
3
3
  import { JSZip } from "@node-projects/jszip";
4
4
  import { parseXml } from "@rgrove/parse-xml";
@@ -8764,7 +8764,8 @@ function makeNumberStyles(formats) {
8764
8764
  firstDataValues.forEach((val, idx)=>{
8765
8765
  // Leading col is reserved for the 'X-Axis' value, so hard-code it, then loop over col values
8766
8766
  strSheetXml += `<row r="${idx + 2}" spans="1:${intBubbleCols}">`;
8767
- strSheetXml += `<c r="A${idx + 2}"><v>${val}</v></c>`;
8767
+ // 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
8768
+ strSheetXml += `<c r="A${idx + 2}"><v>${val || val === 0 ? val : ''}</v></c>`;
8768
8769
  // Add Y-Axis 1->N (idy=0 = Xaxis)
8769
8770
  let idxColLtr = 2;
8770
8771
  for(let idy = 1; idy < data.length; idy++){
@@ -8809,7 +8810,8 @@ function makeNumberStyles(formats) {
8809
8810
  firstDataValues.forEach((val, idx)=>{
8810
8811
  // Leading col is reserved for the 'X-Axis' value, so hard-code it, then loop over col values
8811
8812
  strSheetXml += `<row r="${idx + 2}" spans="1:${data.length}">`;
8812
- strSheetXml += `<c r="A${idx + 2}"><v>${val}</v></c>`;
8813
+ // 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
8814
+ strSheetXml += `<c r="A${idx + 2}"><v>${val || val === 0 ? val : ''}</v></c>`;
8813
8815
  // Add Y-Axis 1->N
8814
8816
  for(let idy = 1; idy < data.length; idy++){
8815
8817
  var _data_idy_values;
@@ -23794,7 +23796,7 @@ class PptxGenJS {
23794
23796
  */ pptxgen_define_property(this, "_layout", void 0);
23795
23797
  /**
23796
23798
  * PptxGenJS Library Version
23797
- */ pptxgen_define_property(this, "_version", (/* inlined export .VERSION */"4.3.7"));
23799
+ */ pptxgen_define_property(this, "_version", (/* inlined export .VERSION */"4.3.8"));
23798
23800
  /**
23799
23801
  * @type {string}
23800
23802
  */ pptxgen_define_property(this, "_author", void 0);