pptx-viewer-core 1.1.34 → 1.1.35
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/{SvgExporter-CGO8Tx9z.d.mts → SvgExporter-CYyO9c5A.d.mts} +1 -1
- package/dist/{SvgExporter-DpupBlmk.d.ts → SvgExporter-DdjrIx33.d.ts} +1 -1
- package/dist/cli/index.d.mts +2 -2
- package/dist/cli/index.d.ts +2 -2
- package/dist/cli/index.js +0 -0
- package/dist/cli/index.mjs +0 -0
- package/dist/converter/index.d.mts +3 -3
- package/dist/converter/index.d.ts +3 -3
- package/dist/index.d.mts +51 -6
- package/dist/index.d.ts +51 -6
- package/dist/index.js +393 -127
- package/dist/index.mjs +393 -128
- package/dist/{presentation-CyttD6sq.d.mts → presentation-BRAUjTRt.d.mts} +98 -45
- package/dist/{presentation-CyttD6sq.d.ts → presentation-BRAUjTRt.d.ts} +98 -45
- package/dist/{text-operations-DXebUVQp.d.ts → text-operations-BJUOhA1w.d.ts} +1 -1
- package/dist/{text-operations-D5GfkYT5.d.mts → text-operations-CkW4BO91.d.mts} +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -6204,16 +6204,16 @@ var PptxShapeStyleExtractor = class {
|
|
|
6204
6204
|
extractShapeStyle(spPr, styleNode) {
|
|
6205
6205
|
const style = {};
|
|
6206
6206
|
const shapeProps = spPr || {};
|
|
6207
|
-
const
|
|
6207
|
+
const solidFill2 = shapeProps["a:solidFill"];
|
|
6208
6208
|
const gradFill = shapeProps["a:gradFill"];
|
|
6209
6209
|
const pattFill = shapeProps["a:pattFill"];
|
|
6210
6210
|
const noFill = shapeProps["a:noFill"];
|
|
6211
6211
|
const blipFill = shapeProps["a:blipFill"];
|
|
6212
|
-
if (
|
|
6212
|
+
if (solidFill2) {
|
|
6213
6213
|
style.fillMode = "solid";
|
|
6214
|
-
style.fillColor = this.context.parseColor(
|
|
6215
|
-
style.fillOpacity = this.context.extractColorOpacity(
|
|
6216
|
-
const solidFillColorXml = extractColorChoiceXml(
|
|
6214
|
+
style.fillColor = this.context.parseColor(solidFill2);
|
|
6215
|
+
style.fillOpacity = this.context.extractColorOpacity(solidFill2);
|
|
6216
|
+
const solidFillColorXml = extractColorChoiceXml(solidFill2);
|
|
6217
6217
|
if (solidFillColorXml) {
|
|
6218
6218
|
style.fillColorXml = solidFillColorXml;
|
|
6219
6219
|
}
|
|
@@ -8944,15 +8944,15 @@ var PptxSlideLoaderService = class {
|
|
|
8944
8944
|
|
|
8945
8945
|
// src/core/services/PptxXmlLookupService.ts
|
|
8946
8946
|
var PptxXmlLookupService = class {
|
|
8947
|
-
getChildByLocalName(parent,
|
|
8947
|
+
getChildByLocalName(parent, localName2) {
|
|
8948
8948
|
if (!parent) {
|
|
8949
8949
|
return void 0;
|
|
8950
8950
|
}
|
|
8951
|
-
const direct = parent[
|
|
8951
|
+
const direct = parent[localName2];
|
|
8952
8952
|
if (direct && typeof direct === "object" && !Array.isArray(direct)) {
|
|
8953
8953
|
return direct;
|
|
8954
8954
|
}
|
|
8955
|
-
const suffix = `:${
|
|
8955
|
+
const suffix = `:${localName2}`;
|
|
8956
8956
|
const matchingKey = Object.keys(parent).find((key) => key.endsWith(suffix));
|
|
8957
8957
|
if (!matchingKey) {
|
|
8958
8958
|
return void 0;
|
|
@@ -8963,32 +8963,32 @@ var PptxXmlLookupService = class {
|
|
|
8963
8963
|
}
|
|
8964
8964
|
return value;
|
|
8965
8965
|
}
|
|
8966
|
-
getChildrenArrayByLocalName(parent,
|
|
8966
|
+
getChildrenArrayByLocalName(parent, localName2) {
|
|
8967
8967
|
if (!parent) {
|
|
8968
8968
|
return [];
|
|
8969
8969
|
}
|
|
8970
|
-
const direct = parent[
|
|
8970
|
+
const direct = parent[localName2];
|
|
8971
8971
|
if (direct !== void 0) {
|
|
8972
8972
|
return this.toXmlArray(direct);
|
|
8973
8973
|
}
|
|
8974
|
-
const suffix = `:${
|
|
8974
|
+
const suffix = `:${localName2}`;
|
|
8975
8975
|
const matchingKey = Object.keys(parent).find((key) => key.endsWith(suffix));
|
|
8976
8976
|
if (!matchingKey) {
|
|
8977
8977
|
return [];
|
|
8978
8978
|
}
|
|
8979
8979
|
return this.toXmlArray(parent[matchingKey]);
|
|
8980
8980
|
}
|
|
8981
|
-
getScalarChildByLocalName(parent,
|
|
8981
|
+
getScalarChildByLocalName(parent, localName2) {
|
|
8982
8982
|
if (!parent) {
|
|
8983
8983
|
return void 0;
|
|
8984
8984
|
}
|
|
8985
|
-
const direct = parent[
|
|
8985
|
+
const direct = parent[localName2];
|
|
8986
8986
|
if (typeof direct === "string" || typeof direct === "number") {
|
|
8987
8987
|
return String(direct);
|
|
8988
8988
|
}
|
|
8989
|
-
const suffix = `:${
|
|
8989
|
+
const suffix = `:${localName2}`;
|
|
8990
8990
|
for (const [key, value] of Object.entries(parent)) {
|
|
8991
|
-
if (key !==
|
|
8991
|
+
if (key !== localName2 && !key.endsWith(suffix)) {
|
|
8992
8992
|
continue;
|
|
8993
8993
|
}
|
|
8994
8994
|
if (typeof value === "string" || typeof value === "number") {
|
|
@@ -10433,11 +10433,11 @@ function parseP14FromExtLst(extLstNode, xmlLookupService, getXmlLocalName) {
|
|
|
10433
10433
|
if (key.startsWith("@_")) {
|
|
10434
10434
|
continue;
|
|
10435
10435
|
}
|
|
10436
|
-
const
|
|
10437
|
-
if (!P14_TRANSITION_TYPES.has(
|
|
10436
|
+
const localName2 = getXmlLocalName(key);
|
|
10437
|
+
if (!P14_TRANSITION_TYPES.has(localName2)) {
|
|
10438
10438
|
continue;
|
|
10439
10439
|
}
|
|
10440
|
-
const type =
|
|
10440
|
+
const type = localName2;
|
|
10441
10441
|
let direction;
|
|
10442
10442
|
let orient;
|
|
10443
10443
|
let pattern;
|
|
@@ -10487,8 +10487,8 @@ function buildP14ExtLst(transitionType, direction, orient, pattern, rawExtLst, x
|
|
|
10487
10487
|
if (key.startsWith("@_")) {
|
|
10488
10488
|
continue;
|
|
10489
10489
|
}
|
|
10490
|
-
const
|
|
10491
|
-
if (P14_TRANSITION_TYPES.has(
|
|
10490
|
+
const localName2 = getXmlLocalName(key);
|
|
10491
|
+
if (P14_TRANSITION_TYPES.has(localName2)) {
|
|
10492
10492
|
return false;
|
|
10493
10493
|
}
|
|
10494
10494
|
}
|
|
@@ -10551,17 +10551,17 @@ var PptxSlideTransitionService = class {
|
|
|
10551
10551
|
if (key.startsWith("@_")) {
|
|
10552
10552
|
continue;
|
|
10553
10553
|
}
|
|
10554
|
-
const
|
|
10555
|
-
if (
|
|
10554
|
+
const localName2 = this.getXmlLocalName(key);
|
|
10555
|
+
if (localName2 === "sndAc") {
|
|
10556
10556
|
rawSoundAction = value;
|
|
10557
10557
|
continue;
|
|
10558
10558
|
}
|
|
10559
|
-
if (
|
|
10559
|
+
if (localName2 === "extLst") {
|
|
10560
10560
|
rawExtLst = value;
|
|
10561
10561
|
continue;
|
|
10562
10562
|
}
|
|
10563
|
-
if (TRANSITION_TYPES.has(
|
|
10564
|
-
transitionType =
|
|
10563
|
+
if (TRANSITION_TYPES.has(localName2)) {
|
|
10564
|
+
transitionType = localName2;
|
|
10565
10565
|
}
|
|
10566
10566
|
if (value && typeof value === "object" && !Array.isArray(value)) {
|
|
10567
10567
|
const detail = value;
|
|
@@ -12738,27 +12738,27 @@ function detectDigitalSignatures(zipEntryPaths) {
|
|
|
12738
12738
|
function getSignaturePathsToStrip(zipEntryPaths) {
|
|
12739
12739
|
return zipEntryPaths.filter((p) => p.startsWith(SIGNATURE_PREFIX));
|
|
12740
12740
|
}
|
|
12741
|
-
function findByLocalName(parent,
|
|
12741
|
+
function findByLocalName(parent, localName2) {
|
|
12742
12742
|
if (!parent) {
|
|
12743
12743
|
return void 0;
|
|
12744
12744
|
}
|
|
12745
|
-
if (parent[
|
|
12746
|
-
return parent[
|
|
12745
|
+
if (parent[localName2] !== void 0 && typeof parent[localName2] === "object") {
|
|
12746
|
+
return parent[localName2];
|
|
12747
12747
|
}
|
|
12748
12748
|
for (const key of Object.keys(parent)) {
|
|
12749
12749
|
const parts = key.split(":");
|
|
12750
|
-
if (parts[parts.length - 1] ===
|
|
12750
|
+
if (parts[parts.length - 1] === localName2 && typeof parent[key] === "object") {
|
|
12751
12751
|
return parent[key];
|
|
12752
12752
|
}
|
|
12753
12753
|
}
|
|
12754
12754
|
return void 0;
|
|
12755
12755
|
}
|
|
12756
|
-
function findScalarByLocalName(parent,
|
|
12756
|
+
function findScalarByLocalName(parent, localName2) {
|
|
12757
12757
|
if (!parent) {
|
|
12758
12758
|
return void 0;
|
|
12759
12759
|
}
|
|
12760
|
-
if (parent[
|
|
12761
|
-
const v = parent[
|
|
12760
|
+
if (parent[localName2] !== void 0) {
|
|
12761
|
+
const v = parent[localName2];
|
|
12762
12762
|
if (typeof v === "string") {
|
|
12763
12763
|
return v;
|
|
12764
12764
|
}
|
|
@@ -12771,7 +12771,7 @@ function findScalarByLocalName(parent, localName) {
|
|
|
12771
12771
|
}
|
|
12772
12772
|
for (const key of Object.keys(parent)) {
|
|
12773
12773
|
const parts = key.split(":");
|
|
12774
|
-
if (parts[parts.length - 1] ===
|
|
12774
|
+
if (parts[parts.length - 1] === localName2) {
|
|
12775
12775
|
const v = parent[key];
|
|
12776
12776
|
if (typeof v === "string") {
|
|
12777
12777
|
return v;
|
|
@@ -12786,13 +12786,13 @@ function findScalarByLocalName(parent, localName) {
|
|
|
12786
12786
|
}
|
|
12787
12787
|
return void 0;
|
|
12788
12788
|
}
|
|
12789
|
-
function findAllByLocalName(parent,
|
|
12789
|
+
function findAllByLocalName(parent, localName2) {
|
|
12790
12790
|
if (!parent) {
|
|
12791
12791
|
return [];
|
|
12792
12792
|
}
|
|
12793
12793
|
for (const key of Object.keys(parent)) {
|
|
12794
12794
|
const parts = key.split(":");
|
|
12795
|
-
if (parts[parts.length - 1] ===
|
|
12795
|
+
if (parts[parts.length - 1] === localName2) {
|
|
12796
12796
|
const v = parent[key];
|
|
12797
12797
|
if (Array.isArray(v)) {
|
|
12798
12798
|
return v;
|
|
@@ -13269,8 +13269,8 @@ function parseLineStyle(container, elementName, xmlLookup, colorParser) {
|
|
|
13269
13269
|
if (spPr) {
|
|
13270
13270
|
const lnNode = xmlLookup.getChildByLocalName(spPr, "ln");
|
|
13271
13271
|
if (lnNode) {
|
|
13272
|
-
const
|
|
13273
|
-
const lineColor = colorParser.parseColor(
|
|
13272
|
+
const solidFill2 = xmlLookup.getChildByLocalName(lnNode, "solidFill");
|
|
13273
|
+
const lineColor = colorParser.parseColor(solidFill2);
|
|
13274
13274
|
if (lineColor) {
|
|
13275
13275
|
result.color = lineColor;
|
|
13276
13276
|
}
|
|
@@ -13312,8 +13312,8 @@ function parseShapeProps(spPrNode, xmlLookup, colorParser) {
|
|
|
13312
13312
|
}
|
|
13313
13313
|
const result = {};
|
|
13314
13314
|
let hasProps = false;
|
|
13315
|
-
const
|
|
13316
|
-
const fillColor = colorParser.parseColor(
|
|
13315
|
+
const solidFill2 = xmlLookup.getChildByLocalName(spPrNode, "solidFill");
|
|
13316
|
+
const fillColor = colorParser.parseColor(solidFill2);
|
|
13317
13317
|
if (fillColor) {
|
|
13318
13318
|
result.fillColor = fillColor;
|
|
13319
13319
|
hasProps = true;
|
|
@@ -13493,8 +13493,8 @@ var AXIS_TYPE_MAP = {
|
|
|
13493
13493
|
dateAx: "dateAx",
|
|
13494
13494
|
serAx: "serAx"
|
|
13495
13495
|
};
|
|
13496
|
-
function upsertChartAxisChild(parent,
|
|
13497
|
-
const existingKey = Object.keys(parent).find((k) => getLocalName(k) ===
|
|
13496
|
+
function upsertChartAxisChild(parent, localName2, value, getLocalName) {
|
|
13497
|
+
const existingKey = Object.keys(parent).find((k) => getLocalName(k) === localName2);
|
|
13498
13498
|
if (value === void 0) {
|
|
13499
13499
|
if (existingKey) {
|
|
13500
13500
|
delete parent[existingKey];
|
|
@@ -13504,18 +13504,18 @@ function upsertChartAxisChild(parent, localName, value, getLocalName) {
|
|
|
13504
13504
|
if (existingKey) {
|
|
13505
13505
|
parent[existingKey]["@_val"] = value;
|
|
13506
13506
|
} else {
|
|
13507
|
-
parent[`c:${
|
|
13507
|
+
parent[`c:${localName2}`] = { "@_val": value };
|
|
13508
13508
|
}
|
|
13509
13509
|
}
|
|
13510
13510
|
function parseChartAxes(plotArea, xmlLookup, colorParser, getLocalName) {
|
|
13511
13511
|
const result = [];
|
|
13512
13512
|
for (const key of Object.keys(plotArea)) {
|
|
13513
|
-
const
|
|
13514
|
-
const axisType = AXIS_TYPE_MAP[
|
|
13513
|
+
const localName2 = getLocalName(key);
|
|
13514
|
+
const axisType = AXIS_TYPE_MAP[localName2];
|
|
13515
13515
|
if (!axisType) {
|
|
13516
13516
|
continue;
|
|
13517
13517
|
}
|
|
13518
|
-
const axisNodes = xmlLookup.getChildrenArrayByLocalName(plotArea,
|
|
13518
|
+
const axisNodes = xmlLookup.getChildrenArrayByLocalName(plotArea, localName2);
|
|
13519
13519
|
for (const axisNode of axisNodes) {
|
|
13520
13520
|
const axis = parseSingleAxis(axisNode, axisType, xmlLookup, colorParser);
|
|
13521
13521
|
if (axis) {
|
|
@@ -13712,8 +13712,8 @@ function parseTxPr(txPrNode, xmlLookup, colorParser, target) {
|
|
|
13712
13712
|
if (latin?.["@_typeface"]) {
|
|
13713
13713
|
target.fontFamily = String(latin["@_typeface"]);
|
|
13714
13714
|
}
|
|
13715
|
-
const
|
|
13716
|
-
const fontColor = colorParser.parseColor(
|
|
13715
|
+
const solidFill2 = xmlLookup.getChildByLocalName(defRPr, "solidFill");
|
|
13716
|
+
const fontColor = colorParser.parseColor(solidFill2);
|
|
13717
13717
|
if (fontColor) {
|
|
13718
13718
|
target.fontColor = fontColor;
|
|
13719
13719
|
}
|
|
@@ -13788,8 +13788,8 @@ var CONTAINER_LOCAL_NAME_TO_TYPE = {
|
|
|
13788
13788
|
surfaceChart: "surface",
|
|
13789
13789
|
surface3DChart: "surface"
|
|
13790
13790
|
};
|
|
13791
|
-
function chartContainerLocalNameToType(
|
|
13792
|
-
return CONTAINER_LOCAL_NAME_TO_TYPE[
|
|
13791
|
+
function chartContainerLocalNameToType(localName2) {
|
|
13792
|
+
return CONTAINER_LOCAL_NAME_TO_TYPE[localName2];
|
|
13793
13793
|
}
|
|
13794
13794
|
|
|
13795
13795
|
// src/core/utils/chart-cx-parser.ts
|
|
@@ -13798,11 +13798,11 @@ function extractCxSeriesColor(ser, xmlLookup) {
|
|
|
13798
13798
|
if (!spPr) {
|
|
13799
13799
|
return void 0;
|
|
13800
13800
|
}
|
|
13801
|
-
const
|
|
13802
|
-
if (!
|
|
13801
|
+
const solidFill2 = xmlLookup.getChildByLocalName(spPr, "solidFill");
|
|
13802
|
+
if (!solidFill2) {
|
|
13803
13803
|
return void 0;
|
|
13804
13804
|
}
|
|
13805
|
-
const srgb = xmlLookup.getChildByLocalName(
|
|
13805
|
+
const srgb = xmlLookup.getChildByLocalName(solidFill2, "srgbClr");
|
|
13806
13806
|
if (srgb) {
|
|
13807
13807
|
const val = String(srgb["@_val"] || "").trim();
|
|
13808
13808
|
if (val.length === 6) {
|
|
@@ -14010,18 +14010,18 @@ function parseWorksheetCells(xml) {
|
|
|
14010
14010
|
}
|
|
14011
14011
|
return cells;
|
|
14012
14012
|
}
|
|
14013
|
-
function findByLocalName2(obj,
|
|
14013
|
+
function findByLocalName2(obj, localName2) {
|
|
14014
14014
|
for (const key of Object.keys(obj)) {
|
|
14015
14015
|
const parts = key.split(":");
|
|
14016
14016
|
const local = parts[parts.length - 1];
|
|
14017
|
-
if (local ===
|
|
14017
|
+
if (local === localName2) {
|
|
14018
14018
|
return obj[key];
|
|
14019
14019
|
}
|
|
14020
14020
|
}
|
|
14021
14021
|
return void 0;
|
|
14022
14022
|
}
|
|
14023
|
-
function getChildArray(parent,
|
|
14024
|
-
const child = findByLocalName2(parent,
|
|
14023
|
+
function getChildArray(parent, localName2) {
|
|
14024
|
+
const child = findByLocalName2(parent, localName2);
|
|
14025
14025
|
if (!child) {
|
|
14026
14026
|
return [];
|
|
14027
14027
|
}
|
|
@@ -14033,8 +14033,8 @@ function getChildArray(parent, localName) {
|
|
|
14033
14033
|
}
|
|
14034
14034
|
return [];
|
|
14035
14035
|
}
|
|
14036
|
-
function getTextValue(parent,
|
|
14037
|
-
const child = findByLocalName2(parent,
|
|
14036
|
+
function getTextValue(parent, localName2) {
|
|
14037
|
+
const child = findByLocalName2(parent, localName2);
|
|
14038
14038
|
if (child === void 0 || child === null) {
|
|
14039
14039
|
return void 0;
|
|
14040
14040
|
}
|
|
@@ -16500,8 +16500,8 @@ function createSimpleLookup() {
|
|
|
16500
16500
|
return void 0;
|
|
16501
16501
|
}
|
|
16502
16502
|
for (const [key, value] of Object.entries(obj)) {
|
|
16503
|
-
const
|
|
16504
|
-
if (
|
|
16503
|
+
const localName2 = key.includes(":") ? key.split(":").pop() : key;
|
|
16504
|
+
if (localName2 === name && value && typeof value === "object" && !Array.isArray(value)) {
|
|
16505
16505
|
return value;
|
|
16506
16506
|
}
|
|
16507
16507
|
}
|
|
@@ -16512,8 +16512,8 @@ function createSimpleLookup() {
|
|
|
16512
16512
|
return [];
|
|
16513
16513
|
}
|
|
16514
16514
|
for (const [key, value] of Object.entries(obj)) {
|
|
16515
|
-
const
|
|
16516
|
-
if (
|
|
16515
|
+
const localName2 = key.includes(":") ? key.split(":").pop() : key;
|
|
16516
|
+
if (localName2 === name) {
|
|
16517
16517
|
if (Array.isArray(value)) {
|
|
16518
16518
|
return value.filter(
|
|
16519
16519
|
(v) => v !== null && typeof v === "object"
|
|
@@ -17640,6 +17640,62 @@ function layoutRelationship(nodes, bounds, themeColorMap) {
|
|
|
17640
17640
|
return elements;
|
|
17641
17641
|
}
|
|
17642
17642
|
|
|
17643
|
+
// src/core/utils/smartart-node-style-apply.ts
|
|
17644
|
+
function styledContentNodes(nodes) {
|
|
17645
|
+
return getContentNodes(nodes);
|
|
17646
|
+
}
|
|
17647
|
+
function applyNodeStylesToElements(elements, nodes) {
|
|
17648
|
+
const contentNodes = styledContentNodes(nodes);
|
|
17649
|
+
if (contentNodes.length === 0) {
|
|
17650
|
+
return elements;
|
|
17651
|
+
}
|
|
17652
|
+
let shapeIndex = 0;
|
|
17653
|
+
return elements.map((element) => {
|
|
17654
|
+
if (element.type !== "shape") {
|
|
17655
|
+
return element;
|
|
17656
|
+
}
|
|
17657
|
+
const node = contentNodes[shapeIndex++];
|
|
17658
|
+
const style = node?.style;
|
|
17659
|
+
if (!style || Object.keys(style).length === 0) {
|
|
17660
|
+
return element;
|
|
17661
|
+
}
|
|
17662
|
+
const shapeStyle = { ...element.shapeStyle };
|
|
17663
|
+
if (style.fillColor !== void 0) {
|
|
17664
|
+
shapeStyle.fillColor = style.fillColor;
|
|
17665
|
+
shapeStyle.fillMode = "solid";
|
|
17666
|
+
}
|
|
17667
|
+
if (style.lineColor !== void 0) {
|
|
17668
|
+
shapeStyle.strokeColor = style.lineColor;
|
|
17669
|
+
}
|
|
17670
|
+
const baseTextStyle = element.textStyle ?? {};
|
|
17671
|
+
const textStyle = { ...baseTextStyle };
|
|
17672
|
+
if (style.fontColor !== void 0) {
|
|
17673
|
+
textStyle.color = style.fontColor;
|
|
17674
|
+
}
|
|
17675
|
+
if (style.bold !== void 0) {
|
|
17676
|
+
textStyle.bold = style.bold;
|
|
17677
|
+
}
|
|
17678
|
+
if (style.italic !== void 0) {
|
|
17679
|
+
textStyle.italic = style.italic;
|
|
17680
|
+
}
|
|
17681
|
+
const segments = element.textSegments?.map((seg) => ({
|
|
17682
|
+
...seg,
|
|
17683
|
+
style: {
|
|
17684
|
+
...seg.style,
|
|
17685
|
+
...style.fontColor !== void 0 ? { color: style.fontColor } : {},
|
|
17686
|
+
...style.bold !== void 0 ? { bold: style.bold } : {},
|
|
17687
|
+
...style.italic !== void 0 ? { italic: style.italic } : {}
|
|
17688
|
+
}
|
|
17689
|
+
}));
|
|
17690
|
+
return {
|
|
17691
|
+
...element,
|
|
17692
|
+
shapeStyle,
|
|
17693
|
+
textStyle,
|
|
17694
|
+
...segments ? { textSegments: segments } : {}
|
|
17695
|
+
};
|
|
17696
|
+
});
|
|
17697
|
+
}
|
|
17698
|
+
|
|
17643
17699
|
// src/core/utils/smartart-decompose.ts
|
|
17644
17700
|
function quickStyleStrokeScale(quickStyle) {
|
|
17645
17701
|
if (!quickStyle?.effectIntensity) {
|
|
@@ -17736,9 +17792,13 @@ function decomposeSmartArt(smartArtData, containerBounds, themeColorMap, layoutD
|
|
|
17736
17792
|
if (namedLayout) {
|
|
17737
17793
|
const namedResult = dispatchNamedLayout(namedLayout, nodes, containerBounds, effectiveThemeMap);
|
|
17738
17794
|
if (namedResult) {
|
|
17739
|
-
return namedResult;
|
|
17795
|
+
return applyNodeStylesToElements(namedResult, nodes);
|
|
17740
17796
|
}
|
|
17741
17797
|
}
|
|
17798
|
+
const algorithmic = dispatchLayoutByType(layoutType, nodes, containerBounds, effectiveThemeMap);
|
|
17799
|
+
return algorithmic ? applyNodeStylesToElements(algorithmic, nodes) : algorithmic;
|
|
17800
|
+
}
|
|
17801
|
+
function dispatchLayoutByType(layoutType, nodes, containerBounds, effectiveThemeMap) {
|
|
17742
17802
|
switch (layoutType) {
|
|
17743
17803
|
case "list":
|
|
17744
17804
|
return layoutList(nodes, containerBounds, effectiveThemeMap);
|
|
@@ -18085,6 +18145,46 @@ function reorderSmartArtNodeToIndex(data, nodeId, newIndex) {
|
|
|
18085
18145
|
};
|
|
18086
18146
|
}
|
|
18087
18147
|
|
|
18148
|
+
// src/core/utils/smartart-editing-node-style.ts
|
|
18149
|
+
function mergeNodeStyle(current, patch) {
|
|
18150
|
+
const merged = { ...current };
|
|
18151
|
+
for (const key of Object.keys(patch)) {
|
|
18152
|
+
const value = patch[key];
|
|
18153
|
+
if (value === void 0) {
|
|
18154
|
+
delete merged[key];
|
|
18155
|
+
} else {
|
|
18156
|
+
merged[key] = value;
|
|
18157
|
+
}
|
|
18158
|
+
}
|
|
18159
|
+
return merged;
|
|
18160
|
+
}
|
|
18161
|
+
function setSmartArtNodeStyle(data, nodeId, style) {
|
|
18162
|
+
let matched = false;
|
|
18163
|
+
const nodes = data.nodes.map((node) => {
|
|
18164
|
+
if (node.id !== nodeId) {
|
|
18165
|
+
return node;
|
|
18166
|
+
}
|
|
18167
|
+
matched = true;
|
|
18168
|
+
const nextStyle = mergeNodeStyle(node.style, style);
|
|
18169
|
+
const hasStyle = Object.keys(nextStyle).length > 0;
|
|
18170
|
+
const updated = { ...node };
|
|
18171
|
+
if (hasStyle) {
|
|
18172
|
+
updated.style = nextStyle;
|
|
18173
|
+
} else {
|
|
18174
|
+
delete updated.style;
|
|
18175
|
+
}
|
|
18176
|
+
return updated;
|
|
18177
|
+
});
|
|
18178
|
+
if (!matched) {
|
|
18179
|
+
return data;
|
|
18180
|
+
}
|
|
18181
|
+
return {
|
|
18182
|
+
...data,
|
|
18183
|
+
nodes,
|
|
18184
|
+
drawingShapes: void 0
|
|
18185
|
+
};
|
|
18186
|
+
}
|
|
18187
|
+
|
|
18088
18188
|
// src/core/utils/smartart-editing-reflow-layouts-geometric.ts
|
|
18089
18189
|
function reflowCycle(nodes, bounds) {
|
|
18090
18190
|
const size = Math.min(bounds.width, bounds.height);
|
|
@@ -19897,18 +19997,18 @@ function extractTagAttribute(xml, tagName, attributeName) {
|
|
|
19897
19997
|
const match = xml.match(pattern);
|
|
19898
19998
|
return match?.groups?.["attributeValue"]?.trim();
|
|
19899
19999
|
}
|
|
19900
|
-
function extractFirstTagText(xml,
|
|
20000
|
+
function extractFirstTagText(xml, localName2) {
|
|
19901
20001
|
const pattern = new RegExp(
|
|
19902
|
-
`<([\\w.-]+:)?${
|
|
20002
|
+
`<([\\w.-]+:)?${localName2}\\b[^>]*>([\\s\\S]*?)<\\/([\\w.-]+:)?${localName2}>`,
|
|
19903
20003
|
"i"
|
|
19904
20004
|
);
|
|
19905
20005
|
const match = xml.match(pattern);
|
|
19906
20006
|
return match?.[2]?.replace(/\s+/g, "").trim() || void 0;
|
|
19907
20007
|
}
|
|
19908
|
-
function extractAllTagText(xml,
|
|
20008
|
+
function extractAllTagText(xml, localName2) {
|
|
19909
20009
|
const result = [];
|
|
19910
20010
|
const regex = new RegExp(
|
|
19911
|
-
`<([\\w.-]+:)?${
|
|
20011
|
+
`<([\\w.-]+:)?${localName2}\\b[^>]*>([\\s\\S]*?)<\\/([\\w.-]+:)?${localName2}>`,
|
|
19912
20012
|
"gi"
|
|
19913
20013
|
);
|
|
19914
20014
|
let match = regex.exec(xml);
|
|
@@ -26541,8 +26641,8 @@ var PptxHandlerRuntime2 = class extends PptxHandlerRuntime {
|
|
|
26541
26641
|
return void 0;
|
|
26542
26642
|
}
|
|
26543
26643
|
const fillNode = tblBg["a:fill"];
|
|
26544
|
-
const
|
|
26545
|
-
const schemeClr =
|
|
26644
|
+
const solidFill2 = fillNode?.["a:solidFill"] ?? tblBg["a:solidFill"];
|
|
26645
|
+
const schemeClr = solidFill2?.["a:schemeClr"];
|
|
26546
26646
|
const schemeColor = schemeClr ? String(schemeClr["@_val"] || "").trim() || void 0 : void 0;
|
|
26547
26647
|
const fill = schemeColor ? { schemeColor } : void 0;
|
|
26548
26648
|
const hasEffectLst = Boolean(tblBg["a:effectLst"]);
|
|
@@ -26570,11 +26670,11 @@ var PptxHandlerRuntime2 = class extends PptxHandlerRuntime {
|
|
|
26570
26670
|
if (!fill) {
|
|
26571
26671
|
return void 0;
|
|
26572
26672
|
}
|
|
26573
|
-
const
|
|
26574
|
-
if (!
|
|
26673
|
+
const solidFill2 = fill["a:solidFill"];
|
|
26674
|
+
if (!solidFill2) {
|
|
26575
26675
|
return void 0;
|
|
26576
26676
|
}
|
|
26577
|
-
const schemeClr =
|
|
26677
|
+
const schemeClr = solidFill2["a:schemeClr"];
|
|
26578
26678
|
if (!schemeClr) {
|
|
26579
26679
|
return void 0;
|
|
26580
26680
|
}
|
|
@@ -30853,10 +30953,10 @@ var PptxHandlerRuntime19 = class _PptxHandlerRuntime extends PptxHandlerRuntime1
|
|
|
30853
30953
|
if (csTypeface) {
|
|
30854
30954
|
style.complexScriptFont = csTypeface;
|
|
30855
30955
|
}
|
|
30856
|
-
const
|
|
30857
|
-
if (
|
|
30858
|
-
style.color = this.parseColor(
|
|
30859
|
-
const colorXml = extractColorChoiceXml(
|
|
30956
|
+
const solidFill2 = xmlChild(runProperties, "a:solidFill");
|
|
30957
|
+
if (solidFill2) {
|
|
30958
|
+
style.color = this.parseColor(solidFill2);
|
|
30959
|
+
const colorXml = extractColorChoiceXml(solidFill2);
|
|
30860
30960
|
if (colorXml) {
|
|
30861
30961
|
style.colorXml = colorXml;
|
|
30862
30962
|
}
|
|
@@ -31821,13 +31921,13 @@ function serializeTablePropertyFlags(tbl, tableData) {
|
|
|
31821
31921
|
}
|
|
31822
31922
|
tbl["a:tblPr"] = tblPr;
|
|
31823
31923
|
}
|
|
31824
|
-
function replaceFirstTextValueInTree(node,
|
|
31924
|
+
function replaceFirstTextValueInTree(node, localName2, newValue, getXmlLocalName) {
|
|
31825
31925
|
if (node === null || node === void 0) {
|
|
31826
31926
|
return false;
|
|
31827
31927
|
}
|
|
31828
31928
|
if (Array.isArray(node)) {
|
|
31829
31929
|
for (const entry of node) {
|
|
31830
|
-
if (replaceFirstTextValueInTree(entry,
|
|
31930
|
+
if (replaceFirstTextValueInTree(entry, localName2, newValue, getXmlLocalName)) {
|
|
31831
31931
|
return true;
|
|
31832
31932
|
}
|
|
31833
31933
|
}
|
|
@@ -31838,13 +31938,13 @@ function replaceFirstTextValueInTree(node, localName, newValue, getXmlLocalName)
|
|
|
31838
31938
|
}
|
|
31839
31939
|
const objectNode = node;
|
|
31840
31940
|
for (const [key, value] of Object.entries(objectNode)) {
|
|
31841
|
-
if (getXmlLocalName(key) ===
|
|
31941
|
+
if (getXmlLocalName(key) === localName2) {
|
|
31842
31942
|
if (typeof value === "string" || typeof value === "number") {
|
|
31843
31943
|
objectNode[key] = newValue;
|
|
31844
31944
|
return true;
|
|
31845
31945
|
}
|
|
31846
31946
|
}
|
|
31847
|
-
if (replaceFirstTextValueInTree(value,
|
|
31947
|
+
if (replaceFirstTextValueInTree(value, localName2, newValue, getXmlLocalName)) {
|
|
31848
31948
|
return true;
|
|
31849
31949
|
}
|
|
31850
31950
|
}
|
|
@@ -32932,10 +33032,10 @@ var PptxHandlerRuntime23 = class _PptxHandlerRuntime extends PptxHandlerRuntime2
|
|
|
32932
33032
|
* Upsert a `c:<localName>` child with `@_val` on an axis or scaling node.
|
|
32933
33033
|
* When `value` is undefined, removes any existing child of that local name.
|
|
32934
33034
|
*/
|
|
32935
|
-
upsertChartAxisChild(parent,
|
|
33035
|
+
upsertChartAxisChild(parent, localName2, value) {
|
|
32936
33036
|
upsertChartAxisChild(
|
|
32937
33037
|
parent,
|
|
32938
|
-
|
|
33038
|
+
localName2,
|
|
32939
33039
|
value,
|
|
32940
33040
|
(key) => this.compatibilityService.getXmlLocalName(key)
|
|
32941
33041
|
);
|
|
@@ -32969,10 +33069,10 @@ var PptxHandlerRuntime23 = class _PptxHandlerRuntime extends PptxHandlerRuntime2
|
|
|
32969
33069
|
cacheNode[ptKey] = buildChartPoints(values);
|
|
32970
33070
|
}
|
|
32971
33071
|
/** Replace the first text value found deep in the node tree. */
|
|
32972
|
-
replaceFirstTextValue(node,
|
|
33072
|
+
replaceFirstTextValue(node, localName2, newValue) {
|
|
32973
33073
|
return replaceFirstTextValueInTree(
|
|
32974
33074
|
node,
|
|
32975
|
-
|
|
33075
|
+
localName2,
|
|
32976
33076
|
newValue,
|
|
32977
33077
|
(key) => this.compatibilityService.getXmlLocalName(key)
|
|
32978
33078
|
);
|
|
@@ -32984,10 +33084,10 @@ var PptxHandlerRuntime23 = class _PptxHandlerRuntime extends PptxHandlerRuntime2
|
|
|
32984
33084
|
* Upsert a `c:<localName>` child carrying only an `@_val` attribute on
|
|
32985
33085
|
* `parent`. When `value` is `undefined` the existing child is removed.
|
|
32986
33086
|
*/
|
|
32987
|
-
upsertValChild(parent,
|
|
32988
|
-
const existing = this.xmlLookupService.getChildByLocalName(parent,
|
|
33087
|
+
upsertValChild(parent, localName2, value) {
|
|
33088
|
+
const existing = this.xmlLookupService.getChildByLocalName(parent, localName2);
|
|
32989
33089
|
const existingKey = Object.keys(parent).find(
|
|
32990
|
-
(k) => this.compatibilityService.getXmlLocalName(k) ===
|
|
33090
|
+
(k) => this.compatibilityService.getXmlLocalName(k) === localName2
|
|
32991
33091
|
);
|
|
32992
33092
|
if (value === void 0) {
|
|
32993
33093
|
if (existingKey) {
|
|
@@ -32998,7 +33098,7 @@ var PptxHandlerRuntime23 = class _PptxHandlerRuntime extends PptxHandlerRuntime2
|
|
|
32998
33098
|
if (existing && existingKey) {
|
|
32999
33099
|
parent[existingKey] = { ...existing, "@_val": value };
|
|
33000
33100
|
} else {
|
|
33001
|
-
parent[`c:${
|
|
33101
|
+
parent[`c:${localName2}`] = { "@_val": value };
|
|
33002
33102
|
}
|
|
33003
33103
|
}
|
|
33004
33104
|
/**
|
|
@@ -33318,27 +33418,27 @@ function applySmartArtChrome(dataModel, chrome, getLocalName) {
|
|
|
33318
33418
|
if (!chrome || !chrome.backgroundColor && !chrome.outlineColor && (chrome.outlineWidth === null || chrome.outlineWidth === void 0)) {
|
|
33319
33419
|
return;
|
|
33320
33420
|
}
|
|
33321
|
-
const
|
|
33421
|
+
const findKey13 = (obj, name) => Object.keys(obj).find((k) => getLocalName(k) === name);
|
|
33322
33422
|
if (chrome.backgroundColor) {
|
|
33323
33423
|
const hex8 = chrome.backgroundColor.replace("#", "");
|
|
33324
|
-
const bgKey =
|
|
33424
|
+
const bgKey = findKey13(dataModel, "bg") ?? "dgm:bg";
|
|
33325
33425
|
const bg = asObject2(dataModel[bgKey]);
|
|
33326
|
-
const fillKey =
|
|
33426
|
+
const fillKey = findKey13(bg, "solidFill") ?? "a:solidFill";
|
|
33327
33427
|
bg[fillKey] = { "a:srgbClr": { "@_val": hex8 } };
|
|
33328
33428
|
dataModel[bgKey] = bg;
|
|
33329
33429
|
}
|
|
33330
33430
|
const hasOutlineWidth = chrome.outlineWidth !== null && chrome.outlineWidth !== void 0;
|
|
33331
33431
|
if (chrome.outlineColor || hasOutlineWidth) {
|
|
33332
|
-
const wholeKey =
|
|
33432
|
+
const wholeKey = findKey13(dataModel, "whole") ?? "dgm:whole";
|
|
33333
33433
|
const whole = asObject2(dataModel[wholeKey]);
|
|
33334
|
-
const lnKey =
|
|
33434
|
+
const lnKey = findKey13(whole, "ln") ?? "a:ln";
|
|
33335
33435
|
const ln = asObject2(whole[lnKey]);
|
|
33336
33436
|
if (hasOutlineWidth) {
|
|
33337
33437
|
ln["@_w"] = String(Math.round(chrome.outlineWidth * 12700));
|
|
33338
33438
|
}
|
|
33339
33439
|
if (chrome.outlineColor) {
|
|
33340
33440
|
const hex8 = chrome.outlineColor.replace("#", "");
|
|
33341
|
-
const fillKey =
|
|
33441
|
+
const fillKey = findKey13(ln, "solidFill") ?? "a:solidFill";
|
|
33342
33442
|
ln[fillKey] = { "a:srgbClr": { "@_val": hex8 } };
|
|
33343
33443
|
}
|
|
33344
33444
|
whole[lnKey] = ln;
|
|
@@ -33346,6 +33446,102 @@ function applySmartArtChrome(dataModel, chrome, getLocalName) {
|
|
|
33346
33446
|
}
|
|
33347
33447
|
}
|
|
33348
33448
|
|
|
33449
|
+
// src/core/core/runtime/smartart-style-xml.ts
|
|
33450
|
+
function localName(key) {
|
|
33451
|
+
const idx = key.indexOf(":");
|
|
33452
|
+
return idx >= 0 ? key.slice(idx + 1) : key;
|
|
33453
|
+
}
|
|
33454
|
+
function findKey12(obj, local) {
|
|
33455
|
+
return Object.keys(obj).find((k) => localName(k) === local);
|
|
33456
|
+
}
|
|
33457
|
+
function ensureChild(obj, local, prefixedFallback) {
|
|
33458
|
+
const key = findKey12(obj, local) ?? prefixedFallback;
|
|
33459
|
+
const existing = obj[key];
|
|
33460
|
+
if (existing && typeof existing === "object" && !Array.isArray(existing)) {
|
|
33461
|
+
return existing;
|
|
33462
|
+
}
|
|
33463
|
+
const created = {};
|
|
33464
|
+
obj[key] = created;
|
|
33465
|
+
return created;
|
|
33466
|
+
}
|
|
33467
|
+
function hexValue(color) {
|
|
33468
|
+
return color.replace(/^#/u, "").toUpperCase();
|
|
33469
|
+
}
|
|
33470
|
+
function solidFill(color) {
|
|
33471
|
+
return { "a:srgbClr": { "@_val": hexValue(color) } };
|
|
33472
|
+
}
|
|
33473
|
+
function setSolidFill(parent, color) {
|
|
33474
|
+
const key = findKey12(parent, "solidFill") ?? "a:solidFill";
|
|
33475
|
+
parent[key] = solidFill(color);
|
|
33476
|
+
}
|
|
33477
|
+
function applyShapeStyle(pt2, style) {
|
|
33478
|
+
if (style.fillColor === void 0 && style.lineColor === void 0) {
|
|
33479
|
+
return;
|
|
33480
|
+
}
|
|
33481
|
+
const spPr = ensureChild(pt2, "spPr", "dgm:spPr");
|
|
33482
|
+
if (style.fillColor !== void 0) {
|
|
33483
|
+
setSolidFill(spPr, style.fillColor);
|
|
33484
|
+
}
|
|
33485
|
+
if (style.lineColor !== void 0) {
|
|
33486
|
+
const ln = ensureChild(spPr, "ln", "a:ln");
|
|
33487
|
+
setSolidFill(ln, style.lineColor);
|
|
33488
|
+
}
|
|
33489
|
+
}
|
|
33490
|
+
function ensureFirstRunRPr(pt2) {
|
|
33491
|
+
const tKey = findKey12(pt2, "t");
|
|
33492
|
+
if (!tKey) {
|
|
33493
|
+
return void 0;
|
|
33494
|
+
}
|
|
33495
|
+
const body = pt2[tKey];
|
|
33496
|
+
if (!body || typeof body !== "object" || Array.isArray(body)) {
|
|
33497
|
+
return void 0;
|
|
33498
|
+
}
|
|
33499
|
+
const pKey = findKey12(body, "p");
|
|
33500
|
+
if (!pKey) {
|
|
33501
|
+
return void 0;
|
|
33502
|
+
}
|
|
33503
|
+
const paragraph = body[pKey];
|
|
33504
|
+
const firstP = Array.isArray(paragraph) ? paragraph[0] : paragraph;
|
|
33505
|
+
if (!firstP || typeof firstP !== "object") {
|
|
33506
|
+
return void 0;
|
|
33507
|
+
}
|
|
33508
|
+
const rKey = findKey12(firstP, "r");
|
|
33509
|
+
if (!rKey) {
|
|
33510
|
+
return void 0;
|
|
33511
|
+
}
|
|
33512
|
+
const run = firstP[rKey];
|
|
33513
|
+
const firstR = Array.isArray(run) ? run[0] : run;
|
|
33514
|
+
if (!firstR || typeof firstR !== "object") {
|
|
33515
|
+
return void 0;
|
|
33516
|
+
}
|
|
33517
|
+
return ensureChild(firstR, "rPr", "a:rPr");
|
|
33518
|
+
}
|
|
33519
|
+
function applyRunStyle(pt2, style) {
|
|
33520
|
+
if (style.bold === void 0 && style.italic === void 0 && style.fontColor === void 0) {
|
|
33521
|
+
return;
|
|
33522
|
+
}
|
|
33523
|
+
const rPr = ensureFirstRunRPr(pt2);
|
|
33524
|
+
if (!rPr) {
|
|
33525
|
+
return;
|
|
33526
|
+
}
|
|
33527
|
+
if (style.bold !== void 0) {
|
|
33528
|
+
rPr["@_b"] = style.bold ? "1" : "0";
|
|
33529
|
+
}
|
|
33530
|
+
if (style.italic !== void 0) {
|
|
33531
|
+
rPr["@_i"] = style.italic ? "1" : "0";
|
|
33532
|
+
}
|
|
33533
|
+
if (style.fontColor !== void 0) {
|
|
33534
|
+
setSolidFill(rPr, style.fontColor);
|
|
33535
|
+
}
|
|
33536
|
+
}
|
|
33537
|
+
function applySmartArtNodeStyleToPoint(pt2, style) {
|
|
33538
|
+
if (!style || Object.keys(style).length === 0) {
|
|
33539
|
+
return;
|
|
33540
|
+
}
|
|
33541
|
+
applyShapeStyle(pt2, style);
|
|
33542
|
+
applyRunStyle(pt2, style);
|
|
33543
|
+
}
|
|
33544
|
+
|
|
33349
33545
|
// src/core/core/runtime/smartart-xml-builders.ts
|
|
33350
33546
|
var NON_CONTENT_POINT_TYPES = /* @__PURE__ */ new Set([
|
|
33351
33547
|
"doc",
|
|
@@ -33485,6 +33681,7 @@ function mergeSmartArtPointXml(existingPts, nodes) {
|
|
|
33485
33681
|
continue;
|
|
33486
33682
|
}
|
|
33487
33683
|
applyTextToExistingPoint(pt2, desired);
|
|
33684
|
+
applySmartArtNodeStyleToPoint(pt2, desired.style);
|
|
33488
33685
|
seenContentIds.add(modelId);
|
|
33489
33686
|
merged.push(pt2);
|
|
33490
33687
|
}
|
|
@@ -33498,6 +33695,7 @@ function mergeSmartArtPointXml(existingPts, nodes) {
|
|
|
33498
33695
|
ptNode["@_type"] = node.nodeType;
|
|
33499
33696
|
}
|
|
33500
33697
|
ptNode["dgm:t"] = shouldRebuildFromRuns(node) ? buildPointFromRuns(node.runs) : buildPointText(node.text);
|
|
33698
|
+
applySmartArtNodeStyleToPoint(ptNode, node.style);
|
|
33501
33699
|
merged.push(ptNode);
|
|
33502
33700
|
}
|
|
33503
33701
|
return merged;
|
|
@@ -34471,8 +34669,8 @@ var PptxHandlerRuntime27 = class extends PptxHandlerRuntime26 {
|
|
|
34471
34669
|
}
|
|
34472
34670
|
const obj = node;
|
|
34473
34671
|
for (const [key, value] of Object.entries(obj)) {
|
|
34474
|
-
const
|
|
34475
|
-
if (
|
|
34672
|
+
const localName2 = this.compatibilityService.getXmlLocalName(key);
|
|
34673
|
+
if (localName2 === "extLst" && value && typeof value === "object") {
|
|
34476
34674
|
const extLst = value;
|
|
34477
34675
|
for (const extKey of Object.keys(extLst)) {
|
|
34478
34676
|
const extLocalName = this.compatibilityService.getXmlLocalName(extKey);
|
|
@@ -36688,9 +36886,9 @@ function applyTableStyleEntryToNode(styleNode, entry) {
|
|
|
36688
36886
|
}
|
|
36689
36887
|
function applyFillToSection(styleNode, sectionKey, fill) {
|
|
36690
36888
|
const section = ensureSection(styleNode, sectionKey);
|
|
36691
|
-
const tcStyle =
|
|
36692
|
-
const fillNode =
|
|
36693
|
-
const
|
|
36889
|
+
const tcStyle = ensureChild2(section, "a:tcStyle");
|
|
36890
|
+
const fillNode = ensureChild2(tcStyle, "a:fill");
|
|
36891
|
+
const solidFill2 = ensureChild2(fillNode, "a:solidFill");
|
|
36694
36892
|
const schemeClr = { "@_val": fill.schemeColor };
|
|
36695
36893
|
if (fill.tint !== void 0) {
|
|
36696
36894
|
schemeClr["a:tint"] = { "@_val": String(fill.tint) };
|
|
@@ -36698,14 +36896,14 @@ function applyFillToSection(styleNode, sectionKey, fill) {
|
|
|
36698
36896
|
if (fill.shade !== void 0) {
|
|
36699
36897
|
schemeClr["a:shade"] = { "@_val": String(fill.shade) };
|
|
36700
36898
|
}
|
|
36701
|
-
for (const key of Object.keys(
|
|
36702
|
-
delete
|
|
36899
|
+
for (const key of Object.keys(solidFill2)) {
|
|
36900
|
+
delete solidFill2[key];
|
|
36703
36901
|
}
|
|
36704
|
-
|
|
36902
|
+
solidFill2["a:schemeClr"] = schemeClr;
|
|
36705
36903
|
}
|
|
36706
36904
|
function applyTextToSection(styleNode, sectionKey, text) {
|
|
36707
36905
|
const section = ensureSection(styleNode, sectionKey);
|
|
36708
|
-
const tcTxStyle =
|
|
36906
|
+
const tcTxStyle = ensureChild2(section, "a:tcTxStyle");
|
|
36709
36907
|
if (text.bold !== void 0) {
|
|
36710
36908
|
if (text.bold) {
|
|
36711
36909
|
tcTxStyle["@_b"] = "on";
|
|
@@ -36745,7 +36943,7 @@ function ensureSection(styleNode, sectionKey) {
|
|
|
36745
36943
|
styleNode[sectionKey] = created;
|
|
36746
36944
|
return created;
|
|
36747
36945
|
}
|
|
36748
|
-
function
|
|
36946
|
+
function ensureChild2(parent, key) {
|
|
36749
36947
|
const existing = parent[key];
|
|
36750
36948
|
if (Array.isArray(existing) && existing.length > 0) {
|
|
36751
36949
|
return existing[0];
|
|
@@ -40503,9 +40701,9 @@ var PptxHandlerRuntime56 = class extends PptxHandlerRuntime55 {
|
|
|
40503
40701
|
}
|
|
40504
40702
|
const bgPr = xmlChild(bg, "p:bgPr");
|
|
40505
40703
|
if (bgPr) {
|
|
40506
|
-
const
|
|
40507
|
-
if (
|
|
40508
|
-
return this.parseColor(
|
|
40704
|
+
const solidFill2 = xmlChild(bgPr, "a:solidFill");
|
|
40705
|
+
if (solidFill2) {
|
|
40706
|
+
return this.parseColor(solidFill2);
|
|
40509
40707
|
}
|
|
40510
40708
|
const pattFill = xmlChild(bgPr, "a:pattFill");
|
|
40511
40709
|
if (pattFill) {
|
|
@@ -40548,9 +40746,9 @@ var PptxHandlerRuntime56 = class extends PptxHandlerRuntime55 {
|
|
|
40548
40746
|
if (idx === 0) {
|
|
40549
40747
|
return void 0;
|
|
40550
40748
|
}
|
|
40551
|
-
const
|
|
40552
|
-
if (
|
|
40553
|
-
return this.parseColor(
|
|
40749
|
+
const solidFill2 = xmlChild(bgRef, "a:solidFill");
|
|
40750
|
+
if (solidFill2) {
|
|
40751
|
+
return this.parseColor(solidFill2);
|
|
40554
40752
|
}
|
|
40555
40753
|
const overrideColor = this.parseColor(bgRef);
|
|
40556
40754
|
if (this.themeFormatScheme) {
|
|
@@ -43369,7 +43567,7 @@ var PptxHandlerRuntime68 = class extends PptxHandlerRuntime67 {
|
|
|
43369
43567
|
partPath
|
|
43370
43568
|
};
|
|
43371
43569
|
}
|
|
43372
|
-
collectLocalTextValues(node,
|
|
43570
|
+
collectLocalTextValues(node, localName2, output) {
|
|
43373
43571
|
const MAX_NODES = 1e6;
|
|
43374
43572
|
const stack = [node];
|
|
43375
43573
|
let visited = 0;
|
|
@@ -43392,7 +43590,7 @@ var PptxHandlerRuntime68 = class extends PptxHandlerRuntime67 {
|
|
|
43392
43590
|
}
|
|
43393
43591
|
const objectNode = current;
|
|
43394
43592
|
for (const [key, value] of Object.entries(objectNode)) {
|
|
43395
|
-
if (this.compatibilityService.getXmlLocalName(key) ===
|
|
43593
|
+
if (this.compatibilityService.getXmlLocalName(key) === localName2) {
|
|
43396
43594
|
if (typeof value === "string" || typeof value === "number") {
|
|
43397
43595
|
const textValue = String(value).trim();
|
|
43398
43596
|
if (textValue.length > 0) {
|
|
@@ -43446,6 +43644,71 @@ var PptxHandlerRuntime68 = class extends PptxHandlerRuntime67 {
|
|
|
43446
43644
|
}
|
|
43447
43645
|
return runs.length > 0 ? runs : void 0;
|
|
43448
43646
|
}
|
|
43647
|
+
/**
|
|
43648
|
+
* Extract a content point's per-node visual override.
|
|
43649
|
+
*
|
|
43650
|
+
* Reads the point's presentation `spPr` solid fill and line colour, and the
|
|
43651
|
+
* first run's `rPr` bold / italic / solid fill, into a
|
|
43652
|
+
* {@link PptxSmartArtNodeStyle}. Every field is optional and only set when
|
|
43653
|
+
* present, so an unstyled point yields `undefined` (never throws on missing
|
|
43654
|
+
* structure). This lets the editing UI display the node's current colours.
|
|
43655
|
+
*/
|
|
43656
|
+
extractSmartArtNodeStyle(point) {
|
|
43657
|
+
const style = {};
|
|
43658
|
+
const spPr = this.xmlLookupService.getChildByLocalName(point, "spPr");
|
|
43659
|
+
if (spPr) {
|
|
43660
|
+
const fill = this.parseColor(this.xmlLookupService.getChildByLocalName(spPr, "solidFill"));
|
|
43661
|
+
if (fill) {
|
|
43662
|
+
style.fillColor = fill;
|
|
43663
|
+
}
|
|
43664
|
+
const ln = this.xmlLookupService.getChildByLocalName(spPr, "ln");
|
|
43665
|
+
if (ln) {
|
|
43666
|
+
const lineColor = this.parseColor(
|
|
43667
|
+
this.xmlLookupService.getChildByLocalName(ln, "solidFill")
|
|
43668
|
+
);
|
|
43669
|
+
if (lineColor) {
|
|
43670
|
+
style.lineColor = lineColor;
|
|
43671
|
+
}
|
|
43672
|
+
}
|
|
43673
|
+
}
|
|
43674
|
+
const rPr = this.firstRunProperties(point);
|
|
43675
|
+
if (rPr) {
|
|
43676
|
+
if (this.xmlBoolean(rPr["@_b"])) {
|
|
43677
|
+
style.bold = true;
|
|
43678
|
+
}
|
|
43679
|
+
if (this.xmlBoolean(rPr["@_i"])) {
|
|
43680
|
+
style.italic = true;
|
|
43681
|
+
}
|
|
43682
|
+
const fontColor = this.parseColor(
|
|
43683
|
+
this.xmlLookupService.getChildByLocalName(rPr, "solidFill")
|
|
43684
|
+
);
|
|
43685
|
+
if (fontColor) {
|
|
43686
|
+
style.fontColor = fontColor;
|
|
43687
|
+
}
|
|
43688
|
+
}
|
|
43689
|
+
return Object.keys(style).length > 0 ? style : void 0;
|
|
43690
|
+
}
|
|
43691
|
+
/** Read the first run's `rPr` of a content point's first paragraph. */
|
|
43692
|
+
firstRunProperties(point) {
|
|
43693
|
+
const tBody = this.xmlLookupService.getChildByLocalName(point, "t");
|
|
43694
|
+
if (!tBody) {
|
|
43695
|
+
return void 0;
|
|
43696
|
+
}
|
|
43697
|
+
const paragraph = this.xmlLookupService.getChildrenArrayByLocalName(tBody, "p")[0];
|
|
43698
|
+
if (!paragraph) {
|
|
43699
|
+
return void 0;
|
|
43700
|
+
}
|
|
43701
|
+
const run = this.xmlLookupService.getChildrenArrayByLocalName(paragraph, "r")[0];
|
|
43702
|
+
if (!run) {
|
|
43703
|
+
return void 0;
|
|
43704
|
+
}
|
|
43705
|
+
return this.xmlLookupService.getChildByLocalName(run, "rPr");
|
|
43706
|
+
}
|
|
43707
|
+
/** Interpret an OOXML boolean attribute ("1"/"true"/"on" => true). */
|
|
43708
|
+
xmlBoolean(value) {
|
|
43709
|
+
const v = String(value ?? "").trim().toLowerCase();
|
|
43710
|
+
return v === "1" || v === "true" || v === "on";
|
|
43711
|
+
}
|
|
43449
43712
|
/**
|
|
43450
43713
|
* Parse background and outline chrome from `dgm:bg` and `dgm:whole`.
|
|
43451
43714
|
*/
|
|
@@ -43460,8 +43723,8 @@ var PptxHandlerRuntime68 = class extends PptxHandlerRuntime67 {
|
|
|
43460
43723
|
}
|
|
43461
43724
|
const chrome = {};
|
|
43462
43725
|
if (bg) {
|
|
43463
|
-
const
|
|
43464
|
-
const bgColor = this.parseColor(
|
|
43726
|
+
const solidFill2 = this.xmlLookupService.getChildByLocalName(bg, "solidFill");
|
|
43727
|
+
const bgColor = this.parseColor(solidFill2);
|
|
43465
43728
|
if (bgColor) {
|
|
43466
43729
|
chrome.backgroundColor = bgColor;
|
|
43467
43730
|
}
|
|
@@ -43469,8 +43732,8 @@ var PptxHandlerRuntime68 = class extends PptxHandlerRuntime67 {
|
|
|
43469
43732
|
if (whole) {
|
|
43470
43733
|
const lnNode = this.xmlLookupService.getChildByLocalName(whole, "ln");
|
|
43471
43734
|
if (lnNode) {
|
|
43472
|
-
const
|
|
43473
|
-
const outlineColor = this.parseColor(
|
|
43735
|
+
const solidFill2 = this.xmlLookupService.getChildByLocalName(lnNode, "solidFill");
|
|
43736
|
+
const outlineColor = this.parseColor(solidFill2);
|
|
43474
43737
|
if (outlineColor) {
|
|
43475
43738
|
chrome.outlineColor = outlineColor;
|
|
43476
43739
|
}
|
|
@@ -43645,8 +43908,8 @@ var PptxHandlerRuntime69 = class _PptxHandlerRuntime extends PptxHandlerRuntime6
|
|
|
43645
43908
|
const skewY = xfrm?.["@_skewY"] ? parseInt(String(xfrm["@_skewY"]), 10) / 6e4 : void 0;
|
|
43646
43909
|
const prstGeom = this.xmlLookupService.getChildByLocalName(spPr, "prstGeom");
|
|
43647
43910
|
const shapeType = prstGeom ? String(prstGeom["@_prst"] || "rect") : "rect";
|
|
43648
|
-
const
|
|
43649
|
-
const fillColor = this.parseColor(
|
|
43911
|
+
const solidFill2 = this.xmlLookupService.getChildByLocalName(spPr, "solidFill");
|
|
43912
|
+
const fillColor = this.parseColor(solidFill2);
|
|
43650
43913
|
const lnNode = this.xmlLookupService.getChildByLocalName(spPr, "ln");
|
|
43651
43914
|
const lnFill = lnNode ? this.xmlLookupService.getChildByLocalName(lnNode, "solidFill") : void 0;
|
|
43652
43915
|
const strokeColor = this.parseColor(lnFill);
|
|
@@ -43750,12 +44013,14 @@ var PptxHandlerRuntime70 = class _PptxHandlerRuntime extends PptxHandlerRuntime6
|
|
|
43750
44013
|
return null;
|
|
43751
44014
|
}
|
|
43752
44015
|
const runs = this.extractSmartArtNodeRuns(point);
|
|
44016
|
+
const style = this.extractSmartArtNodeStyle(point);
|
|
43753
44017
|
return {
|
|
43754
44018
|
id: pointId,
|
|
43755
44019
|
text: resolvedText.trim(),
|
|
43756
44020
|
parentId: parentByNodeId.get(pointId),
|
|
43757
44021
|
nodeType,
|
|
43758
|
-
runs
|
|
44022
|
+
runs,
|
|
44023
|
+
style
|
|
43759
44024
|
};
|
|
43760
44025
|
}).filter((entry) => Boolean(entry)).slice(0, MAX_SMARTART_NODES);
|
|
43761
44026
|
if (nodes.length === 0) {
|
|
@@ -43920,10 +44185,10 @@ var PptxHandlerRuntime71 = class extends PptxHandlerRuntime70 {
|
|
|
43920
44185
|
};
|
|
43921
44186
|
const matchedKeys = [];
|
|
43922
44187
|
for (const key of Object.keys(plotArea)) {
|
|
43923
|
-
const
|
|
43924
|
-
const mapped = chartElementMap[
|
|
44188
|
+
const localName2 = this.compatibilityService.getXmlLocalName(key);
|
|
44189
|
+
const mapped = chartElementMap[localName2];
|
|
43925
44190
|
if (mapped) {
|
|
43926
|
-
matchedKeys.push(
|
|
44191
|
+
matchedKeys.push(localName2);
|
|
43927
44192
|
}
|
|
43928
44193
|
}
|
|
43929
44194
|
if (matchedKeys.length >= 2) {
|
|
@@ -43933,8 +44198,8 @@ var PptxHandlerRuntime71 = class extends PptxHandlerRuntime70 {
|
|
|
43933
44198
|
return chartElementMap[matchedKeys[0]];
|
|
43934
44199
|
}
|
|
43935
44200
|
for (const key of Object.keys(plotArea)) {
|
|
43936
|
-
const
|
|
43937
|
-
if (
|
|
44201
|
+
const localName2 = this.compatibilityService.getXmlLocalName(key);
|
|
44202
|
+
if (localName2 === "plotAreaRegion" || localName2 === "plotSurface") {
|
|
43938
44203
|
const seriesArr = this.xmlLookupService.getChildrenArrayByLocalName(
|
|
43939
44204
|
plotArea[key],
|
|
43940
44205
|
"series"
|
|
@@ -44461,8 +44726,8 @@ var PptxHandlerRuntime74 = class extends PptxHandlerRuntime73 {
|
|
|
44461
44726
|
if (key.startsWith("@_")) {
|
|
44462
44727
|
continue;
|
|
44463
44728
|
}
|
|
44464
|
-
const
|
|
44465
|
-
if (
|
|
44729
|
+
const localName2 = this.compatibilityService.getXmlLocalName(key);
|
|
44730
|
+
if (localName2 === "schemeClr") {
|
|
44466
44731
|
const items = Array.isArray(value) ? value : [value];
|
|
44467
44732
|
for (const item of items) {
|
|
44468
44733
|
const resolved = this.resolveChartSchemeColor(item);
|
|
@@ -44470,7 +44735,7 @@ var PptxHandlerRuntime74 = class extends PptxHandlerRuntime73 {
|
|
|
44470
44735
|
output.push(resolved);
|
|
44471
44736
|
}
|
|
44472
44737
|
}
|
|
44473
|
-
} else if (
|
|
44738
|
+
} else if (localName2 === "srgbClr") {
|
|
44474
44739
|
const items = Array.isArray(value) ? value : [value];
|
|
44475
44740
|
for (const item of items) {
|
|
44476
44741
|
const hex8 = String(
|
|
@@ -63671,4 +63936,4 @@ var SvgExporter = class _SvgExporter {
|
|
|
63671
63936
|
* `<p:extLst>` (optional)
|
|
63672
63937
|
*/
|
|
63673
63938
|
|
|
63674
|
-
export { ALL_ANIMATION_PRESETS, BLIP_FILL_ORDER, CLOUD_CALLOUT_TAIL_COUNT, CLOUD_LOBE_COUNT, COLOR_MAP_ALIAS_KEYS, CONNECTOR_ARROW_OPTIONS, CONNECTOR_GEOMETRY_OPTIONS, ChartBuilder, ConnectorBuilder, ConnectorXmlFactory, DEFAULT_CANVAS_HEIGHT, DEFAULT_CANVAS_WIDTH, DEFAULT_COLOR_MAP, DEFAULT_FILL_COLOR, DEFAULT_FONT_FAMILY, DEFAULT_MAX_UNCOMPRESSED_BYTES, DEFAULT_SCHEME_COLOR_MAP, DEFAULT_STROKE_COLOR, DEFAULT_TEXT_COLOR, DEFAULT_TEXT_FONT_SIZE, DIGEST_ALGORITHM_TO_HASH, DIGEST_ALGORITHM_TO_WEB_CRYPTO, DIGITAL_SIGNATURE_ORIGIN_REL_TYPE, DIGITAL_SIGNATURE_REL_TYPE, DataIntegrityError, DocumentConverter, EFFECT_LST_ORDER, EMPHASIS_PRESETS, EMU_PER_INCH, EMU_PER_PIXEL2 as EMU_PER_PIXEL, EMU_PER_POINT, EMU_PER_PX, ENTERPRISE_FAIL_ON_REVOCATION_UNKNOWN_ENV, ENTERPRISE_REQUIRE_REVOCATION_ENV, ENTERPRISE_REQUIRE_TIMESTAMP_ENV, ENTERPRISE_TRUST_ROOTS_FILE_ENV, ENTERPRISE_TRUST_ROOTS_PEM_ENV, ENTRANCE_PRESETS, EXIT_PRESETS, EncryptedFileError, FONT_SUBSTITUTION_MAP, FreeformPathBuilder, GroupBuilder, ImageBuilder, IncorrectPasswordError, MAX_TABLE_DIMENSION, MAX_ZIP_ENTRY_COUNT, MIN_ELEMENT_SIZE, MIN_TABLE_DIMENSION, MOTION_PATH_PRESETS, MediaBuilder, MediaContext, MediaGraphicFrameXmlFactory, OOXML_TO_PRESET_EMPH, OOXML_TO_PRESET_ENTR, OOXML_TO_PRESET_EXIT, OPC_RELATIONSHIP_TRANSFORM, Ole2ParseError, P14_GUIDE_URI, P15_GUIDE_URI, PANOSE_FAMILY_MAP, PANOSE_MONOSPACE_PROPORTION, PANOSE_SANS_SERIF_STYLES, PANOSE_WEIGHT_MAP, POWERPOINT_PRESENCE_KEY, PPTX_VIEWER_MANIFEST_NS, PRESET_COLOR_MAP, PRESET_SHAPE_CATEGORY_LABELS, PRESET_SHAPE_CLIP_PATHS, PRESET_SHAPE_DEFINITIONS, PRESET_SHAPE_GEOMETRY_TABLE, PRESET_TO_OOXML, PictureXmlFactory, PptxAnimationWriteService, PptxColorStyleCodec, PptxCommentAuthorsXmlFactory, PptxCommentXmlFactoryProvider, PptxCompatibilityService, PptxConnectorParser, PptxContentTypesBuilder, PptxDocumentPropertiesUpdater, PptxEditorAnimationService, PptxElementTransformUpdater, PptxElementXmlBuilder, PptxGraphicFrameParser, PptxHandler, PptxHandlerRuntime81 as PptxHandlerRuntime, PptxHandlerRuntimeFactory, PptxLoadDataBuilder, PptxMarkdownConverter, PptxMediaDataParser, PptxNativeAnimationService, PptxPresentationSaveBuilder, PptxPresentationSlidesReconciler, PptxRuntimeDependencyFactory, PptxSaveConstantsFactory, PptxSaveState as PptxSaveSession, PptxSaveStateBuilder as PptxSaveSessionBuilder, PptxSaveState, PptxSaveStateBuilder, PptxShapeIdValidator, PptxShapeStyleExtractor, PptxSlideBackgroundBuilder, PptxSlideBuilder, PptxSlideCommentPartWriter, PptxSlideCommentsXmlFactory, PptxSlideElementsBuilder, PptxSlideLoaderService, PptxSlideMediaRelationshipBuilder, PptxSlideNotesBuilder, PptxSlideNotesPartUpdater, PptxSlideRelationshipRegistry, PptxSlideTransitionService, PptxTableDataParser, PptxTemplateBackgroundService, PptxXmlBuilder, PptxXmlFactoryProvider, PptxXmlLookupService, Presentation, PresentationBuilder, SHAPE_TREE_ELEMENT_TAGS, SP_PR_ORDER, STROKE_DASH_OPTIONS, SUPPORTED_XML_CANON_TRANSFORMS, SWITCHABLE_LAYOUT_TYPES, SYSTEM_COLOR_MAP, ShapeBuilder, SlideBuilder, SlideProcessor, SlideSizes, SvgExporter, TC_PR_BORDERS_ORDER, THEME_COLOR_SCHEME_KEYS, THEME_PRESETS, TRANSITION_VALID_DIRECTIONS, TableBuilder, TextBuilder, TextShapeXmlFactory, ThemePresets, VML_SHAPE_TAGS, XMLDSIG_NS, XML_TRANSFORM_ENVELOPED_SIGNATURE, ZipBombError, addChartCategory, addChartSeries, addSection, addSmartArtNode, addSmartArtNodeAsChild, applyDrawingColorTransforms, applyKinsokuToXml, applyTableCellTextAndStyle, applyTemplate, applyThemeToData, areNamespacesSupported, buildCalloutLeaderLineSvgPath, buildClrMapOverrideXml, buildFontFamilyString, buildGuideListExtension, buildLinkedTextBoxChains, buildOle2, buildSingleEffectNode, buildSrgbColorChoice, buildThemeColorMap, catmullRomToBezier, chartDataAddCategory, chartDataAddSeries, chartDataChangeType, chartDataRemoveCategory, chartDataRemoveSeries, chartDataUpdatePoint, checkBlankSlide, checkComplexTables, checkDuplicateTitles, checkLowContrast, checkMissingAltText, checkMissingSlideTitle, checkPresentation, clampUnitInterval, classifyPanose, cloneElement, cloneShapeStyle, cloneSlide, cloneTemplateElementsBySlideId, cloneTextStyle, cloneXmlObject, cm, cmToEmu, colorWithOpacity, colorsEqual, combineShapes, computeContrastRatio, computeCycleLayout, computeDetailStatus, computeDigestBase64 as computeDigestBase64WebCrypto, computeHierarchyLayout, computeLinearLayout, computeMatrixLayout, computePyramidLayout, computeSmartArtLayout, computeSnakeLayout, computeVerificationStatus, convertXmlToStrict, createArrayBufferCopy, createBuiltinVariables, createChartElement, createConnectorElement, createDefaultPptxHandlerRuntime, createEditorId, createFreeformElement, createGroupElement, createImageElement, createLayout, createLayouts, createMediaElement, createModifyVerifier, createPptxSaveConstants, createShapeElement, createTableCellXml, createTableElement, createTableGraphicFrameRawXml, createTemplateConnectorRawXml, createTemplateShapeRawXml, createTextElement, createUniformTextSegments, dataUrlToMediaBytes, decodeOle10Native, decomposeSmartArt, decryptPptx, demoteSmartArtNode, deobfuscateFont, deriveOutputPath, detectDigitalSignatures, detectFileFormat, detectFontFormat, detectOleObjectType, detectStrictConformance, diffPresentations, diffSlides, distributeSegmentsAcrossChain, douglasPeucker, duplicateElement, duplicateSlide, elementActionToPptxAction, elementHasAction, emuToPixels, encryptPptx, ensureArrayValue, escapeXmlAttr, escapeXmlText, estimateTextBoxCapacity, evaluateGeometryPaths, evaluateGuides, evaluatePresetShape, extractAllTagText, extractColorChoiceXml, extractFirstTagText, extractGuidFromPartName, extractModel3DTransform, extractTagAttribute, fetchUrlToBytes, findCustomShow, findLayoutByName, findLayoutByType, findPlaceholders, findText, formatCommentTimestamp, fragmentShapes, generateFontGuid, generateLayoutXml, generateMediaFilename, getAdjustmentAwareClipPath, getAdjustmentAwareShapeClipPath, getAnimationPresetInfo, getCalloutLeaderLineGeometry, getCalloutTier, getCalloutViewBoxBounds, getCloudCalloutClipPath, getCloudClipPath, getCloudPathForRendering, getCommentMarkerPosition, getConnectorAdjustment, getConnectorPathGeometry, getCssBorderDashStyle, getCustomShowNames, getCustomShowPositionLabel, getDirectory, getElementLabel, getElementTextContent, getElementTransform, getImageMaskStyle, getLinkedTextBoxSegments, getNativeAnimationPresetMetadata, getOleObjectTypeLabel, getPanoseWeight, getPresetShapeClipPath, getPresetsByCategory, getRoundRectRadiusPx, getSectionForSlide, getSectionSlideRange, getShapeClipPath, getShapeClipPathFromPreset, getShapeType, getSignaturePathsToStrip, getSubstituteFontFamily, getSubstituteFonts, getSupportedNamespaces, getSvgStrokeDasharray, getTextCompensationTransform, getThemePreset, getZoomElements, getZoomTargetSlideIndexes, guidToKey, guideEmuToPx, guidePxToEmu, hasDirectSubstitution, hasNonTrivialOverride, hasShapeProperties, hasTextProperties, hexToRgbChannels, hslToRgb, inches, inchesToEmu, inferOleExtensionFromTarget, interpolateShapeGeometry, intersectPolygons, intersectShapes, intersectSvgPaths, isCalloutShape, isConnectorElement, isEditableTextElement, isImageLikeElement, isInkElement, isNamespaceSupported, isOle2CompoundFile, isShapeElement, isStrictNamespaceUri, isSummaryZoomSlide, isSwitchableLayoutType, isTemplateElement, isTextElement, isTransitionalNamespaceUri, isValidBase64, isXmlNode, isZoomElement, isZoomElement2 as isZoomElementUtil, layoutEngineShapesToDrawingShapes, lookupPresetShape, mailMerge, mergePresentation, mergeShapes, mergeStyleParts, mergeThemeColorOverride, mimeTypeForOleFile, mm, moveSlidesToSection, navigateCustomShow, normalizeHexColor, normalizeNamespaceUri, normalizePartPath, normalizePath, normalizeStrictXml, normalizeStrokeDashType, obfuscateFont, oleBytesToDataUrl, ooxmlArcToSvg, ooxmlToPresetName, parseActiveXControlsFromSlide, parseAdjustmentValues, parseBodyPrBooleanAttrs, parseChart3DSurfaces, parseChartAxes, parseCondition, parseConditionList, parseCxChartSeries, parseDataTable, parseDataUrlToBytes, parseDrawingColor, parseDrawingColorChoice, parseDrawingColorOpacity, parseDrawingFraction, parseDrawingHueDegrees, parseDrawingPercent, parseEmbeddedXlsx, parseGuideDefinitions, parseHexColor, parseKinsoku, parseLayoutDefinition, parseLineStyle, parseMarker, parseOle2, parsePanoseBytes, parsePanoseString, parsePresentationDrawingGuides, parseSeriesDataLabels, parseSeriesDataPoints, parseSeriesErrBars, parseSeriesExplosion, parseSeriesTrendlines, parseShapeProps, parseSignatureXml, parseSlideDrawingGuides, parseSvgPath, parseVmlElement, parseVmlElements, pixelsToEmu, polygonsToSvgPath, pptxActionToElementAction, promoteSmartArtNode, pt, reResolveSlideColors, readFileAsDataUrl, rebuildTableStructureInRawXml, reflowSmartArtLayout, relativeLuminance, relayoutSmartArt, removeChartCategory, removeChartSeries, removeSection, removeSmartArtNode, reorderObjectKeys, reorderSections, reorderSmartArtNode, reorderSmartArtNodeToIndex, repairPptx, replaceShapeGeometry, replaceText, replaceTextInSlide, replaceWithCustomGeometry, resetCloneIdCounter, resetDecomposeCounter, resetIdCounter, resetSectionIdCounter, resetSmartArtEditCounter, resolveCoordinate, resolveCustomShowSlideIndices, resolveLayoutDisplayName, resolveModel3DMimeType, resolveReferenceUriToPart, resolveTableCellStyle, rgbToHsl, selectAlternateContentBranch, serializeColorChoice, serializeCondition, serializeConditionList, serializeSvgPath, setChartAxis, setChartAxisGridlineStyle, setChartAxisLogScale, setChartAxisTitleStyle, setChartCategories, setChartDataLabels, setChartDataPointExplosion, setChartDataPointFill, setChartDataPointLabel, setChartGrouping, setChartLegend, setChartSeriesChartType, setChartSeriesColor, setChartSeriesErrorBars, setChartSeriesMarker, setChartSeriesTrendline, setChartTitle, setChartType, shouldRenderFallbackLabel, shouldReturnToZoomSlide, subtractPolygons, subtractShapes, subtractSvgPaths, svgPathToPolygons, switchSmartArtLayout, toHex, toStrictNamespaceUri, unionPolygons, unionShapes, unionSvgPaths, unwrapAlternateContent, unwrapOleEmbedding, updateCellTextInRawXml, updateCellTextStyleInRawXml, updateChartDataPoint, updateChartSeriesValues, updateMergeAttrsInRawXml, updateSmartArtNodeText, validatePptx, verifyModifyPassword, verifyPassword, verifySignatureDigests, writeBodyPrBooleanAttrs, xmlAttr, xmlAttrBool, xmlAttrNumber, xmlChild, xmlChildren, xmlPath, xmlText };
|
|
63939
|
+
export { ALL_ANIMATION_PRESETS, BLIP_FILL_ORDER, CLOUD_CALLOUT_TAIL_COUNT, CLOUD_LOBE_COUNT, COLOR_MAP_ALIAS_KEYS, CONNECTOR_ARROW_OPTIONS, CONNECTOR_GEOMETRY_OPTIONS, ChartBuilder, ConnectorBuilder, ConnectorXmlFactory, DEFAULT_CANVAS_HEIGHT, DEFAULT_CANVAS_WIDTH, DEFAULT_COLOR_MAP, DEFAULT_FILL_COLOR, DEFAULT_FONT_FAMILY, DEFAULT_MAX_UNCOMPRESSED_BYTES, DEFAULT_SCHEME_COLOR_MAP, DEFAULT_STROKE_COLOR, DEFAULT_TEXT_COLOR, DEFAULT_TEXT_FONT_SIZE, DIGEST_ALGORITHM_TO_HASH, DIGEST_ALGORITHM_TO_WEB_CRYPTO, DIGITAL_SIGNATURE_ORIGIN_REL_TYPE, DIGITAL_SIGNATURE_REL_TYPE, DataIntegrityError, DocumentConverter, EFFECT_LST_ORDER, EMPHASIS_PRESETS, EMU_PER_INCH, EMU_PER_PIXEL2 as EMU_PER_PIXEL, EMU_PER_POINT, EMU_PER_PX, ENTERPRISE_FAIL_ON_REVOCATION_UNKNOWN_ENV, ENTERPRISE_REQUIRE_REVOCATION_ENV, ENTERPRISE_REQUIRE_TIMESTAMP_ENV, ENTERPRISE_TRUST_ROOTS_FILE_ENV, ENTERPRISE_TRUST_ROOTS_PEM_ENV, ENTRANCE_PRESETS, EXIT_PRESETS, EncryptedFileError, FONT_SUBSTITUTION_MAP, FreeformPathBuilder, GroupBuilder, ImageBuilder, IncorrectPasswordError, MAX_TABLE_DIMENSION, MAX_ZIP_ENTRY_COUNT, MIN_ELEMENT_SIZE, MIN_TABLE_DIMENSION, MOTION_PATH_PRESETS, MediaBuilder, MediaContext, MediaGraphicFrameXmlFactory, OOXML_TO_PRESET_EMPH, OOXML_TO_PRESET_ENTR, OOXML_TO_PRESET_EXIT, OPC_RELATIONSHIP_TRANSFORM, Ole2ParseError, P14_GUIDE_URI, P15_GUIDE_URI, PANOSE_FAMILY_MAP, PANOSE_MONOSPACE_PROPORTION, PANOSE_SANS_SERIF_STYLES, PANOSE_WEIGHT_MAP, POWERPOINT_PRESENCE_KEY, PPTX_VIEWER_MANIFEST_NS, PRESET_COLOR_MAP, PRESET_SHAPE_CATEGORY_LABELS, PRESET_SHAPE_CLIP_PATHS, PRESET_SHAPE_DEFINITIONS, PRESET_SHAPE_GEOMETRY_TABLE, PRESET_TO_OOXML, PictureXmlFactory, PptxAnimationWriteService, PptxColorStyleCodec, PptxCommentAuthorsXmlFactory, PptxCommentXmlFactoryProvider, PptxCompatibilityService, PptxConnectorParser, PptxContentTypesBuilder, PptxDocumentPropertiesUpdater, PptxEditorAnimationService, PptxElementTransformUpdater, PptxElementXmlBuilder, PptxGraphicFrameParser, PptxHandler, PptxHandlerRuntime81 as PptxHandlerRuntime, PptxHandlerRuntimeFactory, PptxLoadDataBuilder, PptxMarkdownConverter, PptxMediaDataParser, PptxNativeAnimationService, PptxPresentationSaveBuilder, PptxPresentationSlidesReconciler, PptxRuntimeDependencyFactory, PptxSaveConstantsFactory, PptxSaveState as PptxSaveSession, PptxSaveStateBuilder as PptxSaveSessionBuilder, PptxSaveState, PptxSaveStateBuilder, PptxShapeIdValidator, PptxShapeStyleExtractor, PptxSlideBackgroundBuilder, PptxSlideBuilder, PptxSlideCommentPartWriter, PptxSlideCommentsXmlFactory, PptxSlideElementsBuilder, PptxSlideLoaderService, PptxSlideMediaRelationshipBuilder, PptxSlideNotesBuilder, PptxSlideNotesPartUpdater, PptxSlideRelationshipRegistry, PptxSlideTransitionService, PptxTableDataParser, PptxTemplateBackgroundService, PptxXmlBuilder, PptxXmlFactoryProvider, PptxXmlLookupService, Presentation, PresentationBuilder, SHAPE_TREE_ELEMENT_TAGS, SP_PR_ORDER, STROKE_DASH_OPTIONS, SUPPORTED_XML_CANON_TRANSFORMS, SWITCHABLE_LAYOUT_TYPES, SYSTEM_COLOR_MAP, ShapeBuilder, SlideBuilder, SlideProcessor, SlideSizes, SvgExporter, TC_PR_BORDERS_ORDER, THEME_COLOR_SCHEME_KEYS, THEME_PRESETS, TRANSITION_VALID_DIRECTIONS, TableBuilder, TextBuilder, TextShapeXmlFactory, ThemePresets, VML_SHAPE_TAGS, XMLDSIG_NS, XML_TRANSFORM_ENVELOPED_SIGNATURE, ZipBombError, addChartCategory, addChartSeries, addSection, addSmartArtNode, addSmartArtNodeAsChild, applyDrawingColorTransforms, applyKinsokuToXml, applyTableCellTextAndStyle, applyTemplate, applyThemeToData, areNamespacesSupported, buildCalloutLeaderLineSvgPath, buildClrMapOverrideXml, buildFontFamilyString, buildGuideListExtension, buildLinkedTextBoxChains, buildOle2, buildSingleEffectNode, buildSrgbColorChoice, buildThemeColorMap, catmullRomToBezier, chartDataAddCategory, chartDataAddSeries, chartDataChangeType, chartDataRemoveCategory, chartDataRemoveSeries, chartDataUpdatePoint, checkBlankSlide, checkComplexTables, checkDuplicateTitles, checkLowContrast, checkMissingAltText, checkMissingSlideTitle, checkPresentation, clampUnitInterval, classifyPanose, cloneElement, cloneShapeStyle, cloneSlide, cloneTemplateElementsBySlideId, cloneTextStyle, cloneXmlObject, cm, cmToEmu, colorWithOpacity, colorsEqual, combineShapes, computeContrastRatio, computeCycleLayout, computeDetailStatus, computeDigestBase64 as computeDigestBase64WebCrypto, computeHierarchyLayout, computeLinearLayout, computeMatrixLayout, computePyramidLayout, computeSmartArtLayout, computeSnakeLayout, computeVerificationStatus, convertXmlToStrict, createArrayBufferCopy, createBuiltinVariables, createChartElement, createConnectorElement, createDefaultPptxHandlerRuntime, createEditorId, createFreeformElement, createGroupElement, createImageElement, createLayout, createLayouts, createMediaElement, createModifyVerifier, createPptxSaveConstants, createShapeElement, createTableCellXml, createTableElement, createTableGraphicFrameRawXml, createTemplateConnectorRawXml, createTemplateShapeRawXml, createTextElement, createUniformTextSegments, dataUrlToMediaBytes, decodeOle10Native, decomposeSmartArt, decryptPptx, demoteSmartArtNode, deobfuscateFont, deriveOutputPath, detectDigitalSignatures, detectFileFormat, detectFontFormat, detectOleObjectType, detectStrictConformance, diffPresentations, diffSlides, distributeSegmentsAcrossChain, douglasPeucker, duplicateElement, duplicateSlide, elementActionToPptxAction, elementHasAction, emuToPixels, encryptPptx, ensureArrayValue, escapeXmlAttr, escapeXmlText, estimateTextBoxCapacity, evaluateGeometryPaths, evaluateGuides, evaluatePresetShape, extractAllTagText, extractColorChoiceXml, extractFirstTagText, extractGuidFromPartName, extractModel3DTransform, extractTagAttribute, fetchUrlToBytes, findCustomShow, findLayoutByName, findLayoutByType, findPlaceholders, findText, formatCommentTimestamp, fragmentShapes, generateFontGuid, generateLayoutXml, generateMediaFilename, getAdjustmentAwareClipPath, getAdjustmentAwareShapeClipPath, getAnimationPresetInfo, getCalloutLeaderLineGeometry, getCalloutTier, getCalloutViewBoxBounds, getCloudCalloutClipPath, getCloudClipPath, getCloudPathForRendering, getCommentMarkerPosition, getConnectorAdjustment, getConnectorPathGeometry, getCssBorderDashStyle, getCustomShowNames, getCustomShowPositionLabel, getDirectory, getElementLabel, getElementTextContent, getElementTransform, getImageMaskStyle, getLinkedTextBoxSegments, getNativeAnimationPresetMetadata, getOleObjectTypeLabel, getPanoseWeight, getPresetShapeClipPath, getPresetsByCategory, getRoundRectRadiusPx, getSectionForSlide, getSectionSlideRange, getShapeClipPath, getShapeClipPathFromPreset, getShapeType, getSignaturePathsToStrip, getSubstituteFontFamily, getSubstituteFonts, getSupportedNamespaces, getSvgStrokeDasharray, getTextCompensationTransform, getThemePreset, getZoomElements, getZoomTargetSlideIndexes, guidToKey, guideEmuToPx, guidePxToEmu, hasDirectSubstitution, hasNonTrivialOverride, hasShapeProperties, hasTextProperties, hexToRgbChannels, hslToRgb, inches, inchesToEmu, inferOleExtensionFromTarget, interpolateShapeGeometry, intersectPolygons, intersectShapes, intersectSvgPaths, isCalloutShape, isConnectorElement, isEditableTextElement, isImageLikeElement, isInkElement, isNamespaceSupported, isOle2CompoundFile, isShapeElement, isStrictNamespaceUri, isSummaryZoomSlide, isSwitchableLayoutType, isTemplateElement, isTextElement, isTransitionalNamespaceUri, isValidBase64, isXmlNode, isZoomElement, isZoomElement2 as isZoomElementUtil, layoutEngineShapesToDrawingShapes, lookupPresetShape, mailMerge, mergePresentation, mergeShapes, mergeStyleParts, mergeThemeColorOverride, mimeTypeForOleFile, mm, moveSlidesToSection, navigateCustomShow, normalizeHexColor, normalizeNamespaceUri, normalizePartPath, normalizePath, normalizeStrictXml, normalizeStrokeDashType, obfuscateFont, oleBytesToDataUrl, ooxmlArcToSvg, ooxmlToPresetName, parseActiveXControlsFromSlide, parseAdjustmentValues, parseBodyPrBooleanAttrs, parseChart3DSurfaces, parseChartAxes, parseCondition, parseConditionList, parseCxChartSeries, parseDataTable, parseDataUrlToBytes, parseDrawingColor, parseDrawingColorChoice, parseDrawingColorOpacity, parseDrawingFraction, parseDrawingHueDegrees, parseDrawingPercent, parseEmbeddedXlsx, parseGuideDefinitions, parseHexColor, parseKinsoku, parseLayoutDefinition, parseLineStyle, parseMarker, parseOle2, parsePanoseBytes, parsePanoseString, parsePresentationDrawingGuides, parseSeriesDataLabels, parseSeriesDataPoints, parseSeriesErrBars, parseSeriesExplosion, parseSeriesTrendlines, parseShapeProps, parseSignatureXml, parseSlideDrawingGuides, parseSvgPath, parseVmlElement, parseVmlElements, pixelsToEmu, polygonsToSvgPath, pptxActionToElementAction, promoteSmartArtNode, pt, reResolveSlideColors, readFileAsDataUrl, rebuildTableStructureInRawXml, reflowSmartArtLayout, relativeLuminance, relayoutSmartArt, removeChartCategory, removeChartSeries, removeSection, removeSmartArtNode, reorderObjectKeys, reorderSections, reorderSmartArtNode, reorderSmartArtNodeToIndex, repairPptx, replaceShapeGeometry, replaceText, replaceTextInSlide, replaceWithCustomGeometry, resetCloneIdCounter, resetDecomposeCounter, resetIdCounter, resetSectionIdCounter, resetSmartArtEditCounter, resolveCoordinate, resolveCustomShowSlideIndices, resolveLayoutDisplayName, resolveModel3DMimeType, resolveReferenceUriToPart, resolveTableCellStyle, rgbToHsl, selectAlternateContentBranch, serializeColorChoice, serializeCondition, serializeConditionList, serializeSvgPath, setChartAxis, setChartAxisGridlineStyle, setChartAxisLogScale, setChartAxisTitleStyle, setChartCategories, setChartDataLabels, setChartDataPointExplosion, setChartDataPointFill, setChartDataPointLabel, setChartGrouping, setChartLegend, setChartSeriesChartType, setChartSeriesColor, setChartSeriesErrorBars, setChartSeriesMarker, setChartSeriesTrendline, setChartTitle, setChartType, setSmartArtNodeStyle, shouldRenderFallbackLabel, shouldReturnToZoomSlide, subtractPolygons, subtractShapes, subtractSvgPaths, svgPathToPolygons, switchSmartArtLayout, toHex, toStrictNamespaceUri, unionPolygons, unionShapes, unionSvgPaths, unwrapAlternateContent, unwrapOleEmbedding, updateCellTextInRawXml, updateCellTextStyleInRawXml, updateChartDataPoint, updateChartSeriesValues, updateMergeAttrsInRawXml, updateSmartArtNodeText, validatePptx, verifyModifyPassword, verifyPassword, verifySignatureDigests, writeBodyPrBooleanAttrs, xmlAttr, xmlAttrBool, xmlAttrNumber, xmlChild, xmlChildren, xmlPath, xmlText };
|