ooxml-core 1.44.0 → 1.45.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.
- package/dist/{PptxHandler-V23RDNEX.cjs → PptxHandler-3RDVJFQV.cjs} +2 -2
- package/dist/{PptxHandler-WB3KL2WH.mjs → PptxHandler-EI6DMHPM.mjs} +1 -1
- package/dist/{PptxHandler-3VAVJDFB.mjs → PptxHandler-FXLXIOLT.mjs} +2 -2
- package/dist/{PresentationBuilder-7LJMTRJ6.mjs → PresentationBuilder-3FKFRSSV.mjs} +2 -2
- package/dist/{PresentationBuilder-KHL6GONR.cjs → PresentationBuilder-CSKLG64K.cjs} +4 -4
- package/dist/{PresentationBuilder-PY2GB4IG.mjs → PresentationBuilder-DDYHRV26.mjs} +1 -1
- package/dist/automation/index.cjs +10 -1
- package/dist/automation/index.mjs +10 -1
- package/dist/chart/edit/fill.d.ts +6 -2
- package/dist/chart/edit/fill.d.ts.map +1 -1
- package/dist/chart/index.cjs +12 -3
- package/dist/chart/index.mjs +12 -3
- package/dist/{chunk-HLYOHD2Z.mjs → chunk-CVJX6NNO.mjs} +438 -108
- package/dist/{chunk-243ZYX2B.mjs → chunk-GGJUWJXB.mjs} +1 -1
- package/dist/{chunk-KCDLTVUI.mjs → chunk-GXYK3H4O.mjs} +1 -1
- package/dist/{chunk-WEAWSXUX.mjs → chunk-LCXBTJXE.mjs} +4 -4
- package/dist/{chunk-JHYU7HGG.mjs → chunk-RVYGAYCP.mjs} +1 -1
- package/dist/{chunk-4LEVL6ZW.mjs → chunk-U5BXJQZG.mjs} +457 -105
- package/dist/{chunk-RNZQ2OU4.cjs → chunk-YBSNMVSN.cjs} +437 -107
- package/dist/index.cjs +12 -3
- package/dist/index.mjs +12 -3
- package/dist/pptx/automation/index.cjs +529 -167
- package/dist/pptx/automation/index.d.ts +6 -6
- package/dist/pptx/automation/index.mjs +5 -5
- package/dist/pptx/chunks/{elements-PBugbKtv.d.ts → elements-B4Z6N-Gz.d.ts} +4 -477
- package/dist/pptx/chunks/elements-B4Z6N-Gz.d.ts.map +1 -0
- package/dist/pptx/chunks/{index-CCJiD-Bm.d.ts → index-6Ot1b-4U.d.ts} +6 -6
- package/dist/pptx/chunks/{index-CCJiD-Bm.d.ts.map → index-6Ot1b-4U.d.ts.map} +1 -1
- package/dist/pptx/chunks/{index-CGNb1TV9.d.ts → index-DGKI80Hj.d.ts} +61 -6
- package/dist/pptx/chunks/{index-CGNb1TV9.d.ts.map → index-DGKI80Hj.d.ts.map} +1 -1
- package/dist/pptx/chunks/{index-Bj-hur0D.d.ts → index-jdZUtLGB.d.ts} +4 -4
- package/dist/pptx/chunks/{index-Bj-hur0D.d.ts.map → index-jdZUtLGB.d.ts.map} +1 -1
- package/dist/pptx/chunks/{table-C7ITXL3Y.d.ts → table-BfgZfw5R.d.ts} +488 -4
- package/dist/pptx/chunks/table-BfgZfw5R.d.ts.map +1 -0
- package/dist/pptx/chunks/{text-operations-BNJr7aGa.d.ts → text-operations-Mek86RBL.d.ts} +3 -3
- package/dist/pptx/chunks/{text-operations-BNJr7aGa.d.ts.map → text-operations-Mek86RBL.d.ts.map} +1 -1
- package/dist/pptx/cli/index.cjs +525 -163
- package/dist/pptx/cli/index.d.ts +1 -1
- package/dist/pptx/cli/index.mjs +4 -4
- package/dist/pptx/converter/index.d.ts +1 -1
- package/dist/pptx/converter/index.mjs +2 -2
- package/dist/pptx/editor/render/find-replace.d.ts +2 -2
- package/dist/pptx/editor/render/slide-operations.cjs +1 -1
- package/dist/pptx/editor/render/slide-operations.mjs +1 -1
- package/dist/pptx/editor/render/table-layout.d.ts +1 -1
- package/dist/pptx/editor/render/text-runs-style-patch.d.ts +1 -1
- package/dist/pptx/editor/render/text-style-scope.d.ts +1 -1
- package/dist/pptx/index.cjs +558 -168
- package/dist/pptx/index.d.ts +7 -7
- package/dist/pptx/index.mjs +5 -5
- package/dist/pptx/node/index.d.ts +1 -1
- package/dist/xlsx/index.cjs +10 -1
- package/dist/xlsx/index.mjs +10 -1
- package/dist/xlsx/ui/index.cjs +10 -1
- package/dist/xlsx/ui/index.mjs +10 -1
- package/package.json +1 -1
- package/dist/pptx/chunks/elements-PBugbKtv.d.ts.map +0 -1
- package/dist/pptx/chunks/table-C7ITXL3Y.d.ts.map +0 -1
package/dist/index.cjs
CHANGED
|
@@ -19326,7 +19326,16 @@ function repaintSeriesForFamily(series2, toLine) {
|
|
|
19326
19326
|
shape.fill = structuredClone(shape.line.fill);
|
|
19327
19327
|
}
|
|
19328
19328
|
function clearPointPaint(series2, key) {
|
|
19329
|
-
|
|
19329
|
+
const emptied = (part) => Object.keys(part).every((name2) => name2 === "sourceXml");
|
|
19330
|
+
for (const point of series2.dataPoints) {
|
|
19331
|
+
if (!point.spPr) continue;
|
|
19332
|
+
delete point.spPr[key];
|
|
19333
|
+
if (point.spPr.line && emptied(point.spPr.line)) delete point.spPr.line;
|
|
19334
|
+
if (emptied(point.spPr)) delete point.spPr;
|
|
19335
|
+
}
|
|
19336
|
+
series2.dataPoints = series2.dataPoints.filter(
|
|
19337
|
+
(point) => Object.keys(point).some((name2) => name2 !== "index")
|
|
19338
|
+
);
|
|
19330
19339
|
}
|
|
19331
19340
|
function setChartSeriesFill(space3, index, fill) {
|
|
19332
19341
|
return editChartSpace(space3, (draft) => {
|
|
@@ -19345,7 +19354,7 @@ function setChartSeriesLine(space3, index, line4) {
|
|
|
19345
19354
|
);
|
|
19346
19355
|
});
|
|
19347
19356
|
}
|
|
19348
|
-
function setChartSeriesColor(space3, index, color2) {
|
|
19357
|
+
function setChartSeriesColor(space3, index, color2, options2 = {}) {
|
|
19349
19358
|
return editChartSpace(space3, (draft) => {
|
|
19350
19359
|
const { series: series2 } = chartSeriesEntryAt(draft, index);
|
|
19351
19360
|
const shape = series2.spPr ??= {};
|
|
@@ -19355,7 +19364,7 @@ function setChartSeriesColor(space3, index, color2) {
|
|
|
19355
19364
|
const fill = color2 ? { kind: "solid", color: withAlphaOf(color2, previous) } : void 0;
|
|
19356
19365
|
if (line4) assignOrDelete(shape.line ??= {}, "fill", fill);
|
|
19357
19366
|
else assignOrDelete(shape, "fill", fill);
|
|
19358
|
-
clearPointPaint(series2, line4 ? "line" : "fill");
|
|
19367
|
+
if (!options2.keepPointColors) clearPointPaint(series2, line4 ? "line" : "fill");
|
|
19359
19368
|
});
|
|
19360
19369
|
}
|
|
19361
19370
|
function setChartSeriesTransparency(space3, index, percent) {
|
package/dist/index.mjs
CHANGED
|
@@ -19301,7 +19301,16 @@ function repaintSeriesForFamily(series2, toLine) {
|
|
|
19301
19301
|
shape.fill = structuredClone(shape.line.fill);
|
|
19302
19302
|
}
|
|
19303
19303
|
function clearPointPaint(series2, key) {
|
|
19304
|
-
|
|
19304
|
+
const emptied = (part) => Object.keys(part).every((name2) => name2 === "sourceXml");
|
|
19305
|
+
for (const point of series2.dataPoints) {
|
|
19306
|
+
if (!point.spPr) continue;
|
|
19307
|
+
delete point.spPr[key];
|
|
19308
|
+
if (point.spPr.line && emptied(point.spPr.line)) delete point.spPr.line;
|
|
19309
|
+
if (emptied(point.spPr)) delete point.spPr;
|
|
19310
|
+
}
|
|
19311
|
+
series2.dataPoints = series2.dataPoints.filter(
|
|
19312
|
+
(point) => Object.keys(point).some((name2) => name2 !== "index")
|
|
19313
|
+
);
|
|
19305
19314
|
}
|
|
19306
19315
|
function setChartSeriesFill(space3, index, fill) {
|
|
19307
19316
|
return editChartSpace(space3, (draft) => {
|
|
@@ -19320,7 +19329,7 @@ function setChartSeriesLine(space3, index, line4) {
|
|
|
19320
19329
|
);
|
|
19321
19330
|
});
|
|
19322
19331
|
}
|
|
19323
|
-
function setChartSeriesColor(space3, index, color2) {
|
|
19332
|
+
function setChartSeriesColor(space3, index, color2, options2 = {}) {
|
|
19324
19333
|
return editChartSpace(space3, (draft) => {
|
|
19325
19334
|
const { series: series2 } = chartSeriesEntryAt(draft, index);
|
|
19326
19335
|
const shape = series2.spPr ??= {};
|
|
@@ -19330,7 +19339,7 @@ function setChartSeriesColor(space3, index, color2) {
|
|
|
19330
19339
|
const fill = color2 ? { kind: "solid", color: withAlphaOf(color2, previous) } : void 0;
|
|
19331
19340
|
if (line4) assignOrDelete(shape.line ??= {}, "fill", fill);
|
|
19332
19341
|
else assignOrDelete(shape, "fill", fill);
|
|
19333
|
-
clearPointPaint(series2, line4 ? "line" : "fill");
|
|
19342
|
+
if (!options2.keepPointColors) clearPointPaint(series2, line4 ? "line" : "fill");
|
|
19334
19343
|
});
|
|
19335
19344
|
}
|
|
19336
19345
|
function setChartSeriesTransparency(space3, index, percent) {
|