ooxml-core 1.18.0 → 1.19.1
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-X6AO6LKJ.mjs → PptxHandler-2V4PQL6O.mjs} +2 -2
- package/dist/{PptxHandler-4AHDZDA5.cjs → PptxHandler-6TNIQ7S5.cjs} +2 -2
- package/dist/{PptxHandler-5X4VOWAO.mjs → PptxHandler-HSPKEP5E.mjs} +1 -1
- package/dist/{PresentationBuilder-UY3S4YE2.mjs → PresentationBuilder-G7MPEGXJ.mjs} +1 -1
- package/dist/{PresentationBuilder-LRX55PXA.mjs → PresentationBuilder-HQ6C7L4V.mjs} +2 -2
- package/dist/{PresentationBuilder-MJB4LIFS.cjs → PresentationBuilder-RM52LCVN.cjs} +4 -4
- package/dist/automation/index.cjs +535 -266
- package/dist/automation/index.mjs +535 -266
- package/dist/automation/node.cjs +2 -1
- package/dist/automation/node.d.ts.map +1 -1
- package/dist/automation/node.mjs +2 -1
- package/dist/chart/axis-range-auto.d.ts +10 -0
- package/dist/chart/axis-range-auto.d.ts.map +1 -0
- package/dist/chart/axis-range-types.d.ts +27 -0
- package/dist/chart/axis-range-types.d.ts.map +1 -0
- package/dist/chart/axis-range.d.ts +37 -0
- package/dist/chart/axis-range.d.ts.map +1 -0
- package/dist/chart/axis-ticks.d.ts +8 -0
- package/dist/chart/axis-ticks.d.ts.map +1 -0
- package/dist/chart/index.cjs +815 -165
- package/dist/chart/index.d.ts +6 -0
- package/dist/chart/index.d.ts.map +1 -1
- package/dist/chart/index.mjs +795 -166
- package/dist/chart/line-dash.d.ts +2 -0
- package/dist/chart/line-dash.d.ts.map +1 -0
- package/dist/chart/marker-shape.d.ts +70 -0
- package/dist/chart/marker-shape.d.ts.map +1 -0
- package/dist/chart/render/chart-svg-axes.d.ts +9 -0
- package/dist/chart/render/chart-svg-axes.d.ts.map +1 -0
- package/dist/chart/render/chart-svg-cartesian.d.ts.map +1 -1
- package/dist/chart/render/chart-svg-markers.d.ts +6 -0
- package/dist/chart/render/chart-svg-markers.d.ts.map +1 -0
- package/dist/chart/render/chart-svg-radial.d.ts.map +1 -1
- package/dist/chart/render/chart-svg-xy.d.ts.map +1 -1
- package/dist/chart/render/chart-view-axes.d.ts +30 -0
- package/dist/chart/render/chart-view-axes.d.ts.map +1 -0
- package/dist/chart/render/chart-view-markers.d.ts +27 -0
- package/dist/chart/render/chart-view-markers.d.ts.map +1 -0
- package/dist/chart/render/chart-view-series.d.ts.map +1 -1
- package/dist/chart/render/chart-view.d.ts +4 -1
- package/dist/chart/render/chart-view.d.ts.map +1 -1
- package/dist/chart/render/index.d.ts +2 -0
- package/dist/chart/render/index.d.ts.map +1 -1
- package/dist/chart/render/summary-from-space.d.ts.map +1 -1
- package/dist/chart/render/summary.d.ts +6 -1
- package/dist/chart/render/summary.d.ts.map +1 -1
- package/dist/{chunk-D4GBMBG6.mjs → chunk-365VXA3X.mjs} +1 -1
- package/dist/{chunk-7NWQUCGX.mjs → chunk-4FTUAD2B.mjs} +20 -5
- package/dist/{chunk-PLWRGPRH.mjs → chunk-4YDPRQRH.mjs} +145 -96
- package/dist/{chunk-QXDWDDLN.mjs → chunk-6UV3JVB3.mjs} +1 -1
- package/dist/{chunk-3ATTMOYZ.mjs → chunk-7FPQ7LGN.mjs} +1 -1
- package/dist/{chunk-7WCCQKV2.mjs → chunk-7I7CMDUZ.mjs} +1 -1
- package/dist/{chunk-KZ6UTEES.mjs → chunk-E6WNB3JX.mjs} +1 -1
- package/dist/{chunk-SPG7WICG.mjs → chunk-EDRS3OSM.mjs} +1 -1
- package/dist/{chunk-VXLBSKZ6.mjs → chunk-GKLDCQLY.mjs} +1 -1
- package/dist/{chunk-ITQNJLJW.mjs → chunk-ILG6NKXV.mjs} +1 -1
- package/dist/{chunk-OXZUJR7O.mjs → chunk-J3PD5JWS.mjs} +1 -1
- package/dist/{chunk-I5ZE3VLI.mjs → chunk-JUABSM7C.mjs} +1 -1
- package/dist/{chunk-5GBNB7VU.mjs → chunk-LMDNFNZJ.mjs} +1 -1
- package/dist/{chunk-LT7RCEHY.mjs → chunk-M6GDBVQ7.mjs} +1 -1
- package/dist/{chunk-4SMQRUUE.mjs → chunk-MZP6H7QY.mjs} +1 -1
- package/dist/{chunk-KCALUCYU.mjs → chunk-NIGOXRUP.mjs} +1 -1
- package/dist/{chunk-VB7NKWZH.mjs → chunk-P37EWZBC.mjs} +1 -1
- package/dist/{chunk-VD3XNFJH.mjs → chunk-PIOG7ZFF.mjs} +1 -1
- package/dist/{chunk-R4BCOQHB.cjs → chunk-R5FIHHGB.cjs} +33 -13
- package/dist/{chunk-4EUHK4OA.mjs → chunk-RRQFRNPQ.mjs} +1 -1
- package/dist/{chunk-AXDQEOYK.mjs → chunk-S3E6XBOU.mjs} +1 -1
- package/dist/{chunk-U7IDT6VT.mjs → chunk-SLNQNVQM.mjs} +1 -1
- package/dist/{chunk-Z5Y53IZD.mjs → chunk-TJPUAUWL.mjs} +4 -4
- package/dist/{chunk-53GW7NSV.mjs → chunk-UFZZESXL.mjs} +1 -1
- package/dist/{chunk-4JGKTRLH.mjs → chunk-X45XTEMI.mjs} +1 -1
- package/dist/{chunk-DUSAQQTU.mjs → chunk-YIXIC3TR.mjs} +1 -1
- package/dist/{chunk-YSKKMXDL.mjs → chunk-ZDD2RZGB.mjs} +1 -1
- package/dist/{chunk-C363NN2C.mjs → chunk-ZJ2OKIJN.mjs} +33 -13
- package/dist/docx/index.cjs +695 -168
- package/dist/docx/index.mjs +695 -168
- package/dist/docx/layout/index.cjs +697 -170
- package/dist/docx/layout/index.mjs +697 -170
- package/dist/docx/ui/index.cjs +704 -177
- package/dist/docx/ui/index.mjs +704 -177
- package/dist/index.cjs +912 -262
- package/dist/index.mjs +912 -262
- package/dist/pptx/automation/index.cjs +89 -14
- package/dist/pptx/automation/index.d.ts +2 -2
- package/dist/pptx/automation/index.mjs +5 -5
- package/dist/pptx/automation/schemas/chart-formatting-schemas.cjs +145 -96
- package/dist/pptx/automation/schemas/chart-formatting-schemas.d.ts +1 -1
- package/dist/pptx/automation/schemas/chart-formatting-schemas.d.ts.map +1 -1
- package/dist/pptx/automation/schemas/chart-formatting-schemas.mjs +2 -2
- package/dist/pptx/automation/schemas/chart-schemas.cjs +145 -96
- package/dist/pptx/automation/schemas/chart-schemas.d.ts +1 -1
- package/dist/pptx/automation/schemas/chart-schemas.d.ts.map +1 -1
- package/dist/pptx/automation/schemas/chart-schemas.mjs +2 -2
- package/dist/pptx/automation/schemas/chart-user-shape-schemas.cjs +145 -96
- package/dist/pptx/automation/schemas/chart-user-shape-schemas.d.ts +1 -1
- package/dist/pptx/automation/schemas/chart-user-shape-schemas.d.ts.map +1 -1
- package/dist/pptx/automation/schemas/chart-user-shape-schemas.mjs +2 -2
- package/dist/pptx/automation/schemas/element-schemas.cjs +145 -96
- package/dist/pptx/automation/schemas/element-schemas.d.ts +1 -1
- package/dist/pptx/automation/schemas/element-schemas.d.ts.map +1 -1
- package/dist/pptx/automation/schemas/element-schemas.mjs +2 -2
- package/dist/pptx/automation/schemas/export-schemas.cjs +145 -96
- package/dist/pptx/automation/schemas/export-schemas.d.ts +1 -1
- package/dist/pptx/automation/schemas/export-schemas.d.ts.map +1 -1
- package/dist/pptx/automation/schemas/export-schemas.mjs +2 -2
- package/dist/pptx/automation/schemas/geometry-schemas.cjs +145 -96
- package/dist/pptx/automation/schemas/geometry-schemas.d.ts +1 -1
- package/dist/pptx/automation/schemas/geometry-schemas.d.ts.map +1 -1
- package/dist/pptx/automation/schemas/geometry-schemas.mjs +2 -2
- package/dist/pptx/automation/schemas/hyperlink-schemas.cjs +145 -96
- package/dist/pptx/automation/schemas/hyperlink-schemas.d.ts +1 -1
- package/dist/pptx/automation/schemas/hyperlink-schemas.d.ts.map +1 -1
- package/dist/pptx/automation/schemas/hyperlink-schemas.mjs +2 -2
- package/dist/pptx/automation/schemas/index.cjs +145 -96
- package/dist/pptx/automation/schemas/index.mjs +21 -21
- package/dist/pptx/automation/schemas/json-schemas.cjs +145 -96
- package/dist/pptx/automation/schemas/json-schemas.d.ts +1 -1
- package/dist/pptx/automation/schemas/json-schemas.d.ts.map +1 -1
- package/dist/pptx/automation/schemas/json-schemas.mjs +2 -2
- package/dist/pptx/automation/schemas/layout-schemas.cjs +145 -96
- package/dist/pptx/automation/schemas/layout-schemas.d.ts +1 -1
- package/dist/pptx/automation/schemas/layout-schemas.d.ts.map +1 -1
- package/dist/pptx/automation/schemas/layout-schemas.mjs +2 -2
- package/dist/pptx/automation/schemas/lock-schemas.cjs +145 -96
- package/dist/pptx/automation/schemas/lock-schemas.d.ts +1 -1
- package/dist/pptx/automation/schemas/lock-schemas.d.ts.map +1 -1
- package/dist/pptx/automation/schemas/lock-schemas.mjs +2 -2
- package/dist/pptx/automation/schemas/metadata-schemas.cjs +145 -96
- package/dist/pptx/automation/schemas/metadata-schemas.d.ts +1 -1
- package/dist/pptx/automation/schemas/metadata-schemas.d.ts.map +1 -1
- package/dist/pptx/automation/schemas/metadata-schemas.mjs +2 -2
- package/dist/pptx/automation/schemas/ole-schemas.cjs +145 -96
- package/dist/pptx/automation/schemas/ole-schemas.d.ts +1 -1
- package/dist/pptx/automation/schemas/ole-schemas.d.ts.map +1 -1
- package/dist/pptx/automation/schemas/ole-schemas.mjs +2 -2
- package/dist/pptx/automation/schemas/presentation-schemas.cjs +145 -96
- package/dist/pptx/automation/schemas/presentation-schemas.d.ts +1 -1
- package/dist/pptx/automation/schemas/presentation-schemas.d.ts.map +1 -1
- package/dist/pptx/automation/schemas/presentation-schemas.mjs +2 -2
- package/dist/pptx/automation/schemas/section-schemas.cjs +145 -96
- package/dist/pptx/automation/schemas/section-schemas.d.ts +1 -1
- package/dist/pptx/automation/schemas/section-schemas.d.ts.map +1 -1
- package/dist/pptx/automation/schemas/section-schemas.mjs +2 -2
- package/dist/pptx/automation/schemas/slide-schemas.cjs +145 -96
- package/dist/pptx/automation/schemas/slide-schemas.d.ts +1 -1
- package/dist/pptx/automation/schemas/slide-schemas.d.ts.map +1 -1
- package/dist/pptx/automation/schemas/slide-schemas.mjs +2 -2
- package/dist/pptx/automation/schemas/smartart-schemas.cjs +145 -96
- package/dist/pptx/automation/schemas/smartart-schemas.d.ts +1 -1
- package/dist/pptx/automation/schemas/smartart-schemas.d.ts.map +1 -1
- package/dist/pptx/automation/schemas/smartart-schemas.mjs +2 -2
- package/dist/pptx/automation/schemas/table-style-schemas.cjs +145 -96
- package/dist/pptx/automation/schemas/table-style-schemas.d.ts +1 -1
- package/dist/pptx/automation/schemas/table-style-schemas.d.ts.map +1 -1
- package/dist/pptx/automation/schemas/table-style-schemas.mjs +2 -2
- package/dist/pptx/automation/schemas/template-schemas.cjs +145 -96
- package/dist/pptx/automation/schemas/template-schemas.d.ts +1 -1
- package/dist/pptx/automation/schemas/template-schemas.d.ts.map +1 -1
- package/dist/pptx/automation/schemas/template-schemas.mjs +2 -2
- package/dist/pptx/automation/schemas/theme-schemas.cjs +145 -96
- package/dist/pptx/automation/schemas/theme-schemas.d.ts +1 -1
- package/dist/pptx/automation/schemas/theme-schemas.d.ts.map +1 -1
- package/dist/pptx/automation/schemas/theme-schemas.mjs +2 -2
- package/dist/pptx/automation/schemas/validation-schemas.cjs +145 -96
- package/dist/pptx/automation/schemas/validation-schemas.d.ts +1 -1
- package/dist/pptx/automation/schemas/validation-schemas.d.ts.map +1 -1
- package/dist/pptx/automation/schemas/validation-schemas.mjs +2 -2
- package/dist/pptx/chunks/{index-CiyTR6mm.d.ts → index-B9x557hr.d.ts} +3 -2
- package/dist/pptx/chunks/{index-CiyTR6mm.d.ts.map → index-B9x557hr.d.ts.map} +1 -1
- package/dist/pptx/chunks/{index-BWHNCVNC.d.ts → index-Bqm-jFG-.d.ts} +3 -4
- package/dist/pptx/chunks/{index-BWHNCVNC.d.ts.map → index-Bqm-jFG-.d.ts.map} +1 -1
- package/dist/pptx/chunks/schemas-CWr181Wx.d.ts +2186 -0
- package/dist/pptx/chunks/schemas-CWr181Wx.d.ts.map +1 -0
- package/dist/pptx/cli/index.cjs +89 -14
- 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/loader/table-style-image-paths.d.ts +1 -0
- package/dist/pptx/editor/render/collaboration-text-native-edit.d.ts +1 -0
- package/dist/pptx/editor/render/collaboration-text-session-paragraph.d.ts +1 -0
- package/dist/pptx/editor/render/collaboration-text-snapshot-positions.d.ts.map +1 -1
- package/dist/pptx/editor/render/find-replace.d.ts +1 -1
- package/dist/pptx/editor/render/slide-operations.cjs +1 -1
- package/dist/pptx/editor/render/slide-operations.mjs +1 -1
- package/dist/pptx/index.cjs +84 -6
- package/dist/pptx/index.d.ts +2 -2
- package/dist/pptx/index.mjs +5 -5
- package/dist/pptx/ui/index.d.ts +1 -0
- package/dist/teams/index.cjs +71 -5
- package/dist/teams/index.mjs +71 -5
- package/dist/visio/index.cjs +483 -214
- package/dist/visio/index.mjs +483 -214
- package/dist/visio/ui/index.cjs +504 -235
- package/dist/visio/ui/index.mjs +504 -235
- package/dist/xlsx/edit/chart-colors.d.ts.map +1 -1
- package/dist/xlsx/index.cjs +818 -281
- package/dist/xlsx/index.mjs +818 -281
- package/dist/xlsx/load/index.cjs +58 -5
- package/dist/xlsx/load/index.mjs +58 -5
- package/dist/xlsx/read/chart.d.ts.map +1 -1
- package/dist/xlsx/ui/index.cjs +835 -298
- package/dist/xlsx/ui/index.mjs +835 -298
- package/package.json +9 -9
- package/dist/pptx/chunks/external-DQ3B4V-o.d.ts +0 -4275
- package/dist/pptx/chunks/external-DQ3B4V-o.d.ts.map +0 -1
package/dist/xlsx/load/index.cjs
CHANGED
|
@@ -12953,6 +12953,51 @@ function parseChartSpace(source2) {
|
|
|
12953
12953
|
);
|
|
12954
12954
|
return { chartSpace, issues: context.issues };
|
|
12955
12955
|
}
|
|
12956
|
+
var AUTOMATIC_MARKER_CYCLE = [
|
|
12957
|
+
"diamond",
|
|
12958
|
+
"square",
|
|
12959
|
+
"triangle",
|
|
12960
|
+
"x",
|
|
12961
|
+
"star",
|
|
12962
|
+
"circle",
|
|
12963
|
+
"plus",
|
|
12964
|
+
"dot",
|
|
12965
|
+
"dash"
|
|
12966
|
+
];
|
|
12967
|
+
function automaticMarkerSymbol(seriesIdx) {
|
|
12968
|
+
const length = AUTOMATIC_MARKER_CYCLE.length;
|
|
12969
|
+
const normalized = (Math.trunc(seriesIdx) % length + length) % length;
|
|
12970
|
+
return AUTOMATIC_MARKER_CYCLE[Number.isFinite(normalized) ? normalized : 0];
|
|
12971
|
+
}
|
|
12972
|
+
|
|
12973
|
+
// chart/render/chart-view-markers.ts
|
|
12974
|
+
function summaryMarkers(source2, group, seriesPosition) {
|
|
12975
|
+
if (!["line", "scatter", "radar"].includes(group.kind)) return {};
|
|
12976
|
+
const enabled = group.kind === "line" ? group.marker === true : group.kind === "radar" ? group.radarStyle === "marker" : !["line", "smooth", "none"].includes(group.scatterStyle ?? "marker");
|
|
12977
|
+
const symbol = source2.marker?.symbol;
|
|
12978
|
+
const marker3 = {
|
|
12979
|
+
...source2.marker,
|
|
12980
|
+
symbol: symbol && symbol !== "auto" ? symbol : source2.marker || enabled ? automaticMarkerSymbol(source2.index ?? seriesPosition) : "none"
|
|
12981
|
+
};
|
|
12982
|
+
const pointMarkers = {};
|
|
12983
|
+
for (const point of source2.dataPoints) {
|
|
12984
|
+
if (point.index === void 0 || !point.marker) continue;
|
|
12985
|
+
const override = point.marker;
|
|
12986
|
+
pointMarkers[point.index] = {
|
|
12987
|
+
...marker3,
|
|
12988
|
+
...override,
|
|
12989
|
+
...override.symbol === "auto" || !source2.marker && override.symbol === void 0 ? { symbol: automaticMarkerSymbol(source2.index ?? seriesPosition) } : {},
|
|
12990
|
+
...marker3.spPr || override.spPr ? {
|
|
12991
|
+
spPr: {
|
|
12992
|
+
...marker3.spPr,
|
|
12993
|
+
...override.spPr,
|
|
12994
|
+
...marker3.spPr?.line || override.spPr?.line ? { line: { ...marker3.spPr?.line, ...override.spPr?.line } } : {}
|
|
12995
|
+
}
|
|
12996
|
+
} : {}
|
|
12997
|
+
};
|
|
12998
|
+
}
|
|
12999
|
+
return { marker: marker3, ...Object.keys(pointMarkers).length ? { pointMarkers } : {} };
|
|
13000
|
+
}
|
|
12956
13001
|
|
|
12957
13002
|
// chart/render/summary-analysis.ts
|
|
12958
13003
|
function summaryTrendline(source2) {
|
|
@@ -13137,7 +13182,10 @@ function extraGroups(chartSpace, firstType) {
|
|
|
13137
13182
|
const type = group.kind === "bar" ? "column" : group.kind;
|
|
13138
13183
|
const entry3 = {
|
|
13139
13184
|
chartType: type,
|
|
13140
|
-
series: group.series.map((source2) =>
|
|
13185
|
+
series: group.series.map((source2, index3) => ({
|
|
13186
|
+
...chartSummarySeries(source2, type, group.dataLabels),
|
|
13187
|
+
...summaryMarkers(source2, group, index3)
|
|
13188
|
+
})),
|
|
13141
13189
|
secondary: valueAxisId(chartSpace, group.axisIds) !== primary
|
|
13142
13190
|
};
|
|
13143
13191
|
if (group.grouping && GROUPINGS.has(group.grouping))
|
|
@@ -13155,13 +13203,16 @@ function chartSummaryFromSpace(chartSpace, extras = {}) {
|
|
|
13155
13203
|
const group = chartSpace.plotArea.groups[0];
|
|
13156
13204
|
let chartType = group ? GROUP_TYPES[group.kind] : "column";
|
|
13157
13205
|
if (chartType === "bar" && group?.barDirection !== "bar") chartType = "column";
|
|
13158
|
-
const series = (group?.series ?? []).map(
|
|
13159
|
-
|
|
13160
|
-
|
|
13206
|
+
const series = (group?.series ?? []).map((source2, index3) => ({
|
|
13207
|
+
...chartSummarySeries(source2, chartType, group?.dataLabels),
|
|
13208
|
+
...group ? summaryMarkers(source2, group, index3) : {}
|
|
13209
|
+
}));
|
|
13161
13210
|
const summary = {
|
|
13162
13211
|
chartType,
|
|
13163
13212
|
series,
|
|
13164
|
-
showLegend: chartSpace.legend !== void 0
|
|
13213
|
+
showLegend: chartSpace.legend !== void 0,
|
|
13214
|
+
axes: chartSpace.plotArea.axes,
|
|
13215
|
+
axisIds: group?.axisIds ?? []
|
|
13165
13216
|
};
|
|
13166
13217
|
const combined = extraGroups(chartSpace, chartType);
|
|
13167
13218
|
if (combined.length) summary.extraGroups = combined;
|
|
@@ -13244,6 +13295,8 @@ function parseChart(xml, anchor, partName, name) {
|
|
|
13244
13295
|
showLegend: summary.showLegend,
|
|
13245
13296
|
partName
|
|
13246
13297
|
};
|
|
13298
|
+
if (summary.axes) object.axes = summary.axes;
|
|
13299
|
+
if (summary.axisIds) object.axisIds = summary.axisIds;
|
|
13247
13300
|
if (summary.grouping) object.grouping = summary.grouping;
|
|
13248
13301
|
if (summary.barGapWidth !== void 0) object.barGapWidth = summary.barGapWidth;
|
|
13249
13302
|
if (summary.barOverlap !== void 0) object.barOverlap = summary.barOverlap;
|
package/dist/xlsx/load/index.mjs
CHANGED
|
@@ -12947,6 +12947,51 @@ function parseChartSpace(source2) {
|
|
|
12947
12947
|
);
|
|
12948
12948
|
return { chartSpace, issues: context.issues };
|
|
12949
12949
|
}
|
|
12950
|
+
var AUTOMATIC_MARKER_CYCLE = [
|
|
12951
|
+
"diamond",
|
|
12952
|
+
"square",
|
|
12953
|
+
"triangle",
|
|
12954
|
+
"x",
|
|
12955
|
+
"star",
|
|
12956
|
+
"circle",
|
|
12957
|
+
"plus",
|
|
12958
|
+
"dot",
|
|
12959
|
+
"dash"
|
|
12960
|
+
];
|
|
12961
|
+
function automaticMarkerSymbol(seriesIdx) {
|
|
12962
|
+
const length = AUTOMATIC_MARKER_CYCLE.length;
|
|
12963
|
+
const normalized = (Math.trunc(seriesIdx) % length + length) % length;
|
|
12964
|
+
return AUTOMATIC_MARKER_CYCLE[Number.isFinite(normalized) ? normalized : 0];
|
|
12965
|
+
}
|
|
12966
|
+
|
|
12967
|
+
// chart/render/chart-view-markers.ts
|
|
12968
|
+
function summaryMarkers(source2, group, seriesPosition) {
|
|
12969
|
+
if (!["line", "scatter", "radar"].includes(group.kind)) return {};
|
|
12970
|
+
const enabled = group.kind === "line" ? group.marker === true : group.kind === "radar" ? group.radarStyle === "marker" : !["line", "smooth", "none"].includes(group.scatterStyle ?? "marker");
|
|
12971
|
+
const symbol = source2.marker?.symbol;
|
|
12972
|
+
const marker3 = {
|
|
12973
|
+
...source2.marker,
|
|
12974
|
+
symbol: symbol && symbol !== "auto" ? symbol : source2.marker || enabled ? automaticMarkerSymbol(source2.index ?? seriesPosition) : "none"
|
|
12975
|
+
};
|
|
12976
|
+
const pointMarkers = {};
|
|
12977
|
+
for (const point of source2.dataPoints) {
|
|
12978
|
+
if (point.index === void 0 || !point.marker) continue;
|
|
12979
|
+
const override = point.marker;
|
|
12980
|
+
pointMarkers[point.index] = {
|
|
12981
|
+
...marker3,
|
|
12982
|
+
...override,
|
|
12983
|
+
...override.symbol === "auto" || !source2.marker && override.symbol === void 0 ? { symbol: automaticMarkerSymbol(source2.index ?? seriesPosition) } : {},
|
|
12984
|
+
...marker3.spPr || override.spPr ? {
|
|
12985
|
+
spPr: {
|
|
12986
|
+
...marker3.spPr,
|
|
12987
|
+
...override.spPr,
|
|
12988
|
+
...marker3.spPr?.line || override.spPr?.line ? { line: { ...marker3.spPr?.line, ...override.spPr?.line } } : {}
|
|
12989
|
+
}
|
|
12990
|
+
} : {}
|
|
12991
|
+
};
|
|
12992
|
+
}
|
|
12993
|
+
return { marker: marker3, ...Object.keys(pointMarkers).length ? { pointMarkers } : {} };
|
|
12994
|
+
}
|
|
12950
12995
|
|
|
12951
12996
|
// chart/render/summary-analysis.ts
|
|
12952
12997
|
function summaryTrendline(source2) {
|
|
@@ -13131,7 +13176,10 @@ function extraGroups(chartSpace, firstType) {
|
|
|
13131
13176
|
const type = group.kind === "bar" ? "column" : group.kind;
|
|
13132
13177
|
const entry3 = {
|
|
13133
13178
|
chartType: type,
|
|
13134
|
-
series: group.series.map((source2) =>
|
|
13179
|
+
series: group.series.map((source2, index3) => ({
|
|
13180
|
+
...chartSummarySeries(source2, type, group.dataLabels),
|
|
13181
|
+
...summaryMarkers(source2, group, index3)
|
|
13182
|
+
})),
|
|
13135
13183
|
secondary: valueAxisId(chartSpace, group.axisIds) !== primary
|
|
13136
13184
|
};
|
|
13137
13185
|
if (group.grouping && GROUPINGS.has(group.grouping))
|
|
@@ -13149,13 +13197,16 @@ function chartSummaryFromSpace(chartSpace, extras = {}) {
|
|
|
13149
13197
|
const group = chartSpace.plotArea.groups[0];
|
|
13150
13198
|
let chartType = group ? GROUP_TYPES[group.kind] : "column";
|
|
13151
13199
|
if (chartType === "bar" && group?.barDirection !== "bar") chartType = "column";
|
|
13152
|
-
const series = (group?.series ?? []).map(
|
|
13153
|
-
|
|
13154
|
-
|
|
13200
|
+
const series = (group?.series ?? []).map((source2, index3) => ({
|
|
13201
|
+
...chartSummarySeries(source2, chartType, group?.dataLabels),
|
|
13202
|
+
...group ? summaryMarkers(source2, group, index3) : {}
|
|
13203
|
+
}));
|
|
13155
13204
|
const summary = {
|
|
13156
13205
|
chartType,
|
|
13157
13206
|
series,
|
|
13158
|
-
showLegend: chartSpace.legend !== void 0
|
|
13207
|
+
showLegend: chartSpace.legend !== void 0,
|
|
13208
|
+
axes: chartSpace.plotArea.axes,
|
|
13209
|
+
axisIds: group?.axisIds ?? []
|
|
13159
13210
|
};
|
|
13160
13211
|
const combined = extraGroups(chartSpace, chartType);
|
|
13161
13212
|
if (combined.length) summary.extraGroups = combined;
|
|
@@ -13238,6 +13289,8 @@ function parseChart(xml, anchor, partName, name) {
|
|
|
13238
13289
|
showLegend: summary.showLegend,
|
|
13239
13290
|
partName
|
|
13240
13291
|
};
|
|
13292
|
+
if (summary.axes) object.axes = summary.axes;
|
|
13293
|
+
if (summary.axisIds) object.axisIds = summary.axisIds;
|
|
13241
13294
|
if (summary.grouping) object.grouping = summary.grouping;
|
|
13242
13295
|
if (summary.barGapWidth !== void 0) object.barGapWidth = summary.barGapWidth;
|
|
13243
13296
|
if (summary.barOverlap !== void 0) object.barOverlap = summary.barOverlap;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chart.d.ts","sourceRoot":"","sources":["../../../xlsx/read/chart.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,WAAW,EAAsB,aAAa,EAAE,MAAM,UAAU,CAAC;AAoC/E,2DAA2D;AAC3D,wBAAgB,UAAU,CACzB,GAAG,EAAE,MAAM,EACX,MAAM,EAAE,aAAa,EACrB,QAAQ,EAAE,MAAM,EAChB,IAAI,CAAC,EAAE,MAAM,GACX,WAAW,
|
|
1
|
+
{"version":3,"file":"chart.d.ts","sourceRoot":"","sources":["../../../xlsx/read/chart.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,WAAW,EAAsB,aAAa,EAAE,MAAM,UAAU,CAAC;AAoC/E,2DAA2D;AAC3D,wBAAgB,UAAU,CACzB,GAAG,EAAE,MAAM,EACX,MAAM,EAAE,aAAa,EACrB,QAAQ,EAAE,MAAM,EAChB,IAAI,CAAC,EAAE,MAAM,GACX,WAAW,CA8Bb"}
|