pptxgenjs-plus 4.3.6 → 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.
- package/dist/pptxgen.bundle.js +6 -6
- package/dist/pptxgen.cjs.js +14 -9
- package/dist/pptxgen.es.js +14 -9
- package/dist/pptxgen.min.js +6 -6
- package/package.json +1 -1
package/dist/pptxgen.cjs.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* PptxGenJS 4.3.
|
|
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
|
-
|
|
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
|
-
|
|
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;
|
|
@@ -22988,11 +22990,14 @@ function collectSlideAnimations(slide) {
|
|
|
22988
22990
|
* @return {string} XML
|
|
22989
22991
|
*/ function makeXmlNotesSlide(slide) {
|
|
22990
22992
|
const notesText = getNotesFromSlide(slide);
|
|
22991
|
-
// ECMA-376 §5.1.5.2.6
|
|
22992
|
-
//
|
|
22993
|
-
//
|
|
22994
|
-
const
|
|
22995
|
-
|
|
22993
|
+
// ECMA-376 §5.1.5.2.6: paragraphs are separate a:p elements. Literal newlines
|
|
22994
|
+
// inside a:t do not express DrawingML paragraph boundaries. Keep empty lines
|
|
22995
|
+
// as paragraphs without empty text runs (PowerPoint repair regression 3260b6e).
|
|
22996
|
+
const notesParagraphs = notesText.split(/\r\n|\r|\n/).map((line)=>{
|
|
22997
|
+
const run = line ? `<a:r><a:rPr lang="en-US" dirty="0"/><a:t>${encodeXmlEntities(line)}</a:t></a:r>` : '';
|
|
22998
|
+
return `<a:p>${run}<a:endParaRPr lang="en-US" dirty="0"/></a:p>`;
|
|
22999
|
+
}).join('');
|
|
23000
|
+
return `<?xml version="1.0" encoding="UTF-8" standalone="yes"?>${(/* inlined export .CRLF */"\r\n")}<p:notes xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships" xmlns:p="http://schemas.openxmlformats.org/presentationml/2006/main"><p:cSld><p:spTree><p:nvGrpSpPr><p:cNvPr id="1" name=""/><p:cNvGrpSpPr/><p:nvPr/></p:nvGrpSpPr><p:grpSpPr><a:xfrm><a:off x="0" y="0"/><a:ext cx="0" cy="0"/><a:chOff x="0" y="0"/><a:chExt cx="0" cy="0"/></a:xfrm></p:grpSpPr><p:sp><p:nvSpPr><p:cNvPr id="2" name="Slide Image Placeholder 1"/><p:cNvSpPr><a:spLocks noGrp="1" noRot="1" noChangeAspect="1"/></p:cNvSpPr><p:nvPr><p:ph type="sldImg"/></p:nvPr></p:nvSpPr><p:spPr/></p:sp><p:sp><p:nvSpPr><p:cNvPr id="3" name="Notes Placeholder 2"/><p:cNvSpPr><a:spLocks noGrp="1"/></p:cNvSpPr><p:nvPr><p:ph type="body" idx="1"/></p:nvPr></p:nvSpPr><p:spPr/><p:txBody><a:bodyPr/><a:lstStyle/>${notesParagraphs}</p:txBody></p:sp><p:sp><p:nvSpPr><p:cNvPr id="4" name="Slide Number Placeholder 3"/><p:cNvSpPr><a:spLocks noGrp="1"/></p:cNvSpPr><p:nvPr><p:ph type="sldNum" sz="quarter" idx="10"/></p:nvPr></p:nvSpPr><p:spPr/><p:txBody><a:bodyPr/><a:lstStyle/><a:p><a:fld id="${SLDNUMFLDID}" type="slidenum"><a:rPr lang="en-US"/><a:t>${slide._slideNum}</a:t></a:fld><a:endParaRPr lang="en-US"/></a:p></p:txBody></p:sp></p:spTree><p:extLst><p:ext uri="{BB962C8B-B14F-4D97-AF65-F5344CB8AC3E}"><p14:creationId xmlns:p14="http://schemas.microsoft.com/office/powerpoint/2010/main" val="1024086991"/></p:ext></p:extLst></p:cSld><p:clrMapOvr><a:masterClrMapping/></p:clrMapOvr></p:notes>`;
|
|
22996
23001
|
}
|
|
22997
23002
|
/**
|
|
22998
23003
|
* Generates the XML layout resource from a layout object
|
|
@@ -23923,7 +23928,7 @@ class PptxGenJS {
|
|
|
23923
23928
|
*/ pptxgen_define_property(this, "_layout", void 0);
|
|
23924
23929
|
/**
|
|
23925
23930
|
* PptxGenJS Library Version
|
|
23926
|
-
*/ pptxgen_define_property(this, "_version", (/* inlined export .VERSION */"4.3.
|
|
23931
|
+
*/ pptxgen_define_property(this, "_version", (/* inlined export .VERSION */"4.3.8"));
|
|
23927
23932
|
/**
|
|
23928
23933
|
* @type {string}
|
|
23929
23934
|
*/ pptxgen_define_property(this, "_author", void 0);
|
package/dist/pptxgen.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* PptxGenJS 4.3.
|
|
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
|
-
|
|
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
|
-
|
|
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;
|
|
@@ -22858,11 +22860,14 @@ function collectSlideAnimations(slide) {
|
|
|
22858
22860
|
* @return {string} XML
|
|
22859
22861
|
*/ function makeXmlNotesSlide(slide) {
|
|
22860
22862
|
const notesText = getNotesFromSlide(slide);
|
|
22861
|
-
// ECMA-376 §5.1.5.2.6
|
|
22862
|
-
//
|
|
22863
|
-
//
|
|
22864
|
-
const
|
|
22865
|
-
|
|
22863
|
+
// ECMA-376 §5.1.5.2.6: paragraphs are separate a:p elements. Literal newlines
|
|
22864
|
+
// inside a:t do not express DrawingML paragraph boundaries. Keep empty lines
|
|
22865
|
+
// as paragraphs without empty text runs (PowerPoint repair regression 3260b6e).
|
|
22866
|
+
const notesParagraphs = notesText.split(/\r\n|\r|\n/).map((line)=>{
|
|
22867
|
+
const run = line ? `<a:r><a:rPr lang="en-US" dirty="0"/><a:t>${encodeXmlEntities(line)}</a:t></a:r>` : '';
|
|
22868
|
+
return `<a:p>${run}<a:endParaRPr lang="en-US" dirty="0"/></a:p>`;
|
|
22869
|
+
}).join('');
|
|
22870
|
+
return `<?xml version="1.0" encoding="UTF-8" standalone="yes"?>${(/* inlined export .CRLF */"\r\n")}<p:notes xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships" xmlns:p="http://schemas.openxmlformats.org/presentationml/2006/main"><p:cSld><p:spTree><p:nvGrpSpPr><p:cNvPr id="1" name=""/><p:cNvGrpSpPr/><p:nvPr/></p:nvGrpSpPr><p:grpSpPr><a:xfrm><a:off x="0" y="0"/><a:ext cx="0" cy="0"/><a:chOff x="0" y="0"/><a:chExt cx="0" cy="0"/></a:xfrm></p:grpSpPr><p:sp><p:nvSpPr><p:cNvPr id="2" name="Slide Image Placeholder 1"/><p:cNvSpPr><a:spLocks noGrp="1" noRot="1" noChangeAspect="1"/></p:cNvSpPr><p:nvPr><p:ph type="sldImg"/></p:nvPr></p:nvSpPr><p:spPr/></p:sp><p:sp><p:nvSpPr><p:cNvPr id="3" name="Notes Placeholder 2"/><p:cNvSpPr><a:spLocks noGrp="1"/></p:cNvSpPr><p:nvPr><p:ph type="body" idx="1"/></p:nvPr></p:nvSpPr><p:spPr/><p:txBody><a:bodyPr/><a:lstStyle/>${notesParagraphs}</p:txBody></p:sp><p:sp><p:nvSpPr><p:cNvPr id="4" name="Slide Number Placeholder 3"/><p:cNvSpPr><a:spLocks noGrp="1"/></p:cNvSpPr><p:nvPr><p:ph type="sldNum" sz="quarter" idx="10"/></p:nvPr></p:nvSpPr><p:spPr/><p:txBody><a:bodyPr/><a:lstStyle/><a:p><a:fld id="${SLDNUMFLDID}" type="slidenum"><a:rPr lang="en-US"/><a:t>${slide._slideNum}</a:t></a:fld><a:endParaRPr lang="en-US"/></a:p></p:txBody></p:sp></p:spTree><p:extLst><p:ext uri="{BB962C8B-B14F-4D97-AF65-F5344CB8AC3E}"><p14:creationId xmlns:p14="http://schemas.microsoft.com/office/powerpoint/2010/main" val="1024086991"/></p:ext></p:extLst></p:cSld><p:clrMapOvr><a:masterClrMapping/></p:clrMapOvr></p:notes>`;
|
|
22866
22871
|
}
|
|
22867
22872
|
/**
|
|
22868
22873
|
* Generates the XML layout resource from a layout object
|
|
@@ -23791,7 +23796,7 @@ class PptxGenJS {
|
|
|
23791
23796
|
*/ pptxgen_define_property(this, "_layout", void 0);
|
|
23792
23797
|
/**
|
|
23793
23798
|
* PptxGenJS Library Version
|
|
23794
|
-
*/ pptxgen_define_property(this, "_version", (/* inlined export .VERSION */"4.3.
|
|
23799
|
+
*/ pptxgen_define_property(this, "_version", (/* inlined export .VERSION */"4.3.8"));
|
|
23795
23800
|
/**
|
|
23796
23801
|
* @type {string}
|
|
23797
23802
|
*/ pptxgen_define_property(this, "_author", void 0);
|