ooxml-ui 1.4.1 → 1.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{chunk-CEBFGUMT.js → chunk-V5P7RPMN.js} +1 -1
- package/dist/index.js +2 -2
- package/dist/pptx/{chunk-TLLEKXWQ.mjs → chunk-LQLOD3HL.mjs} +21 -6
- package/dist/pptx/{chunk-SOHTHDYV.cjs → chunk-O2TZQM65.cjs} +21 -5
- package/dist/pptx/dom/index.cjs +198 -198
- package/dist/pptx/dom/index.mjs +2 -2
- package/dist/pptx/index.cjs +2708 -2704
- package/dist/pptx/index.mjs +1 -1
- package/dist/pptx/render/paragraph-spacing.d.ts +21 -0
- package/dist/pptx/render/paragraph-spacing.d.ts.map +1 -1
- package/dist/pptx/render/table-cell-paragraphs.d.ts.map +1 -1
- package/dist/pptx/render/table-style.d.ts +6 -0
- package/dist/pptx/render/table-style.d.ts.map +1 -1
- package/dist/pptx/render/text-paragraphs.d.ts.map +1 -1
- package/dist/teams.js +1 -1
- package/dist/visio/shapes-window.d.ts +16 -5
- package/dist/visio/viewer-draw-tool.d.ts +11 -1
- package/dist/visio/viewer-stencil.d.ts +1 -1
- package/dist/visio.js +44 -36
- package/dist/xlsx.js +3 -3
- package/package.json +2 -2
- /package/dist/{chunk-F23XSUJD.js → chunk-YNGNCKBE.js} +0 -0
package/dist/pptx/dom/index.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkO2TZQM65_cjs = require('../chunk-O2TZQM65.cjs');
|
|
4
4
|
require('../chunk-WSTWYZFM.cjs');
|
|
5
5
|
var chunk2JEQHIAL_cjs = require('../chunk-2JEQHIAL.cjs');
|
|
6
6
|
require('../chunk-IOR4KOGN.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 = chunkO2TZQM65_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 = chunkO2TZQM65_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 - chunkO2TZQM65_cjs.COMMENT_MARKER_SIZE / 2}px`,
|
|
143
|
+
top: `${marker.y - chunkO2TZQM65_cjs.COMMENT_MARKER_SIZE / 2}px`,
|
|
144
|
+
width: `${chunkO2TZQM65_cjs.COMMENT_MARKER_SIZE}px`,
|
|
145
|
+
height: `${chunkO2TZQM65_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 = chunkO2TZQM65_cjs.getComputedEffectStyle(el);
|
|
214
214
|
const groupStyle = {};
|
|
215
215
|
if (fx2.filter) {
|
|
216
216
|
groupStyle.filter = fx2.filter;
|
|
@@ -232,7 +232,7 @@ function getShapeFillStrokeStyle(el, animatesFill, animatesStroke) {
|
|
|
232
232
|
style[key] = value;
|
|
233
233
|
}
|
|
234
234
|
}
|
|
235
|
-
const stroke =
|
|
235
|
+
const stroke = chunkO2TZQM65_cjs.getComputedStrokeStyle(el);
|
|
236
236
|
if (stroke.borderWidth > 0) {
|
|
237
237
|
if (animatesStroke) {
|
|
238
238
|
style["borderWidth"] = stroke.cssBorderWidth;
|
|
@@ -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 = chunkO2TZQM65_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, chunkO2TZQM65_cjs.getComputed3dStyle(el));
|
|
272
|
+
if (chunkO2TZQM65_cjs.isHollowShapeElement(el)) {
|
|
273
273
|
style["pointerEvents"] = "none";
|
|
274
274
|
}
|
|
275
|
-
const geometry =
|
|
275
|
+
const geometry = chunkO2TZQM65_cjs.resolveShapeGeometry(el);
|
|
276
276
|
switch (geometry.kind) {
|
|
277
277
|
case "bare":
|
|
278
278
|
style["backgroundColor"] = "transparent";
|
|
@@ -306,12 +306,12 @@ function getTextBlockStyle(el) {
|
|
|
306
306
|
if (!pptx.hasTextProperties(el)) {
|
|
307
307
|
return {};
|
|
308
308
|
}
|
|
309
|
-
const base =
|
|
309
|
+
const base = chunkO2TZQM65_cjs.buildTextBlockStyle(el, {
|
|
310
310
|
fallbackColor: chunkIURZJAWP_cjs.DEFAULT_TEXT_COLOR,
|
|
311
311
|
bodyLayout: true,
|
|
312
312
|
pxLengths: true
|
|
313
313
|
});
|
|
314
|
-
const scene3d =
|
|
314
|
+
const scene3d = chunkO2TZQM65_cjs.buildTextBody3DSceneStyle(el.textStyle, { width: el.width, height: el.height });
|
|
315
315
|
if (!scene3d) {
|
|
316
316
|
return base;
|
|
317
317
|
}
|
|
@@ -416,7 +416,7 @@ function renderSlideStage(options) {
|
|
|
416
416
|
"--pptxv-grid-size": `${options.gridSpacingPx ?? 10}px`,
|
|
417
417
|
// One device pixel in slide px: thin strokes stay visible on screen.
|
|
418
418
|
...chunk7DMJEYQJ_cjs.deviceStrokeStageStyle(scale),
|
|
419
|
-
...
|
|
419
|
+
...chunkO2TZQM65_cjs.getSlideBackgroundStyle(slide, { widthPx: canvasSize.width, heightPx: canvasSize.height })
|
|
420
420
|
});
|
|
421
421
|
if (interactive || options.reading) {
|
|
422
422
|
stage.setAttribute("role", "region");
|
|
@@ -457,19 +457,19 @@ function renderSlideStage(options) {
|
|
|
457
457
|
selectedElementIds: options.selectedElementIds,
|
|
458
458
|
registry,
|
|
459
459
|
renderElement(element, zIndex) {
|
|
460
|
-
if (!
|
|
460
|
+
if (!chunkO2TZQM65_cjs.isElementRendered(element)) {
|
|
461
461
|
return null;
|
|
462
462
|
}
|
|
463
463
|
const node = registry.resolve(element.type)(element, zIndex, context);
|
|
464
464
|
if (node && interactive && "setAttribute" in node) {
|
|
465
|
-
const templateLocked =
|
|
465
|
+
const templateLocked = chunkO2TZQM65_cjs.isTemplateElementId(element.id) && !options.templateEditing;
|
|
466
466
|
if (templateLocked) {
|
|
467
467
|
node.style.pointerEvents = "none";
|
|
468
468
|
}
|
|
469
469
|
node.setAttribute("data-pptx-element", "true");
|
|
470
470
|
}
|
|
471
|
-
if (node && element.type !== "text" && element.type !== "shape" && element.type !== "connector" &&
|
|
472
|
-
const hitTargetStyle =
|
|
471
|
+
if (node && element.type !== "text" && element.type !== "shape" && element.type !== "connector" && chunkO2TZQM65_cjs.shouldRenderHitTarget(interactive, options.presenting ?? false)) {
|
|
472
|
+
const hitTargetStyle = chunkO2TZQM65_cjs.elementHitTargetStyle(element);
|
|
473
473
|
if (hitTargetStyle) {
|
|
474
474
|
const hitTarget = createEl(doc, "div", void 0, hitTargetStyle);
|
|
475
475
|
hitTarget.setAttribute("aria-hidden", "true");
|
|
@@ -488,20 +488,20 @@ function renderSlideStage(options) {
|
|
|
488
488
|
}
|
|
489
489
|
});
|
|
490
490
|
if (interactive || options.reading) {
|
|
491
|
-
|
|
491
|
+
chunkO2TZQM65_cjs.applyRenderedElementAccessibility(stage, slide.elements, {
|
|
492
492
|
presenting: options.presenting ?? false
|
|
493
493
|
});
|
|
494
494
|
}
|
|
495
495
|
if (interactive) {
|
|
496
|
-
|
|
496
|
+
chunkO2TZQM65_cjs.applyElementActionAffordances(
|
|
497
497
|
stage,
|
|
498
498
|
slide.elements.filter(
|
|
499
|
-
(element) => options.templateEditing || !
|
|
499
|
+
(element) => options.templateEditing || !chunkO2TZQM65_cjs.isTemplateElementId(element.id)
|
|
500
500
|
),
|
|
501
501
|
{
|
|
502
502
|
canInteract: true,
|
|
503
503
|
presenting: options.presenting ?? false,
|
|
504
|
-
labels:
|
|
504
|
+
labels: chunkO2TZQM65_cjs.actionAffordanceLabels((key) => t(key))
|
|
505
505
|
}
|
|
506
506
|
);
|
|
507
507
|
}
|
|
@@ -557,7 +557,7 @@ function createChartTitleEditor(container, onCommit) {
|
|
|
557
557
|
|
|
558
558
|
// src/pptx/dom/elements/chart-editable.ts
|
|
559
559
|
function attachChartEditing(container, element, context, repaint) {
|
|
560
|
-
if (element.type !== "chart" || !context.interactive || !context.onChartPointChange || !
|
|
560
|
+
if (element.type !== "chart" || !context.interactive || !context.onChartPointChange || !chunkO2TZQM65_cjs.canDrillDown(element)) {
|
|
561
561
|
return;
|
|
562
562
|
}
|
|
563
563
|
const chart = element;
|
|
@@ -597,7 +597,7 @@ function attachChartEditing(container, element, context, repaint) {
|
|
|
597
597
|
if (!rect) {
|
|
598
598
|
return;
|
|
599
599
|
}
|
|
600
|
-
const step2 =
|
|
600
|
+
const step2 = chunkO2TZQM65_cjs.advanceChartMarkDrag(activeMark, event.clientX, event.clientY, rect);
|
|
601
601
|
if (!step2) {
|
|
602
602
|
return;
|
|
603
603
|
}
|
|
@@ -687,7 +687,7 @@ function attachChartEditing(container, element, context, repaint) {
|
|
|
687
687
|
seriesIndex: part.seriesIndex,
|
|
688
688
|
pointIndex: part.pointIndex
|
|
689
689
|
});
|
|
690
|
-
const startedMark =
|
|
690
|
+
const startedMark = chunkO2TZQM65_cjs.beginChartMarkDrag({
|
|
691
691
|
part,
|
|
692
692
|
geometry: markGeometry,
|
|
693
693
|
chartData: chart.chartData,
|
|
@@ -779,7 +779,7 @@ function mountThreeViewInto(doc, wrapper, options) {
|
|
|
779
779
|
return view;
|
|
780
780
|
}
|
|
781
781
|
function isChart3DEditable(element, context) {
|
|
782
|
-
return element.type === "chart" && Boolean(context.interactive) && Boolean(context.onChartPointChange) && Boolean(context.selectedElementIds?.has(element.id)) &&
|
|
782
|
+
return element.type === "chart" && Boolean(context.interactive) && Boolean(context.onChartPointChange) && Boolean(context.selectedElementIds?.has(element.id)) && chunkO2TZQM65_cjs.canDrillDown(element);
|
|
783
783
|
}
|
|
784
784
|
function selectedChartPartOf(element, context) {
|
|
785
785
|
return context.chartPartSelection?.elementId === element.id ? context.chartPartSelection.part : null;
|
|
@@ -821,13 +821,13 @@ function wireChartThreeViewEvents(view, element, context, badgeHost) {
|
|
|
821
821
|
const listeners = new AbortController();
|
|
822
822
|
chartViewListeners.set(view, listeners);
|
|
823
823
|
view.addEventListener(
|
|
824
|
-
|
|
825
|
-
(event) =>
|
|
824
|
+
chunkO2TZQM65_cjs.THREE_VIEW_EVENTS.select,
|
|
825
|
+
(event) => chunkO2TZQM65_cjs.applyChart3DSelect(bridge, event.detail.part),
|
|
826
826
|
{ signal: listeners.signal }
|
|
827
827
|
);
|
|
828
828
|
view.addEventListener(
|
|
829
|
-
|
|
830
|
-
(event) =>
|
|
829
|
+
chunkO2TZQM65_cjs.THREE_VIEW_EVENTS.drag,
|
|
830
|
+
(event) => chunkO2TZQM65_cjs.applyChart3DDrag(bridge, event.detail),
|
|
831
831
|
{ signal: listeners.signal }
|
|
832
832
|
);
|
|
833
833
|
}
|
|
@@ -841,7 +841,7 @@ function applyThreeViewTextStyle(el, style) {
|
|
|
841
841
|
// src/pptx/dom/elements/chart.ts
|
|
842
842
|
var renderChartElement = (element, zIndex, context) => {
|
|
843
843
|
const wrapper = renderChartSvgElement(element, zIndex, context);
|
|
844
|
-
const spec = wrapper ?
|
|
844
|
+
const spec = wrapper ? chunkO2TZQM65_cjs.resolveChartThreeViewSpec(element, rendering3DFlagsOf(context)) : null;
|
|
845
845
|
if (!wrapper || !spec) {
|
|
846
846
|
return wrapper;
|
|
847
847
|
}
|
|
@@ -863,11 +863,11 @@ var renderChartSvgElement = (element, zIndex, context) => {
|
|
|
863
863
|
doc,
|
|
864
864
|
"div",
|
|
865
865
|
"pptxv-element pptxv-chart",
|
|
866
|
-
|
|
866
|
+
chunkO2TZQM65_cjs.getContainerStyle(element, zIndex)
|
|
867
867
|
);
|
|
868
868
|
container.dataset.elementId = element.id;
|
|
869
869
|
const animationState = context.presentationStates?.get(element.id);
|
|
870
|
-
const chartData = element.chartData ?
|
|
870
|
+
const chartData = element.chartData ? chunkO2TZQM65_cjs.resolveRevealedChartData(element.chartData, animationState) : element.chartData;
|
|
871
871
|
if (!chartData || chartData.series.length === 0) {
|
|
872
872
|
container.appendChild(renderChartPlaceholder(doc, chartData?.chartType ?? "bar", context.t));
|
|
873
873
|
return container;
|
|
@@ -915,7 +915,7 @@ function renderChartPlaceholder(doc, chartType, t) {
|
|
|
915
915
|
border: "1px dashed #cbd5e1",
|
|
916
916
|
boxSizing: "border-box"
|
|
917
917
|
});
|
|
918
|
-
placeholder.textContent =
|
|
918
|
+
placeholder.textContent = chunkO2TZQM65_cjs.chartPlaceholderLabel(chartType, (key, params) => t(key, params));
|
|
919
919
|
return placeholder;
|
|
920
920
|
}
|
|
921
921
|
|
|
@@ -979,7 +979,7 @@ function createRunBaseNode(doc, run) {
|
|
|
979
979
|
verticalAlign: "middle",
|
|
980
980
|
fontFamily: "'Cambria Math', 'STIX Two Math', serif"
|
|
981
981
|
});
|
|
982
|
-
math.innerHTML =
|
|
982
|
+
math.innerHTML = chunkO2TZQM65_cjs.runEquationMathMl(run.equation);
|
|
983
983
|
host.appendChild(math);
|
|
984
984
|
if (run.equation.number) {
|
|
985
985
|
const number = createEl(doc, "span", "pptxv-equation-number", {
|
|
@@ -1091,7 +1091,7 @@ function renderTextBlock(doc, paragraphs, textStyle, build) {
|
|
|
1091
1091
|
bullet.textContent = para.bulletMarker;
|
|
1092
1092
|
p.appendChild(bullet);
|
|
1093
1093
|
}
|
|
1094
|
-
const spec = build ?
|
|
1094
|
+
const spec = build ? chunkO2TZQM65_cjs.buildTextBuildSpec(
|
|
1095
1095
|
build.elementId,
|
|
1096
1096
|
paragraphs.indexOf(para),
|
|
1097
1097
|
para.runs.filter((run) => run.text !== NEWLINE_RUN).map((run) => ({ text: run.text, style: run.style })),
|
|
@@ -1100,7 +1100,7 @@ function renderTextBlock(doc, paragraphs, textStyle, build) {
|
|
|
1100
1100
|
if (spec && spec.granularity !== "paragraph") {
|
|
1101
1101
|
for (const span of spec.spans ?? []) {
|
|
1102
1102
|
const node = createEl(doc, "span");
|
|
1103
|
-
applyStyleMap(node, { ...span.style ?? {}, ...
|
|
1103
|
+
applyStyleMap(node, { ...span.style ?? {}, ...chunkO2TZQM65_cjs.textBuildSpanStyle(span) });
|
|
1104
1104
|
if (span.animId) {
|
|
1105
1105
|
node.setAttribute("data-anim-id", span.animId);
|
|
1106
1106
|
}
|
|
@@ -1113,7 +1113,7 @@ function renderTextBlock(doc, paragraphs, textStyle, build) {
|
|
|
1113
1113
|
let runHost = p;
|
|
1114
1114
|
if (spec) {
|
|
1115
1115
|
const wrapper = createEl(doc, "span");
|
|
1116
|
-
applyStyleMap(wrapper,
|
|
1116
|
+
applyStyleMap(wrapper, chunkO2TZQM65_cjs.textBuildSpanStyle(spec));
|
|
1117
1117
|
if (spec.animId) {
|
|
1118
1118
|
wrapper.setAttribute("data-anim-id", spec.animId);
|
|
1119
1119
|
}
|
|
@@ -1169,7 +1169,7 @@ var renderConnectorElement = (element, zIndex, context) => {
|
|
|
1169
1169
|
if (element.hidden) {
|
|
1170
1170
|
wrapper.style.display = "none";
|
|
1171
1171
|
}
|
|
1172
|
-
const lineGlow =
|
|
1172
|
+
const lineGlow = chunkO2TZQM65_cjs.getLineGlowFilterCss(ss);
|
|
1173
1173
|
if (lineGlow) {
|
|
1174
1174
|
wrapper.style.filter = lineGlow;
|
|
1175
1175
|
}
|
|
@@ -1177,7 +1177,7 @@ var renderConnectorElement = (element, zIndex, context) => {
|
|
|
1177
1177
|
svg.setAttribute("style", "overflow:visible;display:block");
|
|
1178
1178
|
const seed = element.id.replace(/[^a-zA-Z0-9_-]/gu, "_");
|
|
1179
1179
|
const defs = createSvgEl(doc, "defs");
|
|
1180
|
-
const lineShadow =
|
|
1180
|
+
const lineShadow = chunkO2TZQM65_cjs.getLineShadowParams(ss);
|
|
1181
1181
|
const shadowId = lineShadow ? `${seed}-line-shadow` : void 0;
|
|
1182
1182
|
if (lineShadow && shadowId) {
|
|
1183
1183
|
const filter = createSvgEl(doc, "filter", {
|
|
@@ -1198,8 +1198,8 @@ var renderConnectorElement = (element, zIndex, context) => {
|
|
|
1198
1198
|
);
|
|
1199
1199
|
defs.appendChild(filter);
|
|
1200
1200
|
}
|
|
1201
|
-
const startArrow =
|
|
1202
|
-
const endArrow =
|
|
1201
|
+
const startArrow = chunkO2TZQM65_cjs.normalizeArrow(ss?.connectorStartArrow);
|
|
1202
|
+
const endArrow = chunkO2TZQM65_cjs.normalizeArrow(ss?.connectorEndArrow);
|
|
1203
1203
|
const startMarkerId = startArrow ? `${seed}-start` : void 0;
|
|
1204
1204
|
const endMarkerId = endArrow ? `${seed}-end` : void 0;
|
|
1205
1205
|
if (startArrow && startMarkerId) {
|
|
@@ -1222,10 +1222,10 @@ var renderConnectorElement = (element, zIndex, context) => {
|
|
|
1222
1222
|
svg.appendChild(defs);
|
|
1223
1223
|
}
|
|
1224
1224
|
const compound = ss?.compoundLine;
|
|
1225
|
-
const offsets =
|
|
1226
|
-
const widths =
|
|
1225
|
+
const offsets = chunkO2TZQM65_cjs.getCompoundLineOffsets(compound, strokeWidth);
|
|
1226
|
+
const widths = chunkO2TZQM65_cjs.getCompoundLineWidths(compound, strokeWidth);
|
|
1227
1227
|
const shapeType = pptx.hasShapeProperties(element) ? element.shapeType : void 0;
|
|
1228
|
-
const usePath =
|
|
1228
|
+
const usePath = chunkO2TZQM65_cjs.connectorNeedsPath(shapeType) && pptx.hasShapeProperties(element);
|
|
1229
1229
|
const pathData = usePath ? pptx.getConnectorPathGeometry(element).pathData : void 0;
|
|
1230
1230
|
const x1 = element.flipHorizontal ? w : 0;
|
|
1231
1231
|
const y1 = element.flipVertical ? h : 0;
|
|
@@ -1236,7 +1236,7 @@ var renderConnectorElement = (element, zIndex, context) => {
|
|
|
1236
1236
|
d: pathData ?? `M${x1},${y1} L${x2},${y2}`,
|
|
1237
1237
|
fill: "none",
|
|
1238
1238
|
stroke: "transparent",
|
|
1239
|
-
"stroke-width":
|
|
1239
|
+
"stroke-width": chunkO2TZQM65_cjs.connectorHitStrokeWidth(strokeWidth),
|
|
1240
1240
|
"stroke-linecap": "round",
|
|
1241
1241
|
"stroke-linejoin": "round"
|
|
1242
1242
|
});
|
|
@@ -1286,7 +1286,7 @@ function appendConnectorLabel(wrapper, element, context) {
|
|
|
1286
1286
|
if (!pptx.hasTextProperties(element)) {
|
|
1287
1287
|
return;
|
|
1288
1288
|
}
|
|
1289
|
-
const paragraphs =
|
|
1289
|
+
const paragraphs = chunkO2TZQM65_cjs.buildParagraphs(element, context.fieldContext);
|
|
1290
1290
|
if (!paragraphs.some((paragraph) => paragraph.runs.length > 0)) {
|
|
1291
1291
|
return;
|
|
1292
1292
|
}
|
|
@@ -1306,7 +1306,7 @@ function appendConnectorLabel(wrapper, element, context) {
|
|
|
1306
1306
|
}
|
|
1307
1307
|
function buildMarker(context, id, arrow, strokeColor, size) {
|
|
1308
1308
|
const doc = context.document;
|
|
1309
|
-
const shape =
|
|
1309
|
+
const shape = chunkO2TZQM65_cjs.markerPath(arrow, size.width, size.length);
|
|
1310
1310
|
const marker = createSvgEl(doc, "marker", {
|
|
1311
1311
|
id,
|
|
1312
1312
|
viewBox: "0 0 10 10",
|
|
@@ -1390,7 +1390,7 @@ var renderContentPartElement = (element, zIndex, context) => {
|
|
|
1390
1390
|
doc,
|
|
1391
1391
|
"div",
|
|
1392
1392
|
"pptxv-element pptxv-contentpart",
|
|
1393
|
-
|
|
1393
|
+
chunkO2TZQM65_cjs.getContainerStyle(element, zIndex)
|
|
1394
1394
|
);
|
|
1395
1395
|
el.dataset.elementId = element.id;
|
|
1396
1396
|
const strokes = element.inkStrokes;
|
|
@@ -1423,7 +1423,7 @@ var renderContentPartElement = (element, zIndex, context) => {
|
|
|
1423
1423
|
return el;
|
|
1424
1424
|
};
|
|
1425
1425
|
function renderEquations(element, context) {
|
|
1426
|
-
if (!pptx.hasTextProperties(element) || !
|
|
1426
|
+
if (!pptx.hasTextProperties(element) || !chunkO2TZQM65_cjs.isEquationOnlyText(element.textSegments)) {
|
|
1427
1427
|
return null;
|
|
1428
1428
|
}
|
|
1429
1429
|
const equations = (element.textSegments ?? []).filter((segment) => segment.equationXml);
|
|
@@ -1437,7 +1437,7 @@ function renderEquations(element, context) {
|
|
|
1437
1437
|
fontFamily: "'Cambria Math', 'STIX Two Math', serif"
|
|
1438
1438
|
});
|
|
1439
1439
|
for (const segment of equations) {
|
|
1440
|
-
const mathml =
|
|
1440
|
+
const mathml = chunkO2TZQM65_cjs.convertOmmlToMathMl(segment.equationXml);
|
|
1441
1441
|
if (!mathml) {
|
|
1442
1442
|
continue;
|
|
1443
1443
|
}
|
|
@@ -1451,7 +1451,7 @@ function renderEquations(element, context) {
|
|
|
1451
1451
|
flex: 1,
|
|
1452
1452
|
textAlign: "center"
|
|
1453
1453
|
});
|
|
1454
|
-
math.innerHTML =
|
|
1454
|
+
math.innerHTML = chunkO2TZQM65_cjs.sanitizeMathMl(mathml);
|
|
1455
1455
|
row.appendChild(math);
|
|
1456
1456
|
if (segment.equationNumber) {
|
|
1457
1457
|
const number = createEl(context.document, "span", "pptxv-equation-number", {
|
|
@@ -1469,7 +1469,7 @@ function renderExtrusionOverlay(doc, element) {
|
|
|
1469
1469
|
return null;
|
|
1470
1470
|
}
|
|
1471
1471
|
const fill = chunkIURZJAWP_cjs.getComputedFillStyle(element)?.backgroundColor;
|
|
1472
|
-
const data =
|
|
1472
|
+
const data = chunkO2TZQM65_cjs.build3DExtrusionData(
|
|
1473
1473
|
element.shapeStyle?.shape3d,
|
|
1474
1474
|
element.shapeStyle?.scene3d,
|
|
1475
1475
|
fill,
|
|
@@ -1531,7 +1531,7 @@ function appendOwnReflection(doc, host, element, mediaDataUrls, suppressOwnRefle
|
|
|
1531
1531
|
if (suppressOwnReflection) {
|
|
1532
1532
|
return;
|
|
1533
1533
|
}
|
|
1534
|
-
const wrapperStyle =
|
|
1534
|
+
const wrapperStyle = chunkO2TZQM65_cjs.getComputedEffectStyle(element).reflection;
|
|
1535
1535
|
if (!wrapperStyle) {
|
|
1536
1536
|
return;
|
|
1537
1537
|
}
|
|
@@ -1555,9 +1555,9 @@ function buildReflectionMirrorContent(doc, element, mediaDataUrls, parentGroupFi
|
|
|
1555
1555
|
if (groupFilterDefs) {
|
|
1556
1556
|
wrap.appendChild(groupFilterDefs);
|
|
1557
1557
|
}
|
|
1558
|
-
const childParentFill =
|
|
1558
|
+
const childParentFill = chunkO2TZQM65_cjs.getGroupChildParentFill(element, parentGroupFill);
|
|
1559
1559
|
for (const child of element.children ?? []) {
|
|
1560
|
-
const childWrap = createEl(doc, "div", void 0,
|
|
1560
|
+
const childWrap = createEl(doc, "div", void 0, chunkO2TZQM65_cjs.getContainerStyle(child, 0));
|
|
1561
1561
|
childWrap.appendChild(
|
|
1562
1562
|
buildReflectionMirrorContent(doc, child, mediaDataUrls, childParentFill)
|
|
1563
1563
|
);
|
|
@@ -1571,7 +1571,7 @@ function buildReflectionMirrorContent(doc, element, mediaDataUrls, parentGroupFi
|
|
|
1571
1571
|
height: "100%",
|
|
1572
1572
|
...getShapeFillStrokeStyle(element)
|
|
1573
1573
|
});
|
|
1574
|
-
const inheritedFill =
|
|
1574
|
+
const inheritedFill = chunkO2TZQM65_cjs.resolveGroupChildFill(element, parentGroupFill);
|
|
1575
1575
|
if (inheritedFill) {
|
|
1576
1576
|
applyInheritedFill(box, inheritedFill);
|
|
1577
1577
|
}
|
|
@@ -1592,12 +1592,12 @@ function buildReflectionMirrorContent(doc, element, mediaDataUrls, parentGroupFi
|
|
|
1592
1592
|
box.appendChild(gradientOutline);
|
|
1593
1593
|
}
|
|
1594
1594
|
if (pptx.isImageLikeElement(element)) {
|
|
1595
|
-
const src =
|
|
1595
|
+
const src = chunkO2TZQM65_cjs.getImageSrc(element, new Map(mediaDataUrls));
|
|
1596
1596
|
if (src) {
|
|
1597
1597
|
const img = createEl(doc, "img", void 0, {
|
|
1598
1598
|
width: "100%",
|
|
1599
1599
|
height: "100%",
|
|
1600
|
-
...
|
|
1600
|
+
...chunkO2TZQM65_cjs.getImageFitStyle(element)
|
|
1601
1601
|
});
|
|
1602
1602
|
img.setAttribute("src", src);
|
|
1603
1603
|
img.setAttribute("alt", "");
|
|
@@ -1607,7 +1607,7 @@ function buildReflectionMirrorContent(doc, element, mediaDataUrls, parentGroupFi
|
|
|
1607
1607
|
appendOwnReflection(doc, box, element, mediaDataUrls, suppressOwnReflection);
|
|
1608
1608
|
return box;
|
|
1609
1609
|
}
|
|
1610
|
-
const paragraphs =
|
|
1610
|
+
const paragraphs = chunkO2TZQM65_cjs.buildParagraphs(element);
|
|
1611
1611
|
const hasText = paragraphs.some((p) => p.runs.length > 0 || p.bulletMarker !== void 0);
|
|
1612
1612
|
if (hasText) {
|
|
1613
1613
|
box.appendChild(renderTextBlock(doc, paragraphs, getTextBlockStyle(element)));
|
|
@@ -1619,20 +1619,20 @@ function buildReflectionMirrorContent(doc, element, mediaDataUrls, parentGroupFi
|
|
|
1619
1619
|
// src/pptx/dom/elements/shape-filter-defs.ts
|
|
1620
1620
|
var OUTLINE_SVG_STYLE = "position:absolute;inset:0;width:100%;height:100%;min-width:1px;min-height:1px;overflow:visible;pointer-events:none";
|
|
1621
1621
|
function renderShapeFilterDefs(doc, element) {
|
|
1622
|
-
const style =
|
|
1622
|
+
const style = chunkO2TZQM65_cjs.getEffectStyleSource(element);
|
|
1623
1623
|
if (!style) {
|
|
1624
1624
|
return null;
|
|
1625
1625
|
}
|
|
1626
1626
|
const markups = [];
|
|
1627
|
-
const duotone =
|
|
1627
|
+
const duotone = chunkO2TZQM65_cjs.getDuotoneSvgFilter(style, element.id);
|
|
1628
1628
|
if (duotone) {
|
|
1629
1629
|
markups.push(duotone.filterMarkup);
|
|
1630
1630
|
}
|
|
1631
|
-
const softEdge =
|
|
1631
|
+
const softEdge = chunkO2TZQM65_cjs.getSoftEdgeSvgFilter(style, element.id);
|
|
1632
1632
|
if (softEdge) {
|
|
1633
1633
|
markups.push(softEdge.filterMarkup);
|
|
1634
1634
|
}
|
|
1635
|
-
const bevelLighting =
|
|
1635
|
+
const bevelLighting = chunkO2TZQM65_cjs.getBevelLightingSvgFilter(element);
|
|
1636
1636
|
if (bevelLighting) {
|
|
1637
1637
|
markups.push(bevelLighting.filterMarkup);
|
|
1638
1638
|
}
|
|
@@ -1650,7 +1650,7 @@ function renderShapeFillOverlay(doc, element) {
|
|
|
1650
1650
|
if (!pptx.hasShapeProperties(element)) {
|
|
1651
1651
|
return null;
|
|
1652
1652
|
}
|
|
1653
|
-
const overlay =
|
|
1653
|
+
const overlay = chunkO2TZQM65_cjs.getComputedEffectStyle(element).fillOverlay;
|
|
1654
1654
|
if (!overlay) {
|
|
1655
1655
|
return null;
|
|
1656
1656
|
}
|
|
@@ -1665,7 +1665,7 @@ function renderShapeFillOverlay(doc, element) {
|
|
|
1665
1665
|
return layer;
|
|
1666
1666
|
}
|
|
1667
1667
|
function renderReflectionOverlay(doc, element, mediaDataUrls) {
|
|
1668
|
-
const wrapperStyle =
|
|
1668
|
+
const wrapperStyle = chunkO2TZQM65_cjs.getComputedEffectStyle(element).reflection;
|
|
1669
1669
|
if (!wrapperStyle) {
|
|
1670
1670
|
return null;
|
|
1671
1671
|
}
|
|
@@ -1675,13 +1675,13 @@ function renderReflectionOverlay(doc, element, mediaDataUrls) {
|
|
|
1675
1675
|
return layer;
|
|
1676
1676
|
}
|
|
1677
1677
|
function renderHollowHitOutline(doc, element) {
|
|
1678
|
-
const hit =
|
|
1678
|
+
const hit = chunkO2TZQM65_cjs.buildHollowHitOutline(element);
|
|
1679
1679
|
if (!hit) {
|
|
1680
1680
|
return null;
|
|
1681
1681
|
}
|
|
1682
1682
|
const svg = createSvgEl(doc, "svg", {
|
|
1683
1683
|
"aria-hidden": "true",
|
|
1684
|
-
viewBox:
|
|
1684
|
+
viewBox: chunkO2TZQM65_cjs.strokeOutlineViewBox(element),
|
|
1685
1685
|
preserveAspectRatio: "none"
|
|
1686
1686
|
});
|
|
1687
1687
|
svg.setAttribute("style", OUTLINE_SVG_STYLE);
|
|
@@ -1714,20 +1714,20 @@ function renderShapeSubpathFillOverlay(doc, element) {
|
|
|
1714
1714
|
return svg;
|
|
1715
1715
|
}
|
|
1716
1716
|
function renderStrokeOutline(doc, element) {
|
|
1717
|
-
const outline =
|
|
1717
|
+
const outline = chunkO2TZQM65_cjs.buildStrokeOutline(element);
|
|
1718
1718
|
if (!outline) {
|
|
1719
1719
|
return null;
|
|
1720
1720
|
}
|
|
1721
1721
|
const svg = createSvgEl(doc, "svg", {
|
|
1722
1722
|
class: "pptx-vanilla-gradient-outline",
|
|
1723
1723
|
"aria-hidden": "true",
|
|
1724
|
-
viewBox:
|
|
1724
|
+
viewBox: chunkO2TZQM65_cjs.strokeOutlineViewBox(element),
|
|
1725
1725
|
preserveAspectRatio: "none"
|
|
1726
1726
|
});
|
|
1727
1727
|
svg.setAttribute("style", OUTLINE_SVG_STYLE);
|
|
1728
1728
|
if (outline.paint) {
|
|
1729
1729
|
const defs = createSvgEl(doc, "defs");
|
|
1730
|
-
if (
|
|
1730
|
+
if (chunkO2TZQM65_cjs.isPatternPaint(outline.paint)) {
|
|
1731
1731
|
const pattern = createSvgEl(doc, "pattern", {
|
|
1732
1732
|
id: outline.paint.id,
|
|
1733
1733
|
width: outline.paint.width,
|
|
@@ -1742,7 +1742,7 @@ function renderStrokeOutline(doc, element) {
|
|
|
1742
1742
|
pattern.appendChild(image);
|
|
1743
1743
|
defs.appendChild(pattern);
|
|
1744
1744
|
} else {
|
|
1745
|
-
defs.innerHTML =
|
|
1745
|
+
defs.innerHTML = chunkO2TZQM65_cjs.svgGradientMarkup(outline.paint);
|
|
1746
1746
|
}
|
|
1747
1747
|
svg.appendChild(defs);
|
|
1748
1748
|
}
|
|
@@ -1793,14 +1793,14 @@ function indexRenderedNodes(root) {
|
|
|
1793
1793
|
return byId;
|
|
1794
1794
|
}
|
|
1795
1795
|
function paintInheritedFill(node, element, parentGroupFill) {
|
|
1796
|
-
const inherited =
|
|
1796
|
+
const inherited = chunkO2TZQM65_cjs.resolveGroupChildFill(element, parentGroupFill);
|
|
1797
1797
|
if (inherited) {
|
|
1798
1798
|
applyGroupChildFill(node, inherited);
|
|
1799
1799
|
}
|
|
1800
1800
|
if (element.type !== "group") {
|
|
1801
1801
|
return;
|
|
1802
1802
|
}
|
|
1803
|
-
const childFill =
|
|
1803
|
+
const childFill = chunkO2TZQM65_cjs.getGroupChildParentFill(element, parentGroupFill);
|
|
1804
1804
|
if (!childFill) {
|
|
1805
1805
|
return;
|
|
1806
1806
|
}
|
|
@@ -1814,7 +1814,7 @@ function paintInheritedFill(node, element, parentGroupFill) {
|
|
|
1814
1814
|
}
|
|
1815
1815
|
var renderGroupElement = (element, zIndex, context) => {
|
|
1816
1816
|
const el = createEl(context.document, "div", "pptxv-element pptxv-group", {
|
|
1817
|
-
...
|
|
1817
|
+
...chunkO2TZQM65_cjs.getContainerStyle(element, zIndex),
|
|
1818
1818
|
// A group paints no fill/outline of its own, but `p:grpSpPr/a:effectLst`
|
|
1819
1819
|
// DOES carry a shadow/glow/soft-edge for the group's own composite
|
|
1820
1820
|
// raster (see shared `getComputedEffectStyle`), expressed as `filter` /
|
|
@@ -1831,7 +1831,7 @@ var renderGroupElement = (element, zIndex, context) => {
|
|
|
1831
1831
|
el.appendChild(reflection);
|
|
1832
1832
|
}
|
|
1833
1833
|
if (element.type === "group" && element.children?.length) {
|
|
1834
|
-
const parentGroupFill =
|
|
1834
|
+
const parentGroupFill = chunkO2TZQM65_cjs.getGroupChildParentFill(element);
|
|
1835
1835
|
element.children.forEach((child, index) => {
|
|
1836
1836
|
const childEl = context.renderElement(child, index);
|
|
1837
1837
|
if (childEl) {
|
|
@@ -1846,12 +1846,12 @@ var renderGroupElement = (element, zIndex, context) => {
|
|
|
1846
1846
|
// src/pptx/dom/elements/image.ts
|
|
1847
1847
|
var renderImageElement = (element, zIndex, context) => {
|
|
1848
1848
|
const doc = context.document;
|
|
1849
|
-
const geometry = element.type === "image" || element.type === "picture" ?
|
|
1849
|
+
const geometry = element.type === "image" || element.type === "picture" ? chunkO2TZQM65_cjs.resolveShapeGeometry(element) : void 0;
|
|
1850
1850
|
const geometryClipPath = geometry?.kind === "clipPath" ? geometry.clipPath : void 0;
|
|
1851
|
-
const cropShapeClipPath = element.type === "image" || element.type === "picture" ?
|
|
1851
|
+
const cropShapeClipPath = element.type === "image" || element.type === "picture" ? chunkO2TZQM65_cjs.getCropShapeClipPath(element.cropShape, element.width, element.height) : void 0;
|
|
1852
1852
|
const el = createEl(doc, "div", "pptxv-element pptxv-image", {
|
|
1853
|
-
...
|
|
1854
|
-
overflow:
|
|
1853
|
+
...chunkO2TZQM65_cjs.getContainerStyle(element, zIndex),
|
|
1854
|
+
overflow: chunkO2TZQM65_cjs.getImageOverflow(element),
|
|
1855
1855
|
// The picture's own shape geometry (prstGeom / custGeom) clips the frame,
|
|
1856
1856
|
// not the `<img>` - a pixel-space clip on the img would be scaled and
|
|
1857
1857
|
// shifted by the crop transform.
|
|
@@ -1859,11 +1859,11 @@ var renderImageElement = (element, zIndex, context) => {
|
|
|
1859
1859
|
...geometryClipPath ? { clipPath: geometryClipPath } : cropShapeClipPath ? { clipPath: cropShapeClipPath } : {}
|
|
1860
1860
|
});
|
|
1861
1861
|
el.dataset.elementId = element.id;
|
|
1862
|
-
const src =
|
|
1862
|
+
const src = chunkO2TZQM65_cjs.getImageSrc(element, new Map(context.mediaDataUrls));
|
|
1863
1863
|
if (!src) {
|
|
1864
1864
|
return el;
|
|
1865
1865
|
}
|
|
1866
|
-
const fx =
|
|
1866
|
+
const fx = chunkO2TZQM65_cjs.getComputedImageStyle(element);
|
|
1867
1867
|
for (const f of fx.svgFilters) {
|
|
1868
1868
|
const svg = createSvgEl(doc, "svg", { width: 0, height: 0, "aria-hidden": "true" });
|
|
1869
1869
|
svg.setAttribute("style", "position:absolute;width:0;height:0;overflow:hidden");
|
|
@@ -1876,7 +1876,7 @@ var renderImageElement = (element, zIndex, context) => {
|
|
|
1876
1876
|
el.appendChild(svg);
|
|
1877
1877
|
}
|
|
1878
1878
|
const reflection = renderReflectionOverlay(doc, element, context.mediaDataUrls);
|
|
1879
|
-
const tiling =
|
|
1879
|
+
const tiling = chunkO2TZQM65_cjs.getImageTilingStyle(element, chunkO2TZQM65_cjs.getCachedNativeImageSize(src));
|
|
1880
1880
|
if (tiling) {
|
|
1881
1881
|
const tile = createEl(doc, "div", "pptxv-image-tile", tiling);
|
|
1882
1882
|
if (fx.filter) {
|
|
@@ -1885,10 +1885,10 @@ var renderImageElement = (element, zIndex, context) => {
|
|
|
1885
1885
|
if (fx.opacity !== void 0) {
|
|
1886
1886
|
tile.style.opacity = String(fx.opacity);
|
|
1887
1887
|
}
|
|
1888
|
-
if (!
|
|
1889
|
-
void
|
|
1888
|
+
if (!chunkO2TZQM65_cjs.getCachedNativeImageSize(src)) {
|
|
1889
|
+
void chunkO2TZQM65_cjs.probeNativeImageSize(src).then((size) => {
|
|
1890
1890
|
if (size) {
|
|
1891
|
-
applyStyleMap(tile,
|
|
1891
|
+
applyStyleMap(tile, chunkO2TZQM65_cjs.getImageTilingStyle(element, size) ?? {});
|
|
1892
1892
|
}
|
|
1893
1893
|
return void 0;
|
|
1894
1894
|
});
|
|
@@ -1899,8 +1899,8 @@ var renderImageElement = (element, zIndex, context) => {
|
|
|
1899
1899
|
}
|
|
1900
1900
|
return el;
|
|
1901
1901
|
}
|
|
1902
|
-
const fit =
|
|
1903
|
-
const fillCounterTransform =
|
|
1902
|
+
const fit = chunkO2TZQM65_cjs.getImageFitStyle(element);
|
|
1903
|
+
const fillCounterTransform = chunkO2TZQM65_cjs.getImageFillCounterTransform(element, Boolean(fit.transform));
|
|
1904
1904
|
const img = createEl(doc, "img", void 0, {
|
|
1905
1905
|
...fit,
|
|
1906
1906
|
display: "block",
|
|
@@ -1918,14 +1918,14 @@ var renderImageElement = (element, zIndex, context) => {
|
|
|
1918
1918
|
if (element.type === "image" || element.type === "picture") {
|
|
1919
1919
|
const clrChange = element.imageEffects?.clrChange;
|
|
1920
1920
|
if (clrChange) {
|
|
1921
|
-
void
|
|
1921
|
+
void chunkO2TZQM65_cjs.resolveColorChangedImageSource(src, clrChange).then((resolved) => {
|
|
1922
1922
|
if (img.src === src || img.getAttribute("src") === src) {
|
|
1923
1923
|
img.src = resolved;
|
|
1924
1924
|
}
|
|
1925
1925
|
return void 0;
|
|
1926
1926
|
});
|
|
1927
1927
|
}
|
|
1928
|
-
const wash =
|
|
1928
|
+
const wash = chunkO2TZQM65_cjs.getImageColorWashStyle(element.imageEffects?.colorWash);
|
|
1929
1929
|
if (wash) {
|
|
1930
1930
|
el.appendChild(
|
|
1931
1931
|
createEl(doc, "div", "pptxv-image-color-wash", {
|
|
@@ -1954,7 +1954,7 @@ var renderInkElement = (element, zIndex, context) => {
|
|
|
1954
1954
|
doc,
|
|
1955
1955
|
"div",
|
|
1956
1956
|
"pptxv-element pptxv-ink",
|
|
1957
|
-
|
|
1957
|
+
chunkO2TZQM65_cjs.getContainerStyle(element, zIndex)
|
|
1958
1958
|
);
|
|
1959
1959
|
wrapper.dataset.elementId = element.id;
|
|
1960
1960
|
const paths = element.inkPaths;
|
|
@@ -1975,7 +1975,7 @@ var renderInkElement = (element, zIndex, context) => {
|
|
|
1975
1975
|
keyframes.textContent = chunkNTXHQHCS_cjs.INK_REPLAY_KEYFRAMES;
|
|
1976
1976
|
svg.appendChild(keyframes);
|
|
1977
1977
|
}
|
|
1978
|
-
const views =
|
|
1978
|
+
const views = chunkO2TZQM65_cjs.buildInkGroupStrokes(element, { color: chunkIURZJAWP_cjs.DEFAULT_STROKE_COLOR, width: 1 });
|
|
1979
1979
|
for (const [i, view] of views.entries()) {
|
|
1980
1980
|
svg.appendChild(buildStrokeSvg(doc, view, replayStyles[i]));
|
|
1981
1981
|
}
|
|
@@ -2029,12 +2029,12 @@ function wireMediaFullscreenOverlay(doc, container, mediaNode, element, context,
|
|
|
2029
2029
|
let stopButton = null;
|
|
2030
2030
|
const update = (playing) => {
|
|
2031
2031
|
const input = { fullScreen: element.fullScreen, presenting: context.presenting, playing };
|
|
2032
|
-
const active =
|
|
2032
|
+
const active = chunkO2TZQM65_cjs.isMediaFullscreenActive(input);
|
|
2033
2033
|
applyStyleMap(
|
|
2034
2034
|
container,
|
|
2035
|
-
active ?
|
|
2035
|
+
active ? chunkO2TZQM65_cjs.MEDIA_FULLSCREEN_OVERLAY_STYLE : mediaFullscreenResetStyle(baseStyle)
|
|
2036
2036
|
);
|
|
2037
|
-
if (
|
|
2037
|
+
if (chunkO2TZQM65_cjs.shouldShowMediaFullscreenStopButton(input)) {
|
|
2038
2038
|
if (!stopButton) {
|
|
2039
2039
|
stopButton = buildFullscreenStopButton(
|
|
2040
2040
|
doc,
|
|
@@ -2059,12 +2059,12 @@ function wireMediaFullscreenOverlay(doc, container, mediaNode, element, context,
|
|
|
2059
2059
|
|
|
2060
2060
|
// src/pptx/dom/elements/media.ts
|
|
2061
2061
|
function applyMediaPresentingState(el, presenting, playback) {
|
|
2062
|
-
|
|
2062
|
+
chunkO2TZQM65_cjs.applyMediaPlaybackAttributes(el, playback);
|
|
2063
2063
|
if (presenting) {
|
|
2064
|
-
|
|
2065
|
-
|
|
2064
|
+
chunkO2TZQM65_cjs.startMediaAutoplay(el, { trimStartMs: playback.trimStartMs });
|
|
2065
|
+
chunkO2TZQM65_cjs.scheduleMediaTrimAndFade(el, {
|
|
2066
2066
|
...playback,
|
|
2067
|
-
volume:
|
|
2067
|
+
volume: chunkO2TZQM65_cjs.mediaPlaybackAttributes(playback).volume
|
|
2068
2068
|
});
|
|
2069
2069
|
} else if (!el.paused) {
|
|
2070
2070
|
el.pause();
|
|
@@ -2074,18 +2074,18 @@ var renderMediaElement = (element, zIndex, context) => {
|
|
|
2074
2074
|
if (element.type !== "media") {
|
|
2075
2075
|
return null;
|
|
2076
2076
|
}
|
|
2077
|
-
const surface =
|
|
2077
|
+
const surface = chunkO2TZQM65_cjs.mediaSurfaceOf({
|
|
2078
2078
|
interactive: context.interactive === true || context.reading === true,
|
|
2079
2079
|
presenting: context.presenting
|
|
2080
2080
|
});
|
|
2081
|
-
const showTransport =
|
|
2081
|
+
const showTransport = chunkO2TZQM65_cjs.mediaTransportVisible({ ...surface, canvasTransport: true });
|
|
2082
2082
|
const doc = context.document;
|
|
2083
|
-
const baseStyle =
|
|
2083
|
+
const baseStyle = chunkO2TZQM65_cjs.getContainerStyle(element, zIndex);
|
|
2084
2084
|
const el = createEl(doc, "div", "pptxv-element pptxv-media", baseStyle);
|
|
2085
2085
|
el.dataset.elementId = element.id;
|
|
2086
2086
|
const mediaSrc = element.mediaData ?? (element.mediaPath ? context.mediaDataUrls.get(element.mediaPath) : void 0);
|
|
2087
|
-
const posterSrc =
|
|
2088
|
-
const onlineVideoEmbedUrl =
|
|
2087
|
+
const posterSrc = chunkO2TZQM65_cjs.getImageSrc(element, new Map(context.mediaDataUrls));
|
|
2088
|
+
const onlineVideoEmbedUrl = chunkO2TZQM65_cjs.getOnlineVideoEmbed(element)?.embedUrl;
|
|
2089
2089
|
if (onlineVideoEmbedUrl && element.mediaType === "video") {
|
|
2090
2090
|
const iframe = createEl(doc, "iframe", "pptxv-media-video pptxv-media-iframe", {
|
|
2091
2091
|
width: "100%",
|
|
@@ -2095,8 +2095,8 @@ var renderMediaElement = (element, zIndex, context) => {
|
|
|
2095
2095
|
});
|
|
2096
2096
|
iframe.src = onlineVideoEmbedUrl;
|
|
2097
2097
|
iframe.title = context.t("pptx.media.onlineVideoTitle");
|
|
2098
|
-
iframe.allow =
|
|
2099
|
-
iframe.sandbox.value =
|
|
2098
|
+
iframe.allow = chunkO2TZQM65_cjs.ONLINE_VIDEO_IFRAME_ALLOW;
|
|
2099
|
+
iframe.sandbox.value = chunkO2TZQM65_cjs.ONLINE_VIDEO_IFRAME_SANDBOX;
|
|
2100
2100
|
iframe.allowFullscreen = true;
|
|
2101
2101
|
el.appendChild(iframe);
|
|
2102
2102
|
return el;
|
|
@@ -2125,21 +2125,21 @@ var renderMediaElement = (element, zIndex, context) => {
|
|
|
2125
2125
|
audio.src = mediaSrc;
|
|
2126
2126
|
audio.controls = showTransport;
|
|
2127
2127
|
el.appendChild(audio);
|
|
2128
|
-
if (context.presenting &&
|
|
2128
|
+
if (context.presenting && chunkO2TZQM65_cjs.registerCrossSlideAudio(element, mediaSrc)) {
|
|
2129
2129
|
audio.muted = true;
|
|
2130
|
-
|
|
2130
|
+
chunkO2TZQM65_cjs.applyMediaPlaybackAttributes(audio, element);
|
|
2131
2131
|
return el;
|
|
2132
2132
|
}
|
|
2133
2133
|
applyMediaPresentingState(audio, context.presenting, element);
|
|
2134
2134
|
wireMediaFullscreenOverlay(doc, el, audio, element, context, baseStyle);
|
|
2135
2135
|
return el;
|
|
2136
2136
|
}
|
|
2137
|
-
const fallback =
|
|
2137
|
+
const fallback = chunkO2TZQM65_cjs.mediaFallbackVisual(surface, {
|
|
2138
2138
|
hasPoster: Boolean(posterSrc),
|
|
2139
2139
|
missing: element.mediaMissing === true
|
|
2140
2140
|
});
|
|
2141
|
-
const icon =
|
|
2142
|
-
const labelKey =
|
|
2141
|
+
const icon = chunkO2TZQM65_cjs.mediaFallbackIcon(fallback, element.mediaType);
|
|
2142
|
+
const labelKey = chunkO2TZQM65_cjs.mediaFallbackLabelKey(fallback, element.mediaType);
|
|
2143
2143
|
if (fallback.poster && posterSrc) {
|
|
2144
2144
|
const img = createEl(doc, "img", "pptxv-media-poster", {
|
|
2145
2145
|
width: "100%",
|
|
@@ -2156,7 +2156,7 @@ var renderMediaElement = (element, zIndex, context) => {
|
|
|
2156
2156
|
if (fallback.badge === "missing") {
|
|
2157
2157
|
badge.classList.add("pptxv-media-badge-missing");
|
|
2158
2158
|
}
|
|
2159
|
-
badge.setAttribute(
|
|
2159
|
+
badge.setAttribute(chunkO2TZQM65_cjs.MEDIA_CHROME_ATTRIBUTE, fallback.badge);
|
|
2160
2160
|
badge.appendChild(buildIcon(doc, icon));
|
|
2161
2161
|
if (labelKey !== void 0 && fallback.badge === "missing") {
|
|
2162
2162
|
const text = createEl(doc, "span");
|
|
@@ -2169,7 +2169,7 @@ var renderMediaElement = (element, zIndex, context) => {
|
|
|
2169
2169
|
}
|
|
2170
2170
|
if (fallback.placeholder !== "none") {
|
|
2171
2171
|
el.classList.add("pptxv-placeholder", "pptxv-media-placeholder");
|
|
2172
|
-
el.setAttribute(
|
|
2172
|
+
el.setAttribute(chunkO2TZQM65_cjs.MEDIA_CHROME_ATTRIBUTE, fallback.placeholder);
|
|
2173
2173
|
if (icon.length > 0) {
|
|
2174
2174
|
el.appendChild(buildIcon(doc, icon));
|
|
2175
2175
|
}
|
|
@@ -2205,7 +2205,7 @@ var renderModel3dElement = (element, zIndex, context) => {
|
|
|
2205
2205
|
doc,
|
|
2206
2206
|
"div",
|
|
2207
2207
|
"pptxv-element pptxv-model3d",
|
|
2208
|
-
|
|
2208
|
+
chunkO2TZQM65_cjs.getContainerStyle(element, zIndex)
|
|
2209
2209
|
);
|
|
2210
2210
|
el.dataset.elementId = element.id;
|
|
2211
2211
|
const label = context.t("pptx.model3d.label");
|
|
@@ -2342,7 +2342,7 @@ function buildOleIcon(doc, type, color) {
|
|
|
2342
2342
|
fill: "none",
|
|
2343
2343
|
"aria-hidden": "true"
|
|
2344
2344
|
});
|
|
2345
|
-
for (const shape of
|
|
2345
|
+
for (const shape of chunkO2TZQM65_cjs.getOleIconShapes(type)) {
|
|
2346
2346
|
const node = createSvgEl(doc, shape.tag, shape.attrs);
|
|
2347
2347
|
if (shape.tag === "text") {
|
|
2348
2348
|
node.setAttribute("fill", color);
|
|
@@ -2361,21 +2361,21 @@ var renderOleElement = (element, zIndex, context) => {
|
|
|
2361
2361
|
return null;
|
|
2362
2362
|
}
|
|
2363
2363
|
const doc = context.document;
|
|
2364
|
-
const oleType =
|
|
2365
|
-
const typeColor =
|
|
2366
|
-
const typeLabel =
|
|
2367
|
-
const el = createEl(doc, "div", "pptxv-element pptxv-ole",
|
|
2364
|
+
const oleType = chunkO2TZQM65_cjs.resolveOleType(element);
|
|
2365
|
+
const typeColor = chunkO2TZQM65_cjs.getOleTypeColor(oleType);
|
|
2366
|
+
const typeLabel = chunkO2TZQM65_cjs.getOleTypeLabel(oleType);
|
|
2367
|
+
const el = createEl(doc, "div", "pptxv-element pptxv-ole", chunkO2TZQM65_cjs.getContainerStyle(element, zIndex));
|
|
2368
2368
|
el.dataset.elementId = element.id;
|
|
2369
2369
|
el.setAttribute("role", "group");
|
|
2370
|
-
el.setAttribute("aria-label",
|
|
2370
|
+
el.setAttribute("aria-label", chunkO2TZQM65_cjs.getOleAriaLabel(element));
|
|
2371
2371
|
el.title = infoLines(element, typeLabel).join("\n");
|
|
2372
2372
|
if (element.previewImageData) {
|
|
2373
|
-
el.appendChild(buildPreview(doc, element, typeColor,
|
|
2373
|
+
el.appendChild(buildPreview(doc, element, typeColor, chunkO2TZQM65_cjs.getOleBadgeLabel(oleType)));
|
|
2374
2374
|
} else {
|
|
2375
2375
|
el.appendChild(buildPlaceholder2(doc, element, oleType, typeColor, typeLabel));
|
|
2376
2376
|
}
|
|
2377
|
-
const showActions =
|
|
2378
|
-
|
|
2377
|
+
const showActions = chunkO2TZQM65_cjs.oleActionsVisible(
|
|
2378
|
+
chunkO2TZQM65_cjs.mediaSurfaceOf({
|
|
2379
2379
|
interactive: context.interactive === true,
|
|
2380
2380
|
presenting: context.presenting
|
|
2381
2381
|
})
|
|
@@ -2391,7 +2391,7 @@ function infoLines(el, typeLabel) {
|
|
|
2391
2391
|
if (name) {
|
|
2392
2392
|
lines.push(name);
|
|
2393
2393
|
}
|
|
2394
|
-
const size =
|
|
2394
|
+
const size = chunkO2TZQM65_cjs.formatBytes(el.oleEmbeddedByteSize);
|
|
2395
2395
|
if (size) {
|
|
2396
2396
|
lines.push(size);
|
|
2397
2397
|
}
|
|
@@ -2415,7 +2415,7 @@ function buildPreview(doc, el, typeColor, badgeLabel) {
|
|
|
2415
2415
|
display: "block"
|
|
2416
2416
|
});
|
|
2417
2417
|
img.src = el.previewImageData ?? "";
|
|
2418
|
-
img.alt =
|
|
2418
|
+
img.alt = chunkO2TZQM65_cjs.getOleAriaLabel(el);
|
|
2419
2419
|
img.draggable = false;
|
|
2420
2420
|
preview.appendChild(img);
|
|
2421
2421
|
const badge = createSvgEl(doc, "svg", { width: 24, height: 24, viewBox: "0 0 24 24" });
|
|
@@ -2442,7 +2442,7 @@ function buildPreview(doc, el, typeColor, badgeLabel) {
|
|
|
2442
2442
|
}
|
|
2443
2443
|
function buildPlaceholder2(doc, el, oleType, typeColor, typeLabel) {
|
|
2444
2444
|
const box = createEl(doc, "div", "pptxv-ole-placeholder", {
|
|
2445
|
-
...
|
|
2445
|
+
...chunkO2TZQM65_cjs.getPlaceholderStyle(oleType),
|
|
2446
2446
|
width: "100%",
|
|
2447
2447
|
height: "100%",
|
|
2448
2448
|
display: "flex",
|
|
@@ -2463,7 +2463,7 @@ function buildPlaceholder2(doc, el, oleType, typeColor, typeLabel) {
|
|
|
2463
2463
|
whiteSpace: "nowrap",
|
|
2464
2464
|
color: typeColor
|
|
2465
2465
|
});
|
|
2466
|
-
name.textContent =
|
|
2466
|
+
name.textContent = chunkO2TZQM65_cjs.getOleDisplayName(el);
|
|
2467
2467
|
box.appendChild(name);
|
|
2468
2468
|
if (el.fileName) {
|
|
2469
2469
|
const sublabel = createEl(doc, "span", "pptxv-ole-sublabel", {
|
|
@@ -2515,7 +2515,7 @@ function buildActionBar(doc, el, typeLabel, context) {
|
|
|
2515
2515
|
for (const type of ["pointerdown", "mousedown", "click"]) {
|
|
2516
2516
|
bar.addEventListener(type, (event) => event.stopPropagation());
|
|
2517
2517
|
}
|
|
2518
|
-
const size =
|
|
2518
|
+
const size = chunkO2TZQM65_cjs.formatBytes(el.oleEmbeddedByteSize);
|
|
2519
2519
|
if (size) {
|
|
2520
2520
|
const meta = createEl(doc, "span", "pptxv-ole-meta", {
|
|
2521
2521
|
marginRight: "auto",
|
|
@@ -2535,14 +2535,14 @@ function buildActionBar(doc, el, typeLabel, context) {
|
|
|
2535
2535
|
download.title = downloadTitle;
|
|
2536
2536
|
download.textContent = context.t("pptx.ole.download");
|
|
2537
2537
|
bar.appendChild(download);
|
|
2538
|
-
if (
|
|
2538
|
+
if (chunkO2TZQM65_cjs.isBrowserOpenableMime(el.oleEmbeddedMimeType)) {
|
|
2539
2539
|
const open = createEl(doc, "button", "pptxv-ole-action", ACTION_STYLE);
|
|
2540
2540
|
open.type = "button";
|
|
2541
2541
|
const openTitle = context.t("pptx.ole.openName", { name: downloadName });
|
|
2542
2542
|
open.setAttribute("aria-label", openTitle);
|
|
2543
2543
|
open.title = openTitle;
|
|
2544
2544
|
open.textContent = context.t("pptx.ole.open");
|
|
2545
|
-
open.addEventListener("click", () =>
|
|
2545
|
+
open.addEventListener("click", () => chunkO2TZQM65_cjs.openUrlInNewTab(data));
|
|
2546
2546
|
bar.appendChild(open);
|
|
2547
2547
|
}
|
|
2548
2548
|
return bar;
|
|
@@ -2554,7 +2554,7 @@ var renderPlaceholderElement = (element, zIndex, context) => {
|
|
|
2554
2554
|
context.document,
|
|
2555
2555
|
"div",
|
|
2556
2556
|
"pptxv-element pptxv-placeholder",
|
|
2557
|
-
|
|
2557
|
+
chunkO2TZQM65_cjs.getContainerStyle(element, zIndex)
|
|
2558
2558
|
);
|
|
2559
2559
|
el.dataset.elementId = element.id;
|
|
2560
2560
|
el.dataset.elementType = element.type;
|
|
@@ -2570,7 +2570,7 @@ var renderZoomElement = (element, zIndex, context) => {
|
|
|
2570
2570
|
return null;
|
|
2571
2571
|
}
|
|
2572
2572
|
const doc = context.document;
|
|
2573
|
-
const summaryView =
|
|
2573
|
+
const summaryView = chunkO2TZQM65_cjs.buildSummaryZoomView(
|
|
2574
2574
|
element,
|
|
2575
2575
|
(index) => {
|
|
2576
2576
|
const slide = context.slides?.[index];
|
|
@@ -2590,7 +2590,7 @@ var renderZoomElement = (element, zIndex, context) => {
|
|
|
2590
2590
|
doc,
|
|
2591
2591
|
"div",
|
|
2592
2592
|
"pptxv-element pptxv-zoom pptxv-summary-zoom",
|
|
2593
|
-
|
|
2593
|
+
chunkO2TZQM65_cjs.getContainerStyle(element, zIndex)
|
|
2594
2594
|
);
|
|
2595
2595
|
const content = createEl(doc, "div", "pptxv-summary-zoom-content", summaryView.containerStyle);
|
|
2596
2596
|
root.dataset.elementId = element.id;
|
|
@@ -2656,7 +2656,7 @@ var renderZoomElement = (element, zIndex, context) => {
|
|
|
2656
2656
|
const target = element.targetSlideIndex ?? 0;
|
|
2657
2657
|
const targetSlide = context.slides?.[target];
|
|
2658
2658
|
const interactive = context.presenting && context.onZoomClick !== void 0;
|
|
2659
|
-
const el = createEl(doc, "div", "pptxv-element pptxv-zoom",
|
|
2659
|
+
const el = createEl(doc, "div", "pptxv-element pptxv-zoom", chunkO2TZQM65_cjs.getContainerStyle(element, zIndex));
|
|
2660
2660
|
el.dataset.elementId = element.id;
|
|
2661
2661
|
el.dataset.zoomType = zoomType;
|
|
2662
2662
|
el.dataset.zoomTarget = String(target);
|
|
@@ -2666,7 +2666,7 @@ var renderZoomElement = (element, zIndex, context) => {
|
|
|
2666
2666
|
el.tabIndex = 0;
|
|
2667
2667
|
el.style.cursor = "pointer";
|
|
2668
2668
|
const activate = () => {
|
|
2669
|
-
const zoomTarget =
|
|
2669
|
+
const zoomTarget = chunkO2TZQM65_cjs.resolveZoomNavigationTarget(element);
|
|
2670
2670
|
if (zoomTarget) {
|
|
2671
2671
|
context.onZoomClick?.(zoomTarget, context.currentSlideIndex ?? 0);
|
|
2672
2672
|
}
|
|
@@ -2781,7 +2781,7 @@ function registerExtraRenderers(registry) {
|
|
|
2781
2781
|
// src/pptx/dom/elements/smartart-3d.ts
|
|
2782
2782
|
var renderSmartArt3DElement = (element, zIndex, context) => {
|
|
2783
2783
|
const wrapper = renderSmartArtSvg(element, zIndex, context);
|
|
2784
|
-
const spec = wrapper ?
|
|
2784
|
+
const spec = wrapper ? chunkO2TZQM65_cjs.resolveSmartArtThreeViewSpec(element, context.smartArt3D) : null;
|
|
2785
2785
|
if (!wrapper || !spec) {
|
|
2786
2786
|
return wrapper;
|
|
2787
2787
|
}
|
|
@@ -2791,18 +2791,18 @@ var renderSmartArt3DElement = (element, zIndex, context) => {
|
|
|
2791
2791
|
textStyle: context.presentationStates?.get(element.id)?.textStyle
|
|
2792
2792
|
});
|
|
2793
2793
|
if (context.onSmartArtNodeTextChange && context.interactive && !context.presenting) {
|
|
2794
|
-
const layer = renderSmartArtSvg(
|
|
2794
|
+
const layer = renderSmartArtSvg(chunkO2TZQM65_cjs.elementInLocalFrame(element), 0, context);
|
|
2795
2795
|
if (layer) {
|
|
2796
2796
|
layer.classList.add("pptxv-smartart-3d-edit-layer");
|
|
2797
2797
|
layer.setAttribute("data-smartart-3d-edit-layer", "true");
|
|
2798
|
-
|
|
2798
|
+
chunkO2TZQM65_cjs.stripEditLayerMarkers(layer);
|
|
2799
2799
|
layer.setAttribute("aria-hidden", "true");
|
|
2800
2800
|
Object.assign(layer.style, { position: "absolute", inset: "0", zIndex: "1" });
|
|
2801
2801
|
for (const svg of layer.querySelectorAll("svg")) {
|
|
2802
2802
|
svg.style.opacity = "0";
|
|
2803
2803
|
}
|
|
2804
2804
|
wrapper.appendChild(layer);
|
|
2805
|
-
|
|
2805
|
+
chunkO2TZQM65_cjs.routeEditLayerPointerToNodes(layer);
|
|
2806
2806
|
}
|
|
2807
2807
|
}
|
|
2808
2808
|
return wrapper;
|
|
@@ -2815,7 +2815,7 @@ function nodeTarget(target) {
|
|
|
2815
2815
|
}
|
|
2816
2816
|
function enableSmartArtEditing(chrome, element, context) {
|
|
2817
2817
|
const data = element.smartArtData;
|
|
2818
|
-
if (!data || !context.onSmartArtNodeTextChange && !context.onSmartArtNodeFillChange || !
|
|
2818
|
+
if (!data || !context.onSmartArtNodeTextChange && !context.onSmartArtNodeFillChange || !chunkO2TZQM65_cjs.canDrillDown(element)) {
|
|
2819
2819
|
return;
|
|
2820
2820
|
}
|
|
2821
2821
|
let editor = null;
|
|
@@ -2837,8 +2837,8 @@ function enableSmartArtEditing(chrome, element, context) {
|
|
|
2837
2837
|
}
|
|
2838
2838
|
event.stopPropagation();
|
|
2839
2839
|
const textNode = target.querySelector("text");
|
|
2840
|
-
const textRect = textNode ?
|
|
2841
|
-
const rect = textRect && textRect.width > 0 ? textRect :
|
|
2840
|
+
const textRect = textNode ? chunkO2TZQM65_cjs.measureSvgViewportRect(textNode) : null;
|
|
2841
|
+
const rect = textRect && textRect.width > 0 ? textRect : chunkO2TZQM65_cjs.measureSvgViewportRect(target);
|
|
2842
2842
|
if (!rect) {
|
|
2843
2843
|
return;
|
|
2844
2844
|
}
|
|
@@ -2862,7 +2862,7 @@ function enableSmartArtEditing(chrome, element, context) {
|
|
|
2862
2862
|
textAlign: "center"
|
|
2863
2863
|
});
|
|
2864
2864
|
editor = input;
|
|
2865
|
-
input.value =
|
|
2865
|
+
input.value = chunkO2TZQM65_cjs.findSmartArtNodeText(data, nodeId) ?? "";
|
|
2866
2866
|
const commit = () => {
|
|
2867
2867
|
if (input !== editor) {
|
|
2868
2868
|
return;
|
|
@@ -2894,7 +2894,7 @@ function enableSmartArtEditing(chrome, element, context) {
|
|
|
2894
2894
|
}
|
|
2895
2895
|
cancelHide();
|
|
2896
2896
|
swatches?.remove();
|
|
2897
|
-
const rect =
|
|
2897
|
+
const rect = chunkO2TZQM65_cjs.measureSvgViewportRect(target);
|
|
2898
2898
|
if (!rect) {
|
|
2899
2899
|
return;
|
|
2900
2900
|
}
|
|
@@ -2913,7 +2913,7 @@ function enableSmartArtEditing(chrome, element, context) {
|
|
|
2913
2913
|
});
|
|
2914
2914
|
swatches.setAttribute("role", "group");
|
|
2915
2915
|
swatches.setAttribute("aria-label", context.t("pptx.smartArt.fillColor"));
|
|
2916
|
-
for (const color of
|
|
2916
|
+
for (const color of chunkO2TZQM65_cjs.resolvePalette(data).slice(0, 6)) {
|
|
2917
2917
|
const button = createEl(chrome.ownerDocument, "button", "", {
|
|
2918
2918
|
width: "18px",
|
|
2919
2919
|
height: "18px",
|
|
@@ -3012,7 +3012,7 @@ function buildSmartArtFallbackSvg(doc, layout, a11yNodes = [], nodeIds = []) {
|
|
|
3012
3012
|
svg.setAttribute("class", "pptxv-smartart-svg");
|
|
3013
3013
|
svg.setAttribute("style", SMARTART_SVG_STYLE);
|
|
3014
3014
|
for (const conn of layout.connectors) {
|
|
3015
|
-
const paint =
|
|
3015
|
+
const paint = chunkO2TZQM65_cjs.smartArtConnectorPaint(conn);
|
|
3016
3016
|
svg.appendChild(
|
|
3017
3017
|
createSvgEl(doc, "path", {
|
|
3018
3018
|
d: paint.d,
|
|
@@ -3071,7 +3071,7 @@ function buildFallbackNode(doc, node, shadowFilter, a11yLabel, nodeId) {
|
|
|
3071
3071
|
})
|
|
3072
3072
|
);
|
|
3073
3073
|
}
|
|
3074
|
-
const label =
|
|
3074
|
+
const label = chunkO2TZQM65_cjs.smartArtNodeLabel(node);
|
|
3075
3075
|
if (label.visible) {
|
|
3076
3076
|
appendSvgTextLines(doc, g, {
|
|
3077
3077
|
lines: label.lines,
|
|
@@ -3107,41 +3107,41 @@ var renderSmartArtSvg = (element, zIndex, context) => {
|
|
|
3107
3107
|
doc,
|
|
3108
3108
|
"div",
|
|
3109
3109
|
"pptxv-element pptxv-smartart",
|
|
3110
|
-
|
|
3110
|
+
chunkO2TZQM65_cjs.getContainerStyle(element, zIndex)
|
|
3111
3111
|
);
|
|
3112
3112
|
wrapper.dataset.elementId = element.id;
|
|
3113
3113
|
wrapper.dataset.testid = `smartart-${data?.layout ?? "diagram"}`;
|
|
3114
|
-
const chrome = createEl(doc, "div", "pptxv-smartart-chrome",
|
|
3114
|
+
const chrome = createEl(doc, "div", "pptxv-smartart-chrome", chunkO2TZQM65_cjs.buildChromeStyle(data?.chrome));
|
|
3115
3115
|
chrome.style.position = "relative";
|
|
3116
3116
|
wrapper.appendChild(chrome);
|
|
3117
3117
|
if (data) {
|
|
3118
|
-
const a11y =
|
|
3118
|
+
const a11y = chunkO2TZQM65_cjs.buildSmartArtA11y(data);
|
|
3119
3119
|
chrome.setAttribute("role", "img");
|
|
3120
3120
|
chrome.setAttribute("aria-label", a11y.label);
|
|
3121
3121
|
}
|
|
3122
3122
|
const nodes = data?.nodes ?? [];
|
|
3123
3123
|
const drawingShapes = data?.drawingShapes ?? [];
|
|
3124
3124
|
const animationState = context.presentationStates?.get(element.id);
|
|
3125
|
-
const { nodes: revealedNodesFull } =
|
|
3125
|
+
const { nodes: revealedNodesFull } = chunkO2TZQM65_cjs.resolveRevealedSmartArtNodes(
|
|
3126
3126
|
nodes,
|
|
3127
3127
|
animationState,
|
|
3128
3128
|
data?.presLayoutVars
|
|
3129
3129
|
);
|
|
3130
3130
|
if (data && drawingShapes.length > 0) {
|
|
3131
|
-
const revealedShapes =
|
|
3131
|
+
const revealedShapes = chunkO2TZQM65_cjs.resolveRevealedDrawingShapes(drawingShapes, nodes, animationState);
|
|
3132
3132
|
chrome.appendChild(
|
|
3133
|
-
buildDrawingShapesSvg(doc, element.id, data,
|
|
3133
|
+
buildDrawingShapesSvg(doc, element.id, data, chunkO2TZQM65_cjs.buildSmartArtA11y(data).nodes, revealedShapes)
|
|
3134
3134
|
);
|
|
3135
3135
|
enableSmartArtEditing(chrome, element, context);
|
|
3136
3136
|
return wrapper;
|
|
3137
3137
|
}
|
|
3138
3138
|
if (data && nodes.length > 0) {
|
|
3139
3139
|
const revealedNodes = revealedNodesFull;
|
|
3140
|
-
const layout =
|
|
3140
|
+
const layout = chunkO2TZQM65_cjs.computeSmartArtElementLayout(
|
|
3141
3141
|
data,
|
|
3142
3142
|
revealedNodes,
|
|
3143
3143
|
{ width: element.width, height: element.height },
|
|
3144
|
-
|
|
3144
|
+
chunkO2TZQM65_cjs.resolvePalette(data),
|
|
3145
3145
|
data.style ?? "flat",
|
|
3146
3146
|
element.id
|
|
3147
3147
|
);
|
|
@@ -3149,8 +3149,8 @@ var renderSmartArtSvg = (element, zIndex, context) => {
|
|
|
3149
3149
|
buildSmartArtFallbackSvg(
|
|
3150
3150
|
doc,
|
|
3151
3151
|
layout,
|
|
3152
|
-
|
|
3153
|
-
|
|
3152
|
+
chunkO2TZQM65_cjs.buildSmartArtA11y(data).nodes,
|
|
3153
|
+
chunkO2TZQM65_cjs.flattenNodes(revealedNodes).map((node) => node.id)
|
|
3154
3154
|
)
|
|
3155
3155
|
);
|
|
3156
3156
|
enableSmartArtEditing(chrome, element, context);
|
|
@@ -3173,17 +3173,17 @@ var renderSmartArtSvg = (element, zIndex, context) => {
|
|
|
3173
3173
|
function buildDrawingShapesSvg(doc, elementId, data, a11yNodes, revealedShapes) {
|
|
3174
3174
|
const allShapes = data.drawingShapes ?? [];
|
|
3175
3175
|
const style = data.style ?? "flat";
|
|
3176
|
-
const viewBox =
|
|
3177
|
-
const rendered =
|
|
3176
|
+
const viewBox = chunkO2TZQM65_cjs.computeDrawingViewBox(allShapes);
|
|
3177
|
+
const rendered = chunkO2TZQM65_cjs.projectDrawingShapes(
|
|
3178
3178
|
elementId,
|
|
3179
3179
|
revealedShapes,
|
|
3180
3180
|
viewBox,
|
|
3181
|
-
|
|
3181
|
+
chunkO2TZQM65_cjs.resolvePalette(data),
|
|
3182
3182
|
style
|
|
3183
3183
|
);
|
|
3184
|
-
const shadow =
|
|
3184
|
+
const shadow = chunkO2TZQM65_cjs.styleShadowFilter(style);
|
|
3185
3185
|
const labelsById = new Map(a11yNodes.map((node) => [node.id, node.label]));
|
|
3186
|
-
const nodeIds =
|
|
3186
|
+
const nodeIds = chunkO2TZQM65_cjs.resolveRevealedDrawingShapeNodeIds(allShapes, revealedShapes, data.nodes);
|
|
3187
3187
|
const svg = createSvgEl(doc, "svg", {
|
|
3188
3188
|
viewBox: `0 0 ${viewBox.width} ${viewBox.height}`,
|
|
3189
3189
|
preserveAspectRatio: "xMidYMid meet"
|
|
@@ -3318,9 +3318,9 @@ function enableTableResize(container, table, element, context) {
|
|
|
3318
3318
|
for (const handle of [...colHandles, ...rowHandles]) {
|
|
3319
3319
|
handle.remove();
|
|
3320
3320
|
}
|
|
3321
|
-
const crossings =
|
|
3321
|
+
const crossings = chunkO2TZQM65_cjs.computeTableMergeCrossings(tableData.rows, tableData.columnWidths.length);
|
|
3322
3322
|
const rowBounds = measureRowBoundaries(table);
|
|
3323
|
-
colHandles =
|
|
3323
|
+
colHandles = chunkO2TZQM65_cjs.computeColumnBoundaries(tableData.columnWidths).map((leftPct, i) => {
|
|
3324
3324
|
const handle = createEl(doc, "div", "pptxv-table-resize-col", {
|
|
3325
3325
|
position: "absolute",
|
|
3326
3326
|
top: "0",
|
|
@@ -3330,7 +3330,7 @@ function enableTableResize(container, table, element, context) {
|
|
|
3330
3330
|
zIndex: "10",
|
|
3331
3331
|
pointerEvents: "none"
|
|
3332
3332
|
});
|
|
3333
|
-
const segments =
|
|
3333
|
+
const segments = chunkO2TZQM65_cjs.columnHandleSegments(
|
|
3334
3334
|
crossings.columns[i] ?? [],
|
|
3335
3335
|
rowBounds,
|
|
3336
3336
|
table.offsetHeight
|
|
@@ -3360,7 +3360,7 @@ function enableTableResize(container, table, element, context) {
|
|
|
3360
3360
|
zIndex: "10",
|
|
3361
3361
|
pointerEvents: "none"
|
|
3362
3362
|
});
|
|
3363
|
-
const segments =
|
|
3363
|
+
const segments = chunkO2TZQM65_cjs.rowHandleSegments(crossings.rows[i] ?? [], tableData.columnWidths);
|
|
3364
3364
|
for (const { leftPct, widthPct } of segments) {
|
|
3365
3365
|
handle.appendChild(
|
|
3366
3366
|
createEl(doc, "div", "pptxv-table-resize-segment", {
|
|
@@ -3404,14 +3404,14 @@ function enableTableResize(container, table, element, context) {
|
|
|
3404
3404
|
const deltaProp = (event.clientX - active.startPos) / (rect.width || 1);
|
|
3405
3405
|
context.onTableResizeColumns?.(
|
|
3406
3406
|
element,
|
|
3407
|
-
|
|
3407
|
+
chunkO2TZQM65_cjs.computeResizedColumnWidths(active.initialWidths, active.index, deltaProp)
|
|
3408
3408
|
);
|
|
3409
3409
|
} else if (event.clientY !== active.startPos && active.type === "row") {
|
|
3410
3410
|
const deltaY = event.clientY - active.startPos;
|
|
3411
3411
|
context.onTableResizeRow?.(
|
|
3412
3412
|
element,
|
|
3413
3413
|
active.index,
|
|
3414
|
-
|
|
3414
|
+
chunkO2TZQM65_cjs.computeResizedRowHeight(active.initialRowHeight ?? chunkO2TZQM65_cjs.DEFAULT_ROW_HEIGHT, deltaY)
|
|
3415
3415
|
);
|
|
3416
3416
|
}
|
|
3417
3417
|
drawHandles();
|
|
@@ -3420,13 +3420,13 @@ function enableTableResize(container, table, element, context) {
|
|
|
3420
3420
|
const rect = container.getBoundingClientRect();
|
|
3421
3421
|
const localX = event.clientX - rect.left;
|
|
3422
3422
|
const localY = event.clientY - rect.top;
|
|
3423
|
-
const scaleY =
|
|
3424
|
-
const crossings =
|
|
3423
|
+
const scaleY = chunkO2TZQM65_cjs.getTableResizeScale(rect.height, container.offsetHeight);
|
|
3424
|
+
const crossings = chunkO2TZQM65_cjs.computeTableMergeCrossings(tableData.rows, tableData.columnWidths.length);
|
|
3425
3425
|
const rowBounds = measureRowBoundaries(table);
|
|
3426
|
-
const colBoundaries =
|
|
3426
|
+
const colBoundaries = chunkO2TZQM65_cjs.computeColumnBoundaries(tableData.columnWidths);
|
|
3427
3427
|
for (let i = 0; i < colBoundaries.length; i++) {
|
|
3428
3428
|
const boundaryX = colBoundaries[i] / 100 * rect.width;
|
|
3429
|
-
if (Math.abs(localX - boundaryX) <= HANDLE_ZONE && !
|
|
3429
|
+
if (Math.abs(localX - boundaryX) <= HANDLE_ZONE && !chunkO2TZQM65_cjs.isColumnBoundaryMergedAt(crossings, i, rowBounds, localY / scaleY)) {
|
|
3430
3430
|
event.preventDefault();
|
|
3431
3431
|
event.stopPropagation();
|
|
3432
3432
|
doc.body.style.cursor = "col-resize";
|
|
@@ -3444,7 +3444,7 @@ function enableTableResize(container, table, element, context) {
|
|
|
3444
3444
|
}
|
|
3445
3445
|
}
|
|
3446
3446
|
for (let i = 0; i < rowBounds.length; i++) {
|
|
3447
|
-
if (Math.abs(localY - rowBounds[i] * scaleY) <= HANDLE_ZONE && !
|
|
3447
|
+
if (Math.abs(localY - rowBounds[i] * scaleY) <= HANDLE_ZONE && !chunkO2TZQM65_cjs.isRowBoundaryMergedAt(crossings, i, tableData.columnWidths, localX / (rect.width || 1))) {
|
|
3448
3448
|
event.preventDefault();
|
|
3449
3449
|
event.stopPropagation();
|
|
3450
3450
|
const tr = table.querySelectorAll("tbody > tr")[i];
|
|
@@ -3455,7 +3455,7 @@ function enableTableResize(container, table, element, context) {
|
|
|
3455
3455
|
index: i,
|
|
3456
3456
|
startPos: event.clientY,
|
|
3457
3457
|
handleEl: rowHandles[i] ?? container,
|
|
3458
|
-
initialRowHeight: tr?.offsetHeight ??
|
|
3458
|
+
initialRowHeight: tr?.offsetHeight ?? chunkO2TZQM65_cjs.DEFAULT_ROW_HEIGHT
|
|
3459
3459
|
};
|
|
3460
3460
|
win.addEventListener("mousemove", onMouseMove);
|
|
3461
3461
|
win.addEventListener("mouseup", onMouseUp);
|
|
@@ -3476,7 +3476,7 @@ var renderTableElement = (element, zIndex, context) => {
|
|
|
3476
3476
|
}
|
|
3477
3477
|
const doc = context.document;
|
|
3478
3478
|
const container = createEl(doc, "div", "pptxv-element pptxv-table", {
|
|
3479
|
-
...
|
|
3479
|
+
...chunkO2TZQM65_cjs.getContainerStyle(element, zIndex),
|
|
3480
3480
|
overflow: "hidden"
|
|
3481
3481
|
});
|
|
3482
3482
|
container.dataset.elementId = element.id;
|
|
@@ -3489,7 +3489,7 @@ var renderTableElement = (element, zIndex, context) => {
|
|
|
3489
3489
|
// font stack; all five bindings declare the same shared default here.
|
|
3490
3490
|
fontFamily: chunkIURZJAWP_cjs.DEFAULT_FONT_FAMILY,
|
|
3491
3491
|
// `a:tblPr@rtl`: mirrors the column order for right-to-left decks.
|
|
3492
|
-
...
|
|
3492
|
+
...chunkO2TZQM65_cjs.tableContainerCss(tableData)
|
|
3493
3493
|
});
|
|
3494
3494
|
appendColgroup(doc, table, tableData.columnWidths);
|
|
3495
3495
|
const tbody = doc.createElement("tbody");
|
|
@@ -3550,13 +3550,13 @@ function renderCell(doc, tableData, cell, rowIndex, cellIndex, rowCount, columnC
|
|
|
3550
3550
|
if (cell.rowSpan && cell.rowSpan > 1) {
|
|
3551
3551
|
td.rowSpan = cell.rowSpan;
|
|
3552
3552
|
}
|
|
3553
|
-
const style =
|
|
3553
|
+
const style = chunkO2TZQM65_cjs.tableCellCss(
|
|
3554
3554
|
tableData,
|
|
3555
3555
|
cell,
|
|
3556
3556
|
{ rowIndex, cellIndex, rowCount, columnCount },
|
|
3557
3557
|
styleContext
|
|
3558
3558
|
);
|
|
3559
|
-
const patternFill = cell.style ?
|
|
3559
|
+
const patternFill = cell.style ? chunkO2TZQM65_cjs.cellPatternFillCss(cell.style) : null;
|
|
3560
3560
|
if (patternFill) {
|
|
3561
3561
|
delete style["backgroundColor"];
|
|
3562
3562
|
delete style["background"];
|
|
@@ -3569,7 +3569,7 @@ function renderCell(doc, tableData, cell, rowIndex, cellIndex, rowCount, columnC
|
|
|
3569
3569
|
}
|
|
3570
3570
|
applyStyleMap(td, CELL_BASE_STYLE);
|
|
3571
3571
|
applyStyleMap(td, style);
|
|
3572
|
-
const diagonals =
|
|
3572
|
+
const diagonals = chunkO2TZQM65_cjs.getCellDiagonalBorders(
|
|
3573
3573
|
cell.style,
|
|
3574
3574
|
tableData,
|
|
3575
3575
|
{ rowIndex, cellIndex, rowCount, columnCount },
|
|
@@ -3613,7 +3613,7 @@ function renderDiagonalOverlay(doc, diagonals) {
|
|
|
3613
3613
|
return svg;
|
|
3614
3614
|
}
|
|
3615
3615
|
function appendCellText(doc, td, cell) {
|
|
3616
|
-
const blocks =
|
|
3616
|
+
const blocks = chunkO2TZQM65_cjs.cellParagraphBlocks(cell);
|
|
3617
3617
|
if (blocks) {
|
|
3618
3618
|
for (const block of blocks) {
|
|
3619
3619
|
const div = createEl(doc, "div", "pptxv-table-para", { display: "block", ...block.css });
|
|
@@ -3648,7 +3648,7 @@ function appendRuns(doc, parent, runs) {
|
|
|
3648
3648
|
}
|
|
3649
3649
|
const span = createEl(doc, "span", "pptxv-table-run", {
|
|
3650
3650
|
position: "relative",
|
|
3651
|
-
...
|
|
3651
|
+
...chunkO2TZQM65_cjs.cellRunStyle(run)
|
|
3652
3652
|
});
|
|
3653
3653
|
span.textContent = run.text;
|
|
3654
3654
|
parent.appendChild(span);
|
|
@@ -3662,8 +3662,8 @@ function registerTableChartRenderers(registry) {
|
|
|
3662
3662
|
}
|
|
3663
3663
|
|
|
3664
3664
|
// src/pptx/dom/glyph-outline-cache.ts
|
|
3665
|
-
var glyphOutlineFontCache = new
|
|
3666
|
-
var getGlyphOutline =
|
|
3665
|
+
var glyphOutlineFontCache = new chunkO2TZQM65_cjs.GlyphOutlineFontCache();
|
|
3666
|
+
var getGlyphOutline = chunkO2TZQM65_cjs.createGlyphOutlineLookup(glyphOutlineFontCache);
|
|
3667
3667
|
|
|
3668
3668
|
// src/pptx/dom/elements/text-warp.ts
|
|
3669
3669
|
function renderWarpedText(element, context) {
|
|
@@ -3675,12 +3675,12 @@ function renderWarpedText(element, context) {
|
|
|
3675
3675
|
if (!preset || preset === "textNoShape" || preset === "textPlain") {
|
|
3676
3676
|
return null;
|
|
3677
3677
|
}
|
|
3678
|
-
const paragraphs =
|
|
3678
|
+
const paragraphs = chunkO2TZQM65_cjs.groupIntoParagraphs(element);
|
|
3679
3679
|
if (paragraphs.length === 0) {
|
|
3680
3680
|
return null;
|
|
3681
3681
|
}
|
|
3682
|
-
if (!
|
|
3683
|
-
const transform =
|
|
3682
|
+
if (!chunkO2TZQM65_cjs.shouldUseSvgWarp(preset)) {
|
|
3683
|
+
const transform = chunkO2TZQM65_cjs.getWarpCssTransform(preset, style?.textWarpAdj, style?.textWarpAdj2);
|
|
3684
3684
|
if (!transform) {
|
|
3685
3685
|
return null;
|
|
3686
3686
|
}
|
|
@@ -3708,7 +3708,7 @@ function renderWarpedText(element, context) {
|
|
|
3708
3708
|
text.textContent = paragraphs.map((p) => p.segments.map((s) => s.text).join("")).join("\n");
|
|
3709
3709
|
return text;
|
|
3710
3710
|
}
|
|
3711
|
-
if (
|
|
3711
|
+
if (chunkO2TZQM65_cjs.hasGlyphEnvelope(preset)) {
|
|
3712
3712
|
return renderGlyphWarp(element, paragraphs, context);
|
|
3713
3713
|
}
|
|
3714
3714
|
return renderPathWarp(element, paragraphs, context);
|
|
@@ -3734,7 +3734,7 @@ function renderGlyphWarp(element, paragraphs, context) {
|
|
|
3734
3734
|
});
|
|
3735
3735
|
svg.setAttribute("class", "pptxv-wordart");
|
|
3736
3736
|
svg.setAttribute("style", "position:absolute;inset:0;width:100%;height:100%;overflow:visible");
|
|
3737
|
-
const perLine =
|
|
3737
|
+
const perLine = chunkO2TZQM65_cjs.buildGlyphEnvelopeBlock(
|
|
3738
3738
|
preset,
|
|
3739
3739
|
paragraphs.map(
|
|
3740
3740
|
(paragraph) => paragraph.segments.map((seg, i) => ({
|
|
@@ -3829,7 +3829,7 @@ function renderPathWarp(element, paragraphs, context) {
|
|
|
3829
3829
|
defs.appendChild(
|
|
3830
3830
|
createSvgEl(context.document, "path", {
|
|
3831
3831
|
id,
|
|
3832
|
-
d:
|
|
3832
|
+
d: chunkO2TZQM65_cjs.buildWarpPath(
|
|
3833
3833
|
preset,
|
|
3834
3834
|
element.width,
|
|
3835
3835
|
element.height,
|
|
@@ -3862,7 +3862,7 @@ function renderPathWarp(element, paragraphs, context) {
|
|
|
3862
3862
|
|
|
3863
3863
|
// src/pptx/dom/elements/text-shape.ts
|
|
3864
3864
|
var renderTextShapeElement = (element, zIndex, context) => {
|
|
3865
|
-
const container =
|
|
3865
|
+
const container = chunkO2TZQM65_cjs.getContainerStyle(element, zIndex);
|
|
3866
3866
|
const animState = context.presentationStates?.get(element.id);
|
|
3867
3867
|
const shape = getShapeFillStrokeStyle(
|
|
3868
3868
|
element,
|
|
@@ -3877,7 +3877,7 @@ var renderTextShapeElement = (element, zIndex, context) => {
|
|
|
3877
3877
|
const el = createEl(context.document, "div", "pptxv-element pptxv-shape", merged);
|
|
3878
3878
|
el.dataset.elementId = element.id;
|
|
3879
3879
|
if (context.interactive && !context.presenting) {
|
|
3880
|
-
const hitTargetStyle =
|
|
3880
|
+
const hitTargetStyle = chunkO2TZQM65_cjs.elementHitTargetStyle(element);
|
|
3881
3881
|
if (hitTargetStyle) {
|
|
3882
3882
|
const hitTarget = createEl(context.document, "div", void 0, hitTargetStyle);
|
|
3883
3883
|
hitTarget.setAttribute("aria-hidden", "true");
|
|
@@ -3920,8 +3920,8 @@ var renderTextShapeElement = (element, zIndex, context) => {
|
|
|
3920
3920
|
} else if (warped) {
|
|
3921
3921
|
el.appendChild(warped);
|
|
3922
3922
|
} else {
|
|
3923
|
-
const linkedSegments =
|
|
3924
|
-
const paragraphs =
|
|
3923
|
+
const linkedSegments = chunkO2TZQM65_cjs.getOverflowSegments(element, context.slide?.elements);
|
|
3924
|
+
const paragraphs = chunkO2TZQM65_cjs.buildParagraphs(element, context.fieldContext, linkedSegments);
|
|
3925
3925
|
const hasText = paragraphs.some((p) => p.runs.length > 0 || p.bulletMarker !== void 0);
|
|
3926
3926
|
if (hasText) {
|
|
3927
3927
|
el.appendChild(
|
|
@@ -3932,7 +3932,7 @@ var renderTextShapeElement = (element, zIndex, context) => {
|
|
|
3932
3932
|
);
|
|
3933
3933
|
} else {
|
|
3934
3934
|
const mode = context.interactive && !context.presenting ? "edit" : "present";
|
|
3935
|
-
const prompt =
|
|
3935
|
+
const prompt = chunkO2TZQM65_cjs.placeholderPromptDescriptor(element, mode);
|
|
3936
3936
|
if (prompt) {
|
|
3937
3937
|
const hint = createEl(context.document, "div", "pptxv-placeholder-prompt", {
|
|
3938
3938
|
...getTextBlockStyle(element),
|
|
@@ -4097,11 +4097,11 @@ async function resolveImageUrls(handler, slides) {
|
|
|
4097
4097
|
|
|
4098
4098
|
Object.defineProperty(exports, "buildEmbeddedFontStyles", {
|
|
4099
4099
|
enumerable: true,
|
|
4100
|
-
get: function () { return
|
|
4100
|
+
get: function () { return chunkO2TZQM65_cjs.buildEmbeddedFontStyles; }
|
|
4101
4101
|
});
|
|
4102
4102
|
Object.defineProperty(exports, "buildFieldSubstitutionContext", {
|
|
4103
4103
|
enumerable: true,
|
|
4104
|
-
get: function () { return
|
|
4104
|
+
get: function () { return chunkO2TZQM65_cjs.buildFieldSubstitutionContext; }
|
|
4105
4105
|
});
|
|
4106
4106
|
Object.defineProperty(exports, "renderChartViewModelSvg", {
|
|
4107
4107
|
enumerable: true,
|