ooxml-ui 1.42.0 → 1.44.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 +0 -1
- package/dist/chart/design-galleries.d.ts +1 -0
- package/dist/chart/format-pane-3d.d.ts +0 -1
- package/dist/chart/format-pane-advanced-intent.d.ts +0 -1
- package/dist/chart/format-pane-analysis.d.ts +0 -1
- package/dist/chart/format-pane-axis.d.ts +0 -1
- package/dist/chart/format-pane-common.d.ts +0 -1
- package/dist/chart/format-pane-effects.d.ts +0 -1
- package/dist/chart/format-pane-fields.d.ts +0 -1
- package/dist/chart/format-pane-fill-kinds.d.ts +0 -1
- package/dist/chart/format-pane-fill-line.d.ts +0 -1
- package/dist/chart/format-pane-locales/es.d.ts +0 -1
- package/dist/chart/format-pane-model.d.ts +0 -1
- package/dist/chart/format-pane-options.d.ts +0 -1
- package/dist/chart/format-pane-space.d.ts +0 -1
- package/dist/chart/format-pane-text.d.ts +0 -1
- package/dist/chrome/find-bar.d.ts +1 -2
- package/dist/chrome/status-bar.d.ts +2 -0
- package/dist/chrome/status-bar.d.ts.map +1 -1
- package/dist/{chunk-4RFFOPBU.js → chunk-2ZYRZANE.js} +1 -1
- package/dist/{chunk-Y6KY34VD.js → chunk-I57TCM2Q.js} +57 -11
- package/dist/{chunk-TTT5IQBU.js → chunk-JWBWLGEY.js} +2 -2
- package/dist/{chunk-LBIABP4I.js → chunk-M4ARYL3L.js} +1 -1
- package/dist/{chunk-7L4NP4HN.js → chunk-NH5ZSZMI.js} +1 -1
- package/dist/controls.d.ts +1 -1
- package/dist/controls.d.ts.map +1 -1
- package/dist/controls.js +1 -1
- package/dist/dialog/message-dialogs.d.ts.map +1 -1
- package/dist/docx/locales/en-app.d.ts +5 -0
- package/dist/docx/locales/en.d.ts +5 -0
- package/dist/docx/localization-strings.d.ts +5 -0
- package/dist/docx/title-bar.d.ts +2 -1
- package/dist/docx.js +40 -11
- package/dist/embedding/region-host.d.ts +0 -1
- package/dist/files/save-progress-label.d.ts +22 -0
- package/dist/files/save-progress-label.d.ts.map +1 -0
- package/dist/fonts/custom-fonts.d.ts +0 -1
- package/dist/form/color-swatches.d.ts +0 -1
- package/dist/image-native-size.d.ts +0 -1
- package/dist/index.js +4 -4
- package/dist/picture-artistic-filters.d.ts +0 -1
- package/dist/picture-artistic-preview.d.ts +0 -1
- package/dist/picture-effects.d.ts +1 -0
- package/dist/picture-paint.d.ts +0 -1
- package/dist/picture-view.d.ts +1 -0
- package/dist/pptx/{chart-3d-view-scene-CGLU6ISD.mjs → chart-3d-view-scene-D6OJTZYC.mjs} +3 -2
- package/dist/pptx/{chart-3d-view-scene-C7QUQTXD.cjs → chart-3d-view-scene-PC2RUBL4.cjs} +38 -37
- package/dist/pptx/{chunk-JP26TA3Q.cjs → chunk-2GDYTHUY.cjs} +12 -12
- package/dist/pptx/{chunk-YZWKNFPU.cjs → chunk-2SO3BL67.cjs} +2706 -160
- package/dist/pptx/{chunk-C7G2CSU2.mjs → chunk-BNPTGOEZ.mjs} +3 -3
- package/dist/pptx/{chunk-OPLK7GPB.mjs → chunk-D3DQS2J2.mjs} +7908 -7828
- package/dist/pptx/chunk-EDIAPF6J.mjs +135 -0
- package/dist/pptx/{chunk-DH6EKOVI.mjs → chunk-H6M3FKNG.mjs} +1 -1
- package/dist/pptx/{chunk-CK6RYGB4.cjs → chunk-HB6CH2FF.cjs} +3 -126
- package/dist/pptx/chunk-HWJKBKCW.cjs +147 -0
- package/dist/pptx/{chunk-BA4CJI4U.mjs → chunk-KYTG7WNC.mjs} +3 -115
- package/dist/pptx/{chunk-RI4YZ4AG.cjs → chunk-LK35P6RE.cjs} +10303 -10275
- package/dist/pptx/{chunk-TW5UQCZS.mjs → chunk-TDALHSYV.mjs} +2605 -168
- package/dist/pptx/{chunk-SF3MYUTD.mjs → chunk-W2QJX2ON.mjs} +5 -0
- package/dist/pptx/{chunk-XTYRGVT5.cjs → chunk-ZH35NTNU.cjs} +49 -49
- package/dist/pptx/{chunk-WNDGU3GQ.cjs → chunk-ZHVKGGLQ.cjs} +5 -0
- package/dist/pptx/dom/elements/connector.d.ts.map +1 -1
- package/dist/pptx/dom/elements/equation.d.ts.map +1 -1
- package/dist/pptx/dom/elements/media.d.ts.map +1 -1
- package/dist/pptx/dom/elements/ole.d.ts.map +1 -1
- package/dist/pptx/dom/elements/reflection-mirror-content.d.ts.map +1 -1
- package/dist/pptx/dom/elements/shape-filter-defs.d.ts +5 -0
- package/dist/pptx/dom/elements/shape-filter-defs.d.ts.map +1 -1
- package/dist/pptx/dom/elements/table.d.ts.map +1 -1
- package/dist/pptx/dom/elements/text-shape.d.ts.map +1 -1
- package/dist/pptx/dom/elements/text-warp.d.ts.map +1 -1
- package/dist/pptx/dom/index.cjs +527 -449
- package/dist/pptx/dom/index.mjs +116 -39
- package/dist/pptx/export/html2canvas-clone.cjs +7 -6
- package/dist/pptx/export/html2canvas-clone.mjs +2 -1
- package/dist/pptx/i18n/index.cjs +6 -6
- package/dist/pptx/i18n/index.mjs +1 -1
- package/dist/pptx/i18n/translations-en.d.ts.map +1 -1
- package/dist/pptx/index.cjs +3844 -3659
- package/dist/pptx/index.mjs +6 -5
- package/dist/pptx/render/chart-combo-stock.cjs +4 -3
- package/dist/pptx/render/chart-combo-stock.mjs +2 -1
- package/dist/pptx/render/chart-overlays.cjs +8 -7
- package/dist/pptx/render/chart-overlays.mjs +2 -1
- package/dist/pptx/render/chart-surface-treemap.cjs +5 -4
- package/dist/pptx/render/chart-surface-treemap.mjs +2 -1
- package/dist/pptx/render/chart-view-model.cjs +45 -44
- package/dist/pptx/render/chart-view-model.mjs +2 -1
- package/dist/pptx/render/chart-waterfall-map.cjs +7 -6
- package/dist/pptx/render/chart-waterfall-map.mjs +2 -1
- package/dist/pptx/render/connector-dash.d.ts +2 -1
- package/dist/pptx/render/connector-dash.d.ts.map +1 -1
- package/dist/pptx/render/connector-path.d.ts +1 -1
- package/dist/pptx/render/connector-path.d.ts.map +1 -1
- package/dist/pptx/render/connector-style.d.ts +4 -2
- package/dist/pptx/render/connector-style.d.ts.map +1 -1
- package/dist/pptx/render/controller/index.d.ts +2 -0
- package/dist/pptx/render/controller/index.d.ts.map +1 -1
- package/dist/pptx/render/controller/save-progress-controller.d.ts +56 -0
- package/dist/pptx/render/controller/save-progress-controller.d.ts.map +1 -0
- package/dist/pptx/render/dash-path-start.d.ts +38 -0
- package/dist/pptx/render/dash-path-start.d.ts.map +1 -0
- package/dist/pptx/render/dash-pattern.d.ts +61 -0
- package/dist/pptx/render/dash-pattern.d.ts.map +1 -0
- package/dist/pptx/render/device-pixel-exact.d.ts +34 -0
- package/dist/pptx/render/device-pixel-exact.d.ts.map +1 -0
- package/dist/pptx/render/device-pixel-group.d.ts +42 -0
- package/dist/pptx/render/device-pixel-group.d.ts.map +1 -0
- package/dist/pptx/render/device-pixel-stroke.d.ts +21 -3
- package/dist/pptx/render/device-pixel-stroke.d.ts.map +1 -1
- package/dist/pptx/render/element-style-transform.d.ts +6 -5
- package/dist/pptx/render/element-style-transform.d.ts.map +1 -1
- package/dist/pptx/render/embedded-fonts-sheet.d.ts +31 -0
- package/dist/pptx/render/embedded-fonts-sheet.d.ts.map +1 -0
- package/dist/pptx/render/equation-box-style.d.ts +23 -0
- package/dist/pptx/render/equation-box-style.d.ts.map +1 -0
- package/dist/pptx/render/fill-style.d.ts +16 -1
- package/dist/pptx/render/fill-style.d.ts.map +1 -1
- package/dist/pptx/render/font-line-gap.d.ts +3 -0
- package/dist/pptx/render/font-line-gap.d.ts.map +1 -0
- package/dist/pptx/render/font-settled.d.ts.map +1 -1
- package/dist/pptx/render/gradient-svg-image.d.ts +20 -0
- package/dist/pptx/render/gradient-svg-image.d.ts.map +1 -0
- package/dist/pptx/render/group-fill.d.ts.map +1 -1
- package/dist/pptx/render/hollow-shape-hit-test.d.ts +23 -1
- package/dist/pptx/render/hollow-shape-hit-test.d.ts.map +1 -1
- package/dist/pptx/render/index.d.ts +12 -0
- package/dist/pptx/render/index.d.ts.map +1 -1
- package/dist/pptx/render/linked-text-box-overflow.d.ts +20 -5
- package/dist/pptx/render/linked-text-box-overflow.d.ts.map +1 -1
- package/dist/pptx/render/media-control-bar.d.ts +41 -0
- package/dist/pptx/render/media-control-bar.d.ts.map +1 -0
- package/dist/pptx/render/media-playback.d.ts +6 -6
- package/dist/pptx/render/media-playback.d.ts.map +1 -1
- package/dist/pptx/render/morph-animation.d.ts.map +1 -1
- package/dist/pptx/render/morph-carry.d.ts.map +1 -1
- package/dist/pptx/render/morph-connector-carry.d.ts +43 -0
- package/dist/pptx/render/morph-connector-carry.d.ts.map +1 -0
- package/dist/pptx/render/morph-effect-carry.d.ts +2 -0
- package/dist/pptx/render/morph-effect-carry.d.ts.map +1 -1
- package/dist/pptx/render/morph-effect-silhouette.d.ts +23 -0
- package/dist/pptx/render/morph-effect-silhouette.d.ts.map +1 -0
- package/dist/pptx/render/morph-geometry-key.d.ts.map +1 -1
- package/dist/pptx/render/morph-line-carry.d.ts +27 -0
- package/dist/pptx/render/morph-line-carry.d.ts.map +1 -1
- package/dist/pptx/render/morph-line-ends.d.ts +27 -0
- package/dist/pptx/render/morph-line-ends.d.ts.map +1 -0
- package/dist/pptx/render/morph-line-reach.d.ts +72 -0
- package/dist/pptx/render/morph-line-reach.d.ts.map +1 -0
- package/dist/pptx/render/morph-overlay-order.d.ts.map +1 -1
- package/dist/pptx/render/morph-plan-carry.d.ts +41 -0
- package/dist/pptx/render/morph-plan-carry.d.ts.map +1 -0
- package/dist/pptx/render/morph-plan-channels.d.ts +30 -0
- package/dist/pptx/render/morph-plan-channels.d.ts.map +1 -0
- package/dist/pptx/render/morph-plan-crossfade.d.ts +23 -0
- package/dist/pptx/render/morph-plan-crossfade.d.ts.map +1 -0
- package/dist/pptx/render/morph-plan-css.d.ts +55 -0
- package/dist/pptx/render/morph-plan-css.d.ts.map +1 -0
- package/dist/pptx/render/morph-plan-lift.d.ts +44 -0
- package/dist/pptx/render/morph-plan-lift.d.ts.map +1 -0
- package/dist/pptx/render/morph-plan-overlay.d.ts +62 -0
- package/dist/pptx/render/morph-plan-overlay.d.ts.map +1 -0
- package/dist/pptx/render/morph-plan-types.d.ts +208 -0
- package/dist/pptx/render/morph-plan-types.d.ts.map +1 -0
- package/dist/pptx/render/morph-plan.d.ts +4 -252
- package/dist/pptx/render/morph-plan.d.ts.map +1 -1
- package/dist/pptx/render/morph-predicates.d.ts.map +1 -1
- package/dist/pptx/render/morph-shape-carry.d.ts.map +1 -1
- package/dist/pptx/render/paragraph-baseline.d.ts +39 -0
- package/dist/pptx/render/paragraph-baseline.d.ts.map +1 -1
- package/dist/pptx/render/path-gradient-rect.d.ts +1 -1
- package/dist/pptx/render/path-gradient-rect.d.ts.map +1 -1
- package/dist/pptx/render/shape-geometry-base.d.ts +73 -0
- package/dist/pptx/render/shape-geometry-base.d.ts.map +1 -0
- package/dist/pptx/render/shape-geometry-cascade.d.ts +7 -37
- package/dist/pptx/render/shape-geometry-cascade.d.ts.map +1 -1
- package/dist/pptx/render/silhouette-effects.d.ts +118 -0
- package/dist/pptx/render/silhouette-effects.d.ts.map +1 -0
- package/dist/pptx/render/silhouette-fill-layer.d.ts +19 -0
- package/dist/pptx/render/silhouette-fill-layer.d.ts.map +1 -0
- package/dist/pptx/render/silhouette-morph-refresh.d.ts +6 -0
- package/dist/pptx/render/silhouette-morph-refresh.d.ts.map +1 -0
- package/dist/pptx/render/silhouette-morph-registry.d.ts +36 -0
- package/dist/pptx/render/silhouette-morph-registry.d.ts.map +1 -0
- package/dist/pptx/render/status-bar-state.d.ts +7 -1
- package/dist/pptx/render/status-bar-state.d.ts.map +1 -1
- package/dist/pptx/render/stroke-only-preset.d.ts +22 -0
- package/dist/pptx/render/stroke-only-preset.d.ts.map +1 -1
- package/dist/pptx/render/stroke-outline.d.ts.map +1 -1
- package/dist/pptx/render/subpath-fill-overlay.d.ts +11 -5
- package/dist/pptx/render/subpath-fill-overlay.d.ts.map +1 -1
- package/dist/pptx/render/subpath-geometry.d.ts +38 -0
- package/dist/pptx/render/subpath-geometry.d.ts.map +1 -0
- package/dist/pptx/render/svg-gradient-paint.d.ts.map +1 -1
- package/dist/pptx/render/svg-id-scope.d.ts +8 -0
- package/dist/pptx/render/svg-id-scope.d.ts.map +1 -0
- package/dist/pptx/render/table-cell-baseline.d.ts +36 -0
- package/dist/pptx/render/table-cell-baseline.d.ts.map +1 -0
- package/dist/pptx/render/table-cell-border-inset.d.ts +21 -0
- package/dist/pptx/render/table-cell-border-inset.d.ts.map +1 -0
- package/dist/pptx/render/table-cell-css.d.ts.map +1 -1
- package/dist/pptx/render/table-cell-paragraphs.d.ts +13 -1
- package/dist/pptx/render/table-cell-paragraphs.d.ts.map +1 -1
- package/dist/pptx/render/table-style-bg-settle.d.ts +43 -0
- package/dist/pptx/render/table-style-bg-settle.d.ts.map +1 -0
- package/dist/pptx/render/table-style-bg-span.d.ts +26 -0
- package/dist/pptx/render/table-style-bg-span.d.ts.map +1 -0
- package/dist/pptx/render/table-style-borders.d.ts.map +1 -1
- package/dist/pptx/render/table-style-builtins-data.d.ts +1 -1
- package/dist/pptx/render/table-style-builtins-data.d.ts.map +1 -1
- package/dist/pptx/render/table-style-fill.d.ts.map +1 -1
- package/dist/pptx/render/table-style-shadow.d.ts +20 -0
- package/dist/pptx/render/table-style-shadow.d.ts.map +1 -0
- package/dist/pptx/render/table-style-theme-refs.d.ts.map +1 -1
- package/dist/pptx/render/table-style.d.ts +9 -0
- package/dist/pptx/render/table-style.d.ts.map +1 -1
- package/dist/pptx/render/text-block-style.d.ts +5 -0
- package/dist/pptx/render/text-block-style.d.ts.map +1 -1
- package/dist/pptx/render/text-field-substitution.d.ts +13 -14
- package/dist/pptx/render/text-field-substitution.d.ts.map +1 -1
- package/dist/pptx/render/text-paragraphs.d.ts +11 -1
- package/dist/pptx/render/text-paragraphs.d.ts.map +1 -1
- package/dist/pptx/render/text-warp-arch.d.ts +25 -0
- package/dist/pptx/render/text-warp-arch.d.ts.map +1 -0
- package/dist/pptx/render/text-warp-closed-paths.d.ts +53 -0
- package/dist/pptx/render/text-warp-closed-paths.d.ts.map +1 -0
- package/dist/pptx/render/text-warp-envelope-curves.d.ts.map +1 -1
- package/dist/pptx/render/text-warp-envelope-map.d.ts +12 -0
- package/dist/pptx/render/text-warp-envelope-map.d.ts.map +1 -1
- package/dist/pptx/render/text-warp-glyph-outline.d.ts.map +1 -1
- package/dist/pptx/render/text-warp-polygon-clip.d.ts +21 -0
- package/dist/pptx/render/text-warp-polygon-clip.d.ts.map +1 -0
- package/dist/pptx/render/text-warp-preset-definitions-extra.d.ts +21 -0
- package/dist/pptx/render/text-warp-preset-definitions-extra.d.ts.map +1 -0
- package/dist/pptx/render/text-warp-preset-definitions.d.ts +19 -0
- package/dist/pptx/render/text-warp-preset-definitions.d.ts.map +1 -1
- package/dist/pptx/render/text-warp-preset-sampler.d.ts.map +1 -1
- package/dist/pptx/render/text-warp-run-paint.d.ts +19 -0
- package/dist/pptx/render/text-warp-run-paint.d.ts.map +1 -0
- package/dist/pptx/render/text-warp.d.ts.map +1 -1
- package/dist/pptx/render/visual-effects.d.ts +9 -0
- package/dist/pptx/render/visual-effects.d.ts.map +1 -1
- package/dist/pptx/{smartart-insert-preview-P4NV2FRD.cjs → smartart-insert-preview-55QCEISC.cjs} +8 -7
- package/dist/pptx/{smartart-insert-preview-AE7D4I7L.mjs → smartart-insert-preview-GPBTE3HU.mjs} +7 -6
- package/dist/pptx/web-components/status-bar.d.ts.map +1 -1
- package/dist/render-cache.d.ts +0 -1
- package/dist/ribbon/ribbon-group.d.ts +1 -2
- package/dist/ribbon/svg-preview.d.ts +0 -1
- package/dist/teams.js +2 -2
- package/dist/visio/title-bar.d.ts +3 -1
- package/dist/visio/viewer-backstage.d.ts +2 -0
- package/dist/visio/viewer-file-commands.d.ts +2 -2
- package/dist/visio.js +75 -20
- package/dist/xlsx/editor-files.d.ts +1 -1
- package/dist/xlsx/title-bar.d.ts +2 -1
- package/dist/xlsx.js +21 -12
- package/package.json +2 -2
package/dist/pptx/dom/index.cjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
3
|
+
var chunkZH35NTNU_cjs = require('../chunk-ZH35NTNU.cjs');
|
|
4
|
+
var chunkLK35P6RE_cjs = require('../chunk-LK35P6RE.cjs');
|
|
5
|
+
var chunk2GDYTHUY_cjs = require('../chunk-2GDYTHUY.cjs');
|
|
6
6
|
require('../chunk-XOAXPD2W.cjs');
|
|
7
7
|
require('../chunk-W3X2UVYQ.cjs');
|
|
8
8
|
require('../chunk-WSTWYZFM.cjs');
|
|
@@ -22,11 +22,12 @@ require('../chunk-FFWLDANS.cjs');
|
|
|
22
22
|
require('../chunk-ZJFN5POF.cjs');
|
|
23
23
|
require('../chunk-OJFD3SHS.cjs');
|
|
24
24
|
require('../chunk-USBRSEJK.cjs');
|
|
25
|
-
var
|
|
25
|
+
var chunk2SO3BL67_cjs = require('../chunk-2SO3BL67.cjs');
|
|
26
26
|
var chunkFOE75Z6N_cjs = require('../chunk-FOE75Z6N.cjs');
|
|
27
27
|
var chunkNTXHQHCS_cjs = require('../chunk-NTXHQHCS.cjs');
|
|
28
|
-
|
|
28
|
+
require('../chunk-HB6CH2FF.cjs');
|
|
29
29
|
require('../chunk-G4WRLFMJ.cjs');
|
|
30
|
+
var chunkHWJKBKCW_cjs = require('../chunk-HWJKBKCW.cjs');
|
|
30
31
|
require('../chunk-HJ3JZXOL.cjs');
|
|
31
32
|
require('../chunk-73IDQGYI.cjs');
|
|
32
33
|
var chunk3CYWRMYZ_cjs = require('../chunk-3CYWRMYZ.cjs');
|
|
@@ -36,21 +37,21 @@ require('../chunk-UPN5FFKP.cjs');
|
|
|
36
37
|
require('../chunk-FQUX6AUU.cjs');
|
|
37
38
|
require('../chunk-XZSGVMRN.cjs');
|
|
38
39
|
var chunkU47LRWDT_cjs = require('../chunk-U47LRWDT.cjs');
|
|
39
|
-
var
|
|
40
|
+
var chunkZHVKGGLQ_cjs = require('../chunk-ZHVKGGLQ.cjs');
|
|
40
41
|
require('../chunk-3RIGT7H6.cjs');
|
|
41
42
|
require('../chunk-PBZWDEXQ.cjs');
|
|
42
43
|
var pptx = require('ooxml-core/pptx');
|
|
43
44
|
|
|
44
45
|
// src/pptx/dom/activex-controls-overlay.ts
|
|
45
46
|
function buildActiveXControlsOverlay(doc, controls, canvasSize) {
|
|
46
|
-
const overlay =
|
|
47
|
+
const overlay = chunkZH35NTNU_cjs.createEl(doc, "div", "pptxv-activex-overlay", {
|
|
47
48
|
position: "absolute",
|
|
48
49
|
inset: "0",
|
|
49
50
|
pointerEvents: "none",
|
|
50
51
|
zIndex: "40"
|
|
51
52
|
});
|
|
52
53
|
controls.forEach((control, index) => {
|
|
53
|
-
const view =
|
|
54
|
+
const view = chunkLK35P6RE_cjs.getActiveXControlOverlayView(control, canvasSize, index);
|
|
54
55
|
const style = {
|
|
55
56
|
position: "absolute",
|
|
56
57
|
left: `${view.left}px`,
|
|
@@ -59,7 +60,7 @@ function buildActiveXControlsOverlay(doc, controls, canvasSize) {
|
|
|
59
60
|
height: `${view.height}px`
|
|
60
61
|
};
|
|
61
62
|
if (view.className === "image" && view.imageUrl) {
|
|
62
|
-
const img =
|
|
63
|
+
const img = chunkZH35NTNU_cjs.createEl(doc, "img", "pptxv-activex-overlay-image", style);
|
|
63
64
|
img.src = view.imageUrl;
|
|
64
65
|
img.alt = view.label;
|
|
65
66
|
img.setAttribute("draggable", "false");
|
|
@@ -67,7 +68,7 @@ function buildActiveXControlsOverlay(doc, controls, canvasSize) {
|
|
|
67
68
|
overlay.appendChild(img);
|
|
68
69
|
return;
|
|
69
70
|
}
|
|
70
|
-
const badge =
|
|
71
|
+
const badge = chunkZH35NTNU_cjs.createEl(doc, "div", "pptxv-activex-overlay-placeholder", style);
|
|
71
72
|
badge.title = `ActiveX control: ${view.label} (interactive controls are not supported in the viewer)`;
|
|
72
73
|
badge.textContent = view.label;
|
|
73
74
|
overlay.appendChild(badge);
|
|
@@ -80,25 +81,25 @@ function appendCommentMarkers(doc, stage, comments, canvasSize, t, onMarkerClick
|
|
|
80
81
|
if (comments.length === 0) {
|
|
81
82
|
return;
|
|
82
83
|
}
|
|
83
|
-
const overlay =
|
|
84
|
+
const overlay = chunkZH35NTNU_cjs.createEl(doc, "div", "pptxv-comment-markers", {
|
|
84
85
|
position: "absolute",
|
|
85
86
|
inset: "0",
|
|
86
87
|
pointerEvents: "none",
|
|
87
88
|
zIndex: "45"
|
|
88
89
|
});
|
|
89
|
-
const markers =
|
|
90
|
+
const markers = chunkLK35P6RE_cjs.buildCommentMarkers(
|
|
90
91
|
comments,
|
|
91
92
|
canvasSize.width,
|
|
92
93
|
canvasSize.height,
|
|
93
94
|
t("pptx.comments.unknownAuthor")
|
|
94
95
|
);
|
|
95
96
|
for (const marker of markers) {
|
|
96
|
-
const dot =
|
|
97
|
+
const dot = chunkZH35NTNU_cjs.createEl(doc, "button", "pptxv-comment-marker", {
|
|
97
98
|
position: "absolute",
|
|
98
|
-
left: `${marker.x -
|
|
99
|
-
top: `${marker.y -
|
|
100
|
-
width: `${
|
|
101
|
-
height: `${
|
|
99
|
+
left: `${marker.x - chunkLK35P6RE_cjs.COMMENT_MARKER_SIZE / 2}px`,
|
|
100
|
+
top: `${marker.y - chunkLK35P6RE_cjs.COMMENT_MARKER_SIZE / 2}px`,
|
|
101
|
+
width: `${chunkLK35P6RE_cjs.COMMENT_MARKER_SIZE}px`,
|
|
102
|
+
height: `${chunkLK35P6RE_cjs.COMMENT_MARKER_SIZE}px`,
|
|
102
103
|
display: "flex",
|
|
103
104
|
alignItems: "center",
|
|
104
105
|
justifyContent: "center",
|
|
@@ -165,7 +166,7 @@ function merge3dStyle(base, computed) {
|
|
|
165
166
|
}
|
|
166
167
|
}
|
|
167
168
|
function getShapeFillStrokeStyle(el, animatesFill, animatesStroke) {
|
|
168
|
-
const frame =
|
|
169
|
+
const frame = chunkLK35P6RE_cjs.getFrameEffectStyle(el);
|
|
169
170
|
if (frame) {
|
|
170
171
|
return { ...frame };
|
|
171
172
|
}
|
|
@@ -175,13 +176,13 @@ function getShapeFillStrokeStyle(el, animatesFill, animatesStroke) {
|
|
|
175
176
|
const ss = el.shapeStyle;
|
|
176
177
|
const style = {};
|
|
177
178
|
if (ss) {
|
|
178
|
-
const fill = animatesFill ? void 0 :
|
|
179
|
+
const fill = animatesFill ? void 0 : chunk2SO3BL67_cjs.getComputedFillStyle(el);
|
|
179
180
|
for (const [key, value] of Object.entries(fill ?? {})) {
|
|
180
181
|
if (value !== void 0) {
|
|
181
182
|
style[key] = value;
|
|
182
183
|
}
|
|
183
184
|
}
|
|
184
|
-
const stroke =
|
|
185
|
+
const stroke = chunk2SO3BL67_cjs.getComputedStrokeStyle(el);
|
|
185
186
|
if (stroke.borderWidth > 0) {
|
|
186
187
|
if (animatesStroke) {
|
|
187
188
|
style["borderWidth"] = stroke.cssBorderWidth;
|
|
@@ -200,7 +201,7 @@ function getShapeFillStrokeStyle(el, animatesFill, animatesStroke) {
|
|
|
200
201
|
style["strokeMiterlimit"] = stroke.strokeMiterlimit;
|
|
201
202
|
}
|
|
202
203
|
}
|
|
203
|
-
const fx =
|
|
204
|
+
const fx = chunk2SO3BL67_cjs.getComputedEffectStyle(el);
|
|
204
205
|
if (fx.boxShadow) {
|
|
205
206
|
style["boxShadow"] = fx.boxShadow;
|
|
206
207
|
}
|
|
@@ -217,11 +218,11 @@ function getShapeFillStrokeStyle(el, animatesFill, animatesStroke) {
|
|
|
217
218
|
if (fx.overflowVisible) {
|
|
218
219
|
style["overflow"] = "visible";
|
|
219
220
|
}
|
|
220
|
-
merge3dStyle(style,
|
|
221
|
-
if (
|
|
221
|
+
merge3dStyle(style, chunkLK35P6RE_cjs.getComputed3dStyle(el));
|
|
222
|
+
if (chunkLK35P6RE_cjs.passesClicksThroughBox(el)) {
|
|
222
223
|
style["pointerEvents"] = "none";
|
|
223
224
|
}
|
|
224
|
-
const geometry =
|
|
225
|
+
const geometry = chunkLK35P6RE_cjs.resolveShapeGeometry(el);
|
|
225
226
|
switch (geometry.kind) {
|
|
226
227
|
case "bare":
|
|
227
228
|
style["backgroundColor"] = "transparent";
|
|
@@ -241,10 +242,10 @@ function getShapeFillStrokeStyle(el, animatesFill, animatesStroke) {
|
|
|
241
242
|
case "lineEdge":
|
|
242
243
|
style["backgroundColor"] = "transparent";
|
|
243
244
|
style["border"] = "none";
|
|
244
|
-
style["borderTop"] =
|
|
245
|
+
style["borderTop"] = chunkHWJKBKCW_cjs.screenBorder(
|
|
245
246
|
geometry.strokeWidth,
|
|
246
|
-
|
|
247
|
-
el.shapeStyle?.strokeColor ??
|
|
247
|
+
chunk2SO3BL67_cjs.getCssBorderDashStyle(el.shapeStyle?.strokeDash),
|
|
248
|
+
el.shapeStyle?.strokeColor ?? chunk2SO3BL67_cjs.DEFAULT_STROKE_COLOR
|
|
248
249
|
);
|
|
249
250
|
return style;
|
|
250
251
|
default:
|
|
@@ -255,17 +256,17 @@ function getTextBlockStyle(el) {
|
|
|
255
256
|
if (!pptx.hasTextProperties(el)) {
|
|
256
257
|
return {};
|
|
257
258
|
}
|
|
258
|
-
const base =
|
|
259
|
-
fallbackColor:
|
|
259
|
+
const base = chunkLK35P6RE_cjs.buildTextBlockStyle(el, {
|
|
260
|
+
fallbackColor: chunk2SO3BL67_cjs.DEFAULT_TEXT_COLOR,
|
|
260
261
|
bodyLayout: true,
|
|
261
262
|
pxLengths: true
|
|
262
263
|
});
|
|
263
|
-
const scene3d =
|
|
264
|
+
const scene3d = chunkLK35P6RE_cjs.buildTextBody3DSceneStyle(el.textStyle, { width: el.width, height: el.height });
|
|
264
265
|
if (!scene3d) {
|
|
265
266
|
return base;
|
|
266
267
|
}
|
|
267
268
|
const merged = { ...base, ...scene3d };
|
|
268
|
-
const transform =
|
|
269
|
+
const transform = chunkZH35NTNU_cjs.composeTransforms(base.transform, scene3d.transform);
|
|
269
270
|
if (transform !== void 0) {
|
|
270
271
|
merged.transform = transform;
|
|
271
272
|
}
|
|
@@ -277,7 +278,7 @@ var subscriptions = /* @__PURE__ */ new WeakMap();
|
|
|
277
278
|
function subscribeChartPixelRepaint(container, repaint) {
|
|
278
279
|
const entry = { container, unsubscribe: () => {
|
|
279
280
|
} };
|
|
280
|
-
entry.unsubscribe =
|
|
281
|
+
entry.unsubscribe = chunk2SO3BL67_cjs.subscribeBarFacePicturePixelSamples(() => {
|
|
281
282
|
if (!entry.container.isConnected) {
|
|
282
283
|
disposeChartPixelSubscriptions(entry.container);
|
|
283
284
|
return;
|
|
@@ -353,7 +354,7 @@ function renderSlideStage(options) {
|
|
|
353
354
|
const { document: doc, slide, canvasSize, mediaDataUrls, registry, t } = options;
|
|
354
355
|
const scale = options.scale ?? 1;
|
|
355
356
|
const interactive = options.interactive ?? false;
|
|
356
|
-
const stage =
|
|
357
|
+
const stage = chunkZH35NTNU_cjs.createEl(doc, "div", "pptxv-stage", {
|
|
357
358
|
width: `${canvasSize.width}px`,
|
|
358
359
|
height: `${canvasSize.height}px`,
|
|
359
360
|
transform: `scale(${scale})`,
|
|
@@ -369,8 +370,8 @@ function renderSlideStage(options) {
|
|
|
369
370
|
"--pptx-slide-h": `${canvasSize.height}px`,
|
|
370
371
|
"--pptxv-grid-size": `${options.gridSpacingPx ?? 10}px`,
|
|
371
372
|
// One device pixel in slide px: thin strokes stay visible on screen.
|
|
372
|
-
...
|
|
373
|
-
...
|
|
373
|
+
...chunkHWJKBKCW_cjs.deviceStrokeStageStyle(scale),
|
|
374
|
+
...chunkLK35P6RE_cjs.getSlideBackgroundStyle(slide, { widthPx: canvasSize.width, heightPx: canvasSize.height })
|
|
374
375
|
});
|
|
375
376
|
if (interactive || options.reading) {
|
|
376
377
|
stage.setAttribute("role", "region");
|
|
@@ -411,10 +412,10 @@ function renderSlideStage(options) {
|
|
|
411
412
|
chartPartSelection: options.chartPartSelection,
|
|
412
413
|
onChartPartSelect: options.onChartPartSelect,
|
|
413
414
|
selectedElementIds: options.selectedElementIds,
|
|
414
|
-
edgeBleeds:
|
|
415
|
+
edgeBleeds: chunkLK35P6RE_cjs.resolveStageEdgeBleeds(void 0, slide, options.selectedElementIds),
|
|
415
416
|
registry,
|
|
416
417
|
renderElement(element, zIndex) {
|
|
417
|
-
if (!
|
|
418
|
+
if (!chunkLK35P6RE_cjs.isElementRendered(element)) {
|
|
418
419
|
return null;
|
|
419
420
|
}
|
|
420
421
|
const node = registry.resolve(element.type)(element, zIndex, context);
|
|
@@ -426,10 +427,10 @@ function renderSlideStage(options) {
|
|
|
426
427
|
}
|
|
427
428
|
node.setAttribute("data-pptx-element", "true");
|
|
428
429
|
}
|
|
429
|
-
if (node && element.type !== "text" && element.type !== "shape" && element.type !== "connector" &&
|
|
430
|
-
const hitTargetStyle =
|
|
430
|
+
if (node && element.type !== "text" && element.type !== "shape" && element.type !== "connector" && chunkLK35P6RE_cjs.shouldRenderHitTarget(interactive, options.presenting ?? false)) {
|
|
431
|
+
const hitTargetStyle = chunkLK35P6RE_cjs.elementHitTargetStyle(element);
|
|
431
432
|
if (hitTargetStyle) {
|
|
432
|
-
const hitTarget =
|
|
433
|
+
const hitTarget = chunkZH35NTNU_cjs.createEl(doc, "div", void 0, hitTargetStyle);
|
|
433
434
|
hitTarget.setAttribute("aria-hidden", "true");
|
|
434
435
|
hitTarget.setAttribute("data-pptx-hit-target", "true");
|
|
435
436
|
node.appendChild(hitTarget);
|
|
@@ -447,12 +448,12 @@ function renderSlideStage(options) {
|
|
|
447
448
|
}
|
|
448
449
|
});
|
|
449
450
|
if (interactive || options.reading) {
|
|
450
|
-
|
|
451
|
+
chunkLK35P6RE_cjs.applyRenderedElementAccessibility(stage, slide.elements, {
|
|
451
452
|
presenting: options.presenting ?? false
|
|
452
453
|
});
|
|
453
454
|
}
|
|
454
455
|
if (interactive) {
|
|
455
|
-
|
|
456
|
+
chunkLK35P6RE_cjs.applyElementActionAffordances(
|
|
456
457
|
stage,
|
|
457
458
|
slide.elements.filter(
|
|
458
459
|
(element) => options.templateEditing || !chunk3CYWRMYZ_cjs.isTemplateElementId(element.id)
|
|
@@ -460,7 +461,7 @@ function renderSlideStage(options) {
|
|
|
460
461
|
{
|
|
461
462
|
canInteract: true,
|
|
462
463
|
presenting: options.presenting ?? false,
|
|
463
|
-
labels:
|
|
464
|
+
labels: chunkLK35P6RE_cjs.actionAffordanceLabels((key) => t(key))
|
|
464
465
|
}
|
|
465
466
|
);
|
|
466
467
|
}
|
|
@@ -537,13 +538,13 @@ function attachChartEditing(container, element, context, repaint) {
|
|
|
537
538
|
if (!context.selectedElementIds?.has(element.id)) {
|
|
538
539
|
return;
|
|
539
540
|
}
|
|
540
|
-
|
|
541
|
-
container.classList.add(
|
|
541
|
+
chunk2GDYTHUY_cjs.ensureChartInteractionStyles();
|
|
542
|
+
container.classList.add(chunk2GDYTHUY_cjs.CHART_INTERACTIVE_CLASS);
|
|
542
543
|
let active = null;
|
|
543
544
|
let activeMark = null;
|
|
544
545
|
let selected = context.chartPartSelection?.elementId === element.id ? context.chartPartSelection.part : null;
|
|
545
546
|
let badge = null;
|
|
546
|
-
|
|
547
|
+
chunk2GDYTHUY_cjs.applyChartPartHighlight(container, selected);
|
|
547
548
|
const showBadge = (text) => {
|
|
548
549
|
if (!badge) {
|
|
549
550
|
badge = container.ownerDocument.createElement("div");
|
|
@@ -567,26 +568,26 @@ function attachChartEditing(container, element, context, repaint) {
|
|
|
567
568
|
if (!rect) {
|
|
568
569
|
return;
|
|
569
570
|
}
|
|
570
|
-
const step2 =
|
|
571
|
+
const step2 = chunkLK35P6RE_cjs.advanceChartMarkDrag(activeMark, event.clientX, event.clientY, rect);
|
|
571
572
|
if (!step2) {
|
|
572
573
|
return;
|
|
573
574
|
}
|
|
574
575
|
repaint(step2.chartData);
|
|
575
|
-
|
|
576
|
-
showBadge(
|
|
576
|
+
chunk2GDYTHUY_cjs.applyChartPartHighlight(container, selected);
|
|
577
|
+
showBadge(chunk2SO3BL67_cjs.formatAxisValue(step2.value));
|
|
577
578
|
return;
|
|
578
579
|
}
|
|
579
580
|
if (!active) {
|
|
580
581
|
return;
|
|
581
582
|
}
|
|
582
583
|
const height = container.querySelector("svg")?.getBoundingClientRect().height ?? 0;
|
|
583
|
-
const step =
|
|
584
|
+
const step = chunk2GDYTHUY_cjs.advanceChartValueDrag(active, event.clientY, height);
|
|
584
585
|
if (!step) {
|
|
585
586
|
return;
|
|
586
587
|
}
|
|
587
588
|
repaint(step.chartData);
|
|
588
|
-
|
|
589
|
-
showBadge(
|
|
589
|
+
chunk2GDYTHUY_cjs.applyChartPartHighlight(container, selected);
|
|
590
|
+
showBadge(chunk2SO3BL67_cjs.formatAxisValue(step.value));
|
|
590
591
|
};
|
|
591
592
|
const onUp = () => {
|
|
592
593
|
if (active || activeMark) {
|
|
@@ -612,12 +613,12 @@ function attachChartEditing(container, element, context, repaint) {
|
|
|
612
613
|
}
|
|
613
614
|
if ((finished?.moved || finishedMark?.moved) && chart.chartData) {
|
|
614
615
|
repaint(chart.chartData);
|
|
615
|
-
|
|
616
|
+
chunk2GDYTHUY_cjs.applyChartPartHighlight(container, selected);
|
|
616
617
|
}
|
|
617
618
|
}
|
|
618
619
|
const openTitleEditor = createChartTitleEditor(container, (value) => {
|
|
619
620
|
if (chart.chartData) {
|
|
620
|
-
context.onChartPointChange?.(element,
|
|
621
|
+
context.onChartPointChange?.(element, chunk2GDYTHUY_cjs.withChartTitle(chart.chartData, value));
|
|
621
622
|
}
|
|
622
623
|
});
|
|
623
624
|
const requestFormat = (event, open) => {
|
|
@@ -626,7 +627,7 @@ function attachChartEditing(container, element, context, repaint) {
|
|
|
626
627
|
bubbles: true,
|
|
627
628
|
detail: {
|
|
628
629
|
elementId: element.id,
|
|
629
|
-
target:
|
|
630
|
+
target: chunkLK35P6RE_cjs.chartFormatTargetFromEvent(event, container, chart),
|
|
630
631
|
open
|
|
631
632
|
}
|
|
632
633
|
})
|
|
@@ -649,19 +650,19 @@ function attachChartEditing(container, element, context, repaint) {
|
|
|
649
650
|
});
|
|
650
651
|
container.addEventListener("pointerdown", (event) => {
|
|
651
652
|
requestFormat(event, false);
|
|
652
|
-
const part =
|
|
653
|
+
const part = chunk2GDYTHUY_cjs.findChartPartTarget(event.target);
|
|
653
654
|
if (!part || !chart.chartData) {
|
|
654
655
|
return;
|
|
655
656
|
}
|
|
656
657
|
event.stopPropagation();
|
|
657
658
|
selected = part;
|
|
658
|
-
|
|
659
|
+
chunk2GDYTHUY_cjs.applyChartPartHighlight(container, selected);
|
|
659
660
|
context.onChartPartSelect?.(element, part);
|
|
660
|
-
const vm =
|
|
661
|
+
const vm = chunk2SO3BL67_cjs.buildChartViewModel(chart);
|
|
661
662
|
let captured = false;
|
|
662
|
-
const chartKind =
|
|
663
|
+
const chartKind = chunk2SO3BL67_cjs.resolveChartKind(chart.chartData.chartType ?? "bar");
|
|
663
664
|
if (part.pointIndex !== void 0 && chartKind !== "unsupported") {
|
|
664
|
-
const markGeometry =
|
|
665
|
+
const markGeometry = chunk2GDYTHUY_cjs.buildChartMarkDragGeometry({
|
|
665
666
|
kind: chartKind,
|
|
666
667
|
element: chart,
|
|
667
668
|
chartData: chart.chartData,
|
|
@@ -669,7 +670,7 @@ function attachChartEditing(container, element, context, repaint) {
|
|
|
669
670
|
seriesIndex: part.seriesIndex,
|
|
670
671
|
pointIndex: part.pointIndex
|
|
671
672
|
});
|
|
672
|
-
const startedMark =
|
|
673
|
+
const startedMark = chunkLK35P6RE_cjs.beginChartMarkDrag({
|
|
673
674
|
part,
|
|
674
675
|
geometry: markGeometry,
|
|
675
676
|
chartData: chart.chartData,
|
|
@@ -684,7 +685,7 @@ function attachChartEditing(container, element, context, repaint) {
|
|
|
684
685
|
}
|
|
685
686
|
}
|
|
686
687
|
if (!captured) {
|
|
687
|
-
const started =
|
|
688
|
+
const started = chunk2GDYTHUY_cjs.beginChartValueDrag({
|
|
688
689
|
part,
|
|
689
690
|
viewModel: vm,
|
|
690
691
|
chartData: chart.chartData,
|
|
@@ -713,17 +714,17 @@ function attachChartEditing(container, element, context, repaint) {
|
|
|
713
714
|
// src/pptx/dom/elements/chart.ts
|
|
714
715
|
var renderChartElement = (element, zIndex, context) => {
|
|
715
716
|
const wrapper = renderChartSvgElement(element, zIndex, context);
|
|
716
|
-
const spec = wrapper ?
|
|
717
|
+
const spec = wrapper ? chunkLK35P6RE_cjs.resolveChartThreeViewSpec(element, chunkZH35NTNU_cjs.rendering3DFlagsOf(context)) : null;
|
|
717
718
|
if (!wrapper || !spec) {
|
|
718
719
|
return wrapper;
|
|
719
720
|
}
|
|
720
|
-
const view =
|
|
721
|
+
const view = chunkZH35NTNU_cjs.mountThreeViewInto(context.document, wrapper, {
|
|
721
722
|
spec,
|
|
722
|
-
interactive:
|
|
723
|
-
selectedPart:
|
|
723
|
+
interactive: chunkZH35NTNU_cjs.isChart3DEditable(element, context),
|
|
724
|
+
selectedPart: chunkZH35NTNU_cjs.selectedChartPartOf(element, context),
|
|
724
725
|
textStyle: context.presentationStates?.get(element.id)?.textStyle
|
|
725
726
|
});
|
|
726
|
-
|
|
727
|
+
chunkZH35NTNU_cjs.wireChartThreeViewEvents(view, element, context, wrapper);
|
|
727
728
|
return wrapper;
|
|
728
729
|
};
|
|
729
730
|
var renderChartSvgElement = (element, zIndex, context) => {
|
|
@@ -731,21 +732,21 @@ var renderChartSvgElement = (element, zIndex, context) => {
|
|
|
731
732
|
return null;
|
|
732
733
|
}
|
|
733
734
|
const doc = context.document;
|
|
734
|
-
const container =
|
|
735
|
+
const container = chunkZH35NTNU_cjs.createEl(
|
|
735
736
|
doc,
|
|
736
737
|
"div",
|
|
737
738
|
"pptxv-element pptxv-chart",
|
|
738
739
|
// The chart area's outer shadow and glow sit on the frame, outside the chart.
|
|
739
|
-
{ ...
|
|
740
|
+
{ ...chunkLK35P6RE_cjs.getContainerStyle(element, zIndex), ...chunkLK35P6RE_cjs.getFrameEffectStyle(element) }
|
|
740
741
|
);
|
|
741
742
|
container.dataset.elementId = element.id;
|
|
742
743
|
const animationState = context.presentationStates?.get(element.id);
|
|
743
|
-
const chartData = element.chartData ?
|
|
744
|
+
const chartData = element.chartData ? chunkLK35P6RE_cjs.resolveRevealedChartData(element.chartData, animationState) : element.chartData;
|
|
744
745
|
if (!chartData || chartData.series.length === 0) {
|
|
745
746
|
container.appendChild(renderChartPlaceholder(doc, chartData?.chartType ?? "bar", context.t));
|
|
746
747
|
return container;
|
|
747
748
|
}
|
|
748
|
-
const kind =
|
|
749
|
+
const kind = chunk2SO3BL67_cjs.resolveChartKind(chartData.chartType ?? "bar");
|
|
749
750
|
if (kind === "unsupported") {
|
|
750
751
|
container.appendChild(renderChartPlaceholder(doc, chartData.chartType, context.t));
|
|
751
752
|
return container;
|
|
@@ -758,9 +759,9 @@ var renderChartSvgElement = (element, zIndex, context) => {
|
|
|
758
759
|
};
|
|
759
760
|
target.querySelector("svg")?.remove();
|
|
760
761
|
target.appendChild(
|
|
761
|
-
|
|
762
|
+
chunk2GDYTHUY_cjs.renderChartViewModelSvg(
|
|
762
763
|
doc,
|
|
763
|
-
|
|
764
|
+
chunk2SO3BL67_cjs.buildChartViewModel(themedElement),
|
|
764
765
|
preserveAspectRatio,
|
|
765
766
|
(key) => context.t(key)
|
|
766
767
|
)
|
|
@@ -772,10 +773,10 @@ var renderChartSvgElement = (element, zIndex, context) => {
|
|
|
772
773
|
return container;
|
|
773
774
|
};
|
|
774
775
|
function resolveChartPalette2(chartData) {
|
|
775
|
-
return
|
|
776
|
+
return chunk2SO3BL67_cjs.resolveChartPalette(chartData);
|
|
776
777
|
}
|
|
777
778
|
function renderChartPlaceholder(doc, chartType, t) {
|
|
778
|
-
const placeholder =
|
|
779
|
+
const placeholder = chunkZH35NTNU_cjs.createEl(doc, "div", "pptxv-placeholder pptxv-chart-placeholder", {
|
|
779
780
|
display: "flex",
|
|
780
781
|
alignItems: "center",
|
|
781
782
|
justifyContent: "center",
|
|
@@ -787,7 +788,7 @@ function renderChartPlaceholder(doc, chartType, t) {
|
|
|
787
788
|
border: "1px dashed #cbd5e1",
|
|
788
789
|
boxSizing: "border-box"
|
|
789
790
|
});
|
|
790
|
-
placeholder.textContent =
|
|
791
|
+
placeholder.textContent = chunkLK35P6RE_cjs.chartPlaceholderLabel(chartType, (key, params) => t(key, params));
|
|
791
792
|
return placeholder;
|
|
792
793
|
}
|
|
793
794
|
|
|
@@ -806,19 +807,19 @@ function appendRunContent(doc, host, run) {
|
|
|
806
807
|
}
|
|
807
808
|
function appendTabLines(doc, host, lines) {
|
|
808
809
|
lines.forEach((line, li) => {
|
|
809
|
-
const lineHost =
|
|
810
|
+
const lineHost = chunkZH35NTNU_cjs.createEl(doc, "span", void 0, {
|
|
810
811
|
display: "inline-block",
|
|
811
812
|
whiteSpace: "nowrap"
|
|
812
813
|
});
|
|
813
814
|
for (const piece of line.pieces) {
|
|
814
815
|
if (piece.leaderStyle) {
|
|
815
|
-
const leader =
|
|
816
|
+
const leader = chunkZH35NTNU_cjs.createEl(doc, "span", void 0, piece.leaderStyle);
|
|
816
817
|
leader.setAttribute("aria-hidden", "true");
|
|
817
818
|
leader.textContent = piece.leaderText ?? "";
|
|
818
819
|
lineHost.appendChild(leader);
|
|
819
820
|
}
|
|
820
821
|
for (const word of piece.words ?? [piece]) {
|
|
821
|
-
const textSpan =
|
|
822
|
+
const textSpan = chunkZH35NTNU_cjs.createEl(doc, "span", void 0, word.style);
|
|
822
823
|
textSpan.textContent = word.text;
|
|
823
824
|
lineHost.appendChild(textSpan);
|
|
824
825
|
}
|
|
@@ -832,7 +833,7 @@ function appendTabLines(doc, host, lines) {
|
|
|
832
833
|
function appendStyledPieces(doc, host, pieces) {
|
|
833
834
|
for (const piece of pieces) {
|
|
834
835
|
if (piece.style) {
|
|
835
|
-
const span =
|
|
836
|
+
const span = chunkZH35NTNU_cjs.createEl(doc, "span", void 0, piece.style);
|
|
836
837
|
span.textContent = piece.text;
|
|
837
838
|
host.appendChild(span);
|
|
838
839
|
} else {
|
|
@@ -845,16 +846,16 @@ function appendStyledPieces(doc, host, pieces) {
|
|
|
845
846
|
var NEWLINE_RUN = "\n";
|
|
846
847
|
function createRunBaseNode(doc, run) {
|
|
847
848
|
if (run.equation) {
|
|
848
|
-
const host =
|
|
849
|
-
const math =
|
|
849
|
+
const host = chunkZH35NTNU_cjs.createEl(doc, "span", "pptxv-inline-equation", run.style);
|
|
850
|
+
const math = chunkZH35NTNU_cjs.createEl(doc, "span", "pptxv-equation-math", {
|
|
850
851
|
display: "inline-block",
|
|
851
852
|
verticalAlign: "middle",
|
|
852
853
|
fontFamily: "'Cambria Math', 'STIX Two Math', serif"
|
|
853
854
|
});
|
|
854
|
-
math.innerHTML =
|
|
855
|
+
math.innerHTML = chunkLK35P6RE_cjs.runEquationMathMl(run.equation);
|
|
855
856
|
host.appendChild(math);
|
|
856
857
|
if (run.equation.number) {
|
|
857
|
-
const number =
|
|
858
|
+
const number = chunkZH35NTNU_cjs.createEl(doc, "span", "pptxv-equation-number", {
|
|
858
859
|
whiteSpace: "nowrap",
|
|
859
860
|
marginInlineStart: "0.5em"
|
|
860
861
|
});
|
|
@@ -863,8 +864,8 @@ function createRunBaseNode(doc, run) {
|
|
|
863
864
|
}
|
|
864
865
|
return host;
|
|
865
866
|
}
|
|
866
|
-
if (run.hyperlink &&
|
|
867
|
-
const link =
|
|
867
|
+
if (run.hyperlink && chunkLK35P6RE_cjs.isRunHyperlinkClickable(run.hyperlink)) {
|
|
868
|
+
const link = chunkZH35NTNU_cjs.createEl(doc, "a", "pptxv-link", run.style);
|
|
868
869
|
link.setAttribute("data-pptx-hyperlink", run.hyperlink.url);
|
|
869
870
|
link.setAttribute("role", "link");
|
|
870
871
|
link.tabIndex = 0;
|
|
@@ -880,13 +881,13 @@ function createRunBaseNode(doc, run) {
|
|
|
880
881
|
}
|
|
881
882
|
if (run.ruby) {
|
|
882
883
|
const ruby = doc.createElement("ruby");
|
|
883
|
-
|
|
884
|
+
chunkZH35NTNU_cjs.applyStyleMap(ruby, run.style);
|
|
884
885
|
appendRunContent(doc, ruby, run);
|
|
885
886
|
const openParen = doc.createElement("rp");
|
|
886
887
|
openParen.textContent = "(";
|
|
887
888
|
ruby.appendChild(openParen);
|
|
888
889
|
const annotation = doc.createElement("rt");
|
|
889
|
-
|
|
890
|
+
chunkZH35NTNU_cjs.applyStyleMap(annotation, run.ruby.style);
|
|
890
891
|
annotation.textContent = run.ruby.text;
|
|
891
892
|
ruby.appendChild(annotation);
|
|
892
893
|
const closeParen = doc.createElement("rp");
|
|
@@ -894,8 +895,8 @@ function createRunBaseNode(doc, run) {
|
|
|
894
895
|
ruby.appendChild(closeParen);
|
|
895
896
|
return ruby;
|
|
896
897
|
}
|
|
897
|
-
const span =
|
|
898
|
-
|
|
898
|
+
const span = chunkZH35NTNU_cjs.createEl(doc, "span");
|
|
899
|
+
chunkZH35NTNU_cjs.applyStyleMap(span, run.style);
|
|
899
900
|
appendRunContent(doc, span, run);
|
|
900
901
|
return span;
|
|
901
902
|
}
|
|
@@ -904,22 +905,22 @@ function createRunNode(doc, run) {
|
|
|
904
905
|
if (!run.reflection) {
|
|
905
906
|
return base;
|
|
906
907
|
}
|
|
907
|
-
const wrapper =
|
|
908
|
+
const wrapper = chunkZH35NTNU_cjs.createEl(doc, "span", void 0, {
|
|
908
909
|
position: "relative",
|
|
909
910
|
display: "inline-block"
|
|
910
911
|
});
|
|
911
912
|
wrapper.appendChild(base);
|
|
912
|
-
const mirror =
|
|
913
|
+
const mirror = chunkZH35NTNU_cjs.createEl(doc, "span", "pptxv-text-reflection", { ...run.reflection });
|
|
913
914
|
mirror.setAttribute("aria-hidden", "true");
|
|
914
|
-
const mirrorInner =
|
|
915
|
-
|
|
915
|
+
const mirrorInner = chunkZH35NTNU_cjs.createEl(doc, "span");
|
|
916
|
+
chunkZH35NTNU_cjs.applyStyleMap(mirrorInner, run.style);
|
|
916
917
|
appendRunContent(doc, mirrorInner, run);
|
|
917
918
|
mirror.appendChild(mirrorInner);
|
|
918
919
|
wrapper.appendChild(mirror);
|
|
919
920
|
return wrapper;
|
|
920
921
|
}
|
|
921
922
|
function renderTextBlock(doc, paragraphs, textStyle, build) {
|
|
922
|
-
const block =
|
|
923
|
+
const block = chunkZH35NTNU_cjs.createEl(doc, "div", "pptxv-text", textStyle);
|
|
923
924
|
for (const para of paragraphs) {
|
|
924
925
|
const paraStyle = {
|
|
925
926
|
// This paragraph's own `text-align` / BiDi `direction` / kinsoku rules,
|
|
@@ -941,13 +942,13 @@ function renderTextBlock(doc, paragraphs, textStyle, build) {
|
|
|
941
942
|
if (para.strutFontSizePx !== void 0) {
|
|
942
943
|
paraStyle.fontSize = `${para.strutFontSizePx}px`;
|
|
943
944
|
}
|
|
944
|
-
const p =
|
|
945
|
+
const p = chunkZH35NTNU_cjs.createEl(doc, "p", "pptxv-para", paraStyle);
|
|
945
946
|
if (para.textIndentPx !== void 0) {
|
|
946
947
|
p.style.textIndent = `${para.textIndentPx}px`;
|
|
947
948
|
}
|
|
948
949
|
const picture = para.bulletPicture;
|
|
949
950
|
if (picture?.src) {
|
|
950
|
-
const image =
|
|
951
|
+
const image = chunkZH35NTNU_cjs.createEl(doc, "img", "pptxv-bullet-image", {
|
|
951
952
|
width: `${picture.sizePx}px`,
|
|
952
953
|
height: `${picture.sizePx}px`,
|
|
953
954
|
display: "inline-block",
|
|
@@ -960,15 +961,15 @@ function renderTextBlock(doc, paragraphs, textStyle, build) {
|
|
|
960
961
|
image.setAttribute("draggable", "false");
|
|
961
962
|
p.appendChild(image);
|
|
962
963
|
} else if (para.bulletMarker !== void 0) {
|
|
963
|
-
const bullet =
|
|
964
|
-
|
|
964
|
+
const bullet = chunkZH35NTNU_cjs.createEl(doc, "span", "pptxv-bullet");
|
|
965
|
+
chunkZH35NTNU_cjs.applyStyleMap(bullet, para.bulletStyle);
|
|
965
966
|
if (para.bulletPicture) {
|
|
966
967
|
bullet.setAttribute("aria-label", para.bulletPicture.accessibleLabel);
|
|
967
968
|
}
|
|
968
969
|
bullet.textContent = para.bulletMarker;
|
|
969
970
|
p.appendChild(bullet);
|
|
970
971
|
}
|
|
971
|
-
const spec = build ?
|
|
972
|
+
const spec = build ? chunkLK35P6RE_cjs.buildTextBuildSpec(
|
|
972
973
|
build.elementId,
|
|
973
974
|
paragraphs.indexOf(para),
|
|
974
975
|
para.runs.filter((run) => run.text !== NEWLINE_RUN).map((run) => ({ text: run.text, style: run.style })),
|
|
@@ -976,8 +977,8 @@ function renderTextBlock(doc, paragraphs, textStyle, build) {
|
|
|
976
977
|
) : void 0;
|
|
977
978
|
if (spec && spec.granularity !== "paragraph") {
|
|
978
979
|
for (const span of spec.spans ?? []) {
|
|
979
|
-
const node =
|
|
980
|
-
|
|
980
|
+
const node = chunkZH35NTNU_cjs.createEl(doc, "span");
|
|
981
|
+
chunkZH35NTNU_cjs.applyStyleMap(node, { ...span.style ?? {}, ...chunkLK35P6RE_cjs.textBuildSpanStyle(span) });
|
|
981
982
|
if (span.animId) {
|
|
982
983
|
node.setAttribute("data-anim-id", span.animId);
|
|
983
984
|
}
|
|
@@ -989,8 +990,8 @@ function renderTextBlock(doc, paragraphs, textStyle, build) {
|
|
|
989
990
|
}
|
|
990
991
|
let runHost = p;
|
|
991
992
|
if (spec) {
|
|
992
|
-
const wrapper =
|
|
993
|
-
|
|
993
|
+
const wrapper = chunkZH35NTNU_cjs.createEl(doc, "span");
|
|
994
|
+
chunkZH35NTNU_cjs.applyStyleMap(wrapper, chunkLK35P6RE_cjs.textBuildSpanStyle(spec));
|
|
994
995
|
if (spec.animId) {
|
|
995
996
|
wrapper.setAttribute("data-anim-id", spec.animId);
|
|
996
997
|
}
|
|
@@ -1017,12 +1018,17 @@ var renderConnectorElement = (element, zIndex, context) => {
|
|
|
1017
1018
|
const doc = context.document;
|
|
1018
1019
|
const ss = pptx.hasShapeProperties(element) ? element.shapeStyle : void 0;
|
|
1019
1020
|
const strokeWidth = Math.max(0, ss?.strokeWidth ?? 2);
|
|
1020
|
-
const strokeColor = ss?.strokeColor ??
|
|
1021
|
+
const strokeColor = ss?.strokeColor ?? chunk2SO3BL67_cjs.DEFAULT_STROKE_COLOR;
|
|
1021
1022
|
const strokeOpacity = ss?.strokeOpacity ?? 1;
|
|
1022
|
-
const dashArray =
|
|
1023
|
+
const dashArray = chunk2SO3BL67_cjs.buildDashArray(
|
|
1024
|
+
ss?.strokeDash,
|
|
1025
|
+
strokeWidth,
|
|
1026
|
+
ss?.customDashSegments,
|
|
1027
|
+
ss?.lineCap
|
|
1028
|
+
);
|
|
1023
1029
|
const w = Math.max(element.width, 1);
|
|
1024
1030
|
const h = Math.max(element.height, 1);
|
|
1025
|
-
const wrapper =
|
|
1031
|
+
const wrapper = chunkZH35NTNU_cjs.createEl(doc, "div", "pptxv-element pptxv-connector", {
|
|
1026
1032
|
position: "absolute",
|
|
1027
1033
|
left: `${element.x}px`,
|
|
1028
1034
|
top: `${element.y}px`,
|
|
@@ -1046,18 +1052,18 @@ var renderConnectorElement = (element, zIndex, context) => {
|
|
|
1046
1052
|
if (element.hidden) {
|
|
1047
1053
|
wrapper.style.display = "none";
|
|
1048
1054
|
}
|
|
1049
|
-
const lineGlow =
|
|
1055
|
+
const lineGlow = chunk2SO3BL67_cjs.getLineGlowFilterCss(ss);
|
|
1050
1056
|
if (lineGlow) {
|
|
1051
1057
|
wrapper.style.filter = lineGlow;
|
|
1052
1058
|
}
|
|
1053
|
-
const svg =
|
|
1059
|
+
const svg = chunkZH35NTNU_cjs.createSvgEl(doc, "svg", { width: w, height: h, viewBox: `0 0 ${w} ${h}` });
|
|
1054
1060
|
svg.setAttribute("style", "overflow:visible;display:block");
|
|
1055
1061
|
const seed = element.id.replace(/[^a-zA-Z0-9_-]/gu, "_");
|
|
1056
|
-
const defs =
|
|
1057
|
-
const lineShadow =
|
|
1062
|
+
const defs = chunkZH35NTNU_cjs.createSvgEl(doc, "defs");
|
|
1063
|
+
const lineShadow = chunk2SO3BL67_cjs.getLineShadowParams(ss);
|
|
1058
1064
|
const shadowId = lineShadow ? `${seed}-line-shadow` : void 0;
|
|
1059
1065
|
if (lineShadow && shadowId) {
|
|
1060
|
-
const filter =
|
|
1066
|
+
const filter = chunkZH35NTNU_cjs.createSvgEl(doc, "filter", {
|
|
1061
1067
|
id: shadowId,
|
|
1062
1068
|
x: "-50%",
|
|
1063
1069
|
y: "-50%",
|
|
@@ -1065,7 +1071,7 @@ var renderConnectorElement = (element, zIndex, context) => {
|
|
|
1065
1071
|
height: "200%"
|
|
1066
1072
|
});
|
|
1067
1073
|
filter.appendChild(
|
|
1068
|
-
|
|
1074
|
+
chunkZH35NTNU_cjs.createSvgEl(doc, "feDropShadow", {
|
|
1069
1075
|
dx: lineShadow.offsetX,
|
|
1070
1076
|
dy: lineShadow.offsetY,
|
|
1071
1077
|
stdDeviation: lineShadow.blur / 2,
|
|
@@ -1075,8 +1081,8 @@ var renderConnectorElement = (element, zIndex, context) => {
|
|
|
1075
1081
|
);
|
|
1076
1082
|
defs.appendChild(filter);
|
|
1077
1083
|
}
|
|
1078
|
-
const startArrow =
|
|
1079
|
-
const endArrow =
|
|
1084
|
+
const startArrow = chunk2SO3BL67_cjs.normalizeArrow(ss?.connectorStartArrow);
|
|
1085
|
+
const endArrow = chunk2SO3BL67_cjs.normalizeArrow(ss?.connectorEndArrow);
|
|
1080
1086
|
const startMarkerId = startArrow ? `${seed}-start` : void 0;
|
|
1081
1087
|
const endMarkerId = endArrow ? `${seed}-end` : void 0;
|
|
1082
1088
|
if (startArrow && startMarkerId) {
|
|
@@ -1099,10 +1105,10 @@ var renderConnectorElement = (element, zIndex, context) => {
|
|
|
1099
1105
|
svg.appendChild(defs);
|
|
1100
1106
|
}
|
|
1101
1107
|
const compound = ss?.compoundLine;
|
|
1102
|
-
const offsets =
|
|
1103
|
-
const widths =
|
|
1108
|
+
const offsets = chunk2SO3BL67_cjs.getCompoundLineOffsets(compound, strokeWidth);
|
|
1109
|
+
const widths = chunk2SO3BL67_cjs.getCompoundLineWidths(compound, strokeWidth);
|
|
1104
1110
|
const shapeType = pptx.hasShapeProperties(element) ? element.shapeType : void 0;
|
|
1105
|
-
const usePath =
|
|
1111
|
+
const usePath = chunk2SO3BL67_cjs.connectorNeedsPath(shapeType) && pptx.hasShapeProperties(element);
|
|
1106
1112
|
const pathData = usePath ? pptx.getConnectorPathGeometry(element).pathData : void 0;
|
|
1107
1113
|
const rw = Math.max(element.width, 0);
|
|
1108
1114
|
const rh = Math.max(element.height, 0);
|
|
@@ -1110,13 +1116,13 @@ var renderConnectorElement = (element, zIndex, context) => {
|
|
|
1110
1116
|
const y1 = element.flipVertical ? rh : 0;
|
|
1111
1117
|
const x2 = element.flipHorizontal ? 0 : rw;
|
|
1112
1118
|
const y2 = element.flipVertical ? 0 : rh;
|
|
1113
|
-
const snapTransform =
|
|
1114
|
-
const hit =
|
|
1119
|
+
const snapTransform = chunkLK35P6RE_cjs.connectorSnapTransform(element, !usePath, offsets.length, strokeWidth);
|
|
1120
|
+
const hit = chunkZH35NTNU_cjs.createSvgEl(doc, "path", {
|
|
1115
1121
|
class: "pptxv-connector-hit",
|
|
1116
1122
|
d: pathData ?? `M${x1},${y1} L${x2},${y2}`,
|
|
1117
1123
|
fill: "none",
|
|
1118
1124
|
stroke: "transparent",
|
|
1119
|
-
"stroke-width":
|
|
1125
|
+
"stroke-width": chunkLK35P6RE_cjs.connectorHitStrokeWidth(strokeWidth),
|
|
1120
1126
|
"stroke-linecap": "round",
|
|
1121
1127
|
"stroke-linejoin": "round"
|
|
1122
1128
|
});
|
|
@@ -1130,14 +1136,14 @@ var renderConnectorElement = (element, zIndex, context) => {
|
|
|
1130
1136
|
"stroke-width": strandWidth,
|
|
1131
1137
|
"stroke-opacity": strokeOpacity,
|
|
1132
1138
|
"stroke-dasharray": dashArray,
|
|
1133
|
-
"stroke-linecap":
|
|
1139
|
+
"stroke-linecap": chunk2SO3BL67_cjs.svgLineCap(ss?.lineCap, dashArray !== void 0),
|
|
1134
1140
|
"marker-start": idx === 0 && startMarkerId ? `url(#${startMarkerId})` : void 0,
|
|
1135
1141
|
"marker-end": idx === offsets.length - 1 && endMarkerId ? `url(#${endMarkerId})` : void 0,
|
|
1136
1142
|
filter: shadowId ? `url(#${shadowId})` : void 0
|
|
1137
1143
|
};
|
|
1138
1144
|
let node;
|
|
1139
1145
|
if (pathData !== void 0) {
|
|
1140
|
-
node =
|
|
1146
|
+
node = chunkZH35NTNU_cjs.createSvgEl(doc, "path", {
|
|
1141
1147
|
d: pathData,
|
|
1142
1148
|
fill: "none",
|
|
1143
1149
|
"stroke-linejoin": "round",
|
|
@@ -1147,7 +1153,7 @@ var renderConnectorElement = (element, zIndex, context) => {
|
|
|
1147
1153
|
node.style.transform = `translate(0, ${offset}px)`;
|
|
1148
1154
|
}
|
|
1149
1155
|
} else {
|
|
1150
|
-
node =
|
|
1156
|
+
node = chunkZH35NTNU_cjs.createSvgEl(doc, "line", {
|
|
1151
1157
|
x1,
|
|
1152
1158
|
y1: y1 + offset,
|
|
1153
1159
|
x2,
|
|
@@ -1156,7 +1162,7 @@ var renderConnectorElement = (element, zIndex, context) => {
|
|
|
1156
1162
|
});
|
|
1157
1163
|
}
|
|
1158
1164
|
node.setAttribute("data-pptx-line", "");
|
|
1159
|
-
node.style.setProperty("stroke-width",
|
|
1165
|
+
node.style.setProperty("stroke-width", chunk2SO3BL67_cjs.connectorStrandScreenWidth(widths, strokeWidth, idx));
|
|
1160
1166
|
if (snapTransform) {
|
|
1161
1167
|
node.style.transform = snapTransform;
|
|
1162
1168
|
}
|
|
@@ -1170,7 +1176,7 @@ function appendConnectorLabel(wrapper, element, context) {
|
|
|
1170
1176
|
if (!pptx.hasTextProperties(element)) {
|
|
1171
1177
|
return;
|
|
1172
1178
|
}
|
|
1173
|
-
const paragraphs =
|
|
1179
|
+
const paragraphs = chunkLK35P6RE_cjs.buildParagraphs(element, context.fieldContext);
|
|
1174
1180
|
if (!paragraphs.some((paragraph) => paragraph.runs.length > 0)) {
|
|
1175
1181
|
return;
|
|
1176
1182
|
}
|
|
@@ -1190,8 +1196,8 @@ function appendConnectorLabel(wrapper, element, context) {
|
|
|
1190
1196
|
}
|
|
1191
1197
|
function buildMarker(context, id, arrow, strokeColor, size) {
|
|
1192
1198
|
const doc = context.document;
|
|
1193
|
-
const shape =
|
|
1194
|
-
const marker =
|
|
1199
|
+
const shape = chunk2SO3BL67_cjs.markerPath(arrow, size.width, size.length);
|
|
1200
|
+
const marker = chunkZH35NTNU_cjs.createSvgEl(doc, "marker", {
|
|
1195
1201
|
id,
|
|
1196
1202
|
viewBox: "0 0 10 10",
|
|
1197
1203
|
refX: shape.refX,
|
|
@@ -1203,11 +1209,11 @@ function buildMarker(context, id, arrow, strokeColor, size) {
|
|
|
1203
1209
|
preserveAspectRatio: "none"
|
|
1204
1210
|
});
|
|
1205
1211
|
if (shape.shape === "circle") {
|
|
1206
|
-
marker.appendChild(
|
|
1212
|
+
marker.appendChild(chunkZH35NTNU_cjs.createSvgEl(doc, "circle", { cx: 5, cy: 5, r: 4, fill: strokeColor }));
|
|
1207
1213
|
} else if (shape.strokeOnly) {
|
|
1208
|
-
marker.appendChild(
|
|
1214
|
+
marker.appendChild(chunkZH35NTNU_cjs.createSvgEl(doc, "path", { d: shape.d, fill: "none", stroke: strokeColor }));
|
|
1209
1215
|
} else {
|
|
1210
|
-
marker.appendChild(
|
|
1216
|
+
marker.appendChild(chunkZH35NTNU_cjs.createSvgEl(doc, "path", { d: shape.d, fill: strokeColor }));
|
|
1211
1217
|
}
|
|
1212
1218
|
return marker;
|
|
1213
1219
|
}
|
|
@@ -1246,13 +1252,13 @@ function stripAbuttingEdgeBleeds(root) {
|
|
|
1246
1252
|
// src/pptx/dom/elements/ink-stroke-svg.ts
|
|
1247
1253
|
function buildStrokeSvg(doc, view, replay) {
|
|
1248
1254
|
if (view.nibMarks) {
|
|
1249
|
-
const g =
|
|
1255
|
+
const g = chunkZH35NTNU_cjs.createSvgEl(doc, "g", {
|
|
1250
1256
|
opacity: view.opacity,
|
|
1251
1257
|
...view.blendMode === "multiply" ? { style: "mix-blend-mode: multiply" } : {}
|
|
1252
1258
|
});
|
|
1253
1259
|
for (const m of view.nibMarks) {
|
|
1254
1260
|
g.appendChild(
|
|
1255
|
-
|
|
1261
|
+
chunkZH35NTNU_cjs.createSvgEl(doc, "ellipse", {
|
|
1256
1262
|
cx: m.cx,
|
|
1257
1263
|
cy: m.cy,
|
|
1258
1264
|
rx: m.rPerp,
|
|
@@ -1265,16 +1271,16 @@ function buildStrokeSvg(doc, view, replay) {
|
|
|
1265
1271
|
return g;
|
|
1266
1272
|
}
|
|
1267
1273
|
if (view.circles) {
|
|
1268
|
-
const g =
|
|
1274
|
+
const g = chunkZH35NTNU_cjs.createSvgEl(doc, "g", {
|
|
1269
1275
|
opacity: view.opacity,
|
|
1270
1276
|
...view.blendMode === "multiply" ? { style: "mix-blend-mode: multiply" } : {}
|
|
1271
1277
|
});
|
|
1272
1278
|
for (const c of view.circles) {
|
|
1273
|
-
g.appendChild(
|
|
1279
|
+
g.appendChild(chunkZH35NTNU_cjs.createSvgEl(doc, "circle", { cx: c.cx, cy: c.cy, r: c.r, fill: view.color }));
|
|
1274
1280
|
}
|
|
1275
1281
|
return g;
|
|
1276
1282
|
}
|
|
1277
|
-
const path =
|
|
1283
|
+
const path = chunkZH35NTNU_cjs.createSvgEl(doc, "path", {
|
|
1278
1284
|
d: view.d,
|
|
1279
1285
|
fill: "none",
|
|
1280
1286
|
stroke: view.color,
|
|
@@ -1302,24 +1308,24 @@ var renderContentPartElement = (element, zIndex, context) => {
|
|
|
1302
1308
|
return null;
|
|
1303
1309
|
}
|
|
1304
1310
|
const doc = context.document;
|
|
1305
|
-
const el =
|
|
1311
|
+
const el = chunkZH35NTNU_cjs.createEl(
|
|
1306
1312
|
doc,
|
|
1307
1313
|
"div",
|
|
1308
1314
|
"pptxv-element pptxv-contentpart",
|
|
1309
|
-
|
|
1315
|
+
chunkLK35P6RE_cjs.getContainerStyle(element, zIndex)
|
|
1310
1316
|
);
|
|
1311
1317
|
el.dataset.elementId = element.id;
|
|
1312
1318
|
const strokes = element.inkStrokes;
|
|
1313
1319
|
if (!strokes || strokes.length === 0) {
|
|
1314
1320
|
el.classList.add("pptxv-placeholder");
|
|
1315
|
-
const label =
|
|
1321
|
+
const label = chunkZH35NTNU_cjs.createEl(doc, "div", "pptxv-placeholder-label");
|
|
1316
1322
|
label.textContent = context.t("pptx.ink.contentPartFallback");
|
|
1317
1323
|
el.appendChild(label);
|
|
1318
1324
|
return el;
|
|
1319
1325
|
}
|
|
1320
1326
|
const w = Math.max(element.width, 1);
|
|
1321
1327
|
const h = Math.max(element.height, 1);
|
|
1322
|
-
const svg =
|
|
1328
|
+
const svg = chunkZH35NTNU_cjs.createSvgEl(doc, "svg", {
|
|
1323
1329
|
viewBox: `0 0 ${w} ${h}`,
|
|
1324
1330
|
preserveAspectRatio: "none"
|
|
1325
1331
|
});
|
|
@@ -1327,7 +1333,7 @@ var renderContentPartElement = (element, zIndex, context) => {
|
|
|
1327
1333
|
svg.setAttribute("style", "width:100%;height:100%;pointer-events:none;display:block");
|
|
1328
1334
|
const replayStyles = context.presenting ? chunkNTXHQHCS_cjs.getContentPartReplayStyles(strokes) : [];
|
|
1329
1335
|
if (context.presenting) {
|
|
1330
|
-
const keyframes =
|
|
1336
|
+
const keyframes = chunkZH35NTNU_cjs.createSvgEl(doc, "style");
|
|
1331
1337
|
keyframes.textContent = chunkNTXHQHCS_cjs.INK_REPLAY_KEYFRAMES;
|
|
1332
1338
|
svg.appendChild(keyframes);
|
|
1333
1339
|
}
|
|
@@ -1339,38 +1345,33 @@ var renderContentPartElement = (element, zIndex, context) => {
|
|
|
1339
1345
|
return el;
|
|
1340
1346
|
};
|
|
1341
1347
|
function renderEquations(element, context) {
|
|
1342
|
-
if (!pptx.hasTextProperties(element) || !
|
|
1348
|
+
if (!pptx.hasTextProperties(element) || !chunkLK35P6RE_cjs.isEquationOnlyText(element.textSegments)) {
|
|
1343
1349
|
return null;
|
|
1344
1350
|
}
|
|
1345
1351
|
const equations = (element.textSegments ?? []).filter((segment) => segment.equationXml);
|
|
1346
1352
|
if (equations.length === 0) {
|
|
1347
1353
|
return null;
|
|
1348
1354
|
}
|
|
1349
|
-
const wrapper =
|
|
1350
|
-
...getTextBlockStyle(element),
|
|
1351
|
-
alignItems: "center",
|
|
1352
|
-
gap: "0.25em",
|
|
1353
|
-
fontFamily: "'Cambria Math', 'STIX Two Math', serif"
|
|
1354
|
-
});
|
|
1355
|
+
const wrapper = chunkZH35NTNU_cjs.createEl(context.document, "div", "pptxv-equations", chunkLK35P6RE_cjs.buildEquationBlockStyle(getTextBlockStyle(element)));
|
|
1355
1356
|
for (const segment of equations) {
|
|
1356
|
-
const mathml =
|
|
1357
|
+
const mathml = chunkLK35P6RE_cjs.convertOmmlToMathMl(segment.equationXml);
|
|
1357
1358
|
if (!mathml) {
|
|
1358
1359
|
continue;
|
|
1359
1360
|
}
|
|
1360
|
-
const row =
|
|
1361
|
+
const row = chunkZH35NTNU_cjs.createEl(context.document, "span", "pptxv-equation", {
|
|
1361
1362
|
display: "flex",
|
|
1362
1363
|
alignItems: "center",
|
|
1363
1364
|
justifyContent: "center",
|
|
1364
1365
|
width: "100%"
|
|
1365
1366
|
});
|
|
1366
|
-
const math =
|
|
1367
|
+
const math = chunkZH35NTNU_cjs.createEl(context.document, "span", "pptxv-equation-math", {
|
|
1367
1368
|
flex: 1,
|
|
1368
1369
|
textAlign: "center"
|
|
1369
1370
|
});
|
|
1370
|
-
math.innerHTML =
|
|
1371
|
+
math.innerHTML = chunkLK35P6RE_cjs.sanitizeMathMl(mathml);
|
|
1371
1372
|
row.appendChild(math);
|
|
1372
1373
|
if (segment.equationNumber) {
|
|
1373
|
-
const number =
|
|
1374
|
+
const number = chunkZH35NTNU_cjs.createEl(context.document, "span", "pptxv-equation-number", {
|
|
1374
1375
|
whiteSpace: "nowrap"
|
|
1375
1376
|
});
|
|
1376
1377
|
number.textContent = `(${segment.equationNumber})`;
|
|
@@ -1384,8 +1385,8 @@ function renderExtrusionOverlay(doc, element) {
|
|
|
1384
1385
|
if (!pptx.hasShapeProperties(element)) {
|
|
1385
1386
|
return null;
|
|
1386
1387
|
}
|
|
1387
|
-
const fill =
|
|
1388
|
-
const data =
|
|
1388
|
+
const fill = chunk2SO3BL67_cjs.getComputedFillStyle(element)?.backgroundColor;
|
|
1389
|
+
const data = chunkLK35P6RE_cjs.build3DExtrusionData(
|
|
1389
1390
|
element.shapeStyle?.shape3d,
|
|
1390
1391
|
element.shapeStyle?.scene3d,
|
|
1391
1392
|
fill,
|
|
@@ -1395,11 +1396,11 @@ function renderExtrusionOverlay(doc, element) {
|
|
|
1395
1396
|
if (!data.hasExtrusion || data.panels.length === 0) {
|
|
1396
1397
|
return null;
|
|
1397
1398
|
}
|
|
1398
|
-
const wrapper =
|
|
1399
|
+
const wrapper = chunkZH35NTNU_cjs.createEl(doc, "div", "pptxv-extrusion-3d", toCss(data.wrapperStyle));
|
|
1399
1400
|
wrapper.setAttribute("aria-hidden", "true");
|
|
1400
1401
|
for (const panel of data.panels) {
|
|
1401
1402
|
wrapper.appendChild(
|
|
1402
|
-
|
|
1403
|
+
chunkZH35NTNU_cjs.createEl(
|
|
1403
1404
|
doc,
|
|
1404
1405
|
"div",
|
|
1405
1406
|
`pptxv-extrusion-3d-panel pptxv-extrusion-3d-panel--${panel.side}`,
|
|
@@ -1409,7 +1410,7 @@ function renderExtrusionOverlay(doc, element) {
|
|
|
1409
1410
|
}
|
|
1410
1411
|
if (data.materialOverlay) {
|
|
1411
1412
|
wrapper.appendChild(
|
|
1412
|
-
|
|
1413
|
+
chunkZH35NTNU_cjs.createEl(doc, "div", "pptxv-extrusion-3d-material", {
|
|
1413
1414
|
position: "absolute",
|
|
1414
1415
|
inset: 0,
|
|
1415
1416
|
backgroundImage: data.materialOverlay,
|
|
@@ -1447,18 +1448,18 @@ function appendOwnReflection(doc, host, element, mediaDataUrls, suppressOwnRefle
|
|
|
1447
1448
|
if (suppressOwnReflection) {
|
|
1448
1449
|
return;
|
|
1449
1450
|
}
|
|
1450
|
-
const wrapperStyle =
|
|
1451
|
+
const wrapperStyle = chunk2SO3BL67_cjs.getComputedEffectStyle(element).reflection;
|
|
1451
1452
|
if (!wrapperStyle) {
|
|
1452
1453
|
return;
|
|
1453
1454
|
}
|
|
1454
|
-
const layer =
|
|
1455
|
+
const layer = chunkZH35NTNU_cjs.createEl(doc, "div", "pptxv-reflection", { ...wrapperStyle });
|
|
1455
1456
|
layer.setAttribute("aria-hidden", "true");
|
|
1456
1457
|
layer.appendChild(buildReflectionMirrorContent(doc, element, mediaDataUrls, void 0, true));
|
|
1457
1458
|
host.appendChild(layer);
|
|
1458
1459
|
}
|
|
1459
1460
|
function buildReflectionMirrorContent(doc, element, mediaDataUrls, parentGroupFill, suppressOwnReflection = false) {
|
|
1460
1461
|
if (element.type === "group") {
|
|
1461
|
-
const wrap =
|
|
1462
|
+
const wrap = chunkZH35NTNU_cjs.createEl(doc, "div", void 0, {
|
|
1462
1463
|
position: "relative",
|
|
1463
1464
|
width: "100%",
|
|
1464
1465
|
height: "100%",
|
|
@@ -1471,9 +1472,9 @@ function buildReflectionMirrorContent(doc, element, mediaDataUrls, parentGroupFi
|
|
|
1471
1472
|
if (groupFilterDefs) {
|
|
1472
1473
|
wrap.appendChild(groupFilterDefs);
|
|
1473
1474
|
}
|
|
1474
|
-
const childParentFill =
|
|
1475
|
+
const childParentFill = chunkLK35P6RE_cjs.getGroupChildParentFill(element, parentGroupFill);
|
|
1475
1476
|
for (const child of element.children ?? []) {
|
|
1476
|
-
const childWrap =
|
|
1477
|
+
const childWrap = chunkZH35NTNU_cjs.createEl(doc, "div", void 0, chunkLK35P6RE_cjs.getContainerStyle(child, 0));
|
|
1477
1478
|
childWrap.appendChild(
|
|
1478
1479
|
buildReflectionMirrorContent(doc, child, mediaDataUrls, childParentFill)
|
|
1479
1480
|
);
|
|
@@ -1482,15 +1483,19 @@ function buildReflectionMirrorContent(doc, element, mediaDataUrls, parentGroupFi
|
|
|
1482
1483
|
appendOwnReflection(doc, wrap, element, mediaDataUrls, suppressOwnReflection);
|
|
1483
1484
|
return wrap;
|
|
1484
1485
|
}
|
|
1485
|
-
const box =
|
|
1486
|
+
const box = chunkZH35NTNU_cjs.createEl(doc, "div", void 0, {
|
|
1486
1487
|
width: "100%",
|
|
1487
1488
|
height: "100%",
|
|
1488
1489
|
...getShapeFillStrokeStyle(element)
|
|
1489
1490
|
});
|
|
1490
|
-
const inheritedFill =
|
|
1491
|
+
const inheritedFill = chunkLK35P6RE_cjs.resolveGroupChildFill(element, parentGroupFill);
|
|
1491
1492
|
if (inheritedFill) {
|
|
1492
1493
|
applyInheritedFill(box, inheritedFill);
|
|
1493
1494
|
}
|
|
1495
|
+
const fillLayer = renderShapeFillLayer(doc, element);
|
|
1496
|
+
if (fillLayer) {
|
|
1497
|
+
box.appendChild(fillLayer);
|
|
1498
|
+
}
|
|
1494
1499
|
const subpathFill = renderShapeSubpathFillOverlay(doc, element);
|
|
1495
1500
|
if (subpathFill) {
|
|
1496
1501
|
box.appendChild(subpathFill);
|
|
@@ -1508,12 +1513,12 @@ function buildReflectionMirrorContent(doc, element, mediaDataUrls, parentGroupFi
|
|
|
1508
1513
|
box.appendChild(gradientOutline);
|
|
1509
1514
|
}
|
|
1510
1515
|
if (pptx.isImageLikeElement(element)) {
|
|
1511
|
-
const src =
|
|
1516
|
+
const src = chunkLK35P6RE_cjs.getImageSrc(element, new Map(mediaDataUrls));
|
|
1512
1517
|
if (src) {
|
|
1513
|
-
const img =
|
|
1518
|
+
const img = chunkZH35NTNU_cjs.createEl(doc, "img", void 0, {
|
|
1514
1519
|
width: "100%",
|
|
1515
1520
|
height: "100%",
|
|
1516
|
-
...
|
|
1521
|
+
...chunkLK35P6RE_cjs.getImageFitStyle(element)
|
|
1517
1522
|
});
|
|
1518
1523
|
img.setAttribute("src", src);
|
|
1519
1524
|
img.setAttribute("alt", "");
|
|
@@ -1523,7 +1528,7 @@ function buildReflectionMirrorContent(doc, element, mediaDataUrls, parentGroupFi
|
|
|
1523
1528
|
appendOwnReflection(doc, box, element, mediaDataUrls, suppressOwnReflection);
|
|
1524
1529
|
return box;
|
|
1525
1530
|
}
|
|
1526
|
-
const paragraphs =
|
|
1531
|
+
const paragraphs = chunkLK35P6RE_cjs.buildParagraphs(element);
|
|
1527
1532
|
const hasText = paragraphs.some((p) => p.runs.length > 0 || p.bulletMarker !== void 0);
|
|
1528
1533
|
if (hasText) {
|
|
1529
1534
|
box.appendChild(renderTextBlock(doc, paragraphs, getTextBlockStyle(element)));
|
|
@@ -1535,29 +1540,29 @@ function buildReflectionMirrorContent(doc, element, mediaDataUrls, parentGroupFi
|
|
|
1535
1540
|
// src/pptx/dom/elements/shape-filter-defs.ts
|
|
1536
1541
|
var OUTLINE_SVG_STYLE = "position:absolute;inset:0;width:100%;height:100%;min-width:1px;min-height:1px;overflow:visible;pointer-events:none";
|
|
1537
1542
|
function renderShapeFilterDefs(doc, element) {
|
|
1538
|
-
const style =
|
|
1543
|
+
const style = chunk2SO3BL67_cjs.getEffectStyleSource(element);
|
|
1539
1544
|
if (!style) {
|
|
1540
1545
|
return null;
|
|
1541
1546
|
}
|
|
1542
1547
|
const markups = [];
|
|
1543
|
-
const duotone =
|
|
1548
|
+
const duotone = chunk2SO3BL67_cjs.getDuotoneSvgFilter(style, element.id);
|
|
1544
1549
|
if (duotone) {
|
|
1545
1550
|
markups.push(duotone.filterMarkup);
|
|
1546
1551
|
}
|
|
1547
|
-
const
|
|
1548
|
-
if (
|
|
1549
|
-
markups.push(
|
|
1552
|
+
const effectDefs = chunk2SO3BL67_cjs.getShapeEffectFilterDefs(element);
|
|
1553
|
+
if (effectDefs) {
|
|
1554
|
+
markups.push(effectDefs.filterMarkup);
|
|
1550
1555
|
}
|
|
1551
|
-
const bevelLighting =
|
|
1556
|
+
const bevelLighting = chunkLK35P6RE_cjs.getBevelLightingSvgFilter(element);
|
|
1552
1557
|
if (bevelLighting) {
|
|
1553
1558
|
markups.push(bevelLighting.filterMarkup);
|
|
1554
1559
|
}
|
|
1555
1560
|
if (markups.length === 0) {
|
|
1556
1561
|
return null;
|
|
1557
1562
|
}
|
|
1558
|
-
const svg =
|
|
1563
|
+
const svg = chunkZH35NTNU_cjs.createSvgEl(doc, "svg", { width: 0, height: 0, "aria-hidden": "true" });
|
|
1559
1564
|
svg.setAttribute("style", "position:absolute;width:0;height:0;overflow:hidden");
|
|
1560
|
-
const defs =
|
|
1565
|
+
const defs = chunkZH35NTNU_cjs.createSvgEl(doc, "defs");
|
|
1561
1566
|
defs.innerHTML = markups.join("");
|
|
1562
1567
|
svg.appendChild(defs);
|
|
1563
1568
|
return svg;
|
|
@@ -1566,11 +1571,11 @@ function renderShapeFillOverlay(doc, element) {
|
|
|
1566
1571
|
if (!pptx.hasShapeProperties(element)) {
|
|
1567
1572
|
return null;
|
|
1568
1573
|
}
|
|
1569
|
-
const overlay =
|
|
1574
|
+
const overlay = chunk2SO3BL67_cjs.getComputedEffectStyle(element).fillOverlay;
|
|
1570
1575
|
if (!overlay) {
|
|
1571
1576
|
return null;
|
|
1572
1577
|
}
|
|
1573
|
-
const layer =
|
|
1578
|
+
const layer = chunkZH35NTNU_cjs.createEl(doc, "div", "pptxv-fill-overlay", {
|
|
1574
1579
|
position: "absolute",
|
|
1575
1580
|
inset: 0,
|
|
1576
1581
|
background: overlay.color,
|
|
@@ -1581,77 +1586,94 @@ function renderShapeFillOverlay(doc, element) {
|
|
|
1581
1586
|
return layer;
|
|
1582
1587
|
}
|
|
1583
1588
|
function renderReflectionOverlay(doc, element, mediaDataUrls) {
|
|
1584
|
-
const wrapperStyle =
|
|
1589
|
+
const wrapperStyle = chunk2SO3BL67_cjs.getComputedEffectStyle(element).reflection;
|
|
1585
1590
|
if (!wrapperStyle) {
|
|
1586
1591
|
return null;
|
|
1587
1592
|
}
|
|
1588
|
-
const layer =
|
|
1593
|
+
const layer = chunkZH35NTNU_cjs.createEl(doc, "div", "pptxv-reflection", { ...wrapperStyle });
|
|
1589
1594
|
layer.setAttribute("aria-hidden", "true");
|
|
1590
1595
|
layer.appendChild(buildReflectionMirrorContent(doc, element, mediaDataUrls, void 0, true));
|
|
1591
1596
|
return layer;
|
|
1592
1597
|
}
|
|
1593
1598
|
function renderHollowHitOutline(doc, element) {
|
|
1594
|
-
const hit =
|
|
1599
|
+
const hit = chunkLK35P6RE_cjs.buildHollowHitOutline(element);
|
|
1595
1600
|
if (!hit) {
|
|
1596
1601
|
return null;
|
|
1597
1602
|
}
|
|
1598
|
-
const svg =
|
|
1603
|
+
const svg = chunkZH35NTNU_cjs.createSvgEl(doc, "svg", {
|
|
1599
1604
|
"aria-hidden": "true",
|
|
1600
|
-
viewBox:
|
|
1605
|
+
viewBox: chunk2SO3BL67_cjs.strokeOutlineViewBox(element),
|
|
1601
1606
|
preserveAspectRatio: "none"
|
|
1602
1607
|
});
|
|
1603
1608
|
svg.setAttribute("style", OUTLINE_SVG_STYLE);
|
|
1604
|
-
const path =
|
|
1609
|
+
const path = chunkZH35NTNU_cjs.createSvgEl(doc, "path", {
|
|
1605
1610
|
d: hit.d,
|
|
1606
|
-
fill:
|
|
1607
|
-
stroke:
|
|
1611
|
+
fill: hit.fill,
|
|
1612
|
+
stroke: hit.stroke,
|
|
1608
1613
|
"stroke-width": hit.strokeWidth
|
|
1609
1614
|
});
|
|
1610
|
-
path.setAttribute("style",
|
|
1615
|
+
path.setAttribute("style", `pointer-events:${hit.pointerEvents}`);
|
|
1611
1616
|
svg.appendChild(path);
|
|
1617
|
+
if (hit.textCss) {
|
|
1618
|
+
const style = chunkZH35NTNU_cjs.createSvgEl(doc, "style", {});
|
|
1619
|
+
style.textContent = hit.textCss;
|
|
1620
|
+
svg.appendChild(style);
|
|
1621
|
+
}
|
|
1612
1622
|
return svg;
|
|
1613
1623
|
}
|
|
1624
|
+
function renderShapeFillLayer(doc, element) {
|
|
1625
|
+
const layer = chunkLK35P6RE_cjs.getSilhouetteFillLayer(element);
|
|
1626
|
+
if (!layer) {
|
|
1627
|
+
return null;
|
|
1628
|
+
}
|
|
1629
|
+
const div = chunkZH35NTNU_cjs.createEl(doc, "div", "pptx-vanilla-silhouette-fill", { ...layer.style });
|
|
1630
|
+
div.setAttribute("aria-hidden", "true");
|
|
1631
|
+
return div;
|
|
1632
|
+
}
|
|
1614
1633
|
function renderShapeSubpathFillOverlay(doc, element) {
|
|
1615
|
-
const overlay =
|
|
1634
|
+
const overlay = chunk2SO3BL67_cjs.buildSubpathFillOverlay(element);
|
|
1616
1635
|
if (!overlay) {
|
|
1617
1636
|
return null;
|
|
1618
1637
|
}
|
|
1619
|
-
const svg =
|
|
1638
|
+
const svg = chunkZH35NTNU_cjs.createSvgEl(doc, "svg", {
|
|
1620
1639
|
class: "pptx-vanilla-subpath-fill",
|
|
1621
1640
|
"aria-hidden": "true",
|
|
1622
1641
|
viewBox: `0 0 ${overlay.viewBoxWidth} ${overlay.viewBoxHeight}`,
|
|
1623
1642
|
preserveAspectRatio: "none"
|
|
1624
1643
|
});
|
|
1625
1644
|
svg.setAttribute("style", "position:absolute;inset:0;width:100%;height:100%");
|
|
1645
|
+
if (overlay.silhouette) {
|
|
1646
|
+
svg.setAttribute("data-pptx-silhouette-fill", "");
|
|
1647
|
+
}
|
|
1626
1648
|
for (const paint of overlay.paints) {
|
|
1627
|
-
const path =
|
|
1649
|
+
const path = chunkZH35NTNU_cjs.createSvgEl(doc, "path", { d: paint.d, fill: paint.fill, stroke: "none" });
|
|
1628
1650
|
svg.appendChild(path);
|
|
1629
1651
|
}
|
|
1630
1652
|
return svg;
|
|
1631
1653
|
}
|
|
1632
1654
|
function renderStrokeOutline(doc, element) {
|
|
1633
|
-
const outline =
|
|
1655
|
+
const outline = chunk2SO3BL67_cjs.buildStrokeOutline(element);
|
|
1634
1656
|
if (!outline) {
|
|
1635
1657
|
return null;
|
|
1636
1658
|
}
|
|
1637
|
-
const svg =
|
|
1659
|
+
const svg = chunkZH35NTNU_cjs.createSvgEl(doc, "svg", {
|
|
1638
1660
|
class: "pptx-vanilla-gradient-outline",
|
|
1639
1661
|
"data-pptx-outline": "",
|
|
1640
1662
|
"aria-hidden": "true",
|
|
1641
|
-
viewBox:
|
|
1663
|
+
viewBox: chunk2SO3BL67_cjs.strokeOutlineViewBox(element),
|
|
1642
1664
|
preserveAspectRatio: "none"
|
|
1643
1665
|
});
|
|
1644
1666
|
svg.setAttribute("style", OUTLINE_SVG_STYLE);
|
|
1645
1667
|
if (outline.paint) {
|
|
1646
|
-
const defs =
|
|
1647
|
-
if (
|
|
1648
|
-
const pattern =
|
|
1668
|
+
const defs = chunkZH35NTNU_cjs.createSvgEl(doc, "defs");
|
|
1669
|
+
if (chunk2SO3BL67_cjs.isPatternPaint(outline.paint)) {
|
|
1670
|
+
const pattern = chunkZH35NTNU_cjs.createSvgEl(doc, "pattern", {
|
|
1649
1671
|
id: outline.paint.id,
|
|
1650
1672
|
width: outline.paint.width,
|
|
1651
1673
|
height: outline.paint.height,
|
|
1652
1674
|
patternUnits: "userSpaceOnUse"
|
|
1653
1675
|
});
|
|
1654
|
-
const image =
|
|
1676
|
+
const image = chunkZH35NTNU_cjs.createSvgEl(doc, "image", {
|
|
1655
1677
|
href: outline.paint.href,
|
|
1656
1678
|
width: outline.paint.width,
|
|
1657
1679
|
height: outline.paint.height
|
|
@@ -1659,12 +1681,12 @@ function renderStrokeOutline(doc, element) {
|
|
|
1659
1681
|
pattern.appendChild(image);
|
|
1660
1682
|
defs.appendChild(pattern);
|
|
1661
1683
|
} else {
|
|
1662
|
-
defs.innerHTML =
|
|
1684
|
+
defs.innerHTML = chunk2SO3BL67_cjs.svgGradientMarkup(outline.paint);
|
|
1663
1685
|
}
|
|
1664
1686
|
svg.appendChild(defs);
|
|
1665
1687
|
}
|
|
1666
1688
|
for (const strand of outline.strands) {
|
|
1667
|
-
const path =
|
|
1689
|
+
const path = chunkZH35NTNU_cjs.createSvgEl(doc, "path", {
|
|
1668
1690
|
d: strand.d ?? outline.d,
|
|
1669
1691
|
fill: "none",
|
|
1670
1692
|
stroke: outline.stroke,
|
|
@@ -1685,7 +1707,7 @@ function renderStrokeOutline(doc, element) {
|
|
|
1685
1707
|
svg.appendChild(path);
|
|
1686
1708
|
}
|
|
1687
1709
|
if (outline.markers) {
|
|
1688
|
-
const defs =
|
|
1710
|
+
const defs = chunkZH35NTNU_cjs.createSvgEl(doc, "defs");
|
|
1689
1711
|
defs.innerHTML = outline.markers.markup;
|
|
1690
1712
|
svg.prepend(defs);
|
|
1691
1713
|
const path = svg.querySelector(":scope > path");
|
|
@@ -1721,14 +1743,14 @@ function indexRenderedNodes(root) {
|
|
|
1721
1743
|
return byId;
|
|
1722
1744
|
}
|
|
1723
1745
|
function paintInheritedFill(node, element, parentGroupFill) {
|
|
1724
|
-
const inherited =
|
|
1746
|
+
const inherited = chunkLK35P6RE_cjs.resolveGroupChildFill(element, parentGroupFill);
|
|
1725
1747
|
if (inherited) {
|
|
1726
1748
|
applyGroupChildFill(node, inherited);
|
|
1727
1749
|
}
|
|
1728
1750
|
if (element.type !== "group") {
|
|
1729
1751
|
return;
|
|
1730
1752
|
}
|
|
1731
|
-
const childFill =
|
|
1753
|
+
const childFill = chunkLK35P6RE_cjs.getGroupChildParentFill(element, parentGroupFill);
|
|
1732
1754
|
if (!childFill) {
|
|
1733
1755
|
return;
|
|
1734
1756
|
}
|
|
@@ -1741,8 +1763,8 @@ function paintInheritedFill(node, element, parentGroupFill) {
|
|
|
1741
1763
|
}
|
|
1742
1764
|
}
|
|
1743
1765
|
var renderGroupElement = (element, zIndex, context) => {
|
|
1744
|
-
const el =
|
|
1745
|
-
...
|
|
1766
|
+
const el = chunkZH35NTNU_cjs.createEl(context.document, "div", "pptxv-element pptxv-group", {
|
|
1767
|
+
...chunkLK35P6RE_cjs.getContainerStyle(element, zIndex),
|
|
1746
1768
|
// A group paints no fill/outline of its own, but `p:grpSpPr/a:effectLst`
|
|
1747
1769
|
// DOES carry a shadow/glow/soft-edge for the group's own composite
|
|
1748
1770
|
// raster (see shared `getComputedEffectStyle`), expressed as `filter` /
|
|
@@ -1759,7 +1781,7 @@ var renderGroupElement = (element, zIndex, context) => {
|
|
|
1759
1781
|
el.appendChild(reflection);
|
|
1760
1782
|
}
|
|
1761
1783
|
if (element.type === "group" && element.children?.length) {
|
|
1762
|
-
const parentGroupFill =
|
|
1784
|
+
const parentGroupFill = chunkLK35P6RE_cjs.getGroupChildParentFill(element);
|
|
1763
1785
|
element.children.forEach((child, index) => {
|
|
1764
1786
|
const childEl = context.renderElement(child, index);
|
|
1765
1787
|
if (childEl) {
|
|
@@ -1774,20 +1796,20 @@ var renderGroupElement = (element, zIndex, context) => {
|
|
|
1774
1796
|
// src/pptx/dom/elements/image.ts
|
|
1775
1797
|
var renderImageElement = (element, zIndex, context) => {
|
|
1776
1798
|
const doc = context.document;
|
|
1777
|
-
const geometry = element.type === "image" || element.type === "picture" ?
|
|
1799
|
+
const geometry = element.type === "image" || element.type === "picture" ? chunkLK35P6RE_cjs.resolveShapeGeometry(element) : void 0;
|
|
1778
1800
|
const geometryClipPath = geometry?.kind === "clipPath" ? geometry.clipPath : void 0;
|
|
1779
|
-
const cropShapeClipPath = element.type === "image" || element.type === "picture" ?
|
|
1780
|
-
const layers =
|
|
1781
|
-
overflow:
|
|
1801
|
+
const cropShapeClipPath = element.type === "image" || element.type === "picture" ? chunkLK35P6RE_cjs.getCropShapeClipPath(element.cropShape, element.width, element.height) : void 0;
|
|
1802
|
+
const layers = chunkLK35P6RE_cjs.getPictureFrameLayers(element, {
|
|
1803
|
+
overflow: chunkLK35P6RE_cjs.getImageOverflow(element),
|
|
1782
1804
|
borderRadius: geometry?.kind === "borderRadius" ? geometry.radius : void 0,
|
|
1783
1805
|
clipPath: geometryClipPath ?? cropShapeClipPath
|
|
1784
1806
|
});
|
|
1785
|
-
const el =
|
|
1786
|
-
...
|
|
1807
|
+
const el = chunkZH35NTNU_cjs.createEl(doc, "div", "pptxv-element pptxv-image", {
|
|
1808
|
+
...chunkLK35P6RE_cjs.getContainerStyle(element, zIndex),
|
|
1787
1809
|
...layers.box
|
|
1788
1810
|
});
|
|
1789
1811
|
el.dataset.elementId = element.id;
|
|
1790
|
-
const surface = layers.surface ?
|
|
1812
|
+
const surface = layers.surface ? chunkZH35NTNU_cjs.createEl(doc, "div", "pptxv-image-surface", layers.surface) : el;
|
|
1791
1813
|
if (surface !== el) {
|
|
1792
1814
|
el.appendChild(surface);
|
|
1793
1815
|
const outline = renderStrokeOutline(doc, element);
|
|
@@ -1795,36 +1817,36 @@ var renderImageElement = (element, zIndex, context) => {
|
|
|
1795
1817
|
el.appendChild(outline);
|
|
1796
1818
|
}
|
|
1797
1819
|
}
|
|
1798
|
-
const src =
|
|
1820
|
+
const src = chunkLK35P6RE_cjs.getImageSrc(element, new Map(context.mediaDataUrls));
|
|
1799
1821
|
if (!src) {
|
|
1800
1822
|
return el;
|
|
1801
1823
|
}
|
|
1802
|
-
const fx =
|
|
1824
|
+
const fx = chunkLK35P6RE_cjs.getComputedImageStyle(element);
|
|
1803
1825
|
for (const f of fx.svgFilters) {
|
|
1804
|
-
const svg =
|
|
1826
|
+
const svg = chunkZH35NTNU_cjs.createSvgEl(doc, "svg", { width: 0, height: 0, "aria-hidden": "true" });
|
|
1805
1827
|
svg.setAttribute("style", "position:absolute;width:0;height:0;overflow:hidden");
|
|
1806
|
-
const defs =
|
|
1807
|
-
const filter =
|
|
1808
|
-
|
|
1828
|
+
const defs = chunkZH35NTNU_cjs.createSvgEl(doc, "defs");
|
|
1829
|
+
const filter = chunkZH35NTNU_cjs.createSvgEl(doc, "filter");
|
|
1830
|
+
chunkZH35NTNU_cjs.setSvgAttrs(filter, { id: f.id, "color-interpolation-filters": "sRGB" });
|
|
1809
1831
|
filter.innerHTML = f.markup;
|
|
1810
1832
|
defs.appendChild(filter);
|
|
1811
1833
|
svg.appendChild(defs);
|
|
1812
1834
|
surface.appendChild(svg);
|
|
1813
1835
|
}
|
|
1814
1836
|
const reflection = renderReflectionOverlay(doc, element, context.mediaDataUrls);
|
|
1815
|
-
const tiling =
|
|
1837
|
+
const tiling = chunkLK35P6RE_cjs.getImageTilingStyle(element, chunkLK35P6RE_cjs.getCachedNativeImageSize(src));
|
|
1816
1838
|
if (tiling) {
|
|
1817
|
-
const tile =
|
|
1839
|
+
const tile = chunkZH35NTNU_cjs.createEl(doc, "div", "pptxv-image-tile", tiling);
|
|
1818
1840
|
if (fx.filter) {
|
|
1819
1841
|
tile.style.filter = fx.filter;
|
|
1820
1842
|
}
|
|
1821
1843
|
if (fx.opacity !== void 0) {
|
|
1822
1844
|
tile.style.opacity = String(fx.opacity);
|
|
1823
1845
|
}
|
|
1824
|
-
if (!
|
|
1825
|
-
void
|
|
1846
|
+
if (!chunkLK35P6RE_cjs.getCachedNativeImageSize(src)) {
|
|
1847
|
+
void chunkLK35P6RE_cjs.probeNativeImageSize(src).then((size) => {
|
|
1826
1848
|
if (size) {
|
|
1827
|
-
|
|
1849
|
+
chunkZH35NTNU_cjs.applyStyleMap(tile, chunkLK35P6RE_cjs.getImageTilingStyle(element, size) ?? {});
|
|
1828
1850
|
}
|
|
1829
1851
|
return void 0;
|
|
1830
1852
|
});
|
|
@@ -1835,9 +1857,9 @@ var renderImageElement = (element, zIndex, context) => {
|
|
|
1835
1857
|
}
|
|
1836
1858
|
return el;
|
|
1837
1859
|
}
|
|
1838
|
-
const fit =
|
|
1839
|
-
const fillCounterTransform =
|
|
1840
|
-
const img =
|
|
1860
|
+
const fit = chunkLK35P6RE_cjs.getImageFitStyle(element);
|
|
1861
|
+
const fillCounterTransform = chunkLK35P6RE_cjs.getImageFillCounterTransform(element, Boolean(fit.transform));
|
|
1862
|
+
const img = chunkZH35NTNU_cjs.createEl(doc, "img", void 0, {
|
|
1841
1863
|
...fit,
|
|
1842
1864
|
display: "block",
|
|
1843
1865
|
...fillCounterTransform ? { transform: fillCounterTransform, transformOrigin: "center" } : {}
|
|
@@ -1855,17 +1877,17 @@ var renderImageElement = (element, zIndex, context) => {
|
|
|
1855
1877
|
if (element.type === "image" || element.type === "picture") {
|
|
1856
1878
|
const clrChange = element.imageEffects?.clrChange;
|
|
1857
1879
|
if (clrChange) {
|
|
1858
|
-
void
|
|
1880
|
+
void chunkLK35P6RE_cjs.resolveColorChangedImageSource(src, clrChange).then((resolved) => {
|
|
1859
1881
|
if (img.src === src || img.getAttribute("src") === src) {
|
|
1860
1882
|
img.src = resolved;
|
|
1861
1883
|
}
|
|
1862
1884
|
return void 0;
|
|
1863
1885
|
});
|
|
1864
1886
|
}
|
|
1865
|
-
const wash =
|
|
1887
|
+
const wash = chunkLK35P6RE_cjs.getImageColorWashStyle(element.imageEffects?.colorWash);
|
|
1866
1888
|
if (wash) {
|
|
1867
1889
|
surface.appendChild(
|
|
1868
|
-
|
|
1890
|
+
chunkZH35NTNU_cjs.createEl(doc, "div", "pptxv-image-color-wash", {
|
|
1869
1891
|
position: "absolute",
|
|
1870
1892
|
inset: "0",
|
|
1871
1893
|
pointerEvents: "none",
|
|
@@ -1887,11 +1909,11 @@ var renderInkElement = (element, zIndex, context) => {
|
|
|
1887
1909
|
return null;
|
|
1888
1910
|
}
|
|
1889
1911
|
const doc = context.document;
|
|
1890
|
-
const wrapper =
|
|
1912
|
+
const wrapper = chunkZH35NTNU_cjs.createEl(
|
|
1891
1913
|
doc,
|
|
1892
1914
|
"div",
|
|
1893
1915
|
"pptxv-element pptxv-ink",
|
|
1894
|
-
|
|
1916
|
+
chunkLK35P6RE_cjs.getContainerStyle(element, zIndex)
|
|
1895
1917
|
);
|
|
1896
1918
|
wrapper.dataset.elementId = element.id;
|
|
1897
1919
|
const paths = element.inkPaths;
|
|
@@ -1900,7 +1922,7 @@ var renderInkElement = (element, zIndex, context) => {
|
|
|
1900
1922
|
}
|
|
1901
1923
|
const w = Math.max(element.width, 1);
|
|
1902
1924
|
const h = Math.max(element.height, 1);
|
|
1903
|
-
const svg =
|
|
1925
|
+
const svg = chunkZH35NTNU_cjs.createSvgEl(doc, "svg", {
|
|
1904
1926
|
viewBox: `0 0 ${w} ${h}`,
|
|
1905
1927
|
preserveAspectRatio: "none"
|
|
1906
1928
|
});
|
|
@@ -1908,11 +1930,11 @@ var renderInkElement = (element, zIndex, context) => {
|
|
|
1908
1930
|
svg.setAttribute("style", "width:100%;height:100%;pointer-events:none;display:block");
|
|
1909
1931
|
const replayStyles = context.presenting ? chunkNTXHQHCS_cjs.getInkReplayStyles(element) : [];
|
|
1910
1932
|
if (context.presenting) {
|
|
1911
|
-
const keyframes =
|
|
1933
|
+
const keyframes = chunkZH35NTNU_cjs.createSvgEl(doc, "style");
|
|
1912
1934
|
keyframes.textContent = chunkNTXHQHCS_cjs.INK_REPLAY_KEYFRAMES;
|
|
1913
1935
|
svg.appendChild(keyframes);
|
|
1914
1936
|
}
|
|
1915
|
-
const views =
|
|
1937
|
+
const views = chunkLK35P6RE_cjs.buildInkGroupStrokes(element, { color: chunk2SO3BL67_cjs.DEFAULT_STROKE_COLOR, width: 1 });
|
|
1916
1938
|
for (const [i, view] of views.entries()) {
|
|
1917
1939
|
svg.appendChild(buildStrokeSvg(doc, view, replayStyles[i]));
|
|
1918
1940
|
}
|
|
@@ -1935,7 +1957,7 @@ function mediaFullscreenResetStyle(baseStyle) {
|
|
|
1935
1957
|
};
|
|
1936
1958
|
}
|
|
1937
1959
|
function buildFullscreenStopButton(doc, label, onStop) {
|
|
1938
|
-
const button =
|
|
1960
|
+
const button = chunkZH35NTNU_cjs.createEl(doc, "button", "pptxv-media-fullscreen-stop", {
|
|
1939
1961
|
position: "absolute",
|
|
1940
1962
|
bottom: "12px",
|
|
1941
1963
|
right: "12px",
|
|
@@ -1951,14 +1973,14 @@ function buildFullscreenStopButton(doc, label, onStop) {
|
|
|
1951
1973
|
button.type = "button";
|
|
1952
1974
|
button.setAttribute("aria-label", label);
|
|
1953
1975
|
button.addEventListener("click", onStop);
|
|
1954
|
-
const icon =
|
|
1976
|
+
const icon = chunkZH35NTNU_cjs.createSvgEl(doc, "svg", {
|
|
1955
1977
|
width: 18,
|
|
1956
1978
|
height: 18,
|
|
1957
1979
|
viewBox: "0 0 24 24",
|
|
1958
1980
|
fill: "currentColor",
|
|
1959
1981
|
stroke: "none"
|
|
1960
1982
|
});
|
|
1961
|
-
icon.appendChild(
|
|
1983
|
+
icon.appendChild(chunkZH35NTNU_cjs.createSvgEl(doc, "rect", { x: 6, y: 6, width: 12, height: 12, rx: 1 }));
|
|
1962
1984
|
button.appendChild(icon);
|
|
1963
1985
|
return button;
|
|
1964
1986
|
}
|
|
@@ -1966,12 +1988,12 @@ function wireMediaFullscreenOverlay(doc, container, mediaNode, element, context,
|
|
|
1966
1988
|
let stopButton = null;
|
|
1967
1989
|
const update = (playing) => {
|
|
1968
1990
|
const input = { fullScreen: element.fullScreen, presenting: context.presenting, playing };
|
|
1969
|
-
const active =
|
|
1970
|
-
|
|
1991
|
+
const active = chunkLK35P6RE_cjs.isMediaFullscreenActive(input);
|
|
1992
|
+
chunkZH35NTNU_cjs.applyStyleMap(
|
|
1971
1993
|
container,
|
|
1972
|
-
active ?
|
|
1994
|
+
active ? chunkLK35P6RE_cjs.MEDIA_FULLSCREEN_OVERLAY_STYLE : mediaFullscreenResetStyle(baseStyle)
|
|
1973
1995
|
);
|
|
1974
|
-
if (
|
|
1996
|
+
if (chunkLK35P6RE_cjs.shouldShowMediaFullscreenStopButton(input)) {
|
|
1975
1997
|
if (!stopButton) {
|
|
1976
1998
|
stopButton = buildFullscreenStopButton(
|
|
1977
1999
|
doc,
|
|
@@ -1996,12 +2018,12 @@ function wireMediaFullscreenOverlay(doc, container, mediaNode, element, context,
|
|
|
1996
2018
|
|
|
1997
2019
|
// src/pptx/dom/elements/media.ts
|
|
1998
2020
|
function applyMediaPresentingState(el, presenting, playback) {
|
|
1999
|
-
|
|
2021
|
+
chunkLK35P6RE_cjs.applyMediaPlaybackAttributes(el, playback);
|
|
2000
2022
|
if (presenting) {
|
|
2001
|
-
|
|
2002
|
-
|
|
2023
|
+
chunkLK35P6RE_cjs.startMediaAutoplay(el, { trimStartMs: playback.trimStartMs });
|
|
2024
|
+
chunkLK35P6RE_cjs.scheduleMediaTrimAndFade(el, {
|
|
2003
2025
|
...playback,
|
|
2004
|
-
volume:
|
|
2026
|
+
volume: chunkLK35P6RE_cjs.mediaPlaybackAttributes(playback).volume
|
|
2005
2027
|
});
|
|
2006
2028
|
} else if (!el.paused) {
|
|
2007
2029
|
el.pause();
|
|
@@ -2011,20 +2033,31 @@ var renderMediaElement = (element, zIndex, context) => {
|
|
|
2011
2033
|
if (element.type !== "media") {
|
|
2012
2034
|
return null;
|
|
2013
2035
|
}
|
|
2014
|
-
const surface =
|
|
2036
|
+
const surface = chunkLK35P6RE_cjs.mediaSurfaceOf({
|
|
2015
2037
|
interactive: context.interactive === true || context.reading === true,
|
|
2016
2038
|
presenting: context.presenting
|
|
2017
2039
|
});
|
|
2018
|
-
const showTransport =
|
|
2040
|
+
const showTransport = chunkLK35P6RE_cjs.mediaTransportVisible({
|
|
2041
|
+
...surface,
|
|
2042
|
+
canvasTransport: context.reading === true
|
|
2043
|
+
});
|
|
2044
|
+
const attachAuthoringBar = (host, media) => {
|
|
2045
|
+
if (chunkLK35P6RE_cjs.mediaControlBarEnabled({ ...surface, reading: context.reading === true })) {
|
|
2046
|
+
chunkLK35P6RE_cjs.attachMediaControlBar(host, media, {
|
|
2047
|
+
t: context.t,
|
|
2048
|
+
selected: context.selectedElementIds?.has(element.id) === true
|
|
2049
|
+
});
|
|
2050
|
+
}
|
|
2051
|
+
};
|
|
2019
2052
|
const doc = context.document;
|
|
2020
|
-
const baseStyle =
|
|
2021
|
-
const el =
|
|
2053
|
+
const baseStyle = chunkLK35P6RE_cjs.getContainerStyle(element, zIndex);
|
|
2054
|
+
const el = chunkZH35NTNU_cjs.createEl(doc, "div", "pptxv-element pptxv-media", baseStyle);
|
|
2022
2055
|
el.dataset.elementId = element.id;
|
|
2023
2056
|
const mediaSrc = element.mediaData ?? (element.mediaPath ? context.mediaDataUrls.get(element.mediaPath) : void 0);
|
|
2024
|
-
const posterSrc =
|
|
2025
|
-
const onlineVideoEmbedUrl =
|
|
2057
|
+
const posterSrc = chunkLK35P6RE_cjs.getImageSrc(element, new Map(context.mediaDataUrls));
|
|
2058
|
+
const onlineVideoEmbedUrl = chunkLK35P6RE_cjs.getOnlineVideoEmbed(element)?.embedUrl;
|
|
2026
2059
|
if (onlineVideoEmbedUrl && element.mediaType === "video") {
|
|
2027
|
-
const iframe =
|
|
2060
|
+
const iframe = chunkZH35NTNU_cjs.createEl(doc, "iframe", "pptxv-media-video pptxv-media-iframe", {
|
|
2028
2061
|
width: "100%",
|
|
2029
2062
|
height: "100%",
|
|
2030
2063
|
border: "0",
|
|
@@ -2032,14 +2065,14 @@ var renderMediaElement = (element, zIndex, context) => {
|
|
|
2032
2065
|
});
|
|
2033
2066
|
iframe.src = onlineVideoEmbedUrl;
|
|
2034
2067
|
iframe.title = context.t("pptx.media.onlineVideoTitle");
|
|
2035
|
-
iframe.allow =
|
|
2036
|
-
iframe.sandbox.value =
|
|
2068
|
+
iframe.allow = chunkLK35P6RE_cjs.ONLINE_VIDEO_IFRAME_ALLOW;
|
|
2069
|
+
iframe.sandbox.value = chunkLK35P6RE_cjs.ONLINE_VIDEO_IFRAME_SANDBOX;
|
|
2037
2070
|
iframe.allowFullscreen = true;
|
|
2038
2071
|
el.appendChild(iframe);
|
|
2039
2072
|
return el;
|
|
2040
2073
|
}
|
|
2041
2074
|
if (mediaSrc && element.mediaType === "video") {
|
|
2042
|
-
const video =
|
|
2075
|
+
const video = chunkZH35NTNU_cjs.createEl(doc, "video", "pptxv-media-video", {
|
|
2043
2076
|
width: "100%",
|
|
2044
2077
|
height: "100%",
|
|
2045
2078
|
objectFit: "contain",
|
|
@@ -2054,31 +2087,33 @@ var renderMediaElement = (element, zIndex, context) => {
|
|
|
2054
2087
|
}
|
|
2055
2088
|
el.appendChild(video);
|
|
2056
2089
|
applyMediaPresentingState(video, context.presenting, element);
|
|
2090
|
+
attachAuthoringBar(el, video);
|
|
2057
2091
|
wireMediaFullscreenOverlay(doc, el, video, element, context, baseStyle);
|
|
2058
2092
|
return el;
|
|
2059
2093
|
}
|
|
2060
2094
|
if (mediaSrc && element.mediaType === "audio") {
|
|
2061
|
-
const audio =
|
|
2095
|
+
const audio = chunkZH35NTNU_cjs.createEl(doc, "audio", "pptxv-media-audio", { width: "100%" });
|
|
2062
2096
|
audio.src = mediaSrc;
|
|
2063
2097
|
audio.controls = showTransport;
|
|
2064
2098
|
el.appendChild(audio);
|
|
2065
|
-
if (context.presenting &&
|
|
2099
|
+
if (context.presenting && chunkLK35P6RE_cjs.registerCrossSlideAudio(element, mediaSrc)) {
|
|
2066
2100
|
audio.muted = true;
|
|
2067
|
-
|
|
2101
|
+
chunkLK35P6RE_cjs.applyMediaPlaybackAttributes(audio, element);
|
|
2068
2102
|
return el;
|
|
2069
2103
|
}
|
|
2070
2104
|
applyMediaPresentingState(audio, context.presenting, element);
|
|
2105
|
+
attachAuthoringBar(el, audio);
|
|
2071
2106
|
wireMediaFullscreenOverlay(doc, el, audio, element, context, baseStyle);
|
|
2072
2107
|
return el;
|
|
2073
2108
|
}
|
|
2074
|
-
const fallback =
|
|
2109
|
+
const fallback = chunkLK35P6RE_cjs.mediaFallbackVisual(surface, {
|
|
2075
2110
|
hasPoster: Boolean(posterSrc),
|
|
2076
2111
|
missing: element.mediaMissing === true
|
|
2077
2112
|
});
|
|
2078
|
-
const icon =
|
|
2079
|
-
const labelKey =
|
|
2113
|
+
const icon = chunkLK35P6RE_cjs.mediaFallbackIcon(fallback, element.mediaType);
|
|
2114
|
+
const labelKey = chunkLK35P6RE_cjs.mediaFallbackLabelKey(fallback, element.mediaType);
|
|
2080
2115
|
if (fallback.poster && posterSrc) {
|
|
2081
|
-
const img =
|
|
2116
|
+
const img = chunkZH35NTNU_cjs.createEl(doc, "img", "pptxv-media-poster", {
|
|
2082
2117
|
width: "100%",
|
|
2083
2118
|
height: "100%",
|
|
2084
2119
|
objectFit: "contain",
|
|
@@ -2090,14 +2125,14 @@ var renderMediaElement = (element, zIndex, context) => {
|
|
|
2090
2125
|
img.setAttribute("draggable", "false");
|
|
2091
2126
|
el.appendChild(img);
|
|
2092
2127
|
if (fallback.badge !== "none") {
|
|
2093
|
-
const badge =
|
|
2128
|
+
const badge = chunkZH35NTNU_cjs.createEl(doc, "div", "pptxv-media-badge");
|
|
2094
2129
|
if (fallback.badge === "missing") {
|
|
2095
2130
|
badge.classList.add("pptxv-media-badge-missing");
|
|
2096
2131
|
}
|
|
2097
|
-
badge.setAttribute(
|
|
2132
|
+
badge.setAttribute(chunkLK35P6RE_cjs.MEDIA_CHROME_ATTRIBUTE, fallback.badge);
|
|
2098
2133
|
badge.appendChild(buildIcon(doc, icon));
|
|
2099
2134
|
if (labelKey !== void 0 && fallback.badge === "missing") {
|
|
2100
|
-
const text =
|
|
2135
|
+
const text = chunkZH35NTNU_cjs.createEl(doc, "span");
|
|
2101
2136
|
text.textContent = context.t(labelKey);
|
|
2102
2137
|
badge.appendChild(text);
|
|
2103
2138
|
}
|
|
@@ -2107,12 +2142,12 @@ var renderMediaElement = (element, zIndex, context) => {
|
|
|
2107
2142
|
}
|
|
2108
2143
|
if (fallback.placeholder !== "none") {
|
|
2109
2144
|
el.classList.add("pptxv-placeholder", "pptxv-media-placeholder");
|
|
2110
|
-
el.setAttribute(
|
|
2145
|
+
el.setAttribute(chunkLK35P6RE_cjs.MEDIA_CHROME_ATTRIBUTE, fallback.placeholder);
|
|
2111
2146
|
if (icon.length > 0) {
|
|
2112
2147
|
el.appendChild(buildIcon(doc, icon));
|
|
2113
2148
|
}
|
|
2114
2149
|
if (labelKey !== void 0) {
|
|
2115
|
-
const label =
|
|
2150
|
+
const label = chunkZH35NTNU_cjs.createEl(doc, "div", "pptxv-placeholder-label");
|
|
2116
2151
|
label.textContent = context.t(labelKey);
|
|
2117
2152
|
el.appendChild(label);
|
|
2118
2153
|
}
|
|
@@ -2139,11 +2174,11 @@ var renderModel3dElement = (element, zIndex, context) => {
|
|
|
2139
2174
|
return null;
|
|
2140
2175
|
}
|
|
2141
2176
|
const doc = context.document;
|
|
2142
|
-
const el =
|
|
2177
|
+
const el = chunkZH35NTNU_cjs.createEl(
|
|
2143
2178
|
doc,
|
|
2144
2179
|
"div",
|
|
2145
2180
|
"pptxv-element pptxv-model3d",
|
|
2146
|
-
|
|
2181
|
+
chunkLK35P6RE_cjs.getContainerStyle(element, zIndex)
|
|
2147
2182
|
);
|
|
2148
2183
|
el.dataset.elementId = element.id;
|
|
2149
2184
|
const label = context.t("pptx.model3d.label");
|
|
@@ -2156,7 +2191,7 @@ var renderModel3dElement = (element, zIndex, context) => {
|
|
|
2156
2191
|
return el;
|
|
2157
2192
|
};
|
|
2158
2193
|
function buildPoster(doc, src, alt) {
|
|
2159
|
-
const img =
|
|
2194
|
+
const img = chunkZH35NTNU_cjs.createEl(doc, "img", "pptxv-model3d-poster", {
|
|
2160
2195
|
width: "100%",
|
|
2161
2196
|
height: "100%",
|
|
2162
2197
|
objectFit: "contain",
|
|
@@ -2170,7 +2205,7 @@ function buildPoster(doc, src, alt) {
|
|
|
2170
2205
|
return img;
|
|
2171
2206
|
}
|
|
2172
2207
|
function buildPlaceholder(doc, label) {
|
|
2173
|
-
const box =
|
|
2208
|
+
const box = chunkZH35NTNU_cjs.createEl(doc, "div", "pptxv-model3d-placeholder", {
|
|
2174
2209
|
width: "100%",
|
|
2175
2210
|
height: "100%",
|
|
2176
2211
|
display: "flex",
|
|
@@ -2184,7 +2219,7 @@ function buildPlaceholder(doc, label) {
|
|
|
2184
2219
|
borderRadius: "4px",
|
|
2185
2220
|
boxSizing: "border-box"
|
|
2186
2221
|
});
|
|
2187
|
-
const icon =
|
|
2222
|
+
const icon = chunkZH35NTNU_cjs.createSvgEl(doc, "svg", {
|
|
2188
2223
|
width: 24,
|
|
2189
2224
|
height: 24,
|
|
2190
2225
|
viewBox: "0 0 24 24",
|
|
@@ -2197,20 +2232,20 @@ function buildPlaceholder(doc, label) {
|
|
|
2197
2232
|
icon.setAttribute("class", "pptxv-model3d-icon");
|
|
2198
2233
|
icon.setAttribute("style", "margin-bottom:4px;color:#d1d5db");
|
|
2199
2234
|
icon.appendChild(
|
|
2200
|
-
|
|
2235
|
+
chunkZH35NTNU_cjs.createSvgEl(doc, "path", {
|
|
2201
2236
|
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"
|
|
2202
2237
|
})
|
|
2203
2238
|
);
|
|
2204
|
-
icon.appendChild(
|
|
2205
|
-
icon.appendChild(
|
|
2239
|
+
icon.appendChild(chunkZH35NTNU_cjs.createSvgEl(doc, "polyline", { points: "3.27 6.96 12 12.01 20.73 6.96" }));
|
|
2240
|
+
icon.appendChild(chunkZH35NTNU_cjs.createSvgEl(doc, "line", { x1: 12, y1: 22.08, x2: 12, y2: 12 }));
|
|
2206
2241
|
box.appendChild(icon);
|
|
2207
|
-
const text =
|
|
2242
|
+
const text = chunkZH35NTNU_cjs.createEl(doc, "span", "pptxv-model3d-label");
|
|
2208
2243
|
text.textContent = label;
|
|
2209
2244
|
box.appendChild(text);
|
|
2210
2245
|
return box;
|
|
2211
2246
|
}
|
|
2212
2247
|
function buildViewButton(doc, root, poster, element, context) {
|
|
2213
|
-
const button =
|
|
2248
|
+
const button = chunkZH35NTNU_cjs.createEl(doc, "button", "pptxv-model3d-view", {
|
|
2214
2249
|
position: "absolute",
|
|
2215
2250
|
bottom: "4px",
|
|
2216
2251
|
right: "4px",
|
|
@@ -2245,7 +2280,7 @@ function buildViewButton(doc, root, poster, element, context) {
|
|
|
2245
2280
|
button.remove();
|
|
2246
2281
|
return;
|
|
2247
2282
|
}
|
|
2248
|
-
const sceneHost =
|
|
2283
|
+
const sceneHost = chunkZH35NTNU_cjs.createEl(doc, "div", "pptxv-model3d-scene", {
|
|
2249
2284
|
position: "absolute",
|
|
2250
2285
|
inset: 0,
|
|
2251
2286
|
willChange: "transform"
|
|
@@ -2273,15 +2308,15 @@ function buildViewButton(doc, root, poster, element, context) {
|
|
|
2273
2308
|
|
|
2274
2309
|
// src/pptx/dom/elements/ole-icons.ts
|
|
2275
2310
|
function buildOleIcon(doc, type, color) {
|
|
2276
|
-
const svg =
|
|
2311
|
+
const svg = chunkZH35NTNU_cjs.createSvgEl(doc, "svg", {
|
|
2277
2312
|
width: 36,
|
|
2278
2313
|
height: 36,
|
|
2279
2314
|
viewBox: "0 0 24 24",
|
|
2280
2315
|
fill: "none",
|
|
2281
2316
|
"aria-hidden": "true"
|
|
2282
2317
|
});
|
|
2283
|
-
for (const shape of
|
|
2284
|
-
const node =
|
|
2318
|
+
for (const shape of chunkLK35P6RE_cjs.getOleIconShapes(type)) {
|
|
2319
|
+
const node = chunkZH35NTNU_cjs.createSvgEl(doc, shape.tag, shape.attrs);
|
|
2285
2320
|
if (shape.tag === "text") {
|
|
2286
2321
|
node.setAttribute("fill", color);
|
|
2287
2322
|
node.textContent = shape.text ?? "";
|
|
@@ -2299,37 +2334,55 @@ var renderOleElement = (element, zIndex, context) => {
|
|
|
2299
2334
|
return null;
|
|
2300
2335
|
}
|
|
2301
2336
|
const doc = context.document;
|
|
2302
|
-
const oleType =
|
|
2303
|
-
const typeColor =
|
|
2304
|
-
const typeLabel =
|
|
2305
|
-
const el =
|
|
2337
|
+
const oleType = chunkLK35P6RE_cjs.resolveOleType(element);
|
|
2338
|
+
const typeColor = chunkLK35P6RE_cjs.getOleTypeColor(oleType);
|
|
2339
|
+
const typeLabel = chunkLK35P6RE_cjs.getOleTypeLabel(oleType);
|
|
2340
|
+
const el = chunkZH35NTNU_cjs.createEl(doc, "div", "pptxv-element pptxv-ole", chunkLK35P6RE_cjs.getContainerStyle(element, zIndex));
|
|
2306
2341
|
el.dataset.elementId = element.id;
|
|
2307
2342
|
el.setAttribute("role", "group");
|
|
2308
|
-
el.setAttribute("aria-label",
|
|
2343
|
+
el.setAttribute("aria-label", chunkLK35P6RE_cjs.getOleAriaLabel(element));
|
|
2309
2344
|
el.title = infoLines(element, typeLabel).join("\n");
|
|
2310
2345
|
if (element.previewImageData) {
|
|
2311
|
-
el.appendChild(buildPreview(doc, element, typeColor,
|
|
2346
|
+
el.appendChild(buildPreview(doc, element, typeColor, chunkLK35P6RE_cjs.getOleBadgeLabel(oleType)));
|
|
2312
2347
|
} else {
|
|
2313
2348
|
el.appendChild(buildPlaceholder2(doc, element, oleType, typeColor, typeLabel));
|
|
2314
2349
|
}
|
|
2315
|
-
const showActions =
|
|
2316
|
-
|
|
2350
|
+
const showActions = chunkLK35P6RE_cjs.oleActionsVisible(
|
|
2351
|
+
chunkLK35P6RE_cjs.mediaSurfaceOf({
|
|
2317
2352
|
interactive: context.interactive === true,
|
|
2318
2353
|
presenting: context.presenting
|
|
2319
2354
|
})
|
|
2320
2355
|
);
|
|
2321
2356
|
if (element.oleEmbeddedData && showActions) {
|
|
2322
|
-
|
|
2357
|
+
const bar = buildActionBar(doc, element, typeLabel, context);
|
|
2358
|
+
el.appendChild(bar);
|
|
2359
|
+
revealOnHover(el, bar);
|
|
2323
2360
|
}
|
|
2324
2361
|
return el;
|
|
2325
2362
|
};
|
|
2363
|
+
function revealOnHover(host, bar) {
|
|
2364
|
+
bar.style.opacity = "0";
|
|
2365
|
+
bar.style.transition = "opacity 0.12s ease-in-out";
|
|
2366
|
+
const show = () => {
|
|
2367
|
+
bar.style.opacity = "1";
|
|
2368
|
+
};
|
|
2369
|
+
const hide = () => {
|
|
2370
|
+
if (!host.matches(":hover") && !bar.matches(":focus-within")) {
|
|
2371
|
+
bar.style.opacity = "0";
|
|
2372
|
+
}
|
|
2373
|
+
};
|
|
2374
|
+
host.addEventListener("pointerenter", show);
|
|
2375
|
+
host.addEventListener("pointerleave", hide);
|
|
2376
|
+
bar.addEventListener("focusin", show);
|
|
2377
|
+
bar.addEventListener("focusout", hide);
|
|
2378
|
+
}
|
|
2326
2379
|
function infoLines(el, typeLabel) {
|
|
2327
2380
|
const lines = [typeLabel];
|
|
2328
2381
|
const name = el.oleEmbeddedFileName ?? el.fileName;
|
|
2329
2382
|
if (name) {
|
|
2330
2383
|
lines.push(name);
|
|
2331
2384
|
}
|
|
2332
|
-
const size =
|
|
2385
|
+
const size = chunkLK35P6RE_cjs.formatBytes(el.oleEmbeddedByteSize);
|
|
2333
2386
|
if (size) {
|
|
2334
2387
|
lines.push(size);
|
|
2335
2388
|
}
|
|
@@ -2339,12 +2392,12 @@ function infoLines(el, typeLabel) {
|
|
|
2339
2392
|
return lines;
|
|
2340
2393
|
}
|
|
2341
2394
|
function buildPreview(doc, el, typeColor, badgeLabel) {
|
|
2342
|
-
const preview =
|
|
2395
|
+
const preview = chunkZH35NTNU_cjs.createEl(doc, "div", "pptxv-ole-preview", {
|
|
2343
2396
|
position: "relative",
|
|
2344
2397
|
width: "100%",
|
|
2345
2398
|
height: "100%"
|
|
2346
2399
|
});
|
|
2347
|
-
const img =
|
|
2400
|
+
const img = chunkZH35NTNU_cjs.createEl(doc, "img", "pptxv-ole-img", {
|
|
2348
2401
|
width: "100%",
|
|
2349
2402
|
height: "100%",
|
|
2350
2403
|
objectFit: "contain",
|
|
@@ -2353,19 +2406,19 @@ function buildPreview(doc, el, typeColor, badgeLabel) {
|
|
|
2353
2406
|
display: "block"
|
|
2354
2407
|
});
|
|
2355
2408
|
img.src = el.previewImageData ?? "";
|
|
2356
|
-
img.alt =
|
|
2409
|
+
img.alt = chunkLK35P6RE_cjs.getOleAriaLabel(el);
|
|
2357
2410
|
img.draggable = false;
|
|
2358
2411
|
preview.appendChild(img);
|
|
2359
|
-
const badge =
|
|
2412
|
+
const badge = chunkZH35NTNU_cjs.createSvgEl(doc, "svg", { width: 24, height: 24, viewBox: "0 0 24 24" });
|
|
2360
2413
|
badge.setAttribute("class", "pptxv-ole-badge");
|
|
2361
2414
|
badge.setAttribute(
|
|
2362
2415
|
"style",
|
|
2363
2416
|
"position:absolute;bottom:4px;right:4px;z-index:10;pointer-events:none"
|
|
2364
2417
|
);
|
|
2365
2418
|
badge.appendChild(
|
|
2366
|
-
|
|
2419
|
+
chunkZH35NTNU_cjs.createSvgEl(doc, "rect", { x: 2, y: 2, width: 20, height: 20, rx: 3, fill: typeColor })
|
|
2367
2420
|
);
|
|
2368
|
-
const badgeText =
|
|
2421
|
+
const badgeText = chunkZH35NTNU_cjs.createSvgEl(doc, "text", {
|
|
2369
2422
|
x: 12,
|
|
2370
2423
|
y: 16,
|
|
2371
2424
|
"text-anchor": "middle",
|
|
@@ -2379,8 +2432,8 @@ function buildPreview(doc, el, typeColor, badgeLabel) {
|
|
|
2379
2432
|
return preview;
|
|
2380
2433
|
}
|
|
2381
2434
|
function buildPlaceholder2(doc, el, oleType, typeColor, typeLabel) {
|
|
2382
|
-
const box =
|
|
2383
|
-
...
|
|
2435
|
+
const box = chunkZH35NTNU_cjs.createEl(doc, "div", "pptxv-ole-placeholder", {
|
|
2436
|
+
...chunkLK35P6RE_cjs.getPlaceholderStyle(oleType),
|
|
2384
2437
|
width: "100%",
|
|
2385
2438
|
height: "100%",
|
|
2386
2439
|
display: "flex",
|
|
@@ -2391,7 +2444,7 @@ function buildPlaceholder2(doc, el, oleType, typeColor, typeLabel) {
|
|
|
2391
2444
|
boxSizing: "border-box"
|
|
2392
2445
|
});
|
|
2393
2446
|
box.appendChild(buildOleIcon(doc, oleType, typeColor));
|
|
2394
|
-
const name =
|
|
2447
|
+
const name = chunkZH35NTNU_cjs.createEl(doc, "span", "pptxv-ole-name", {
|
|
2395
2448
|
marginTop: "8px",
|
|
2396
2449
|
fontSize: "12px",
|
|
2397
2450
|
fontWeight: 500,
|
|
@@ -2401,10 +2454,10 @@ function buildPlaceholder2(doc, el, oleType, typeColor, typeLabel) {
|
|
|
2401
2454
|
whiteSpace: "nowrap",
|
|
2402
2455
|
color: typeColor
|
|
2403
2456
|
});
|
|
2404
|
-
name.textContent =
|
|
2457
|
+
name.textContent = chunkLK35P6RE_cjs.getOleDisplayName(el);
|
|
2405
2458
|
box.appendChild(name);
|
|
2406
2459
|
if (el.fileName) {
|
|
2407
|
-
const sublabel =
|
|
2460
|
+
const sublabel = chunkZH35NTNU_cjs.createEl(doc, "span", "pptxv-ole-sublabel", {
|
|
2408
2461
|
marginTop: "2px",
|
|
2409
2462
|
fontSize: "10px",
|
|
2410
2463
|
color: "rgba(0,0,0,0.45)",
|
|
@@ -2434,7 +2487,7 @@ var ACTION_STYLE = {
|
|
|
2434
2487
|
function buildActionBar(doc, el, typeLabel, context) {
|
|
2435
2488
|
const data = el.oleEmbeddedData ?? "";
|
|
2436
2489
|
const downloadName = el.oleEmbeddedFileName ?? el.fileName ?? typeLabel;
|
|
2437
|
-
const bar =
|
|
2490
|
+
const bar = chunkZH35NTNU_cjs.createEl(doc, "div", "pptxv-ole-actions", {
|
|
2438
2491
|
position: "absolute",
|
|
2439
2492
|
left: 0,
|
|
2440
2493
|
right: 0,
|
|
@@ -2453,9 +2506,9 @@ function buildActionBar(doc, el, typeLabel, context) {
|
|
|
2453
2506
|
for (const type of ["pointerdown", "mousedown", "click"]) {
|
|
2454
2507
|
bar.addEventListener(type, (event) => event.stopPropagation());
|
|
2455
2508
|
}
|
|
2456
|
-
const size =
|
|
2509
|
+
const size = chunkLK35P6RE_cjs.formatBytes(el.oleEmbeddedByteSize);
|
|
2457
2510
|
if (size) {
|
|
2458
|
-
const meta =
|
|
2511
|
+
const meta = chunkZH35NTNU_cjs.createEl(doc, "span", "pptxv-ole-meta", {
|
|
2459
2512
|
marginRight: "auto",
|
|
2460
2513
|
color: "rgba(0,0,0,0.55)",
|
|
2461
2514
|
overflow: "hidden",
|
|
@@ -2465,7 +2518,7 @@ function buildActionBar(doc, el, typeLabel, context) {
|
|
|
2465
2518
|
meta.textContent = size;
|
|
2466
2519
|
bar.appendChild(meta);
|
|
2467
2520
|
}
|
|
2468
|
-
const download =
|
|
2521
|
+
const download = chunkZH35NTNU_cjs.createEl(doc, "a", "pptxv-ole-action", ACTION_STYLE);
|
|
2469
2522
|
download.href = data;
|
|
2470
2523
|
download.download = downloadName;
|
|
2471
2524
|
const downloadTitle = context.t("pptx.ole.downloadName", { name: downloadName });
|
|
@@ -2473,14 +2526,14 @@ function buildActionBar(doc, el, typeLabel, context) {
|
|
|
2473
2526
|
download.title = downloadTitle;
|
|
2474
2527
|
download.textContent = context.t("pptx.ole.download");
|
|
2475
2528
|
bar.appendChild(download);
|
|
2476
|
-
if (
|
|
2477
|
-
const open =
|
|
2529
|
+
if (chunkLK35P6RE_cjs.isBrowserOpenableMime(el.oleEmbeddedMimeType)) {
|
|
2530
|
+
const open = chunkZH35NTNU_cjs.createEl(doc, "button", "pptxv-ole-action", ACTION_STYLE);
|
|
2478
2531
|
open.type = "button";
|
|
2479
2532
|
const openTitle = context.t("pptx.ole.openName", { name: downloadName });
|
|
2480
2533
|
open.setAttribute("aria-label", openTitle);
|
|
2481
2534
|
open.title = openTitle;
|
|
2482
2535
|
open.textContent = context.t("pptx.ole.open");
|
|
2483
|
-
open.addEventListener("click", () =>
|
|
2536
|
+
open.addEventListener("click", () => chunkLK35P6RE_cjs.openUrlInNewTab(data));
|
|
2484
2537
|
bar.appendChild(open);
|
|
2485
2538
|
}
|
|
2486
2539
|
return bar;
|
|
@@ -2488,16 +2541,16 @@ function buildActionBar(doc, el, typeLabel, context) {
|
|
|
2488
2541
|
|
|
2489
2542
|
// src/pptx/dom/elements/placeholder.ts
|
|
2490
2543
|
var renderPlaceholderElement = (element, zIndex, context) => {
|
|
2491
|
-
const el =
|
|
2544
|
+
const el = chunkZH35NTNU_cjs.createEl(
|
|
2492
2545
|
context.document,
|
|
2493
2546
|
"div",
|
|
2494
2547
|
"pptxv-element pptxv-placeholder",
|
|
2495
|
-
|
|
2548
|
+
chunkLK35P6RE_cjs.getContainerStyle(element, zIndex)
|
|
2496
2549
|
);
|
|
2497
2550
|
el.dataset.elementId = element.id;
|
|
2498
2551
|
el.dataset.elementType = element.type;
|
|
2499
|
-
const label =
|
|
2500
|
-
label.textContent =
|
|
2552
|
+
const label = chunkZH35NTNU_cjs.createEl(context.document, "div", "pptxv-placeholder-label");
|
|
2553
|
+
label.textContent = chunkZHVKGGLQ_cjs.keyToLabel(element.type);
|
|
2501
2554
|
el.appendChild(label);
|
|
2502
2555
|
return el;
|
|
2503
2556
|
};
|
|
@@ -2508,7 +2561,7 @@ var renderZoomElement = (element, zIndex, context) => {
|
|
|
2508
2561
|
return null;
|
|
2509
2562
|
}
|
|
2510
2563
|
const doc = context.document;
|
|
2511
|
-
const summaryView =
|
|
2564
|
+
const summaryView = chunkLK35P6RE_cjs.buildSummaryZoomView(
|
|
2512
2565
|
element,
|
|
2513
2566
|
(index) => {
|
|
2514
2567
|
const slide = context.slides?.[index];
|
|
@@ -2524,19 +2577,19 @@ var renderZoomElement = (element, zIndex, context) => {
|
|
|
2524
2577
|
(key, params) => context.t(key, params)
|
|
2525
2578
|
);
|
|
2526
2579
|
if (summaryView) {
|
|
2527
|
-
const root =
|
|
2580
|
+
const root = chunkZH35NTNU_cjs.createEl(
|
|
2528
2581
|
doc,
|
|
2529
2582
|
"div",
|
|
2530
2583
|
"pptxv-element pptxv-zoom pptxv-summary-zoom",
|
|
2531
|
-
|
|
2584
|
+
chunkLK35P6RE_cjs.getContainerStyle(element, zIndex)
|
|
2532
2585
|
);
|
|
2533
|
-
const content =
|
|
2586
|
+
const content = chunkZH35NTNU_cjs.createEl(doc, "div", "pptxv-summary-zoom-content", summaryView.containerStyle);
|
|
2534
2587
|
root.dataset.elementId = element.id;
|
|
2535
2588
|
root.dataset.zoomType = "summary";
|
|
2536
2589
|
root.setAttribute("role", "group");
|
|
2537
2590
|
root.setAttribute("aria-label", summaryView.ariaLabel);
|
|
2538
2591
|
for (const tile2 of summaryView.tiles) {
|
|
2539
|
-
const tileElement =
|
|
2592
|
+
const tileElement = chunkZH35NTNU_cjs.createEl(doc, "div", "pptxv-summary-zoom-tile", {
|
|
2540
2593
|
...tile2.style,
|
|
2541
2594
|
backgroundColor: tile2.backgroundColor,
|
|
2542
2595
|
overflow: "hidden",
|
|
@@ -2570,22 +2623,22 @@ var renderZoomElement = (element, zIndex, context) => {
|
|
|
2570
2623
|
});
|
|
2571
2624
|
}
|
|
2572
2625
|
if (tile2.imageSrc) {
|
|
2573
|
-
const image =
|
|
2626
|
+
const image = chunkZH35NTNU_cjs.createEl(doc, "img");
|
|
2574
2627
|
image.src = tile2.imageSrc;
|
|
2575
2628
|
image.alt = tile2.ariaLabel;
|
|
2576
2629
|
image.setAttribute("draggable", "false");
|
|
2577
2630
|
image.style.cssText = "width:100%;height:100%;object-fit:contain";
|
|
2578
2631
|
tileElement.appendChild(image);
|
|
2579
2632
|
} else {
|
|
2580
|
-
const label =
|
|
2633
|
+
const label = chunkZH35NTNU_cjs.createEl(doc, "div");
|
|
2581
2634
|
label.textContent = tile2.label;
|
|
2582
|
-
const slideLabel =
|
|
2635
|
+
const slideLabel = chunkZH35NTNU_cjs.createEl(doc, "div");
|
|
2583
2636
|
slideLabel.textContent = tile2.slideLabel;
|
|
2584
2637
|
tileElement.append(label, slideLabel);
|
|
2585
2638
|
}
|
|
2586
2639
|
content.appendChild(tileElement);
|
|
2587
2640
|
}
|
|
2588
|
-
const badge2 =
|
|
2641
|
+
const badge2 = chunkZH35NTNU_cjs.createEl(doc, "div", "pptxv-zoom-badge");
|
|
2589
2642
|
badge2.textContent = context.t("pptx.zoom.summaryZoom");
|
|
2590
2643
|
content.appendChild(badge2);
|
|
2591
2644
|
root.appendChild(content);
|
|
@@ -2595,7 +2648,7 @@ var renderZoomElement = (element, zIndex, context) => {
|
|
|
2595
2648
|
const target = element.targetSlideIndex ?? 0;
|
|
2596
2649
|
const targetSlide = context.slides?.[target];
|
|
2597
2650
|
const interactive = context.presenting && context.onZoomClick !== void 0;
|
|
2598
|
-
const el =
|
|
2651
|
+
const el = chunkZH35NTNU_cjs.createEl(doc, "div", "pptxv-element pptxv-zoom", chunkLK35P6RE_cjs.getContainerStyle(element, zIndex));
|
|
2599
2652
|
el.dataset.elementId = element.id;
|
|
2600
2653
|
el.dataset.zoomType = zoomType;
|
|
2601
2654
|
el.dataset.zoomTarget = String(target);
|
|
@@ -2605,7 +2658,7 @@ var renderZoomElement = (element, zIndex, context) => {
|
|
|
2605
2658
|
el.tabIndex = 0;
|
|
2606
2659
|
el.style.cursor = "pointer";
|
|
2607
2660
|
const activate = () => {
|
|
2608
|
-
const zoomTarget =
|
|
2661
|
+
const zoomTarget = chunkLK35P6RE_cjs.resolveZoomNavigationTarget(element);
|
|
2609
2662
|
if (zoomTarget) {
|
|
2610
2663
|
context.onZoomClick?.(zoomTarget, context.currentSlideIndex ?? 0);
|
|
2611
2664
|
}
|
|
@@ -2630,7 +2683,7 @@ var renderZoomElement = (element, zIndex, context) => {
|
|
|
2630
2683
|
section: element.targetSectionId
|
|
2631
2684
|
}) : context.t("pptx.zoom.ariaLabel", { number: target + 1 })
|
|
2632
2685
|
);
|
|
2633
|
-
const tile =
|
|
2686
|
+
const tile = chunkZH35NTNU_cjs.createEl(doc, "div", "pptxv-zoom-tile", {
|
|
2634
2687
|
position: "relative",
|
|
2635
2688
|
width: "100%",
|
|
2636
2689
|
height: "100%",
|
|
@@ -2639,7 +2692,7 @@ var renderZoomElement = (element, zIndex, context) => {
|
|
|
2639
2692
|
boxShadow: "0 2px 8px rgba(0, 0, 0, 0.15)"
|
|
2640
2693
|
});
|
|
2641
2694
|
if (element.imageData) {
|
|
2642
|
-
const img =
|
|
2695
|
+
const img = chunkZH35NTNU_cjs.createEl(doc, "img", "pptxv-zoom-img", {
|
|
2643
2696
|
width: "100%",
|
|
2644
2697
|
height: "100%",
|
|
2645
2698
|
objectFit: "contain",
|
|
@@ -2662,7 +2715,7 @@ var renderZoomElement = (element, zIndex, context) => {
|
|
|
2662
2715
|
)
|
|
2663
2716
|
);
|
|
2664
2717
|
}
|
|
2665
|
-
const badge =
|
|
2718
|
+
const badge = chunkZH35NTNU_cjs.createEl(doc, "div", "pptxv-zoom-badge", {
|
|
2666
2719
|
position: "absolute",
|
|
2667
2720
|
bottom: "4px",
|
|
2668
2721
|
right: "4px",
|
|
@@ -2680,7 +2733,7 @@ var renderZoomElement = (element, zIndex, context) => {
|
|
|
2680
2733
|
return el;
|
|
2681
2734
|
};
|
|
2682
2735
|
function buildThumbnail(doc, slideNumber, sectionText, backgroundColor, t) {
|
|
2683
|
-
const box =
|
|
2736
|
+
const box = chunkZH35NTNU_cjs.createEl(doc, "div", "pptxv-zoom-thumbnail", {
|
|
2684
2737
|
width: "100%",
|
|
2685
2738
|
height: "100%",
|
|
2686
2739
|
display: "flex",
|
|
@@ -2691,7 +2744,7 @@ function buildThumbnail(doc, slideNumber, sectionText, backgroundColor, t) {
|
|
|
2691
2744
|
border: "1px solid rgba(0, 0, 0, 0.1)",
|
|
2692
2745
|
boxSizing: "border-box"
|
|
2693
2746
|
});
|
|
2694
|
-
const slideLabel =
|
|
2747
|
+
const slideLabel = chunkZH35NTNU_cjs.createEl(doc, "div", "pptxv-zoom-slide-label", {
|
|
2695
2748
|
fontSize: "14px",
|
|
2696
2749
|
fontWeight: 600,
|
|
2697
2750
|
color: "rgba(0, 0, 0, 0.5)",
|
|
@@ -2700,7 +2753,7 @@ function buildThumbnail(doc, slideNumber, sectionText, backgroundColor, t) {
|
|
|
2700
2753
|
slideLabel.textContent = t("pptx.notes.slideN", { n: slideNumber });
|
|
2701
2754
|
box.appendChild(slideLabel);
|
|
2702
2755
|
if (sectionText) {
|
|
2703
|
-
const sectionLabel =
|
|
2756
|
+
const sectionLabel = chunkZH35NTNU_cjs.createEl(doc, "div", "pptxv-zoom-section-label", {
|
|
2704
2757
|
fontSize: "10px",
|
|
2705
2758
|
color: "rgba(0, 0, 0, 0.4)"
|
|
2706
2759
|
});
|
|
@@ -2719,7 +2772,7 @@ function registerExtraRenderers(registry) {
|
|
|
2719
2772
|
|
|
2720
2773
|
// src/pptx/dom/elements/register-rich-media.ts
|
|
2721
2774
|
function registerRichMediaRenderers(registry) {
|
|
2722
|
-
registry.register("smartArt",
|
|
2775
|
+
registry.register("smartArt", chunkZH35NTNU_cjs.renderSmartArtElement);
|
|
2723
2776
|
registry.register("media", renderMediaElement);
|
|
2724
2777
|
registry.register("ink", renderInkElement);
|
|
2725
2778
|
registry.register("ole", renderOleElement);
|
|
@@ -2755,10 +2808,10 @@ function enableTableResize(container, table, element, context) {
|
|
|
2755
2808
|
for (const handle of [...colHandles, ...rowHandles]) {
|
|
2756
2809
|
handle.remove();
|
|
2757
2810
|
}
|
|
2758
|
-
const crossings =
|
|
2811
|
+
const crossings = chunkLK35P6RE_cjs.computeTableMergeCrossings(tableData.rows, tableData.columnWidths.length);
|
|
2759
2812
|
const rowBounds = measureRowBoundaries(table);
|
|
2760
|
-
colHandles =
|
|
2761
|
-
const handle =
|
|
2813
|
+
colHandles = chunkLK35P6RE_cjs.computeColumnBoundaries(tableData.columnWidths).map((leftPct, i) => {
|
|
2814
|
+
const handle = chunkZH35NTNU_cjs.createEl(doc, "div", "pptxv-table-resize-col", {
|
|
2762
2815
|
position: "absolute",
|
|
2763
2816
|
top: "0",
|
|
2764
2817
|
bottom: "0",
|
|
@@ -2767,14 +2820,14 @@ function enableTableResize(container, table, element, context) {
|
|
|
2767
2820
|
zIndex: "10",
|
|
2768
2821
|
pointerEvents: "none"
|
|
2769
2822
|
});
|
|
2770
|
-
const segments =
|
|
2823
|
+
const segments = chunkLK35P6RE_cjs.columnHandleSegments(
|
|
2771
2824
|
crossings.columns[i] ?? [],
|
|
2772
2825
|
rowBounds,
|
|
2773
2826
|
table.offsetHeight
|
|
2774
2827
|
);
|
|
2775
2828
|
for (const { top, height } of segments) {
|
|
2776
2829
|
handle.appendChild(
|
|
2777
|
-
|
|
2830
|
+
chunkZH35NTNU_cjs.createEl(doc, "div", "pptxv-table-resize-segment", {
|
|
2778
2831
|
position: "absolute",
|
|
2779
2832
|
left: "0",
|
|
2780
2833
|
right: "0",
|
|
@@ -2788,7 +2841,7 @@ function enableTableResize(container, table, element, context) {
|
|
|
2788
2841
|
return handle;
|
|
2789
2842
|
});
|
|
2790
2843
|
rowHandles = rowBounds.map((topPx, i) => {
|
|
2791
|
-
const handle =
|
|
2844
|
+
const handle = chunkZH35NTNU_cjs.createEl(doc, "div", "pptxv-table-resize-row", {
|
|
2792
2845
|
position: "absolute",
|
|
2793
2846
|
left: "0",
|
|
2794
2847
|
right: "0",
|
|
@@ -2797,10 +2850,10 @@ function enableTableResize(container, table, element, context) {
|
|
|
2797
2850
|
zIndex: "10",
|
|
2798
2851
|
pointerEvents: "none"
|
|
2799
2852
|
});
|
|
2800
|
-
const segments =
|
|
2853
|
+
const segments = chunkLK35P6RE_cjs.rowHandleSegments(crossings.rows[i] ?? [], tableData.columnWidths);
|
|
2801
2854
|
for (const { leftPct, widthPct } of segments) {
|
|
2802
2855
|
handle.appendChild(
|
|
2803
|
-
|
|
2856
|
+
chunkZH35NTNU_cjs.createEl(doc, "div", "pptxv-table-resize-segment", {
|
|
2804
2857
|
position: "absolute",
|
|
2805
2858
|
top: "0",
|
|
2806
2859
|
bottom: "0",
|
|
@@ -2841,14 +2894,14 @@ function enableTableResize(container, table, element, context) {
|
|
|
2841
2894
|
const deltaProp = (event.clientX - active.startPos) / (rect.width || 1);
|
|
2842
2895
|
context.onTableResizeColumns?.(
|
|
2843
2896
|
element,
|
|
2844
|
-
|
|
2897
|
+
chunkLK35P6RE_cjs.computeResizedColumnWidths(active.initialWidths, active.index, deltaProp)
|
|
2845
2898
|
);
|
|
2846
2899
|
} else if (event.clientY !== active.startPos && active.type === "row") {
|
|
2847
2900
|
const deltaY = event.clientY - active.startPos;
|
|
2848
2901
|
context.onTableResizeRow?.(
|
|
2849
2902
|
element,
|
|
2850
2903
|
active.index,
|
|
2851
|
-
|
|
2904
|
+
chunkLK35P6RE_cjs.computeResizedRowHeight(active.initialRowHeight ?? chunkLK35P6RE_cjs.DEFAULT_ROW_HEIGHT, deltaY)
|
|
2852
2905
|
);
|
|
2853
2906
|
}
|
|
2854
2907
|
drawHandles();
|
|
@@ -2857,13 +2910,13 @@ function enableTableResize(container, table, element, context) {
|
|
|
2857
2910
|
const rect = container.getBoundingClientRect();
|
|
2858
2911
|
const localX = event.clientX - rect.left;
|
|
2859
2912
|
const localY = event.clientY - rect.top;
|
|
2860
|
-
const scaleY =
|
|
2861
|
-
const crossings =
|
|
2913
|
+
const scaleY = chunkLK35P6RE_cjs.getTableResizeScale(rect.height, container.offsetHeight);
|
|
2914
|
+
const crossings = chunkLK35P6RE_cjs.computeTableMergeCrossings(tableData.rows, tableData.columnWidths.length);
|
|
2862
2915
|
const rowBounds = measureRowBoundaries(table);
|
|
2863
|
-
const colBoundaries =
|
|
2916
|
+
const colBoundaries = chunkLK35P6RE_cjs.computeColumnBoundaries(tableData.columnWidths);
|
|
2864
2917
|
for (let i = 0; i < colBoundaries.length; i++) {
|
|
2865
2918
|
const boundaryX = colBoundaries[i] / 100 * rect.width;
|
|
2866
|
-
if (Math.abs(localX - boundaryX) <= HANDLE_ZONE && !
|
|
2919
|
+
if (Math.abs(localX - boundaryX) <= HANDLE_ZONE && !chunkLK35P6RE_cjs.isColumnBoundaryMergedAt(crossings, i, rowBounds, localY / scaleY)) {
|
|
2867
2920
|
event.preventDefault();
|
|
2868
2921
|
event.stopPropagation();
|
|
2869
2922
|
doc.body.style.cursor = "col-resize";
|
|
@@ -2881,7 +2934,7 @@ function enableTableResize(container, table, element, context) {
|
|
|
2881
2934
|
}
|
|
2882
2935
|
}
|
|
2883
2936
|
for (let i = 0; i < rowBounds.length; i++) {
|
|
2884
|
-
if (Math.abs(localY - rowBounds[i] * scaleY) <= HANDLE_ZONE && !
|
|
2937
|
+
if (Math.abs(localY - rowBounds[i] * scaleY) <= HANDLE_ZONE && !chunkLK35P6RE_cjs.isRowBoundaryMergedAt(crossings, i, tableData.columnWidths, localX / (rect.width || 1))) {
|
|
2885
2938
|
event.preventDefault();
|
|
2886
2939
|
event.stopPropagation();
|
|
2887
2940
|
const tr = table.querySelectorAll("tbody > tr")[i];
|
|
@@ -2892,7 +2945,7 @@ function enableTableResize(container, table, element, context) {
|
|
|
2892
2945
|
index: i,
|
|
2893
2946
|
startPos: event.clientY,
|
|
2894
2947
|
handleEl: rowHandles[i] ?? container,
|
|
2895
|
-
initialRowHeight: tr?.offsetHeight ??
|
|
2948
|
+
initialRowHeight: tr?.offsetHeight ?? chunkLK35P6RE_cjs.DEFAULT_ROW_HEIGHT
|
|
2896
2949
|
};
|
|
2897
2950
|
win.addEventListener("mousemove", onMouseMove);
|
|
2898
2951
|
win.addEventListener("mouseup", onMouseUp);
|
|
@@ -2912,21 +2965,29 @@ var renderTableElement = (element, zIndex, context) => {
|
|
|
2912
2965
|
return null;
|
|
2913
2966
|
}
|
|
2914
2967
|
const doc = context.document;
|
|
2915
|
-
const
|
|
2916
|
-
|
|
2968
|
+
const styleContext = {
|
|
2969
|
+
colorScheme: context.colorScheme,
|
|
2970
|
+
tableStyleMap: context.tableStyleMap,
|
|
2971
|
+
fontScheme: context.fontScheme,
|
|
2972
|
+
formatScheme: context.formatScheme
|
|
2973
|
+
};
|
|
2974
|
+
const container = chunkZH35NTNU_cjs.createEl(doc, "div", "pptxv-element pptxv-table", {
|
|
2975
|
+
// The table style's drop shadow (Themed Style 1/2) sits on the clipping frame.
|
|
2976
|
+
...chunkLK35P6RE_cjs.tableFrameCss(tableData, styleContext),
|
|
2977
|
+
...chunkLK35P6RE_cjs.getContainerStyle(element, zIndex),
|
|
2917
2978
|
overflow: "hidden"
|
|
2918
2979
|
});
|
|
2919
2980
|
container.dataset.elementId = element.id;
|
|
2920
|
-
const table =
|
|
2981
|
+
const table = chunkZH35NTNU_cjs.createEl(doc, "table", "pptxv-table-grid", {
|
|
2921
2982
|
width: "100%",
|
|
2922
2983
|
height: "100%",
|
|
2923
2984
|
borderCollapse: "collapse",
|
|
2924
2985
|
tableLayout: "fixed",
|
|
2925
2986
|
// Load-bearing: an unstyled cell otherwise inherits the HOST chrome's
|
|
2926
2987
|
// font stack; all five bindings declare the same shared default here.
|
|
2927
|
-
fontFamily:
|
|
2988
|
+
fontFamily: chunk2SO3BL67_cjs.DEFAULT_FONT_FAMILY,
|
|
2928
2989
|
// `a:tblPr@rtl`: mirrors the column order for right-to-left decks.
|
|
2929
|
-
...
|
|
2990
|
+
...chunkLK35P6RE_cjs.tableContainerCss(tableData)
|
|
2930
2991
|
});
|
|
2931
2992
|
appendColgroup(doc, table, tableData.columnWidths);
|
|
2932
2993
|
const tbody = doc.createElement("tbody");
|
|
@@ -2988,13 +3049,13 @@ function renderCell(doc, tableData, cell, rowIndex, cellIndex, rowCount, columnC
|
|
|
2988
3049
|
if (cell.rowSpan && cell.rowSpan > 1) {
|
|
2989
3050
|
td.rowSpan = cell.rowSpan;
|
|
2990
3051
|
}
|
|
2991
|
-
const style =
|
|
3052
|
+
const style = chunkLK35P6RE_cjs.tableCellCss(
|
|
2992
3053
|
tableData,
|
|
2993
3054
|
cell,
|
|
2994
3055
|
{ rowIndex, cellIndex, rowCount, columnCount },
|
|
2995
3056
|
styleContext
|
|
2996
3057
|
);
|
|
2997
|
-
const patternFill = cell.style ?
|
|
3058
|
+
const patternFill = cell.style ? chunkLK35P6RE_cjs.cellPatternFillCss(cell.style) : null;
|
|
2998
3059
|
if (patternFill) {
|
|
2999
3060
|
delete style["backgroundColor"];
|
|
3000
3061
|
delete style["background"];
|
|
@@ -3005,9 +3066,9 @@ function renderCell(doc, tableData, cell, rowIndex, cellIndex, rowCount, columnC
|
|
|
3005
3066
|
style["backgroundColor"] = patternFill.backgroundColor;
|
|
3006
3067
|
}
|
|
3007
3068
|
}
|
|
3008
|
-
|
|
3009
|
-
|
|
3010
|
-
const diagonals =
|
|
3069
|
+
chunkZH35NTNU_cjs.applyStyleMap(td, CELL_BASE_STYLE);
|
|
3070
|
+
chunkZH35NTNU_cjs.applyStyleMap(td, style);
|
|
3071
|
+
const diagonals = chunkLK35P6RE_cjs.getCellDiagonalBorders(
|
|
3011
3072
|
cell.style,
|
|
3012
3073
|
tableData,
|
|
3013
3074
|
{ rowIndex, cellIndex, rowCount, columnCount },
|
|
@@ -3016,21 +3077,21 @@ function renderCell(doc, tableData, cell, rowIndex, cellIndex, rowCount, columnC
|
|
|
3016
3077
|
if (diagonals) {
|
|
3017
3078
|
td.appendChild(renderDiagonalOverlay(doc, diagonals));
|
|
3018
3079
|
}
|
|
3019
|
-
appendCellText(doc, td, cell, style);
|
|
3080
|
+
appendCellText(doc, td, cell, style, tableData.defaultCellFontSize);
|
|
3020
3081
|
return td;
|
|
3021
3082
|
}
|
|
3022
3083
|
function diagonalLine(doc, x1, y1, x2, y2, stroke, width) {
|
|
3023
|
-
const line =
|
|
3024
|
-
line.style.setProperty("stroke-width",
|
|
3084
|
+
const line = chunkZH35NTNU_cjs.createSvgEl(doc, "line", { x1, y1, x2, y2, stroke, "stroke-width": width });
|
|
3085
|
+
line.style.setProperty("stroke-width", chunkHWJKBKCW_cjs.screenStrokeWidth(width));
|
|
3025
3086
|
return line;
|
|
3026
3087
|
}
|
|
3027
3088
|
function renderDiagonalOverlay(doc, diagonals) {
|
|
3028
|
-
const svg =
|
|
3089
|
+
const svg = chunkZH35NTNU_cjs.createSvgEl(doc, "svg", {
|
|
3029
3090
|
class: "pptxv-table-diag",
|
|
3030
3091
|
"aria-hidden": "true",
|
|
3031
3092
|
preserveAspectRatio: "none"
|
|
3032
3093
|
});
|
|
3033
|
-
|
|
3094
|
+
chunkZH35NTNU_cjs.applyStyleMap(svg, {
|
|
3034
3095
|
position: "absolute",
|
|
3035
3096
|
inset: 0,
|
|
3036
3097
|
width: "100%",
|
|
@@ -3050,11 +3111,11 @@ function renderDiagonalOverlay(doc, diagonals) {
|
|
|
3050
3111
|
}
|
|
3051
3112
|
return svg;
|
|
3052
3113
|
}
|
|
3053
|
-
function appendCellText(doc, td, cell, cellCss) {
|
|
3054
|
-
const blocks =
|
|
3114
|
+
function appendCellText(doc, td, cell, cellCss, defaultFontPt) {
|
|
3115
|
+
const blocks = chunkLK35P6RE_cjs.cellParagraphBlocks(cell, { cellCss, defaultFontPt });
|
|
3055
3116
|
if (blocks) {
|
|
3056
3117
|
for (const block of blocks) {
|
|
3057
|
-
const div =
|
|
3118
|
+
const div = chunkZH35NTNU_cjs.createEl(doc, "div", "pptxv-table-para", { display: "block", ...block.css });
|
|
3058
3119
|
appendRuns(doc, div, block.runs, cellCss);
|
|
3059
3120
|
td.appendChild(div);
|
|
3060
3121
|
}
|
|
@@ -3063,7 +3124,7 @@ function appendCellText(doc, td, cell, cellCss) {
|
|
|
3063
3124
|
const richCell = cell;
|
|
3064
3125
|
const textRuns = richCell.textRuns && richCell.textRuns.length > 0 ? richCell.textRuns : null;
|
|
3065
3126
|
if (!textRuns) {
|
|
3066
|
-
const span =
|
|
3127
|
+
const span = chunkZH35NTNU_cjs.createEl(doc, "span", "pptxv-table-text", { position: "relative" });
|
|
3067
3128
|
span.textContent = cell.text || " ";
|
|
3068
3129
|
td.appendChild(span);
|
|
3069
3130
|
return;
|
|
@@ -3071,7 +3132,7 @@ function appendCellText(doc, td, cell, cellCss) {
|
|
|
3071
3132
|
for (const run of textRuns) {
|
|
3072
3133
|
if (run.isParagraphBreak) {
|
|
3073
3134
|
td.appendChild(
|
|
3074
|
-
|
|
3135
|
+
chunkZH35NTNU_cjs.createEl(doc, "div", "pptxv-table-para-break", { display: "block", height: 0 })
|
|
3075
3136
|
);
|
|
3076
3137
|
continue;
|
|
3077
3138
|
}
|
|
@@ -3084,9 +3145,9 @@ function appendRuns(doc, parent, runs, cellCss) {
|
|
|
3084
3145
|
parent.appendChild(doc.createElement("br"));
|
|
3085
3146
|
continue;
|
|
3086
3147
|
}
|
|
3087
|
-
const span =
|
|
3148
|
+
const span = chunkZH35NTNU_cjs.createEl(doc, "span", "pptxv-table-run", {
|
|
3088
3149
|
position: "relative",
|
|
3089
|
-
...
|
|
3150
|
+
...chunkLK35P6RE_cjs.cellRunStyle(run, cellCss)
|
|
3090
3151
|
});
|
|
3091
3152
|
span.textContent = run.text;
|
|
3092
3153
|
parent.appendChild(span);
|
|
@@ -3100,8 +3161,8 @@ function registerTableChartRenderers(registry) {
|
|
|
3100
3161
|
}
|
|
3101
3162
|
|
|
3102
3163
|
// src/pptx/dom/glyph-outline-cache.ts
|
|
3103
|
-
var glyphOutlineFontCache = new
|
|
3104
|
-
var getGlyphOutline =
|
|
3164
|
+
var glyphOutlineFontCache = new chunkLK35P6RE_cjs.GlyphOutlineFontCache();
|
|
3165
|
+
var getGlyphOutline = chunkLK35P6RE_cjs.createGlyphOutlineLookup(glyphOutlineFontCache);
|
|
3105
3166
|
|
|
3106
3167
|
// src/pptx/dom/elements/text-warp.ts
|
|
3107
3168
|
function renderWarpedText(element, context) {
|
|
@@ -3113,16 +3174,16 @@ function renderWarpedText(element, context) {
|
|
|
3113
3174
|
if (!preset || preset === "textNoShape") {
|
|
3114
3175
|
return null;
|
|
3115
3176
|
}
|
|
3116
|
-
const paragraphs =
|
|
3177
|
+
const paragraphs = chunkLK35P6RE_cjs.groupIntoParagraphs(element);
|
|
3117
3178
|
if (paragraphs.length === 0) {
|
|
3118
3179
|
return null;
|
|
3119
3180
|
}
|
|
3120
|
-
if (!
|
|
3121
|
-
const transform =
|
|
3181
|
+
if (!chunkLK35P6RE_cjs.shouldUseSvgWarp(preset)) {
|
|
3182
|
+
const transform = chunkLK35P6RE_cjs.getWarpCssTransform(preset, style?.textWarpAdj, style?.textWarpAdj2);
|
|
3122
3183
|
if (!transform) {
|
|
3123
3184
|
return null;
|
|
3124
3185
|
}
|
|
3125
|
-
const text =
|
|
3186
|
+
const text = chunkZH35NTNU_cjs.createEl(context.document, "div", "pptxv-wordart", {
|
|
3126
3187
|
width: "100%",
|
|
3127
3188
|
height: "100%",
|
|
3128
3189
|
display: "flex",
|
|
@@ -3140,14 +3201,14 @@ function renderWarpedText(element, context) {
|
|
|
3140
3201
|
if (style?.fontSize) {
|
|
3141
3202
|
text.style.fontSize = `${style.fontSize}px`;
|
|
3142
3203
|
}
|
|
3143
|
-
const fontWeight =
|
|
3204
|
+
const fontWeight = chunkLK35P6RE_cjs.fontWeightAttribute(style?.fontFamily, style?.bold);
|
|
3144
3205
|
if (fontWeight) {
|
|
3145
3206
|
text.style.fontWeight = fontWeight;
|
|
3146
3207
|
}
|
|
3147
3208
|
text.textContent = paragraphs.map((p) => p.segments.map((s) => s.text).join("")).join("\n");
|
|
3148
3209
|
return text;
|
|
3149
3210
|
}
|
|
3150
|
-
if (
|
|
3211
|
+
if (chunkLK35P6RE_cjs.hasGlyphEnvelope(preset)) {
|
|
3151
3212
|
return renderGlyphWarp(element, paragraphs, context);
|
|
3152
3213
|
}
|
|
3153
3214
|
return renderPathWarp(element, paragraphs, context);
|
|
@@ -3156,7 +3217,7 @@ function segmentFont(segment, elementStyle) {
|
|
|
3156
3217
|
const s = segment.style ?? {};
|
|
3157
3218
|
const family = s.fontFamily || elementStyle.fontFamily;
|
|
3158
3219
|
return {
|
|
3159
|
-
fontFamily: family ? pptx.getSubstituteFontFamily(family) :
|
|
3220
|
+
fontFamily: family ? pptx.getSubstituteFontFamily(family) : chunk2SO3BL67_cjs.DEFAULT_FONT_FAMILY,
|
|
3160
3221
|
fontSizePx: s.fontSize ?? elementStyle.fontSize ?? 18,
|
|
3161
3222
|
bold: s.bold ?? elementStyle.bold,
|
|
3162
3223
|
italic: s.italic ?? elementStyle.italic
|
|
@@ -3167,13 +3228,13 @@ function renderGlyphWarp(element, paragraphs, context) {
|
|
|
3167
3228
|
const preset = style.textWarpPreset;
|
|
3168
3229
|
const width = Math.max(element.width, 1);
|
|
3169
3230
|
const height = Math.max(element.height, 1);
|
|
3170
|
-
const svg =
|
|
3231
|
+
const svg = chunkZH35NTNU_cjs.createSvgEl(context.document, "svg", {
|
|
3171
3232
|
viewBox: `0 0 ${width} ${height}`,
|
|
3172
3233
|
"aria-hidden": "true"
|
|
3173
3234
|
});
|
|
3174
3235
|
svg.setAttribute("class", "pptxv-wordart");
|
|
3175
3236
|
svg.setAttribute("style", "position:absolute;inset:0;width:100%;height:100%;overflow:visible");
|
|
3176
|
-
const perLine =
|
|
3237
|
+
const perLine = chunkLK35P6RE_cjs.buildGlyphEnvelopeBlock(
|
|
3177
3238
|
preset,
|
|
3178
3239
|
paragraphs.map(
|
|
3179
3240
|
(paragraph) => paragraph.segments.map((seg, i) => ({
|
|
@@ -3194,23 +3255,23 @@ function renderGlyphWarp(element, paragraphs, context) {
|
|
|
3194
3255
|
const segments = paragraph.segments;
|
|
3195
3256
|
const glyphs = perLine[lineIndex] ?? [];
|
|
3196
3257
|
glyphs.forEach((g, glyphIndex) => {
|
|
3197
|
-
const
|
|
3198
|
-
const fill =
|
|
3199
|
-
const renderedFamily = s.fontFamily || style.fontFamily;
|
|
3258
|
+
const paint = chunkLK35P6RE_cjs.resolveWarpRunPaint(segments[g.segmentIndex], style);
|
|
3259
|
+
const fill = paint.fill;
|
|
3200
3260
|
const textAttrs = {
|
|
3201
3261
|
fill,
|
|
3202
|
-
"font-family":
|
|
3203
|
-
"font-size":
|
|
3204
|
-
"font-weight":
|
|
3205
|
-
"font-style":
|
|
3262
|
+
"font-family": paint.fontFamily,
|
|
3263
|
+
"font-size": paint.fontSizePx,
|
|
3264
|
+
"font-weight": paint.fontWeight,
|
|
3265
|
+
"font-style": paint.fontStyle,
|
|
3266
|
+
"text-decoration": paint.textDecoration
|
|
3206
3267
|
};
|
|
3207
3268
|
if (g.outlinePath) {
|
|
3208
|
-
const path =
|
|
3269
|
+
const path = chunkZH35NTNU_cjs.createSvgEl(context.document, "path", { d: g.outlinePath, fill });
|
|
3209
3270
|
svg.appendChild(path);
|
|
3210
3271
|
return;
|
|
3211
3272
|
}
|
|
3212
3273
|
if (!g.slices || g.slices.length <= 1) {
|
|
3213
|
-
const text =
|
|
3274
|
+
const text = chunkZH35NTNU_cjs.createSvgEl(context.document, "text", {
|
|
3214
3275
|
x: g.x,
|
|
3215
3276
|
y: g.y,
|
|
3216
3277
|
transform: g.transform,
|
|
@@ -3220,17 +3281,17 @@ function renderGlyphWarp(element, paragraphs, context) {
|
|
|
3220
3281
|
svg.appendChild(text);
|
|
3221
3282
|
return;
|
|
3222
3283
|
}
|
|
3223
|
-
const group =
|
|
3284
|
+
const group = chunkZH35NTNU_cjs.createSvgEl(context.document, "g", {
|
|
3224
3285
|
"data-glyph-slices": g.slices.length
|
|
3225
3286
|
});
|
|
3226
3287
|
g.slices.forEach((slice, sliceIndex) => {
|
|
3227
3288
|
const clipId = `${element.id.replace(/[^a-zA-Z0-9_-]/gu, "_")}-warp-l${lineIndex}-g${glyphIndex}-s${sliceIndex}`;
|
|
3228
|
-
const clipPath =
|
|
3289
|
+
const clipPath = chunkZH35NTNU_cjs.createSvgEl(context.document, "clipPath", {
|
|
3229
3290
|
id: clipId,
|
|
3230
3291
|
clipPathUnits: "userSpaceOnUse"
|
|
3231
3292
|
});
|
|
3232
3293
|
clipPath.appendChild(
|
|
3233
|
-
|
|
3294
|
+
chunkZH35NTNU_cjs.createSvgEl(context.document, "rect", {
|
|
3234
3295
|
x: slice.clipX0,
|
|
3235
3296
|
y: -1e5,
|
|
3236
3297
|
width: slice.clipX1 - slice.clipX0,
|
|
@@ -3238,7 +3299,7 @@ function renderGlyphWarp(element, paragraphs, context) {
|
|
|
3238
3299
|
})
|
|
3239
3300
|
);
|
|
3240
3301
|
group.appendChild(clipPath);
|
|
3241
|
-
const text =
|
|
3302
|
+
const text = chunkZH35NTNU_cjs.createSvgEl(context.document, "text", {
|
|
3242
3303
|
x: g.x,
|
|
3243
3304
|
y: g.y,
|
|
3244
3305
|
transform: slice.transform,
|
|
@@ -3256,20 +3317,20 @@ function renderGlyphWarp(element, paragraphs, context) {
|
|
|
3256
3317
|
function renderPathWarp(element, paragraphs, context) {
|
|
3257
3318
|
const style = element.textStyle;
|
|
3258
3319
|
const preset = style.textWarpPreset;
|
|
3259
|
-
const svg =
|
|
3320
|
+
const svg = chunkZH35NTNU_cjs.createSvgEl(context.document, "svg", {
|
|
3260
3321
|
viewBox: `0 0 ${Math.max(element.width, 1)} ${Math.max(element.height, 1)}`,
|
|
3261
3322
|
preserveAspectRatio: "none",
|
|
3262
3323
|
"aria-hidden": "true"
|
|
3263
3324
|
});
|
|
3264
3325
|
svg.setAttribute("class", "pptxv-wordart");
|
|
3265
3326
|
svg.setAttribute("style", "position:absolute;inset:0;width:100%;height:100%;overflow:visible");
|
|
3266
|
-
const defs =
|
|
3327
|
+
const defs = chunkZH35NTNU_cjs.createSvgEl(context.document, "defs");
|
|
3267
3328
|
paragraphs.forEach((paragraph, index) => {
|
|
3268
3329
|
const id = `${element.id.replace(/[^a-zA-Z0-9_-]/gu, "_")}-warp-${index}`;
|
|
3269
3330
|
defs.appendChild(
|
|
3270
|
-
|
|
3331
|
+
chunkZH35NTNU_cjs.createSvgEl(context.document, "path", {
|
|
3271
3332
|
id,
|
|
3272
|
-
d:
|
|
3333
|
+
d: chunkLK35P6RE_cjs.buildWarpPath(
|
|
3273
3334
|
preset,
|
|
3274
3335
|
element.width,
|
|
3275
3336
|
element.height,
|
|
@@ -3280,19 +3341,31 @@ function renderPathWarp(element, paragraphs, context) {
|
|
|
3280
3341
|
)
|
|
3281
3342
|
})
|
|
3282
3343
|
);
|
|
3283
|
-
const text =
|
|
3344
|
+
const text = chunkZH35NTNU_cjs.createSvgEl(context.document, "text", {
|
|
3284
3345
|
fill: style.color ?? "#000000",
|
|
3285
|
-
"font-family": style.fontFamily ? pptx.getSubstituteFontFamily(style.fontFamily) :
|
|
3346
|
+
"font-family": style.fontFamily ? pptx.getSubstituteFontFamily(style.fontFamily) : chunk2SO3BL67_cjs.DEFAULT_FONT_FAMILY,
|
|
3286
3347
|
"font-size": style.fontSize ?? 18,
|
|
3287
|
-
"font-weight":
|
|
3288
|
-
"font-style":
|
|
3348
|
+
"font-weight": chunkLK35P6RE_cjs.fontWeightAttribute(style.fontFamily, style.bold),
|
|
3349
|
+
"font-style": chunkLK35P6RE_cjs.resolveFontItalic(style.fontFamily, style.italic) ? "italic" : void 0
|
|
3289
3350
|
});
|
|
3290
|
-
const textPath =
|
|
3351
|
+
const textPath = chunkZH35NTNU_cjs.createSvgEl(context.document, "textPath", {
|
|
3291
3352
|
href: `#${id}`,
|
|
3292
3353
|
startOffset: "50%",
|
|
3293
3354
|
"text-anchor": "middle"
|
|
3294
3355
|
});
|
|
3295
|
-
|
|
3356
|
+
for (const segment of paragraph.segments) {
|
|
3357
|
+
const paint = chunkLK35P6RE_cjs.resolveWarpRunPaint(segment, style);
|
|
3358
|
+
const tspan = chunkZH35NTNU_cjs.createSvgEl(context.document, "tspan", {
|
|
3359
|
+
fill: paint.fill,
|
|
3360
|
+
"font-family": paint.fontFamily,
|
|
3361
|
+
"font-size": paint.fontSizePx,
|
|
3362
|
+
"font-weight": paint.fontWeight ?? "normal",
|
|
3363
|
+
"font-style": paint.fontStyle ?? "normal",
|
|
3364
|
+
"text-decoration": paint.textDecoration
|
|
3365
|
+
});
|
|
3366
|
+
tspan.textContent = segment.text;
|
|
3367
|
+
textPath.appendChild(tspan);
|
|
3368
|
+
}
|
|
3296
3369
|
text.appendChild(textPath);
|
|
3297
3370
|
svg.appendChild(text);
|
|
3298
3371
|
});
|
|
@@ -3302,9 +3375,9 @@ function renderPathWarp(element, paragraphs, context) {
|
|
|
3302
3375
|
|
|
3303
3376
|
// src/pptx/dom/elements/text-shape.ts
|
|
3304
3377
|
var renderTextShapeElement = (element, zIndex, context) => {
|
|
3305
|
-
const container =
|
|
3378
|
+
const container = chunkLK35P6RE_cjs.getContainerStyle(element, zIndex);
|
|
3306
3379
|
const animState = context.presentationStates?.get(element.id);
|
|
3307
|
-
const background =
|
|
3380
|
+
const background = chunkLK35P6RE_cjs.getBackgroundAnimationState(element, context.presentationStates);
|
|
3308
3381
|
const visualState = background ?? animState;
|
|
3309
3382
|
const shape = getShapeFillStrokeStyle(
|
|
3310
3383
|
element,
|
|
@@ -3312,32 +3385,36 @@ var renderTextShapeElement = (element, zIndex, context) => {
|
|
|
3312
3385
|
visualState?.animatesStroke
|
|
3313
3386
|
);
|
|
3314
3387
|
const merged = { ...container, ...shape };
|
|
3315
|
-
const bleedPatch =
|
|
3388
|
+
const bleedPatch = chunkLK35P6RE_cjs.abuttingEdgeBleedStyle(element, context.edgeBleeds?.get(element.id), merged);
|
|
3316
3389
|
const beforeBleed = { ...merged };
|
|
3317
3390
|
Object.assign(merged, bleedPatch);
|
|
3318
|
-
const transform =
|
|
3391
|
+
const transform = chunkZH35NTNU_cjs.composeTransforms(container["transform"], shape["transform"]);
|
|
3319
3392
|
if (transform !== void 0) {
|
|
3320
3393
|
merged["transform"] = transform;
|
|
3321
3394
|
}
|
|
3322
|
-
const layers =
|
|
3323
|
-
const el =
|
|
3395
|
+
const layers = chunkLK35P6RE_cjs.getBackgroundAnimationLayers(element, merged, background);
|
|
3396
|
+
const el = chunkZH35NTNU_cjs.createEl(context.document, "div", "pptxv-element pptxv-shape", layers.box);
|
|
3324
3397
|
el.dataset.elementId = element.id;
|
|
3325
3398
|
markAbuttingEdgeBleed(el, bleedPatch, beforeBleed);
|
|
3326
|
-
const paint = layers.paint ?
|
|
3399
|
+
const paint = layers.paint ? chunkZH35NTNU_cjs.createEl(context.document, "div", void 0, layers.paint) : el;
|
|
3327
3400
|
if (paint !== el) {
|
|
3328
3401
|
paint.dataset.animId = layers.targetId;
|
|
3329
3402
|
paint.dataset.pptxAnimationLayer = "background";
|
|
3330
3403
|
el.appendChild(paint);
|
|
3331
3404
|
}
|
|
3332
3405
|
if (context.interactive && !context.presenting) {
|
|
3333
|
-
const hitTargetStyle =
|
|
3406
|
+
const hitTargetStyle = chunkLK35P6RE_cjs.elementHitTargetStyle(element);
|
|
3334
3407
|
if (hitTargetStyle) {
|
|
3335
|
-
const hitTarget =
|
|
3408
|
+
const hitTarget = chunkZH35NTNU_cjs.createEl(context.document, "div", void 0, hitTargetStyle);
|
|
3336
3409
|
hitTarget.setAttribute("aria-hidden", "true");
|
|
3337
3410
|
hitTarget.setAttribute("data-pptx-hit-target", "true");
|
|
3338
3411
|
el.appendChild(hitTarget);
|
|
3339
3412
|
}
|
|
3340
3413
|
}
|
|
3414
|
+
const fillLayer = renderShapeFillLayer(context.document, element);
|
|
3415
|
+
if (fillLayer) {
|
|
3416
|
+
paint.appendChild(fillLayer);
|
|
3417
|
+
}
|
|
3341
3418
|
const subpathFill = renderShapeSubpathFillOverlay(context.document, element);
|
|
3342
3419
|
if (subpathFill) {
|
|
3343
3420
|
paint.appendChild(subpathFill);
|
|
@@ -3373,8 +3450,8 @@ var renderTextShapeElement = (element, zIndex, context) => {
|
|
|
3373
3450
|
} else if (warped) {
|
|
3374
3451
|
el.appendChild(warped);
|
|
3375
3452
|
} else {
|
|
3376
|
-
const linkedSegments =
|
|
3377
|
-
const paragraphs =
|
|
3453
|
+
const linkedSegments = chunkLK35P6RE_cjs.getOverflowSegments(element, context.slide?.elements);
|
|
3454
|
+
const paragraphs = chunkLK35P6RE_cjs.buildParagraphs(element, context.fieldContext, linkedSegments);
|
|
3378
3455
|
const hasText = paragraphs.some((p) => p.runs.length > 0 || p.bulletMarker !== void 0);
|
|
3379
3456
|
if (hasText) {
|
|
3380
3457
|
el.appendChild(
|
|
@@ -3385,9 +3462,9 @@ var renderTextShapeElement = (element, zIndex, context) => {
|
|
|
3385
3462
|
);
|
|
3386
3463
|
} else {
|
|
3387
3464
|
const mode = context.interactive && !context.presenting ? "edit" : "present";
|
|
3388
|
-
const prompt =
|
|
3465
|
+
const prompt = chunkLK35P6RE_cjs.placeholderPromptDescriptor(element, mode);
|
|
3389
3466
|
if (prompt) {
|
|
3390
|
-
const hint =
|
|
3467
|
+
const hint = chunkZH35NTNU_cjs.createEl(context.document, "div", "pptxv-placeholder-prompt", {
|
|
3391
3468
|
...getTextBlockStyle(element),
|
|
3392
3469
|
...prompt.style
|
|
3393
3470
|
});
|
|
@@ -3401,7 +3478,7 @@ var renderTextShapeElement = (element, zIndex, context) => {
|
|
|
3401
3478
|
|
|
3402
3479
|
// src/pptx/dom/elements/index.ts
|
|
3403
3480
|
function createDefaultRegistry() {
|
|
3404
|
-
const registry =
|
|
3481
|
+
const registry = chunkZH35NTNU_cjs.createElementRendererRegistry();
|
|
3405
3482
|
registry.register("text", renderTextShapeElement);
|
|
3406
3483
|
registry.register("shape", renderTextShapeElement);
|
|
3407
3484
|
registry.register("image", renderImageElement);
|
|
@@ -3451,8 +3528,8 @@ async function loadPresentation(buffer, options) {
|
|
|
3451
3528
|
digitalSignatureCount: parsed.digitalSignatureCount ?? 0,
|
|
3452
3529
|
isPasswordProtected: parsed.isPasswordProtected ?? false,
|
|
3453
3530
|
canvasSize: {
|
|
3454
|
-
width: parsed.width ??
|
|
3455
|
-
height: parsed.height ??
|
|
3531
|
+
width: parsed.width ?? chunk2SO3BL67_cjs.DEFAULT_CANVAS_WIDTH,
|
|
3532
|
+
height: parsed.height ?? chunk2SO3BL67_cjs.DEFAULT_CANVAS_HEIGHT
|
|
3456
3533
|
},
|
|
3457
3534
|
mediaDataUrls,
|
|
3458
3535
|
colorScheme: parsed.theme?.colorScheme,
|
|
@@ -3553,119 +3630,119 @@ async function resolveImageUrls(handler, slides) {
|
|
|
3553
3630
|
|
|
3554
3631
|
Object.defineProperty(exports, "SMARTART_SVG_STYLE", {
|
|
3555
3632
|
enumerable: true,
|
|
3556
|
-
get: function () { return
|
|
3633
|
+
get: function () { return chunkZH35NTNU_cjs.SMARTART_SVG_STYLE; }
|
|
3557
3634
|
});
|
|
3558
3635
|
Object.defineProperty(exports, "appendSvgTextLines", {
|
|
3559
3636
|
enumerable: true,
|
|
3560
|
-
get: function () { return
|
|
3637
|
+
get: function () { return chunkZH35NTNU_cjs.appendSvgTextLines; }
|
|
3561
3638
|
});
|
|
3562
3639
|
Object.defineProperty(exports, "applyStyleMap", {
|
|
3563
3640
|
enumerable: true,
|
|
3564
|
-
get: function () { return
|
|
3641
|
+
get: function () { return chunkZH35NTNU_cjs.applyStyleMap; }
|
|
3565
3642
|
});
|
|
3566
3643
|
Object.defineProperty(exports, "applyThreeViewTextStyle", {
|
|
3567
3644
|
enumerable: true,
|
|
3568
|
-
get: function () { return
|
|
3645
|
+
get: function () { return chunkZH35NTNU_cjs.applyThreeViewTextStyle; }
|
|
3569
3646
|
});
|
|
3570
3647
|
Object.defineProperty(exports, "buildSmartArtFallbackSvg", {
|
|
3571
3648
|
enumerable: true,
|
|
3572
|
-
get: function () { return
|
|
3649
|
+
get: function () { return chunkZH35NTNU_cjs.buildSmartArtFallbackSvg; }
|
|
3573
3650
|
});
|
|
3574
3651
|
Object.defineProperty(exports, "buildSmartArtInsertPreview", {
|
|
3575
3652
|
enumerable: true,
|
|
3576
|
-
get: function () { return
|
|
3653
|
+
get: function () { return chunkZH35NTNU_cjs.buildSmartArtInsertPreview; }
|
|
3577
3654
|
});
|
|
3578
3655
|
Object.defineProperty(exports, "buildSvgGradientDefs", {
|
|
3579
3656
|
enumerable: true,
|
|
3580
|
-
get: function () { return
|
|
3657
|
+
get: function () { return chunkZH35NTNU_cjs.buildSvgGradientDefs; }
|
|
3581
3658
|
});
|
|
3582
3659
|
Object.defineProperty(exports, "collectThreeViews", {
|
|
3583
3660
|
enumerable: true,
|
|
3584
|
-
get: function () { return
|
|
3661
|
+
get: function () { return chunkZH35NTNU_cjs.collectThreeViews; }
|
|
3585
3662
|
});
|
|
3586
3663
|
Object.defineProperty(exports, "composeTransforms", {
|
|
3587
3664
|
enumerable: true,
|
|
3588
|
-
get: function () { return
|
|
3665
|
+
get: function () { return chunkZH35NTNU_cjs.composeTransforms; }
|
|
3589
3666
|
});
|
|
3590
3667
|
Object.defineProperty(exports, "createEl", {
|
|
3591
3668
|
enumerable: true,
|
|
3592
|
-
get: function () { return
|
|
3669
|
+
get: function () { return chunkZH35NTNU_cjs.createEl; }
|
|
3593
3670
|
});
|
|
3594
3671
|
Object.defineProperty(exports, "createElementRendererRegistry", {
|
|
3595
3672
|
enumerable: true,
|
|
3596
|
-
get: function () { return
|
|
3673
|
+
get: function () { return chunkZH35NTNU_cjs.createElementRendererRegistry; }
|
|
3597
3674
|
});
|
|
3598
3675
|
Object.defineProperty(exports, "createSvgEl", {
|
|
3599
3676
|
enumerable: true,
|
|
3600
|
-
get: function () { return
|
|
3677
|
+
get: function () { return chunkZH35NTNU_cjs.createSvgEl; }
|
|
3601
3678
|
});
|
|
3602
3679
|
Object.defineProperty(exports, "enableSmartArtEditing", {
|
|
3603
3680
|
enumerable: true,
|
|
3604
|
-
get: function () { return
|
|
3681
|
+
get: function () { return chunkZH35NTNU_cjs.enableSmartArtEditing; }
|
|
3605
3682
|
});
|
|
3606
3683
|
Object.defineProperty(exports, "isChart3DEditable", {
|
|
3607
3684
|
enumerable: true,
|
|
3608
|
-
get: function () { return
|
|
3685
|
+
get: function () { return chunkZH35NTNU_cjs.isChart3DEditable; }
|
|
3609
3686
|
});
|
|
3610
3687
|
Object.defineProperty(exports, "mountThreeViewInto", {
|
|
3611
3688
|
enumerable: true,
|
|
3612
|
-
get: function () { return
|
|
3689
|
+
get: function () { return chunkZH35NTNU_cjs.mountThreeViewInto; }
|
|
3613
3690
|
});
|
|
3614
3691
|
Object.defineProperty(exports, "renderSmartArt3DElement", {
|
|
3615
3692
|
enumerable: true,
|
|
3616
|
-
get: function () { return
|
|
3693
|
+
get: function () { return chunkZH35NTNU_cjs.renderSmartArt3DElement; }
|
|
3617
3694
|
});
|
|
3618
3695
|
Object.defineProperty(exports, "renderSmartArtElement", {
|
|
3619
3696
|
enumerable: true,
|
|
3620
|
-
get: function () { return
|
|
3697
|
+
get: function () { return chunkZH35NTNU_cjs.renderSmartArtElement; }
|
|
3621
3698
|
});
|
|
3622
3699
|
Object.defineProperty(exports, "renderSmartArtSvg", {
|
|
3623
3700
|
enumerable: true,
|
|
3624
|
-
get: function () { return
|
|
3701
|
+
get: function () { return chunkZH35NTNU_cjs.renderSmartArtSvg; }
|
|
3625
3702
|
});
|
|
3626
3703
|
Object.defineProperty(exports, "rendering3DFlagsOf", {
|
|
3627
3704
|
enumerable: true,
|
|
3628
|
-
get: function () { return
|
|
3705
|
+
get: function () { return chunkZH35NTNU_cjs.rendering3DFlagsOf; }
|
|
3629
3706
|
});
|
|
3630
3707
|
Object.defineProperty(exports, "selectedChartPartOf", {
|
|
3631
3708
|
enumerable: true,
|
|
3632
|
-
get: function () { return
|
|
3709
|
+
get: function () { return chunkZH35NTNU_cjs.selectedChartPartOf; }
|
|
3633
3710
|
});
|
|
3634
3711
|
Object.defineProperty(exports, "setSvgAttrs", {
|
|
3635
3712
|
enumerable: true,
|
|
3636
|
-
get: function () { return
|
|
3713
|
+
get: function () { return chunkZH35NTNU_cjs.setSvgAttrs; }
|
|
3637
3714
|
});
|
|
3638
3715
|
Object.defineProperty(exports, "takeReusableThreeView", {
|
|
3639
3716
|
enumerable: true,
|
|
3640
|
-
get: function () { return
|
|
3717
|
+
get: function () { return chunkZH35NTNU_cjs.takeReusableThreeView; }
|
|
3641
3718
|
});
|
|
3642
3719
|
Object.defineProperty(exports, "wireChartThreeViewEvents", {
|
|
3643
3720
|
enumerable: true,
|
|
3644
|
-
get: function () { return
|
|
3721
|
+
get: function () { return chunkZH35NTNU_cjs.wireChartThreeViewEvents; }
|
|
3645
3722
|
});
|
|
3646
3723
|
Object.defineProperty(exports, "withReusableThreeViews", {
|
|
3647
3724
|
enumerable: true,
|
|
3648
|
-
get: function () { return
|
|
3725
|
+
get: function () { return chunkZH35NTNU_cjs.withReusableThreeViews; }
|
|
3649
3726
|
});
|
|
3650
3727
|
Object.defineProperty(exports, "buildEmbeddedFontStyles", {
|
|
3651
3728
|
enumerable: true,
|
|
3652
|
-
get: function () { return
|
|
3729
|
+
get: function () { return chunkLK35P6RE_cjs.buildEmbeddedFontStyles; }
|
|
3653
3730
|
});
|
|
3654
3731
|
Object.defineProperty(exports, "buildFieldSubstitutionContext", {
|
|
3655
3732
|
enumerable: true,
|
|
3656
|
-
get: function () { return
|
|
3733
|
+
get: function () { return chunkLK35P6RE_cjs.buildFieldSubstitutionContext; }
|
|
3657
3734
|
});
|
|
3658
3735
|
Object.defineProperty(exports, "releasePptxRenderCaches", {
|
|
3659
3736
|
enumerable: true,
|
|
3660
|
-
get: function () { return
|
|
3737
|
+
get: function () { return chunkLK35P6RE_cjs.releasePptxRenderCaches; }
|
|
3661
3738
|
});
|
|
3662
3739
|
Object.defineProperty(exports, "renderChartViewModelSvg", {
|
|
3663
3740
|
enumerable: true,
|
|
3664
|
-
get: function () { return
|
|
3741
|
+
get: function () { return chunk2GDYTHUY_cjs.renderChartViewModelSvg; }
|
|
3665
3742
|
});
|
|
3666
3743
|
Object.defineProperty(exports, "createTranslator", {
|
|
3667
3744
|
enumerable: true,
|
|
3668
|
-
get: function () { return
|
|
3745
|
+
get: function () { return chunkZHVKGGLQ_cjs.createTranslator; }
|
|
3669
3746
|
});
|
|
3670
3747
|
exports.CHART_FORMAT_REQUEST_EVENT = CHART_FORMAT_REQUEST_EVENT;
|
|
3671
3748
|
exports.appendCommentMarkers = appendCommentMarkers;
|
|
@@ -3705,6 +3782,7 @@ exports.renderModel3dElement = renderModel3dElement;
|
|
|
3705
3782
|
exports.renderOleElement = renderOleElement;
|
|
3706
3783
|
exports.renderPlaceholderElement = renderPlaceholderElement;
|
|
3707
3784
|
exports.renderReflectionOverlay = renderReflectionOverlay;
|
|
3785
|
+
exports.renderShapeFillLayer = renderShapeFillLayer;
|
|
3708
3786
|
exports.renderShapeFillOverlay = renderShapeFillOverlay;
|
|
3709
3787
|
exports.renderShapeFilterDefs = renderShapeFilterDefs;
|
|
3710
3788
|
exports.renderShapeSubpathFillOverlay = renderShapeSubpathFillOverlay;
|