pptx-react-viewer 3.16.2 → 3.16.4
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/CHANGELOG.md +16 -0
- package/dist/{AiChatPanel-SNG6LWGZ.js → AiChatPanel-QJKB2BL3.js} +24 -24
- package/dist/AiChatPanel-QJKB2BL3.js.br +0 -0
- package/dist/AiChatPanel-QJKB2BL3.js.gz +0 -0
- package/dist/{AiChatPanel-D77PKWZT.mjs → AiChatPanel-YWYME2RM.mjs} +3 -3
- package/dist/AiChatPanel-YWYME2RM.mjs.br +0 -0
- package/dist/AiChatPanel-YWYME2RM.mjs.gz +0 -0
- package/dist/{Area3DChartScene-3RNVCXU6.mjs → Area3DChartScene-47SQRQTD.mjs} +1 -1
- package/dist/Area3DChartScene-47SQRQTD.mjs.br +0 -0
- package/dist/Area3DChartScene-47SQRQTD.mjs.gz +0 -0
- package/dist/{Area3DChartScene-4IS4EKPJ.js → Area3DChartScene-DEWKUQUS.js} +2 -2
- package/dist/Area3DChartScene-DEWKUQUS.js.br +0 -0
- package/dist/Area3DChartScene-DEWKUQUS.js.gz +0 -0
- package/dist/{Bar3DChartScene-OODRQGK6.js → Bar3DChartScene-HRCZHDNT.js} +2 -2
- package/dist/Bar3DChartScene-HRCZHDNT.js.br +0 -0
- package/dist/Bar3DChartScene-HRCZHDNT.js.gz +0 -0
- package/dist/{Bar3DChartScene-VKGLA3KB.mjs → Bar3DChartScene-JXXBIKLB.mjs} +1 -1
- package/dist/{Bar3DChartScene-VKGLA3KB.mjs.br → Bar3DChartScene-JXXBIKLB.mjs.br} +0 -0
- package/dist/Bar3DChartScene-JXXBIKLB.mjs.gz +0 -0
- package/dist/{Line3DChartScene-Y6QDWIFG.js → Line3DChartScene-JPHU2WGC.js} +2 -2
- package/dist/Line3DChartScene-JPHU2WGC.js.br +0 -0
- package/dist/Line3DChartScene-JPHU2WGC.js.gz +0 -0
- package/dist/{Line3DChartScene-EPLCFAC5.mjs → Line3DChartScene-S2SV5HCH.mjs} +1 -1
- package/dist/{Line3DChartScene-EPLCFAC5.mjs.br → Line3DChartScene-S2SV5HCH.mjs.br} +0 -0
- package/dist/Line3DChartScene-S2SV5HCH.mjs.gz +0 -0
- package/dist/{Model3DScene-3MYNMS6E.mjs → Model3DScene-4MOLASW6.mjs} +1 -1
- package/dist/Model3DScene-4MOLASW6.mjs.br +0 -0
- package/dist/Model3DScene-4MOLASW6.mjs.gz +0 -0
- package/dist/{Model3DScene-TS35CVPY.js → Model3DScene-JP4ICMLY.js} +2 -2
- package/dist/Model3DScene-JP4ICMLY.js.br +0 -0
- package/dist/Model3DScene-JP4ICMLY.js.gz +0 -0
- package/dist/{PieChart3DScene-UZQFG6GM.mjs → PieChart3DScene-PV7BN7MS.mjs} +1 -1
- package/dist/{PieChart3DScene-UZQFG6GM.mjs.br → PieChart3DScene-PV7BN7MS.mjs.br} +0 -0
- package/dist/PieChart3DScene-PV7BN7MS.mjs.gz +0 -0
- package/dist/{PieChart3DScene-FMVV6AYF.js → PieChart3DScene-QYWGHJGG.js} +2 -2
- package/dist/PieChart3DScene-QYWGHJGG.js.br +0 -0
- package/dist/PieChart3DScene-QYWGHJGG.js.gz +0 -0
- package/dist/{SurfaceChart3DScene-UWRHDZMG.mjs → SurfaceChart3DScene-7ONY7OIY.mjs} +1 -1
- package/dist/SurfaceChart3DScene-7ONY7OIY.mjs.br +0 -0
- package/dist/SurfaceChart3DScene-7ONY7OIY.mjs.gz +0 -0
- package/dist/{SurfaceChart3DScene-T6HOOYKR.js → SurfaceChart3DScene-KAD2GVBY.js} +2 -2
- package/dist/SurfaceChart3DScene-KAD2GVBY.js.br +0 -0
- package/dist/SurfaceChart3DScene-KAD2GVBY.js.gz +0 -0
- package/dist/{chunk-5ETLPGKA.js → chunk-4WGGCKLD.js} +5 -5
- package/dist/chunk-4WGGCKLD.js.br +0 -0
- package/dist/chunk-4WGGCKLD.js.gz +0 -0
- package/dist/{chunk-K5DP3GFC.mjs → chunk-6TGJ5RGQ.mjs} +1 -1
- package/dist/chunk-6TGJ5RGQ.mjs.br +0 -0
- package/dist/{chunk-K5DP3GFC.mjs.gz → chunk-6TGJ5RGQ.mjs.gz} +0 -0
- package/dist/{chunk-QLM6L5PA.js → chunk-EDCU5EK5.js} +469 -463
- package/dist/chunk-EDCU5EK5.js.br +0 -0
- package/dist/chunk-EDCU5EK5.js.gz +0 -0
- package/dist/{chunk-TX77ZJH6.mjs → chunk-IKQY2ZU2.mjs} +1 -1
- package/dist/chunk-IKQY2ZU2.mjs.br +0 -0
- package/dist/chunk-IKQY2ZU2.mjs.gz +0 -0
- package/dist/{chunk-KJEEEUWF.mjs → chunk-ISXUHV3L.mjs} +22 -16
- package/dist/chunk-ISXUHV3L.mjs.br +0 -0
- package/dist/chunk-ISXUHV3L.mjs.gz +0 -0
- package/dist/{chunk-3URR46TX.js → chunk-NMSZ3NSG.js} +169 -169
- package/dist/chunk-NMSZ3NSG.js.br +0 -0
- package/dist/{chunk-3URR46TX.js.gz → chunk-NMSZ3NSG.js.gz} +0 -0
- package/dist/{chunk-42YQYM4M.js → chunk-PABSSYRA.js} +160 -103
- package/dist/chunk-PABSSYRA.js.br +0 -0
- package/dist/chunk-PABSSYRA.js.gz +0 -0
- package/dist/{chunk-F3B7MWQ5.mjs → chunk-R5CW64K4.mjs} +160 -104
- package/dist/chunk-R5CW64K4.mjs.br +0 -0
- package/dist/chunk-R5CW64K4.mjs.gz +0 -0
- package/dist/{chunk-LFOXMY2O.mjs → chunk-USQGKC4A.mjs} +12 -12
- package/dist/chunk-USQGKC4A.mjs.br +0 -0
- package/dist/chunk-USQGKC4A.mjs.gz +0 -0
- package/dist/{chunk-66PTLRAD.js → chunk-ZWZGKJ4E.js} +1290 -1290
- package/dist/chunk-ZWZGKJ4E.js.br +0 -0
- package/dist/chunk-ZWZGKJ4E.js.gz +0 -0
- package/dist/index.js +45 -45
- package/dist/index.js.br +0 -0
- package/dist/index.js.gz +0 -0
- package/dist/index.mjs +5 -5
- package/dist/index.mjs.br +0 -0
- package/dist/index.mjs.gz +0 -0
- package/dist/internals.d.ts.map +1 -1
- package/dist/internals.js +78 -78
- package/dist/internals.js.br +0 -0
- package/dist/internals.js.gz +0 -0
- package/dist/internals.mjs +3 -3
- package/dist/internals.mjs.br +0 -0
- package/dist/internals.mjs.gz +0 -0
- package/dist/viewer/index.js +26 -26
- package/dist/viewer/index.js.br +0 -0
- package/dist/viewer/index.js.gz +0 -0
- package/dist/viewer/index.mjs +5 -5
- package/dist/viewer/index.mjs.br +0 -0
- package/dist/viewer/index.mjs.gz +0 -0
- package/package.json +1 -1
- package/dist/AiChatPanel-D77PKWZT.mjs.br +0 -0
- package/dist/AiChatPanel-D77PKWZT.mjs.gz +0 -0
- package/dist/AiChatPanel-SNG6LWGZ.js.br +0 -0
- package/dist/AiChatPanel-SNG6LWGZ.js.gz +0 -0
- package/dist/Area3DChartScene-3RNVCXU6.mjs.br +0 -0
- package/dist/Area3DChartScene-3RNVCXU6.mjs.gz +0 -0
- package/dist/Area3DChartScene-4IS4EKPJ.js.br +0 -0
- package/dist/Area3DChartScene-4IS4EKPJ.js.gz +0 -0
- package/dist/Bar3DChartScene-OODRQGK6.js.br +0 -0
- package/dist/Bar3DChartScene-OODRQGK6.js.gz +0 -0
- package/dist/Bar3DChartScene-VKGLA3KB.mjs.gz +0 -0
- package/dist/Line3DChartScene-EPLCFAC5.mjs.gz +0 -0
- package/dist/Line3DChartScene-Y6QDWIFG.js.br +0 -0
- package/dist/Line3DChartScene-Y6QDWIFG.js.gz +0 -0
- package/dist/Model3DScene-3MYNMS6E.mjs.br +0 -0
- package/dist/Model3DScene-3MYNMS6E.mjs.gz +0 -0
- package/dist/Model3DScene-TS35CVPY.js.br +0 -0
- package/dist/Model3DScene-TS35CVPY.js.gz +0 -0
- package/dist/PieChart3DScene-FMVV6AYF.js.br +0 -0
- package/dist/PieChart3DScene-FMVV6AYF.js.gz +0 -0
- package/dist/PieChart3DScene-UZQFG6GM.mjs.gz +0 -0
- package/dist/SurfaceChart3DScene-T6HOOYKR.js.br +0 -0
- package/dist/SurfaceChart3DScene-T6HOOYKR.js.gz +0 -0
- package/dist/SurfaceChart3DScene-UWRHDZMG.mjs.br +0 -0
- package/dist/SurfaceChart3DScene-UWRHDZMG.mjs.gz +0 -0
- package/dist/chunk-3URR46TX.js.br +0 -0
- package/dist/chunk-42YQYM4M.js.br +0 -0
- package/dist/chunk-42YQYM4M.js.gz +0 -0
- package/dist/chunk-5ETLPGKA.js.br +0 -0
- package/dist/chunk-5ETLPGKA.js.gz +0 -0
- package/dist/chunk-66PTLRAD.js.br +0 -0
- package/dist/chunk-66PTLRAD.js.gz +0 -0
- package/dist/chunk-F3B7MWQ5.mjs.br +0 -0
- package/dist/chunk-F3B7MWQ5.mjs.gz +0 -0
- package/dist/chunk-K5DP3GFC.mjs.br +0 -0
- package/dist/chunk-KJEEEUWF.mjs.br +0 -0
- package/dist/chunk-KJEEEUWF.mjs.gz +0 -0
- package/dist/chunk-LFOXMY2O.mjs.br +0 -0
- package/dist/chunk-LFOXMY2O.mjs.gz +0 -0
- package/dist/chunk-QLM6L5PA.js.br +0 -0
- package/dist/chunk-QLM6L5PA.js.gz +0 -0
- package/dist/chunk-TX77ZJH6.mjs.br +0 -0
- package/dist/chunk-TX77ZJH6.mjs.gz +0 -0
|
@@ -88459,33 +88459,61 @@ var init_tag_package = __esm({
|
|
|
88459
88459
|
TAG_CONTENT_TYPE = "application/vnd.openxmlformats-officedocument.presentationml.tags+xml";
|
|
88460
88460
|
}
|
|
88461
88461
|
});
|
|
88462
|
-
function
|
|
88463
|
-
|
|
88464
|
-
|
|
88465
|
-
|
|
88466
|
-
if (!node || typeof node !== "object") {
|
|
88467
|
-
return false;
|
|
88468
|
-
}
|
|
88469
|
-
const obj = node;
|
|
88470
|
-
for (const key2 of Object.keys(obj)) {
|
|
88471
|
-
if (getLocalName2(key2) === "t") {
|
|
88472
|
-
const value = obj[key2];
|
|
88473
|
-
if (value && typeof value === "object" && !Array.isArray(value)) {
|
|
88474
|
-
value["#text"] = text22;
|
|
88475
|
-
} else {
|
|
88476
|
-
obj[key2] = text22;
|
|
88477
|
-
}
|
|
88478
|
-
return true;
|
|
88462
|
+
function firstTextRun(paragraph, getLocalName2) {
|
|
88463
|
+
for (const [key2, value] of Object.entries(paragraph)) {
|
|
88464
|
+
if (!["r", "fld"].includes(getLocalName2(key2))) {
|
|
88465
|
+
continue;
|
|
88479
88466
|
}
|
|
88480
|
-
const
|
|
88481
|
-
|
|
88482
|
-
|
|
88483
|
-
if (setFirstText(c, text22, getLocalName2)) {
|
|
88484
|
-
return true;
|
|
88467
|
+
for (const run of Array.isArray(value) ? value : [value]) {
|
|
88468
|
+
if (run && typeof run === "object" && !Array.isArray(run) && findKey6(run, "t", getLocalName2)) {
|
|
88469
|
+
return [key2, run];
|
|
88485
88470
|
}
|
|
88486
88471
|
}
|
|
88487
88472
|
}
|
|
88488
|
-
return
|
|
88473
|
+
return void 0;
|
|
88474
|
+
}
|
|
88475
|
+
function setTitleText(title, text22, getLocalName2) {
|
|
88476
|
+
const txKey = findKey6(title, "tx", getLocalName2) ?? "c:tx";
|
|
88477
|
+
const tx = title[txKey];
|
|
88478
|
+
const texts = [];
|
|
88479
|
+
if (tx && typeof tx === "object") {
|
|
88480
|
+
collectAllText(tx, getLocalName2, texts);
|
|
88481
|
+
}
|
|
88482
|
+
if (texts.join("") === text22) {
|
|
88483
|
+
return;
|
|
88484
|
+
}
|
|
88485
|
+
const richKey = tx && typeof tx === "object" ? findKey6(tx, "rich", getLocalName2) : void 0;
|
|
88486
|
+
const rich = richKey ? tx[richKey] : void 0;
|
|
88487
|
+
if (!rich || typeof rich !== "object" || Array.isArray(rich)) {
|
|
88488
|
+
const textNode = buildTitle(text22)["c:tx"];
|
|
88489
|
+
if (txKey in title) {
|
|
88490
|
+
title[txKey] = textNode;
|
|
88491
|
+
} else {
|
|
88492
|
+
insertAt2(title, 0, txKey, textNode);
|
|
88493
|
+
}
|
|
88494
|
+
return;
|
|
88495
|
+
}
|
|
88496
|
+
const pKey = findKey6(rich, "p", getLocalName2) ?? "a:p";
|
|
88497
|
+
const value = rich[pKey];
|
|
88498
|
+
const paragraphs = (Array.isArray(value) ? value : [value]).filter(
|
|
88499
|
+
(entry2) => Boolean(entry2) && typeof entry2 === "object" && !Array.isArray(entry2)
|
|
88500
|
+
);
|
|
88501
|
+
const paragraph = paragraphs.find((p) => firstTextRun(p, getLocalName2)) ?? paragraphs[0] ?? {};
|
|
88502
|
+
const carrier = firstTextRun(paragraph, getLocalName2);
|
|
88503
|
+
const original = carrier?.[1] ?? {};
|
|
88504
|
+
const runKey = carrier ? carrier[0].replace(/[^:]+$/u, "r") : "a:r";
|
|
88505
|
+
const rPrKey = findKey6(original, "rPr", getLocalName2);
|
|
88506
|
+
const run = carrier && getLocalName2(carrier[0]) === "r" ? { ...original } : rPrKey ? { [rPrKey]: original[rPrKey] } : {};
|
|
88507
|
+
const textKey = findKey6(original, "t", getLocalName2) ?? "a:t";
|
|
88508
|
+
const oldText = original[textKey];
|
|
88509
|
+
const attributes = oldText && typeof oldText === "object" && !Array.isArray(oldText) ? oldText : void 0;
|
|
88510
|
+
run[textKey] = attributes ? { ...attributes, "#text": text22 } : text22;
|
|
88511
|
+
const entries = Object.entries(paragraph);
|
|
88512
|
+
rich[pKey] = Object.fromEntries([
|
|
88513
|
+
...entries.filter(([key2]) => key2.startsWith("@_") || getLocalName2(key2) === "pPr"),
|
|
88514
|
+
[runKey, run],
|
|
88515
|
+
...entries.filter(([key2]) => getLocalName2(key2) === "endParaRPr")
|
|
88516
|
+
]);
|
|
88489
88517
|
}
|
|
88490
88518
|
function buildTitle(text22) {
|
|
88491
88519
|
return {
|
|
@@ -88516,7 +88544,7 @@ function applyChartAxisTitleToXml(axisNode, titleText, getLocalName2) {
|
|
|
88516
88544
|
if (titleText === void 0) {
|
|
88517
88545
|
return;
|
|
88518
88546
|
}
|
|
88519
|
-
const titleKey =
|
|
88547
|
+
const titleKey = findKey6(axisNode, "title", getLocalName2);
|
|
88520
88548
|
if (titleText === "") {
|
|
88521
88549
|
if (titleKey) {
|
|
88522
88550
|
delete axisNode[titleKey];
|
|
@@ -88524,8 +88552,10 @@ function applyChartAxisTitleToXml(axisNode, titleText, getLocalName2) {
|
|
|
88524
88552
|
return;
|
|
88525
88553
|
}
|
|
88526
88554
|
if (titleKey) {
|
|
88527
|
-
const
|
|
88528
|
-
if (!
|
|
88555
|
+
const title = axisNode[titleKey];
|
|
88556
|
+
if (title && typeof title === "object" && !Array.isArray(title)) {
|
|
88557
|
+
setTitleText(title, titleText, getLocalName2);
|
|
88558
|
+
} else {
|
|
88529
88559
|
axisNode[titleKey] = buildTitle(titleText);
|
|
88530
88560
|
}
|
|
88531
88561
|
return;
|
|
@@ -88554,27 +88584,27 @@ function applyChartAxisTitleStyleToXml(axisNode, style, getLocalName2, resolveCo
|
|
|
88554
88584
|
if (!hasAny) {
|
|
88555
88585
|
return;
|
|
88556
88586
|
}
|
|
88557
|
-
const titleKey =
|
|
88587
|
+
const titleKey = findKey6(axisNode, "title", getLocalName2);
|
|
88558
88588
|
if (!titleKey) {
|
|
88559
88589
|
return;
|
|
88560
88590
|
}
|
|
88561
88591
|
const title = { ...axisNode[titleKey] ?? {} };
|
|
88562
|
-
const txPrKey =
|
|
88592
|
+
const txPrKey = findKey6(title, "txPr", getLocalName2) ?? "c:txPr";
|
|
88563
88593
|
const txPr = { ...title[txPrKey] ?? {} };
|
|
88564
|
-
if (!txPr[
|
|
88594
|
+
if (!txPr[findKey6(txPr, "bodyPr", getLocalName2) ?? "a:bodyPr"]) {
|
|
88565
88595
|
txPr["a:bodyPr"] = {};
|
|
88566
88596
|
}
|
|
88567
|
-
if (!txPr[
|
|
88597
|
+
if (!txPr[findKey6(txPr, "lstStyle", getLocalName2) ?? "a:lstStyle"]) {
|
|
88568
88598
|
txPr["a:lstStyle"] = {};
|
|
88569
88599
|
}
|
|
88570
|
-
const pKey =
|
|
88600
|
+
const pKey = findKey6(txPr, "p", getLocalName2) ?? "a:p";
|
|
88571
88601
|
const existingP = txPr[pKey];
|
|
88572
88602
|
const para = {
|
|
88573
88603
|
...(Array.isArray(existingP) ? existingP[0] : existingP) ?? {}
|
|
88574
88604
|
};
|
|
88575
|
-
const pPrKey =
|
|
88605
|
+
const pPrKey = findKey6(para, "pPr", getLocalName2) ?? "a:pPr";
|
|
88576
88606
|
const pPr = { ...para[pPrKey] ?? {} };
|
|
88577
|
-
const defRPrKey =
|
|
88607
|
+
const defRPrKey = findKey6(pPr, "defRPr", getLocalName2) ?? "a:defRPr";
|
|
88578
88608
|
const existingDefRPr = pPr[defRPrKey] ?? {};
|
|
88579
88609
|
pPr[defRPrKey] = { ...existingDefRPr, ...buildDefRPr(style, existingDefRPr, resolveColor2) };
|
|
88580
88610
|
para[pPrKey] = pPr;
|
|
@@ -88586,6 +88616,7 @@ var AFTER_TITLE;
|
|
|
88586
88616
|
var init_chart_axis_title_serializer = __esm({
|
|
88587
88617
|
"src/core/utils/chart-axis-title-serializer.ts"() {
|
|
88588
88618
|
init_chart_color_choice();
|
|
88619
|
+
init_chart_title_xml_ops();
|
|
88589
88620
|
AFTER_TITLE = /* @__PURE__ */ new Set([
|
|
88590
88621
|
"numFmt",
|
|
88591
88622
|
"majorTickMark",
|
|
@@ -88929,7 +88960,7 @@ var init_chart_container_schema = __esm({
|
|
|
88929
88960
|
init_chart_container_content_model();
|
|
88930
88961
|
}
|
|
88931
88962
|
});
|
|
88932
|
-
function
|
|
88963
|
+
function findKey20(obj, local, getLocalName2) {
|
|
88933
88964
|
return Object.keys(obj).find((k) => getLocalName2(k) === local);
|
|
88934
88965
|
}
|
|
88935
88966
|
function nonSeriesEntries(container, getLocalName2) {
|
|
@@ -88961,14 +88992,14 @@ function consolidateComboContainersInXml(plotArea, getLocalName2) {
|
|
|
88961
88992
|
if (!primary) {
|
|
88962
88993
|
return { primaryKey, containerChildren };
|
|
88963
88994
|
}
|
|
88964
|
-
const serKey =
|
|
88995
|
+
const serKey = findKey20(primary, "ser", getLocalName2) ?? "c:ser";
|
|
88965
88996
|
const allSeries = [];
|
|
88966
88997
|
for (const key2 of containerKeys) {
|
|
88967
88998
|
const container = plotArea[key2];
|
|
88968
88999
|
if (!container) {
|
|
88969
89000
|
continue;
|
|
88970
89001
|
}
|
|
88971
|
-
const containerSerKey =
|
|
89002
|
+
const containerSerKey = findKey20(container, "ser", getLocalName2);
|
|
88972
89003
|
if (containerSerKey) {
|
|
88973
89004
|
allSeries.push(...ensureArray18(container[containerSerKey]));
|
|
88974
89005
|
}
|
|
@@ -88996,7 +89027,7 @@ function applyComboSeriesTypesToXml(plotArea, originalKey, series, chartLevelTyp
|
|
|
88996
89027
|
if (!original) {
|
|
88997
89028
|
return false;
|
|
88998
89029
|
}
|
|
88999
|
-
const serKey =
|
|
89030
|
+
const serKey = findKey20(original, "ser", getLocalName2) ?? "c:ser";
|
|
89000
89031
|
const serNodes = ensureArray18(original[serKey]);
|
|
89001
89032
|
if (serNodes.length !== series.length) {
|
|
89002
89033
|
return false;
|
|
@@ -89053,7 +89084,7 @@ function applyGroupAxisReferences(container, series, axes, getLocalName2) {
|
|
|
89053
89084
|
if (valueAxisId === void 0 || categoryAxisId === void 0) {
|
|
89054
89085
|
return;
|
|
89055
89086
|
}
|
|
89056
|
-
const key2 =
|
|
89087
|
+
const key2 = findKey20(container, "axId", getLocalName2) ?? "c:axId";
|
|
89057
89088
|
container[key2] = [{ "@_val": String(categoryAxisId) }, { "@_val": String(valueAxisId) }];
|
|
89058
89089
|
}
|
|
89059
89090
|
var init_chart_combo_serializer = __esm({
|
|
@@ -89061,7 +89092,7 @@ var init_chart_combo_serializer = __esm({
|
|
|
89061
89092
|
init_chart_container_schema();
|
|
89062
89093
|
}
|
|
89063
89094
|
});
|
|
89064
|
-
function
|
|
89095
|
+
function findKey21(obj, local, getLocalName2) {
|
|
89065
89096
|
return Object.keys(obj).find((k) => getLocalName2(k) === local);
|
|
89066
89097
|
}
|
|
89067
89098
|
function points3(values) {
|
|
@@ -89119,9 +89150,9 @@ function filteredSeriesUnchanged(container, filteredSeries, xmlLookup) {
|
|
|
89119
89150
|
});
|
|
89120
89151
|
}
|
|
89121
89152
|
function applyFilteredSeriesToXml(container, filteredSeries, categories, containerLocalName, getLocalName2) {
|
|
89122
|
-
const extLstKey =
|
|
89153
|
+
const extLstKey = findKey21(container, "extLst", getLocalName2) ?? "c:extLst";
|
|
89123
89154
|
const extLst = { ...container[extLstKey] ?? {} };
|
|
89124
|
-
const extKey =
|
|
89155
|
+
const extKey = findKey21(extLst, "ext", getLocalName2);
|
|
89125
89156
|
const exts = extKey ? Array.isArray(extLst[extKey]) ? [...extLst[extKey]] : [extLst[extKey]] : [];
|
|
89126
89157
|
const otherExts = exts.filter((ext) => ext["@_uri"] !== CHART_FILTERED_SERIES_EXT_URI);
|
|
89127
89158
|
const ownExt = {
|
|
@@ -89331,11 +89362,11 @@ var init_chart_legend_serializer = __esm({
|
|
|
89331
89362
|
init_chart_def_rpr_style();
|
|
89332
89363
|
}
|
|
89333
89364
|
});
|
|
89334
|
-
function
|
|
89365
|
+
function findKey22(node, name, localName28) {
|
|
89335
89366
|
return Object.keys(node).find((key2) => localName28(key2) === name);
|
|
89336
89367
|
}
|
|
89337
89368
|
function setOrdered5(node, name, value, localName28) {
|
|
89338
|
-
const key2 =
|
|
89369
|
+
const key2 = findKey22(node, name, localName28);
|
|
89339
89370
|
if (key2) {
|
|
89340
89371
|
node[key2] = value;
|
|
89341
89372
|
return;
|
|
@@ -89360,7 +89391,7 @@ function applyChartLineStyle(chartContainer, elementName, style, localName28, re
|
|
|
89360
89391
|
if (style === void 0) {
|
|
89361
89392
|
return;
|
|
89362
89393
|
}
|
|
89363
|
-
const key2 =
|
|
89394
|
+
const key2 = findKey22(chartContainer, elementName, localName28);
|
|
89364
89395
|
if (style === null) {
|
|
89365
89396
|
if (key2) {
|
|
89366
89397
|
delete chartContainer[key2];
|
|
@@ -89371,7 +89402,7 @@ function applyChartLineStyle(chartContainer, elementName, style, localName28, re
|
|
|
89371
89402
|
const node = { ...existing };
|
|
89372
89403
|
const hasLineProps = style.color || style.width !== void 0 || style.dashStyle;
|
|
89373
89404
|
if (hasLineProps) {
|
|
89374
|
-
const spPrKey =
|
|
89405
|
+
const spPrKey = findKey22(node, "spPr", localName28) ?? "c:spPr";
|
|
89375
89406
|
node[spPrKey] = writeChartShapeProps(
|
|
89376
89407
|
node[spPrKey],
|
|
89377
89408
|
{ strokeColor: style.color, strokeWidth: style.width, strokeDashStyle: style.dashStyle },
|
|
@@ -89403,7 +89434,7 @@ var init_chart_line_style_serializer = __esm({
|
|
|
89403
89434
|
];
|
|
89404
89435
|
}
|
|
89405
89436
|
});
|
|
89406
|
-
function
|
|
89437
|
+
function findKey23(obj, local, getLocalName2) {
|
|
89407
89438
|
return Object.keys(obj).find((k) => getLocalName2(k) === local);
|
|
89408
89439
|
}
|
|
89409
89440
|
function insertBeforeLn(obj, key2, value, getLocalName2) {
|
|
@@ -89433,14 +89464,14 @@ function insertFirst(obj, key2, value) {
|
|
|
89433
89464
|
function writeSeriesColorToSpPr(spPr, hex4, isLineFamily, getLocalName2, resolveColor2) {
|
|
89434
89465
|
const normalizedHex = hex4.replace(/^#/u, "");
|
|
89435
89466
|
if (isLineFamily) {
|
|
89436
|
-
const lnKey =
|
|
89467
|
+
const lnKey = findKey23(spPr, "ln", getLocalName2) ?? "a:ln";
|
|
89437
89468
|
const ln = spPr[lnKey] ?? {};
|
|
89438
89469
|
const hadLn = Boolean(spPr[lnKey]);
|
|
89439
|
-
const noFillKey2 =
|
|
89470
|
+
const noFillKey2 = findKey23(ln, "noFill", getLocalName2);
|
|
89440
89471
|
if (noFillKey2) {
|
|
89441
89472
|
delete ln[noFillKey2];
|
|
89442
89473
|
}
|
|
89443
|
-
const lnFillKey =
|
|
89474
|
+
const lnFillKey = findKey23(ln, "solidFill", getLocalName2) ?? "a:solidFill";
|
|
89444
89475
|
const authoredFill2 = ln[lnFillKey];
|
|
89445
89476
|
const fillNode2 = serializeColorChoice(
|
|
89446
89477
|
authoredFill2,
|
|
@@ -89457,11 +89488,11 @@ function writeSeriesColorToSpPr(spPr, hex4, isLineFamily, getLocalName2, resolve
|
|
|
89457
89488
|
}
|
|
89458
89489
|
return;
|
|
89459
89490
|
}
|
|
89460
|
-
const noFillKey =
|
|
89491
|
+
const noFillKey = findKey23(spPr, "noFill", getLocalName2);
|
|
89461
89492
|
if (noFillKey) {
|
|
89462
89493
|
delete spPr[noFillKey];
|
|
89463
89494
|
}
|
|
89464
|
-
const fillKey =
|
|
89495
|
+
const fillKey = findKey23(spPr, "solidFill", getLocalName2) ?? "a:solidFill";
|
|
89465
89496
|
const authoredFill = spPr[fillKey];
|
|
89466
89497
|
const fillNode = serializeColorChoice(
|
|
89467
89498
|
authoredFill,
|
|
@@ -89479,11 +89510,11 @@ var init_chart_series_color_serializer = __esm({
|
|
|
89479
89510
|
init_color_xml_preservation();
|
|
89480
89511
|
}
|
|
89481
89512
|
});
|
|
89482
|
-
function
|
|
89513
|
+
function findKey24(obj, local, getLocalName2) {
|
|
89483
89514
|
return Object.keys(obj).find((k) => getLocalName2(k) === local);
|
|
89484
89515
|
}
|
|
89485
89516
|
function upsertValChild(parent, localName28, value, getLocalName2) {
|
|
89486
|
-
const existingKey =
|
|
89517
|
+
const existingKey = findKey24(parent, localName28, getLocalName2);
|
|
89487
89518
|
if (value === void 0) {
|
|
89488
89519
|
if (existingKey) {
|
|
89489
89520
|
delete parent[existingKey];
|
|
@@ -89523,7 +89554,7 @@ function applySurfaceWireframeToXml(chartTypeContainer, containerLocalName, wire
|
|
|
89523
89554
|
orderChartContainerChildren(chartTypeContainer, containerLocalName, getLocalName2);
|
|
89524
89555
|
}
|
|
89525
89556
|
function applySeriesBar3DShapeToXml(seriesNode, shape, getLocalName2) {
|
|
89526
|
-
const existingKey =
|
|
89557
|
+
const existingKey = findKey24(seriesNode, "shape", getLocalName2);
|
|
89527
89558
|
if (shape === void 0) {
|
|
89528
89559
|
if (existingKey) {
|
|
89529
89560
|
delete seriesNode[existingKey];
|
|
@@ -89726,7 +89757,7 @@ var init_chart_title_serializer = __esm({
|
|
|
89726
89757
|
init_chart_title_xml_ops();
|
|
89727
89758
|
}
|
|
89728
89759
|
});
|
|
89729
|
-
function
|
|
89760
|
+
function findKey25(node, localName28, getLocalName2) {
|
|
89730
89761
|
return Object.keys(node).find((key2) => getLocalName2(key2) === localName28);
|
|
89731
89762
|
}
|
|
89732
89763
|
function setChildOrdered(node, key2, existingKey, value, laterNames, getLocalName2) {
|
|
@@ -89769,9 +89800,9 @@ function asArray3(value) {
|
|
|
89769
89800
|
return value && typeof value === "object" ? [value] : [];
|
|
89770
89801
|
}
|
|
89771
89802
|
function applyRichTitleFont(title, style, getLocalName2, resolveColor2) {
|
|
89772
|
-
const txKey =
|
|
89803
|
+
const txKey = findKey25(title, "tx", getLocalName2);
|
|
89773
89804
|
const tx = txKey ? title[txKey] : void 0;
|
|
89774
|
-
const richKey = tx ?
|
|
89805
|
+
const richKey = tx ? findKey25(tx, "rich", getLocalName2) : void 0;
|
|
89775
89806
|
const rich = richKey && tx ? tx[richKey] : void 0;
|
|
89776
89807
|
if (!tx || !rich || !txKey || !richKey) {
|
|
89777
89808
|
return void 0;
|
|
@@ -89780,22 +89811,22 @@ function applyRichTitleFont(title, style, getLocalName2, resolveColor2) {
|
|
|
89780
89811
|
if (!hasFont) {
|
|
89781
89812
|
return txKey;
|
|
89782
89813
|
}
|
|
89783
|
-
const pKey =
|
|
89814
|
+
const pKey = findKey25(rich, "p", getLocalName2) ?? "a:p";
|
|
89784
89815
|
const paragraphs = asArray3(rich[pKey]).map((para) => {
|
|
89785
89816
|
const next = { ...para };
|
|
89786
|
-
const pPrKey =
|
|
89817
|
+
const pPrKey = findKey25(next, "pPr", getLocalName2) ?? "a:pPr";
|
|
89787
89818
|
const pPr = { ...next[pPrKey] ?? {} };
|
|
89788
|
-
const defRPrKey =
|
|
89819
|
+
const defRPrKey = findKey25(pPr, "defRPr", getLocalName2) ?? "a:defRPr";
|
|
89789
89820
|
const existingDefRPr = pPr[defRPrKey] ?? {};
|
|
89790
89821
|
pPr[defRPrKey] = {
|
|
89791
89822
|
...existingDefRPr,
|
|
89792
89823
|
...buildTitleDefRPr(style, existingDefRPr, resolveColor2)
|
|
89793
89824
|
};
|
|
89794
89825
|
next[pPrKey] = pPr;
|
|
89795
|
-
const rKey =
|
|
89826
|
+
const rKey = findKey25(next, "r", getLocalName2);
|
|
89796
89827
|
if (rKey) {
|
|
89797
89828
|
const runs = asArray3(next[rKey]).map((run) => {
|
|
89798
|
-
const rPrKey =
|
|
89829
|
+
const rPrKey = findKey25(run, "rPr", getLocalName2) ?? "a:rPr";
|
|
89799
89830
|
const existingRPr = run[rPrKey] ?? {};
|
|
89800
89831
|
const nextRun = { ...run };
|
|
89801
89832
|
nextRun[rPrKey] = { ...existingRPr, ...buildTitleDefRPr(style, existingRPr, resolveColor2) };
|
|
@@ -89818,13 +89849,13 @@ function applyChartTitleStyleToXml(chartRoot, style, getLocalName2, options = {
|
|
|
89818
89849
|
return;
|
|
89819
89850
|
}
|
|
89820
89851
|
const { prefix } = options;
|
|
89821
|
-
const titleKey =
|
|
89852
|
+
const titleKey = findKey25(chartRoot, "title", getLocalName2);
|
|
89822
89853
|
if (!titleKey) {
|
|
89823
89854
|
return;
|
|
89824
89855
|
}
|
|
89825
89856
|
const title = { ...chartRoot[titleKey] ?? {} };
|
|
89826
89857
|
if (style.spPr !== void 0) {
|
|
89827
|
-
const spPrKey =
|
|
89858
|
+
const spPrKey = findKey25(title, "spPr", getLocalName2);
|
|
89828
89859
|
if (style.spPr === null) {
|
|
89829
89860
|
if (spPrKey) {
|
|
89830
89861
|
delete title[spPrKey];
|
|
@@ -89841,23 +89872,23 @@ function applyChartTitleStyleToXml(chartRoot, style, getLocalName2, options = {
|
|
|
89841
89872
|
}
|
|
89842
89873
|
const richKey = applyRichTitleFont(title, style, getLocalName2, resolveColor2);
|
|
89843
89874
|
if (hasFont && richKey === void 0) {
|
|
89844
|
-
const existingTxPrKey =
|
|
89875
|
+
const existingTxPrKey = findKey25(title, "txPr", getLocalName2);
|
|
89845
89876
|
const txPrKey = existingTxPrKey ?? `${prefix}:txPr`;
|
|
89846
89877
|
const txPr = { ...title[txPrKey] ?? {} };
|
|
89847
|
-
if (!txPr[
|
|
89878
|
+
if (!txPr[findKey25(txPr, "bodyPr", getLocalName2) ?? "a:bodyPr"]) {
|
|
89848
89879
|
txPr["a:bodyPr"] = {};
|
|
89849
89880
|
}
|
|
89850
|
-
if (!txPr[
|
|
89881
|
+
if (!txPr[findKey25(txPr, "lstStyle", getLocalName2) ?? "a:lstStyle"]) {
|
|
89851
89882
|
txPr["a:lstStyle"] = {};
|
|
89852
89883
|
}
|
|
89853
|
-
const pKey =
|
|
89884
|
+
const pKey = findKey25(txPr, "p", getLocalName2) ?? "a:p";
|
|
89854
89885
|
const existingP = txPr[pKey];
|
|
89855
89886
|
const para = {
|
|
89856
89887
|
...(Array.isArray(existingP) ? existingP[0] : existingP) ?? {}
|
|
89857
89888
|
};
|
|
89858
|
-
const pPrKey =
|
|
89889
|
+
const pPrKey = findKey25(para, "pPr", getLocalName2) ?? "a:pPr";
|
|
89859
89890
|
const pPr = { ...para[pPrKey] ?? {} };
|
|
89860
|
-
const defRPrKey =
|
|
89891
|
+
const defRPrKey = findKey25(pPr, "defRPr", getLocalName2) ?? "a:defRPr";
|
|
89861
89892
|
const existingDefRPr = pPr[defRPrKey] ?? {};
|
|
89862
89893
|
pPr[defRPrKey] = {
|
|
89863
89894
|
...existingDefRPr,
|
|
@@ -90005,7 +90036,7 @@ var init_chart_xlsx_writer = __esm({
|
|
|
90005
90036
|
init_xml_whitespace();
|
|
90006
90037
|
}
|
|
90007
90038
|
});
|
|
90008
|
-
function
|
|
90039
|
+
function findKey26(node, localName28, getLocalName2) {
|
|
90009
90040
|
return Object.keys(node).find((key2) => getLocalName2(key2) === localName28);
|
|
90010
90041
|
}
|
|
90011
90042
|
function asArray4(value) {
|
|
@@ -90020,8 +90051,8 @@ function dimensionType(node) {
|
|
|
90020
90051
|
return String(node["@_type"] ?? "");
|
|
90021
90052
|
}
|
|
90022
90053
|
function replaceLevels(target, source, getLocalName2) {
|
|
90023
|
-
const targetKey =
|
|
90024
|
-
const sourceKey =
|
|
90054
|
+
const targetKey = findKey26(target, "lvl", getLocalName2) ?? "cx:lvl";
|
|
90055
|
+
const sourceKey = findKey26(source, "lvl", getLocalName2);
|
|
90025
90056
|
const oldLevels = asArray4(target[targetKey]);
|
|
90026
90057
|
const newLevels = asArray4(sourceKey ? source[sourceKey] : void 0).map((level, index) => {
|
|
90027
90058
|
const old = oldLevels[index];
|
|
@@ -90040,8 +90071,8 @@ function replaceLevels(target, source, getLocalName2) {
|
|
|
90040
90071
|
}
|
|
90041
90072
|
function replaceChartExDataDimensions(target, fresh, getLocalName2) {
|
|
90042
90073
|
for (const kind of ["strDim", "numDim"]) {
|
|
90043
|
-
const targetKey =
|
|
90044
|
-
const freshKey =
|
|
90074
|
+
const targetKey = findKey26(target, kind, getLocalName2) ?? `cx:${kind}`;
|
|
90075
|
+
const freshKey = findKey26(fresh, kind, getLocalName2);
|
|
90045
90076
|
const existing = asArray4(target[targetKey]);
|
|
90046
90077
|
const incoming = asArray4(freshKey ? fresh[freshKey] : void 0);
|
|
90047
90078
|
for (const dimension of incoming) {
|
|
@@ -90068,14 +90099,14 @@ var init_chart_cx_update_data = __esm({
|
|
|
90068
90099
|
"src/core/core/runtime/chart-cx-update-data.ts"() {
|
|
90069
90100
|
}
|
|
90070
90101
|
});
|
|
90071
|
-
function
|
|
90102
|
+
function findKey27(node, localName28, getLocalName2) {
|
|
90072
90103
|
return Object.keys(node).find((key2) => getLocalName2(key2) === localName28);
|
|
90073
90104
|
}
|
|
90074
90105
|
function child23(node, localName28, getLocalName2) {
|
|
90075
90106
|
if (!node) {
|
|
90076
90107
|
return void 0;
|
|
90077
90108
|
}
|
|
90078
|
-
const key2 =
|
|
90109
|
+
const key2 = findKey27(node, localName28, getLocalName2);
|
|
90079
90110
|
const value = key2 ? node[key2] : void 0;
|
|
90080
90111
|
return value && typeof value === "object" && !Array.isArray(value) ? value : void 0;
|
|
90081
90112
|
}
|
|
@@ -90105,11 +90136,11 @@ function applySeriesName(node, name, getLocalName2) {
|
|
|
90105
90136
|
const tx = child23(node, "tx", getLocalName2);
|
|
90106
90137
|
const txData = child23(tx, "txData", getLocalName2);
|
|
90107
90138
|
if (tx && txData) {
|
|
90108
|
-
const vKey =
|
|
90139
|
+
const vKey = findKey27(txData, "v", getLocalName2) ?? "cx:v";
|
|
90109
90140
|
txData[vKey] = name;
|
|
90110
90141
|
return;
|
|
90111
90142
|
}
|
|
90112
|
-
const txKey =
|
|
90143
|
+
const txKey = findKey27(node, "tx", getLocalName2);
|
|
90113
90144
|
if (txKey) {
|
|
90114
90145
|
delete node[txKey];
|
|
90115
90146
|
}
|
|
@@ -90149,7 +90180,7 @@ function applySeriesDataLabels(node, hasDataLabels, getLocalName2) {
|
|
|
90149
90180
|
if (hasDataLabels === void 0) {
|
|
90150
90181
|
return;
|
|
90151
90182
|
}
|
|
90152
|
-
const key2 =
|
|
90183
|
+
const key2 = findKey27(node, "dataLabels", getLocalName2);
|
|
90153
90184
|
if (!hasDataLabels) {
|
|
90154
90185
|
if (key2) {
|
|
90155
90186
|
delete node[key2];
|
|
@@ -90188,7 +90219,7 @@ function bindSeriesData(node, dataNodes, chartData, series, getLocalName2) {
|
|
|
90188
90219
|
);
|
|
90189
90220
|
return;
|
|
90190
90221
|
}
|
|
90191
|
-
const inlineKey =
|
|
90222
|
+
const inlineKey = findKey27(node, "data", getLocalName2);
|
|
90192
90223
|
if (inlineKey && !dataIdNode) {
|
|
90193
90224
|
const inline = node[inlineKey];
|
|
90194
90225
|
if (inline && typeof inline === "object" && !Array.isArray(inline)) {
|
|
@@ -90241,7 +90272,7 @@ function applyLegend(chartRoot, chartData, getLocalName2) {
|
|
|
90241
90272
|
if (!style || style.hasLegend === void 0) {
|
|
90242
90273
|
return;
|
|
90243
90274
|
}
|
|
90244
|
-
const key2 =
|
|
90275
|
+
const key2 = findKey27(chartRoot, "legend", getLocalName2);
|
|
90245
90276
|
if (!style.hasLegend) {
|
|
90246
90277
|
if (key2) {
|
|
90247
90278
|
delete chartRoot[key2];
|
|
@@ -90267,7 +90298,7 @@ function chartExLayoutChanged(chartSpace, chartData, getLocalName2) {
|
|
|
90267
90298
|
"plotAreaRegion",
|
|
90268
90299
|
getLocalName2
|
|
90269
90300
|
);
|
|
90270
|
-
const seriesKey = region ?
|
|
90301
|
+
const seriesKey = region ? findKey27(region, "series", getLocalName2) : void 0;
|
|
90271
90302
|
const first = region && seriesKey ? asArray5(region[seriesKey])[0] : void 0;
|
|
90272
90303
|
const existing = String(first?.["@_layoutId"] ?? "").toLowerCase();
|
|
90273
90304
|
const series = chartData.series[0];
|
|
@@ -90283,11 +90314,11 @@ function applyChartExUpdate(chartSpace, chartData, getLocalName2) {
|
|
|
90283
90314
|
if (!chartRoot || !region) {
|
|
90284
90315
|
return false;
|
|
90285
90316
|
}
|
|
90286
|
-
const chartDataKey =
|
|
90317
|
+
const chartDataKey = findKey27(chartSpace, "chartData", getLocalName2);
|
|
90287
90318
|
const chartDataNode = (chartDataKey ? chartSpace[chartDataKey] : void 0) ?? {};
|
|
90288
|
-
const dataKey =
|
|
90319
|
+
const dataKey = findKey27(chartDataNode, "data", getLocalName2) ?? "cx:data";
|
|
90289
90320
|
const dataNodes = asArray5(chartDataNode[dataKey]);
|
|
90290
|
-
const seriesKey =
|
|
90321
|
+
const seriesKey = findKey27(region, "series", getLocalName2) ?? "cx:series";
|
|
90291
90322
|
const existing = asArray5(region[seriesKey]);
|
|
90292
90323
|
const updated = [];
|
|
90293
90324
|
chartData.series.forEach((series, index) => {
|
|
@@ -102353,7 +102384,7 @@ var init_PptxHandlerRuntimeSaveDataSerialization = __esm({
|
|
|
102353
102384
|
};
|
|
102354
102385
|
}
|
|
102355
102386
|
});
|
|
102356
|
-
function
|
|
102387
|
+
function findKey28(node, name, localName28) {
|
|
102357
102388
|
return Object.keys(node).find((key2) => localName28(key2) === name);
|
|
102358
102389
|
}
|
|
102359
102390
|
function prefixFor2(node) {
|
|
@@ -102372,7 +102403,7 @@ function setChildren(node, name, values, localName28) {
|
|
|
102372
102403
|
if (values === void 0) {
|
|
102373
102404
|
return false;
|
|
102374
102405
|
}
|
|
102375
|
-
const existing =
|
|
102406
|
+
const existing = findKey28(node, name, localName28);
|
|
102376
102407
|
if (values.length === 0) {
|
|
102377
102408
|
if (existing) {
|
|
102378
102409
|
delete node[existing];
|
|
@@ -102399,7 +102430,7 @@ function applySmartArtDefinitionMetadata(node, metadata, localName28) {
|
|
|
102399
102430
|
changed = setChildren(node, "title", textNodes(metadata.titles), localName28) || changed;
|
|
102400
102431
|
changed = setChildren(node, "desc", textNodes(metadata.descriptions), localName28) || changed;
|
|
102401
102432
|
if (metadata.categories !== void 0) {
|
|
102402
|
-
const key2 =
|
|
102433
|
+
const key2 = findKey28(node, "catLst", localName28);
|
|
102403
102434
|
if (metadata.categories.length === 0) {
|
|
102404
102435
|
if (key2) {
|
|
102405
102436
|
delete node[key2];
|
|
@@ -102423,7 +102454,7 @@ function applySmartArtDefinitionMetadata(node, metadata, localName28) {
|
|
|
102423
102454
|
return changed;
|
|
102424
102455
|
}
|
|
102425
102456
|
function ensureLabels(node, localName28) {
|
|
102426
|
-
const key2 =
|
|
102457
|
+
const key2 = findKey28(node, "styleLbl", localName28) ?? `${prefixFor2(node)}styleLbl`;
|
|
102427
102458
|
return { key: key2, labels: objects2(node[key2]) };
|
|
102428
102459
|
}
|
|
102429
102460
|
function applySmartArtQuickStyleLabels(node, labels, localName28) {
|
|
@@ -102438,7 +102469,7 @@ function applySmartArtQuickStyleLabels(node, labels, localName28) {
|
|
|
102438
102469
|
return true;
|
|
102439
102470
|
}
|
|
102440
102471
|
function applyColorList(label, name, metadata, localName28) {
|
|
102441
|
-
const key2 =
|
|
102472
|
+
const key2 = findKey28(label, name, localName28) ?? `${prefixFor2(label)}${name}`;
|
|
102442
102473
|
const list = objects2(label[key2])[0] ?? {};
|
|
102443
102474
|
if (metadata.method !== void 0) {
|
|
102444
102475
|
list["@_meth"] = metadata.method;
|
|
@@ -102489,7 +102520,7 @@ function toArray4(value) {
|
|
|
102489
102520
|
const obj = asObject(value);
|
|
102490
102521
|
return obj ? [obj] : [];
|
|
102491
102522
|
}
|
|
102492
|
-
function
|
|
102523
|
+
function findKey29(obj, name, getLocalName2) {
|
|
102493
102524
|
return Object.keys(obj).find((k) => getLocalName2(k) === name);
|
|
102494
102525
|
}
|
|
102495
102526
|
function hex3(value) {
|
|
@@ -102523,7 +102554,7 @@ function applySmartArtColorTransform(colorsDef, transform6, getLocalName2, resol
|
|
|
102523
102554
|
let mutated = false;
|
|
102524
102555
|
mutated = applySmartArtDefinitionMetadata(colorsDef, transform6, getLocalName2) || mutated;
|
|
102525
102556
|
mutated = applySmartArtColorStyleLabels(colorsDef, transform6.labels, getLocalName2) || mutated;
|
|
102526
|
-
const styleLblKey =
|
|
102557
|
+
const styleLblKey = findKey29(colorsDef, "styleLbl", getLocalName2);
|
|
102527
102558
|
if (!styleLblKey) {
|
|
102528
102559
|
return mutated;
|
|
102529
102560
|
}
|
|
@@ -102534,7 +102565,7 @@ function applySmartArtColorTransform(colorsDef, transform6, getLocalName2, resol
|
|
|
102534
102565
|
let fillIndex = 0;
|
|
102535
102566
|
let lineIndex = 0;
|
|
102536
102567
|
for (const label of labels) {
|
|
102537
|
-
const fillKey =
|
|
102568
|
+
const fillKey = findKey29(label, "fillClrLst", getLocalName2);
|
|
102538
102569
|
if (fillKey) {
|
|
102539
102570
|
const value = transform6.fillColors[fillIndex++];
|
|
102540
102571
|
const list = asObject(label[fillKey]);
|
|
@@ -102543,7 +102574,7 @@ function applySmartArtColorTransform(colorsDef, transform6, getLocalName2, resol
|
|
|
102543
102574
|
mutated = true;
|
|
102544
102575
|
}
|
|
102545
102576
|
}
|
|
102546
|
-
const lineKey =
|
|
102577
|
+
const lineKey = findKey29(label, "linClrLst", getLocalName2);
|
|
102547
102578
|
if (lineKey) {
|
|
102548
102579
|
const value = transform6.lineColors[lineIndex++];
|
|
102549
102580
|
const list = asObject(label[lineKey]);
|
|
@@ -102755,33 +102786,33 @@ function applySmartArtChrome(dataModel, chrome, getLocalName2) {
|
|
|
102755
102786
|
if (!chrome || !chrome.backgroundColor && !chrome.backgroundFillXml && !chrome.outlineColor && (chrome.outlineWidth === null || chrome.outlineWidth === void 0)) {
|
|
102756
102787
|
return;
|
|
102757
102788
|
}
|
|
102758
|
-
const
|
|
102789
|
+
const findKey30 = (obj, name) => Object.keys(obj).find((k) => getLocalName2(k) === name);
|
|
102759
102790
|
if (chrome.backgroundFillXml) {
|
|
102760
|
-
const bgKey =
|
|
102791
|
+
const bgKey = findKey30(dataModel, "bg") ?? "dgm:bg";
|
|
102761
102792
|
const bg = asObject2(dataModel[bgKey]);
|
|
102762
|
-
const fillKey =
|
|
102793
|
+
const fillKey = findKey30(bg, chrome.backgroundFillXml.localName) ?? `a:${chrome.backgroundFillXml.localName}`;
|
|
102763
102794
|
bg[fillKey] = chrome.backgroundFillXml.xml;
|
|
102764
102795
|
dataModel[bgKey] = bg;
|
|
102765
102796
|
} else if (chrome.backgroundColor) {
|
|
102766
102797
|
const hex4 = chrome.backgroundColor.replace("#", "");
|
|
102767
|
-
const bgKey =
|
|
102798
|
+
const bgKey = findKey30(dataModel, "bg") ?? "dgm:bg";
|
|
102768
102799
|
const bg = asObject2(dataModel[bgKey]);
|
|
102769
|
-
const fillKey =
|
|
102800
|
+
const fillKey = findKey30(bg, "solidFill") ?? "a:solidFill";
|
|
102770
102801
|
bg[fillKey] = { "a:srgbClr": { "@_val": hex4 } };
|
|
102771
102802
|
dataModel[bgKey] = bg;
|
|
102772
102803
|
}
|
|
102773
102804
|
const hasOutlineWidth = chrome.outlineWidth !== null && chrome.outlineWidth !== void 0;
|
|
102774
102805
|
if (chrome.outlineColor || hasOutlineWidth) {
|
|
102775
|
-
const wholeKey =
|
|
102806
|
+
const wholeKey = findKey30(dataModel, "whole") ?? "dgm:whole";
|
|
102776
102807
|
const whole = asObject2(dataModel[wholeKey]);
|
|
102777
|
-
const lnKey =
|
|
102808
|
+
const lnKey = findKey30(whole, "ln") ?? "a:ln";
|
|
102778
102809
|
const ln = asObject2(whole[lnKey]);
|
|
102779
102810
|
if (hasOutlineWidth) {
|
|
102780
102811
|
ln["@_w"] = String(Math.round(chrome.outlineWidth * 12700));
|
|
102781
102812
|
}
|
|
102782
102813
|
if (chrome.outlineColor) {
|
|
102783
102814
|
const hex4 = chrome.outlineColor.replace("#", "");
|
|
102784
|
-
const fillKey =
|
|
102815
|
+
const fillKey = findKey30(ln, "solidFill") ?? "a:solidFill";
|
|
102785
102816
|
ln[fillKey] = { "a:srgbClr": { "@_val": hex4 } };
|
|
102786
102817
|
}
|
|
102787
102818
|
whole[lnKey] = ln;
|
|
@@ -140012,6 +140043,31 @@ var DIVIDEND_PRESET = {
|
|
|
140012
140043
|
SLICE_PRESET,
|
|
140013
140044
|
DIVIDEND_PRESET
|
|
140014
140045
|
];
|
|
140046
|
+
function createPresentationLoadResources(handler) {
|
|
140047
|
+
const blobUrls = [];
|
|
140048
|
+
let committed = false;
|
|
140049
|
+
let released = false;
|
|
140050
|
+
return {
|
|
140051
|
+
blobUrls,
|
|
140052
|
+
/** The live viewer now owns the handler and media URLs. */
|
|
140053
|
+
commit() {
|
|
140054
|
+
committed = true;
|
|
140055
|
+
},
|
|
140056
|
+
/** Call in finally, after pending asset reads have settled. */
|
|
140057
|
+
releaseIfUncommitted() {
|
|
140058
|
+
if (committed || released) {
|
|
140059
|
+
return;
|
|
140060
|
+
}
|
|
140061
|
+
released = true;
|
|
140062
|
+
handler.dispose();
|
|
140063
|
+
for (const url of blobUrls) {
|
|
140064
|
+
if (url.startsWith("blob:")) {
|
|
140065
|
+
URL.revokeObjectURL(url);
|
|
140066
|
+
}
|
|
140067
|
+
}
|
|
140068
|
+
}
|
|
140069
|
+
};
|
|
140070
|
+
}
|
|
140015
140071
|
function walkAndPatchElements(elements, patch) {
|
|
140016
140072
|
let mutated = false;
|
|
140017
140073
|
const next = elements.map((el) => {
|
|
@@ -203261,6 +203317,7 @@ exports.createInitialPresentationSnapshot = createInitialPresentationSnapshot;
|
|
|
203261
203317
|
exports.createPlainNotesSegments = createPlainNotesSegments;
|
|
203262
203318
|
exports.createPresenceProjector = createPresenceProjector;
|
|
203263
203319
|
exports.createPresentationKeyBuffer = createPresentationKeyBuffer;
|
|
203320
|
+
exports.createPresentationLoadResources = createPresentationLoadResources;
|
|
203264
203321
|
exports.createPresentationSessionId = createPresentationSessionId;
|
|
203265
203322
|
exports.createPresenterShowGuard = createPresenterShowGuard;
|
|
203266
203323
|
exports.createPresenterTimer = createPresenterTimer;
|
|
Binary file
|