ooxml-ui 1.0.0 → 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -0
- package/dist/{chunk-OXKWNNNJ.js → chunk-3FPW7M6U.js} +1 -1
- package/dist/{chunk-XDUYS4KK.js → chunk-BEN3453I.js} +1 -1
- package/dist/{chunk-FLHM5Q4O.js → chunk-KVKKXRL7.js} +3 -3
- package/dist/{chunk-T3HB5LMH.js → chunk-M5DTJSOV.js} +2 -2
- package/dist/{chunk-ZV2Z4IWH.js → chunk-USDLALB5.js} +4 -1
- package/dist/{chunk-4QQASR5A.js → chunk-ZU7GX4SY.js} +4 -4
- package/dist/controls.js +3 -3
- package/dist/docx/localization-strings.d.ts +1 -1
- package/dist/docx/localization.d.ts +0 -1
- package/dist/docx.js +11 -21
- package/dist/index.js +6 -6
- package/dist/pptx/{chunk-FEFQTZDM.cjs → chunk-KPZWYF44.cjs} +62 -97
- package/dist/pptx/{chunk-XQZWZMGZ.cjs → chunk-SM3CWDIQ.cjs} +7 -17
- package/dist/pptx/{chunk-JSBGBVBH.mjs → chunk-VRFNAF3Q.mjs} +7 -17
- package/dist/pptx/{chunk-XWE5GSE7.mjs → chunk-Y2W4SZER.mjs} +57 -95
- package/dist/pptx/dom/index.cjs +196 -196
- package/dist/pptx/dom/index.mjs +4 -4
- package/dist/pptx/i18n/index.cjs +6 -6
- package/dist/pptx/i18n/index.mjs +1 -1
- package/dist/pptx/i18n/translator.d.ts.map +1 -1
- package/dist/pptx/index.cjs +2700 -2688
- package/dist/pptx/index.mjs +2 -2
- package/dist/pptx/render/connector-elbow-geometry.d.ts +7 -43
- package/dist/pptx/render/connector-elbow-geometry.d.ts.map +1 -1
- package/dist/pptx/render/index.d.ts +1 -0
- package/dist/pptx/render/index.d.ts.map +1 -1
- package/dist/pptx/render/viewer-root-options.d.ts +46 -0
- package/dist/pptx/render/viewer-root-options.d.ts.map +1 -0
- package/dist/pptx/web-components/registration-contract.d.ts.map +1 -1
- package/dist/presence.js +2 -2
- package/dist/registry.d.ts +2 -0
- package/dist/registry.d.ts.map +1 -1
- package/dist/smartart.js +2 -2
- package/dist/teams.js +4 -4
- package/dist/visio.js +14 -8
- package/dist/xlsx.js +7 -7
- package/package.json +3 -3
package/dist/pptx/dom/index.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkKPZWYF44_cjs = require('../chunk-KPZWYF44.cjs');
|
|
4
4
|
require('../chunk-WSTWYZFM.cjs');
|
|
5
5
|
var chunk2JEQHIAL_cjs = require('../chunk-2JEQHIAL.cjs');
|
|
6
6
|
require('../chunk-IOR4KOGN.cjs');
|
|
@@ -33,7 +33,7 @@ require('../chunk-Y4LTLCQP.cjs');
|
|
|
33
33
|
require('../chunk-USBRSEJK.cjs');
|
|
34
34
|
require('../chunk-47FYJVMH.cjs');
|
|
35
35
|
var chunkU47LRWDT_cjs = require('../chunk-U47LRWDT.cjs');
|
|
36
|
-
var
|
|
36
|
+
var chunkSM3CWDIQ_cjs = require('../chunk-SM3CWDIQ.cjs');
|
|
37
37
|
require('../chunk-OGJRSAGH.cjs');
|
|
38
38
|
require('../chunk-HJ3JZXOL.cjs');
|
|
39
39
|
require('../chunk-EW5DW5KR.cjs');
|
|
@@ -95,7 +95,7 @@ function buildActiveXControlsOverlay(doc, controls, canvasSize) {
|
|
|
95
95
|
zIndex: "40"
|
|
96
96
|
});
|
|
97
97
|
controls.forEach((control, index) => {
|
|
98
|
-
const view =
|
|
98
|
+
const view = chunkKPZWYF44_cjs.getActiveXControlOverlayView(control, canvasSize, index);
|
|
99
99
|
const style = {
|
|
100
100
|
position: "absolute",
|
|
101
101
|
left: `${view.left}px`,
|
|
@@ -130,7 +130,7 @@ function appendCommentMarkers(doc, stage, comments, canvasSize, t, onMarkerClick
|
|
|
130
130
|
pointerEvents: "none",
|
|
131
131
|
zIndex: "45"
|
|
132
132
|
});
|
|
133
|
-
const markers =
|
|
133
|
+
const markers = chunkKPZWYF44_cjs.buildCommentMarkers(
|
|
134
134
|
comments,
|
|
135
135
|
canvasSize.width,
|
|
136
136
|
canvasSize.height,
|
|
@@ -139,10 +139,10 @@ function appendCommentMarkers(doc, stage, comments, canvasSize, t, onMarkerClick
|
|
|
139
139
|
for (const marker of markers) {
|
|
140
140
|
const dot = createEl(doc, "button", "pptxv-comment-marker", {
|
|
141
141
|
position: "absolute",
|
|
142
|
-
left: `${marker.x -
|
|
143
|
-
top: `${marker.y -
|
|
144
|
-
width: `${
|
|
145
|
-
height: `${
|
|
142
|
+
left: `${marker.x - chunkKPZWYF44_cjs.COMMENT_MARKER_SIZE / 2}px`,
|
|
143
|
+
top: `${marker.y - chunkKPZWYF44_cjs.COMMENT_MARKER_SIZE / 2}px`,
|
|
144
|
+
width: `${chunkKPZWYF44_cjs.COMMENT_MARKER_SIZE}px`,
|
|
145
|
+
height: `${chunkKPZWYF44_cjs.COMMENT_MARKER_SIZE}px`,
|
|
146
146
|
display: "flex",
|
|
147
147
|
alignItems: "center",
|
|
148
148
|
justifyContent: "center",
|
|
@@ -210,7 +210,7 @@ function merge3dStyle(base, computed) {
|
|
|
210
210
|
}
|
|
211
211
|
function getShapeFillStrokeStyle(el, animatesFill, animatesStroke) {
|
|
212
212
|
if (el.type === "group") {
|
|
213
|
-
const fx2 =
|
|
213
|
+
const fx2 = chunkKPZWYF44_cjs.getComputedEffectStyle(el);
|
|
214
214
|
const groupStyle = {};
|
|
215
215
|
if (fx2.filter) {
|
|
216
216
|
groupStyle.filter = fx2.filter;
|
|
@@ -232,10 +232,10 @@ function getShapeFillStrokeStyle(el, animatesFill, animatesStroke) {
|
|
|
232
232
|
style[key] = value;
|
|
233
233
|
}
|
|
234
234
|
}
|
|
235
|
-
const stroke =
|
|
235
|
+
const stroke = chunkKPZWYF44_cjs.getComputedStrokeStyle(el);
|
|
236
236
|
if (stroke.borderWidth > 0) {
|
|
237
237
|
if (animatesStroke) {
|
|
238
|
-
style["borderWidth"] =
|
|
238
|
+
style["borderWidth"] = chunkKPZWYF44_cjs.px(stroke.borderWidth);
|
|
239
239
|
style["borderStyle"] = stroke.borderStyle ?? "solid";
|
|
240
240
|
} else {
|
|
241
241
|
style["border"] = stroke.border ?? "";
|
|
@@ -251,7 +251,7 @@ function getShapeFillStrokeStyle(el, animatesFill, animatesStroke) {
|
|
|
251
251
|
style["strokeMiterlimit"] = stroke.strokeMiterlimit;
|
|
252
252
|
}
|
|
253
253
|
}
|
|
254
|
-
const fx =
|
|
254
|
+
const fx = chunkKPZWYF44_cjs.getComputedEffectStyle(el);
|
|
255
255
|
if (fx.boxShadow) {
|
|
256
256
|
style["boxShadow"] = fx.boxShadow;
|
|
257
257
|
}
|
|
@@ -268,11 +268,11 @@ function getShapeFillStrokeStyle(el, animatesFill, animatesStroke) {
|
|
|
268
268
|
if (fx.overflowVisible) {
|
|
269
269
|
style["overflow"] = "visible";
|
|
270
270
|
}
|
|
271
|
-
merge3dStyle(style,
|
|
272
|
-
if (
|
|
271
|
+
merge3dStyle(style, chunkKPZWYF44_cjs.getComputed3dStyle(el));
|
|
272
|
+
if (chunkKPZWYF44_cjs.isHollowShapeElement(el)) {
|
|
273
273
|
style["pointerEvents"] = "none";
|
|
274
274
|
}
|
|
275
|
-
const geometry =
|
|
275
|
+
const geometry = chunkKPZWYF44_cjs.resolveShapeGeometry(el);
|
|
276
276
|
switch (geometry.kind) {
|
|
277
277
|
case "bare":
|
|
278
278
|
style["backgroundColor"] = "transparent";
|
|
@@ -292,7 +292,7 @@ function getShapeFillStrokeStyle(el, animatesFill, animatesStroke) {
|
|
|
292
292
|
case "lineEdge":
|
|
293
293
|
style["backgroundColor"] = "transparent";
|
|
294
294
|
style["border"] = "none";
|
|
295
|
-
style["borderTop"] = `${
|
|
295
|
+
style["borderTop"] = `${chunkKPZWYF44_cjs.px(geometry.strokeWidth)} ${chunkAIL3BNZS_cjs.getCssBorderDashStyle(el.shapeStyle?.strokeDash)} ${el.shapeStyle?.strokeColor ?? chunkAIL3BNZS_cjs.DEFAULT_STROKE_COLOR}`;
|
|
296
296
|
return style;
|
|
297
297
|
default:
|
|
298
298
|
return style;
|
|
@@ -302,12 +302,12 @@ function getTextBlockStyle(el) {
|
|
|
302
302
|
if (!pptx.hasTextProperties(el)) {
|
|
303
303
|
return {};
|
|
304
304
|
}
|
|
305
|
-
const base =
|
|
305
|
+
const base = chunkKPZWYF44_cjs.buildTextBlockStyle(el, {
|
|
306
306
|
fallbackColor: chunkAIL3BNZS_cjs.DEFAULT_TEXT_COLOR,
|
|
307
307
|
bodyLayout: true,
|
|
308
308
|
pxLengths: true
|
|
309
309
|
});
|
|
310
|
-
const scene3d =
|
|
310
|
+
const scene3d = chunkKPZWYF44_cjs.buildTextBody3DSceneStyle(el.textStyle, { width: el.width, height: el.height });
|
|
311
311
|
if (!scene3d) {
|
|
312
312
|
return base;
|
|
313
313
|
}
|
|
@@ -410,7 +410,7 @@ function renderSlideStage(options) {
|
|
|
410
410
|
"--pptx-slide-w": `${canvasSize.width}px`,
|
|
411
411
|
"--pptx-slide-h": `${canvasSize.height}px`,
|
|
412
412
|
"--pptxv-grid-size": `${options.gridSpacingPx ?? 10}px`,
|
|
413
|
-
...
|
|
413
|
+
...chunkKPZWYF44_cjs.getSlideBackgroundStyle(slide, { widthPx: canvasSize.width, heightPx: canvasSize.height })
|
|
414
414
|
});
|
|
415
415
|
if (interactive || options.reading) {
|
|
416
416
|
stage.setAttribute("role", "region");
|
|
@@ -451,19 +451,19 @@ function renderSlideStage(options) {
|
|
|
451
451
|
selectedElementIds: options.selectedElementIds,
|
|
452
452
|
registry,
|
|
453
453
|
renderElement(element, zIndex) {
|
|
454
|
-
if (!
|
|
454
|
+
if (!chunkKPZWYF44_cjs.isElementRendered(element)) {
|
|
455
455
|
return null;
|
|
456
456
|
}
|
|
457
457
|
const node = registry.resolve(element.type)(element, zIndex, context);
|
|
458
458
|
if (node && interactive && "setAttribute" in node) {
|
|
459
|
-
const templateLocked =
|
|
459
|
+
const templateLocked = chunkKPZWYF44_cjs.isTemplateElementId(element.id) && !options.templateEditing;
|
|
460
460
|
if (templateLocked) {
|
|
461
461
|
node.style.pointerEvents = "none";
|
|
462
462
|
}
|
|
463
463
|
node.setAttribute("data-pptx-element", "true");
|
|
464
464
|
}
|
|
465
|
-
if (node && element.type !== "text" && element.type !== "shape" && element.type !== "connector" &&
|
|
466
|
-
const hitTargetStyle =
|
|
465
|
+
if (node && element.type !== "text" && element.type !== "shape" && element.type !== "connector" && chunkKPZWYF44_cjs.shouldRenderHitTarget(interactive, options.presenting ?? false)) {
|
|
466
|
+
const hitTargetStyle = chunkKPZWYF44_cjs.elementHitTargetStyle(element);
|
|
467
467
|
if (hitTargetStyle) {
|
|
468
468
|
const hitTarget = createEl(doc, "div", void 0, hitTargetStyle);
|
|
469
469
|
hitTarget.setAttribute("aria-hidden", "true");
|
|
@@ -482,20 +482,20 @@ function renderSlideStage(options) {
|
|
|
482
482
|
}
|
|
483
483
|
});
|
|
484
484
|
if (interactive || options.reading) {
|
|
485
|
-
|
|
485
|
+
chunkKPZWYF44_cjs.applyRenderedElementAccessibility(stage, slide.elements, {
|
|
486
486
|
presenting: options.presenting ?? false
|
|
487
487
|
});
|
|
488
488
|
}
|
|
489
489
|
if (interactive) {
|
|
490
|
-
|
|
490
|
+
chunkKPZWYF44_cjs.applyElementActionAffordances(
|
|
491
491
|
stage,
|
|
492
492
|
slide.elements.filter(
|
|
493
|
-
(element) => options.templateEditing || !
|
|
493
|
+
(element) => options.templateEditing || !chunkKPZWYF44_cjs.isTemplateElementId(element.id)
|
|
494
494
|
),
|
|
495
495
|
{
|
|
496
496
|
canInteract: true,
|
|
497
497
|
presenting: options.presenting ?? false,
|
|
498
|
-
labels:
|
|
498
|
+
labels: chunkKPZWYF44_cjs.actionAffordanceLabels((key) => t(key))
|
|
499
499
|
}
|
|
500
500
|
);
|
|
501
501
|
}
|
|
@@ -551,7 +551,7 @@ function createChartTitleEditor(container, onCommit) {
|
|
|
551
551
|
|
|
552
552
|
// src/pptx/dom/elements/chart-editable.ts
|
|
553
553
|
function attachChartEditing(container, element, context, repaint) {
|
|
554
|
-
if (element.type !== "chart" || !context.interactive || !context.onChartPointChange || !
|
|
554
|
+
if (element.type !== "chart" || !context.interactive || !context.onChartPointChange || !chunkKPZWYF44_cjs.canDrillDown(element)) {
|
|
555
555
|
return;
|
|
556
556
|
}
|
|
557
557
|
const chart = element;
|
|
@@ -591,7 +591,7 @@ function attachChartEditing(container, element, context, repaint) {
|
|
|
591
591
|
if (!rect) {
|
|
592
592
|
return;
|
|
593
593
|
}
|
|
594
|
-
const step2 =
|
|
594
|
+
const step2 = chunkKPZWYF44_cjs.advanceChartMarkDrag(activeMark, event.clientX, event.clientY, rect);
|
|
595
595
|
if (!step2) {
|
|
596
596
|
return;
|
|
597
597
|
}
|
|
@@ -681,7 +681,7 @@ function attachChartEditing(container, element, context, repaint) {
|
|
|
681
681
|
seriesIndex: part.seriesIndex,
|
|
682
682
|
pointIndex: part.pointIndex
|
|
683
683
|
});
|
|
684
|
-
const startedMark =
|
|
684
|
+
const startedMark = chunkKPZWYF44_cjs.beginChartMarkDrag({
|
|
685
685
|
part,
|
|
686
686
|
geometry: markGeometry,
|
|
687
687
|
chartData: chart.chartData,
|
|
@@ -773,7 +773,7 @@ function mountThreeViewInto(doc, wrapper, options) {
|
|
|
773
773
|
return view;
|
|
774
774
|
}
|
|
775
775
|
function isChart3DEditable(element, context) {
|
|
776
|
-
return element.type === "chart" && Boolean(context.interactive) && Boolean(context.onChartPointChange) && Boolean(context.selectedElementIds?.has(element.id)) &&
|
|
776
|
+
return element.type === "chart" && Boolean(context.interactive) && Boolean(context.onChartPointChange) && Boolean(context.selectedElementIds?.has(element.id)) && chunkKPZWYF44_cjs.canDrillDown(element);
|
|
777
777
|
}
|
|
778
778
|
function selectedChartPartOf(element, context) {
|
|
779
779
|
return context.chartPartSelection?.elementId === element.id ? context.chartPartSelection.part : null;
|
|
@@ -815,13 +815,13 @@ function wireChartThreeViewEvents(view, element, context, badgeHost) {
|
|
|
815
815
|
const listeners = new AbortController();
|
|
816
816
|
chartViewListeners.set(view, listeners);
|
|
817
817
|
view.addEventListener(
|
|
818
|
-
|
|
819
|
-
(event) =>
|
|
818
|
+
chunkKPZWYF44_cjs.THREE_VIEW_EVENTS.select,
|
|
819
|
+
(event) => chunkKPZWYF44_cjs.applyChart3DSelect(bridge, event.detail.part),
|
|
820
820
|
{ signal: listeners.signal }
|
|
821
821
|
);
|
|
822
822
|
view.addEventListener(
|
|
823
|
-
|
|
824
|
-
(event) =>
|
|
823
|
+
chunkKPZWYF44_cjs.THREE_VIEW_EVENTS.drag,
|
|
824
|
+
(event) => chunkKPZWYF44_cjs.applyChart3DDrag(bridge, event.detail),
|
|
825
825
|
{ signal: listeners.signal }
|
|
826
826
|
);
|
|
827
827
|
}
|
|
@@ -835,7 +835,7 @@ function applyThreeViewTextStyle(el, style) {
|
|
|
835
835
|
// src/pptx/dom/elements/chart.ts
|
|
836
836
|
var renderChartElement = (element, zIndex, context) => {
|
|
837
837
|
const wrapper = renderChartSvgElement(element, zIndex, context);
|
|
838
|
-
const spec = wrapper ?
|
|
838
|
+
const spec = wrapper ? chunkKPZWYF44_cjs.resolveChartThreeViewSpec(element, rendering3DFlagsOf(context)) : null;
|
|
839
839
|
if (!wrapper || !spec) {
|
|
840
840
|
return wrapper;
|
|
841
841
|
}
|
|
@@ -857,11 +857,11 @@ var renderChartSvgElement = (element, zIndex, context) => {
|
|
|
857
857
|
doc,
|
|
858
858
|
"div",
|
|
859
859
|
"pptxv-element pptxv-chart",
|
|
860
|
-
|
|
860
|
+
chunkKPZWYF44_cjs.getContainerStyle(element, zIndex)
|
|
861
861
|
);
|
|
862
862
|
container.dataset.elementId = element.id;
|
|
863
863
|
const animationState = context.presentationStates?.get(element.id);
|
|
864
|
-
const chartData = element.chartData ?
|
|
864
|
+
const chartData = element.chartData ? chunkKPZWYF44_cjs.resolveRevealedChartData(element.chartData, animationState) : element.chartData;
|
|
865
865
|
if (!chartData || chartData.series.length === 0) {
|
|
866
866
|
container.appendChild(renderChartPlaceholder(doc, chartData?.chartType ?? "bar", context.t));
|
|
867
867
|
return container;
|
|
@@ -912,7 +912,7 @@ function renderChartPlaceholder(doc, chartType, t) {
|
|
|
912
912
|
border: "1px dashed #cbd5e1",
|
|
913
913
|
boxSizing: "border-box"
|
|
914
914
|
});
|
|
915
|
-
placeholder.textContent =
|
|
915
|
+
placeholder.textContent = chunkKPZWYF44_cjs.chartPlaceholderLabel(chartType, (key, params) => t(key, params));
|
|
916
916
|
return placeholder;
|
|
917
917
|
}
|
|
918
918
|
|
|
@@ -976,7 +976,7 @@ function createRunBaseNode(doc, run) {
|
|
|
976
976
|
verticalAlign: "middle",
|
|
977
977
|
fontFamily: "'Cambria Math', 'STIX Two Math', serif"
|
|
978
978
|
});
|
|
979
|
-
math.innerHTML =
|
|
979
|
+
math.innerHTML = chunkKPZWYF44_cjs.runEquationMathMl(run.equation);
|
|
980
980
|
host.appendChild(math);
|
|
981
981
|
if (run.equation.number) {
|
|
982
982
|
const number = createEl(doc, "span", "pptxv-equation-number", {
|
|
@@ -1088,7 +1088,7 @@ function renderTextBlock(doc, paragraphs, textStyle, build) {
|
|
|
1088
1088
|
bullet.textContent = para.bulletMarker;
|
|
1089
1089
|
p.appendChild(bullet);
|
|
1090
1090
|
}
|
|
1091
|
-
const spec = build ?
|
|
1091
|
+
const spec = build ? chunkKPZWYF44_cjs.buildTextBuildSpec(
|
|
1092
1092
|
build.elementId,
|
|
1093
1093
|
paragraphs.indexOf(para),
|
|
1094
1094
|
para.runs.filter((run) => run.text !== NEWLINE_RUN).map((run) => ({ text: run.text, style: run.style })),
|
|
@@ -1097,7 +1097,7 @@ function renderTextBlock(doc, paragraphs, textStyle, build) {
|
|
|
1097
1097
|
if (spec && spec.granularity !== "paragraph") {
|
|
1098
1098
|
for (const span of spec.spans ?? []) {
|
|
1099
1099
|
const node = createEl(doc, "span");
|
|
1100
|
-
applyStyleMap(node, { ...span.style ?? {}, ...
|
|
1100
|
+
applyStyleMap(node, { ...span.style ?? {}, ...chunkKPZWYF44_cjs.textBuildSpanStyle(span) });
|
|
1101
1101
|
if (span.animId) {
|
|
1102
1102
|
node.setAttribute("data-anim-id", span.animId);
|
|
1103
1103
|
}
|
|
@@ -1110,7 +1110,7 @@ function renderTextBlock(doc, paragraphs, textStyle, build) {
|
|
|
1110
1110
|
let runHost = p;
|
|
1111
1111
|
if (spec) {
|
|
1112
1112
|
const wrapper = createEl(doc, "span");
|
|
1113
|
-
applyStyleMap(wrapper,
|
|
1113
|
+
applyStyleMap(wrapper, chunkKPZWYF44_cjs.textBuildSpanStyle(spec));
|
|
1114
1114
|
if (spec.animId) {
|
|
1115
1115
|
wrapper.setAttribute("data-anim-id", spec.animId);
|
|
1116
1116
|
}
|
|
@@ -1166,7 +1166,7 @@ var renderConnectorElement = (element, zIndex, context) => {
|
|
|
1166
1166
|
if (element.hidden) {
|
|
1167
1167
|
wrapper.style.display = "none";
|
|
1168
1168
|
}
|
|
1169
|
-
const lineGlow =
|
|
1169
|
+
const lineGlow = chunkKPZWYF44_cjs.getLineGlowFilterCss(ss);
|
|
1170
1170
|
if (lineGlow) {
|
|
1171
1171
|
wrapper.style.filter = lineGlow;
|
|
1172
1172
|
}
|
|
@@ -1174,7 +1174,7 @@ var renderConnectorElement = (element, zIndex, context) => {
|
|
|
1174
1174
|
svg.setAttribute("style", "overflow:visible;display:block");
|
|
1175
1175
|
const seed = element.id.replace(/[^a-zA-Z0-9_-]/gu, "_");
|
|
1176
1176
|
const defs = createSvgEl(doc, "defs");
|
|
1177
|
-
const lineShadow =
|
|
1177
|
+
const lineShadow = chunkKPZWYF44_cjs.getLineShadowParams(ss);
|
|
1178
1178
|
const shadowId = lineShadow ? `${seed}-line-shadow` : void 0;
|
|
1179
1179
|
if (lineShadow && shadowId) {
|
|
1180
1180
|
const filter = createSvgEl(doc, "filter", {
|
|
@@ -1195,8 +1195,8 @@ var renderConnectorElement = (element, zIndex, context) => {
|
|
|
1195
1195
|
);
|
|
1196
1196
|
defs.appendChild(filter);
|
|
1197
1197
|
}
|
|
1198
|
-
const startArrow =
|
|
1199
|
-
const endArrow =
|
|
1198
|
+
const startArrow = chunkKPZWYF44_cjs.normalizeArrow(ss?.connectorStartArrow);
|
|
1199
|
+
const endArrow = chunkKPZWYF44_cjs.normalizeArrow(ss?.connectorEndArrow);
|
|
1200
1200
|
const startMarkerId = startArrow ? `${seed}-start` : void 0;
|
|
1201
1201
|
const endMarkerId = endArrow ? `${seed}-end` : void 0;
|
|
1202
1202
|
if (startArrow && startMarkerId) {
|
|
@@ -1219,10 +1219,10 @@ var renderConnectorElement = (element, zIndex, context) => {
|
|
|
1219
1219
|
svg.appendChild(defs);
|
|
1220
1220
|
}
|
|
1221
1221
|
const compound = ss?.compoundLine;
|
|
1222
|
-
const offsets =
|
|
1223
|
-
const widths =
|
|
1222
|
+
const offsets = chunkKPZWYF44_cjs.getCompoundLineOffsets(compound, strokeWidth);
|
|
1223
|
+
const widths = chunkKPZWYF44_cjs.getCompoundLineWidths(compound, strokeWidth);
|
|
1224
1224
|
const shapeType = pptx.hasShapeProperties(element) ? element.shapeType : void 0;
|
|
1225
|
-
const usePath =
|
|
1225
|
+
const usePath = chunkKPZWYF44_cjs.connectorNeedsPath(shapeType) && pptx.hasShapeProperties(element);
|
|
1226
1226
|
const pathData = usePath ? pptx.getConnectorPathGeometry(element).pathData : void 0;
|
|
1227
1227
|
const x1 = element.flipHorizontal ? w : 0;
|
|
1228
1228
|
const y1 = element.flipVertical ? h : 0;
|
|
@@ -1233,7 +1233,7 @@ var renderConnectorElement = (element, zIndex, context) => {
|
|
|
1233
1233
|
d: pathData ?? `M${x1},${y1} L${x2},${y2}`,
|
|
1234
1234
|
fill: "none",
|
|
1235
1235
|
stroke: "transparent",
|
|
1236
|
-
"stroke-width":
|
|
1236
|
+
"stroke-width": chunkKPZWYF44_cjs.connectorHitStrokeWidth(strokeWidth),
|
|
1237
1237
|
"stroke-linecap": "round",
|
|
1238
1238
|
"stroke-linejoin": "round"
|
|
1239
1239
|
});
|
|
@@ -1281,7 +1281,7 @@ function appendConnectorLabel(wrapper, element, context) {
|
|
|
1281
1281
|
if (!pptx.hasTextProperties(element)) {
|
|
1282
1282
|
return;
|
|
1283
1283
|
}
|
|
1284
|
-
const paragraphs =
|
|
1284
|
+
const paragraphs = chunkKPZWYF44_cjs.buildParagraphs(element, context.fieldContext);
|
|
1285
1285
|
if (!paragraphs.some((paragraph) => paragraph.runs.length > 0)) {
|
|
1286
1286
|
return;
|
|
1287
1287
|
}
|
|
@@ -1301,7 +1301,7 @@ function appendConnectorLabel(wrapper, element, context) {
|
|
|
1301
1301
|
}
|
|
1302
1302
|
function buildMarker(context, id, arrow, strokeColor, size) {
|
|
1303
1303
|
const doc = context.document;
|
|
1304
|
-
const shape =
|
|
1304
|
+
const shape = chunkKPZWYF44_cjs.markerPath(arrow, size.width, size.length);
|
|
1305
1305
|
const marker = createSvgEl(doc, "marker", {
|
|
1306
1306
|
id,
|
|
1307
1307
|
viewBox: "0 0 10 10",
|
|
@@ -1385,7 +1385,7 @@ var renderContentPartElement = (element, zIndex, context) => {
|
|
|
1385
1385
|
doc,
|
|
1386
1386
|
"div",
|
|
1387
1387
|
"pptxv-element pptxv-contentpart",
|
|
1388
|
-
|
|
1388
|
+
chunkKPZWYF44_cjs.getContainerStyle(element, zIndex)
|
|
1389
1389
|
);
|
|
1390
1390
|
el.dataset.elementId = element.id;
|
|
1391
1391
|
const strokes = element.inkStrokes;
|
|
@@ -1418,7 +1418,7 @@ var renderContentPartElement = (element, zIndex, context) => {
|
|
|
1418
1418
|
return el;
|
|
1419
1419
|
};
|
|
1420
1420
|
function renderEquations(element, context) {
|
|
1421
|
-
if (!pptx.hasTextProperties(element) || !
|
|
1421
|
+
if (!pptx.hasTextProperties(element) || !chunkKPZWYF44_cjs.isEquationOnlyText(element.textSegments)) {
|
|
1422
1422
|
return null;
|
|
1423
1423
|
}
|
|
1424
1424
|
const equations = (element.textSegments ?? []).filter((segment) => segment.equationXml);
|
|
@@ -1432,7 +1432,7 @@ function renderEquations(element, context) {
|
|
|
1432
1432
|
fontFamily: "'Cambria Math', 'STIX Two Math', serif"
|
|
1433
1433
|
});
|
|
1434
1434
|
for (const segment of equations) {
|
|
1435
|
-
const mathml =
|
|
1435
|
+
const mathml = chunkKPZWYF44_cjs.convertOmmlToMathMl(segment.equationXml);
|
|
1436
1436
|
if (!mathml) {
|
|
1437
1437
|
continue;
|
|
1438
1438
|
}
|
|
@@ -1446,7 +1446,7 @@ function renderEquations(element, context) {
|
|
|
1446
1446
|
flex: 1,
|
|
1447
1447
|
textAlign: "center"
|
|
1448
1448
|
});
|
|
1449
|
-
math.innerHTML =
|
|
1449
|
+
math.innerHTML = chunkKPZWYF44_cjs.sanitizeMathMl(mathml);
|
|
1450
1450
|
row.appendChild(math);
|
|
1451
1451
|
if (segment.equationNumber) {
|
|
1452
1452
|
const number = createEl(context.document, "span", "pptxv-equation-number", {
|
|
@@ -1464,7 +1464,7 @@ function renderExtrusionOverlay(doc, element) {
|
|
|
1464
1464
|
return null;
|
|
1465
1465
|
}
|
|
1466
1466
|
const fill = chunkAIL3BNZS_cjs.getComputedFillStyle(element)?.backgroundColor;
|
|
1467
|
-
const data =
|
|
1467
|
+
const data = chunkKPZWYF44_cjs.build3DExtrusionData(
|
|
1468
1468
|
element.shapeStyle?.shape3d,
|
|
1469
1469
|
element.shapeStyle?.scene3d,
|
|
1470
1470
|
fill,
|
|
@@ -1526,7 +1526,7 @@ function appendOwnReflection(doc, host, element, mediaDataUrls, suppressOwnRefle
|
|
|
1526
1526
|
if (suppressOwnReflection) {
|
|
1527
1527
|
return;
|
|
1528
1528
|
}
|
|
1529
|
-
const wrapperStyle =
|
|
1529
|
+
const wrapperStyle = chunkKPZWYF44_cjs.getComputedEffectStyle(element).reflection;
|
|
1530
1530
|
if (!wrapperStyle) {
|
|
1531
1531
|
return;
|
|
1532
1532
|
}
|
|
@@ -1550,9 +1550,9 @@ function buildReflectionMirrorContent(doc, element, mediaDataUrls, parentGroupFi
|
|
|
1550
1550
|
if (groupFilterDefs) {
|
|
1551
1551
|
wrap.appendChild(groupFilterDefs);
|
|
1552
1552
|
}
|
|
1553
|
-
const childParentFill =
|
|
1553
|
+
const childParentFill = chunkKPZWYF44_cjs.getGroupChildParentFill(element, parentGroupFill);
|
|
1554
1554
|
for (const child of element.children ?? []) {
|
|
1555
|
-
const childWrap = createEl(doc, "div", void 0,
|
|
1555
|
+
const childWrap = createEl(doc, "div", void 0, chunkKPZWYF44_cjs.getContainerStyle(child, 0));
|
|
1556
1556
|
childWrap.appendChild(
|
|
1557
1557
|
buildReflectionMirrorContent(doc, child, mediaDataUrls, childParentFill)
|
|
1558
1558
|
);
|
|
@@ -1566,7 +1566,7 @@ function buildReflectionMirrorContent(doc, element, mediaDataUrls, parentGroupFi
|
|
|
1566
1566
|
height: "100%",
|
|
1567
1567
|
...getShapeFillStrokeStyle(element)
|
|
1568
1568
|
});
|
|
1569
|
-
const inheritedFill =
|
|
1569
|
+
const inheritedFill = chunkKPZWYF44_cjs.resolveGroupChildFill(element, parentGroupFill);
|
|
1570
1570
|
if (inheritedFill) {
|
|
1571
1571
|
applyInheritedFill(box, inheritedFill);
|
|
1572
1572
|
}
|
|
@@ -1587,12 +1587,12 @@ function buildReflectionMirrorContent(doc, element, mediaDataUrls, parentGroupFi
|
|
|
1587
1587
|
box.appendChild(gradientOutline);
|
|
1588
1588
|
}
|
|
1589
1589
|
if (pptx.isImageLikeElement(element)) {
|
|
1590
|
-
const src =
|
|
1590
|
+
const src = chunkKPZWYF44_cjs.getImageSrc(element, new Map(mediaDataUrls));
|
|
1591
1591
|
if (src) {
|
|
1592
1592
|
const img = createEl(doc, "img", void 0, {
|
|
1593
1593
|
width: "100%",
|
|
1594
1594
|
height: "100%",
|
|
1595
|
-
...
|
|
1595
|
+
...chunkKPZWYF44_cjs.getImageFitStyle(element)
|
|
1596
1596
|
});
|
|
1597
1597
|
img.setAttribute("src", src);
|
|
1598
1598
|
img.setAttribute("alt", "");
|
|
@@ -1602,7 +1602,7 @@ function buildReflectionMirrorContent(doc, element, mediaDataUrls, parentGroupFi
|
|
|
1602
1602
|
appendOwnReflection(doc, box, element, mediaDataUrls, suppressOwnReflection);
|
|
1603
1603
|
return box;
|
|
1604
1604
|
}
|
|
1605
|
-
const paragraphs =
|
|
1605
|
+
const paragraphs = chunkKPZWYF44_cjs.buildParagraphs(element);
|
|
1606
1606
|
const hasText = paragraphs.some((p) => p.runs.length > 0 || p.bulletMarker !== void 0);
|
|
1607
1607
|
if (hasText) {
|
|
1608
1608
|
box.appendChild(renderTextBlock(doc, paragraphs, getTextBlockStyle(element)));
|
|
@@ -1614,20 +1614,20 @@ function buildReflectionMirrorContent(doc, element, mediaDataUrls, parentGroupFi
|
|
|
1614
1614
|
// src/pptx/dom/elements/shape-filter-defs.ts
|
|
1615
1615
|
var OUTLINE_SVG_STYLE = "position:absolute;inset:0;width:100%;height:100%;min-width:1px;min-height:1px;overflow:visible;pointer-events:none";
|
|
1616
1616
|
function renderShapeFilterDefs(doc, element) {
|
|
1617
|
-
const style =
|
|
1617
|
+
const style = chunkKPZWYF44_cjs.getEffectStyleSource(element);
|
|
1618
1618
|
if (!style) {
|
|
1619
1619
|
return null;
|
|
1620
1620
|
}
|
|
1621
1621
|
const markups = [];
|
|
1622
|
-
const duotone =
|
|
1622
|
+
const duotone = chunkKPZWYF44_cjs.getDuotoneSvgFilter(style, element.id);
|
|
1623
1623
|
if (duotone) {
|
|
1624
1624
|
markups.push(duotone.filterMarkup);
|
|
1625
1625
|
}
|
|
1626
|
-
const softEdge =
|
|
1626
|
+
const softEdge = chunkKPZWYF44_cjs.getSoftEdgeSvgFilter(style, element.id);
|
|
1627
1627
|
if (softEdge) {
|
|
1628
1628
|
markups.push(softEdge.filterMarkup);
|
|
1629
1629
|
}
|
|
1630
|
-
const bevelLighting =
|
|
1630
|
+
const bevelLighting = chunkKPZWYF44_cjs.getBevelLightingSvgFilter(element);
|
|
1631
1631
|
if (bevelLighting) {
|
|
1632
1632
|
markups.push(bevelLighting.filterMarkup);
|
|
1633
1633
|
}
|
|
@@ -1645,7 +1645,7 @@ function renderShapeFillOverlay(doc, element) {
|
|
|
1645
1645
|
if (!pptx.hasShapeProperties(element)) {
|
|
1646
1646
|
return null;
|
|
1647
1647
|
}
|
|
1648
|
-
const overlay =
|
|
1648
|
+
const overlay = chunkKPZWYF44_cjs.getComputedEffectStyle(element).fillOverlay;
|
|
1649
1649
|
if (!overlay) {
|
|
1650
1650
|
return null;
|
|
1651
1651
|
}
|
|
@@ -1660,7 +1660,7 @@ function renderShapeFillOverlay(doc, element) {
|
|
|
1660
1660
|
return layer;
|
|
1661
1661
|
}
|
|
1662
1662
|
function renderReflectionOverlay(doc, element, mediaDataUrls) {
|
|
1663
|
-
const wrapperStyle =
|
|
1663
|
+
const wrapperStyle = chunkKPZWYF44_cjs.getComputedEffectStyle(element).reflection;
|
|
1664
1664
|
if (!wrapperStyle) {
|
|
1665
1665
|
return null;
|
|
1666
1666
|
}
|
|
@@ -1670,13 +1670,13 @@ function renderReflectionOverlay(doc, element, mediaDataUrls) {
|
|
|
1670
1670
|
return layer;
|
|
1671
1671
|
}
|
|
1672
1672
|
function renderHollowHitOutline(doc, element) {
|
|
1673
|
-
const hit =
|
|
1673
|
+
const hit = chunkKPZWYF44_cjs.buildHollowHitOutline(element);
|
|
1674
1674
|
if (!hit) {
|
|
1675
1675
|
return null;
|
|
1676
1676
|
}
|
|
1677
1677
|
const svg = createSvgEl(doc, "svg", {
|
|
1678
1678
|
"aria-hidden": "true",
|
|
1679
|
-
viewBox:
|
|
1679
|
+
viewBox: chunkKPZWYF44_cjs.strokeOutlineViewBox(element),
|
|
1680
1680
|
preserveAspectRatio: "none"
|
|
1681
1681
|
});
|
|
1682
1682
|
svg.setAttribute("style", OUTLINE_SVG_STYLE);
|
|
@@ -1709,20 +1709,20 @@ function renderShapeSubpathFillOverlay(doc, element) {
|
|
|
1709
1709
|
return svg;
|
|
1710
1710
|
}
|
|
1711
1711
|
function renderStrokeOutline(doc, element) {
|
|
1712
|
-
const outline =
|
|
1712
|
+
const outline = chunkKPZWYF44_cjs.buildStrokeOutline(element);
|
|
1713
1713
|
if (!outline) {
|
|
1714
1714
|
return null;
|
|
1715
1715
|
}
|
|
1716
1716
|
const svg = createSvgEl(doc, "svg", {
|
|
1717
1717
|
class: "pptx-vanilla-gradient-outline",
|
|
1718
1718
|
"aria-hidden": "true",
|
|
1719
|
-
viewBox:
|
|
1719
|
+
viewBox: chunkKPZWYF44_cjs.strokeOutlineViewBox(element),
|
|
1720
1720
|
preserveAspectRatio: "none"
|
|
1721
1721
|
});
|
|
1722
1722
|
svg.setAttribute("style", OUTLINE_SVG_STYLE);
|
|
1723
1723
|
if (outline.paint) {
|
|
1724
1724
|
const defs = createSvgEl(doc, "defs");
|
|
1725
|
-
if (
|
|
1725
|
+
if (chunkKPZWYF44_cjs.isPatternPaint(outline.paint)) {
|
|
1726
1726
|
const pattern = createSvgEl(doc, "pattern", {
|
|
1727
1727
|
id: outline.paint.id,
|
|
1728
1728
|
width: outline.paint.width,
|
|
@@ -1737,7 +1737,7 @@ function renderStrokeOutline(doc, element) {
|
|
|
1737
1737
|
pattern.appendChild(image);
|
|
1738
1738
|
defs.appendChild(pattern);
|
|
1739
1739
|
} else {
|
|
1740
|
-
defs.innerHTML =
|
|
1740
|
+
defs.innerHTML = chunkKPZWYF44_cjs.svgGradientMarkup(outline.paint);
|
|
1741
1741
|
}
|
|
1742
1742
|
svg.appendChild(defs);
|
|
1743
1743
|
}
|
|
@@ -1787,14 +1787,14 @@ function indexRenderedNodes(root) {
|
|
|
1787
1787
|
return byId;
|
|
1788
1788
|
}
|
|
1789
1789
|
function paintInheritedFill(node, element, parentGroupFill) {
|
|
1790
|
-
const inherited =
|
|
1790
|
+
const inherited = chunkKPZWYF44_cjs.resolveGroupChildFill(element, parentGroupFill);
|
|
1791
1791
|
if (inherited) {
|
|
1792
1792
|
applyGroupChildFill(node, inherited);
|
|
1793
1793
|
}
|
|
1794
1794
|
if (element.type !== "group") {
|
|
1795
1795
|
return;
|
|
1796
1796
|
}
|
|
1797
|
-
const childFill =
|
|
1797
|
+
const childFill = chunkKPZWYF44_cjs.getGroupChildParentFill(element, parentGroupFill);
|
|
1798
1798
|
if (!childFill) {
|
|
1799
1799
|
return;
|
|
1800
1800
|
}
|
|
@@ -1808,7 +1808,7 @@ function paintInheritedFill(node, element, parentGroupFill) {
|
|
|
1808
1808
|
}
|
|
1809
1809
|
var renderGroupElement = (element, zIndex, context) => {
|
|
1810
1810
|
const el = createEl(context.document, "div", "pptxv-element pptxv-group", {
|
|
1811
|
-
...
|
|
1811
|
+
...chunkKPZWYF44_cjs.getContainerStyle(element, zIndex),
|
|
1812
1812
|
// A group paints no fill/outline of its own, but `p:grpSpPr/a:effectLst`
|
|
1813
1813
|
// DOES carry a shadow/glow/soft-edge for the group's own composite
|
|
1814
1814
|
// raster (see shared `getComputedEffectStyle`), expressed as `filter` /
|
|
@@ -1825,7 +1825,7 @@ var renderGroupElement = (element, zIndex, context) => {
|
|
|
1825
1825
|
el.appendChild(reflection);
|
|
1826
1826
|
}
|
|
1827
1827
|
if (element.type === "group" && element.children?.length) {
|
|
1828
|
-
const parentGroupFill =
|
|
1828
|
+
const parentGroupFill = chunkKPZWYF44_cjs.getGroupChildParentFill(element);
|
|
1829
1829
|
element.children.forEach((child, index) => {
|
|
1830
1830
|
const childEl = context.renderElement(child, index);
|
|
1831
1831
|
if (childEl) {
|
|
@@ -1840,12 +1840,12 @@ var renderGroupElement = (element, zIndex, context) => {
|
|
|
1840
1840
|
// src/pptx/dom/elements/image.ts
|
|
1841
1841
|
var renderImageElement = (element, zIndex, context) => {
|
|
1842
1842
|
const doc = context.document;
|
|
1843
|
-
const geometry = element.type === "image" || element.type === "picture" ?
|
|
1843
|
+
const geometry = element.type === "image" || element.type === "picture" ? chunkKPZWYF44_cjs.resolveShapeGeometry(element) : void 0;
|
|
1844
1844
|
const geometryClipPath = geometry?.kind === "clipPath" ? geometry.clipPath : void 0;
|
|
1845
|
-
const cropShapeClipPath = element.type === "image" || element.type === "picture" ?
|
|
1845
|
+
const cropShapeClipPath = element.type === "image" || element.type === "picture" ? chunkKPZWYF44_cjs.getCropShapeClipPath(element.cropShape, element.width, element.height) : void 0;
|
|
1846
1846
|
const el = createEl(doc, "div", "pptxv-element pptxv-image", {
|
|
1847
|
-
...
|
|
1848
|
-
overflow:
|
|
1847
|
+
...chunkKPZWYF44_cjs.getContainerStyle(element, zIndex),
|
|
1848
|
+
overflow: chunkKPZWYF44_cjs.getImageOverflow(element),
|
|
1849
1849
|
// The picture's own shape geometry (prstGeom / custGeom) clips the frame,
|
|
1850
1850
|
// not the `<img>` - a pixel-space clip on the img would be scaled and
|
|
1851
1851
|
// shifted by the crop transform.
|
|
@@ -1853,11 +1853,11 @@ var renderImageElement = (element, zIndex, context) => {
|
|
|
1853
1853
|
...geometryClipPath ? { clipPath: geometryClipPath } : cropShapeClipPath ? { clipPath: cropShapeClipPath } : {}
|
|
1854
1854
|
});
|
|
1855
1855
|
el.dataset.elementId = element.id;
|
|
1856
|
-
const src =
|
|
1856
|
+
const src = chunkKPZWYF44_cjs.getImageSrc(element, new Map(context.mediaDataUrls));
|
|
1857
1857
|
if (!src) {
|
|
1858
1858
|
return el;
|
|
1859
1859
|
}
|
|
1860
|
-
const fx =
|
|
1860
|
+
const fx = chunkKPZWYF44_cjs.getComputedImageStyle(element);
|
|
1861
1861
|
for (const f of fx.svgFilters) {
|
|
1862
1862
|
const svg = createSvgEl(doc, "svg", { width: 0, height: 0, "aria-hidden": "true" });
|
|
1863
1863
|
svg.setAttribute("style", "position:absolute;width:0;height:0;overflow:hidden");
|
|
@@ -1870,7 +1870,7 @@ var renderImageElement = (element, zIndex, context) => {
|
|
|
1870
1870
|
el.appendChild(svg);
|
|
1871
1871
|
}
|
|
1872
1872
|
const reflection = renderReflectionOverlay(doc, element, context.mediaDataUrls);
|
|
1873
|
-
const tiling =
|
|
1873
|
+
const tiling = chunkKPZWYF44_cjs.getImageTilingStyle(element, chunkKPZWYF44_cjs.getCachedNativeImageSize(src));
|
|
1874
1874
|
if (tiling) {
|
|
1875
1875
|
const tile = createEl(doc, "div", "pptxv-image-tile", tiling);
|
|
1876
1876
|
if (fx.filter) {
|
|
@@ -1879,10 +1879,10 @@ var renderImageElement = (element, zIndex, context) => {
|
|
|
1879
1879
|
if (fx.opacity !== void 0) {
|
|
1880
1880
|
tile.style.opacity = String(fx.opacity);
|
|
1881
1881
|
}
|
|
1882
|
-
if (!
|
|
1883
|
-
void
|
|
1882
|
+
if (!chunkKPZWYF44_cjs.getCachedNativeImageSize(src)) {
|
|
1883
|
+
void chunkKPZWYF44_cjs.probeNativeImageSize(src).then((size) => {
|
|
1884
1884
|
if (size) {
|
|
1885
|
-
applyStyleMap(tile,
|
|
1885
|
+
applyStyleMap(tile, chunkKPZWYF44_cjs.getImageTilingStyle(element, size) ?? {});
|
|
1886
1886
|
}
|
|
1887
1887
|
return void 0;
|
|
1888
1888
|
});
|
|
@@ -1893,8 +1893,8 @@ var renderImageElement = (element, zIndex, context) => {
|
|
|
1893
1893
|
}
|
|
1894
1894
|
return el;
|
|
1895
1895
|
}
|
|
1896
|
-
const fit =
|
|
1897
|
-
const fillCounterTransform =
|
|
1896
|
+
const fit = chunkKPZWYF44_cjs.getImageFitStyle(element);
|
|
1897
|
+
const fillCounterTransform = chunkKPZWYF44_cjs.getImageFillCounterTransform(element, Boolean(fit.transform));
|
|
1898
1898
|
const img = createEl(doc, "img", void 0, {
|
|
1899
1899
|
...fit,
|
|
1900
1900
|
display: "block",
|
|
@@ -1912,14 +1912,14 @@ var renderImageElement = (element, zIndex, context) => {
|
|
|
1912
1912
|
if (element.type === "image" || element.type === "picture") {
|
|
1913
1913
|
const clrChange = element.imageEffects?.clrChange;
|
|
1914
1914
|
if (clrChange) {
|
|
1915
|
-
void
|
|
1915
|
+
void chunkKPZWYF44_cjs.resolveColorChangedImageSource(src, clrChange).then((resolved) => {
|
|
1916
1916
|
if (img.src === src || img.getAttribute("src") === src) {
|
|
1917
1917
|
img.src = resolved;
|
|
1918
1918
|
}
|
|
1919
1919
|
return void 0;
|
|
1920
1920
|
});
|
|
1921
1921
|
}
|
|
1922
|
-
const wash =
|
|
1922
|
+
const wash = chunkKPZWYF44_cjs.getImageColorWashStyle(element.imageEffects?.colorWash);
|
|
1923
1923
|
if (wash) {
|
|
1924
1924
|
el.appendChild(
|
|
1925
1925
|
createEl(doc, "div", "pptxv-image-color-wash", {
|
|
@@ -1948,7 +1948,7 @@ var renderInkElement = (element, zIndex, context) => {
|
|
|
1948
1948
|
doc,
|
|
1949
1949
|
"div",
|
|
1950
1950
|
"pptxv-element pptxv-ink",
|
|
1951
|
-
|
|
1951
|
+
chunkKPZWYF44_cjs.getContainerStyle(element, zIndex)
|
|
1952
1952
|
);
|
|
1953
1953
|
wrapper.dataset.elementId = element.id;
|
|
1954
1954
|
const paths = element.inkPaths;
|
|
@@ -1969,7 +1969,7 @@ var renderInkElement = (element, zIndex, context) => {
|
|
|
1969
1969
|
keyframes.textContent = chunkNTXHQHCS_cjs.INK_REPLAY_KEYFRAMES;
|
|
1970
1970
|
svg.appendChild(keyframes);
|
|
1971
1971
|
}
|
|
1972
|
-
const views =
|
|
1972
|
+
const views = chunkKPZWYF44_cjs.buildInkGroupStrokes(element, { color: chunkAIL3BNZS_cjs.DEFAULT_STROKE_COLOR, width: 1 });
|
|
1973
1973
|
for (const [i, view] of views.entries()) {
|
|
1974
1974
|
svg.appendChild(buildStrokeSvg(doc, view, replayStyles[i]));
|
|
1975
1975
|
}
|
|
@@ -2023,12 +2023,12 @@ function wireMediaFullscreenOverlay(doc, container, mediaNode, element, context,
|
|
|
2023
2023
|
let stopButton = null;
|
|
2024
2024
|
const update = (playing) => {
|
|
2025
2025
|
const input = { fullScreen: element.fullScreen, presenting: context.presenting, playing };
|
|
2026
|
-
const active =
|
|
2026
|
+
const active = chunkKPZWYF44_cjs.isMediaFullscreenActive(input);
|
|
2027
2027
|
applyStyleMap(
|
|
2028
2028
|
container,
|
|
2029
|
-
active ?
|
|
2029
|
+
active ? chunkKPZWYF44_cjs.MEDIA_FULLSCREEN_OVERLAY_STYLE : mediaFullscreenResetStyle(baseStyle)
|
|
2030
2030
|
);
|
|
2031
|
-
if (
|
|
2031
|
+
if (chunkKPZWYF44_cjs.shouldShowMediaFullscreenStopButton(input)) {
|
|
2032
2032
|
if (!stopButton) {
|
|
2033
2033
|
stopButton = buildFullscreenStopButton(
|
|
2034
2034
|
doc,
|
|
@@ -2053,12 +2053,12 @@ function wireMediaFullscreenOverlay(doc, container, mediaNode, element, context,
|
|
|
2053
2053
|
|
|
2054
2054
|
// src/pptx/dom/elements/media.ts
|
|
2055
2055
|
function applyMediaPresentingState(el, presenting, playback) {
|
|
2056
|
-
|
|
2056
|
+
chunkKPZWYF44_cjs.applyMediaPlaybackAttributes(el, playback);
|
|
2057
2057
|
if (presenting) {
|
|
2058
|
-
|
|
2059
|
-
|
|
2058
|
+
chunkKPZWYF44_cjs.startMediaAutoplay(el, { trimStartMs: playback.trimStartMs });
|
|
2059
|
+
chunkKPZWYF44_cjs.scheduleMediaTrimAndFade(el, {
|
|
2060
2060
|
...playback,
|
|
2061
|
-
volume:
|
|
2061
|
+
volume: chunkKPZWYF44_cjs.mediaPlaybackAttributes(playback).volume
|
|
2062
2062
|
});
|
|
2063
2063
|
} else if (!el.paused) {
|
|
2064
2064
|
el.pause();
|
|
@@ -2068,18 +2068,18 @@ var renderMediaElement = (element, zIndex, context) => {
|
|
|
2068
2068
|
if (element.type !== "media") {
|
|
2069
2069
|
return null;
|
|
2070
2070
|
}
|
|
2071
|
-
const surface =
|
|
2071
|
+
const surface = chunkKPZWYF44_cjs.mediaSurfaceOf({
|
|
2072
2072
|
interactive: context.interactive === true || context.reading === true,
|
|
2073
2073
|
presenting: context.presenting
|
|
2074
2074
|
});
|
|
2075
|
-
const showTransport =
|
|
2075
|
+
const showTransport = chunkKPZWYF44_cjs.mediaTransportVisible({ ...surface, canvasTransport: true });
|
|
2076
2076
|
const doc = context.document;
|
|
2077
|
-
const baseStyle =
|
|
2077
|
+
const baseStyle = chunkKPZWYF44_cjs.getContainerStyle(element, zIndex);
|
|
2078
2078
|
const el = createEl(doc, "div", "pptxv-element pptxv-media", baseStyle);
|
|
2079
2079
|
el.dataset.elementId = element.id;
|
|
2080
2080
|
const mediaSrc = element.mediaData ?? (element.mediaPath ? context.mediaDataUrls.get(element.mediaPath) : void 0);
|
|
2081
|
-
const posterSrc =
|
|
2082
|
-
const onlineVideoEmbedUrl =
|
|
2081
|
+
const posterSrc = chunkKPZWYF44_cjs.getImageSrc(element, new Map(context.mediaDataUrls));
|
|
2082
|
+
const onlineVideoEmbedUrl = chunkKPZWYF44_cjs.getOnlineVideoEmbed(element)?.embedUrl;
|
|
2083
2083
|
if (onlineVideoEmbedUrl && element.mediaType === "video") {
|
|
2084
2084
|
const iframe = createEl(doc, "iframe", "pptxv-media-video pptxv-media-iframe", {
|
|
2085
2085
|
width: "100%",
|
|
@@ -2089,8 +2089,8 @@ var renderMediaElement = (element, zIndex, context) => {
|
|
|
2089
2089
|
});
|
|
2090
2090
|
iframe.src = onlineVideoEmbedUrl;
|
|
2091
2091
|
iframe.title = context.t("pptx.media.onlineVideoTitle");
|
|
2092
|
-
iframe.allow =
|
|
2093
|
-
iframe.sandbox.value =
|
|
2092
|
+
iframe.allow = chunkKPZWYF44_cjs.ONLINE_VIDEO_IFRAME_ALLOW;
|
|
2093
|
+
iframe.sandbox.value = chunkKPZWYF44_cjs.ONLINE_VIDEO_IFRAME_SANDBOX;
|
|
2094
2094
|
iframe.allowFullscreen = true;
|
|
2095
2095
|
el.appendChild(iframe);
|
|
2096
2096
|
return el;
|
|
@@ -2119,21 +2119,21 @@ var renderMediaElement = (element, zIndex, context) => {
|
|
|
2119
2119
|
audio.src = mediaSrc;
|
|
2120
2120
|
audio.controls = showTransport;
|
|
2121
2121
|
el.appendChild(audio);
|
|
2122
|
-
if (context.presenting &&
|
|
2122
|
+
if (context.presenting && chunkKPZWYF44_cjs.registerCrossSlideAudio(element, mediaSrc)) {
|
|
2123
2123
|
audio.muted = true;
|
|
2124
|
-
|
|
2124
|
+
chunkKPZWYF44_cjs.applyMediaPlaybackAttributes(audio, element);
|
|
2125
2125
|
return el;
|
|
2126
2126
|
}
|
|
2127
2127
|
applyMediaPresentingState(audio, context.presenting, element);
|
|
2128
2128
|
wireMediaFullscreenOverlay(doc, el, audio, element, context, baseStyle);
|
|
2129
2129
|
return el;
|
|
2130
2130
|
}
|
|
2131
|
-
const fallback =
|
|
2131
|
+
const fallback = chunkKPZWYF44_cjs.mediaFallbackVisual(surface, {
|
|
2132
2132
|
hasPoster: Boolean(posterSrc),
|
|
2133
2133
|
missing: element.mediaMissing === true
|
|
2134
2134
|
});
|
|
2135
|
-
const icon =
|
|
2136
|
-
const labelKey =
|
|
2135
|
+
const icon = chunkKPZWYF44_cjs.mediaFallbackIcon(fallback, element.mediaType);
|
|
2136
|
+
const labelKey = chunkKPZWYF44_cjs.mediaFallbackLabelKey(fallback, element.mediaType);
|
|
2137
2137
|
if (fallback.poster && posterSrc) {
|
|
2138
2138
|
const img = createEl(doc, "img", "pptxv-media-poster", {
|
|
2139
2139
|
width: "100%",
|
|
@@ -2150,7 +2150,7 @@ var renderMediaElement = (element, zIndex, context) => {
|
|
|
2150
2150
|
if (fallback.badge === "missing") {
|
|
2151
2151
|
badge.classList.add("pptxv-media-badge-missing");
|
|
2152
2152
|
}
|
|
2153
|
-
badge.setAttribute(
|
|
2153
|
+
badge.setAttribute(chunkKPZWYF44_cjs.MEDIA_CHROME_ATTRIBUTE, fallback.badge);
|
|
2154
2154
|
badge.appendChild(buildIcon(doc, icon));
|
|
2155
2155
|
if (labelKey !== void 0 && fallback.badge === "missing") {
|
|
2156
2156
|
const text = createEl(doc, "span");
|
|
@@ -2163,7 +2163,7 @@ var renderMediaElement = (element, zIndex, context) => {
|
|
|
2163
2163
|
}
|
|
2164
2164
|
if (fallback.placeholder !== "none") {
|
|
2165
2165
|
el.classList.add("pptxv-placeholder", "pptxv-media-placeholder");
|
|
2166
|
-
el.setAttribute(
|
|
2166
|
+
el.setAttribute(chunkKPZWYF44_cjs.MEDIA_CHROME_ATTRIBUTE, fallback.placeholder);
|
|
2167
2167
|
if (icon.length > 0) {
|
|
2168
2168
|
el.appendChild(buildIcon(doc, icon));
|
|
2169
2169
|
}
|
|
@@ -2199,7 +2199,7 @@ var renderModel3dElement = (element, zIndex, context) => {
|
|
|
2199
2199
|
doc,
|
|
2200
2200
|
"div",
|
|
2201
2201
|
"pptxv-element pptxv-model3d",
|
|
2202
|
-
|
|
2202
|
+
chunkKPZWYF44_cjs.getContainerStyle(element, zIndex)
|
|
2203
2203
|
);
|
|
2204
2204
|
el.dataset.elementId = element.id;
|
|
2205
2205
|
const label = context.t("pptx.model3d.label");
|
|
@@ -2336,7 +2336,7 @@ function buildOleIcon(doc, type, color) {
|
|
|
2336
2336
|
fill: "none",
|
|
2337
2337
|
"aria-hidden": "true"
|
|
2338
2338
|
});
|
|
2339
|
-
for (const shape of
|
|
2339
|
+
for (const shape of chunkKPZWYF44_cjs.getOleIconShapes(type)) {
|
|
2340
2340
|
const node = createSvgEl(doc, shape.tag, shape.attrs);
|
|
2341
2341
|
if (shape.tag === "text") {
|
|
2342
2342
|
node.setAttribute("fill", color);
|
|
@@ -2355,21 +2355,21 @@ var renderOleElement = (element, zIndex, context) => {
|
|
|
2355
2355
|
return null;
|
|
2356
2356
|
}
|
|
2357
2357
|
const doc = context.document;
|
|
2358
|
-
const oleType =
|
|
2359
|
-
const typeColor =
|
|
2360
|
-
const typeLabel =
|
|
2361
|
-
const el = createEl(doc, "div", "pptxv-element pptxv-ole",
|
|
2358
|
+
const oleType = chunkKPZWYF44_cjs.resolveOleType(element);
|
|
2359
|
+
const typeColor = chunkKPZWYF44_cjs.getOleTypeColor(oleType);
|
|
2360
|
+
const typeLabel = chunkKPZWYF44_cjs.getOleTypeLabel(oleType);
|
|
2361
|
+
const el = createEl(doc, "div", "pptxv-element pptxv-ole", chunkKPZWYF44_cjs.getContainerStyle(element, zIndex));
|
|
2362
2362
|
el.dataset.elementId = element.id;
|
|
2363
2363
|
el.setAttribute("role", "group");
|
|
2364
|
-
el.setAttribute("aria-label",
|
|
2364
|
+
el.setAttribute("aria-label", chunkKPZWYF44_cjs.getOleAriaLabel(element));
|
|
2365
2365
|
el.title = infoLines(element, typeLabel).join("\n");
|
|
2366
2366
|
if (element.previewImageData) {
|
|
2367
|
-
el.appendChild(buildPreview(doc, element, typeColor,
|
|
2367
|
+
el.appendChild(buildPreview(doc, element, typeColor, chunkKPZWYF44_cjs.getOleBadgeLabel(oleType)));
|
|
2368
2368
|
} else {
|
|
2369
2369
|
el.appendChild(buildPlaceholder2(doc, element, oleType, typeColor, typeLabel));
|
|
2370
2370
|
}
|
|
2371
|
-
const showActions =
|
|
2372
|
-
|
|
2371
|
+
const showActions = chunkKPZWYF44_cjs.oleActionsVisible(
|
|
2372
|
+
chunkKPZWYF44_cjs.mediaSurfaceOf({
|
|
2373
2373
|
interactive: context.interactive === true,
|
|
2374
2374
|
presenting: context.presenting
|
|
2375
2375
|
})
|
|
@@ -2385,7 +2385,7 @@ function infoLines(el, typeLabel) {
|
|
|
2385
2385
|
if (name) {
|
|
2386
2386
|
lines.push(name);
|
|
2387
2387
|
}
|
|
2388
|
-
const size =
|
|
2388
|
+
const size = chunkKPZWYF44_cjs.formatBytes(el.oleEmbeddedByteSize);
|
|
2389
2389
|
if (size) {
|
|
2390
2390
|
lines.push(size);
|
|
2391
2391
|
}
|
|
@@ -2409,7 +2409,7 @@ function buildPreview(doc, el, typeColor, badgeLabel) {
|
|
|
2409
2409
|
display: "block"
|
|
2410
2410
|
});
|
|
2411
2411
|
img.src = el.previewImageData ?? "";
|
|
2412
|
-
img.alt =
|
|
2412
|
+
img.alt = chunkKPZWYF44_cjs.getOleAriaLabel(el);
|
|
2413
2413
|
img.draggable = false;
|
|
2414
2414
|
preview.appendChild(img);
|
|
2415
2415
|
const badge = createSvgEl(doc, "svg", { width: 24, height: 24, viewBox: "0 0 24 24" });
|
|
@@ -2436,7 +2436,7 @@ function buildPreview(doc, el, typeColor, badgeLabel) {
|
|
|
2436
2436
|
}
|
|
2437
2437
|
function buildPlaceholder2(doc, el, oleType, typeColor, typeLabel) {
|
|
2438
2438
|
const box = createEl(doc, "div", "pptxv-ole-placeholder", {
|
|
2439
|
-
...
|
|
2439
|
+
...chunkKPZWYF44_cjs.getPlaceholderStyle(oleType),
|
|
2440
2440
|
width: "100%",
|
|
2441
2441
|
height: "100%",
|
|
2442
2442
|
display: "flex",
|
|
@@ -2457,7 +2457,7 @@ function buildPlaceholder2(doc, el, oleType, typeColor, typeLabel) {
|
|
|
2457
2457
|
whiteSpace: "nowrap",
|
|
2458
2458
|
color: typeColor
|
|
2459
2459
|
});
|
|
2460
|
-
name.textContent =
|
|
2460
|
+
name.textContent = chunkKPZWYF44_cjs.getOleDisplayName(el);
|
|
2461
2461
|
box.appendChild(name);
|
|
2462
2462
|
if (el.fileName) {
|
|
2463
2463
|
const sublabel = createEl(doc, "span", "pptxv-ole-sublabel", {
|
|
@@ -2509,7 +2509,7 @@ function buildActionBar(doc, el, typeLabel, context) {
|
|
|
2509
2509
|
for (const type of ["pointerdown", "mousedown", "click"]) {
|
|
2510
2510
|
bar.addEventListener(type, (event) => event.stopPropagation());
|
|
2511
2511
|
}
|
|
2512
|
-
const size =
|
|
2512
|
+
const size = chunkKPZWYF44_cjs.formatBytes(el.oleEmbeddedByteSize);
|
|
2513
2513
|
if (size) {
|
|
2514
2514
|
const meta = createEl(doc, "span", "pptxv-ole-meta", {
|
|
2515
2515
|
marginRight: "auto",
|
|
@@ -2529,14 +2529,14 @@ function buildActionBar(doc, el, typeLabel, context) {
|
|
|
2529
2529
|
download.title = downloadTitle;
|
|
2530
2530
|
download.textContent = context.t("pptx.ole.download");
|
|
2531
2531
|
bar.appendChild(download);
|
|
2532
|
-
if (
|
|
2532
|
+
if (chunkKPZWYF44_cjs.isBrowserOpenableMime(el.oleEmbeddedMimeType)) {
|
|
2533
2533
|
const open = createEl(doc, "button", "pptxv-ole-action", ACTION_STYLE);
|
|
2534
2534
|
open.type = "button";
|
|
2535
2535
|
const openTitle = context.t("pptx.ole.openName", { name: downloadName });
|
|
2536
2536
|
open.setAttribute("aria-label", openTitle);
|
|
2537
2537
|
open.title = openTitle;
|
|
2538
2538
|
open.textContent = context.t("pptx.ole.open");
|
|
2539
|
-
open.addEventListener("click", () =>
|
|
2539
|
+
open.addEventListener("click", () => chunkKPZWYF44_cjs.openUrlInNewTab(data));
|
|
2540
2540
|
bar.appendChild(open);
|
|
2541
2541
|
}
|
|
2542
2542
|
return bar;
|
|
@@ -2548,12 +2548,12 @@ var renderPlaceholderElement = (element, zIndex, context) => {
|
|
|
2548
2548
|
context.document,
|
|
2549
2549
|
"div",
|
|
2550
2550
|
"pptxv-element pptxv-placeholder",
|
|
2551
|
-
|
|
2551
|
+
chunkKPZWYF44_cjs.getContainerStyle(element, zIndex)
|
|
2552
2552
|
);
|
|
2553
2553
|
el.dataset.elementId = element.id;
|
|
2554
2554
|
el.dataset.elementType = element.type;
|
|
2555
2555
|
const label = createEl(context.document, "div", "pptxv-placeholder-label");
|
|
2556
|
-
label.textContent =
|
|
2556
|
+
label.textContent = chunkSM3CWDIQ_cjs.keyToLabel(element.type);
|
|
2557
2557
|
el.appendChild(label);
|
|
2558
2558
|
return el;
|
|
2559
2559
|
};
|
|
@@ -2564,7 +2564,7 @@ var renderZoomElement = (element, zIndex, context) => {
|
|
|
2564
2564
|
return null;
|
|
2565
2565
|
}
|
|
2566
2566
|
const doc = context.document;
|
|
2567
|
-
const summaryView =
|
|
2567
|
+
const summaryView = chunkKPZWYF44_cjs.buildSummaryZoomView(
|
|
2568
2568
|
element,
|
|
2569
2569
|
(index) => {
|
|
2570
2570
|
const slide = context.slides?.[index];
|
|
@@ -2584,7 +2584,7 @@ var renderZoomElement = (element, zIndex, context) => {
|
|
|
2584
2584
|
doc,
|
|
2585
2585
|
"div",
|
|
2586
2586
|
"pptxv-element pptxv-zoom pptxv-summary-zoom",
|
|
2587
|
-
|
|
2587
|
+
chunkKPZWYF44_cjs.getContainerStyle(element, zIndex)
|
|
2588
2588
|
);
|
|
2589
2589
|
const content = createEl(doc, "div", "pptxv-summary-zoom-content", summaryView.containerStyle);
|
|
2590
2590
|
root.dataset.elementId = element.id;
|
|
@@ -2650,7 +2650,7 @@ var renderZoomElement = (element, zIndex, context) => {
|
|
|
2650
2650
|
const target = element.targetSlideIndex ?? 0;
|
|
2651
2651
|
const targetSlide = context.slides?.[target];
|
|
2652
2652
|
const interactive = context.presenting && context.onZoomClick !== void 0;
|
|
2653
|
-
const el = createEl(doc, "div", "pptxv-element pptxv-zoom",
|
|
2653
|
+
const el = createEl(doc, "div", "pptxv-element pptxv-zoom", chunkKPZWYF44_cjs.getContainerStyle(element, zIndex));
|
|
2654
2654
|
el.dataset.elementId = element.id;
|
|
2655
2655
|
el.dataset.zoomType = zoomType;
|
|
2656
2656
|
el.dataset.zoomTarget = String(target);
|
|
@@ -2660,7 +2660,7 @@ var renderZoomElement = (element, zIndex, context) => {
|
|
|
2660
2660
|
el.tabIndex = 0;
|
|
2661
2661
|
el.style.cursor = "pointer";
|
|
2662
2662
|
const activate = () => {
|
|
2663
|
-
const zoomTarget =
|
|
2663
|
+
const zoomTarget = chunkKPZWYF44_cjs.resolveZoomNavigationTarget(element);
|
|
2664
2664
|
if (zoomTarget) {
|
|
2665
2665
|
context.onZoomClick?.(zoomTarget, context.currentSlideIndex ?? 0);
|
|
2666
2666
|
}
|
|
@@ -2775,7 +2775,7 @@ function registerExtraRenderers(registry) {
|
|
|
2775
2775
|
// src/pptx/dom/elements/smartart-3d.ts
|
|
2776
2776
|
var renderSmartArt3DElement = (element, zIndex, context) => {
|
|
2777
2777
|
const wrapper = renderSmartArtSvg(element, zIndex, context);
|
|
2778
|
-
const spec = wrapper ?
|
|
2778
|
+
const spec = wrapper ? chunkKPZWYF44_cjs.resolveSmartArtThreeViewSpec(element, context.smartArt3D) : null;
|
|
2779
2779
|
if (!wrapper || !spec) {
|
|
2780
2780
|
return wrapper;
|
|
2781
2781
|
}
|
|
@@ -2785,18 +2785,18 @@ var renderSmartArt3DElement = (element, zIndex, context) => {
|
|
|
2785
2785
|
textStyle: context.presentationStates?.get(element.id)?.textStyle
|
|
2786
2786
|
});
|
|
2787
2787
|
if (context.onSmartArtNodeTextChange && context.interactive && !context.presenting) {
|
|
2788
|
-
const layer = renderSmartArtSvg(
|
|
2788
|
+
const layer = renderSmartArtSvg(chunkKPZWYF44_cjs.elementInLocalFrame(element), 0, context);
|
|
2789
2789
|
if (layer) {
|
|
2790
2790
|
layer.classList.add("pptxv-smartart-3d-edit-layer");
|
|
2791
2791
|
layer.setAttribute("data-smartart-3d-edit-layer", "true");
|
|
2792
|
-
|
|
2792
|
+
chunkKPZWYF44_cjs.stripEditLayerMarkers(layer);
|
|
2793
2793
|
layer.setAttribute("aria-hidden", "true");
|
|
2794
2794
|
Object.assign(layer.style, { position: "absolute", inset: "0", zIndex: "1" });
|
|
2795
2795
|
for (const svg of layer.querySelectorAll("svg")) {
|
|
2796
2796
|
svg.style.opacity = "0";
|
|
2797
2797
|
}
|
|
2798
2798
|
wrapper.appendChild(layer);
|
|
2799
|
-
|
|
2799
|
+
chunkKPZWYF44_cjs.routeEditLayerPointerToNodes(layer);
|
|
2800
2800
|
}
|
|
2801
2801
|
}
|
|
2802
2802
|
return wrapper;
|
|
@@ -2809,7 +2809,7 @@ function nodeTarget(target) {
|
|
|
2809
2809
|
}
|
|
2810
2810
|
function enableSmartArtEditing(chrome, element, context) {
|
|
2811
2811
|
const data = element.smartArtData;
|
|
2812
|
-
if (!data || !context.onSmartArtNodeTextChange && !context.onSmartArtNodeFillChange || !
|
|
2812
|
+
if (!data || !context.onSmartArtNodeTextChange && !context.onSmartArtNodeFillChange || !chunkKPZWYF44_cjs.canDrillDown(element)) {
|
|
2813
2813
|
return;
|
|
2814
2814
|
}
|
|
2815
2815
|
let editor = null;
|
|
@@ -2831,8 +2831,8 @@ function enableSmartArtEditing(chrome, element, context) {
|
|
|
2831
2831
|
}
|
|
2832
2832
|
event.stopPropagation();
|
|
2833
2833
|
const textNode = target.querySelector("text");
|
|
2834
|
-
const textRect = textNode ?
|
|
2835
|
-
const rect = textRect && textRect.width > 0 ? textRect :
|
|
2834
|
+
const textRect = textNode ? chunkKPZWYF44_cjs.measureSvgViewportRect(textNode) : null;
|
|
2835
|
+
const rect = textRect && textRect.width > 0 ? textRect : chunkKPZWYF44_cjs.measureSvgViewportRect(target);
|
|
2836
2836
|
if (!rect) {
|
|
2837
2837
|
return;
|
|
2838
2838
|
}
|
|
@@ -2856,7 +2856,7 @@ function enableSmartArtEditing(chrome, element, context) {
|
|
|
2856
2856
|
textAlign: "center"
|
|
2857
2857
|
});
|
|
2858
2858
|
editor = input;
|
|
2859
|
-
input.value =
|
|
2859
|
+
input.value = chunkKPZWYF44_cjs.findSmartArtNodeText(data, nodeId) ?? "";
|
|
2860
2860
|
const commit = () => {
|
|
2861
2861
|
if (input !== editor) {
|
|
2862
2862
|
return;
|
|
@@ -2888,7 +2888,7 @@ function enableSmartArtEditing(chrome, element, context) {
|
|
|
2888
2888
|
}
|
|
2889
2889
|
cancelHide();
|
|
2890
2890
|
swatches?.remove();
|
|
2891
|
-
const rect =
|
|
2891
|
+
const rect = chunkKPZWYF44_cjs.measureSvgViewportRect(target);
|
|
2892
2892
|
if (!rect) {
|
|
2893
2893
|
return;
|
|
2894
2894
|
}
|
|
@@ -2907,7 +2907,7 @@ function enableSmartArtEditing(chrome, element, context) {
|
|
|
2907
2907
|
});
|
|
2908
2908
|
swatches.setAttribute("role", "group");
|
|
2909
2909
|
swatches.setAttribute("aria-label", context.t("pptx.smartArt.fillColor"));
|
|
2910
|
-
for (const color of
|
|
2910
|
+
for (const color of chunkKPZWYF44_cjs.resolvePalette(data).slice(0, 6)) {
|
|
2911
2911
|
const button = createEl(chrome.ownerDocument, "button", "", {
|
|
2912
2912
|
width: "18px",
|
|
2913
2913
|
height: "18px",
|
|
@@ -3006,7 +3006,7 @@ function buildSmartArtFallbackSvg(doc, layout, a11yNodes = [], nodeIds = []) {
|
|
|
3006
3006
|
svg.setAttribute("class", "pptxv-smartart-svg");
|
|
3007
3007
|
svg.setAttribute("style", SMARTART_SVG_STYLE);
|
|
3008
3008
|
for (const conn of layout.connectors) {
|
|
3009
|
-
const paint =
|
|
3009
|
+
const paint = chunkKPZWYF44_cjs.smartArtConnectorPaint(conn);
|
|
3010
3010
|
svg.appendChild(
|
|
3011
3011
|
createSvgEl(doc, "path", {
|
|
3012
3012
|
d: paint.d,
|
|
@@ -3065,7 +3065,7 @@ function buildFallbackNode(doc, node, shadowFilter, a11yLabel, nodeId) {
|
|
|
3065
3065
|
})
|
|
3066
3066
|
);
|
|
3067
3067
|
}
|
|
3068
|
-
const label =
|
|
3068
|
+
const label = chunkKPZWYF44_cjs.smartArtNodeLabel(node);
|
|
3069
3069
|
if (label.visible) {
|
|
3070
3070
|
appendSvgTextLines(doc, g, {
|
|
3071
3071
|
lines: label.lines,
|
|
@@ -3101,41 +3101,41 @@ var renderSmartArtSvg = (element, zIndex, context) => {
|
|
|
3101
3101
|
doc,
|
|
3102
3102
|
"div",
|
|
3103
3103
|
"pptxv-element pptxv-smartart",
|
|
3104
|
-
|
|
3104
|
+
chunkKPZWYF44_cjs.getContainerStyle(element, zIndex)
|
|
3105
3105
|
);
|
|
3106
3106
|
wrapper.dataset.elementId = element.id;
|
|
3107
3107
|
wrapper.dataset.testid = `smartart-${data?.layout ?? "diagram"}`;
|
|
3108
|
-
const chrome = createEl(doc, "div", "pptxv-smartart-chrome",
|
|
3108
|
+
const chrome = createEl(doc, "div", "pptxv-smartart-chrome", chunkKPZWYF44_cjs.buildChromeStyle(data?.chrome));
|
|
3109
3109
|
chrome.style.position = "relative";
|
|
3110
3110
|
wrapper.appendChild(chrome);
|
|
3111
3111
|
if (data) {
|
|
3112
|
-
const a11y =
|
|
3112
|
+
const a11y = chunkKPZWYF44_cjs.buildSmartArtA11y(data);
|
|
3113
3113
|
chrome.setAttribute("role", "img");
|
|
3114
3114
|
chrome.setAttribute("aria-label", a11y.label);
|
|
3115
3115
|
}
|
|
3116
3116
|
const nodes = data?.nodes ?? [];
|
|
3117
3117
|
const drawingShapes = data?.drawingShapes ?? [];
|
|
3118
3118
|
const animationState = context.presentationStates?.get(element.id);
|
|
3119
|
-
const { nodes: revealedNodesFull } =
|
|
3119
|
+
const { nodes: revealedNodesFull } = chunkKPZWYF44_cjs.resolveRevealedSmartArtNodes(
|
|
3120
3120
|
nodes,
|
|
3121
3121
|
animationState,
|
|
3122
3122
|
data?.presLayoutVars
|
|
3123
3123
|
);
|
|
3124
3124
|
if (data && drawingShapes.length > 0) {
|
|
3125
|
-
const revealedShapes =
|
|
3125
|
+
const revealedShapes = chunkKPZWYF44_cjs.resolveRevealedDrawingShapes(drawingShapes, nodes, animationState);
|
|
3126
3126
|
chrome.appendChild(
|
|
3127
|
-
buildDrawingShapesSvg(doc, element.id, data,
|
|
3127
|
+
buildDrawingShapesSvg(doc, element.id, data, chunkKPZWYF44_cjs.buildSmartArtA11y(data).nodes, revealedShapes)
|
|
3128
3128
|
);
|
|
3129
3129
|
enableSmartArtEditing(chrome, element, context);
|
|
3130
3130
|
return wrapper;
|
|
3131
3131
|
}
|
|
3132
3132
|
if (data && nodes.length > 0) {
|
|
3133
3133
|
const revealedNodes = revealedNodesFull;
|
|
3134
|
-
const layout =
|
|
3134
|
+
const layout = chunkKPZWYF44_cjs.computeSmartArtElementLayout(
|
|
3135
3135
|
data,
|
|
3136
3136
|
revealedNodes,
|
|
3137
3137
|
{ width: element.width, height: element.height },
|
|
3138
|
-
|
|
3138
|
+
chunkKPZWYF44_cjs.resolvePalette(data),
|
|
3139
3139
|
data.style ?? "flat",
|
|
3140
3140
|
element.id
|
|
3141
3141
|
);
|
|
@@ -3143,8 +3143,8 @@ var renderSmartArtSvg = (element, zIndex, context) => {
|
|
|
3143
3143
|
buildSmartArtFallbackSvg(
|
|
3144
3144
|
doc,
|
|
3145
3145
|
layout,
|
|
3146
|
-
|
|
3147
|
-
|
|
3146
|
+
chunkKPZWYF44_cjs.buildSmartArtA11y(data).nodes,
|
|
3147
|
+
chunkKPZWYF44_cjs.flattenNodes(revealedNodes).map((node) => node.id)
|
|
3148
3148
|
)
|
|
3149
3149
|
);
|
|
3150
3150
|
enableSmartArtEditing(chrome, element, context);
|
|
@@ -3167,17 +3167,17 @@ var renderSmartArtSvg = (element, zIndex, context) => {
|
|
|
3167
3167
|
function buildDrawingShapesSvg(doc, elementId, data, a11yNodes, revealedShapes) {
|
|
3168
3168
|
const allShapes = data.drawingShapes ?? [];
|
|
3169
3169
|
const style = data.style ?? "flat";
|
|
3170
|
-
const viewBox =
|
|
3171
|
-
const rendered =
|
|
3170
|
+
const viewBox = chunkKPZWYF44_cjs.computeDrawingViewBox(allShapes);
|
|
3171
|
+
const rendered = chunkKPZWYF44_cjs.projectDrawingShapes(
|
|
3172
3172
|
elementId,
|
|
3173
3173
|
revealedShapes,
|
|
3174
3174
|
viewBox,
|
|
3175
|
-
|
|
3175
|
+
chunkKPZWYF44_cjs.resolvePalette(data),
|
|
3176
3176
|
style
|
|
3177
3177
|
);
|
|
3178
|
-
const shadow =
|
|
3178
|
+
const shadow = chunkKPZWYF44_cjs.styleShadowFilter(style);
|
|
3179
3179
|
const labelsById = new Map(a11yNodes.map((node) => [node.id, node.label]));
|
|
3180
|
-
const nodeIds =
|
|
3180
|
+
const nodeIds = chunkKPZWYF44_cjs.resolveRevealedDrawingShapeNodeIds(allShapes, revealedShapes, data.nodes);
|
|
3181
3181
|
const svg = createSvgEl(doc, "svg", {
|
|
3182
3182
|
viewBox: `0 0 ${viewBox.width} ${viewBox.height}`,
|
|
3183
3183
|
preserveAspectRatio: "xMidYMid meet"
|
|
@@ -3312,7 +3312,7 @@ function enableTableResize(container, table, element, context) {
|
|
|
3312
3312
|
for (const handle of [...colHandles, ...rowHandles]) {
|
|
3313
3313
|
handle.remove();
|
|
3314
3314
|
}
|
|
3315
|
-
colHandles =
|
|
3315
|
+
colHandles = chunkKPZWYF44_cjs.computeColumnBoundaries(tableData.columnWidths).map((leftPct) => {
|
|
3316
3316
|
const handle = createEl(doc, "div", "pptxv-table-resize-col", {
|
|
3317
3317
|
position: "absolute",
|
|
3318
3318
|
top: "0",
|
|
@@ -3368,14 +3368,14 @@ function enableTableResize(container, table, element, context) {
|
|
|
3368
3368
|
const deltaProp = (event.clientX - active.startPos) / (rect.width || 1);
|
|
3369
3369
|
context.onTableResizeColumns?.(
|
|
3370
3370
|
element,
|
|
3371
|
-
|
|
3371
|
+
chunkKPZWYF44_cjs.computeResizedColumnWidths(active.initialWidths, active.index, deltaProp)
|
|
3372
3372
|
);
|
|
3373
3373
|
} else if (event.clientY !== active.startPos && active.type === "row") {
|
|
3374
3374
|
const deltaY = event.clientY - active.startPos;
|
|
3375
3375
|
context.onTableResizeRow?.(
|
|
3376
3376
|
element,
|
|
3377
3377
|
active.index,
|
|
3378
|
-
|
|
3378
|
+
chunkKPZWYF44_cjs.computeResizedRowHeight(active.initialRowHeight ?? chunkKPZWYF44_cjs.DEFAULT_ROW_HEIGHT, deltaY)
|
|
3379
3379
|
);
|
|
3380
3380
|
}
|
|
3381
3381
|
drawHandles();
|
|
@@ -3384,8 +3384,8 @@ function enableTableResize(container, table, element, context) {
|
|
|
3384
3384
|
const rect = container.getBoundingClientRect();
|
|
3385
3385
|
const localX = event.clientX - rect.left;
|
|
3386
3386
|
const localY = event.clientY - rect.top;
|
|
3387
|
-
const scaleY =
|
|
3388
|
-
const colBoundaries =
|
|
3387
|
+
const scaleY = chunkKPZWYF44_cjs.getTableResizeScale(rect.height, container.offsetHeight);
|
|
3388
|
+
const colBoundaries = chunkKPZWYF44_cjs.computeColumnBoundaries(tableData.columnWidths);
|
|
3389
3389
|
for (let i = 0; i < colBoundaries.length; i++) {
|
|
3390
3390
|
const boundaryX = colBoundaries[i] / 100 * rect.width;
|
|
3391
3391
|
if (Math.abs(localX - boundaryX) <= HANDLE_ZONE) {
|
|
@@ -3418,7 +3418,7 @@ function enableTableResize(container, table, element, context) {
|
|
|
3418
3418
|
index: i,
|
|
3419
3419
|
startPos: event.clientY,
|
|
3420
3420
|
handleEl: rowHandles[i] ?? container,
|
|
3421
|
-
initialRowHeight: tr?.offsetHeight ??
|
|
3421
|
+
initialRowHeight: tr?.offsetHeight ?? chunkKPZWYF44_cjs.DEFAULT_ROW_HEIGHT
|
|
3422
3422
|
};
|
|
3423
3423
|
win.addEventListener("mousemove", onMouseMove);
|
|
3424
3424
|
win.addEventListener("mouseup", onMouseUp);
|
|
@@ -3439,7 +3439,7 @@ var renderTableElement = (element, zIndex, context) => {
|
|
|
3439
3439
|
}
|
|
3440
3440
|
const doc = context.document;
|
|
3441
3441
|
const container = createEl(doc, "div", "pptxv-element pptxv-table", {
|
|
3442
|
-
...
|
|
3442
|
+
...chunkKPZWYF44_cjs.getContainerStyle(element, zIndex),
|
|
3443
3443
|
overflow: "hidden"
|
|
3444
3444
|
});
|
|
3445
3445
|
container.dataset.elementId = element.id;
|
|
@@ -3452,7 +3452,7 @@ var renderTableElement = (element, zIndex, context) => {
|
|
|
3452
3452
|
// font stack; all five bindings declare the same shared default here.
|
|
3453
3453
|
fontFamily: chunkAIL3BNZS_cjs.DEFAULT_FONT_FAMILY,
|
|
3454
3454
|
// `a:tblPr@rtl`: mirrors the column order for right-to-left decks.
|
|
3455
|
-
...
|
|
3455
|
+
...chunkKPZWYF44_cjs.tableContainerCss(tableData)
|
|
3456
3456
|
});
|
|
3457
3457
|
appendColgroup(doc, table, tableData.columnWidths);
|
|
3458
3458
|
const tbody = doc.createElement("tbody");
|
|
@@ -3513,13 +3513,13 @@ function renderCell(doc, tableData, cell, rowIndex, cellIndex, rowCount, columnC
|
|
|
3513
3513
|
if (cell.rowSpan && cell.rowSpan > 1) {
|
|
3514
3514
|
td.rowSpan = cell.rowSpan;
|
|
3515
3515
|
}
|
|
3516
|
-
const style =
|
|
3516
|
+
const style = chunkKPZWYF44_cjs.tableCellCss(
|
|
3517
3517
|
tableData,
|
|
3518
3518
|
cell,
|
|
3519
3519
|
{ rowIndex, cellIndex, rowCount, columnCount },
|
|
3520
3520
|
styleContext
|
|
3521
3521
|
);
|
|
3522
|
-
const patternFill = cell.style ?
|
|
3522
|
+
const patternFill = cell.style ? chunkKPZWYF44_cjs.cellPatternFillCss(cell.style) : null;
|
|
3523
3523
|
if (patternFill) {
|
|
3524
3524
|
delete style["backgroundColor"];
|
|
3525
3525
|
delete style["background"];
|
|
@@ -3532,7 +3532,7 @@ function renderCell(doc, tableData, cell, rowIndex, cellIndex, rowCount, columnC
|
|
|
3532
3532
|
}
|
|
3533
3533
|
applyStyleMap(td, CELL_BASE_STYLE);
|
|
3534
3534
|
applyStyleMap(td, style);
|
|
3535
|
-
const diagonals =
|
|
3535
|
+
const diagonals = chunkKPZWYF44_cjs.getCellDiagonalBorders(
|
|
3536
3536
|
cell.style,
|
|
3537
3537
|
tableData,
|
|
3538
3538
|
{ rowIndex, cellIndex, rowCount, columnCount },
|
|
@@ -3606,7 +3606,7 @@ function appendCellText(doc, td, cell) {
|
|
|
3606
3606
|
}
|
|
3607
3607
|
const span = createEl(doc, "span", "pptxv-table-run", {
|
|
3608
3608
|
position: "relative",
|
|
3609
|
-
...
|
|
3609
|
+
...chunkKPZWYF44_cjs.cellRunStyle(run)
|
|
3610
3610
|
});
|
|
3611
3611
|
span.textContent = run.text;
|
|
3612
3612
|
td.appendChild(span);
|
|
@@ -3620,8 +3620,8 @@ function registerTableChartRenderers(registry) {
|
|
|
3620
3620
|
}
|
|
3621
3621
|
|
|
3622
3622
|
// src/pptx/dom/glyph-outline-cache.ts
|
|
3623
|
-
var glyphOutlineFontCache = new
|
|
3624
|
-
var getGlyphOutline =
|
|
3623
|
+
var glyphOutlineFontCache = new chunkKPZWYF44_cjs.GlyphOutlineFontCache();
|
|
3624
|
+
var getGlyphOutline = chunkKPZWYF44_cjs.createGlyphOutlineLookup(glyphOutlineFontCache);
|
|
3625
3625
|
|
|
3626
3626
|
// src/pptx/dom/elements/text-warp.ts
|
|
3627
3627
|
function renderWarpedText(element, context) {
|
|
@@ -3633,12 +3633,12 @@ function renderWarpedText(element, context) {
|
|
|
3633
3633
|
if (!preset || preset === "textNoShape" || preset === "textPlain") {
|
|
3634
3634
|
return null;
|
|
3635
3635
|
}
|
|
3636
|
-
const paragraphs =
|
|
3636
|
+
const paragraphs = chunkKPZWYF44_cjs.groupIntoParagraphs(element);
|
|
3637
3637
|
if (paragraphs.length === 0) {
|
|
3638
3638
|
return null;
|
|
3639
3639
|
}
|
|
3640
|
-
if (!
|
|
3641
|
-
const transform =
|
|
3640
|
+
if (!chunkKPZWYF44_cjs.shouldUseSvgWarp(preset)) {
|
|
3641
|
+
const transform = chunkKPZWYF44_cjs.getWarpCssTransform(preset, style?.textWarpAdj, style?.textWarpAdj2);
|
|
3642
3642
|
if (!transform) {
|
|
3643
3643
|
return null;
|
|
3644
3644
|
}
|
|
@@ -3666,7 +3666,7 @@ function renderWarpedText(element, context) {
|
|
|
3666
3666
|
text.textContent = paragraphs.map((p) => p.segments.map((s) => s.text).join("")).join("\n");
|
|
3667
3667
|
return text;
|
|
3668
3668
|
}
|
|
3669
|
-
if (
|
|
3669
|
+
if (chunkKPZWYF44_cjs.hasGlyphEnvelope(preset)) {
|
|
3670
3670
|
return renderGlyphWarp(element, paragraphs, context);
|
|
3671
3671
|
}
|
|
3672
3672
|
return renderPathWarp(element, paragraphs, context);
|
|
@@ -3692,7 +3692,7 @@ function renderGlyphWarp(element, paragraphs, context) {
|
|
|
3692
3692
|
});
|
|
3693
3693
|
svg.setAttribute("class", "pptxv-wordart");
|
|
3694
3694
|
svg.setAttribute("style", "position:absolute;inset:0;width:100%;height:100%;overflow:visible");
|
|
3695
|
-
const perLine =
|
|
3695
|
+
const perLine = chunkKPZWYF44_cjs.buildGlyphEnvelopeBlock(
|
|
3696
3696
|
preset,
|
|
3697
3697
|
paragraphs.map(
|
|
3698
3698
|
(paragraph) => paragraph.segments.map((seg, i) => ({
|
|
@@ -3787,7 +3787,7 @@ function renderPathWarp(element, paragraphs, context) {
|
|
|
3787
3787
|
defs.appendChild(
|
|
3788
3788
|
createSvgEl(context.document, "path", {
|
|
3789
3789
|
id,
|
|
3790
|
-
d:
|
|
3790
|
+
d: chunkKPZWYF44_cjs.buildWarpPath(
|
|
3791
3791
|
preset,
|
|
3792
3792
|
element.width,
|
|
3793
3793
|
element.height,
|
|
@@ -3820,7 +3820,7 @@ function renderPathWarp(element, paragraphs, context) {
|
|
|
3820
3820
|
|
|
3821
3821
|
// src/pptx/dom/elements/text-shape.ts
|
|
3822
3822
|
var renderTextShapeElement = (element, zIndex, context) => {
|
|
3823
|
-
const container =
|
|
3823
|
+
const container = chunkKPZWYF44_cjs.getContainerStyle(element, zIndex);
|
|
3824
3824
|
const animState = context.presentationStates?.get(element.id);
|
|
3825
3825
|
const shape = getShapeFillStrokeStyle(
|
|
3826
3826
|
element,
|
|
@@ -3835,7 +3835,7 @@ var renderTextShapeElement = (element, zIndex, context) => {
|
|
|
3835
3835
|
const el = createEl(context.document, "div", "pptxv-element pptxv-shape", merged);
|
|
3836
3836
|
el.dataset.elementId = element.id;
|
|
3837
3837
|
if (context.interactive && !context.presenting) {
|
|
3838
|
-
const hitTargetStyle =
|
|
3838
|
+
const hitTargetStyle = chunkKPZWYF44_cjs.elementHitTargetStyle(element);
|
|
3839
3839
|
if (hitTargetStyle) {
|
|
3840
3840
|
const hitTarget = createEl(context.document, "div", void 0, hitTargetStyle);
|
|
3841
3841
|
hitTarget.setAttribute("aria-hidden", "true");
|
|
@@ -3878,8 +3878,8 @@ var renderTextShapeElement = (element, zIndex, context) => {
|
|
|
3878
3878
|
} else if (warped) {
|
|
3879
3879
|
el.appendChild(warped);
|
|
3880
3880
|
} else {
|
|
3881
|
-
const linkedSegments =
|
|
3882
|
-
const paragraphs =
|
|
3881
|
+
const linkedSegments = chunkKPZWYF44_cjs.getOverflowSegments(element, context.slide?.elements);
|
|
3882
|
+
const paragraphs = chunkKPZWYF44_cjs.buildParagraphs(element, context.fieldContext, linkedSegments);
|
|
3883
3883
|
const hasText = paragraphs.some((p) => p.runs.length > 0 || p.bulletMarker !== void 0);
|
|
3884
3884
|
if (hasText) {
|
|
3885
3885
|
el.appendChild(
|
|
@@ -3890,7 +3890,7 @@ var renderTextShapeElement = (element, zIndex, context) => {
|
|
|
3890
3890
|
);
|
|
3891
3891
|
} else {
|
|
3892
3892
|
const mode = context.interactive && !context.presenting ? "edit" : "present";
|
|
3893
|
-
const prompt =
|
|
3893
|
+
const prompt = chunkKPZWYF44_cjs.placeholderPromptDescriptor(element, mode);
|
|
3894
3894
|
if (prompt) {
|
|
3895
3895
|
const hint = createEl(context.document, "div", "pptxv-placeholder-prompt", {
|
|
3896
3896
|
...getTextBlockStyle(element),
|
|
@@ -4055,11 +4055,11 @@ async function resolveImageUrls(handler, slides) {
|
|
|
4055
4055
|
|
|
4056
4056
|
Object.defineProperty(exports, "buildEmbeddedFontStyles", {
|
|
4057
4057
|
enumerable: true,
|
|
4058
|
-
get: function () { return
|
|
4058
|
+
get: function () { return chunkKPZWYF44_cjs.buildEmbeddedFontStyles; }
|
|
4059
4059
|
});
|
|
4060
4060
|
Object.defineProperty(exports, "buildFieldSubstitutionContext", {
|
|
4061
4061
|
enumerable: true,
|
|
4062
|
-
get: function () { return
|
|
4062
|
+
get: function () { return chunkKPZWYF44_cjs.buildFieldSubstitutionContext; }
|
|
4063
4063
|
});
|
|
4064
4064
|
Object.defineProperty(exports, "renderChartViewModelSvg", {
|
|
4065
4065
|
enumerable: true,
|
|
@@ -4067,7 +4067,7 @@ Object.defineProperty(exports, "renderChartViewModelSvg", {
|
|
|
4067
4067
|
});
|
|
4068
4068
|
Object.defineProperty(exports, "createTranslator", {
|
|
4069
4069
|
enumerable: true,
|
|
4070
|
-
get: function () { return
|
|
4070
|
+
get: function () { return chunkSM3CWDIQ_cjs.createTranslator; }
|
|
4071
4071
|
});
|
|
4072
4072
|
exports.SMARTART_SVG_STYLE = SMARTART_SVG_STYLE;
|
|
4073
4073
|
exports.appendCommentMarkers = appendCommentMarkers;
|