ooxml-ui 1.41.0 → 1.42.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/base.d.ts +1 -0
- package/dist/building-block-styles.d.ts +1 -0
- package/dist/chart/data-sheet-keys.d.ts +1 -0
- package/dist/chart/data-sheet.d.ts +2 -1
- package/dist/chart/design-galleries.d.ts +0 -1
- package/dist/chart/format-pane-3d.d.ts +1 -0
- package/dist/chart/format-pane-advanced-space.d.ts +1 -0
- package/dist/chart/format-pane-analysis.d.ts +1 -0
- package/dist/chart/format-pane-common.d.ts +1 -0
- package/dist/chart/format-pane-fields.d.ts +1 -0
- package/dist/chart/format-pane-fill-line.d.ts +1 -0
- package/dist/chart/format-pane-intent.d.ts +1 -0
- package/dist/chart/format-pane-locales/de.d.ts +1 -0
- package/dist/chart/format-pane-locales/en.d.ts +1 -0
- package/dist/chart/format-pane-text.d.ts +1 -0
- package/dist/chart/format-pane-translate.d.ts +1 -0
- package/dist/chart/format-pane-types.d.ts +0 -1
- package/dist/chart/format-pane-view.d.ts +0 -1
- package/dist/chrome/account.d.ts +2 -1
- package/dist/chrome/print-preview.d.ts +2 -1
- package/dist/chrome/ruler.d.ts +2 -1
- package/dist/chrome/status-bar.d.ts +2 -1
- package/dist/chrome/tab-drag.d.ts +1 -0
- package/dist/chrome/task-pane.d.ts +2 -1
- package/dist/comments/mentions.d.ts +1 -0
- package/dist/comments/types.d.ts +1 -0
- package/dist/controls.d.ts +1 -0
- package/dist/dialog/chart-picker.d.ts +2 -1
- package/dist/dialog/dialog-footer.d.ts +2 -1
- package/dist/dialog/dialog-session.d.ts +1 -0
- package/dist/dialog/dialog.d.ts +2 -1
- package/dist/dialog/focus.d.ts +1 -0
- package/dist/dialog/message-dialogs.d.ts +1 -0
- package/dist/dialog/options-categories.d.ts +1 -0
- package/dist/dialog/options-controls.d.ts +1 -0
- package/dist/dialog/progress-dialog.d.ts +2 -1
- package/dist/dialog/share-dialog-locales.d.ts +1 -0
- package/dist/dialog/share-dialog.d.ts +2 -1
- package/dist/files/cloud-files-view.d.ts +1 -0
- package/dist/files/connected-services.d.ts +2 -1
- package/dist/files/open-places.d.ts +2 -1
- package/dist/fonts/availability.d.ts +1 -0
- package/dist/fonts/catalog.d.ts +1 -0
- package/dist/fonts/custom-fonts.d.ts +1 -0
- package/dist/form/checkbox.d.ts +2 -1
- package/dist/form/color-custom.d.ts +2 -1
- package/dist/form/color-grid.d.ts +2 -1
- package/dist/form/color-input/live-color-leaves.d.ts +1 -0
- package/dist/form/radio.d.ts +2 -1
- package/dist/form/search-field.d.ts +2 -1
- package/dist/form/symbol-picker.d.ts +2 -1
- package/dist/form/zoom-slider.d.ts +2 -1
- package/dist/image-native-size.d.ts +1 -0
- package/dist/menu/command-search.d.ts +2 -1
- package/dist/menu/context-menu.d.ts +2 -1
- package/dist/menu/menu-item.d.ts +2 -1
- package/dist/notices/paste-options.d.ts +2 -1
- package/dist/notices/toasts.d.ts +2 -1
- package/dist/picture-standard-filter.d.ts +1 -0
- package/dist/pptx/{chunk-IN46QNJE.mjs → chunk-BA4CJI4U.mjs} +35 -3
- package/dist/pptx/{chunk-JU3ZV73R.mjs → chunk-C7G2CSU2.mjs} +2 -2
- package/dist/pptx/{chunk-7XXOLM7H.cjs → chunk-CK6RYGB4.cjs} +37 -2
- package/dist/pptx/{chunk-J6PRXB72.mjs → chunk-OPLK7GPB.mjs} +2568 -1673
- package/dist/pptx/{chunk-RN3JVXVN.cjs → chunk-RI4YZ4AG.cjs} +2588 -1681
- package/dist/pptx/{chunk-4SZSTDER.cjs → chunk-XTYRGVT5.cjs} +47 -47
- package/dist/pptx/dom/elements/connector.d.ts.map +1 -1
- package/dist/pptx/dom/elements/edge-bleed-restore.d.ts +19 -0
- package/dist/pptx/dom/elements/edge-bleed-restore.d.ts.map +1 -0
- package/dist/pptx/dom/elements/shape-filter-defs.d.ts.map +1 -1
- package/dist/pptx/dom/elements/text-shape.d.ts.map +1 -1
- package/dist/pptx/dom/index.cjs +438 -395
- package/dist/pptx/dom/index.d.ts +1 -0
- package/dist/pptx/dom/index.d.ts.map +1 -1
- package/dist/pptx/dom/index.mjs +56 -15
- package/dist/pptx/export/html2canvas-clone.cjs +6 -6
- package/dist/pptx/export/html2canvas-clone.mjs +1 -1
- package/dist/pptx/index.cjs +3169 -3109
- package/dist/pptx/index.mjs +2 -2
- package/dist/pptx/render/connector-path.d.ts +15 -0
- package/dist/pptx/render/connector-path.d.ts.map +1 -1
- package/dist/pptx/render/connector-style.d.ts +10 -0
- package/dist/pptx/render/connector-style.d.ts.map +1 -1
- package/dist/pptx/render/device-pixel-stroke.d.ts +43 -6
- package/dist/pptx/render/device-pixel-stroke.d.ts.map +1 -1
- package/dist/pptx/render/effect-profile.d.ts +53 -0
- package/dist/pptx/render/effect-profile.d.ts.map +1 -0
- package/dist/pptx/render/font-settled.d.ts +14 -0
- package/dist/pptx/render/font-settled.d.ts.map +1 -0
- package/dist/pptx/render/index.d.ts +1 -0
- package/dist/pptx/render/index.d.ts.map +1 -1
- package/dist/pptx/render/morph-animation.d.ts +1 -24
- package/dist/pptx/render/morph-animation.d.ts.map +1 -1
- package/dist/pptx/render/morph-body-carry.d.ts +1 -1
- package/dist/pptx/render/morph-body-carry.d.ts.map +1 -1
- package/dist/pptx/render/morph-carry.d.ts.map +1 -1
- package/dist/pptx/render/morph-effect-carry.d.ts +4 -5
- package/dist/pptx/render/morph-effect-carry.d.ts.map +1 -1
- package/dist/pptx/render/morph-flip-turn.d.ts.map +1 -1
- package/dist/pptx/render/morph-line-carry.d.ts +40 -0
- package/dist/pptx/render/morph-line-carry.d.ts.map +1 -0
- package/dist/pptx/render/morph-plan.d.ts +13 -0
- package/dist/pptx/render/morph-plan.d.ts.map +1 -1
- package/dist/pptx/render/morph-rotation.d.ts +30 -0
- package/dist/pptx/render/morph-rotation.d.ts.map +1 -0
- package/dist/pptx/render/morph-shape-carry-strands.d.ts +36 -0
- package/dist/pptx/render/morph-shape-carry-strands.d.ts.map +1 -0
- package/dist/pptx/render/morph-shape-carry.d.ts +5 -0
- package/dist/pptx/render/morph-shape-carry.d.ts.map +1 -1
- package/dist/pptx/render/morph-soft-edge-blend.d.ts +38 -0
- package/dist/pptx/render/morph-soft-edge-blend.d.ts.map +1 -0
- package/dist/pptx/render/morph-text-body.d.ts +1 -1
- package/dist/pptx/render/morph-text-body.d.ts.map +1 -1
- package/dist/pptx/render/morph-text-frame.d.ts +2 -0
- package/dist/pptx/render/morph-text-frame.d.ts.map +1 -1
- package/dist/pptx/render/morph-text-glyph-plan.d.ts +31 -0
- package/dist/pptx/render/morph-text-glyph-plan.d.ts.map +1 -0
- package/dist/pptx/render/morph-text-glyphs.d.ts +27 -0
- package/dist/pptx/render/morph-text-glyphs.d.ts.map +1 -0
- package/dist/pptx/render/morph-text-lines.d.ts +8 -6
- package/dist/pptx/render/morph-text-lines.d.ts.map +1 -1
- package/dist/pptx/render/morph-text-piece-caps.d.ts +36 -0
- package/dist/pptx/render/morph-text-piece-caps.d.ts.map +1 -0
- package/dist/pptx/render/morph-text-pieces.d.ts +6 -1
- package/dist/pptx/render/morph-text-pieces.d.ts.map +1 -1
- package/dist/pptx/render/morph-text-transform.d.ts +2 -0
- package/dist/pptx/render/morph-text-transform.d.ts.map +1 -1
- package/dist/pptx/render/morph-types.d.ts +11 -2
- package/dist/pptx/render/morph-types.d.ts.map +1 -1
- package/dist/pptx/render/paragraph-baseline-settle.d.ts +8 -0
- package/dist/pptx/render/paragraph-baseline-settle.d.ts.map +1 -0
- package/dist/pptx/render/paragraph-baseline.d.ts +76 -13
- package/dist/pptx/render/paragraph-baseline.d.ts.map +1 -1
- package/dist/pptx/render/paragraph-types.d.ts +6 -0
- package/dist/pptx/render/paragraph-types.d.ts.map +1 -1
- package/dist/pptx/render/stroke-outline.d.ts +7 -0
- package/dist/pptx/render/stroke-outline.d.ts.map +1 -1
- package/dist/pptx/render/table-cell-paragraphs.d.ts.map +1 -1
- package/dist/pptx/render/text-body-layout.d.ts.map +1 -1
- package/dist/pptx/render/text-effects.d.ts +6 -11
- package/dist/pptx/render/text-effects.d.ts.map +1 -1
- package/dist/pptx/render/text-line-height.d.ts +8 -8
- package/dist/pptx/render/text-line-height.d.ts.map +1 -1
- package/dist/pptx/render/text-paragraph-style.d.ts +13 -0
- package/dist/pptx/render/text-paragraph-style.d.ts.map +1 -1
- package/dist/pptx/render/text-paragraphs.d.ts.map +1 -1
- package/dist/pptx/render/text-shrink-block.d.ts +23 -0
- package/dist/pptx/render/text-shrink-block.d.ts.map +1 -0
- package/dist/pptx/render/visual-effects.d.ts +3 -1
- package/dist/pptx/render/visual-effects.d.ts.map +1 -1
- package/dist/pptx/{smartart-insert-preview-GA6ELFRB.mjs → smartart-insert-preview-AE7D4I7L.mjs} +3 -3
- package/dist/pptx/{smartart-insert-preview-PQTEVG7C.cjs → smartart-insert-preview-P4NV2FRD.cjs} +4 -4
- package/dist/render-cache.d.ts +1 -0
- package/dist/ribbon/auto-collapse.d.ts +1 -0
- package/dist/ribbon/button.d.ts +2 -1
- package/dist/ribbon/gallery-styles.d.ts +1 -0
- package/dist/ribbon/keytip-run.d.ts +1 -0
- package/dist/ribbon/overflow.d.ts +1 -0
- package/dist/ribbon/ribbon-section.d.ts +2 -1
- package/dist/ribbon/ribbon-stack.d.ts +2 -1
- package/dist/ribbon/safe-svg.d.ts +1 -0
- package/dist/ribbon/scroll-more.d.ts +1 -0
- package/dist/smartart/smartart-picker.d.ts +2 -1
- package/dist/smartart/smartart-text-pane-tools.d.ts +1 -0
- package/package.json +2 -2
package/dist/pptx/dom/index.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
3
|
+
var chunkXTYRGVT5_cjs = require('../chunk-XTYRGVT5.cjs');
|
|
4
|
+
var chunkRI4YZ4AG_cjs = require('../chunk-RI4YZ4AG.cjs');
|
|
5
5
|
var chunkJP26TA3Q_cjs = require('../chunk-JP26TA3Q.cjs');
|
|
6
6
|
require('../chunk-XOAXPD2W.cjs');
|
|
7
7
|
require('../chunk-W3X2UVYQ.cjs');
|
|
@@ -25,7 +25,7 @@ require('../chunk-USBRSEJK.cjs');
|
|
|
25
25
|
var chunkYZWKNFPU_cjs = require('../chunk-YZWKNFPU.cjs');
|
|
26
26
|
var chunkFOE75Z6N_cjs = require('../chunk-FOE75Z6N.cjs');
|
|
27
27
|
var chunkNTXHQHCS_cjs = require('../chunk-NTXHQHCS.cjs');
|
|
28
|
-
var
|
|
28
|
+
var chunkCK6RYGB4_cjs = require('../chunk-CK6RYGB4.cjs');
|
|
29
29
|
require('../chunk-G4WRLFMJ.cjs');
|
|
30
30
|
require('../chunk-HJ3JZXOL.cjs');
|
|
31
31
|
require('../chunk-73IDQGYI.cjs');
|
|
@@ -43,14 +43,14 @@ var pptx = require('ooxml-core/pptx');
|
|
|
43
43
|
|
|
44
44
|
// src/pptx/dom/activex-controls-overlay.ts
|
|
45
45
|
function buildActiveXControlsOverlay(doc, controls, canvasSize) {
|
|
46
|
-
const overlay =
|
|
46
|
+
const overlay = chunkXTYRGVT5_cjs.createEl(doc, "div", "pptxv-activex-overlay", {
|
|
47
47
|
position: "absolute",
|
|
48
48
|
inset: "0",
|
|
49
49
|
pointerEvents: "none",
|
|
50
50
|
zIndex: "40"
|
|
51
51
|
});
|
|
52
52
|
controls.forEach((control, index) => {
|
|
53
|
-
const view =
|
|
53
|
+
const view = chunkRI4YZ4AG_cjs.getActiveXControlOverlayView(control, canvasSize, index);
|
|
54
54
|
const style = {
|
|
55
55
|
position: "absolute",
|
|
56
56
|
left: `${view.left}px`,
|
|
@@ -59,7 +59,7 @@ function buildActiveXControlsOverlay(doc, controls, canvasSize) {
|
|
|
59
59
|
height: `${view.height}px`
|
|
60
60
|
};
|
|
61
61
|
if (view.className === "image" && view.imageUrl) {
|
|
62
|
-
const img =
|
|
62
|
+
const img = chunkXTYRGVT5_cjs.createEl(doc, "img", "pptxv-activex-overlay-image", style);
|
|
63
63
|
img.src = view.imageUrl;
|
|
64
64
|
img.alt = view.label;
|
|
65
65
|
img.setAttribute("draggable", "false");
|
|
@@ -67,7 +67,7 @@ function buildActiveXControlsOverlay(doc, controls, canvasSize) {
|
|
|
67
67
|
overlay.appendChild(img);
|
|
68
68
|
return;
|
|
69
69
|
}
|
|
70
|
-
const badge =
|
|
70
|
+
const badge = chunkXTYRGVT5_cjs.createEl(doc, "div", "pptxv-activex-overlay-placeholder", style);
|
|
71
71
|
badge.title = `ActiveX control: ${view.label} (interactive controls are not supported in the viewer)`;
|
|
72
72
|
badge.textContent = view.label;
|
|
73
73
|
overlay.appendChild(badge);
|
|
@@ -80,25 +80,25 @@ function appendCommentMarkers(doc, stage, comments, canvasSize, t, onMarkerClick
|
|
|
80
80
|
if (comments.length === 0) {
|
|
81
81
|
return;
|
|
82
82
|
}
|
|
83
|
-
const overlay =
|
|
83
|
+
const overlay = chunkXTYRGVT5_cjs.createEl(doc, "div", "pptxv-comment-markers", {
|
|
84
84
|
position: "absolute",
|
|
85
85
|
inset: "0",
|
|
86
86
|
pointerEvents: "none",
|
|
87
87
|
zIndex: "45"
|
|
88
88
|
});
|
|
89
|
-
const markers =
|
|
89
|
+
const markers = chunkRI4YZ4AG_cjs.buildCommentMarkers(
|
|
90
90
|
comments,
|
|
91
91
|
canvasSize.width,
|
|
92
92
|
canvasSize.height,
|
|
93
93
|
t("pptx.comments.unknownAuthor")
|
|
94
94
|
);
|
|
95
95
|
for (const marker of markers) {
|
|
96
|
-
const dot =
|
|
96
|
+
const dot = chunkXTYRGVT5_cjs.createEl(doc, "button", "pptxv-comment-marker", {
|
|
97
97
|
position: "absolute",
|
|
98
|
-
left: `${marker.x -
|
|
99
|
-
top: `${marker.y -
|
|
100
|
-
width: `${
|
|
101
|
-
height: `${
|
|
98
|
+
left: `${marker.x - chunkRI4YZ4AG_cjs.COMMENT_MARKER_SIZE / 2}px`,
|
|
99
|
+
top: `${marker.y - chunkRI4YZ4AG_cjs.COMMENT_MARKER_SIZE / 2}px`,
|
|
100
|
+
width: `${chunkRI4YZ4AG_cjs.COMMENT_MARKER_SIZE}px`,
|
|
101
|
+
height: `${chunkRI4YZ4AG_cjs.COMMENT_MARKER_SIZE}px`,
|
|
102
102
|
display: "flex",
|
|
103
103
|
alignItems: "center",
|
|
104
104
|
justifyContent: "center",
|
|
@@ -165,7 +165,7 @@ function merge3dStyle(base, computed) {
|
|
|
165
165
|
}
|
|
166
166
|
}
|
|
167
167
|
function getShapeFillStrokeStyle(el, animatesFill, animatesStroke) {
|
|
168
|
-
const frame =
|
|
168
|
+
const frame = chunkRI4YZ4AG_cjs.getFrameEffectStyle(el);
|
|
169
169
|
if (frame) {
|
|
170
170
|
return { ...frame };
|
|
171
171
|
}
|
|
@@ -181,7 +181,7 @@ function getShapeFillStrokeStyle(el, animatesFill, animatesStroke) {
|
|
|
181
181
|
style[key] = value;
|
|
182
182
|
}
|
|
183
183
|
}
|
|
184
|
-
const stroke =
|
|
184
|
+
const stroke = chunkRI4YZ4AG_cjs.getComputedStrokeStyle(el);
|
|
185
185
|
if (stroke.borderWidth > 0) {
|
|
186
186
|
if (animatesStroke) {
|
|
187
187
|
style["borderWidth"] = stroke.cssBorderWidth;
|
|
@@ -200,7 +200,7 @@ function getShapeFillStrokeStyle(el, animatesFill, animatesStroke) {
|
|
|
200
200
|
style["strokeMiterlimit"] = stroke.strokeMiterlimit;
|
|
201
201
|
}
|
|
202
202
|
}
|
|
203
|
-
const fx =
|
|
203
|
+
const fx = chunkRI4YZ4AG_cjs.getComputedEffectStyle(el);
|
|
204
204
|
if (fx.boxShadow) {
|
|
205
205
|
style["boxShadow"] = fx.boxShadow;
|
|
206
206
|
}
|
|
@@ -217,11 +217,11 @@ function getShapeFillStrokeStyle(el, animatesFill, animatesStroke) {
|
|
|
217
217
|
if (fx.overflowVisible) {
|
|
218
218
|
style["overflow"] = "visible";
|
|
219
219
|
}
|
|
220
|
-
merge3dStyle(style,
|
|
221
|
-
if (
|
|
220
|
+
merge3dStyle(style, chunkRI4YZ4AG_cjs.getComputed3dStyle(el));
|
|
221
|
+
if (chunkRI4YZ4AG_cjs.isHollowShapeElement(el)) {
|
|
222
222
|
style["pointerEvents"] = "none";
|
|
223
223
|
}
|
|
224
|
-
const geometry =
|
|
224
|
+
const geometry = chunkRI4YZ4AG_cjs.resolveShapeGeometry(el);
|
|
225
225
|
switch (geometry.kind) {
|
|
226
226
|
case "bare":
|
|
227
227
|
style["backgroundColor"] = "transparent";
|
|
@@ -241,7 +241,7 @@ function getShapeFillStrokeStyle(el, animatesFill, animatesStroke) {
|
|
|
241
241
|
case "lineEdge":
|
|
242
242
|
style["backgroundColor"] = "transparent";
|
|
243
243
|
style["border"] = "none";
|
|
244
|
-
style["borderTop"] =
|
|
244
|
+
style["borderTop"] = chunkCK6RYGB4_cjs.screenBorder(
|
|
245
245
|
geometry.strokeWidth,
|
|
246
246
|
chunkYZWKNFPU_cjs.getCssBorderDashStyle(el.shapeStyle?.strokeDash),
|
|
247
247
|
el.shapeStyle?.strokeColor ?? chunkYZWKNFPU_cjs.DEFAULT_STROKE_COLOR
|
|
@@ -255,17 +255,17 @@ function getTextBlockStyle(el) {
|
|
|
255
255
|
if (!pptx.hasTextProperties(el)) {
|
|
256
256
|
return {};
|
|
257
257
|
}
|
|
258
|
-
const base =
|
|
258
|
+
const base = chunkRI4YZ4AG_cjs.buildTextBlockStyle(el, {
|
|
259
259
|
fallbackColor: chunkYZWKNFPU_cjs.DEFAULT_TEXT_COLOR,
|
|
260
260
|
bodyLayout: true,
|
|
261
261
|
pxLengths: true
|
|
262
262
|
});
|
|
263
|
-
const scene3d =
|
|
263
|
+
const scene3d = chunkRI4YZ4AG_cjs.buildTextBody3DSceneStyle(el.textStyle, { width: el.width, height: el.height });
|
|
264
264
|
if (!scene3d) {
|
|
265
265
|
return base;
|
|
266
266
|
}
|
|
267
267
|
const merged = { ...base, ...scene3d };
|
|
268
|
-
const transform =
|
|
268
|
+
const transform = chunkXTYRGVT5_cjs.composeTransforms(base.transform, scene3d.transform);
|
|
269
269
|
if (transform !== void 0) {
|
|
270
270
|
merged.transform = transform;
|
|
271
271
|
}
|
|
@@ -353,7 +353,7 @@ function renderSlideStage(options) {
|
|
|
353
353
|
const { document: doc, slide, canvasSize, mediaDataUrls, registry, t } = options;
|
|
354
354
|
const scale = options.scale ?? 1;
|
|
355
355
|
const interactive = options.interactive ?? false;
|
|
356
|
-
const stage =
|
|
356
|
+
const stage = chunkXTYRGVT5_cjs.createEl(doc, "div", "pptxv-stage", {
|
|
357
357
|
width: `${canvasSize.width}px`,
|
|
358
358
|
height: `${canvasSize.height}px`,
|
|
359
359
|
transform: `scale(${scale})`,
|
|
@@ -369,8 +369,8 @@ function renderSlideStage(options) {
|
|
|
369
369
|
"--pptx-slide-h": `${canvasSize.height}px`,
|
|
370
370
|
"--pptxv-grid-size": `${options.gridSpacingPx ?? 10}px`,
|
|
371
371
|
// One device pixel in slide px: thin strokes stay visible on screen.
|
|
372
|
-
...
|
|
373
|
-
...
|
|
372
|
+
...chunkCK6RYGB4_cjs.deviceStrokeStageStyle(scale),
|
|
373
|
+
...chunkRI4YZ4AG_cjs.getSlideBackgroundStyle(slide, { widthPx: canvasSize.width, heightPx: canvasSize.height })
|
|
374
374
|
});
|
|
375
375
|
if (interactive || options.reading) {
|
|
376
376
|
stage.setAttribute("role", "region");
|
|
@@ -411,10 +411,10 @@ function renderSlideStage(options) {
|
|
|
411
411
|
chartPartSelection: options.chartPartSelection,
|
|
412
412
|
onChartPartSelect: options.onChartPartSelect,
|
|
413
413
|
selectedElementIds: options.selectedElementIds,
|
|
414
|
-
edgeBleeds:
|
|
414
|
+
edgeBleeds: chunkRI4YZ4AG_cjs.resolveStageEdgeBleeds(void 0, slide, options.selectedElementIds),
|
|
415
415
|
registry,
|
|
416
416
|
renderElement(element, zIndex) {
|
|
417
|
-
if (!
|
|
417
|
+
if (!chunkRI4YZ4AG_cjs.isElementRendered(element)) {
|
|
418
418
|
return null;
|
|
419
419
|
}
|
|
420
420
|
const node = registry.resolve(element.type)(element, zIndex, context);
|
|
@@ -426,10 +426,10 @@ function renderSlideStage(options) {
|
|
|
426
426
|
}
|
|
427
427
|
node.setAttribute("data-pptx-element", "true");
|
|
428
428
|
}
|
|
429
|
-
if (node && element.type !== "text" && element.type !== "shape" && element.type !== "connector" &&
|
|
430
|
-
const hitTargetStyle =
|
|
429
|
+
if (node && element.type !== "text" && element.type !== "shape" && element.type !== "connector" && chunkRI4YZ4AG_cjs.shouldRenderHitTarget(interactive, options.presenting ?? false)) {
|
|
430
|
+
const hitTargetStyle = chunkRI4YZ4AG_cjs.elementHitTargetStyle(element);
|
|
431
431
|
if (hitTargetStyle) {
|
|
432
|
-
const hitTarget =
|
|
432
|
+
const hitTarget = chunkXTYRGVT5_cjs.createEl(doc, "div", void 0, hitTargetStyle);
|
|
433
433
|
hitTarget.setAttribute("aria-hidden", "true");
|
|
434
434
|
hitTarget.setAttribute("data-pptx-hit-target", "true");
|
|
435
435
|
node.appendChild(hitTarget);
|
|
@@ -447,12 +447,12 @@ function renderSlideStage(options) {
|
|
|
447
447
|
}
|
|
448
448
|
});
|
|
449
449
|
if (interactive || options.reading) {
|
|
450
|
-
|
|
450
|
+
chunkRI4YZ4AG_cjs.applyRenderedElementAccessibility(stage, slide.elements, {
|
|
451
451
|
presenting: options.presenting ?? false
|
|
452
452
|
});
|
|
453
453
|
}
|
|
454
454
|
if (interactive) {
|
|
455
|
-
|
|
455
|
+
chunkRI4YZ4AG_cjs.applyElementActionAffordances(
|
|
456
456
|
stage,
|
|
457
457
|
slide.elements.filter(
|
|
458
458
|
(element) => options.templateEditing || !chunk3CYWRMYZ_cjs.isTemplateElementId(element.id)
|
|
@@ -460,7 +460,7 @@ function renderSlideStage(options) {
|
|
|
460
460
|
{
|
|
461
461
|
canInteract: true,
|
|
462
462
|
presenting: options.presenting ?? false,
|
|
463
|
-
labels:
|
|
463
|
+
labels: chunkRI4YZ4AG_cjs.actionAffordanceLabels((key) => t(key))
|
|
464
464
|
}
|
|
465
465
|
);
|
|
466
466
|
}
|
|
@@ -567,7 +567,7 @@ function attachChartEditing(container, element, context, repaint) {
|
|
|
567
567
|
if (!rect) {
|
|
568
568
|
return;
|
|
569
569
|
}
|
|
570
|
-
const step2 =
|
|
570
|
+
const step2 = chunkRI4YZ4AG_cjs.advanceChartMarkDrag(activeMark, event.clientX, event.clientY, rect);
|
|
571
571
|
if (!step2) {
|
|
572
572
|
return;
|
|
573
573
|
}
|
|
@@ -626,7 +626,7 @@ function attachChartEditing(container, element, context, repaint) {
|
|
|
626
626
|
bubbles: true,
|
|
627
627
|
detail: {
|
|
628
628
|
elementId: element.id,
|
|
629
|
-
target:
|
|
629
|
+
target: chunkRI4YZ4AG_cjs.chartFormatTargetFromEvent(event, container, chart),
|
|
630
630
|
open
|
|
631
631
|
}
|
|
632
632
|
})
|
|
@@ -669,7 +669,7 @@ function attachChartEditing(container, element, context, repaint) {
|
|
|
669
669
|
seriesIndex: part.seriesIndex,
|
|
670
670
|
pointIndex: part.pointIndex
|
|
671
671
|
});
|
|
672
|
-
const startedMark =
|
|
672
|
+
const startedMark = chunkRI4YZ4AG_cjs.beginChartMarkDrag({
|
|
673
673
|
part,
|
|
674
674
|
geometry: markGeometry,
|
|
675
675
|
chartData: chart.chartData,
|
|
@@ -713,17 +713,17 @@ function attachChartEditing(container, element, context, repaint) {
|
|
|
713
713
|
// src/pptx/dom/elements/chart.ts
|
|
714
714
|
var renderChartElement = (element, zIndex, context) => {
|
|
715
715
|
const wrapper = renderChartSvgElement(element, zIndex, context);
|
|
716
|
-
const spec = wrapper ?
|
|
716
|
+
const spec = wrapper ? chunkRI4YZ4AG_cjs.resolveChartThreeViewSpec(element, chunkXTYRGVT5_cjs.rendering3DFlagsOf(context)) : null;
|
|
717
717
|
if (!wrapper || !spec) {
|
|
718
718
|
return wrapper;
|
|
719
719
|
}
|
|
720
|
-
const view =
|
|
720
|
+
const view = chunkXTYRGVT5_cjs.mountThreeViewInto(context.document, wrapper, {
|
|
721
721
|
spec,
|
|
722
|
-
interactive:
|
|
723
|
-
selectedPart:
|
|
722
|
+
interactive: chunkXTYRGVT5_cjs.isChart3DEditable(element, context),
|
|
723
|
+
selectedPart: chunkXTYRGVT5_cjs.selectedChartPartOf(element, context),
|
|
724
724
|
textStyle: context.presentationStates?.get(element.id)?.textStyle
|
|
725
725
|
});
|
|
726
|
-
|
|
726
|
+
chunkXTYRGVT5_cjs.wireChartThreeViewEvents(view, element, context, wrapper);
|
|
727
727
|
return wrapper;
|
|
728
728
|
};
|
|
729
729
|
var renderChartSvgElement = (element, zIndex, context) => {
|
|
@@ -731,16 +731,16 @@ var renderChartSvgElement = (element, zIndex, context) => {
|
|
|
731
731
|
return null;
|
|
732
732
|
}
|
|
733
733
|
const doc = context.document;
|
|
734
|
-
const container =
|
|
734
|
+
const container = chunkXTYRGVT5_cjs.createEl(
|
|
735
735
|
doc,
|
|
736
736
|
"div",
|
|
737
737
|
"pptxv-element pptxv-chart",
|
|
738
738
|
// The chart area's outer shadow and glow sit on the frame, outside the chart.
|
|
739
|
-
{ ...
|
|
739
|
+
{ ...chunkRI4YZ4AG_cjs.getContainerStyle(element, zIndex), ...chunkRI4YZ4AG_cjs.getFrameEffectStyle(element) }
|
|
740
740
|
);
|
|
741
741
|
container.dataset.elementId = element.id;
|
|
742
742
|
const animationState = context.presentationStates?.get(element.id);
|
|
743
|
-
const chartData = element.chartData ?
|
|
743
|
+
const chartData = element.chartData ? chunkRI4YZ4AG_cjs.resolveRevealedChartData(element.chartData, animationState) : element.chartData;
|
|
744
744
|
if (!chartData || chartData.series.length === 0) {
|
|
745
745
|
container.appendChild(renderChartPlaceholder(doc, chartData?.chartType ?? "bar", context.t));
|
|
746
746
|
return container;
|
|
@@ -775,7 +775,7 @@ function resolveChartPalette2(chartData) {
|
|
|
775
775
|
return chunkYZWKNFPU_cjs.resolveChartPalette(chartData);
|
|
776
776
|
}
|
|
777
777
|
function renderChartPlaceholder(doc, chartType, t) {
|
|
778
|
-
const placeholder =
|
|
778
|
+
const placeholder = chunkXTYRGVT5_cjs.createEl(doc, "div", "pptxv-placeholder pptxv-chart-placeholder", {
|
|
779
779
|
display: "flex",
|
|
780
780
|
alignItems: "center",
|
|
781
781
|
justifyContent: "center",
|
|
@@ -787,7 +787,7 @@ function renderChartPlaceholder(doc, chartType, t) {
|
|
|
787
787
|
border: "1px dashed #cbd5e1",
|
|
788
788
|
boxSizing: "border-box"
|
|
789
789
|
});
|
|
790
|
-
placeholder.textContent =
|
|
790
|
+
placeholder.textContent = chunkRI4YZ4AG_cjs.chartPlaceholderLabel(chartType, (key, params) => t(key, params));
|
|
791
791
|
return placeholder;
|
|
792
792
|
}
|
|
793
793
|
|
|
@@ -806,19 +806,19 @@ function appendRunContent(doc, host, run) {
|
|
|
806
806
|
}
|
|
807
807
|
function appendTabLines(doc, host, lines) {
|
|
808
808
|
lines.forEach((line, li) => {
|
|
809
|
-
const lineHost =
|
|
809
|
+
const lineHost = chunkXTYRGVT5_cjs.createEl(doc, "span", void 0, {
|
|
810
810
|
display: "inline-block",
|
|
811
811
|
whiteSpace: "nowrap"
|
|
812
812
|
});
|
|
813
813
|
for (const piece of line.pieces) {
|
|
814
814
|
if (piece.leaderStyle) {
|
|
815
|
-
const leader =
|
|
815
|
+
const leader = chunkXTYRGVT5_cjs.createEl(doc, "span", void 0, piece.leaderStyle);
|
|
816
816
|
leader.setAttribute("aria-hidden", "true");
|
|
817
817
|
leader.textContent = piece.leaderText ?? "";
|
|
818
818
|
lineHost.appendChild(leader);
|
|
819
819
|
}
|
|
820
820
|
for (const word of piece.words ?? [piece]) {
|
|
821
|
-
const textSpan =
|
|
821
|
+
const textSpan = chunkXTYRGVT5_cjs.createEl(doc, "span", void 0, word.style);
|
|
822
822
|
textSpan.textContent = word.text;
|
|
823
823
|
lineHost.appendChild(textSpan);
|
|
824
824
|
}
|
|
@@ -832,7 +832,7 @@ function appendTabLines(doc, host, lines) {
|
|
|
832
832
|
function appendStyledPieces(doc, host, pieces) {
|
|
833
833
|
for (const piece of pieces) {
|
|
834
834
|
if (piece.style) {
|
|
835
|
-
const span =
|
|
835
|
+
const span = chunkXTYRGVT5_cjs.createEl(doc, "span", void 0, piece.style);
|
|
836
836
|
span.textContent = piece.text;
|
|
837
837
|
host.appendChild(span);
|
|
838
838
|
} else {
|
|
@@ -845,16 +845,16 @@ function appendStyledPieces(doc, host, pieces) {
|
|
|
845
845
|
var NEWLINE_RUN = "\n";
|
|
846
846
|
function createRunBaseNode(doc, run) {
|
|
847
847
|
if (run.equation) {
|
|
848
|
-
const host =
|
|
849
|
-
const math =
|
|
848
|
+
const host = chunkXTYRGVT5_cjs.createEl(doc, "span", "pptxv-inline-equation", run.style);
|
|
849
|
+
const math = chunkXTYRGVT5_cjs.createEl(doc, "span", "pptxv-equation-math", {
|
|
850
850
|
display: "inline-block",
|
|
851
851
|
verticalAlign: "middle",
|
|
852
852
|
fontFamily: "'Cambria Math', 'STIX Two Math', serif"
|
|
853
853
|
});
|
|
854
|
-
math.innerHTML =
|
|
854
|
+
math.innerHTML = chunkRI4YZ4AG_cjs.runEquationMathMl(run.equation);
|
|
855
855
|
host.appendChild(math);
|
|
856
856
|
if (run.equation.number) {
|
|
857
|
-
const number =
|
|
857
|
+
const number = chunkXTYRGVT5_cjs.createEl(doc, "span", "pptxv-equation-number", {
|
|
858
858
|
whiteSpace: "nowrap",
|
|
859
859
|
marginInlineStart: "0.5em"
|
|
860
860
|
});
|
|
@@ -863,8 +863,8 @@ function createRunBaseNode(doc, run) {
|
|
|
863
863
|
}
|
|
864
864
|
return host;
|
|
865
865
|
}
|
|
866
|
-
if (run.hyperlink &&
|
|
867
|
-
const link =
|
|
866
|
+
if (run.hyperlink && chunkRI4YZ4AG_cjs.isRunHyperlinkClickable(run.hyperlink)) {
|
|
867
|
+
const link = chunkXTYRGVT5_cjs.createEl(doc, "a", "pptxv-link", run.style);
|
|
868
868
|
link.setAttribute("data-pptx-hyperlink", run.hyperlink.url);
|
|
869
869
|
link.setAttribute("role", "link");
|
|
870
870
|
link.tabIndex = 0;
|
|
@@ -880,13 +880,13 @@ function createRunBaseNode(doc, run) {
|
|
|
880
880
|
}
|
|
881
881
|
if (run.ruby) {
|
|
882
882
|
const ruby = doc.createElement("ruby");
|
|
883
|
-
|
|
883
|
+
chunkXTYRGVT5_cjs.applyStyleMap(ruby, run.style);
|
|
884
884
|
appendRunContent(doc, ruby, run);
|
|
885
885
|
const openParen = doc.createElement("rp");
|
|
886
886
|
openParen.textContent = "(";
|
|
887
887
|
ruby.appendChild(openParen);
|
|
888
888
|
const annotation = doc.createElement("rt");
|
|
889
|
-
|
|
889
|
+
chunkXTYRGVT5_cjs.applyStyleMap(annotation, run.ruby.style);
|
|
890
890
|
annotation.textContent = run.ruby.text;
|
|
891
891
|
ruby.appendChild(annotation);
|
|
892
892
|
const closeParen = doc.createElement("rp");
|
|
@@ -894,8 +894,8 @@ function createRunBaseNode(doc, run) {
|
|
|
894
894
|
ruby.appendChild(closeParen);
|
|
895
895
|
return ruby;
|
|
896
896
|
}
|
|
897
|
-
const span =
|
|
898
|
-
|
|
897
|
+
const span = chunkXTYRGVT5_cjs.createEl(doc, "span");
|
|
898
|
+
chunkXTYRGVT5_cjs.applyStyleMap(span, run.style);
|
|
899
899
|
appendRunContent(doc, span, run);
|
|
900
900
|
return span;
|
|
901
901
|
}
|
|
@@ -904,22 +904,22 @@ function createRunNode(doc, run) {
|
|
|
904
904
|
if (!run.reflection) {
|
|
905
905
|
return base;
|
|
906
906
|
}
|
|
907
|
-
const wrapper =
|
|
907
|
+
const wrapper = chunkXTYRGVT5_cjs.createEl(doc, "span", void 0, {
|
|
908
908
|
position: "relative",
|
|
909
909
|
display: "inline-block"
|
|
910
910
|
});
|
|
911
911
|
wrapper.appendChild(base);
|
|
912
|
-
const mirror =
|
|
912
|
+
const mirror = chunkXTYRGVT5_cjs.createEl(doc, "span", "pptxv-text-reflection", { ...run.reflection });
|
|
913
913
|
mirror.setAttribute("aria-hidden", "true");
|
|
914
|
-
const mirrorInner =
|
|
915
|
-
|
|
914
|
+
const mirrorInner = chunkXTYRGVT5_cjs.createEl(doc, "span");
|
|
915
|
+
chunkXTYRGVT5_cjs.applyStyleMap(mirrorInner, run.style);
|
|
916
916
|
appendRunContent(doc, mirrorInner, run);
|
|
917
917
|
mirror.appendChild(mirrorInner);
|
|
918
918
|
wrapper.appendChild(mirror);
|
|
919
919
|
return wrapper;
|
|
920
920
|
}
|
|
921
921
|
function renderTextBlock(doc, paragraphs, textStyle, build) {
|
|
922
|
-
const block =
|
|
922
|
+
const block = chunkXTYRGVT5_cjs.createEl(doc, "div", "pptxv-text", textStyle);
|
|
923
923
|
for (const para of paragraphs) {
|
|
924
924
|
const paraStyle = {
|
|
925
925
|
// This paragraph's own `text-align` / BiDi `direction` / kinsoku rules,
|
|
@@ -941,13 +941,13 @@ function renderTextBlock(doc, paragraphs, textStyle, build) {
|
|
|
941
941
|
if (para.strutFontSizePx !== void 0) {
|
|
942
942
|
paraStyle.fontSize = `${para.strutFontSizePx}px`;
|
|
943
943
|
}
|
|
944
|
-
const p =
|
|
944
|
+
const p = chunkXTYRGVT5_cjs.createEl(doc, "p", "pptxv-para", paraStyle);
|
|
945
945
|
if (para.textIndentPx !== void 0) {
|
|
946
946
|
p.style.textIndent = `${para.textIndentPx}px`;
|
|
947
947
|
}
|
|
948
948
|
const picture = para.bulletPicture;
|
|
949
949
|
if (picture?.src) {
|
|
950
|
-
const image =
|
|
950
|
+
const image = chunkXTYRGVT5_cjs.createEl(doc, "img", "pptxv-bullet-image", {
|
|
951
951
|
width: `${picture.sizePx}px`,
|
|
952
952
|
height: `${picture.sizePx}px`,
|
|
953
953
|
display: "inline-block",
|
|
@@ -960,15 +960,15 @@ function renderTextBlock(doc, paragraphs, textStyle, build) {
|
|
|
960
960
|
image.setAttribute("draggable", "false");
|
|
961
961
|
p.appendChild(image);
|
|
962
962
|
} else if (para.bulletMarker !== void 0) {
|
|
963
|
-
const bullet =
|
|
964
|
-
|
|
963
|
+
const bullet = chunkXTYRGVT5_cjs.createEl(doc, "span", "pptxv-bullet");
|
|
964
|
+
chunkXTYRGVT5_cjs.applyStyleMap(bullet, para.bulletStyle);
|
|
965
965
|
if (para.bulletPicture) {
|
|
966
966
|
bullet.setAttribute("aria-label", para.bulletPicture.accessibleLabel);
|
|
967
967
|
}
|
|
968
968
|
bullet.textContent = para.bulletMarker;
|
|
969
969
|
p.appendChild(bullet);
|
|
970
970
|
}
|
|
971
|
-
const spec = build ?
|
|
971
|
+
const spec = build ? chunkRI4YZ4AG_cjs.buildTextBuildSpec(
|
|
972
972
|
build.elementId,
|
|
973
973
|
paragraphs.indexOf(para),
|
|
974
974
|
para.runs.filter((run) => run.text !== NEWLINE_RUN).map((run) => ({ text: run.text, style: run.style })),
|
|
@@ -976,8 +976,8 @@ function renderTextBlock(doc, paragraphs, textStyle, build) {
|
|
|
976
976
|
) : void 0;
|
|
977
977
|
if (spec && spec.granularity !== "paragraph") {
|
|
978
978
|
for (const span of spec.spans ?? []) {
|
|
979
|
-
const node =
|
|
980
|
-
|
|
979
|
+
const node = chunkXTYRGVT5_cjs.createEl(doc, "span");
|
|
980
|
+
chunkXTYRGVT5_cjs.applyStyleMap(node, { ...span.style ?? {}, ...chunkRI4YZ4AG_cjs.textBuildSpanStyle(span) });
|
|
981
981
|
if (span.animId) {
|
|
982
982
|
node.setAttribute("data-anim-id", span.animId);
|
|
983
983
|
}
|
|
@@ -989,8 +989,8 @@ function renderTextBlock(doc, paragraphs, textStyle, build) {
|
|
|
989
989
|
}
|
|
990
990
|
let runHost = p;
|
|
991
991
|
if (spec) {
|
|
992
|
-
const wrapper =
|
|
993
|
-
|
|
992
|
+
const wrapper = chunkXTYRGVT5_cjs.createEl(doc, "span");
|
|
993
|
+
chunkXTYRGVT5_cjs.applyStyleMap(wrapper, chunkRI4YZ4AG_cjs.textBuildSpanStyle(spec));
|
|
994
994
|
if (spec.animId) {
|
|
995
995
|
wrapper.setAttribute("data-anim-id", spec.animId);
|
|
996
996
|
}
|
|
@@ -1022,7 +1022,7 @@ var renderConnectorElement = (element, zIndex, context) => {
|
|
|
1022
1022
|
const dashArray = chunkYZWKNFPU_cjs.buildDashArray(ss?.strokeDash, strokeWidth, ss?.customDashSegments);
|
|
1023
1023
|
const w = Math.max(element.width, 1);
|
|
1024
1024
|
const h = Math.max(element.height, 1);
|
|
1025
|
-
const wrapper =
|
|
1025
|
+
const wrapper = chunkXTYRGVT5_cjs.createEl(doc, "div", "pptxv-element pptxv-connector", {
|
|
1026
1026
|
position: "absolute",
|
|
1027
1027
|
left: `${element.x}px`,
|
|
1028
1028
|
top: `${element.y}px`,
|
|
@@ -1046,18 +1046,18 @@ var renderConnectorElement = (element, zIndex, context) => {
|
|
|
1046
1046
|
if (element.hidden) {
|
|
1047
1047
|
wrapper.style.display = "none";
|
|
1048
1048
|
}
|
|
1049
|
-
const lineGlow =
|
|
1049
|
+
const lineGlow = chunkRI4YZ4AG_cjs.getLineGlowFilterCss(ss);
|
|
1050
1050
|
if (lineGlow) {
|
|
1051
1051
|
wrapper.style.filter = lineGlow;
|
|
1052
1052
|
}
|
|
1053
|
-
const svg =
|
|
1053
|
+
const svg = chunkXTYRGVT5_cjs.createSvgEl(doc, "svg", { width: w, height: h, viewBox: `0 0 ${w} ${h}` });
|
|
1054
1054
|
svg.setAttribute("style", "overflow:visible;display:block");
|
|
1055
1055
|
const seed = element.id.replace(/[^a-zA-Z0-9_-]/gu, "_");
|
|
1056
|
-
const defs =
|
|
1057
|
-
const lineShadow =
|
|
1056
|
+
const defs = chunkXTYRGVT5_cjs.createSvgEl(doc, "defs");
|
|
1057
|
+
const lineShadow = chunkRI4YZ4AG_cjs.getLineShadowParams(ss);
|
|
1058
1058
|
const shadowId = lineShadow ? `${seed}-line-shadow` : void 0;
|
|
1059
1059
|
if (lineShadow && shadowId) {
|
|
1060
|
-
const filter =
|
|
1060
|
+
const filter = chunkXTYRGVT5_cjs.createSvgEl(doc, "filter", {
|
|
1061
1061
|
id: shadowId,
|
|
1062
1062
|
x: "-50%",
|
|
1063
1063
|
y: "-50%",
|
|
@@ -1065,7 +1065,7 @@ var renderConnectorElement = (element, zIndex, context) => {
|
|
|
1065
1065
|
height: "200%"
|
|
1066
1066
|
});
|
|
1067
1067
|
filter.appendChild(
|
|
1068
|
-
|
|
1068
|
+
chunkXTYRGVT5_cjs.createSvgEl(doc, "feDropShadow", {
|
|
1069
1069
|
dx: lineShadow.offsetX,
|
|
1070
1070
|
dy: lineShadow.offsetY,
|
|
1071
1071
|
stdDeviation: lineShadow.blur / 2,
|
|
@@ -1075,8 +1075,8 @@ var renderConnectorElement = (element, zIndex, context) => {
|
|
|
1075
1075
|
);
|
|
1076
1076
|
defs.appendChild(filter);
|
|
1077
1077
|
}
|
|
1078
|
-
const startArrow =
|
|
1079
|
-
const endArrow =
|
|
1078
|
+
const startArrow = chunkRI4YZ4AG_cjs.normalizeArrow(ss?.connectorStartArrow);
|
|
1079
|
+
const endArrow = chunkRI4YZ4AG_cjs.normalizeArrow(ss?.connectorEndArrow);
|
|
1080
1080
|
const startMarkerId = startArrow ? `${seed}-start` : void 0;
|
|
1081
1081
|
const endMarkerId = endArrow ? `${seed}-end` : void 0;
|
|
1082
1082
|
if (startArrow && startMarkerId) {
|
|
@@ -1099,21 +1099,24 @@ var renderConnectorElement = (element, zIndex, context) => {
|
|
|
1099
1099
|
svg.appendChild(defs);
|
|
1100
1100
|
}
|
|
1101
1101
|
const compound = ss?.compoundLine;
|
|
1102
|
-
const offsets =
|
|
1103
|
-
const widths =
|
|
1102
|
+
const offsets = chunkRI4YZ4AG_cjs.getCompoundLineOffsets(compound, strokeWidth);
|
|
1103
|
+
const widths = chunkRI4YZ4AG_cjs.getCompoundLineWidths(compound, strokeWidth);
|
|
1104
1104
|
const shapeType = pptx.hasShapeProperties(element) ? element.shapeType : void 0;
|
|
1105
|
-
const usePath =
|
|
1105
|
+
const usePath = chunkRI4YZ4AG_cjs.connectorNeedsPath(shapeType) && pptx.hasShapeProperties(element);
|
|
1106
1106
|
const pathData = usePath ? pptx.getConnectorPathGeometry(element).pathData : void 0;
|
|
1107
|
-
const
|
|
1108
|
-
const
|
|
1109
|
-
const
|
|
1110
|
-
const
|
|
1111
|
-
const
|
|
1107
|
+
const rw = Math.max(element.width, 0);
|
|
1108
|
+
const rh = Math.max(element.height, 0);
|
|
1109
|
+
const x1 = element.flipHorizontal ? rw : 0;
|
|
1110
|
+
const y1 = element.flipVertical ? rh : 0;
|
|
1111
|
+
const x2 = element.flipHorizontal ? 0 : rw;
|
|
1112
|
+
const y2 = element.flipVertical ? 0 : rh;
|
|
1113
|
+
const snapTransform = chunkRI4YZ4AG_cjs.connectorSnapTransform(element, !usePath, offsets.length, strokeWidth);
|
|
1114
|
+
const hit = chunkXTYRGVT5_cjs.createSvgEl(doc, "path", {
|
|
1112
1115
|
class: "pptxv-connector-hit",
|
|
1113
1116
|
d: pathData ?? `M${x1},${y1} L${x2},${y2}`,
|
|
1114
1117
|
fill: "none",
|
|
1115
1118
|
stroke: "transparent",
|
|
1116
|
-
"stroke-width":
|
|
1119
|
+
"stroke-width": chunkRI4YZ4AG_cjs.connectorHitStrokeWidth(strokeWidth),
|
|
1117
1120
|
"stroke-linecap": "round",
|
|
1118
1121
|
"stroke-linejoin": "round"
|
|
1119
1122
|
});
|
|
@@ -1134,7 +1137,7 @@ var renderConnectorElement = (element, zIndex, context) => {
|
|
|
1134
1137
|
};
|
|
1135
1138
|
let node;
|
|
1136
1139
|
if (pathData !== void 0) {
|
|
1137
|
-
node =
|
|
1140
|
+
node = chunkXTYRGVT5_cjs.createSvgEl(doc, "path", {
|
|
1138
1141
|
d: pathData,
|
|
1139
1142
|
fill: "none",
|
|
1140
1143
|
"stroke-linejoin": "round",
|
|
@@ -1144,7 +1147,7 @@ var renderConnectorElement = (element, zIndex, context) => {
|
|
|
1144
1147
|
node.style.transform = `translate(0, ${offset}px)`;
|
|
1145
1148
|
}
|
|
1146
1149
|
} else {
|
|
1147
|
-
node =
|
|
1150
|
+
node = chunkXTYRGVT5_cjs.createSvgEl(doc, "line", {
|
|
1148
1151
|
x1,
|
|
1149
1152
|
y1: y1 + offset,
|
|
1150
1153
|
x2,
|
|
@@ -1152,7 +1155,11 @@ var renderConnectorElement = (element, zIndex, context) => {
|
|
|
1152
1155
|
...stroke
|
|
1153
1156
|
});
|
|
1154
1157
|
}
|
|
1155
|
-
node.
|
|
1158
|
+
node.setAttribute("data-pptx-line", "");
|
|
1159
|
+
node.style.setProperty("stroke-width", chunkRI4YZ4AG_cjs.connectorStrandScreenWidth(widths, strokeWidth, idx));
|
|
1160
|
+
if (snapTransform) {
|
|
1161
|
+
node.style.transform = snapTransform;
|
|
1162
|
+
}
|
|
1156
1163
|
svg.appendChild(node);
|
|
1157
1164
|
});
|
|
1158
1165
|
wrapper.appendChild(svg);
|
|
@@ -1163,7 +1170,7 @@ function appendConnectorLabel(wrapper, element, context) {
|
|
|
1163
1170
|
if (!pptx.hasTextProperties(element)) {
|
|
1164
1171
|
return;
|
|
1165
1172
|
}
|
|
1166
|
-
const paragraphs =
|
|
1173
|
+
const paragraphs = chunkRI4YZ4AG_cjs.buildParagraphs(element, context.fieldContext);
|
|
1167
1174
|
if (!paragraphs.some((paragraph) => paragraph.runs.length > 0)) {
|
|
1168
1175
|
return;
|
|
1169
1176
|
}
|
|
@@ -1183,8 +1190,8 @@ function appendConnectorLabel(wrapper, element, context) {
|
|
|
1183
1190
|
}
|
|
1184
1191
|
function buildMarker(context, id, arrow, strokeColor, size) {
|
|
1185
1192
|
const doc = context.document;
|
|
1186
|
-
const shape =
|
|
1187
|
-
const marker =
|
|
1193
|
+
const shape = chunkRI4YZ4AG_cjs.markerPath(arrow, size.width, size.length);
|
|
1194
|
+
const marker = chunkXTYRGVT5_cjs.createSvgEl(doc, "marker", {
|
|
1188
1195
|
id,
|
|
1189
1196
|
viewBox: "0 0 10 10",
|
|
1190
1197
|
refX: shape.refX,
|
|
@@ -1196,25 +1203,56 @@ function buildMarker(context, id, arrow, strokeColor, size) {
|
|
|
1196
1203
|
preserveAspectRatio: "none"
|
|
1197
1204
|
});
|
|
1198
1205
|
if (shape.shape === "circle") {
|
|
1199
|
-
marker.appendChild(
|
|
1206
|
+
marker.appendChild(chunkXTYRGVT5_cjs.createSvgEl(doc, "circle", { cx: 5, cy: 5, r: 4, fill: strokeColor }));
|
|
1200
1207
|
} else if (shape.strokeOnly) {
|
|
1201
|
-
marker.appendChild(
|
|
1208
|
+
marker.appendChild(chunkXTYRGVT5_cjs.createSvgEl(doc, "path", { d: shape.d, fill: "none", stroke: strokeColor }));
|
|
1202
1209
|
} else {
|
|
1203
|
-
marker.appendChild(
|
|
1210
|
+
marker.appendChild(chunkXTYRGVT5_cjs.createSvgEl(doc, "path", { d: shape.d, fill: strokeColor }));
|
|
1204
1211
|
}
|
|
1205
1212
|
return marker;
|
|
1206
1213
|
}
|
|
1207
1214
|
|
|
1215
|
+
// src/pptx/dom/elements/edge-bleed-restore.ts
|
|
1216
|
+
var ATTRIBUTE = "data-pptx-edge-bleed";
|
|
1217
|
+
var kebab = (key) => key.replace(/[A-Z]/gu, (c) => `-${c.toLowerCase()}`);
|
|
1218
|
+
function markAbuttingEdgeBleed(el, patch, before) {
|
|
1219
|
+
const keys = Object.keys(patch);
|
|
1220
|
+
if (keys.length === 0) return;
|
|
1221
|
+
const original = {};
|
|
1222
|
+
for (const key of keys) {
|
|
1223
|
+
const value = before[key] ?? before[kebab(key)];
|
|
1224
|
+
original[kebab(key)] = value === void 0 || value === null ? "" : String(value);
|
|
1225
|
+
}
|
|
1226
|
+
el.setAttribute(ATTRIBUTE, JSON.stringify(original));
|
|
1227
|
+
}
|
|
1228
|
+
function stripAbuttingEdgeBleeds(root) {
|
|
1229
|
+
const nodes = [...root.querySelectorAll(`[${ATTRIBUTE}]`)];
|
|
1230
|
+
if ("hasAttribute" in root && root.hasAttribute(ATTRIBUTE)) {
|
|
1231
|
+
nodes.push(root);
|
|
1232
|
+
}
|
|
1233
|
+
for (const node of nodes) {
|
|
1234
|
+
try {
|
|
1235
|
+
const original = JSON.parse(node.getAttribute(ATTRIBUTE) ?? "{}");
|
|
1236
|
+
for (const [property, value] of Object.entries(original)) {
|
|
1237
|
+
if (value === "") node.style.removeProperty(property);
|
|
1238
|
+
else node.style.setProperty(property, value);
|
|
1239
|
+
}
|
|
1240
|
+
} catch {
|
|
1241
|
+
}
|
|
1242
|
+
node.removeAttribute(ATTRIBUTE);
|
|
1243
|
+
}
|
|
1244
|
+
}
|
|
1245
|
+
|
|
1208
1246
|
// src/pptx/dom/elements/ink-stroke-svg.ts
|
|
1209
1247
|
function buildStrokeSvg(doc, view, replay) {
|
|
1210
1248
|
if (view.nibMarks) {
|
|
1211
|
-
const g =
|
|
1249
|
+
const g = chunkXTYRGVT5_cjs.createSvgEl(doc, "g", {
|
|
1212
1250
|
opacity: view.opacity,
|
|
1213
1251
|
...view.blendMode === "multiply" ? { style: "mix-blend-mode: multiply" } : {}
|
|
1214
1252
|
});
|
|
1215
1253
|
for (const m of view.nibMarks) {
|
|
1216
1254
|
g.appendChild(
|
|
1217
|
-
|
|
1255
|
+
chunkXTYRGVT5_cjs.createSvgEl(doc, "ellipse", {
|
|
1218
1256
|
cx: m.cx,
|
|
1219
1257
|
cy: m.cy,
|
|
1220
1258
|
rx: m.rPerp,
|
|
@@ -1227,16 +1265,16 @@ function buildStrokeSvg(doc, view, replay) {
|
|
|
1227
1265
|
return g;
|
|
1228
1266
|
}
|
|
1229
1267
|
if (view.circles) {
|
|
1230
|
-
const g =
|
|
1268
|
+
const g = chunkXTYRGVT5_cjs.createSvgEl(doc, "g", {
|
|
1231
1269
|
opacity: view.opacity,
|
|
1232
1270
|
...view.blendMode === "multiply" ? { style: "mix-blend-mode: multiply" } : {}
|
|
1233
1271
|
});
|
|
1234
1272
|
for (const c of view.circles) {
|
|
1235
|
-
g.appendChild(
|
|
1273
|
+
g.appendChild(chunkXTYRGVT5_cjs.createSvgEl(doc, "circle", { cx: c.cx, cy: c.cy, r: c.r, fill: view.color }));
|
|
1236
1274
|
}
|
|
1237
1275
|
return g;
|
|
1238
1276
|
}
|
|
1239
|
-
const path =
|
|
1277
|
+
const path = chunkXTYRGVT5_cjs.createSvgEl(doc, "path", {
|
|
1240
1278
|
d: view.d,
|
|
1241
1279
|
fill: "none",
|
|
1242
1280
|
stroke: view.color,
|
|
@@ -1264,24 +1302,24 @@ var renderContentPartElement = (element, zIndex, context) => {
|
|
|
1264
1302
|
return null;
|
|
1265
1303
|
}
|
|
1266
1304
|
const doc = context.document;
|
|
1267
|
-
const el =
|
|
1305
|
+
const el = chunkXTYRGVT5_cjs.createEl(
|
|
1268
1306
|
doc,
|
|
1269
1307
|
"div",
|
|
1270
1308
|
"pptxv-element pptxv-contentpart",
|
|
1271
|
-
|
|
1309
|
+
chunkRI4YZ4AG_cjs.getContainerStyle(element, zIndex)
|
|
1272
1310
|
);
|
|
1273
1311
|
el.dataset.elementId = element.id;
|
|
1274
1312
|
const strokes = element.inkStrokes;
|
|
1275
1313
|
if (!strokes || strokes.length === 0) {
|
|
1276
1314
|
el.classList.add("pptxv-placeholder");
|
|
1277
|
-
const label =
|
|
1315
|
+
const label = chunkXTYRGVT5_cjs.createEl(doc, "div", "pptxv-placeholder-label");
|
|
1278
1316
|
label.textContent = context.t("pptx.ink.contentPartFallback");
|
|
1279
1317
|
el.appendChild(label);
|
|
1280
1318
|
return el;
|
|
1281
1319
|
}
|
|
1282
1320
|
const w = Math.max(element.width, 1);
|
|
1283
1321
|
const h = Math.max(element.height, 1);
|
|
1284
|
-
const svg =
|
|
1322
|
+
const svg = chunkXTYRGVT5_cjs.createSvgEl(doc, "svg", {
|
|
1285
1323
|
viewBox: `0 0 ${w} ${h}`,
|
|
1286
1324
|
preserveAspectRatio: "none"
|
|
1287
1325
|
});
|
|
@@ -1289,7 +1327,7 @@ var renderContentPartElement = (element, zIndex, context) => {
|
|
|
1289
1327
|
svg.setAttribute("style", "width:100%;height:100%;pointer-events:none;display:block");
|
|
1290
1328
|
const replayStyles = context.presenting ? chunkNTXHQHCS_cjs.getContentPartReplayStyles(strokes) : [];
|
|
1291
1329
|
if (context.presenting) {
|
|
1292
|
-
const keyframes =
|
|
1330
|
+
const keyframes = chunkXTYRGVT5_cjs.createSvgEl(doc, "style");
|
|
1293
1331
|
keyframes.textContent = chunkNTXHQHCS_cjs.INK_REPLAY_KEYFRAMES;
|
|
1294
1332
|
svg.appendChild(keyframes);
|
|
1295
1333
|
}
|
|
@@ -1301,38 +1339,38 @@ var renderContentPartElement = (element, zIndex, context) => {
|
|
|
1301
1339
|
return el;
|
|
1302
1340
|
};
|
|
1303
1341
|
function renderEquations(element, context) {
|
|
1304
|
-
if (!pptx.hasTextProperties(element) || !
|
|
1342
|
+
if (!pptx.hasTextProperties(element) || !chunkRI4YZ4AG_cjs.isEquationOnlyText(element.textSegments)) {
|
|
1305
1343
|
return null;
|
|
1306
1344
|
}
|
|
1307
1345
|
const equations = (element.textSegments ?? []).filter((segment) => segment.equationXml);
|
|
1308
1346
|
if (equations.length === 0) {
|
|
1309
1347
|
return null;
|
|
1310
1348
|
}
|
|
1311
|
-
const wrapper =
|
|
1349
|
+
const wrapper = chunkXTYRGVT5_cjs.createEl(context.document, "div", "pptxv-equations", {
|
|
1312
1350
|
...getTextBlockStyle(element),
|
|
1313
1351
|
alignItems: "center",
|
|
1314
1352
|
gap: "0.25em",
|
|
1315
1353
|
fontFamily: "'Cambria Math', 'STIX Two Math', serif"
|
|
1316
1354
|
});
|
|
1317
1355
|
for (const segment of equations) {
|
|
1318
|
-
const mathml =
|
|
1356
|
+
const mathml = chunkRI4YZ4AG_cjs.convertOmmlToMathMl(segment.equationXml);
|
|
1319
1357
|
if (!mathml) {
|
|
1320
1358
|
continue;
|
|
1321
1359
|
}
|
|
1322
|
-
const row =
|
|
1360
|
+
const row = chunkXTYRGVT5_cjs.createEl(context.document, "span", "pptxv-equation", {
|
|
1323
1361
|
display: "flex",
|
|
1324
1362
|
alignItems: "center",
|
|
1325
1363
|
justifyContent: "center",
|
|
1326
1364
|
width: "100%"
|
|
1327
1365
|
});
|
|
1328
|
-
const math =
|
|
1366
|
+
const math = chunkXTYRGVT5_cjs.createEl(context.document, "span", "pptxv-equation-math", {
|
|
1329
1367
|
flex: 1,
|
|
1330
1368
|
textAlign: "center"
|
|
1331
1369
|
});
|
|
1332
|
-
math.innerHTML =
|
|
1370
|
+
math.innerHTML = chunkRI4YZ4AG_cjs.sanitizeMathMl(mathml);
|
|
1333
1371
|
row.appendChild(math);
|
|
1334
1372
|
if (segment.equationNumber) {
|
|
1335
|
-
const number =
|
|
1373
|
+
const number = chunkXTYRGVT5_cjs.createEl(context.document, "span", "pptxv-equation-number", {
|
|
1336
1374
|
whiteSpace: "nowrap"
|
|
1337
1375
|
});
|
|
1338
1376
|
number.textContent = `(${segment.equationNumber})`;
|
|
@@ -1347,7 +1385,7 @@ function renderExtrusionOverlay(doc, element) {
|
|
|
1347
1385
|
return null;
|
|
1348
1386
|
}
|
|
1349
1387
|
const fill = chunkYZWKNFPU_cjs.getComputedFillStyle(element)?.backgroundColor;
|
|
1350
|
-
const data =
|
|
1388
|
+
const data = chunkRI4YZ4AG_cjs.build3DExtrusionData(
|
|
1351
1389
|
element.shapeStyle?.shape3d,
|
|
1352
1390
|
element.shapeStyle?.scene3d,
|
|
1353
1391
|
fill,
|
|
@@ -1357,11 +1395,11 @@ function renderExtrusionOverlay(doc, element) {
|
|
|
1357
1395
|
if (!data.hasExtrusion || data.panels.length === 0) {
|
|
1358
1396
|
return null;
|
|
1359
1397
|
}
|
|
1360
|
-
const wrapper =
|
|
1398
|
+
const wrapper = chunkXTYRGVT5_cjs.createEl(doc, "div", "pptxv-extrusion-3d", toCss(data.wrapperStyle));
|
|
1361
1399
|
wrapper.setAttribute("aria-hidden", "true");
|
|
1362
1400
|
for (const panel of data.panels) {
|
|
1363
1401
|
wrapper.appendChild(
|
|
1364
|
-
|
|
1402
|
+
chunkXTYRGVT5_cjs.createEl(
|
|
1365
1403
|
doc,
|
|
1366
1404
|
"div",
|
|
1367
1405
|
`pptxv-extrusion-3d-panel pptxv-extrusion-3d-panel--${panel.side}`,
|
|
@@ -1371,7 +1409,7 @@ function renderExtrusionOverlay(doc, element) {
|
|
|
1371
1409
|
}
|
|
1372
1410
|
if (data.materialOverlay) {
|
|
1373
1411
|
wrapper.appendChild(
|
|
1374
|
-
|
|
1412
|
+
chunkXTYRGVT5_cjs.createEl(doc, "div", "pptxv-extrusion-3d-material", {
|
|
1375
1413
|
position: "absolute",
|
|
1376
1414
|
inset: 0,
|
|
1377
1415
|
backgroundImage: data.materialOverlay,
|
|
@@ -1409,18 +1447,18 @@ function appendOwnReflection(doc, host, element, mediaDataUrls, suppressOwnRefle
|
|
|
1409
1447
|
if (suppressOwnReflection) {
|
|
1410
1448
|
return;
|
|
1411
1449
|
}
|
|
1412
|
-
const wrapperStyle =
|
|
1450
|
+
const wrapperStyle = chunkRI4YZ4AG_cjs.getComputedEffectStyle(element).reflection;
|
|
1413
1451
|
if (!wrapperStyle) {
|
|
1414
1452
|
return;
|
|
1415
1453
|
}
|
|
1416
|
-
const layer =
|
|
1454
|
+
const layer = chunkXTYRGVT5_cjs.createEl(doc, "div", "pptxv-reflection", { ...wrapperStyle });
|
|
1417
1455
|
layer.setAttribute("aria-hidden", "true");
|
|
1418
1456
|
layer.appendChild(buildReflectionMirrorContent(doc, element, mediaDataUrls, void 0, true));
|
|
1419
1457
|
host.appendChild(layer);
|
|
1420
1458
|
}
|
|
1421
1459
|
function buildReflectionMirrorContent(doc, element, mediaDataUrls, parentGroupFill, suppressOwnReflection = false) {
|
|
1422
1460
|
if (element.type === "group") {
|
|
1423
|
-
const wrap =
|
|
1461
|
+
const wrap = chunkXTYRGVT5_cjs.createEl(doc, "div", void 0, {
|
|
1424
1462
|
position: "relative",
|
|
1425
1463
|
width: "100%",
|
|
1426
1464
|
height: "100%",
|
|
@@ -1433,9 +1471,9 @@ function buildReflectionMirrorContent(doc, element, mediaDataUrls, parentGroupFi
|
|
|
1433
1471
|
if (groupFilterDefs) {
|
|
1434
1472
|
wrap.appendChild(groupFilterDefs);
|
|
1435
1473
|
}
|
|
1436
|
-
const childParentFill =
|
|
1474
|
+
const childParentFill = chunkRI4YZ4AG_cjs.getGroupChildParentFill(element, parentGroupFill);
|
|
1437
1475
|
for (const child of element.children ?? []) {
|
|
1438
|
-
const childWrap =
|
|
1476
|
+
const childWrap = chunkXTYRGVT5_cjs.createEl(doc, "div", void 0, chunkRI4YZ4AG_cjs.getContainerStyle(child, 0));
|
|
1439
1477
|
childWrap.appendChild(
|
|
1440
1478
|
buildReflectionMirrorContent(doc, child, mediaDataUrls, childParentFill)
|
|
1441
1479
|
);
|
|
@@ -1444,12 +1482,12 @@ function buildReflectionMirrorContent(doc, element, mediaDataUrls, parentGroupFi
|
|
|
1444
1482
|
appendOwnReflection(doc, wrap, element, mediaDataUrls, suppressOwnReflection);
|
|
1445
1483
|
return wrap;
|
|
1446
1484
|
}
|
|
1447
|
-
const box =
|
|
1485
|
+
const box = chunkXTYRGVT5_cjs.createEl(doc, "div", void 0, {
|
|
1448
1486
|
width: "100%",
|
|
1449
1487
|
height: "100%",
|
|
1450
1488
|
...getShapeFillStrokeStyle(element)
|
|
1451
1489
|
});
|
|
1452
|
-
const inheritedFill =
|
|
1490
|
+
const inheritedFill = chunkRI4YZ4AG_cjs.resolveGroupChildFill(element, parentGroupFill);
|
|
1453
1491
|
if (inheritedFill) {
|
|
1454
1492
|
applyInheritedFill(box, inheritedFill);
|
|
1455
1493
|
}
|
|
@@ -1470,12 +1508,12 @@ function buildReflectionMirrorContent(doc, element, mediaDataUrls, parentGroupFi
|
|
|
1470
1508
|
box.appendChild(gradientOutline);
|
|
1471
1509
|
}
|
|
1472
1510
|
if (pptx.isImageLikeElement(element)) {
|
|
1473
|
-
const src =
|
|
1511
|
+
const src = chunkRI4YZ4AG_cjs.getImageSrc(element, new Map(mediaDataUrls));
|
|
1474
1512
|
if (src) {
|
|
1475
|
-
const img =
|
|
1513
|
+
const img = chunkXTYRGVT5_cjs.createEl(doc, "img", void 0, {
|
|
1476
1514
|
width: "100%",
|
|
1477
1515
|
height: "100%",
|
|
1478
|
-
...
|
|
1516
|
+
...chunkRI4YZ4AG_cjs.getImageFitStyle(element)
|
|
1479
1517
|
});
|
|
1480
1518
|
img.setAttribute("src", src);
|
|
1481
1519
|
img.setAttribute("alt", "");
|
|
@@ -1485,7 +1523,7 @@ function buildReflectionMirrorContent(doc, element, mediaDataUrls, parentGroupFi
|
|
|
1485
1523
|
appendOwnReflection(doc, box, element, mediaDataUrls, suppressOwnReflection);
|
|
1486
1524
|
return box;
|
|
1487
1525
|
}
|
|
1488
|
-
const paragraphs =
|
|
1526
|
+
const paragraphs = chunkRI4YZ4AG_cjs.buildParagraphs(element);
|
|
1489
1527
|
const hasText = paragraphs.some((p) => p.runs.length > 0 || p.bulletMarker !== void 0);
|
|
1490
1528
|
if (hasText) {
|
|
1491
1529
|
box.appendChild(renderTextBlock(doc, paragraphs, getTextBlockStyle(element)));
|
|
@@ -1497,29 +1535,29 @@ function buildReflectionMirrorContent(doc, element, mediaDataUrls, parentGroupFi
|
|
|
1497
1535
|
// src/pptx/dom/elements/shape-filter-defs.ts
|
|
1498
1536
|
var OUTLINE_SVG_STYLE = "position:absolute;inset:0;width:100%;height:100%;min-width:1px;min-height:1px;overflow:visible;pointer-events:none";
|
|
1499
1537
|
function renderShapeFilterDefs(doc, element) {
|
|
1500
|
-
const style =
|
|
1538
|
+
const style = chunkRI4YZ4AG_cjs.getEffectStyleSource(element);
|
|
1501
1539
|
if (!style) {
|
|
1502
1540
|
return null;
|
|
1503
1541
|
}
|
|
1504
1542
|
const markups = [];
|
|
1505
|
-
const duotone =
|
|
1543
|
+
const duotone = chunkRI4YZ4AG_cjs.getDuotoneSvgFilter(style, element.id);
|
|
1506
1544
|
if (duotone) {
|
|
1507
1545
|
markups.push(duotone.filterMarkup);
|
|
1508
1546
|
}
|
|
1509
|
-
const softEdge =
|
|
1547
|
+
const softEdge = chunkRI4YZ4AG_cjs.getSoftEdgeSvgFilter(style, element.id);
|
|
1510
1548
|
if (softEdge) {
|
|
1511
1549
|
markups.push(softEdge.filterMarkup);
|
|
1512
1550
|
}
|
|
1513
|
-
const bevelLighting =
|
|
1551
|
+
const bevelLighting = chunkRI4YZ4AG_cjs.getBevelLightingSvgFilter(element);
|
|
1514
1552
|
if (bevelLighting) {
|
|
1515
1553
|
markups.push(bevelLighting.filterMarkup);
|
|
1516
1554
|
}
|
|
1517
1555
|
if (markups.length === 0) {
|
|
1518
1556
|
return null;
|
|
1519
1557
|
}
|
|
1520
|
-
const svg =
|
|
1558
|
+
const svg = chunkXTYRGVT5_cjs.createSvgEl(doc, "svg", { width: 0, height: 0, "aria-hidden": "true" });
|
|
1521
1559
|
svg.setAttribute("style", "position:absolute;width:0;height:0;overflow:hidden");
|
|
1522
|
-
const defs =
|
|
1560
|
+
const defs = chunkXTYRGVT5_cjs.createSvgEl(doc, "defs");
|
|
1523
1561
|
defs.innerHTML = markups.join("");
|
|
1524
1562
|
svg.appendChild(defs);
|
|
1525
1563
|
return svg;
|
|
@@ -1528,11 +1566,11 @@ function renderShapeFillOverlay(doc, element) {
|
|
|
1528
1566
|
if (!pptx.hasShapeProperties(element)) {
|
|
1529
1567
|
return null;
|
|
1530
1568
|
}
|
|
1531
|
-
const overlay =
|
|
1569
|
+
const overlay = chunkRI4YZ4AG_cjs.getComputedEffectStyle(element).fillOverlay;
|
|
1532
1570
|
if (!overlay) {
|
|
1533
1571
|
return null;
|
|
1534
1572
|
}
|
|
1535
|
-
const layer =
|
|
1573
|
+
const layer = chunkXTYRGVT5_cjs.createEl(doc, "div", "pptxv-fill-overlay", {
|
|
1536
1574
|
position: "absolute",
|
|
1537
1575
|
inset: 0,
|
|
1538
1576
|
background: overlay.color,
|
|
@@ -1543,27 +1581,27 @@ function renderShapeFillOverlay(doc, element) {
|
|
|
1543
1581
|
return layer;
|
|
1544
1582
|
}
|
|
1545
1583
|
function renderReflectionOverlay(doc, element, mediaDataUrls) {
|
|
1546
|
-
const wrapperStyle =
|
|
1584
|
+
const wrapperStyle = chunkRI4YZ4AG_cjs.getComputedEffectStyle(element).reflection;
|
|
1547
1585
|
if (!wrapperStyle) {
|
|
1548
1586
|
return null;
|
|
1549
1587
|
}
|
|
1550
|
-
const layer =
|
|
1588
|
+
const layer = chunkXTYRGVT5_cjs.createEl(doc, "div", "pptxv-reflection", { ...wrapperStyle });
|
|
1551
1589
|
layer.setAttribute("aria-hidden", "true");
|
|
1552
1590
|
layer.appendChild(buildReflectionMirrorContent(doc, element, mediaDataUrls, void 0, true));
|
|
1553
1591
|
return layer;
|
|
1554
1592
|
}
|
|
1555
1593
|
function renderHollowHitOutline(doc, element) {
|
|
1556
|
-
const hit =
|
|
1594
|
+
const hit = chunkRI4YZ4AG_cjs.buildHollowHitOutline(element);
|
|
1557
1595
|
if (!hit) {
|
|
1558
1596
|
return null;
|
|
1559
1597
|
}
|
|
1560
|
-
const svg =
|
|
1598
|
+
const svg = chunkXTYRGVT5_cjs.createSvgEl(doc, "svg", {
|
|
1561
1599
|
"aria-hidden": "true",
|
|
1562
|
-
viewBox:
|
|
1600
|
+
viewBox: chunkRI4YZ4AG_cjs.strokeOutlineViewBox(element),
|
|
1563
1601
|
preserveAspectRatio: "none"
|
|
1564
1602
|
});
|
|
1565
1603
|
svg.setAttribute("style", OUTLINE_SVG_STYLE);
|
|
1566
|
-
const path =
|
|
1604
|
+
const path = chunkXTYRGVT5_cjs.createSvgEl(doc, "path", {
|
|
1567
1605
|
d: hit.d,
|
|
1568
1606
|
fill: "none",
|
|
1569
1607
|
stroke: "transparent",
|
|
@@ -1578,7 +1616,7 @@ function renderShapeSubpathFillOverlay(doc, element) {
|
|
|
1578
1616
|
if (!overlay) {
|
|
1579
1617
|
return null;
|
|
1580
1618
|
}
|
|
1581
|
-
const svg =
|
|
1619
|
+
const svg = chunkXTYRGVT5_cjs.createSvgEl(doc, "svg", {
|
|
1582
1620
|
class: "pptx-vanilla-subpath-fill",
|
|
1583
1621
|
"aria-hidden": "true",
|
|
1584
1622
|
viewBox: `0 0 ${overlay.viewBoxWidth} ${overlay.viewBoxHeight}`,
|
|
@@ -1586,34 +1624,34 @@ function renderShapeSubpathFillOverlay(doc, element) {
|
|
|
1586
1624
|
});
|
|
1587
1625
|
svg.setAttribute("style", "position:absolute;inset:0;width:100%;height:100%");
|
|
1588
1626
|
for (const paint of overlay.paints) {
|
|
1589
|
-
const path =
|
|
1627
|
+
const path = chunkXTYRGVT5_cjs.createSvgEl(doc, "path", { d: paint.d, fill: paint.fill, stroke: "none" });
|
|
1590
1628
|
svg.appendChild(path);
|
|
1591
1629
|
}
|
|
1592
1630
|
return svg;
|
|
1593
1631
|
}
|
|
1594
1632
|
function renderStrokeOutline(doc, element) {
|
|
1595
|
-
const outline =
|
|
1633
|
+
const outline = chunkRI4YZ4AG_cjs.buildStrokeOutline(element);
|
|
1596
1634
|
if (!outline) {
|
|
1597
1635
|
return null;
|
|
1598
1636
|
}
|
|
1599
|
-
const svg =
|
|
1637
|
+
const svg = chunkXTYRGVT5_cjs.createSvgEl(doc, "svg", {
|
|
1600
1638
|
class: "pptx-vanilla-gradient-outline",
|
|
1601
1639
|
"data-pptx-outline": "",
|
|
1602
1640
|
"aria-hidden": "true",
|
|
1603
|
-
viewBox:
|
|
1641
|
+
viewBox: chunkRI4YZ4AG_cjs.strokeOutlineViewBox(element),
|
|
1604
1642
|
preserveAspectRatio: "none"
|
|
1605
1643
|
});
|
|
1606
1644
|
svg.setAttribute("style", OUTLINE_SVG_STYLE);
|
|
1607
1645
|
if (outline.paint) {
|
|
1608
|
-
const defs =
|
|
1609
|
-
if (
|
|
1610
|
-
const pattern =
|
|
1646
|
+
const defs = chunkXTYRGVT5_cjs.createSvgEl(doc, "defs");
|
|
1647
|
+
if (chunkRI4YZ4AG_cjs.isPatternPaint(outline.paint)) {
|
|
1648
|
+
const pattern = chunkXTYRGVT5_cjs.createSvgEl(doc, "pattern", {
|
|
1611
1649
|
id: outline.paint.id,
|
|
1612
1650
|
width: outline.paint.width,
|
|
1613
1651
|
height: outline.paint.height,
|
|
1614
1652
|
patternUnits: "userSpaceOnUse"
|
|
1615
1653
|
});
|
|
1616
|
-
const image =
|
|
1654
|
+
const image = chunkXTYRGVT5_cjs.createSvgEl(doc, "image", {
|
|
1617
1655
|
href: outline.paint.href,
|
|
1618
1656
|
width: outline.paint.width,
|
|
1619
1657
|
height: outline.paint.height
|
|
@@ -1621,12 +1659,12 @@ function renderStrokeOutline(doc, element) {
|
|
|
1621
1659
|
pattern.appendChild(image);
|
|
1622
1660
|
defs.appendChild(pattern);
|
|
1623
1661
|
} else {
|
|
1624
|
-
defs.innerHTML =
|
|
1662
|
+
defs.innerHTML = chunkRI4YZ4AG_cjs.svgGradientMarkup(outline.paint);
|
|
1625
1663
|
}
|
|
1626
1664
|
svg.appendChild(defs);
|
|
1627
1665
|
}
|
|
1628
1666
|
for (const strand of outline.strands) {
|
|
1629
|
-
const path =
|
|
1667
|
+
const path = chunkXTYRGVT5_cjs.createSvgEl(doc, "path", {
|
|
1630
1668
|
d: strand.d ?? outline.d,
|
|
1631
1669
|
fill: "none",
|
|
1632
1670
|
stroke: outline.stroke,
|
|
@@ -1638,13 +1676,16 @@ function renderStrokeOutline(doc, element) {
|
|
|
1638
1676
|
path.setAttribute("stroke-dasharray", outline.dashArray);
|
|
1639
1677
|
}
|
|
1640
1678
|
path.style.setProperty("stroke-width", strand.cssStrokeWidth);
|
|
1679
|
+
if (strand.cssTransform) {
|
|
1680
|
+
path.style.setProperty("transform", strand.cssTransform);
|
|
1681
|
+
}
|
|
1641
1682
|
if (strand.offset !== 0) {
|
|
1642
1683
|
path.style.setProperty("transform", `translate(0, ${strand.offset}px)`);
|
|
1643
1684
|
}
|
|
1644
1685
|
svg.appendChild(path);
|
|
1645
1686
|
}
|
|
1646
1687
|
if (outline.markers) {
|
|
1647
|
-
const defs =
|
|
1688
|
+
const defs = chunkXTYRGVT5_cjs.createSvgEl(doc, "defs");
|
|
1648
1689
|
defs.innerHTML = outline.markers.markup;
|
|
1649
1690
|
svg.prepend(defs);
|
|
1650
1691
|
const path = svg.querySelector(":scope > path");
|
|
@@ -1680,14 +1721,14 @@ function indexRenderedNodes(root) {
|
|
|
1680
1721
|
return byId;
|
|
1681
1722
|
}
|
|
1682
1723
|
function paintInheritedFill(node, element, parentGroupFill) {
|
|
1683
|
-
const inherited =
|
|
1724
|
+
const inherited = chunkRI4YZ4AG_cjs.resolveGroupChildFill(element, parentGroupFill);
|
|
1684
1725
|
if (inherited) {
|
|
1685
1726
|
applyGroupChildFill(node, inherited);
|
|
1686
1727
|
}
|
|
1687
1728
|
if (element.type !== "group") {
|
|
1688
1729
|
return;
|
|
1689
1730
|
}
|
|
1690
|
-
const childFill =
|
|
1731
|
+
const childFill = chunkRI4YZ4AG_cjs.getGroupChildParentFill(element, parentGroupFill);
|
|
1691
1732
|
if (!childFill) {
|
|
1692
1733
|
return;
|
|
1693
1734
|
}
|
|
@@ -1700,8 +1741,8 @@ function paintInheritedFill(node, element, parentGroupFill) {
|
|
|
1700
1741
|
}
|
|
1701
1742
|
}
|
|
1702
1743
|
var renderGroupElement = (element, zIndex, context) => {
|
|
1703
|
-
const el =
|
|
1704
|
-
...
|
|
1744
|
+
const el = chunkXTYRGVT5_cjs.createEl(context.document, "div", "pptxv-element pptxv-group", {
|
|
1745
|
+
...chunkRI4YZ4AG_cjs.getContainerStyle(element, zIndex),
|
|
1705
1746
|
// A group paints no fill/outline of its own, but `p:grpSpPr/a:effectLst`
|
|
1706
1747
|
// DOES carry a shadow/glow/soft-edge for the group's own composite
|
|
1707
1748
|
// raster (see shared `getComputedEffectStyle`), expressed as `filter` /
|
|
@@ -1718,7 +1759,7 @@ var renderGroupElement = (element, zIndex, context) => {
|
|
|
1718
1759
|
el.appendChild(reflection);
|
|
1719
1760
|
}
|
|
1720
1761
|
if (element.type === "group" && element.children?.length) {
|
|
1721
|
-
const parentGroupFill =
|
|
1762
|
+
const parentGroupFill = chunkRI4YZ4AG_cjs.getGroupChildParentFill(element);
|
|
1722
1763
|
element.children.forEach((child, index) => {
|
|
1723
1764
|
const childEl = context.renderElement(child, index);
|
|
1724
1765
|
if (childEl) {
|
|
@@ -1733,20 +1774,20 @@ var renderGroupElement = (element, zIndex, context) => {
|
|
|
1733
1774
|
// src/pptx/dom/elements/image.ts
|
|
1734
1775
|
var renderImageElement = (element, zIndex, context) => {
|
|
1735
1776
|
const doc = context.document;
|
|
1736
|
-
const geometry = element.type === "image" || element.type === "picture" ?
|
|
1777
|
+
const geometry = element.type === "image" || element.type === "picture" ? chunkRI4YZ4AG_cjs.resolveShapeGeometry(element) : void 0;
|
|
1737
1778
|
const geometryClipPath = geometry?.kind === "clipPath" ? geometry.clipPath : void 0;
|
|
1738
|
-
const cropShapeClipPath = element.type === "image" || element.type === "picture" ?
|
|
1739
|
-
const layers =
|
|
1740
|
-
overflow:
|
|
1779
|
+
const cropShapeClipPath = element.type === "image" || element.type === "picture" ? chunkRI4YZ4AG_cjs.getCropShapeClipPath(element.cropShape, element.width, element.height) : void 0;
|
|
1780
|
+
const layers = chunkRI4YZ4AG_cjs.getPictureFrameLayers(element, {
|
|
1781
|
+
overflow: chunkRI4YZ4AG_cjs.getImageOverflow(element),
|
|
1741
1782
|
borderRadius: geometry?.kind === "borderRadius" ? geometry.radius : void 0,
|
|
1742
1783
|
clipPath: geometryClipPath ?? cropShapeClipPath
|
|
1743
1784
|
});
|
|
1744
|
-
const el =
|
|
1745
|
-
...
|
|
1785
|
+
const el = chunkXTYRGVT5_cjs.createEl(doc, "div", "pptxv-element pptxv-image", {
|
|
1786
|
+
...chunkRI4YZ4AG_cjs.getContainerStyle(element, zIndex),
|
|
1746
1787
|
...layers.box
|
|
1747
1788
|
});
|
|
1748
1789
|
el.dataset.elementId = element.id;
|
|
1749
|
-
const surface = layers.surface ?
|
|
1790
|
+
const surface = layers.surface ? chunkXTYRGVT5_cjs.createEl(doc, "div", "pptxv-image-surface", layers.surface) : el;
|
|
1750
1791
|
if (surface !== el) {
|
|
1751
1792
|
el.appendChild(surface);
|
|
1752
1793
|
const outline = renderStrokeOutline(doc, element);
|
|
@@ -1754,36 +1795,36 @@ var renderImageElement = (element, zIndex, context) => {
|
|
|
1754
1795
|
el.appendChild(outline);
|
|
1755
1796
|
}
|
|
1756
1797
|
}
|
|
1757
|
-
const src =
|
|
1798
|
+
const src = chunkRI4YZ4AG_cjs.getImageSrc(element, new Map(context.mediaDataUrls));
|
|
1758
1799
|
if (!src) {
|
|
1759
1800
|
return el;
|
|
1760
1801
|
}
|
|
1761
|
-
const fx =
|
|
1802
|
+
const fx = chunkRI4YZ4AG_cjs.getComputedImageStyle(element);
|
|
1762
1803
|
for (const f of fx.svgFilters) {
|
|
1763
|
-
const svg =
|
|
1804
|
+
const svg = chunkXTYRGVT5_cjs.createSvgEl(doc, "svg", { width: 0, height: 0, "aria-hidden": "true" });
|
|
1764
1805
|
svg.setAttribute("style", "position:absolute;width:0;height:0;overflow:hidden");
|
|
1765
|
-
const defs =
|
|
1766
|
-
const filter =
|
|
1767
|
-
|
|
1806
|
+
const defs = chunkXTYRGVT5_cjs.createSvgEl(doc, "defs");
|
|
1807
|
+
const filter = chunkXTYRGVT5_cjs.createSvgEl(doc, "filter");
|
|
1808
|
+
chunkXTYRGVT5_cjs.setSvgAttrs(filter, { id: f.id, "color-interpolation-filters": "sRGB" });
|
|
1768
1809
|
filter.innerHTML = f.markup;
|
|
1769
1810
|
defs.appendChild(filter);
|
|
1770
1811
|
svg.appendChild(defs);
|
|
1771
1812
|
surface.appendChild(svg);
|
|
1772
1813
|
}
|
|
1773
1814
|
const reflection = renderReflectionOverlay(doc, element, context.mediaDataUrls);
|
|
1774
|
-
const tiling =
|
|
1815
|
+
const tiling = chunkRI4YZ4AG_cjs.getImageTilingStyle(element, chunkRI4YZ4AG_cjs.getCachedNativeImageSize(src));
|
|
1775
1816
|
if (tiling) {
|
|
1776
|
-
const tile =
|
|
1817
|
+
const tile = chunkXTYRGVT5_cjs.createEl(doc, "div", "pptxv-image-tile", tiling);
|
|
1777
1818
|
if (fx.filter) {
|
|
1778
1819
|
tile.style.filter = fx.filter;
|
|
1779
1820
|
}
|
|
1780
1821
|
if (fx.opacity !== void 0) {
|
|
1781
1822
|
tile.style.opacity = String(fx.opacity);
|
|
1782
1823
|
}
|
|
1783
|
-
if (!
|
|
1784
|
-
void
|
|
1824
|
+
if (!chunkRI4YZ4AG_cjs.getCachedNativeImageSize(src)) {
|
|
1825
|
+
void chunkRI4YZ4AG_cjs.probeNativeImageSize(src).then((size) => {
|
|
1785
1826
|
if (size) {
|
|
1786
|
-
|
|
1827
|
+
chunkXTYRGVT5_cjs.applyStyleMap(tile, chunkRI4YZ4AG_cjs.getImageTilingStyle(element, size) ?? {});
|
|
1787
1828
|
}
|
|
1788
1829
|
return void 0;
|
|
1789
1830
|
});
|
|
@@ -1794,9 +1835,9 @@ var renderImageElement = (element, zIndex, context) => {
|
|
|
1794
1835
|
}
|
|
1795
1836
|
return el;
|
|
1796
1837
|
}
|
|
1797
|
-
const fit =
|
|
1798
|
-
const fillCounterTransform =
|
|
1799
|
-
const img =
|
|
1838
|
+
const fit = chunkRI4YZ4AG_cjs.getImageFitStyle(element);
|
|
1839
|
+
const fillCounterTransform = chunkRI4YZ4AG_cjs.getImageFillCounterTransform(element, Boolean(fit.transform));
|
|
1840
|
+
const img = chunkXTYRGVT5_cjs.createEl(doc, "img", void 0, {
|
|
1800
1841
|
...fit,
|
|
1801
1842
|
display: "block",
|
|
1802
1843
|
...fillCounterTransform ? { transform: fillCounterTransform, transformOrigin: "center" } : {}
|
|
@@ -1814,17 +1855,17 @@ var renderImageElement = (element, zIndex, context) => {
|
|
|
1814
1855
|
if (element.type === "image" || element.type === "picture") {
|
|
1815
1856
|
const clrChange = element.imageEffects?.clrChange;
|
|
1816
1857
|
if (clrChange) {
|
|
1817
|
-
void
|
|
1858
|
+
void chunkRI4YZ4AG_cjs.resolveColorChangedImageSource(src, clrChange).then((resolved) => {
|
|
1818
1859
|
if (img.src === src || img.getAttribute("src") === src) {
|
|
1819
1860
|
img.src = resolved;
|
|
1820
1861
|
}
|
|
1821
1862
|
return void 0;
|
|
1822
1863
|
});
|
|
1823
1864
|
}
|
|
1824
|
-
const wash =
|
|
1865
|
+
const wash = chunkRI4YZ4AG_cjs.getImageColorWashStyle(element.imageEffects?.colorWash);
|
|
1825
1866
|
if (wash) {
|
|
1826
1867
|
surface.appendChild(
|
|
1827
|
-
|
|
1868
|
+
chunkXTYRGVT5_cjs.createEl(doc, "div", "pptxv-image-color-wash", {
|
|
1828
1869
|
position: "absolute",
|
|
1829
1870
|
inset: "0",
|
|
1830
1871
|
pointerEvents: "none",
|
|
@@ -1846,11 +1887,11 @@ var renderInkElement = (element, zIndex, context) => {
|
|
|
1846
1887
|
return null;
|
|
1847
1888
|
}
|
|
1848
1889
|
const doc = context.document;
|
|
1849
|
-
const wrapper =
|
|
1890
|
+
const wrapper = chunkXTYRGVT5_cjs.createEl(
|
|
1850
1891
|
doc,
|
|
1851
1892
|
"div",
|
|
1852
1893
|
"pptxv-element pptxv-ink",
|
|
1853
|
-
|
|
1894
|
+
chunkRI4YZ4AG_cjs.getContainerStyle(element, zIndex)
|
|
1854
1895
|
);
|
|
1855
1896
|
wrapper.dataset.elementId = element.id;
|
|
1856
1897
|
const paths = element.inkPaths;
|
|
@@ -1859,7 +1900,7 @@ var renderInkElement = (element, zIndex, context) => {
|
|
|
1859
1900
|
}
|
|
1860
1901
|
const w = Math.max(element.width, 1);
|
|
1861
1902
|
const h = Math.max(element.height, 1);
|
|
1862
|
-
const svg =
|
|
1903
|
+
const svg = chunkXTYRGVT5_cjs.createSvgEl(doc, "svg", {
|
|
1863
1904
|
viewBox: `0 0 ${w} ${h}`,
|
|
1864
1905
|
preserveAspectRatio: "none"
|
|
1865
1906
|
});
|
|
@@ -1867,11 +1908,11 @@ var renderInkElement = (element, zIndex, context) => {
|
|
|
1867
1908
|
svg.setAttribute("style", "width:100%;height:100%;pointer-events:none;display:block");
|
|
1868
1909
|
const replayStyles = context.presenting ? chunkNTXHQHCS_cjs.getInkReplayStyles(element) : [];
|
|
1869
1910
|
if (context.presenting) {
|
|
1870
|
-
const keyframes =
|
|
1911
|
+
const keyframes = chunkXTYRGVT5_cjs.createSvgEl(doc, "style");
|
|
1871
1912
|
keyframes.textContent = chunkNTXHQHCS_cjs.INK_REPLAY_KEYFRAMES;
|
|
1872
1913
|
svg.appendChild(keyframes);
|
|
1873
1914
|
}
|
|
1874
|
-
const views =
|
|
1915
|
+
const views = chunkRI4YZ4AG_cjs.buildInkGroupStrokes(element, { color: chunkYZWKNFPU_cjs.DEFAULT_STROKE_COLOR, width: 1 });
|
|
1875
1916
|
for (const [i, view] of views.entries()) {
|
|
1876
1917
|
svg.appendChild(buildStrokeSvg(doc, view, replayStyles[i]));
|
|
1877
1918
|
}
|
|
@@ -1894,7 +1935,7 @@ function mediaFullscreenResetStyle(baseStyle) {
|
|
|
1894
1935
|
};
|
|
1895
1936
|
}
|
|
1896
1937
|
function buildFullscreenStopButton(doc, label, onStop) {
|
|
1897
|
-
const button =
|
|
1938
|
+
const button = chunkXTYRGVT5_cjs.createEl(doc, "button", "pptxv-media-fullscreen-stop", {
|
|
1898
1939
|
position: "absolute",
|
|
1899
1940
|
bottom: "12px",
|
|
1900
1941
|
right: "12px",
|
|
@@ -1910,14 +1951,14 @@ function buildFullscreenStopButton(doc, label, onStop) {
|
|
|
1910
1951
|
button.type = "button";
|
|
1911
1952
|
button.setAttribute("aria-label", label);
|
|
1912
1953
|
button.addEventListener("click", onStop);
|
|
1913
|
-
const icon =
|
|
1954
|
+
const icon = chunkXTYRGVT5_cjs.createSvgEl(doc, "svg", {
|
|
1914
1955
|
width: 18,
|
|
1915
1956
|
height: 18,
|
|
1916
1957
|
viewBox: "0 0 24 24",
|
|
1917
1958
|
fill: "currentColor",
|
|
1918
1959
|
stroke: "none"
|
|
1919
1960
|
});
|
|
1920
|
-
icon.appendChild(
|
|
1961
|
+
icon.appendChild(chunkXTYRGVT5_cjs.createSvgEl(doc, "rect", { x: 6, y: 6, width: 12, height: 12, rx: 1 }));
|
|
1921
1962
|
button.appendChild(icon);
|
|
1922
1963
|
return button;
|
|
1923
1964
|
}
|
|
@@ -1925,12 +1966,12 @@ function wireMediaFullscreenOverlay(doc, container, mediaNode, element, context,
|
|
|
1925
1966
|
let stopButton = null;
|
|
1926
1967
|
const update = (playing) => {
|
|
1927
1968
|
const input = { fullScreen: element.fullScreen, presenting: context.presenting, playing };
|
|
1928
|
-
const active =
|
|
1929
|
-
|
|
1969
|
+
const active = chunkRI4YZ4AG_cjs.isMediaFullscreenActive(input);
|
|
1970
|
+
chunkXTYRGVT5_cjs.applyStyleMap(
|
|
1930
1971
|
container,
|
|
1931
|
-
active ?
|
|
1972
|
+
active ? chunkRI4YZ4AG_cjs.MEDIA_FULLSCREEN_OVERLAY_STYLE : mediaFullscreenResetStyle(baseStyle)
|
|
1932
1973
|
);
|
|
1933
|
-
if (
|
|
1974
|
+
if (chunkRI4YZ4AG_cjs.shouldShowMediaFullscreenStopButton(input)) {
|
|
1934
1975
|
if (!stopButton) {
|
|
1935
1976
|
stopButton = buildFullscreenStopButton(
|
|
1936
1977
|
doc,
|
|
@@ -1955,12 +1996,12 @@ function wireMediaFullscreenOverlay(doc, container, mediaNode, element, context,
|
|
|
1955
1996
|
|
|
1956
1997
|
// src/pptx/dom/elements/media.ts
|
|
1957
1998
|
function applyMediaPresentingState(el, presenting, playback) {
|
|
1958
|
-
|
|
1999
|
+
chunkRI4YZ4AG_cjs.applyMediaPlaybackAttributes(el, playback);
|
|
1959
2000
|
if (presenting) {
|
|
1960
|
-
|
|
1961
|
-
|
|
2001
|
+
chunkRI4YZ4AG_cjs.startMediaAutoplay(el, { trimStartMs: playback.trimStartMs });
|
|
2002
|
+
chunkRI4YZ4AG_cjs.scheduleMediaTrimAndFade(el, {
|
|
1962
2003
|
...playback,
|
|
1963
|
-
volume:
|
|
2004
|
+
volume: chunkRI4YZ4AG_cjs.mediaPlaybackAttributes(playback).volume
|
|
1964
2005
|
});
|
|
1965
2006
|
} else if (!el.paused) {
|
|
1966
2007
|
el.pause();
|
|
@@ -1970,20 +2011,20 @@ var renderMediaElement = (element, zIndex, context) => {
|
|
|
1970
2011
|
if (element.type !== "media") {
|
|
1971
2012
|
return null;
|
|
1972
2013
|
}
|
|
1973
|
-
const surface =
|
|
2014
|
+
const surface = chunkRI4YZ4AG_cjs.mediaSurfaceOf({
|
|
1974
2015
|
interactive: context.interactive === true || context.reading === true,
|
|
1975
2016
|
presenting: context.presenting
|
|
1976
2017
|
});
|
|
1977
|
-
const showTransport =
|
|
2018
|
+
const showTransport = chunkRI4YZ4AG_cjs.mediaTransportVisible({ ...surface, canvasTransport: true });
|
|
1978
2019
|
const doc = context.document;
|
|
1979
|
-
const baseStyle =
|
|
1980
|
-
const el =
|
|
2020
|
+
const baseStyle = chunkRI4YZ4AG_cjs.getContainerStyle(element, zIndex);
|
|
2021
|
+
const el = chunkXTYRGVT5_cjs.createEl(doc, "div", "pptxv-element pptxv-media", baseStyle);
|
|
1981
2022
|
el.dataset.elementId = element.id;
|
|
1982
2023
|
const mediaSrc = element.mediaData ?? (element.mediaPath ? context.mediaDataUrls.get(element.mediaPath) : void 0);
|
|
1983
|
-
const posterSrc =
|
|
1984
|
-
const onlineVideoEmbedUrl =
|
|
2024
|
+
const posterSrc = chunkRI4YZ4AG_cjs.getImageSrc(element, new Map(context.mediaDataUrls));
|
|
2025
|
+
const onlineVideoEmbedUrl = chunkRI4YZ4AG_cjs.getOnlineVideoEmbed(element)?.embedUrl;
|
|
1985
2026
|
if (onlineVideoEmbedUrl && element.mediaType === "video") {
|
|
1986
|
-
const iframe =
|
|
2027
|
+
const iframe = chunkXTYRGVT5_cjs.createEl(doc, "iframe", "pptxv-media-video pptxv-media-iframe", {
|
|
1987
2028
|
width: "100%",
|
|
1988
2029
|
height: "100%",
|
|
1989
2030
|
border: "0",
|
|
@@ -1991,14 +2032,14 @@ var renderMediaElement = (element, zIndex, context) => {
|
|
|
1991
2032
|
});
|
|
1992
2033
|
iframe.src = onlineVideoEmbedUrl;
|
|
1993
2034
|
iframe.title = context.t("pptx.media.onlineVideoTitle");
|
|
1994
|
-
iframe.allow =
|
|
1995
|
-
iframe.sandbox.value =
|
|
2035
|
+
iframe.allow = chunkRI4YZ4AG_cjs.ONLINE_VIDEO_IFRAME_ALLOW;
|
|
2036
|
+
iframe.sandbox.value = chunkRI4YZ4AG_cjs.ONLINE_VIDEO_IFRAME_SANDBOX;
|
|
1996
2037
|
iframe.allowFullscreen = true;
|
|
1997
2038
|
el.appendChild(iframe);
|
|
1998
2039
|
return el;
|
|
1999
2040
|
}
|
|
2000
2041
|
if (mediaSrc && element.mediaType === "video") {
|
|
2001
|
-
const video =
|
|
2042
|
+
const video = chunkXTYRGVT5_cjs.createEl(doc, "video", "pptxv-media-video", {
|
|
2002
2043
|
width: "100%",
|
|
2003
2044
|
height: "100%",
|
|
2004
2045
|
objectFit: "contain",
|
|
@@ -2017,27 +2058,27 @@ var renderMediaElement = (element, zIndex, context) => {
|
|
|
2017
2058
|
return el;
|
|
2018
2059
|
}
|
|
2019
2060
|
if (mediaSrc && element.mediaType === "audio") {
|
|
2020
|
-
const audio =
|
|
2061
|
+
const audio = chunkXTYRGVT5_cjs.createEl(doc, "audio", "pptxv-media-audio", { width: "100%" });
|
|
2021
2062
|
audio.src = mediaSrc;
|
|
2022
2063
|
audio.controls = showTransport;
|
|
2023
2064
|
el.appendChild(audio);
|
|
2024
|
-
if (context.presenting &&
|
|
2065
|
+
if (context.presenting && chunkRI4YZ4AG_cjs.registerCrossSlideAudio(element, mediaSrc)) {
|
|
2025
2066
|
audio.muted = true;
|
|
2026
|
-
|
|
2067
|
+
chunkRI4YZ4AG_cjs.applyMediaPlaybackAttributes(audio, element);
|
|
2027
2068
|
return el;
|
|
2028
2069
|
}
|
|
2029
2070
|
applyMediaPresentingState(audio, context.presenting, element);
|
|
2030
2071
|
wireMediaFullscreenOverlay(doc, el, audio, element, context, baseStyle);
|
|
2031
2072
|
return el;
|
|
2032
2073
|
}
|
|
2033
|
-
const fallback =
|
|
2074
|
+
const fallback = chunkRI4YZ4AG_cjs.mediaFallbackVisual(surface, {
|
|
2034
2075
|
hasPoster: Boolean(posterSrc),
|
|
2035
2076
|
missing: element.mediaMissing === true
|
|
2036
2077
|
});
|
|
2037
|
-
const icon =
|
|
2038
|
-
const labelKey =
|
|
2078
|
+
const icon = chunkRI4YZ4AG_cjs.mediaFallbackIcon(fallback, element.mediaType);
|
|
2079
|
+
const labelKey = chunkRI4YZ4AG_cjs.mediaFallbackLabelKey(fallback, element.mediaType);
|
|
2039
2080
|
if (fallback.poster && posterSrc) {
|
|
2040
|
-
const img =
|
|
2081
|
+
const img = chunkXTYRGVT5_cjs.createEl(doc, "img", "pptxv-media-poster", {
|
|
2041
2082
|
width: "100%",
|
|
2042
2083
|
height: "100%",
|
|
2043
2084
|
objectFit: "contain",
|
|
@@ -2049,14 +2090,14 @@ var renderMediaElement = (element, zIndex, context) => {
|
|
|
2049
2090
|
img.setAttribute("draggable", "false");
|
|
2050
2091
|
el.appendChild(img);
|
|
2051
2092
|
if (fallback.badge !== "none") {
|
|
2052
|
-
const badge =
|
|
2093
|
+
const badge = chunkXTYRGVT5_cjs.createEl(doc, "div", "pptxv-media-badge");
|
|
2053
2094
|
if (fallback.badge === "missing") {
|
|
2054
2095
|
badge.classList.add("pptxv-media-badge-missing");
|
|
2055
2096
|
}
|
|
2056
|
-
badge.setAttribute(
|
|
2097
|
+
badge.setAttribute(chunkRI4YZ4AG_cjs.MEDIA_CHROME_ATTRIBUTE, fallback.badge);
|
|
2057
2098
|
badge.appendChild(buildIcon(doc, icon));
|
|
2058
2099
|
if (labelKey !== void 0 && fallback.badge === "missing") {
|
|
2059
|
-
const text =
|
|
2100
|
+
const text = chunkXTYRGVT5_cjs.createEl(doc, "span");
|
|
2060
2101
|
text.textContent = context.t(labelKey);
|
|
2061
2102
|
badge.appendChild(text);
|
|
2062
2103
|
}
|
|
@@ -2066,12 +2107,12 @@ var renderMediaElement = (element, zIndex, context) => {
|
|
|
2066
2107
|
}
|
|
2067
2108
|
if (fallback.placeholder !== "none") {
|
|
2068
2109
|
el.classList.add("pptxv-placeholder", "pptxv-media-placeholder");
|
|
2069
|
-
el.setAttribute(
|
|
2110
|
+
el.setAttribute(chunkRI4YZ4AG_cjs.MEDIA_CHROME_ATTRIBUTE, fallback.placeholder);
|
|
2070
2111
|
if (icon.length > 0) {
|
|
2071
2112
|
el.appendChild(buildIcon(doc, icon));
|
|
2072
2113
|
}
|
|
2073
2114
|
if (labelKey !== void 0) {
|
|
2074
|
-
const label =
|
|
2115
|
+
const label = chunkXTYRGVT5_cjs.createEl(doc, "div", "pptxv-placeholder-label");
|
|
2075
2116
|
label.textContent = context.t(labelKey);
|
|
2076
2117
|
el.appendChild(label);
|
|
2077
2118
|
}
|
|
@@ -2098,11 +2139,11 @@ var renderModel3dElement = (element, zIndex, context) => {
|
|
|
2098
2139
|
return null;
|
|
2099
2140
|
}
|
|
2100
2141
|
const doc = context.document;
|
|
2101
|
-
const el =
|
|
2142
|
+
const el = chunkXTYRGVT5_cjs.createEl(
|
|
2102
2143
|
doc,
|
|
2103
2144
|
"div",
|
|
2104
2145
|
"pptxv-element pptxv-model3d",
|
|
2105
|
-
|
|
2146
|
+
chunkRI4YZ4AG_cjs.getContainerStyle(element, zIndex)
|
|
2106
2147
|
);
|
|
2107
2148
|
el.dataset.elementId = element.id;
|
|
2108
2149
|
const label = context.t("pptx.model3d.label");
|
|
@@ -2115,7 +2156,7 @@ var renderModel3dElement = (element, zIndex, context) => {
|
|
|
2115
2156
|
return el;
|
|
2116
2157
|
};
|
|
2117
2158
|
function buildPoster(doc, src, alt) {
|
|
2118
|
-
const img =
|
|
2159
|
+
const img = chunkXTYRGVT5_cjs.createEl(doc, "img", "pptxv-model3d-poster", {
|
|
2119
2160
|
width: "100%",
|
|
2120
2161
|
height: "100%",
|
|
2121
2162
|
objectFit: "contain",
|
|
@@ -2129,7 +2170,7 @@ function buildPoster(doc, src, alt) {
|
|
|
2129
2170
|
return img;
|
|
2130
2171
|
}
|
|
2131
2172
|
function buildPlaceholder(doc, label) {
|
|
2132
|
-
const box =
|
|
2173
|
+
const box = chunkXTYRGVT5_cjs.createEl(doc, "div", "pptxv-model3d-placeholder", {
|
|
2133
2174
|
width: "100%",
|
|
2134
2175
|
height: "100%",
|
|
2135
2176
|
display: "flex",
|
|
@@ -2143,7 +2184,7 @@ function buildPlaceholder(doc, label) {
|
|
|
2143
2184
|
borderRadius: "4px",
|
|
2144
2185
|
boxSizing: "border-box"
|
|
2145
2186
|
});
|
|
2146
|
-
const icon =
|
|
2187
|
+
const icon = chunkXTYRGVT5_cjs.createSvgEl(doc, "svg", {
|
|
2147
2188
|
width: 24,
|
|
2148
2189
|
height: 24,
|
|
2149
2190
|
viewBox: "0 0 24 24",
|
|
@@ -2156,20 +2197,20 @@ function buildPlaceholder(doc, label) {
|
|
|
2156
2197
|
icon.setAttribute("class", "pptxv-model3d-icon");
|
|
2157
2198
|
icon.setAttribute("style", "margin-bottom:4px;color:#d1d5db");
|
|
2158
2199
|
icon.appendChild(
|
|
2159
|
-
|
|
2200
|
+
chunkXTYRGVT5_cjs.createSvgEl(doc, "path", {
|
|
2160
2201
|
d: "M21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16z"
|
|
2161
2202
|
})
|
|
2162
2203
|
);
|
|
2163
|
-
icon.appendChild(
|
|
2164
|
-
icon.appendChild(
|
|
2204
|
+
icon.appendChild(chunkXTYRGVT5_cjs.createSvgEl(doc, "polyline", { points: "3.27 6.96 12 12.01 20.73 6.96" }));
|
|
2205
|
+
icon.appendChild(chunkXTYRGVT5_cjs.createSvgEl(doc, "line", { x1: 12, y1: 22.08, x2: 12, y2: 12 }));
|
|
2165
2206
|
box.appendChild(icon);
|
|
2166
|
-
const text =
|
|
2207
|
+
const text = chunkXTYRGVT5_cjs.createEl(doc, "span", "pptxv-model3d-label");
|
|
2167
2208
|
text.textContent = label;
|
|
2168
2209
|
box.appendChild(text);
|
|
2169
2210
|
return box;
|
|
2170
2211
|
}
|
|
2171
2212
|
function buildViewButton(doc, root, poster, element, context) {
|
|
2172
|
-
const button =
|
|
2213
|
+
const button = chunkXTYRGVT5_cjs.createEl(doc, "button", "pptxv-model3d-view", {
|
|
2173
2214
|
position: "absolute",
|
|
2174
2215
|
bottom: "4px",
|
|
2175
2216
|
right: "4px",
|
|
@@ -2204,7 +2245,7 @@ function buildViewButton(doc, root, poster, element, context) {
|
|
|
2204
2245
|
button.remove();
|
|
2205
2246
|
return;
|
|
2206
2247
|
}
|
|
2207
|
-
const sceneHost =
|
|
2248
|
+
const sceneHost = chunkXTYRGVT5_cjs.createEl(doc, "div", "pptxv-model3d-scene", {
|
|
2208
2249
|
position: "absolute",
|
|
2209
2250
|
inset: 0,
|
|
2210
2251
|
willChange: "transform"
|
|
@@ -2232,15 +2273,15 @@ function buildViewButton(doc, root, poster, element, context) {
|
|
|
2232
2273
|
|
|
2233
2274
|
// src/pptx/dom/elements/ole-icons.ts
|
|
2234
2275
|
function buildOleIcon(doc, type, color) {
|
|
2235
|
-
const svg =
|
|
2276
|
+
const svg = chunkXTYRGVT5_cjs.createSvgEl(doc, "svg", {
|
|
2236
2277
|
width: 36,
|
|
2237
2278
|
height: 36,
|
|
2238
2279
|
viewBox: "0 0 24 24",
|
|
2239
2280
|
fill: "none",
|
|
2240
2281
|
"aria-hidden": "true"
|
|
2241
2282
|
});
|
|
2242
|
-
for (const shape of
|
|
2243
|
-
const node =
|
|
2283
|
+
for (const shape of chunkRI4YZ4AG_cjs.getOleIconShapes(type)) {
|
|
2284
|
+
const node = chunkXTYRGVT5_cjs.createSvgEl(doc, shape.tag, shape.attrs);
|
|
2244
2285
|
if (shape.tag === "text") {
|
|
2245
2286
|
node.setAttribute("fill", color);
|
|
2246
2287
|
node.textContent = shape.text ?? "";
|
|
@@ -2258,21 +2299,21 @@ var renderOleElement = (element, zIndex, context) => {
|
|
|
2258
2299
|
return null;
|
|
2259
2300
|
}
|
|
2260
2301
|
const doc = context.document;
|
|
2261
|
-
const oleType =
|
|
2262
|
-
const typeColor =
|
|
2263
|
-
const typeLabel =
|
|
2264
|
-
const el =
|
|
2302
|
+
const oleType = chunkRI4YZ4AG_cjs.resolveOleType(element);
|
|
2303
|
+
const typeColor = chunkRI4YZ4AG_cjs.getOleTypeColor(oleType);
|
|
2304
|
+
const typeLabel = chunkRI4YZ4AG_cjs.getOleTypeLabel(oleType);
|
|
2305
|
+
const el = chunkXTYRGVT5_cjs.createEl(doc, "div", "pptxv-element pptxv-ole", chunkRI4YZ4AG_cjs.getContainerStyle(element, zIndex));
|
|
2265
2306
|
el.dataset.elementId = element.id;
|
|
2266
2307
|
el.setAttribute("role", "group");
|
|
2267
|
-
el.setAttribute("aria-label",
|
|
2308
|
+
el.setAttribute("aria-label", chunkRI4YZ4AG_cjs.getOleAriaLabel(element));
|
|
2268
2309
|
el.title = infoLines(element, typeLabel).join("\n");
|
|
2269
2310
|
if (element.previewImageData) {
|
|
2270
|
-
el.appendChild(buildPreview(doc, element, typeColor,
|
|
2311
|
+
el.appendChild(buildPreview(doc, element, typeColor, chunkRI4YZ4AG_cjs.getOleBadgeLabel(oleType)));
|
|
2271
2312
|
} else {
|
|
2272
2313
|
el.appendChild(buildPlaceholder2(doc, element, oleType, typeColor, typeLabel));
|
|
2273
2314
|
}
|
|
2274
|
-
const showActions =
|
|
2275
|
-
|
|
2315
|
+
const showActions = chunkRI4YZ4AG_cjs.oleActionsVisible(
|
|
2316
|
+
chunkRI4YZ4AG_cjs.mediaSurfaceOf({
|
|
2276
2317
|
interactive: context.interactive === true,
|
|
2277
2318
|
presenting: context.presenting
|
|
2278
2319
|
})
|
|
@@ -2288,7 +2329,7 @@ function infoLines(el, typeLabel) {
|
|
|
2288
2329
|
if (name) {
|
|
2289
2330
|
lines.push(name);
|
|
2290
2331
|
}
|
|
2291
|
-
const size =
|
|
2332
|
+
const size = chunkRI4YZ4AG_cjs.formatBytes(el.oleEmbeddedByteSize);
|
|
2292
2333
|
if (size) {
|
|
2293
2334
|
lines.push(size);
|
|
2294
2335
|
}
|
|
@@ -2298,12 +2339,12 @@ function infoLines(el, typeLabel) {
|
|
|
2298
2339
|
return lines;
|
|
2299
2340
|
}
|
|
2300
2341
|
function buildPreview(doc, el, typeColor, badgeLabel) {
|
|
2301
|
-
const preview =
|
|
2342
|
+
const preview = chunkXTYRGVT5_cjs.createEl(doc, "div", "pptxv-ole-preview", {
|
|
2302
2343
|
position: "relative",
|
|
2303
2344
|
width: "100%",
|
|
2304
2345
|
height: "100%"
|
|
2305
2346
|
});
|
|
2306
|
-
const img =
|
|
2347
|
+
const img = chunkXTYRGVT5_cjs.createEl(doc, "img", "pptxv-ole-img", {
|
|
2307
2348
|
width: "100%",
|
|
2308
2349
|
height: "100%",
|
|
2309
2350
|
objectFit: "contain",
|
|
@@ -2312,19 +2353,19 @@ function buildPreview(doc, el, typeColor, badgeLabel) {
|
|
|
2312
2353
|
display: "block"
|
|
2313
2354
|
});
|
|
2314
2355
|
img.src = el.previewImageData ?? "";
|
|
2315
|
-
img.alt =
|
|
2356
|
+
img.alt = chunkRI4YZ4AG_cjs.getOleAriaLabel(el);
|
|
2316
2357
|
img.draggable = false;
|
|
2317
2358
|
preview.appendChild(img);
|
|
2318
|
-
const badge =
|
|
2359
|
+
const badge = chunkXTYRGVT5_cjs.createSvgEl(doc, "svg", { width: 24, height: 24, viewBox: "0 0 24 24" });
|
|
2319
2360
|
badge.setAttribute("class", "pptxv-ole-badge");
|
|
2320
2361
|
badge.setAttribute(
|
|
2321
2362
|
"style",
|
|
2322
2363
|
"position:absolute;bottom:4px;right:4px;z-index:10;pointer-events:none"
|
|
2323
2364
|
);
|
|
2324
2365
|
badge.appendChild(
|
|
2325
|
-
|
|
2366
|
+
chunkXTYRGVT5_cjs.createSvgEl(doc, "rect", { x: 2, y: 2, width: 20, height: 20, rx: 3, fill: typeColor })
|
|
2326
2367
|
);
|
|
2327
|
-
const badgeText =
|
|
2368
|
+
const badgeText = chunkXTYRGVT5_cjs.createSvgEl(doc, "text", {
|
|
2328
2369
|
x: 12,
|
|
2329
2370
|
y: 16,
|
|
2330
2371
|
"text-anchor": "middle",
|
|
@@ -2338,8 +2379,8 @@ function buildPreview(doc, el, typeColor, badgeLabel) {
|
|
|
2338
2379
|
return preview;
|
|
2339
2380
|
}
|
|
2340
2381
|
function buildPlaceholder2(doc, el, oleType, typeColor, typeLabel) {
|
|
2341
|
-
const box =
|
|
2342
|
-
...
|
|
2382
|
+
const box = chunkXTYRGVT5_cjs.createEl(doc, "div", "pptxv-ole-placeholder", {
|
|
2383
|
+
...chunkRI4YZ4AG_cjs.getPlaceholderStyle(oleType),
|
|
2343
2384
|
width: "100%",
|
|
2344
2385
|
height: "100%",
|
|
2345
2386
|
display: "flex",
|
|
@@ -2350,7 +2391,7 @@ function buildPlaceholder2(doc, el, oleType, typeColor, typeLabel) {
|
|
|
2350
2391
|
boxSizing: "border-box"
|
|
2351
2392
|
});
|
|
2352
2393
|
box.appendChild(buildOleIcon(doc, oleType, typeColor));
|
|
2353
|
-
const name =
|
|
2394
|
+
const name = chunkXTYRGVT5_cjs.createEl(doc, "span", "pptxv-ole-name", {
|
|
2354
2395
|
marginTop: "8px",
|
|
2355
2396
|
fontSize: "12px",
|
|
2356
2397
|
fontWeight: 500,
|
|
@@ -2360,10 +2401,10 @@ function buildPlaceholder2(doc, el, oleType, typeColor, typeLabel) {
|
|
|
2360
2401
|
whiteSpace: "nowrap",
|
|
2361
2402
|
color: typeColor
|
|
2362
2403
|
});
|
|
2363
|
-
name.textContent =
|
|
2404
|
+
name.textContent = chunkRI4YZ4AG_cjs.getOleDisplayName(el);
|
|
2364
2405
|
box.appendChild(name);
|
|
2365
2406
|
if (el.fileName) {
|
|
2366
|
-
const sublabel =
|
|
2407
|
+
const sublabel = chunkXTYRGVT5_cjs.createEl(doc, "span", "pptxv-ole-sublabel", {
|
|
2367
2408
|
marginTop: "2px",
|
|
2368
2409
|
fontSize: "10px",
|
|
2369
2410
|
color: "rgba(0,0,0,0.45)",
|
|
@@ -2393,7 +2434,7 @@ var ACTION_STYLE = {
|
|
|
2393
2434
|
function buildActionBar(doc, el, typeLabel, context) {
|
|
2394
2435
|
const data = el.oleEmbeddedData ?? "";
|
|
2395
2436
|
const downloadName = el.oleEmbeddedFileName ?? el.fileName ?? typeLabel;
|
|
2396
|
-
const bar =
|
|
2437
|
+
const bar = chunkXTYRGVT5_cjs.createEl(doc, "div", "pptxv-ole-actions", {
|
|
2397
2438
|
position: "absolute",
|
|
2398
2439
|
left: 0,
|
|
2399
2440
|
right: 0,
|
|
@@ -2412,9 +2453,9 @@ function buildActionBar(doc, el, typeLabel, context) {
|
|
|
2412
2453
|
for (const type of ["pointerdown", "mousedown", "click"]) {
|
|
2413
2454
|
bar.addEventListener(type, (event) => event.stopPropagation());
|
|
2414
2455
|
}
|
|
2415
|
-
const size =
|
|
2456
|
+
const size = chunkRI4YZ4AG_cjs.formatBytes(el.oleEmbeddedByteSize);
|
|
2416
2457
|
if (size) {
|
|
2417
|
-
const meta =
|
|
2458
|
+
const meta = chunkXTYRGVT5_cjs.createEl(doc, "span", "pptxv-ole-meta", {
|
|
2418
2459
|
marginRight: "auto",
|
|
2419
2460
|
color: "rgba(0,0,0,0.55)",
|
|
2420
2461
|
overflow: "hidden",
|
|
@@ -2424,7 +2465,7 @@ function buildActionBar(doc, el, typeLabel, context) {
|
|
|
2424
2465
|
meta.textContent = size;
|
|
2425
2466
|
bar.appendChild(meta);
|
|
2426
2467
|
}
|
|
2427
|
-
const download =
|
|
2468
|
+
const download = chunkXTYRGVT5_cjs.createEl(doc, "a", "pptxv-ole-action", ACTION_STYLE);
|
|
2428
2469
|
download.href = data;
|
|
2429
2470
|
download.download = downloadName;
|
|
2430
2471
|
const downloadTitle = context.t("pptx.ole.downloadName", { name: downloadName });
|
|
@@ -2432,14 +2473,14 @@ function buildActionBar(doc, el, typeLabel, context) {
|
|
|
2432
2473
|
download.title = downloadTitle;
|
|
2433
2474
|
download.textContent = context.t("pptx.ole.download");
|
|
2434
2475
|
bar.appendChild(download);
|
|
2435
|
-
if (
|
|
2436
|
-
const open =
|
|
2476
|
+
if (chunkRI4YZ4AG_cjs.isBrowserOpenableMime(el.oleEmbeddedMimeType)) {
|
|
2477
|
+
const open = chunkXTYRGVT5_cjs.createEl(doc, "button", "pptxv-ole-action", ACTION_STYLE);
|
|
2437
2478
|
open.type = "button";
|
|
2438
2479
|
const openTitle = context.t("pptx.ole.openName", { name: downloadName });
|
|
2439
2480
|
open.setAttribute("aria-label", openTitle);
|
|
2440
2481
|
open.title = openTitle;
|
|
2441
2482
|
open.textContent = context.t("pptx.ole.open");
|
|
2442
|
-
open.addEventListener("click", () =>
|
|
2483
|
+
open.addEventListener("click", () => chunkRI4YZ4AG_cjs.openUrlInNewTab(data));
|
|
2443
2484
|
bar.appendChild(open);
|
|
2444
2485
|
}
|
|
2445
2486
|
return bar;
|
|
@@ -2447,15 +2488,15 @@ function buildActionBar(doc, el, typeLabel, context) {
|
|
|
2447
2488
|
|
|
2448
2489
|
// src/pptx/dom/elements/placeholder.ts
|
|
2449
2490
|
var renderPlaceholderElement = (element, zIndex, context) => {
|
|
2450
|
-
const el =
|
|
2491
|
+
const el = chunkXTYRGVT5_cjs.createEl(
|
|
2451
2492
|
context.document,
|
|
2452
2493
|
"div",
|
|
2453
2494
|
"pptxv-element pptxv-placeholder",
|
|
2454
|
-
|
|
2495
|
+
chunkRI4YZ4AG_cjs.getContainerStyle(element, zIndex)
|
|
2455
2496
|
);
|
|
2456
2497
|
el.dataset.elementId = element.id;
|
|
2457
2498
|
el.dataset.elementType = element.type;
|
|
2458
|
-
const label =
|
|
2499
|
+
const label = chunkXTYRGVT5_cjs.createEl(context.document, "div", "pptxv-placeholder-label");
|
|
2459
2500
|
label.textContent = chunkWNDGU3GQ_cjs.keyToLabel(element.type);
|
|
2460
2501
|
el.appendChild(label);
|
|
2461
2502
|
return el;
|
|
@@ -2467,7 +2508,7 @@ var renderZoomElement = (element, zIndex, context) => {
|
|
|
2467
2508
|
return null;
|
|
2468
2509
|
}
|
|
2469
2510
|
const doc = context.document;
|
|
2470
|
-
const summaryView =
|
|
2511
|
+
const summaryView = chunkRI4YZ4AG_cjs.buildSummaryZoomView(
|
|
2471
2512
|
element,
|
|
2472
2513
|
(index) => {
|
|
2473
2514
|
const slide = context.slides?.[index];
|
|
@@ -2483,19 +2524,19 @@ var renderZoomElement = (element, zIndex, context) => {
|
|
|
2483
2524
|
(key, params) => context.t(key, params)
|
|
2484
2525
|
);
|
|
2485
2526
|
if (summaryView) {
|
|
2486
|
-
const root =
|
|
2527
|
+
const root = chunkXTYRGVT5_cjs.createEl(
|
|
2487
2528
|
doc,
|
|
2488
2529
|
"div",
|
|
2489
2530
|
"pptxv-element pptxv-zoom pptxv-summary-zoom",
|
|
2490
|
-
|
|
2531
|
+
chunkRI4YZ4AG_cjs.getContainerStyle(element, zIndex)
|
|
2491
2532
|
);
|
|
2492
|
-
const content =
|
|
2533
|
+
const content = chunkXTYRGVT5_cjs.createEl(doc, "div", "pptxv-summary-zoom-content", summaryView.containerStyle);
|
|
2493
2534
|
root.dataset.elementId = element.id;
|
|
2494
2535
|
root.dataset.zoomType = "summary";
|
|
2495
2536
|
root.setAttribute("role", "group");
|
|
2496
2537
|
root.setAttribute("aria-label", summaryView.ariaLabel);
|
|
2497
2538
|
for (const tile2 of summaryView.tiles) {
|
|
2498
|
-
const tileElement =
|
|
2539
|
+
const tileElement = chunkXTYRGVT5_cjs.createEl(doc, "div", "pptxv-summary-zoom-tile", {
|
|
2499
2540
|
...tile2.style,
|
|
2500
2541
|
backgroundColor: tile2.backgroundColor,
|
|
2501
2542
|
overflow: "hidden",
|
|
@@ -2529,22 +2570,22 @@ var renderZoomElement = (element, zIndex, context) => {
|
|
|
2529
2570
|
});
|
|
2530
2571
|
}
|
|
2531
2572
|
if (tile2.imageSrc) {
|
|
2532
|
-
const image =
|
|
2573
|
+
const image = chunkXTYRGVT5_cjs.createEl(doc, "img");
|
|
2533
2574
|
image.src = tile2.imageSrc;
|
|
2534
2575
|
image.alt = tile2.ariaLabel;
|
|
2535
2576
|
image.setAttribute("draggable", "false");
|
|
2536
2577
|
image.style.cssText = "width:100%;height:100%;object-fit:contain";
|
|
2537
2578
|
tileElement.appendChild(image);
|
|
2538
2579
|
} else {
|
|
2539
|
-
const label =
|
|
2580
|
+
const label = chunkXTYRGVT5_cjs.createEl(doc, "div");
|
|
2540
2581
|
label.textContent = tile2.label;
|
|
2541
|
-
const slideLabel =
|
|
2582
|
+
const slideLabel = chunkXTYRGVT5_cjs.createEl(doc, "div");
|
|
2542
2583
|
slideLabel.textContent = tile2.slideLabel;
|
|
2543
2584
|
tileElement.append(label, slideLabel);
|
|
2544
2585
|
}
|
|
2545
2586
|
content.appendChild(tileElement);
|
|
2546
2587
|
}
|
|
2547
|
-
const badge2 =
|
|
2588
|
+
const badge2 = chunkXTYRGVT5_cjs.createEl(doc, "div", "pptxv-zoom-badge");
|
|
2548
2589
|
badge2.textContent = context.t("pptx.zoom.summaryZoom");
|
|
2549
2590
|
content.appendChild(badge2);
|
|
2550
2591
|
root.appendChild(content);
|
|
@@ -2554,7 +2595,7 @@ var renderZoomElement = (element, zIndex, context) => {
|
|
|
2554
2595
|
const target = element.targetSlideIndex ?? 0;
|
|
2555
2596
|
const targetSlide = context.slides?.[target];
|
|
2556
2597
|
const interactive = context.presenting && context.onZoomClick !== void 0;
|
|
2557
|
-
const el =
|
|
2598
|
+
const el = chunkXTYRGVT5_cjs.createEl(doc, "div", "pptxv-element pptxv-zoom", chunkRI4YZ4AG_cjs.getContainerStyle(element, zIndex));
|
|
2558
2599
|
el.dataset.elementId = element.id;
|
|
2559
2600
|
el.dataset.zoomType = zoomType;
|
|
2560
2601
|
el.dataset.zoomTarget = String(target);
|
|
@@ -2564,7 +2605,7 @@ var renderZoomElement = (element, zIndex, context) => {
|
|
|
2564
2605
|
el.tabIndex = 0;
|
|
2565
2606
|
el.style.cursor = "pointer";
|
|
2566
2607
|
const activate = () => {
|
|
2567
|
-
const zoomTarget =
|
|
2608
|
+
const zoomTarget = chunkRI4YZ4AG_cjs.resolveZoomNavigationTarget(element);
|
|
2568
2609
|
if (zoomTarget) {
|
|
2569
2610
|
context.onZoomClick?.(zoomTarget, context.currentSlideIndex ?? 0);
|
|
2570
2611
|
}
|
|
@@ -2589,7 +2630,7 @@ var renderZoomElement = (element, zIndex, context) => {
|
|
|
2589
2630
|
section: element.targetSectionId
|
|
2590
2631
|
}) : context.t("pptx.zoom.ariaLabel", { number: target + 1 })
|
|
2591
2632
|
);
|
|
2592
|
-
const tile =
|
|
2633
|
+
const tile = chunkXTYRGVT5_cjs.createEl(doc, "div", "pptxv-zoom-tile", {
|
|
2593
2634
|
position: "relative",
|
|
2594
2635
|
width: "100%",
|
|
2595
2636
|
height: "100%",
|
|
@@ -2598,7 +2639,7 @@ var renderZoomElement = (element, zIndex, context) => {
|
|
|
2598
2639
|
boxShadow: "0 2px 8px rgba(0, 0, 0, 0.15)"
|
|
2599
2640
|
});
|
|
2600
2641
|
if (element.imageData) {
|
|
2601
|
-
const img =
|
|
2642
|
+
const img = chunkXTYRGVT5_cjs.createEl(doc, "img", "pptxv-zoom-img", {
|
|
2602
2643
|
width: "100%",
|
|
2603
2644
|
height: "100%",
|
|
2604
2645
|
objectFit: "contain",
|
|
@@ -2621,7 +2662,7 @@ var renderZoomElement = (element, zIndex, context) => {
|
|
|
2621
2662
|
)
|
|
2622
2663
|
);
|
|
2623
2664
|
}
|
|
2624
|
-
const badge =
|
|
2665
|
+
const badge = chunkXTYRGVT5_cjs.createEl(doc, "div", "pptxv-zoom-badge", {
|
|
2625
2666
|
position: "absolute",
|
|
2626
2667
|
bottom: "4px",
|
|
2627
2668
|
right: "4px",
|
|
@@ -2639,7 +2680,7 @@ var renderZoomElement = (element, zIndex, context) => {
|
|
|
2639
2680
|
return el;
|
|
2640
2681
|
};
|
|
2641
2682
|
function buildThumbnail(doc, slideNumber, sectionText, backgroundColor, t) {
|
|
2642
|
-
const box =
|
|
2683
|
+
const box = chunkXTYRGVT5_cjs.createEl(doc, "div", "pptxv-zoom-thumbnail", {
|
|
2643
2684
|
width: "100%",
|
|
2644
2685
|
height: "100%",
|
|
2645
2686
|
display: "flex",
|
|
@@ -2650,7 +2691,7 @@ function buildThumbnail(doc, slideNumber, sectionText, backgroundColor, t) {
|
|
|
2650
2691
|
border: "1px solid rgba(0, 0, 0, 0.1)",
|
|
2651
2692
|
boxSizing: "border-box"
|
|
2652
2693
|
});
|
|
2653
|
-
const slideLabel =
|
|
2694
|
+
const slideLabel = chunkXTYRGVT5_cjs.createEl(doc, "div", "pptxv-zoom-slide-label", {
|
|
2654
2695
|
fontSize: "14px",
|
|
2655
2696
|
fontWeight: 600,
|
|
2656
2697
|
color: "rgba(0, 0, 0, 0.5)",
|
|
@@ -2659,7 +2700,7 @@ function buildThumbnail(doc, slideNumber, sectionText, backgroundColor, t) {
|
|
|
2659
2700
|
slideLabel.textContent = t("pptx.notes.slideN", { n: slideNumber });
|
|
2660
2701
|
box.appendChild(slideLabel);
|
|
2661
2702
|
if (sectionText) {
|
|
2662
|
-
const sectionLabel =
|
|
2703
|
+
const sectionLabel = chunkXTYRGVT5_cjs.createEl(doc, "div", "pptxv-zoom-section-label", {
|
|
2663
2704
|
fontSize: "10px",
|
|
2664
2705
|
color: "rgba(0, 0, 0, 0.4)"
|
|
2665
2706
|
});
|
|
@@ -2678,7 +2719,7 @@ function registerExtraRenderers(registry) {
|
|
|
2678
2719
|
|
|
2679
2720
|
// src/pptx/dom/elements/register-rich-media.ts
|
|
2680
2721
|
function registerRichMediaRenderers(registry) {
|
|
2681
|
-
registry.register("smartArt",
|
|
2722
|
+
registry.register("smartArt", chunkXTYRGVT5_cjs.renderSmartArtElement);
|
|
2682
2723
|
registry.register("media", renderMediaElement);
|
|
2683
2724
|
registry.register("ink", renderInkElement);
|
|
2684
2725
|
registry.register("ole", renderOleElement);
|
|
@@ -2714,10 +2755,10 @@ function enableTableResize(container, table, element, context) {
|
|
|
2714
2755
|
for (const handle of [...colHandles, ...rowHandles]) {
|
|
2715
2756
|
handle.remove();
|
|
2716
2757
|
}
|
|
2717
|
-
const crossings =
|
|
2758
|
+
const crossings = chunkRI4YZ4AG_cjs.computeTableMergeCrossings(tableData.rows, tableData.columnWidths.length);
|
|
2718
2759
|
const rowBounds = measureRowBoundaries(table);
|
|
2719
|
-
colHandles =
|
|
2720
|
-
const handle =
|
|
2760
|
+
colHandles = chunkRI4YZ4AG_cjs.computeColumnBoundaries(tableData.columnWidths).map((leftPct, i) => {
|
|
2761
|
+
const handle = chunkXTYRGVT5_cjs.createEl(doc, "div", "pptxv-table-resize-col", {
|
|
2721
2762
|
position: "absolute",
|
|
2722
2763
|
top: "0",
|
|
2723
2764
|
bottom: "0",
|
|
@@ -2726,14 +2767,14 @@ function enableTableResize(container, table, element, context) {
|
|
|
2726
2767
|
zIndex: "10",
|
|
2727
2768
|
pointerEvents: "none"
|
|
2728
2769
|
});
|
|
2729
|
-
const segments =
|
|
2770
|
+
const segments = chunkRI4YZ4AG_cjs.columnHandleSegments(
|
|
2730
2771
|
crossings.columns[i] ?? [],
|
|
2731
2772
|
rowBounds,
|
|
2732
2773
|
table.offsetHeight
|
|
2733
2774
|
);
|
|
2734
2775
|
for (const { top, height } of segments) {
|
|
2735
2776
|
handle.appendChild(
|
|
2736
|
-
|
|
2777
|
+
chunkXTYRGVT5_cjs.createEl(doc, "div", "pptxv-table-resize-segment", {
|
|
2737
2778
|
position: "absolute",
|
|
2738
2779
|
left: "0",
|
|
2739
2780
|
right: "0",
|
|
@@ -2747,7 +2788,7 @@ function enableTableResize(container, table, element, context) {
|
|
|
2747
2788
|
return handle;
|
|
2748
2789
|
});
|
|
2749
2790
|
rowHandles = rowBounds.map((topPx, i) => {
|
|
2750
|
-
const handle =
|
|
2791
|
+
const handle = chunkXTYRGVT5_cjs.createEl(doc, "div", "pptxv-table-resize-row", {
|
|
2751
2792
|
position: "absolute",
|
|
2752
2793
|
left: "0",
|
|
2753
2794
|
right: "0",
|
|
@@ -2756,10 +2797,10 @@ function enableTableResize(container, table, element, context) {
|
|
|
2756
2797
|
zIndex: "10",
|
|
2757
2798
|
pointerEvents: "none"
|
|
2758
2799
|
});
|
|
2759
|
-
const segments =
|
|
2800
|
+
const segments = chunkRI4YZ4AG_cjs.rowHandleSegments(crossings.rows[i] ?? [], tableData.columnWidths);
|
|
2760
2801
|
for (const { leftPct, widthPct } of segments) {
|
|
2761
2802
|
handle.appendChild(
|
|
2762
|
-
|
|
2803
|
+
chunkXTYRGVT5_cjs.createEl(doc, "div", "pptxv-table-resize-segment", {
|
|
2763
2804
|
position: "absolute",
|
|
2764
2805
|
top: "0",
|
|
2765
2806
|
bottom: "0",
|
|
@@ -2800,14 +2841,14 @@ function enableTableResize(container, table, element, context) {
|
|
|
2800
2841
|
const deltaProp = (event.clientX - active.startPos) / (rect.width || 1);
|
|
2801
2842
|
context.onTableResizeColumns?.(
|
|
2802
2843
|
element,
|
|
2803
|
-
|
|
2844
|
+
chunkRI4YZ4AG_cjs.computeResizedColumnWidths(active.initialWidths, active.index, deltaProp)
|
|
2804
2845
|
);
|
|
2805
2846
|
} else if (event.clientY !== active.startPos && active.type === "row") {
|
|
2806
2847
|
const deltaY = event.clientY - active.startPos;
|
|
2807
2848
|
context.onTableResizeRow?.(
|
|
2808
2849
|
element,
|
|
2809
2850
|
active.index,
|
|
2810
|
-
|
|
2851
|
+
chunkRI4YZ4AG_cjs.computeResizedRowHeight(active.initialRowHeight ?? chunkRI4YZ4AG_cjs.DEFAULT_ROW_HEIGHT, deltaY)
|
|
2811
2852
|
);
|
|
2812
2853
|
}
|
|
2813
2854
|
drawHandles();
|
|
@@ -2816,13 +2857,13 @@ function enableTableResize(container, table, element, context) {
|
|
|
2816
2857
|
const rect = container.getBoundingClientRect();
|
|
2817
2858
|
const localX = event.clientX - rect.left;
|
|
2818
2859
|
const localY = event.clientY - rect.top;
|
|
2819
|
-
const scaleY =
|
|
2820
|
-
const crossings =
|
|
2860
|
+
const scaleY = chunkRI4YZ4AG_cjs.getTableResizeScale(rect.height, container.offsetHeight);
|
|
2861
|
+
const crossings = chunkRI4YZ4AG_cjs.computeTableMergeCrossings(tableData.rows, tableData.columnWidths.length);
|
|
2821
2862
|
const rowBounds = measureRowBoundaries(table);
|
|
2822
|
-
const colBoundaries =
|
|
2863
|
+
const colBoundaries = chunkRI4YZ4AG_cjs.computeColumnBoundaries(tableData.columnWidths);
|
|
2823
2864
|
for (let i = 0; i < colBoundaries.length; i++) {
|
|
2824
2865
|
const boundaryX = colBoundaries[i] / 100 * rect.width;
|
|
2825
|
-
if (Math.abs(localX - boundaryX) <= HANDLE_ZONE && !
|
|
2866
|
+
if (Math.abs(localX - boundaryX) <= HANDLE_ZONE && !chunkRI4YZ4AG_cjs.isColumnBoundaryMergedAt(crossings, i, rowBounds, localY / scaleY)) {
|
|
2826
2867
|
event.preventDefault();
|
|
2827
2868
|
event.stopPropagation();
|
|
2828
2869
|
doc.body.style.cursor = "col-resize";
|
|
@@ -2840,7 +2881,7 @@ function enableTableResize(container, table, element, context) {
|
|
|
2840
2881
|
}
|
|
2841
2882
|
}
|
|
2842
2883
|
for (let i = 0; i < rowBounds.length; i++) {
|
|
2843
|
-
if (Math.abs(localY - rowBounds[i] * scaleY) <= HANDLE_ZONE && !
|
|
2884
|
+
if (Math.abs(localY - rowBounds[i] * scaleY) <= HANDLE_ZONE && !chunkRI4YZ4AG_cjs.isRowBoundaryMergedAt(crossings, i, tableData.columnWidths, localX / (rect.width || 1))) {
|
|
2844
2885
|
event.preventDefault();
|
|
2845
2886
|
event.stopPropagation();
|
|
2846
2887
|
const tr = table.querySelectorAll("tbody > tr")[i];
|
|
@@ -2851,7 +2892,7 @@ function enableTableResize(container, table, element, context) {
|
|
|
2851
2892
|
index: i,
|
|
2852
2893
|
startPos: event.clientY,
|
|
2853
2894
|
handleEl: rowHandles[i] ?? container,
|
|
2854
|
-
initialRowHeight: tr?.offsetHeight ??
|
|
2895
|
+
initialRowHeight: tr?.offsetHeight ?? chunkRI4YZ4AG_cjs.DEFAULT_ROW_HEIGHT
|
|
2855
2896
|
};
|
|
2856
2897
|
win.addEventListener("mousemove", onMouseMove);
|
|
2857
2898
|
win.addEventListener("mouseup", onMouseUp);
|
|
@@ -2871,12 +2912,12 @@ var renderTableElement = (element, zIndex, context) => {
|
|
|
2871
2912
|
return null;
|
|
2872
2913
|
}
|
|
2873
2914
|
const doc = context.document;
|
|
2874
|
-
const container =
|
|
2875
|
-
...
|
|
2915
|
+
const container = chunkXTYRGVT5_cjs.createEl(doc, "div", "pptxv-element pptxv-table", {
|
|
2916
|
+
...chunkRI4YZ4AG_cjs.getContainerStyle(element, zIndex),
|
|
2876
2917
|
overflow: "hidden"
|
|
2877
2918
|
});
|
|
2878
2919
|
container.dataset.elementId = element.id;
|
|
2879
|
-
const table =
|
|
2920
|
+
const table = chunkXTYRGVT5_cjs.createEl(doc, "table", "pptxv-table-grid", {
|
|
2880
2921
|
width: "100%",
|
|
2881
2922
|
height: "100%",
|
|
2882
2923
|
borderCollapse: "collapse",
|
|
@@ -2885,7 +2926,7 @@ var renderTableElement = (element, zIndex, context) => {
|
|
|
2885
2926
|
// font stack; all five bindings declare the same shared default here.
|
|
2886
2927
|
fontFamily: chunkYZWKNFPU_cjs.DEFAULT_FONT_FAMILY,
|
|
2887
2928
|
// `a:tblPr@rtl`: mirrors the column order for right-to-left decks.
|
|
2888
|
-
...
|
|
2929
|
+
...chunkRI4YZ4AG_cjs.tableContainerCss(tableData)
|
|
2889
2930
|
});
|
|
2890
2931
|
appendColgroup(doc, table, tableData.columnWidths);
|
|
2891
2932
|
const tbody = doc.createElement("tbody");
|
|
@@ -2947,13 +2988,13 @@ function renderCell(doc, tableData, cell, rowIndex, cellIndex, rowCount, columnC
|
|
|
2947
2988
|
if (cell.rowSpan && cell.rowSpan > 1) {
|
|
2948
2989
|
td.rowSpan = cell.rowSpan;
|
|
2949
2990
|
}
|
|
2950
|
-
const style =
|
|
2991
|
+
const style = chunkRI4YZ4AG_cjs.tableCellCss(
|
|
2951
2992
|
tableData,
|
|
2952
2993
|
cell,
|
|
2953
2994
|
{ rowIndex, cellIndex, rowCount, columnCount },
|
|
2954
2995
|
styleContext
|
|
2955
2996
|
);
|
|
2956
|
-
const patternFill = cell.style ?
|
|
2997
|
+
const patternFill = cell.style ? chunkRI4YZ4AG_cjs.cellPatternFillCss(cell.style) : null;
|
|
2957
2998
|
if (patternFill) {
|
|
2958
2999
|
delete style["backgroundColor"];
|
|
2959
3000
|
delete style["background"];
|
|
@@ -2964,9 +3005,9 @@ function renderCell(doc, tableData, cell, rowIndex, cellIndex, rowCount, columnC
|
|
|
2964
3005
|
style["backgroundColor"] = patternFill.backgroundColor;
|
|
2965
3006
|
}
|
|
2966
3007
|
}
|
|
2967
|
-
|
|
2968
|
-
|
|
2969
|
-
const diagonals =
|
|
3008
|
+
chunkXTYRGVT5_cjs.applyStyleMap(td, CELL_BASE_STYLE);
|
|
3009
|
+
chunkXTYRGVT5_cjs.applyStyleMap(td, style);
|
|
3010
|
+
const diagonals = chunkRI4YZ4AG_cjs.getCellDiagonalBorders(
|
|
2970
3011
|
cell.style,
|
|
2971
3012
|
tableData,
|
|
2972
3013
|
{ rowIndex, cellIndex, rowCount, columnCount },
|
|
@@ -2979,17 +3020,17 @@ function renderCell(doc, tableData, cell, rowIndex, cellIndex, rowCount, columnC
|
|
|
2979
3020
|
return td;
|
|
2980
3021
|
}
|
|
2981
3022
|
function diagonalLine(doc, x1, y1, x2, y2, stroke, width) {
|
|
2982
|
-
const line =
|
|
2983
|
-
line.style.setProperty("stroke-width",
|
|
3023
|
+
const line = chunkXTYRGVT5_cjs.createSvgEl(doc, "line", { x1, y1, x2, y2, stroke, "stroke-width": width });
|
|
3024
|
+
line.style.setProperty("stroke-width", chunkCK6RYGB4_cjs.screenStrokeWidth(width));
|
|
2984
3025
|
return line;
|
|
2985
3026
|
}
|
|
2986
3027
|
function renderDiagonalOverlay(doc, diagonals) {
|
|
2987
|
-
const svg =
|
|
3028
|
+
const svg = chunkXTYRGVT5_cjs.createSvgEl(doc, "svg", {
|
|
2988
3029
|
class: "pptxv-table-diag",
|
|
2989
3030
|
"aria-hidden": "true",
|
|
2990
3031
|
preserveAspectRatio: "none"
|
|
2991
3032
|
});
|
|
2992
|
-
|
|
3033
|
+
chunkXTYRGVT5_cjs.applyStyleMap(svg, {
|
|
2993
3034
|
position: "absolute",
|
|
2994
3035
|
inset: 0,
|
|
2995
3036
|
width: "100%",
|
|
@@ -3010,10 +3051,10 @@ function renderDiagonalOverlay(doc, diagonals) {
|
|
|
3010
3051
|
return svg;
|
|
3011
3052
|
}
|
|
3012
3053
|
function appendCellText(doc, td, cell, cellCss) {
|
|
3013
|
-
const blocks =
|
|
3054
|
+
const blocks = chunkRI4YZ4AG_cjs.cellParagraphBlocks(cell);
|
|
3014
3055
|
if (blocks) {
|
|
3015
3056
|
for (const block of blocks) {
|
|
3016
|
-
const div =
|
|
3057
|
+
const div = chunkXTYRGVT5_cjs.createEl(doc, "div", "pptxv-table-para", { display: "block", ...block.css });
|
|
3017
3058
|
appendRuns(doc, div, block.runs, cellCss);
|
|
3018
3059
|
td.appendChild(div);
|
|
3019
3060
|
}
|
|
@@ -3022,7 +3063,7 @@ function appendCellText(doc, td, cell, cellCss) {
|
|
|
3022
3063
|
const richCell = cell;
|
|
3023
3064
|
const textRuns = richCell.textRuns && richCell.textRuns.length > 0 ? richCell.textRuns : null;
|
|
3024
3065
|
if (!textRuns) {
|
|
3025
|
-
const span =
|
|
3066
|
+
const span = chunkXTYRGVT5_cjs.createEl(doc, "span", "pptxv-table-text", { position: "relative" });
|
|
3026
3067
|
span.textContent = cell.text || " ";
|
|
3027
3068
|
td.appendChild(span);
|
|
3028
3069
|
return;
|
|
@@ -3030,7 +3071,7 @@ function appendCellText(doc, td, cell, cellCss) {
|
|
|
3030
3071
|
for (const run of textRuns) {
|
|
3031
3072
|
if (run.isParagraphBreak) {
|
|
3032
3073
|
td.appendChild(
|
|
3033
|
-
|
|
3074
|
+
chunkXTYRGVT5_cjs.createEl(doc, "div", "pptxv-table-para-break", { display: "block", height: 0 })
|
|
3034
3075
|
);
|
|
3035
3076
|
continue;
|
|
3036
3077
|
}
|
|
@@ -3043,9 +3084,9 @@ function appendRuns(doc, parent, runs, cellCss) {
|
|
|
3043
3084
|
parent.appendChild(doc.createElement("br"));
|
|
3044
3085
|
continue;
|
|
3045
3086
|
}
|
|
3046
|
-
const span =
|
|
3087
|
+
const span = chunkXTYRGVT5_cjs.createEl(doc, "span", "pptxv-table-run", {
|
|
3047
3088
|
position: "relative",
|
|
3048
|
-
...
|
|
3089
|
+
...chunkRI4YZ4AG_cjs.cellRunStyle(run, cellCss)
|
|
3049
3090
|
});
|
|
3050
3091
|
span.textContent = run.text;
|
|
3051
3092
|
parent.appendChild(span);
|
|
@@ -3059,8 +3100,8 @@ function registerTableChartRenderers(registry) {
|
|
|
3059
3100
|
}
|
|
3060
3101
|
|
|
3061
3102
|
// src/pptx/dom/glyph-outline-cache.ts
|
|
3062
|
-
var glyphOutlineFontCache = new
|
|
3063
|
-
var getGlyphOutline =
|
|
3103
|
+
var glyphOutlineFontCache = new chunkRI4YZ4AG_cjs.GlyphOutlineFontCache();
|
|
3104
|
+
var getGlyphOutline = chunkRI4YZ4AG_cjs.createGlyphOutlineLookup(glyphOutlineFontCache);
|
|
3064
3105
|
|
|
3065
3106
|
// src/pptx/dom/elements/text-warp.ts
|
|
3066
3107
|
function renderWarpedText(element, context) {
|
|
@@ -3072,16 +3113,16 @@ function renderWarpedText(element, context) {
|
|
|
3072
3113
|
if (!preset || preset === "textNoShape") {
|
|
3073
3114
|
return null;
|
|
3074
3115
|
}
|
|
3075
|
-
const paragraphs =
|
|
3116
|
+
const paragraphs = chunkRI4YZ4AG_cjs.groupIntoParagraphs(element);
|
|
3076
3117
|
if (paragraphs.length === 0) {
|
|
3077
3118
|
return null;
|
|
3078
3119
|
}
|
|
3079
|
-
if (!
|
|
3080
|
-
const transform =
|
|
3120
|
+
if (!chunkRI4YZ4AG_cjs.shouldUseSvgWarp(preset)) {
|
|
3121
|
+
const transform = chunkRI4YZ4AG_cjs.getWarpCssTransform(preset, style?.textWarpAdj, style?.textWarpAdj2);
|
|
3081
3122
|
if (!transform) {
|
|
3082
3123
|
return null;
|
|
3083
3124
|
}
|
|
3084
|
-
const text =
|
|
3125
|
+
const text = chunkXTYRGVT5_cjs.createEl(context.document, "div", "pptxv-wordart", {
|
|
3085
3126
|
width: "100%",
|
|
3086
3127
|
height: "100%",
|
|
3087
3128
|
display: "flex",
|
|
@@ -3099,14 +3140,14 @@ function renderWarpedText(element, context) {
|
|
|
3099
3140
|
if (style?.fontSize) {
|
|
3100
3141
|
text.style.fontSize = `${style.fontSize}px`;
|
|
3101
3142
|
}
|
|
3102
|
-
const fontWeight =
|
|
3143
|
+
const fontWeight = chunkRI4YZ4AG_cjs.fontWeightAttribute(style?.fontFamily, style?.bold);
|
|
3103
3144
|
if (fontWeight) {
|
|
3104
3145
|
text.style.fontWeight = fontWeight;
|
|
3105
3146
|
}
|
|
3106
3147
|
text.textContent = paragraphs.map((p) => p.segments.map((s) => s.text).join("")).join("\n");
|
|
3107
3148
|
return text;
|
|
3108
3149
|
}
|
|
3109
|
-
if (
|
|
3150
|
+
if (chunkRI4YZ4AG_cjs.hasGlyphEnvelope(preset)) {
|
|
3110
3151
|
return renderGlyphWarp(element, paragraphs, context);
|
|
3111
3152
|
}
|
|
3112
3153
|
return renderPathWarp(element, paragraphs, context);
|
|
@@ -3126,13 +3167,13 @@ function renderGlyphWarp(element, paragraphs, context) {
|
|
|
3126
3167
|
const preset = style.textWarpPreset;
|
|
3127
3168
|
const width = Math.max(element.width, 1);
|
|
3128
3169
|
const height = Math.max(element.height, 1);
|
|
3129
|
-
const svg =
|
|
3170
|
+
const svg = chunkXTYRGVT5_cjs.createSvgEl(context.document, "svg", {
|
|
3130
3171
|
viewBox: `0 0 ${width} ${height}`,
|
|
3131
3172
|
"aria-hidden": "true"
|
|
3132
3173
|
});
|
|
3133
3174
|
svg.setAttribute("class", "pptxv-wordart");
|
|
3134
3175
|
svg.setAttribute("style", "position:absolute;inset:0;width:100%;height:100%;overflow:visible");
|
|
3135
|
-
const perLine =
|
|
3176
|
+
const perLine = chunkRI4YZ4AG_cjs.buildGlyphEnvelopeBlock(
|
|
3136
3177
|
preset,
|
|
3137
3178
|
paragraphs.map(
|
|
3138
3179
|
(paragraph) => paragraph.segments.map((seg, i) => ({
|
|
@@ -3160,16 +3201,16 @@ function renderGlyphWarp(element, paragraphs, context) {
|
|
|
3160
3201
|
fill,
|
|
3161
3202
|
"font-family": renderedFamily ? pptx.getSubstituteFontFamily(renderedFamily) : chunkYZWKNFPU_cjs.DEFAULT_FONT_FAMILY,
|
|
3162
3203
|
"font-size": s.fontSize ?? style.fontSize ?? 18,
|
|
3163
|
-
"font-weight":
|
|
3164
|
-
"font-style":
|
|
3204
|
+
"font-weight": chunkRI4YZ4AG_cjs.fontWeightAttribute(renderedFamily, s.bold ?? style.bold),
|
|
3205
|
+
"font-style": chunkRI4YZ4AG_cjs.resolveFontItalic(renderedFamily, s.italic ?? style.italic) ? "italic" : void 0
|
|
3165
3206
|
};
|
|
3166
3207
|
if (g.outlinePath) {
|
|
3167
|
-
const path =
|
|
3208
|
+
const path = chunkXTYRGVT5_cjs.createSvgEl(context.document, "path", { d: g.outlinePath, fill });
|
|
3168
3209
|
svg.appendChild(path);
|
|
3169
3210
|
return;
|
|
3170
3211
|
}
|
|
3171
3212
|
if (!g.slices || g.slices.length <= 1) {
|
|
3172
|
-
const text =
|
|
3213
|
+
const text = chunkXTYRGVT5_cjs.createSvgEl(context.document, "text", {
|
|
3173
3214
|
x: g.x,
|
|
3174
3215
|
y: g.y,
|
|
3175
3216
|
transform: g.transform,
|
|
@@ -3179,17 +3220,17 @@ function renderGlyphWarp(element, paragraphs, context) {
|
|
|
3179
3220
|
svg.appendChild(text);
|
|
3180
3221
|
return;
|
|
3181
3222
|
}
|
|
3182
|
-
const group =
|
|
3223
|
+
const group = chunkXTYRGVT5_cjs.createSvgEl(context.document, "g", {
|
|
3183
3224
|
"data-glyph-slices": g.slices.length
|
|
3184
3225
|
});
|
|
3185
3226
|
g.slices.forEach((slice, sliceIndex) => {
|
|
3186
3227
|
const clipId = `${element.id.replace(/[^a-zA-Z0-9_-]/gu, "_")}-warp-l${lineIndex}-g${glyphIndex}-s${sliceIndex}`;
|
|
3187
|
-
const clipPath =
|
|
3228
|
+
const clipPath = chunkXTYRGVT5_cjs.createSvgEl(context.document, "clipPath", {
|
|
3188
3229
|
id: clipId,
|
|
3189
3230
|
clipPathUnits: "userSpaceOnUse"
|
|
3190
3231
|
});
|
|
3191
3232
|
clipPath.appendChild(
|
|
3192
|
-
|
|
3233
|
+
chunkXTYRGVT5_cjs.createSvgEl(context.document, "rect", {
|
|
3193
3234
|
x: slice.clipX0,
|
|
3194
3235
|
y: -1e5,
|
|
3195
3236
|
width: slice.clipX1 - slice.clipX0,
|
|
@@ -3197,7 +3238,7 @@ function renderGlyphWarp(element, paragraphs, context) {
|
|
|
3197
3238
|
})
|
|
3198
3239
|
);
|
|
3199
3240
|
group.appendChild(clipPath);
|
|
3200
|
-
const text =
|
|
3241
|
+
const text = chunkXTYRGVT5_cjs.createSvgEl(context.document, "text", {
|
|
3201
3242
|
x: g.x,
|
|
3202
3243
|
y: g.y,
|
|
3203
3244
|
transform: slice.transform,
|
|
@@ -3215,20 +3256,20 @@ function renderGlyphWarp(element, paragraphs, context) {
|
|
|
3215
3256
|
function renderPathWarp(element, paragraphs, context) {
|
|
3216
3257
|
const style = element.textStyle;
|
|
3217
3258
|
const preset = style.textWarpPreset;
|
|
3218
|
-
const svg =
|
|
3259
|
+
const svg = chunkXTYRGVT5_cjs.createSvgEl(context.document, "svg", {
|
|
3219
3260
|
viewBox: `0 0 ${Math.max(element.width, 1)} ${Math.max(element.height, 1)}`,
|
|
3220
3261
|
preserveAspectRatio: "none",
|
|
3221
3262
|
"aria-hidden": "true"
|
|
3222
3263
|
});
|
|
3223
3264
|
svg.setAttribute("class", "pptxv-wordart");
|
|
3224
3265
|
svg.setAttribute("style", "position:absolute;inset:0;width:100%;height:100%;overflow:visible");
|
|
3225
|
-
const defs =
|
|
3266
|
+
const defs = chunkXTYRGVT5_cjs.createSvgEl(context.document, "defs");
|
|
3226
3267
|
paragraphs.forEach((paragraph, index) => {
|
|
3227
3268
|
const id = `${element.id.replace(/[^a-zA-Z0-9_-]/gu, "_")}-warp-${index}`;
|
|
3228
3269
|
defs.appendChild(
|
|
3229
|
-
|
|
3270
|
+
chunkXTYRGVT5_cjs.createSvgEl(context.document, "path", {
|
|
3230
3271
|
id,
|
|
3231
|
-
d:
|
|
3272
|
+
d: chunkRI4YZ4AG_cjs.buildWarpPath(
|
|
3232
3273
|
preset,
|
|
3233
3274
|
element.width,
|
|
3234
3275
|
element.height,
|
|
@@ -3239,14 +3280,14 @@ function renderPathWarp(element, paragraphs, context) {
|
|
|
3239
3280
|
)
|
|
3240
3281
|
})
|
|
3241
3282
|
);
|
|
3242
|
-
const text =
|
|
3283
|
+
const text = chunkXTYRGVT5_cjs.createSvgEl(context.document, "text", {
|
|
3243
3284
|
fill: style.color ?? "#000000",
|
|
3244
3285
|
"font-family": style.fontFamily ? pptx.getSubstituteFontFamily(style.fontFamily) : chunkYZWKNFPU_cjs.DEFAULT_FONT_FAMILY,
|
|
3245
3286
|
"font-size": style.fontSize ?? 18,
|
|
3246
|
-
"font-weight":
|
|
3247
|
-
"font-style":
|
|
3287
|
+
"font-weight": chunkRI4YZ4AG_cjs.fontWeightAttribute(style.fontFamily, style.bold),
|
|
3288
|
+
"font-style": chunkRI4YZ4AG_cjs.resolveFontItalic(style.fontFamily, style.italic) ? "italic" : void 0
|
|
3248
3289
|
});
|
|
3249
|
-
const textPath =
|
|
3290
|
+
const textPath = chunkXTYRGVT5_cjs.createSvgEl(context.document, "textPath", {
|
|
3250
3291
|
href: `#${id}`,
|
|
3251
3292
|
startOffset: "50%",
|
|
3252
3293
|
"text-anchor": "middle"
|
|
@@ -3261,9 +3302,9 @@ function renderPathWarp(element, paragraphs, context) {
|
|
|
3261
3302
|
|
|
3262
3303
|
// src/pptx/dom/elements/text-shape.ts
|
|
3263
3304
|
var renderTextShapeElement = (element, zIndex, context) => {
|
|
3264
|
-
const container =
|
|
3305
|
+
const container = chunkRI4YZ4AG_cjs.getContainerStyle(element, zIndex);
|
|
3265
3306
|
const animState = context.presentationStates?.get(element.id);
|
|
3266
|
-
const background =
|
|
3307
|
+
const background = chunkRI4YZ4AG_cjs.getBackgroundAnimationState(element, context.presentationStates);
|
|
3267
3308
|
const visualState = background ?? animState;
|
|
3268
3309
|
const shape = getShapeFillStrokeStyle(
|
|
3269
3310
|
element,
|
|
@@ -3271,27 +3312,27 @@ var renderTextShapeElement = (element, zIndex, context) => {
|
|
|
3271
3312
|
visualState?.animatesStroke
|
|
3272
3313
|
);
|
|
3273
3314
|
const merged = { ...container, ...shape };
|
|
3274
|
-
|
|
3275
|
-
|
|
3276
|
-
|
|
3277
|
-
);
|
|
3278
|
-
const transform = chunk4SZSTDER_cjs.composeTransforms(container["transform"], shape["transform"]);
|
|
3315
|
+
const bleedPatch = chunkRI4YZ4AG_cjs.abuttingEdgeBleedStyle(element, context.edgeBleeds?.get(element.id), merged);
|
|
3316
|
+
const beforeBleed = { ...merged };
|
|
3317
|
+
Object.assign(merged, bleedPatch);
|
|
3318
|
+
const transform = chunkXTYRGVT5_cjs.composeTransforms(container["transform"], shape["transform"]);
|
|
3279
3319
|
if (transform !== void 0) {
|
|
3280
3320
|
merged["transform"] = transform;
|
|
3281
3321
|
}
|
|
3282
|
-
const layers =
|
|
3283
|
-
const el =
|
|
3322
|
+
const layers = chunkRI4YZ4AG_cjs.getBackgroundAnimationLayers(element, merged, background);
|
|
3323
|
+
const el = chunkXTYRGVT5_cjs.createEl(context.document, "div", "pptxv-element pptxv-shape", layers.box);
|
|
3284
3324
|
el.dataset.elementId = element.id;
|
|
3285
|
-
|
|
3325
|
+
markAbuttingEdgeBleed(el, bleedPatch, beforeBleed);
|
|
3326
|
+
const paint = layers.paint ? chunkXTYRGVT5_cjs.createEl(context.document, "div", void 0, layers.paint) : el;
|
|
3286
3327
|
if (paint !== el) {
|
|
3287
3328
|
paint.dataset.animId = layers.targetId;
|
|
3288
3329
|
paint.dataset.pptxAnimationLayer = "background";
|
|
3289
3330
|
el.appendChild(paint);
|
|
3290
3331
|
}
|
|
3291
3332
|
if (context.interactive && !context.presenting) {
|
|
3292
|
-
const hitTargetStyle =
|
|
3333
|
+
const hitTargetStyle = chunkRI4YZ4AG_cjs.elementHitTargetStyle(element);
|
|
3293
3334
|
if (hitTargetStyle) {
|
|
3294
|
-
const hitTarget =
|
|
3335
|
+
const hitTarget = chunkXTYRGVT5_cjs.createEl(context.document, "div", void 0, hitTargetStyle);
|
|
3295
3336
|
hitTarget.setAttribute("aria-hidden", "true");
|
|
3296
3337
|
hitTarget.setAttribute("data-pptx-hit-target", "true");
|
|
3297
3338
|
el.appendChild(hitTarget);
|
|
@@ -3332,8 +3373,8 @@ var renderTextShapeElement = (element, zIndex, context) => {
|
|
|
3332
3373
|
} else if (warped) {
|
|
3333
3374
|
el.appendChild(warped);
|
|
3334
3375
|
} else {
|
|
3335
|
-
const linkedSegments =
|
|
3336
|
-
const paragraphs =
|
|
3376
|
+
const linkedSegments = chunkRI4YZ4AG_cjs.getOverflowSegments(element, context.slide?.elements);
|
|
3377
|
+
const paragraphs = chunkRI4YZ4AG_cjs.buildParagraphs(element, context.fieldContext, linkedSegments);
|
|
3337
3378
|
const hasText = paragraphs.some((p) => p.runs.length > 0 || p.bulletMarker !== void 0);
|
|
3338
3379
|
if (hasText) {
|
|
3339
3380
|
el.appendChild(
|
|
@@ -3344,9 +3385,9 @@ var renderTextShapeElement = (element, zIndex, context) => {
|
|
|
3344
3385
|
);
|
|
3345
3386
|
} else {
|
|
3346
3387
|
const mode = context.interactive && !context.presenting ? "edit" : "present";
|
|
3347
|
-
const prompt =
|
|
3388
|
+
const prompt = chunkRI4YZ4AG_cjs.placeholderPromptDescriptor(element, mode);
|
|
3348
3389
|
if (prompt) {
|
|
3349
|
-
const hint =
|
|
3390
|
+
const hint = chunkXTYRGVT5_cjs.createEl(context.document, "div", "pptxv-placeholder-prompt", {
|
|
3350
3391
|
...getTextBlockStyle(element),
|
|
3351
3392
|
...prompt.style
|
|
3352
3393
|
});
|
|
@@ -3360,7 +3401,7 @@ var renderTextShapeElement = (element, zIndex, context) => {
|
|
|
3360
3401
|
|
|
3361
3402
|
// src/pptx/dom/elements/index.ts
|
|
3362
3403
|
function createDefaultRegistry() {
|
|
3363
|
-
const registry =
|
|
3404
|
+
const registry = chunkXTYRGVT5_cjs.createElementRendererRegistry();
|
|
3364
3405
|
registry.register("text", renderTextShapeElement);
|
|
3365
3406
|
registry.register("shape", renderTextShapeElement);
|
|
3366
3407
|
registry.register("image", renderImageElement);
|
|
@@ -3512,111 +3553,111 @@ async function resolveImageUrls(handler, slides) {
|
|
|
3512
3553
|
|
|
3513
3554
|
Object.defineProperty(exports, "SMARTART_SVG_STYLE", {
|
|
3514
3555
|
enumerable: true,
|
|
3515
|
-
get: function () { return
|
|
3556
|
+
get: function () { return chunkXTYRGVT5_cjs.SMARTART_SVG_STYLE; }
|
|
3516
3557
|
});
|
|
3517
3558
|
Object.defineProperty(exports, "appendSvgTextLines", {
|
|
3518
3559
|
enumerable: true,
|
|
3519
|
-
get: function () { return
|
|
3560
|
+
get: function () { return chunkXTYRGVT5_cjs.appendSvgTextLines; }
|
|
3520
3561
|
});
|
|
3521
3562
|
Object.defineProperty(exports, "applyStyleMap", {
|
|
3522
3563
|
enumerable: true,
|
|
3523
|
-
get: function () { return
|
|
3564
|
+
get: function () { return chunkXTYRGVT5_cjs.applyStyleMap; }
|
|
3524
3565
|
});
|
|
3525
3566
|
Object.defineProperty(exports, "applyThreeViewTextStyle", {
|
|
3526
3567
|
enumerable: true,
|
|
3527
|
-
get: function () { return
|
|
3568
|
+
get: function () { return chunkXTYRGVT5_cjs.applyThreeViewTextStyle; }
|
|
3528
3569
|
});
|
|
3529
3570
|
Object.defineProperty(exports, "buildSmartArtFallbackSvg", {
|
|
3530
3571
|
enumerable: true,
|
|
3531
|
-
get: function () { return
|
|
3572
|
+
get: function () { return chunkXTYRGVT5_cjs.buildSmartArtFallbackSvg; }
|
|
3532
3573
|
});
|
|
3533
3574
|
Object.defineProperty(exports, "buildSmartArtInsertPreview", {
|
|
3534
3575
|
enumerable: true,
|
|
3535
|
-
get: function () { return
|
|
3576
|
+
get: function () { return chunkXTYRGVT5_cjs.buildSmartArtInsertPreview; }
|
|
3536
3577
|
});
|
|
3537
3578
|
Object.defineProperty(exports, "buildSvgGradientDefs", {
|
|
3538
3579
|
enumerable: true,
|
|
3539
|
-
get: function () { return
|
|
3580
|
+
get: function () { return chunkXTYRGVT5_cjs.buildSvgGradientDefs; }
|
|
3540
3581
|
});
|
|
3541
3582
|
Object.defineProperty(exports, "collectThreeViews", {
|
|
3542
3583
|
enumerable: true,
|
|
3543
|
-
get: function () { return
|
|
3584
|
+
get: function () { return chunkXTYRGVT5_cjs.collectThreeViews; }
|
|
3544
3585
|
});
|
|
3545
3586
|
Object.defineProperty(exports, "composeTransforms", {
|
|
3546
3587
|
enumerable: true,
|
|
3547
|
-
get: function () { return
|
|
3588
|
+
get: function () { return chunkXTYRGVT5_cjs.composeTransforms; }
|
|
3548
3589
|
});
|
|
3549
3590
|
Object.defineProperty(exports, "createEl", {
|
|
3550
3591
|
enumerable: true,
|
|
3551
|
-
get: function () { return
|
|
3592
|
+
get: function () { return chunkXTYRGVT5_cjs.createEl; }
|
|
3552
3593
|
});
|
|
3553
3594
|
Object.defineProperty(exports, "createElementRendererRegistry", {
|
|
3554
3595
|
enumerable: true,
|
|
3555
|
-
get: function () { return
|
|
3596
|
+
get: function () { return chunkXTYRGVT5_cjs.createElementRendererRegistry; }
|
|
3556
3597
|
});
|
|
3557
3598
|
Object.defineProperty(exports, "createSvgEl", {
|
|
3558
3599
|
enumerable: true,
|
|
3559
|
-
get: function () { return
|
|
3600
|
+
get: function () { return chunkXTYRGVT5_cjs.createSvgEl; }
|
|
3560
3601
|
});
|
|
3561
3602
|
Object.defineProperty(exports, "enableSmartArtEditing", {
|
|
3562
3603
|
enumerable: true,
|
|
3563
|
-
get: function () { return
|
|
3604
|
+
get: function () { return chunkXTYRGVT5_cjs.enableSmartArtEditing; }
|
|
3564
3605
|
});
|
|
3565
3606
|
Object.defineProperty(exports, "isChart3DEditable", {
|
|
3566
3607
|
enumerable: true,
|
|
3567
|
-
get: function () { return
|
|
3608
|
+
get: function () { return chunkXTYRGVT5_cjs.isChart3DEditable; }
|
|
3568
3609
|
});
|
|
3569
3610
|
Object.defineProperty(exports, "mountThreeViewInto", {
|
|
3570
3611
|
enumerable: true,
|
|
3571
|
-
get: function () { return
|
|
3612
|
+
get: function () { return chunkXTYRGVT5_cjs.mountThreeViewInto; }
|
|
3572
3613
|
});
|
|
3573
3614
|
Object.defineProperty(exports, "renderSmartArt3DElement", {
|
|
3574
3615
|
enumerable: true,
|
|
3575
|
-
get: function () { return
|
|
3616
|
+
get: function () { return chunkXTYRGVT5_cjs.renderSmartArt3DElement; }
|
|
3576
3617
|
});
|
|
3577
3618
|
Object.defineProperty(exports, "renderSmartArtElement", {
|
|
3578
3619
|
enumerable: true,
|
|
3579
|
-
get: function () { return
|
|
3620
|
+
get: function () { return chunkXTYRGVT5_cjs.renderSmartArtElement; }
|
|
3580
3621
|
});
|
|
3581
3622
|
Object.defineProperty(exports, "renderSmartArtSvg", {
|
|
3582
3623
|
enumerable: true,
|
|
3583
|
-
get: function () { return
|
|
3624
|
+
get: function () { return chunkXTYRGVT5_cjs.renderSmartArtSvg; }
|
|
3584
3625
|
});
|
|
3585
3626
|
Object.defineProperty(exports, "rendering3DFlagsOf", {
|
|
3586
3627
|
enumerable: true,
|
|
3587
|
-
get: function () { return
|
|
3628
|
+
get: function () { return chunkXTYRGVT5_cjs.rendering3DFlagsOf; }
|
|
3588
3629
|
});
|
|
3589
3630
|
Object.defineProperty(exports, "selectedChartPartOf", {
|
|
3590
3631
|
enumerable: true,
|
|
3591
|
-
get: function () { return
|
|
3632
|
+
get: function () { return chunkXTYRGVT5_cjs.selectedChartPartOf; }
|
|
3592
3633
|
});
|
|
3593
3634
|
Object.defineProperty(exports, "setSvgAttrs", {
|
|
3594
3635
|
enumerable: true,
|
|
3595
|
-
get: function () { return
|
|
3636
|
+
get: function () { return chunkXTYRGVT5_cjs.setSvgAttrs; }
|
|
3596
3637
|
});
|
|
3597
3638
|
Object.defineProperty(exports, "takeReusableThreeView", {
|
|
3598
3639
|
enumerable: true,
|
|
3599
|
-
get: function () { return
|
|
3640
|
+
get: function () { return chunkXTYRGVT5_cjs.takeReusableThreeView; }
|
|
3600
3641
|
});
|
|
3601
3642
|
Object.defineProperty(exports, "wireChartThreeViewEvents", {
|
|
3602
3643
|
enumerable: true,
|
|
3603
|
-
get: function () { return
|
|
3644
|
+
get: function () { return chunkXTYRGVT5_cjs.wireChartThreeViewEvents; }
|
|
3604
3645
|
});
|
|
3605
3646
|
Object.defineProperty(exports, "withReusableThreeViews", {
|
|
3606
3647
|
enumerable: true,
|
|
3607
|
-
get: function () { return
|
|
3648
|
+
get: function () { return chunkXTYRGVT5_cjs.withReusableThreeViews; }
|
|
3608
3649
|
});
|
|
3609
3650
|
Object.defineProperty(exports, "buildEmbeddedFontStyles", {
|
|
3610
3651
|
enumerable: true,
|
|
3611
|
-
get: function () { return
|
|
3652
|
+
get: function () { return chunkRI4YZ4AG_cjs.buildEmbeddedFontStyles; }
|
|
3612
3653
|
});
|
|
3613
3654
|
Object.defineProperty(exports, "buildFieldSubstitutionContext", {
|
|
3614
3655
|
enumerable: true,
|
|
3615
|
-
get: function () { return
|
|
3656
|
+
get: function () { return chunkRI4YZ4AG_cjs.buildFieldSubstitutionContext; }
|
|
3616
3657
|
});
|
|
3617
3658
|
Object.defineProperty(exports, "releasePptxRenderCaches", {
|
|
3618
3659
|
enumerable: true,
|
|
3619
|
-
get: function () { return
|
|
3660
|
+
get: function () { return chunkRI4YZ4AG_cjs.releasePptxRenderCaches; }
|
|
3620
3661
|
});
|
|
3621
3662
|
Object.defineProperty(exports, "renderChartViewModelSvg", {
|
|
3622
3663
|
enumerable: true,
|
|
@@ -3644,6 +3685,7 @@ exports.getShapeFillStrokeStyle = getShapeFillStrokeStyle;
|
|
|
3644
3685
|
exports.getTextBlockStyle = getTextBlockStyle;
|
|
3645
3686
|
exports.glyphOutlineFontCache = glyphOutlineFontCache;
|
|
3646
3687
|
exports.loadPresentation = loadPresentation;
|
|
3688
|
+
exports.markAbuttingEdgeBleed = markAbuttingEdgeBleed;
|
|
3647
3689
|
exports.reRenderPresentationElements = reRenderPresentationElements;
|
|
3648
3690
|
exports.registerExtraRenderers = registerExtraRenderers;
|
|
3649
3691
|
exports.registerRichMediaRenderers = registerRichMediaRenderers;
|
|
@@ -3676,4 +3718,5 @@ exports.renderZoomElement = renderZoomElement;
|
|
|
3676
3718
|
exports.resolveChartPalette = resolveChartPalette2;
|
|
3677
3719
|
exports.resolveMediaUrls = resolveMediaUrls;
|
|
3678
3720
|
exports.revokeBlobUrls = revokeBlobUrls;
|
|
3721
|
+
exports.stripAbuttingEdgeBleeds = stripAbuttingEdgeBleeds;
|
|
3679
3722
|
exports.wireMediaFullscreenOverlay = wireMediaFullscreenOverlay;
|