pptxgenjs-plus 4.3.8 → 4.3.10
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 +43 -43
- package/dist/pptxgen.cjs.js +16 -13
- package/dist/pptxgen.es.js +16 -13
- package/dist/pptxgen.min.js +43 -43
- package/package.json +1 -1
package/dist/pptxgen.cjs.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* PptxGenJS 4.3.
|
|
1
|
+
/* PptxGenJS 4.3.10 @ 2026-12-04T13:41:11.342Z */
|
|
2
2
|
|
|
3
3
|
"use strict";
|
|
4
4
|
const __rslib_import_meta_url__ = /*#__PURE__*/ (function () {
|
|
@@ -3759,18 +3759,20 @@ function genXmlTextRun(textObj) {
|
|
|
3759
3759
|
const arrLines = [];
|
|
3760
3760
|
let arrTexts = [];
|
|
3761
3761
|
arrTextObjects.forEach((textObj, idx)=>{
|
|
3762
|
-
var _textObj_options, _textObj_options1, _textObj_options2, _textObj_options3;
|
|
3762
|
+
var _textObj_options, _textObj_options1, _arrTexts__options, _textObj_options2, _textObj_options3;
|
|
3763
3763
|
// OMML-only runs use empty `text` but must still emit content
|
|
3764
3764
|
if (!textObj.text && ((_textObj_options = textObj.options) === null || _textObj_options === void 0 ? void 0 : _textObj_options.omml)) textObj.text = '';
|
|
3765
3765
|
// A: Align or Bullet trigger new line
|
|
3766
|
-
|
|
3767
|
-
|
|
3768
|
-
|
|
3769
|
-
|
|
3770
|
-
|
|
3771
|
-
|
|
3772
|
-
|
|
3773
|
-
|
|
3766
|
+
// Compare explicit run align against the current paragraph's effective align so inline runs
|
|
3767
|
+
// that omit `options.align` (e.g. inline OMML, bold runs, or `softBreakBefore` runs) stay
|
|
3768
|
+
// inside the same `<a:p>` instead of splitting into spurious hard paragraphs.
|
|
3769
|
+
const currAlign = (_textObj_options1 = textObj.options) === null || _textObj_options1 === void 0 ? void 0 : _textObj_options1.align;
|
|
3770
|
+
const paraAlign = arrTexts.length > 0 ? ((_arrTexts__options = arrTexts[0].options) === null || _arrTexts__options === void 0 ? void 0 : _arrTexts__options.align) || opts.align : undefined;
|
|
3771
|
+
if (arrTexts.length > 0 && currAlign && currAlign !== paraAlign) {
|
|
3772
|
+
// Only start a new paragraph when effective align *changes*
|
|
3773
|
+
arrLines.push(arrTexts);
|
|
3774
|
+
arrTexts = [];
|
|
3775
|
+
} else if (arrTexts.length > 0 && ((_textObj_options2 = textObj.options) === null || _textObj_options2 === void 0 ? void 0 : _textObj_options2.bullet)) {
|
|
3774
3776
|
arrLines.push(arrTexts);
|
|
3775
3777
|
arrTexts = [];
|
|
3776
3778
|
if (textObj.options) textObj.options.breakLine = false; // For cases with both `bullet` and `brekaLine` - prevent double lineBreak
|
|
@@ -7533,9 +7535,10 @@ function xml_object_spread_props(target, source) {
|
|
|
7533
7535
|
if (Array.isArray(rel.opts._type)) {
|
|
7534
7536
|
rel.opts._type.forEach((type)=>{
|
|
7535
7537
|
var _options_secondaryValAxis;
|
|
7536
|
-
// TODO: FIXME: theres `options` on chart rels??
|
|
7537
7538
|
const options = xml_object_spread({}, rel.opts, type.options);
|
|
7538
|
-
|
|
7539
|
+
if (options.dataLabelPosition) {
|
|
7540
|
+
options.dataLabelPosition = resolveDataLabelPosition(options.dataLabelPosition, type.type, options.barGrouping);
|
|
7541
|
+
}
|
|
7539
7542
|
const valAxisId = options.secondaryValAxis ? AXIS_ID_VALUE_SECONDARY : AXIS_ID_VALUE_PRIMARY;
|
|
7540
7543
|
const catAxisId = options.secondaryCatAxis ? AXIS_ID_CATEGORY_SECONDARY : AXIS_ID_CATEGORY_PRIMARY;
|
|
7541
7544
|
usesSecondaryValAxis = usesSecondaryValAxis || ((_options_secondaryValAxis = options.secondaryValAxis) !== null && _options_secondaryValAxis !== void 0 ? _options_secondaryValAxis : false);
|
|
@@ -23928,7 +23931,7 @@ class PptxGenJS {
|
|
|
23928
23931
|
*/ pptxgen_define_property(this, "_layout", void 0);
|
|
23929
23932
|
/**
|
|
23930
23933
|
* PptxGenJS Library Version
|
|
23931
|
-
*/ pptxgen_define_property(this, "_version", (/* inlined export .VERSION */"4.3.
|
|
23934
|
+
*/ pptxgen_define_property(this, "_version", (/* inlined export .VERSION */"4.3.10"));
|
|
23932
23935
|
/**
|
|
23933
23936
|
* @type {string}
|
|
23934
23937
|
*/ 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.10 @ 2026-12-04T13:41:11.342Z */
|
|
2
2
|
|
|
3
3
|
import { JSZip } from "@node-projects/jszip";
|
|
4
4
|
import { parseXml } from "@rgrove/parse-xml";
|
|
@@ -3717,18 +3717,20 @@ function genXmlTextRun(textObj) {
|
|
|
3717
3717
|
const arrLines = [];
|
|
3718
3718
|
let arrTexts = [];
|
|
3719
3719
|
arrTextObjects.forEach((textObj, idx)=>{
|
|
3720
|
-
var _textObj_options, _textObj_options1, _textObj_options2, _textObj_options3;
|
|
3720
|
+
var _textObj_options, _textObj_options1, _arrTexts__options, _textObj_options2, _textObj_options3;
|
|
3721
3721
|
// OMML-only runs use empty `text` but must still emit content
|
|
3722
3722
|
if (!textObj.text && ((_textObj_options = textObj.options) === null || _textObj_options === void 0 ? void 0 : _textObj_options.omml)) textObj.text = '';
|
|
3723
3723
|
// A: Align or Bullet trigger new line
|
|
3724
|
-
|
|
3725
|
-
|
|
3726
|
-
|
|
3727
|
-
|
|
3728
|
-
|
|
3729
|
-
|
|
3730
|
-
|
|
3731
|
-
|
|
3724
|
+
// Compare explicit run align against the current paragraph's effective align so inline runs
|
|
3725
|
+
// that omit `options.align` (e.g. inline OMML, bold runs, or `softBreakBefore` runs) stay
|
|
3726
|
+
// inside the same `<a:p>` instead of splitting into spurious hard paragraphs.
|
|
3727
|
+
const currAlign = (_textObj_options1 = textObj.options) === null || _textObj_options1 === void 0 ? void 0 : _textObj_options1.align;
|
|
3728
|
+
const paraAlign = arrTexts.length > 0 ? ((_arrTexts__options = arrTexts[0].options) === null || _arrTexts__options === void 0 ? void 0 : _arrTexts__options.align) || opts.align : undefined;
|
|
3729
|
+
if (arrTexts.length > 0 && currAlign && currAlign !== paraAlign) {
|
|
3730
|
+
// Only start a new paragraph when effective align *changes*
|
|
3731
|
+
arrLines.push(arrTexts);
|
|
3732
|
+
arrTexts = [];
|
|
3733
|
+
} else if (arrTexts.length > 0 && ((_textObj_options2 = textObj.options) === null || _textObj_options2 === void 0 ? void 0 : _textObj_options2.bullet)) {
|
|
3732
3734
|
arrLines.push(arrTexts);
|
|
3733
3735
|
arrTexts = [];
|
|
3734
3736
|
if (textObj.options) textObj.options.breakLine = false; // For cases with both `bullet` and `brekaLine` - prevent double lineBreak
|
|
@@ -7483,9 +7485,10 @@ function xml_object_spread_props(target, source) {
|
|
|
7483
7485
|
if (Array.isArray(rel.opts._type)) {
|
|
7484
7486
|
rel.opts._type.forEach((type)=>{
|
|
7485
7487
|
var _options_secondaryValAxis;
|
|
7486
|
-
// TODO: FIXME: theres `options` on chart rels??
|
|
7487
7488
|
const options = xml_object_spread({}, rel.opts, type.options);
|
|
7488
|
-
|
|
7489
|
+
if (options.dataLabelPosition) {
|
|
7490
|
+
options.dataLabelPosition = resolveDataLabelPosition(options.dataLabelPosition, type.type, options.barGrouping);
|
|
7491
|
+
}
|
|
7489
7492
|
const valAxisId = options.secondaryValAxis ? AXIS_ID_VALUE_SECONDARY : AXIS_ID_VALUE_PRIMARY;
|
|
7490
7493
|
const catAxisId = options.secondaryCatAxis ? AXIS_ID_CATEGORY_SECONDARY : AXIS_ID_CATEGORY_PRIMARY;
|
|
7491
7494
|
usesSecondaryValAxis = usesSecondaryValAxis || ((_options_secondaryValAxis = options.secondaryValAxis) !== null && _options_secondaryValAxis !== void 0 ? _options_secondaryValAxis : false);
|
|
@@ -23796,7 +23799,7 @@ class PptxGenJS {
|
|
|
23796
23799
|
*/ pptxgen_define_property(this, "_layout", void 0);
|
|
23797
23800
|
/**
|
|
23798
23801
|
* PptxGenJS Library Version
|
|
23799
|
-
*/ pptxgen_define_property(this, "_version", (/* inlined export .VERSION */"4.3.
|
|
23802
|
+
*/ pptxgen_define_property(this, "_version", (/* inlined export .VERSION */"4.3.10"));
|
|
23800
23803
|
/**
|
|
23801
23804
|
* @type {string}
|
|
23802
23805
|
*/ pptxgen_define_property(this, "_author", void 0);
|