ooxml-ui 1.40.0 → 1.41.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/custom-elements.json +480 -0
- package/dist/base.d.ts +0 -1
- package/dist/building-block-styles.d.ts +0 -1
- package/dist/chart/data-sheet-keys.d.ts +0 -1
- package/dist/chart/data-sheet.d.ts +1 -2
- package/dist/chart/format-pane-advanced-space.d.ts +0 -1
- package/dist/chart/format-pane-analysis.d.ts +0 -1
- package/dist/chart/format-pane-fields.d.ts +0 -1
- package/dist/chart/format-pane-fill-line.d.ts +0 -1
- package/dist/chart/format-pane-intent.d.ts +0 -1
- package/dist/chart/format-pane-locales/de.d.ts +0 -1
- package/dist/chart/format-pane-locales/en.d.ts +0 -1
- package/dist/chart/format-pane-text.d.ts +0 -1
- package/dist/chart/format-pane-translate.d.ts +0 -1
- package/dist/chrome/account.d.ts +1 -2
- package/dist/chrome/print-preview.d.ts +1 -2
- package/dist/chrome/ruler.d.ts +1 -2
- package/dist/chrome/status-bar.d.ts +1 -2
- package/dist/chrome/tab-drag.d.ts +0 -1
- package/dist/chrome/task-pane.d.ts +1 -2
- package/dist/chunk-4RFFOPBU.js +90 -0
- package/dist/{chunk-BOTLS2PR.js → chunk-4ZSZPUE5.js} +20 -0
- package/dist/{chunk-XL77FR4B.js → chunk-6EOS74O4.js} +6 -0
- package/dist/{chunk-GZNBWWJ5.js → chunk-6FFZFH73.js} +43 -27
- package/dist/{chunk-FYBLAPAJ.js → chunk-7L4NP4HN.js} +149 -76
- package/dist/{chunk-QLHCGV4C.js → chunk-FE5KE5TR.js} +1 -1
- package/dist/{chunk-C4KI635Q.js → chunk-II43ALTT.js} +1 -1
- package/dist/{chunk-6VF4FEMY.js → chunk-LBIABP4I.js} +1 -1
- package/dist/{chunk-T5ARELU2.js → chunk-N6AKS4ED.js} +1 -1
- package/dist/{chunk-YZH2QS7J.js → chunk-Q6WZEGAM.js} +1 -1
- package/dist/{chunk-IZ7XMMMJ.js → chunk-TTT5IQBU.js} +10 -5
- package/dist/{chunk-QAX4FAB7.js → chunk-Y6KY34VD.js} +1632 -202
- package/dist/comments/mentions.d.ts +0 -1
- package/dist/comments/types.d.ts +0 -1
- package/dist/controls.d.ts +16 -3
- package/dist/controls.d.ts.map +1 -1
- package/dist/controls.js +4 -4
- package/dist/dialog/chart-picker.d.ts +1 -2
- package/dist/dialog/dialog-footer.d.ts +1 -2
- package/dist/dialog/dialog-session.d.ts +0 -1
- package/dist/dialog/dialog.d.ts +1 -2
- package/dist/dialog/focus.d.ts +0 -1
- package/dist/dialog/message-dialog.d.ts +84 -0
- package/dist/dialog/message-dialog.d.ts.map +1 -0
- package/dist/dialog/message-dialogs.d.ts +38 -0
- package/dist/dialog/message-dialogs.d.ts.map +1 -0
- package/dist/dialog/options-categories.d.ts +0 -1
- package/dist/dialog/options-controls.d.ts +0 -1
- package/dist/dialog/progress-dialog.d.ts +1 -2
- package/dist/dialog/share-controller.d.ts +38 -0
- package/dist/dialog/share-dialog-locales.d.ts +47 -0
- package/dist/dialog/share-dialog-locales.d.ts.map +1 -0
- package/dist/dialog/share-dialog.d.ts +121 -0
- package/dist/dialog/share-dialog.d.ts.map +1 -0
- package/dist/docx/backstage-account.d.ts +3 -0
- package/dist/docx/backstage-open.d.ts +4 -0
- package/dist/docx/backstage-pages.d.ts +8 -1
- package/dist/docx/backstage.d.ts +1 -1
- package/dist/docx/cloud-labels.d.ts +4 -0
- package/dist/docx/editor-chrome.d.ts +16 -1
- package/dist/docx/editor-core.d.ts +13 -1
- package/dist/docx/element-api.d.ts +17 -1
- package/dist/docx/file-commands.d.ts +2 -2
- package/dist/docx/locales/en-app.d.ts +36 -0
- package/dist/docx/locales/en.d.ts +36 -0
- package/dist/docx/localization-strings.d.ts +36 -0
- package/dist/docx.js +402 -54
- package/dist/files/cloud-files-labels.d.ts +44 -0
- package/dist/files/cloud-files-labels.d.ts.map +1 -0
- package/dist/files/cloud-files-view.d.ts +42 -0
- package/dist/files/cloud-files-view.d.ts.map +1 -0
- package/dist/files/cloud-files.d.ts +130 -0
- package/dist/files/cloud-files.d.ts.map +1 -0
- package/dist/files/connected-services-labels.d.ts +6 -0
- package/dist/files/connected-services.d.ts +70 -0
- package/dist/files/connected-services.d.ts.map +1 -0
- package/dist/files/open-places.d.ts +58 -0
- package/dist/files/open-places.d.ts.map +1 -0
- package/dist/fonts/availability.d.ts +0 -1
- package/dist/fonts/catalog.d.ts +0 -1
- package/dist/fonts/custom-fonts.d.ts +0 -1
- package/dist/form/checkbox.d.ts +1 -2
- package/dist/form/color-custom.d.ts +1 -2
- package/dist/form/color-grid.d.ts +1 -2
- package/dist/form/color-input/live-color-leaves.d.ts +0 -1
- package/dist/form/radio.d.ts +1 -2
- package/dist/form/search-field.d.ts +1 -2
- package/dist/form/symbol-picker.d.ts +1 -2
- package/dist/form/zoom-slider.d.ts +1 -2
- package/dist/image-native-size.d.ts +0 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +10 -10
- package/dist/menu/command-search.d.ts +1 -2
- package/dist/menu/context-menu.d.ts +1 -2
- package/dist/menu/menu-item.d.ts +1 -2
- package/dist/notices/paste-options.d.ts +1 -2
- package/dist/notices/read-only-banner.d.ts.map +1 -1
- package/dist/notices/toasts.d.ts +1 -2
- package/dist/picture-effects.d.ts +0 -1
- package/dist/picture-pixels.d.ts.map +1 -1
- package/dist/picture-standard-filter.d.ts +0 -1
- package/dist/picture-view.d.ts +0 -1
- package/dist/pptx/{chart-3d-view-scene-V55XPBBF.cjs → chart-3d-view-scene-C7QUQTXD.cjs} +37 -37
- package/dist/pptx/{chart-3d-view-scene-BKNMGRGO.mjs → chart-3d-view-scene-CGLU6ISD.mjs} +2 -2
- package/dist/pptx/{chunk-ZLK243QC.cjs → chunk-4SZSTDER.cjs} +49 -49
- package/dist/pptx/{chunk-S5VKG3XJ.cjs → chunk-7XXOLM7H.cjs} +1 -1
- package/dist/pptx/{chunk-WZHYA2B3.mjs → chunk-DH6EKOVI.mjs} +1 -1
- package/dist/pptx/{chunk-MK2ASJSY.mjs → chunk-G4VNRJUX.mjs} +6 -0
- package/dist/pptx/{chunk-BLONL4S7.mjs → chunk-IN46QNJE.mjs} +1 -1
- package/dist/pptx/{chunk-NUB6VP7R.mjs → chunk-J6PRXB72.mjs} +6986 -2851
- package/dist/pptx/{chunk-HIRBPTML.cjs → chunk-JP26TA3Q.cjs} +12 -12
- package/dist/pptx/{chunk-XTC6MQYM.mjs → chunk-JU3ZV73R.mjs} +3 -3
- package/dist/pptx/{chunk-XWAX3PZO.cjs → chunk-RN3JVXVN.cjs} +7198 -3021
- package/dist/pptx/{chunk-WQI3NLMY.mjs → chunk-SF3MYUTD.mjs} +41 -0
- package/dist/pptx/{chunk-QK6LJT3K.mjs → chunk-TW5UQCZS.mjs} +7 -17
- package/dist/pptx/{chunk-CRV7G4GC.cjs → chunk-WNDGU3GQ.cjs} +41 -0
- package/dist/pptx/{chunk-3ESFHUZI.cjs → chunk-XZSGVMRN.cjs} +6 -0
- package/dist/pptx/{chunk-KJICUZXM.cjs → chunk-YZWKNFPU.cjs} +6 -16
- package/dist/pptx/dom/elements/shape-filter-defs.d.ts.map +1 -1
- package/dist/pptx/dom/elements/text-shape.d.ts.map +1 -1
- package/dist/pptx/dom/index.cjs +434 -428
- package/dist/pptx/dom/index.mjs +17 -11
- package/dist/pptx/dom/slide-stage.d.ts.map +1 -1
- package/dist/pptx/dom/types.d.ts +8 -1
- package/dist/pptx/dom/types.d.ts.map +1 -1
- package/dist/pptx/export/html2canvas-clone.cjs +6 -6
- package/dist/pptx/export/html2canvas-clone.mjs +1 -1
- package/dist/pptx/export/presentation-save.d.ts +15 -0
- package/dist/pptx/export/presentation-save.d.ts.map +1 -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 +3541 -3373
- package/dist/pptx/index.mjs +6 -6
- package/dist/pptx/render/abutting-edge-bleed-style.d.ts +24 -0
- package/dist/pptx/render/abutting-edge-bleed-style.d.ts.map +1 -0
- package/dist/pptx/render/abutting-edge-bleed.d.ts +56 -0
- package/dist/pptx/render/abutting-edge-bleed.d.ts.map +1 -0
- package/dist/pptx/render/chart-combo-stock.cjs +3 -3
- package/dist/pptx/render/chart-combo-stock.mjs +1 -1
- package/dist/pptx/render/chart-overlays.cjs +7 -7
- package/dist/pptx/render/chart-overlays.mjs +1 -1
- package/dist/pptx/render/chart-surface-treemap.cjs +4 -4
- package/dist/pptx/render/chart-surface-treemap.mjs +1 -1
- package/dist/pptx/render/chart-view-model.cjs +44 -44
- package/dist/pptx/render/chart-view-model.mjs +1 -1
- package/dist/pptx/render/chart-waterfall-map.cjs +6 -6
- package/dist/pptx/render/chart-waterfall-map.mjs +1 -1
- package/dist/pptx/render/cloud-open.d.ts +56 -0
- package/dist/pptx/render/cloud-open.d.ts.map +1 -0
- package/dist/pptx/render/connector-style.d.ts +2 -2
- package/dist/pptx/render/connector-style.d.ts.map +1 -1
- package/dist/pptx/render/element-style-transform.d.ts +11 -3
- package/dist/pptx/render/element-style-transform.d.ts.map +1 -1
- package/dist/pptx/render/fill-style.d.ts.map +1 -1
- package/dist/pptx/render/index.d.ts +11 -0
- package/dist/pptx/render/index.d.ts.map +1 -1
- package/dist/pptx/render/inline-list-presentation.d.ts.map +1 -1
- package/dist/pptx/render/morph-animation.d.ts +23 -11
- package/dist/pptx/render/morph-animation.d.ts.map +1 -1
- package/dist/pptx/render/morph-body-carry.d.ts +8 -0
- package/dist/pptx/render/morph-body-carry.d.ts.map +1 -0
- package/dist/pptx/render/morph-carry.d.ts +60 -0
- package/dist/pptx/render/morph-carry.d.ts.map +1 -0
- package/dist/pptx/render/morph-easing.d.ts +37 -0
- package/dist/pptx/render/morph-easing.d.ts.map +1 -0
- package/dist/pptx/render/morph-effect-carry.d.ts +75 -0
- package/dist/pptx/render/morph-effect-carry.d.ts.map +1 -0
- package/dist/pptx/render/morph-effect-glow.d.ts +42 -0
- package/dist/pptx/render/morph-effect-glow.d.ts.map +1 -0
- package/dist/pptx/render/morph-effect-parse.d.ts +10 -0
- package/dist/pptx/render/morph-effect-parse.d.ts.map +1 -0
- package/dist/pptx/render/morph-effect-shadow.d.ts +71 -0
- package/dist/pptx/render/morph-effect-shadow.d.ts.map +1 -0
- package/dist/pptx/render/morph-flatten.d.ts +2 -2
- package/dist/pptx/render/morph-flip-turn.d.ts +55 -0
- package/dist/pptx/render/morph-flip-turn.d.ts.map +1 -0
- package/dist/pptx/render/morph-geometry-key.d.ts +30 -0
- package/dist/pptx/render/morph-geometry-key.d.ts.map +1 -0
- package/dist/pptx/render/morph-image-crop.d.ts.map +1 -1
- package/dist/pptx/render/morph-matching.d.ts.map +1 -1
- package/dist/pptx/render/morph-outline-blend.d.ts +7 -0
- package/dist/pptx/render/morph-outline-blend.d.ts.map +1 -0
- package/dist/pptx/render/morph-overlay-order.d.ts +1 -1
- package/dist/pptx/render/morph-overlay-stack.d.ts +85 -0
- package/dist/pptx/render/morph-overlay-stack.d.ts.map +1 -0
- package/dist/pptx/render/morph-plan.d.ts +73 -1
- 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-path.d.ts +40 -0
- package/dist/pptx/render/morph-shape-carry-path.d.ts.map +1 -0
- package/dist/pptx/render/morph-shape-carry.d.ts +73 -0
- package/dist/pptx/render/morph-shape-carry.d.ts.map +1 -0
- package/dist/pptx/render/morph-text-bands.d.ts +44 -0
- package/dist/pptx/render/morph-text-bands.d.ts.map +1 -0
- package/dist/pptx/render/morph-text-baseline.d.ts +47 -0
- package/dist/pptx/render/morph-text-baseline.d.ts.map +1 -0
- package/dist/pptx/render/morph-text-blend.d.ts +71 -0
- package/dist/pptx/render/morph-text-blend.d.ts.map +1 -0
- package/dist/pptx/render/morph-text-body-copies.d.ts +51 -0
- package/dist/pptx/render/morph-text-body-copies.d.ts.map +1 -0
- package/dist/pptx/render/morph-text-body.d.ts +31 -0
- package/dist/pptx/render/morph-text-body.d.ts.map +1 -0
- package/dist/pptx/render/morph-text-flip.d.ts +49 -0
- package/dist/pptx/render/morph-text-flip.d.ts.map +1 -0
- package/dist/pptx/render/morph-text-frame-read.d.ts +97 -0
- package/dist/pptx/render/morph-text-frame-read.d.ts.map +1 -0
- package/dist/pptx/render/morph-text-frame.d.ts +66 -0
- package/dist/pptx/render/morph-text-frame.d.ts.map +1 -0
- package/dist/pptx/render/morph-text-ink.d.ts +43 -0
- package/dist/pptx/render/morph-text-ink.d.ts.map +1 -0
- package/dist/pptx/render/morph-text-lines.d.ts +73 -0
- package/dist/pptx/render/morph-text-lines.d.ts.map +1 -0
- package/dist/pptx/render/morph-text-piece-plan.d.ts +37 -0
- package/dist/pptx/render/morph-text-piece-plan.d.ts.map +1 -0
- package/dist/pptx/render/morph-text-pieces.d.ts +87 -0
- package/dist/pptx/render/morph-text-pieces.d.ts.map +1 -0
- package/dist/pptx/render/morph-text-slot.d.ts +19 -4
- package/dist/pptx/render/morph-text-slot.d.ts.map +1 -1
- package/dist/pptx/render/morph-text-spans.d.ts +27 -0
- package/dist/pptx/render/morph-text-spans.d.ts.map +1 -0
- package/dist/pptx/render/morph-text-transform.d.ts +108 -0
- package/dist/pptx/render/morph-text-transform.d.ts.map +1 -0
- package/dist/pptx/render/morph-types.d.ts +79 -38
- package/dist/pptx/render/morph-types.d.ts.map +1 -1
- package/dist/pptx/render/paragraph-baseline.d.ts +87 -0
- package/dist/pptx/render/paragraph-baseline.d.ts.map +1 -0
- package/dist/pptx/render/paragraph-spacing.d.ts +29 -66
- package/dist/pptx/render/paragraph-spacing.d.ts.map +1 -1
- package/dist/pptx/render/paragraph-types.d.ts +7 -0
- package/dist/pptx/render/paragraph-types.d.ts.map +1 -1
- package/dist/pptx/render/presentation-action.d.ts +3 -2
- package/dist/pptx/render/presentation-action.d.ts.map +1 -1
- package/dist/pptx/render/read-only-badge.d.ts +23 -0
- package/dist/pptx/render/read-only-badge.d.ts.map +1 -0
- package/dist/pptx/render/share-session.d.ts +4 -7
- package/dist/pptx/render/share-session.d.ts.map +1 -1
- package/dist/pptx/render/stroke-clip-edge.d.ts +6 -1
- package/dist/pptx/render/stroke-clip-edge.d.ts.map +1 -1
- package/dist/pptx/render/stroke-compound-strands.d.ts +30 -0
- package/dist/pptx/render/stroke-compound-strands.d.ts.map +1 -0
- package/dist/pptx/render/stroke-outline.d.ts.map +1 -1
- package/dist/pptx/render/table-cell-paragraphs.d.ts.map +1 -1
- package/dist/pptx/render/text-block-style.d.ts.map +1 -1
- package/dist/pptx/render/text-flip-compensation.d.ts +51 -0
- package/dist/pptx/render/text-flip-compensation.d.ts.map +1 -0
- package/dist/pptx/render/text-paragraphs.d.ts.map +1 -1
- package/dist/pptx/render/transition-template-elements.d.ts +33 -0
- package/dist/pptx/render/transition-template-elements.d.ts.map +1 -0
- package/dist/pptx/render/viewer-api-guard.d.ts +36 -0
- package/dist/pptx/render/viewer-api-guard.d.ts.map +1 -0
- package/dist/pptx/render/viewer-dialogs.d.ts +31 -0
- package/dist/pptx/render/viewer-dialogs.d.ts.map +1 -0
- package/dist/pptx/render/viewer-hyperlinks.d.ts +2 -1
- package/dist/pptx/render/viewer-hyperlinks.d.ts.map +1 -1
- package/dist/pptx/render/viewer-props-manifest.d.ts.map +1 -1
- package/dist/pptx/{smartart-insert-preview-BP4WAD5U.mjs → smartart-insert-preview-GA6ELFRB.mjs} +7 -7
- package/dist/pptx/{smartart-insert-preview-USGRDZHJ.cjs → smartart-insert-preview-PQTEVG7C.cjs} +8 -8
- package/dist/pptx/theme/index.cjs +18 -18
- package/dist/pptx/theme/index.mjs +1 -1
- package/dist/pptx/web-components/index.d.ts.map +1 -1
- package/dist/pptx/web-components/office-aliases.d.ts +4 -0
- package/dist/pptx/web-components/office-aliases.d.ts.map +1 -1
- package/dist/pptx/web-components/office-token-bridge.d.ts +1 -1
- package/dist/pptx/web-components/office-token-bridge.d.ts.map +1 -1
- package/dist/presence.js +3 -3
- package/dist/{presentation-preview-ZVJNGOJO.js → presentation-preview-KGBTDTNM.js} +1 -1
- package/dist/render-cache.d.ts +0 -1
- package/dist/ribbon/auto-collapse.d.ts +0 -1
- package/dist/ribbon/button.d.ts +1 -2
- package/dist/ribbon/gallery-styles.d.ts +0 -1
- package/dist/ribbon/keytip-run.d.ts +0 -1
- package/dist/ribbon/overflow.d.ts +0 -1
- package/dist/ribbon/ribbon-section.d.ts +1 -2
- package/dist/ribbon/ribbon-stack.d.ts +1 -2
- package/dist/ribbon/safe-svg.d.ts +0 -1
- package/dist/ribbon/scroll-more.d.ts +0 -1
- package/dist/smartart/smartart-picker.d.ts +1 -2
- package/dist/smartart/smartart-text-pane-tools.d.ts +0 -1
- package/dist/smartart.js +3 -3
- package/dist/suite/document-store.d.ts +10 -0
- package/dist/suite.js +45 -6
- package/dist/teams/app/content-preview.d.ts +1 -1
- package/dist/teams/app/dialogs.d.ts +18 -0
- package/dist/teams/app/teams-app.d.ts +8 -0
- package/dist/teams/i18n/locales/de.d.ts +4 -0
- package/dist/teams/i18n/locales/en/shell.d.ts +4 -0
- package/dist/teams/i18n/locales/en.d.ts +4 -0
- package/dist/teams/i18n/locales/es.d.ts +4 -0
- package/dist/teams/i18n/locales/fr.d.ts +4 -0
- package/dist/teams/i18n/locales/zh-CN.d.ts +4 -0
- package/dist/teams.js +7 -7
- package/dist/theme-bridge.d.ts +0 -1
- package/dist/theme.js +2 -2
- package/dist/tokens.d.ts +5 -0
- package/dist/tokens.d.ts.map +1 -1
- package/dist/visio/binding.d.ts +3 -0
- package/dist/visio/controller.d.ts +2 -0
- package/dist/visio/locales/cloud-files.d.ts +4 -0
- package/dist/visio/viewer-backstage.d.ts +5 -1
- package/dist/visio/viewer-cloud-places.d.ts +16 -0
- package/dist/visio/viewer-connected-services.d.ts +13 -0
- package/dist/visio/viewer-element.d.ts +16 -1
- package/dist/visio/viewer-share-ui.d.ts +27 -0
- package/dist/visio/viewer-share.d.ts +7 -2
- package/dist/visio.js +476 -69
- package/dist/xlsx/backstage/cloud-labels.d.ts +4 -0
- package/dist/xlsx/backstage/index.d.ts +1 -1
- package/dist/xlsx/backstage/pages-account.d.ts +2 -0
- package/dist/xlsx/backstage/pages-file.d.ts +0 -1
- package/dist/xlsx/backstage/pages-open.d.ts +2 -0
- package/dist/xlsx/backstage/pages-share.d.ts +5 -6
- package/dist/xlsx/backstage/parts.d.ts +5 -0
- package/dist/xlsx/component.d.ts +8 -0
- package/dist/xlsx/editor-core.d.ts +10 -1
- package/dist/xlsx/editor-files.d.ts +14 -1
- package/dist/xlsx/editor-shell.d.ts +3 -0
- package/dist/xlsx/element-api.d.ts +14 -5
- package/dist/xlsx.js +247 -89
- package/package.json +3 -3
- package/dist/chunk-7RRN2GPO.js +0 -19
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 chunk4SZSTDER_cjs = require('../chunk-4SZSTDER.cjs');
|
|
4
|
+
var chunkRN3JVXVN_cjs = require('../chunk-RN3JVXVN.cjs');
|
|
5
|
+
var chunkJP26TA3Q_cjs = require('../chunk-JP26TA3Q.cjs');
|
|
6
6
|
require('../chunk-XOAXPD2W.cjs');
|
|
7
7
|
require('../chunk-W3X2UVYQ.cjs');
|
|
8
8
|
require('../chunk-WSTWYZFM.cjs');
|
|
@@ -22,10 +22,10 @@ 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 chunkYZWKNFPU_cjs = require('../chunk-YZWKNFPU.cjs');
|
|
26
26
|
var chunkFOE75Z6N_cjs = require('../chunk-FOE75Z6N.cjs');
|
|
27
27
|
var chunkNTXHQHCS_cjs = require('../chunk-NTXHQHCS.cjs');
|
|
28
|
-
var
|
|
28
|
+
var chunk7XXOLM7H_cjs = require('../chunk-7XXOLM7H.cjs');
|
|
29
29
|
require('../chunk-G4WRLFMJ.cjs');
|
|
30
30
|
require('../chunk-HJ3JZXOL.cjs');
|
|
31
31
|
require('../chunk-73IDQGYI.cjs');
|
|
@@ -34,23 +34,23 @@ require('../chunk-EW5DW5KR.cjs');
|
|
|
34
34
|
require('../chunk-FGKPZFLL.cjs');
|
|
35
35
|
require('../chunk-UPN5FFKP.cjs');
|
|
36
36
|
require('../chunk-FQUX6AUU.cjs');
|
|
37
|
-
require('../chunk-
|
|
37
|
+
require('../chunk-XZSGVMRN.cjs');
|
|
38
38
|
var chunkU47LRWDT_cjs = require('../chunk-U47LRWDT.cjs');
|
|
39
|
-
var
|
|
39
|
+
var chunkWNDGU3GQ_cjs = require('../chunk-WNDGU3GQ.cjs');
|
|
40
40
|
require('../chunk-3RIGT7H6.cjs');
|
|
41
41
|
require('../chunk-PBZWDEXQ.cjs');
|
|
42
42
|
var pptx = require('ooxml-core/pptx');
|
|
43
43
|
|
|
44
44
|
// src/pptx/dom/activex-controls-overlay.ts
|
|
45
45
|
function buildActiveXControlsOverlay(doc, controls, canvasSize) {
|
|
46
|
-
const overlay =
|
|
46
|
+
const overlay = chunk4SZSTDER_cjs.createEl(doc, "div", "pptxv-activex-overlay", {
|
|
47
47
|
position: "absolute",
|
|
48
48
|
inset: "0",
|
|
49
49
|
pointerEvents: "none",
|
|
50
50
|
zIndex: "40"
|
|
51
51
|
});
|
|
52
52
|
controls.forEach((control, index) => {
|
|
53
|
-
const view =
|
|
53
|
+
const view = chunkRN3JVXVN_cjs.getActiveXControlOverlayView(control, canvasSize, index);
|
|
54
54
|
const style = {
|
|
55
55
|
position: "absolute",
|
|
56
56
|
left: `${view.left}px`,
|
|
@@ -59,7 +59,7 @@ function buildActiveXControlsOverlay(doc, controls, canvasSize) {
|
|
|
59
59
|
height: `${view.height}px`
|
|
60
60
|
};
|
|
61
61
|
if (view.className === "image" && view.imageUrl) {
|
|
62
|
-
const img =
|
|
62
|
+
const img = chunk4SZSTDER_cjs.createEl(doc, "img", "pptxv-activex-overlay-image", style);
|
|
63
63
|
img.src = view.imageUrl;
|
|
64
64
|
img.alt = view.label;
|
|
65
65
|
img.setAttribute("draggable", "false");
|
|
@@ -67,7 +67,7 @@ function buildActiveXControlsOverlay(doc, controls, canvasSize) {
|
|
|
67
67
|
overlay.appendChild(img);
|
|
68
68
|
return;
|
|
69
69
|
}
|
|
70
|
-
const badge =
|
|
70
|
+
const badge = chunk4SZSTDER_cjs.createEl(doc, "div", "pptxv-activex-overlay-placeholder", style);
|
|
71
71
|
badge.title = `ActiveX control: ${view.label} (interactive controls are not supported in the viewer)`;
|
|
72
72
|
badge.textContent = view.label;
|
|
73
73
|
overlay.appendChild(badge);
|
|
@@ -80,25 +80,25 @@ function appendCommentMarkers(doc, stage, comments, canvasSize, t, onMarkerClick
|
|
|
80
80
|
if (comments.length === 0) {
|
|
81
81
|
return;
|
|
82
82
|
}
|
|
83
|
-
const overlay =
|
|
83
|
+
const overlay = chunk4SZSTDER_cjs.createEl(doc, "div", "pptxv-comment-markers", {
|
|
84
84
|
position: "absolute",
|
|
85
85
|
inset: "0",
|
|
86
86
|
pointerEvents: "none",
|
|
87
87
|
zIndex: "45"
|
|
88
88
|
});
|
|
89
|
-
const markers =
|
|
89
|
+
const markers = chunkRN3JVXVN_cjs.buildCommentMarkers(
|
|
90
90
|
comments,
|
|
91
91
|
canvasSize.width,
|
|
92
92
|
canvasSize.height,
|
|
93
93
|
t("pptx.comments.unknownAuthor")
|
|
94
94
|
);
|
|
95
95
|
for (const marker of markers) {
|
|
96
|
-
const dot =
|
|
96
|
+
const dot = chunk4SZSTDER_cjs.createEl(doc, "button", "pptxv-comment-marker", {
|
|
97
97
|
position: "absolute",
|
|
98
|
-
left: `${marker.x -
|
|
99
|
-
top: `${marker.y -
|
|
100
|
-
width: `${
|
|
101
|
-
height: `${
|
|
98
|
+
left: `${marker.x - chunkRN3JVXVN_cjs.COMMENT_MARKER_SIZE / 2}px`,
|
|
99
|
+
top: `${marker.y - chunkRN3JVXVN_cjs.COMMENT_MARKER_SIZE / 2}px`,
|
|
100
|
+
width: `${chunkRN3JVXVN_cjs.COMMENT_MARKER_SIZE}px`,
|
|
101
|
+
height: `${chunkRN3JVXVN_cjs.COMMENT_MARKER_SIZE}px`,
|
|
102
102
|
display: "flex",
|
|
103
103
|
alignItems: "center",
|
|
104
104
|
justifyContent: "center",
|
|
@@ -165,7 +165,7 @@ function merge3dStyle(base, computed) {
|
|
|
165
165
|
}
|
|
166
166
|
}
|
|
167
167
|
function getShapeFillStrokeStyle(el, animatesFill, animatesStroke) {
|
|
168
|
-
const frame =
|
|
168
|
+
const frame = chunkRN3JVXVN_cjs.getFrameEffectStyle(el);
|
|
169
169
|
if (frame) {
|
|
170
170
|
return { ...frame };
|
|
171
171
|
}
|
|
@@ -175,13 +175,13 @@ function getShapeFillStrokeStyle(el, animatesFill, animatesStroke) {
|
|
|
175
175
|
const ss = el.shapeStyle;
|
|
176
176
|
const style = {};
|
|
177
177
|
if (ss) {
|
|
178
|
-
const fill = animatesFill ? void 0 :
|
|
178
|
+
const fill = animatesFill ? void 0 : chunkYZWKNFPU_cjs.getComputedFillStyle(el);
|
|
179
179
|
for (const [key, value] of Object.entries(fill ?? {})) {
|
|
180
180
|
if (value !== void 0) {
|
|
181
181
|
style[key] = value;
|
|
182
182
|
}
|
|
183
183
|
}
|
|
184
|
-
const stroke =
|
|
184
|
+
const stroke = chunkRN3JVXVN_cjs.getComputedStrokeStyle(el);
|
|
185
185
|
if (stroke.borderWidth > 0) {
|
|
186
186
|
if (animatesStroke) {
|
|
187
187
|
style["borderWidth"] = stroke.cssBorderWidth;
|
|
@@ -200,7 +200,7 @@ function getShapeFillStrokeStyle(el, animatesFill, animatesStroke) {
|
|
|
200
200
|
style["strokeMiterlimit"] = stroke.strokeMiterlimit;
|
|
201
201
|
}
|
|
202
202
|
}
|
|
203
|
-
const fx =
|
|
203
|
+
const fx = chunkRN3JVXVN_cjs.getComputedEffectStyle(el);
|
|
204
204
|
if (fx.boxShadow) {
|
|
205
205
|
style["boxShadow"] = fx.boxShadow;
|
|
206
206
|
}
|
|
@@ -217,11 +217,11 @@ function getShapeFillStrokeStyle(el, animatesFill, animatesStroke) {
|
|
|
217
217
|
if (fx.overflowVisible) {
|
|
218
218
|
style["overflow"] = "visible";
|
|
219
219
|
}
|
|
220
|
-
merge3dStyle(style,
|
|
221
|
-
if (
|
|
220
|
+
merge3dStyle(style, chunkRN3JVXVN_cjs.getComputed3dStyle(el));
|
|
221
|
+
if (chunkRN3JVXVN_cjs.isHollowShapeElement(el)) {
|
|
222
222
|
style["pointerEvents"] = "none";
|
|
223
223
|
}
|
|
224
|
-
const geometry =
|
|
224
|
+
const geometry = chunkRN3JVXVN_cjs.resolveShapeGeometry(el);
|
|
225
225
|
switch (geometry.kind) {
|
|
226
226
|
case "bare":
|
|
227
227
|
style["backgroundColor"] = "transparent";
|
|
@@ -241,10 +241,10 @@ function getShapeFillStrokeStyle(el, animatesFill, animatesStroke) {
|
|
|
241
241
|
case "lineEdge":
|
|
242
242
|
style["backgroundColor"] = "transparent";
|
|
243
243
|
style["border"] = "none";
|
|
244
|
-
style["borderTop"] =
|
|
244
|
+
style["borderTop"] = chunk7XXOLM7H_cjs.screenBorder(
|
|
245
245
|
geometry.strokeWidth,
|
|
246
|
-
|
|
247
|
-
el.shapeStyle?.strokeColor ??
|
|
246
|
+
chunkYZWKNFPU_cjs.getCssBorderDashStyle(el.shapeStyle?.strokeDash),
|
|
247
|
+
el.shapeStyle?.strokeColor ?? chunkYZWKNFPU_cjs.DEFAULT_STROKE_COLOR
|
|
248
248
|
);
|
|
249
249
|
return style;
|
|
250
250
|
default:
|
|
@@ -255,17 +255,17 @@ function getTextBlockStyle(el) {
|
|
|
255
255
|
if (!pptx.hasTextProperties(el)) {
|
|
256
256
|
return {};
|
|
257
257
|
}
|
|
258
|
-
const base =
|
|
259
|
-
fallbackColor:
|
|
258
|
+
const base = chunkRN3JVXVN_cjs.buildTextBlockStyle(el, {
|
|
259
|
+
fallbackColor: chunkYZWKNFPU_cjs.DEFAULT_TEXT_COLOR,
|
|
260
260
|
bodyLayout: true,
|
|
261
261
|
pxLengths: true
|
|
262
262
|
});
|
|
263
|
-
const scene3d =
|
|
263
|
+
const scene3d = chunkRN3JVXVN_cjs.buildTextBody3DSceneStyle(el.textStyle, { width: el.width, height: el.height });
|
|
264
264
|
if (!scene3d) {
|
|
265
265
|
return base;
|
|
266
266
|
}
|
|
267
267
|
const merged = { ...base, ...scene3d };
|
|
268
|
-
const transform =
|
|
268
|
+
const transform = chunk4SZSTDER_cjs.composeTransforms(base.transform, scene3d.transform);
|
|
269
269
|
if (transform !== void 0) {
|
|
270
270
|
merged.transform = transform;
|
|
271
271
|
}
|
|
@@ -277,7 +277,7 @@ var subscriptions = /* @__PURE__ */ new WeakMap();
|
|
|
277
277
|
function subscribeChartPixelRepaint(container, repaint) {
|
|
278
278
|
const entry = { container, unsubscribe: () => {
|
|
279
279
|
} };
|
|
280
|
-
entry.unsubscribe =
|
|
280
|
+
entry.unsubscribe = chunkYZWKNFPU_cjs.subscribeBarFacePicturePixelSamples(() => {
|
|
281
281
|
if (!entry.container.isConnected) {
|
|
282
282
|
disposeChartPixelSubscriptions(entry.container);
|
|
283
283
|
return;
|
|
@@ -353,7 +353,7 @@ function renderSlideStage(options) {
|
|
|
353
353
|
const { document: doc, slide, canvasSize, mediaDataUrls, registry, t } = options;
|
|
354
354
|
const scale = options.scale ?? 1;
|
|
355
355
|
const interactive = options.interactive ?? false;
|
|
356
|
-
const stage =
|
|
356
|
+
const stage = chunk4SZSTDER_cjs.createEl(doc, "div", "pptxv-stage", {
|
|
357
357
|
width: `${canvasSize.width}px`,
|
|
358
358
|
height: `${canvasSize.height}px`,
|
|
359
359
|
transform: `scale(${scale})`,
|
|
@@ -369,8 +369,8 @@ function renderSlideStage(options) {
|
|
|
369
369
|
"--pptx-slide-h": `${canvasSize.height}px`,
|
|
370
370
|
"--pptxv-grid-size": `${options.gridSpacingPx ?? 10}px`,
|
|
371
371
|
// One device pixel in slide px: thin strokes stay visible on screen.
|
|
372
|
-
...
|
|
373
|
-
...
|
|
372
|
+
...chunk7XXOLM7H_cjs.deviceStrokeStageStyle(scale),
|
|
373
|
+
...chunkRN3JVXVN_cjs.getSlideBackgroundStyle(slide, { widthPx: canvasSize.width, heightPx: canvasSize.height })
|
|
374
374
|
});
|
|
375
375
|
if (interactive || options.reading) {
|
|
376
376
|
stage.setAttribute("role", "region");
|
|
@@ -411,9 +411,10 @@ function renderSlideStage(options) {
|
|
|
411
411
|
chartPartSelection: options.chartPartSelection,
|
|
412
412
|
onChartPartSelect: options.onChartPartSelect,
|
|
413
413
|
selectedElementIds: options.selectedElementIds,
|
|
414
|
+
edgeBleeds: chunkRN3JVXVN_cjs.resolveStageEdgeBleeds(void 0, slide, options.selectedElementIds),
|
|
414
415
|
registry,
|
|
415
416
|
renderElement(element, zIndex) {
|
|
416
|
-
if (!
|
|
417
|
+
if (!chunkRN3JVXVN_cjs.isElementRendered(element)) {
|
|
417
418
|
return null;
|
|
418
419
|
}
|
|
419
420
|
const node = registry.resolve(element.type)(element, zIndex, context);
|
|
@@ -425,10 +426,10 @@ function renderSlideStage(options) {
|
|
|
425
426
|
}
|
|
426
427
|
node.setAttribute("data-pptx-element", "true");
|
|
427
428
|
}
|
|
428
|
-
if (node && element.type !== "text" && element.type !== "shape" && element.type !== "connector" &&
|
|
429
|
-
const hitTargetStyle =
|
|
429
|
+
if (node && element.type !== "text" && element.type !== "shape" && element.type !== "connector" && chunkRN3JVXVN_cjs.shouldRenderHitTarget(interactive, options.presenting ?? false)) {
|
|
430
|
+
const hitTargetStyle = chunkRN3JVXVN_cjs.elementHitTargetStyle(element);
|
|
430
431
|
if (hitTargetStyle) {
|
|
431
|
-
const hitTarget =
|
|
432
|
+
const hitTarget = chunk4SZSTDER_cjs.createEl(doc, "div", void 0, hitTargetStyle);
|
|
432
433
|
hitTarget.setAttribute("aria-hidden", "true");
|
|
433
434
|
hitTarget.setAttribute("data-pptx-hit-target", "true");
|
|
434
435
|
node.appendChild(hitTarget);
|
|
@@ -446,12 +447,12 @@ function renderSlideStage(options) {
|
|
|
446
447
|
}
|
|
447
448
|
});
|
|
448
449
|
if (interactive || options.reading) {
|
|
449
|
-
|
|
450
|
+
chunkRN3JVXVN_cjs.applyRenderedElementAccessibility(stage, slide.elements, {
|
|
450
451
|
presenting: options.presenting ?? false
|
|
451
452
|
});
|
|
452
453
|
}
|
|
453
454
|
if (interactive) {
|
|
454
|
-
|
|
455
|
+
chunkRN3JVXVN_cjs.applyElementActionAffordances(
|
|
455
456
|
stage,
|
|
456
457
|
slide.elements.filter(
|
|
457
458
|
(element) => options.templateEditing || !chunk3CYWRMYZ_cjs.isTemplateElementId(element.id)
|
|
@@ -459,7 +460,7 @@ function renderSlideStage(options) {
|
|
|
459
460
|
{
|
|
460
461
|
canInteract: true,
|
|
461
462
|
presenting: options.presenting ?? false,
|
|
462
|
-
labels:
|
|
463
|
+
labels: chunkRN3JVXVN_cjs.actionAffordanceLabels((key) => t(key))
|
|
463
464
|
}
|
|
464
465
|
);
|
|
465
466
|
}
|
|
@@ -536,13 +537,13 @@ function attachChartEditing(container, element, context, repaint) {
|
|
|
536
537
|
if (!context.selectedElementIds?.has(element.id)) {
|
|
537
538
|
return;
|
|
538
539
|
}
|
|
539
|
-
|
|
540
|
-
container.classList.add(
|
|
540
|
+
chunkJP26TA3Q_cjs.ensureChartInteractionStyles();
|
|
541
|
+
container.classList.add(chunkJP26TA3Q_cjs.CHART_INTERACTIVE_CLASS);
|
|
541
542
|
let active = null;
|
|
542
543
|
let activeMark = null;
|
|
543
544
|
let selected = context.chartPartSelection?.elementId === element.id ? context.chartPartSelection.part : null;
|
|
544
545
|
let badge = null;
|
|
545
|
-
|
|
546
|
+
chunkJP26TA3Q_cjs.applyChartPartHighlight(container, selected);
|
|
546
547
|
const showBadge = (text) => {
|
|
547
548
|
if (!badge) {
|
|
548
549
|
badge = container.ownerDocument.createElement("div");
|
|
@@ -566,26 +567,26 @@ function attachChartEditing(container, element, context, repaint) {
|
|
|
566
567
|
if (!rect) {
|
|
567
568
|
return;
|
|
568
569
|
}
|
|
569
|
-
const step2 =
|
|
570
|
+
const step2 = chunkRN3JVXVN_cjs.advanceChartMarkDrag(activeMark, event.clientX, event.clientY, rect);
|
|
570
571
|
if (!step2) {
|
|
571
572
|
return;
|
|
572
573
|
}
|
|
573
574
|
repaint(step2.chartData);
|
|
574
|
-
|
|
575
|
-
showBadge(
|
|
575
|
+
chunkJP26TA3Q_cjs.applyChartPartHighlight(container, selected);
|
|
576
|
+
showBadge(chunkYZWKNFPU_cjs.formatAxisValue(step2.value));
|
|
576
577
|
return;
|
|
577
578
|
}
|
|
578
579
|
if (!active) {
|
|
579
580
|
return;
|
|
580
581
|
}
|
|
581
582
|
const height = container.querySelector("svg")?.getBoundingClientRect().height ?? 0;
|
|
582
|
-
const step =
|
|
583
|
+
const step = chunkJP26TA3Q_cjs.advanceChartValueDrag(active, event.clientY, height);
|
|
583
584
|
if (!step) {
|
|
584
585
|
return;
|
|
585
586
|
}
|
|
586
587
|
repaint(step.chartData);
|
|
587
|
-
|
|
588
|
-
showBadge(
|
|
588
|
+
chunkJP26TA3Q_cjs.applyChartPartHighlight(container, selected);
|
|
589
|
+
showBadge(chunkYZWKNFPU_cjs.formatAxisValue(step.value));
|
|
589
590
|
};
|
|
590
591
|
const onUp = () => {
|
|
591
592
|
if (active || activeMark) {
|
|
@@ -611,12 +612,12 @@ function attachChartEditing(container, element, context, repaint) {
|
|
|
611
612
|
}
|
|
612
613
|
if ((finished?.moved || finishedMark?.moved) && chart.chartData) {
|
|
613
614
|
repaint(chart.chartData);
|
|
614
|
-
|
|
615
|
+
chunkJP26TA3Q_cjs.applyChartPartHighlight(container, selected);
|
|
615
616
|
}
|
|
616
617
|
}
|
|
617
618
|
const openTitleEditor = createChartTitleEditor(container, (value) => {
|
|
618
619
|
if (chart.chartData) {
|
|
619
|
-
context.onChartPointChange?.(element,
|
|
620
|
+
context.onChartPointChange?.(element, chunkJP26TA3Q_cjs.withChartTitle(chart.chartData, value));
|
|
620
621
|
}
|
|
621
622
|
});
|
|
622
623
|
const requestFormat = (event, open) => {
|
|
@@ -625,7 +626,7 @@ function attachChartEditing(container, element, context, repaint) {
|
|
|
625
626
|
bubbles: true,
|
|
626
627
|
detail: {
|
|
627
628
|
elementId: element.id,
|
|
628
|
-
target:
|
|
629
|
+
target: chunkRN3JVXVN_cjs.chartFormatTargetFromEvent(event, container, chart),
|
|
629
630
|
open
|
|
630
631
|
}
|
|
631
632
|
})
|
|
@@ -648,19 +649,19 @@ function attachChartEditing(container, element, context, repaint) {
|
|
|
648
649
|
});
|
|
649
650
|
container.addEventListener("pointerdown", (event) => {
|
|
650
651
|
requestFormat(event, false);
|
|
651
|
-
const part =
|
|
652
|
+
const part = chunkJP26TA3Q_cjs.findChartPartTarget(event.target);
|
|
652
653
|
if (!part || !chart.chartData) {
|
|
653
654
|
return;
|
|
654
655
|
}
|
|
655
656
|
event.stopPropagation();
|
|
656
657
|
selected = part;
|
|
657
|
-
|
|
658
|
+
chunkJP26TA3Q_cjs.applyChartPartHighlight(container, selected);
|
|
658
659
|
context.onChartPartSelect?.(element, part);
|
|
659
|
-
const vm =
|
|
660
|
+
const vm = chunkYZWKNFPU_cjs.buildChartViewModel(chart);
|
|
660
661
|
let captured = false;
|
|
661
|
-
const chartKind =
|
|
662
|
+
const chartKind = chunkYZWKNFPU_cjs.resolveChartKind(chart.chartData.chartType ?? "bar");
|
|
662
663
|
if (part.pointIndex !== void 0 && chartKind !== "unsupported") {
|
|
663
|
-
const markGeometry =
|
|
664
|
+
const markGeometry = chunkJP26TA3Q_cjs.buildChartMarkDragGeometry({
|
|
664
665
|
kind: chartKind,
|
|
665
666
|
element: chart,
|
|
666
667
|
chartData: chart.chartData,
|
|
@@ -668,7 +669,7 @@ function attachChartEditing(container, element, context, repaint) {
|
|
|
668
669
|
seriesIndex: part.seriesIndex,
|
|
669
670
|
pointIndex: part.pointIndex
|
|
670
671
|
});
|
|
671
|
-
const startedMark =
|
|
672
|
+
const startedMark = chunkRN3JVXVN_cjs.beginChartMarkDrag({
|
|
672
673
|
part,
|
|
673
674
|
geometry: markGeometry,
|
|
674
675
|
chartData: chart.chartData,
|
|
@@ -683,7 +684,7 @@ function attachChartEditing(container, element, context, repaint) {
|
|
|
683
684
|
}
|
|
684
685
|
}
|
|
685
686
|
if (!captured) {
|
|
686
|
-
const started =
|
|
687
|
+
const started = chunkJP26TA3Q_cjs.beginChartValueDrag({
|
|
687
688
|
part,
|
|
688
689
|
viewModel: vm,
|
|
689
690
|
chartData: chart.chartData,
|
|
@@ -712,17 +713,17 @@ function attachChartEditing(container, element, context, repaint) {
|
|
|
712
713
|
// src/pptx/dom/elements/chart.ts
|
|
713
714
|
var renderChartElement = (element, zIndex, context) => {
|
|
714
715
|
const wrapper = renderChartSvgElement(element, zIndex, context);
|
|
715
|
-
const spec = wrapper ?
|
|
716
|
+
const spec = wrapper ? chunkRN3JVXVN_cjs.resolveChartThreeViewSpec(element, chunk4SZSTDER_cjs.rendering3DFlagsOf(context)) : null;
|
|
716
717
|
if (!wrapper || !spec) {
|
|
717
718
|
return wrapper;
|
|
718
719
|
}
|
|
719
|
-
const view =
|
|
720
|
+
const view = chunk4SZSTDER_cjs.mountThreeViewInto(context.document, wrapper, {
|
|
720
721
|
spec,
|
|
721
|
-
interactive:
|
|
722
|
-
selectedPart:
|
|
722
|
+
interactive: chunk4SZSTDER_cjs.isChart3DEditable(element, context),
|
|
723
|
+
selectedPart: chunk4SZSTDER_cjs.selectedChartPartOf(element, context),
|
|
723
724
|
textStyle: context.presentationStates?.get(element.id)?.textStyle
|
|
724
725
|
});
|
|
725
|
-
|
|
726
|
+
chunk4SZSTDER_cjs.wireChartThreeViewEvents(view, element, context, wrapper);
|
|
726
727
|
return wrapper;
|
|
727
728
|
};
|
|
728
729
|
var renderChartSvgElement = (element, zIndex, context) => {
|
|
@@ -730,21 +731,21 @@ var renderChartSvgElement = (element, zIndex, context) => {
|
|
|
730
731
|
return null;
|
|
731
732
|
}
|
|
732
733
|
const doc = context.document;
|
|
733
|
-
const container =
|
|
734
|
+
const container = chunk4SZSTDER_cjs.createEl(
|
|
734
735
|
doc,
|
|
735
736
|
"div",
|
|
736
737
|
"pptxv-element pptxv-chart",
|
|
737
738
|
// The chart area's outer shadow and glow sit on the frame, outside the chart.
|
|
738
|
-
{ ...
|
|
739
|
+
{ ...chunkRN3JVXVN_cjs.getContainerStyle(element, zIndex), ...chunkRN3JVXVN_cjs.getFrameEffectStyle(element) }
|
|
739
740
|
);
|
|
740
741
|
container.dataset.elementId = element.id;
|
|
741
742
|
const animationState = context.presentationStates?.get(element.id);
|
|
742
|
-
const chartData = element.chartData ?
|
|
743
|
+
const chartData = element.chartData ? chunkRN3JVXVN_cjs.resolveRevealedChartData(element.chartData, animationState) : element.chartData;
|
|
743
744
|
if (!chartData || chartData.series.length === 0) {
|
|
744
745
|
container.appendChild(renderChartPlaceholder(doc, chartData?.chartType ?? "bar", context.t));
|
|
745
746
|
return container;
|
|
746
747
|
}
|
|
747
|
-
const kind =
|
|
748
|
+
const kind = chunkYZWKNFPU_cjs.resolveChartKind(chartData.chartType ?? "bar");
|
|
748
749
|
if (kind === "unsupported") {
|
|
749
750
|
container.appendChild(renderChartPlaceholder(doc, chartData.chartType, context.t));
|
|
750
751
|
return container;
|
|
@@ -757,9 +758,9 @@ var renderChartSvgElement = (element, zIndex, context) => {
|
|
|
757
758
|
};
|
|
758
759
|
target.querySelector("svg")?.remove();
|
|
759
760
|
target.appendChild(
|
|
760
|
-
|
|
761
|
+
chunkJP26TA3Q_cjs.renderChartViewModelSvg(
|
|
761
762
|
doc,
|
|
762
|
-
|
|
763
|
+
chunkYZWKNFPU_cjs.buildChartViewModel(themedElement),
|
|
763
764
|
preserveAspectRatio,
|
|
764
765
|
(key) => context.t(key)
|
|
765
766
|
)
|
|
@@ -771,10 +772,10 @@ var renderChartSvgElement = (element, zIndex, context) => {
|
|
|
771
772
|
return container;
|
|
772
773
|
};
|
|
773
774
|
function resolveChartPalette2(chartData) {
|
|
774
|
-
return
|
|
775
|
+
return chunkYZWKNFPU_cjs.resolveChartPalette(chartData);
|
|
775
776
|
}
|
|
776
777
|
function renderChartPlaceholder(doc, chartType, t) {
|
|
777
|
-
const placeholder =
|
|
778
|
+
const placeholder = chunk4SZSTDER_cjs.createEl(doc, "div", "pptxv-placeholder pptxv-chart-placeholder", {
|
|
778
779
|
display: "flex",
|
|
779
780
|
alignItems: "center",
|
|
780
781
|
justifyContent: "center",
|
|
@@ -786,7 +787,7 @@ function renderChartPlaceholder(doc, chartType, t) {
|
|
|
786
787
|
border: "1px dashed #cbd5e1",
|
|
787
788
|
boxSizing: "border-box"
|
|
788
789
|
});
|
|
789
|
-
placeholder.textContent =
|
|
790
|
+
placeholder.textContent = chunkRN3JVXVN_cjs.chartPlaceholderLabel(chartType, (key, params) => t(key, params));
|
|
790
791
|
return placeholder;
|
|
791
792
|
}
|
|
792
793
|
|
|
@@ -805,19 +806,19 @@ function appendRunContent(doc, host, run) {
|
|
|
805
806
|
}
|
|
806
807
|
function appendTabLines(doc, host, lines) {
|
|
807
808
|
lines.forEach((line, li) => {
|
|
808
|
-
const lineHost =
|
|
809
|
+
const lineHost = chunk4SZSTDER_cjs.createEl(doc, "span", void 0, {
|
|
809
810
|
display: "inline-block",
|
|
810
811
|
whiteSpace: "nowrap"
|
|
811
812
|
});
|
|
812
813
|
for (const piece of line.pieces) {
|
|
813
814
|
if (piece.leaderStyle) {
|
|
814
|
-
const leader =
|
|
815
|
+
const leader = chunk4SZSTDER_cjs.createEl(doc, "span", void 0, piece.leaderStyle);
|
|
815
816
|
leader.setAttribute("aria-hidden", "true");
|
|
816
817
|
leader.textContent = piece.leaderText ?? "";
|
|
817
818
|
lineHost.appendChild(leader);
|
|
818
819
|
}
|
|
819
820
|
for (const word of piece.words ?? [piece]) {
|
|
820
|
-
const textSpan =
|
|
821
|
+
const textSpan = chunk4SZSTDER_cjs.createEl(doc, "span", void 0, word.style);
|
|
821
822
|
textSpan.textContent = word.text;
|
|
822
823
|
lineHost.appendChild(textSpan);
|
|
823
824
|
}
|
|
@@ -831,7 +832,7 @@ function appendTabLines(doc, host, lines) {
|
|
|
831
832
|
function appendStyledPieces(doc, host, pieces) {
|
|
832
833
|
for (const piece of pieces) {
|
|
833
834
|
if (piece.style) {
|
|
834
|
-
const span =
|
|
835
|
+
const span = chunk4SZSTDER_cjs.createEl(doc, "span", void 0, piece.style);
|
|
835
836
|
span.textContent = piece.text;
|
|
836
837
|
host.appendChild(span);
|
|
837
838
|
} else {
|
|
@@ -844,16 +845,16 @@ function appendStyledPieces(doc, host, pieces) {
|
|
|
844
845
|
var NEWLINE_RUN = "\n";
|
|
845
846
|
function createRunBaseNode(doc, run) {
|
|
846
847
|
if (run.equation) {
|
|
847
|
-
const host =
|
|
848
|
-
const math =
|
|
848
|
+
const host = chunk4SZSTDER_cjs.createEl(doc, "span", "pptxv-inline-equation", run.style);
|
|
849
|
+
const math = chunk4SZSTDER_cjs.createEl(doc, "span", "pptxv-equation-math", {
|
|
849
850
|
display: "inline-block",
|
|
850
851
|
verticalAlign: "middle",
|
|
851
852
|
fontFamily: "'Cambria Math', 'STIX Two Math', serif"
|
|
852
853
|
});
|
|
853
|
-
math.innerHTML =
|
|
854
|
+
math.innerHTML = chunkRN3JVXVN_cjs.runEquationMathMl(run.equation);
|
|
854
855
|
host.appendChild(math);
|
|
855
856
|
if (run.equation.number) {
|
|
856
|
-
const number =
|
|
857
|
+
const number = chunk4SZSTDER_cjs.createEl(doc, "span", "pptxv-equation-number", {
|
|
857
858
|
whiteSpace: "nowrap",
|
|
858
859
|
marginInlineStart: "0.5em"
|
|
859
860
|
});
|
|
@@ -862,8 +863,8 @@ function createRunBaseNode(doc, run) {
|
|
|
862
863
|
}
|
|
863
864
|
return host;
|
|
864
865
|
}
|
|
865
|
-
if (run.hyperlink &&
|
|
866
|
-
const link =
|
|
866
|
+
if (run.hyperlink && chunkRN3JVXVN_cjs.isRunHyperlinkClickable(run.hyperlink)) {
|
|
867
|
+
const link = chunk4SZSTDER_cjs.createEl(doc, "a", "pptxv-link", run.style);
|
|
867
868
|
link.setAttribute("data-pptx-hyperlink", run.hyperlink.url);
|
|
868
869
|
link.setAttribute("role", "link");
|
|
869
870
|
link.tabIndex = 0;
|
|
@@ -879,13 +880,13 @@ function createRunBaseNode(doc, run) {
|
|
|
879
880
|
}
|
|
880
881
|
if (run.ruby) {
|
|
881
882
|
const ruby = doc.createElement("ruby");
|
|
882
|
-
|
|
883
|
+
chunk4SZSTDER_cjs.applyStyleMap(ruby, run.style);
|
|
883
884
|
appendRunContent(doc, ruby, run);
|
|
884
885
|
const openParen = doc.createElement("rp");
|
|
885
886
|
openParen.textContent = "(";
|
|
886
887
|
ruby.appendChild(openParen);
|
|
887
888
|
const annotation = doc.createElement("rt");
|
|
888
|
-
|
|
889
|
+
chunk4SZSTDER_cjs.applyStyleMap(annotation, run.ruby.style);
|
|
889
890
|
annotation.textContent = run.ruby.text;
|
|
890
891
|
ruby.appendChild(annotation);
|
|
891
892
|
const closeParen = doc.createElement("rp");
|
|
@@ -893,8 +894,8 @@ function createRunBaseNode(doc, run) {
|
|
|
893
894
|
ruby.appendChild(closeParen);
|
|
894
895
|
return ruby;
|
|
895
896
|
}
|
|
896
|
-
const span =
|
|
897
|
-
|
|
897
|
+
const span = chunk4SZSTDER_cjs.createEl(doc, "span");
|
|
898
|
+
chunk4SZSTDER_cjs.applyStyleMap(span, run.style);
|
|
898
899
|
appendRunContent(doc, span, run);
|
|
899
900
|
return span;
|
|
900
901
|
}
|
|
@@ -903,22 +904,22 @@ function createRunNode(doc, run) {
|
|
|
903
904
|
if (!run.reflection) {
|
|
904
905
|
return base;
|
|
905
906
|
}
|
|
906
|
-
const wrapper =
|
|
907
|
+
const wrapper = chunk4SZSTDER_cjs.createEl(doc, "span", void 0, {
|
|
907
908
|
position: "relative",
|
|
908
909
|
display: "inline-block"
|
|
909
910
|
});
|
|
910
911
|
wrapper.appendChild(base);
|
|
911
|
-
const mirror =
|
|
912
|
+
const mirror = chunk4SZSTDER_cjs.createEl(doc, "span", "pptxv-text-reflection", { ...run.reflection });
|
|
912
913
|
mirror.setAttribute("aria-hidden", "true");
|
|
913
|
-
const mirrorInner =
|
|
914
|
-
|
|
914
|
+
const mirrorInner = chunk4SZSTDER_cjs.createEl(doc, "span");
|
|
915
|
+
chunk4SZSTDER_cjs.applyStyleMap(mirrorInner, run.style);
|
|
915
916
|
appendRunContent(doc, mirrorInner, run);
|
|
916
917
|
mirror.appendChild(mirrorInner);
|
|
917
918
|
wrapper.appendChild(mirror);
|
|
918
919
|
return wrapper;
|
|
919
920
|
}
|
|
920
921
|
function renderTextBlock(doc, paragraphs, textStyle, build) {
|
|
921
|
-
const block =
|
|
922
|
+
const block = chunk4SZSTDER_cjs.createEl(doc, "div", "pptxv-text", textStyle);
|
|
922
923
|
for (const para of paragraphs) {
|
|
923
924
|
const paraStyle = {
|
|
924
925
|
// This paragraph's own `text-align` / BiDi `direction` / kinsoku rules,
|
|
@@ -940,13 +941,13 @@ function renderTextBlock(doc, paragraphs, textStyle, build) {
|
|
|
940
941
|
if (para.strutFontSizePx !== void 0) {
|
|
941
942
|
paraStyle.fontSize = `${para.strutFontSizePx}px`;
|
|
942
943
|
}
|
|
943
|
-
const p =
|
|
944
|
+
const p = chunk4SZSTDER_cjs.createEl(doc, "p", "pptxv-para", paraStyle);
|
|
944
945
|
if (para.textIndentPx !== void 0) {
|
|
945
946
|
p.style.textIndent = `${para.textIndentPx}px`;
|
|
946
947
|
}
|
|
947
948
|
const picture = para.bulletPicture;
|
|
948
949
|
if (picture?.src) {
|
|
949
|
-
const image =
|
|
950
|
+
const image = chunk4SZSTDER_cjs.createEl(doc, "img", "pptxv-bullet-image", {
|
|
950
951
|
width: `${picture.sizePx}px`,
|
|
951
952
|
height: `${picture.sizePx}px`,
|
|
952
953
|
display: "inline-block",
|
|
@@ -959,15 +960,15 @@ function renderTextBlock(doc, paragraphs, textStyle, build) {
|
|
|
959
960
|
image.setAttribute("draggable", "false");
|
|
960
961
|
p.appendChild(image);
|
|
961
962
|
} else if (para.bulletMarker !== void 0) {
|
|
962
|
-
const bullet =
|
|
963
|
-
|
|
963
|
+
const bullet = chunk4SZSTDER_cjs.createEl(doc, "span", "pptxv-bullet");
|
|
964
|
+
chunk4SZSTDER_cjs.applyStyleMap(bullet, para.bulletStyle);
|
|
964
965
|
if (para.bulletPicture) {
|
|
965
966
|
bullet.setAttribute("aria-label", para.bulletPicture.accessibleLabel);
|
|
966
967
|
}
|
|
967
968
|
bullet.textContent = para.bulletMarker;
|
|
968
969
|
p.appendChild(bullet);
|
|
969
970
|
}
|
|
970
|
-
const spec = build ?
|
|
971
|
+
const spec = build ? chunkRN3JVXVN_cjs.buildTextBuildSpec(
|
|
971
972
|
build.elementId,
|
|
972
973
|
paragraphs.indexOf(para),
|
|
973
974
|
para.runs.filter((run) => run.text !== NEWLINE_RUN).map((run) => ({ text: run.text, style: run.style })),
|
|
@@ -975,8 +976,8 @@ function renderTextBlock(doc, paragraphs, textStyle, build) {
|
|
|
975
976
|
) : void 0;
|
|
976
977
|
if (spec && spec.granularity !== "paragraph") {
|
|
977
978
|
for (const span of spec.spans ?? []) {
|
|
978
|
-
const node =
|
|
979
|
-
|
|
979
|
+
const node = chunk4SZSTDER_cjs.createEl(doc, "span");
|
|
980
|
+
chunk4SZSTDER_cjs.applyStyleMap(node, { ...span.style ?? {}, ...chunkRN3JVXVN_cjs.textBuildSpanStyle(span) });
|
|
980
981
|
if (span.animId) {
|
|
981
982
|
node.setAttribute("data-anim-id", span.animId);
|
|
982
983
|
}
|
|
@@ -988,8 +989,8 @@ function renderTextBlock(doc, paragraphs, textStyle, build) {
|
|
|
988
989
|
}
|
|
989
990
|
let runHost = p;
|
|
990
991
|
if (spec) {
|
|
991
|
-
const wrapper =
|
|
992
|
-
|
|
992
|
+
const wrapper = chunk4SZSTDER_cjs.createEl(doc, "span");
|
|
993
|
+
chunk4SZSTDER_cjs.applyStyleMap(wrapper, chunkRN3JVXVN_cjs.textBuildSpanStyle(spec));
|
|
993
994
|
if (spec.animId) {
|
|
994
995
|
wrapper.setAttribute("data-anim-id", spec.animId);
|
|
995
996
|
}
|
|
@@ -1016,12 +1017,12 @@ var renderConnectorElement = (element, zIndex, context) => {
|
|
|
1016
1017
|
const doc = context.document;
|
|
1017
1018
|
const ss = pptx.hasShapeProperties(element) ? element.shapeStyle : void 0;
|
|
1018
1019
|
const strokeWidth = Math.max(0, ss?.strokeWidth ?? 2);
|
|
1019
|
-
const strokeColor = ss?.strokeColor ??
|
|
1020
|
+
const strokeColor = ss?.strokeColor ?? chunkYZWKNFPU_cjs.DEFAULT_STROKE_COLOR;
|
|
1020
1021
|
const strokeOpacity = ss?.strokeOpacity ?? 1;
|
|
1021
|
-
const dashArray =
|
|
1022
|
+
const dashArray = chunkYZWKNFPU_cjs.buildDashArray(ss?.strokeDash, strokeWidth, ss?.customDashSegments);
|
|
1022
1023
|
const w = Math.max(element.width, 1);
|
|
1023
1024
|
const h = Math.max(element.height, 1);
|
|
1024
|
-
const wrapper =
|
|
1025
|
+
const wrapper = chunk4SZSTDER_cjs.createEl(doc, "div", "pptxv-element pptxv-connector", {
|
|
1025
1026
|
position: "absolute",
|
|
1026
1027
|
left: `${element.x}px`,
|
|
1027
1028
|
top: `${element.y}px`,
|
|
@@ -1045,18 +1046,18 @@ var renderConnectorElement = (element, zIndex, context) => {
|
|
|
1045
1046
|
if (element.hidden) {
|
|
1046
1047
|
wrapper.style.display = "none";
|
|
1047
1048
|
}
|
|
1048
|
-
const lineGlow =
|
|
1049
|
+
const lineGlow = chunkRN3JVXVN_cjs.getLineGlowFilterCss(ss);
|
|
1049
1050
|
if (lineGlow) {
|
|
1050
1051
|
wrapper.style.filter = lineGlow;
|
|
1051
1052
|
}
|
|
1052
|
-
const svg =
|
|
1053
|
+
const svg = chunk4SZSTDER_cjs.createSvgEl(doc, "svg", { width: w, height: h, viewBox: `0 0 ${w} ${h}` });
|
|
1053
1054
|
svg.setAttribute("style", "overflow:visible;display:block");
|
|
1054
1055
|
const seed = element.id.replace(/[^a-zA-Z0-9_-]/gu, "_");
|
|
1055
|
-
const defs =
|
|
1056
|
-
const lineShadow =
|
|
1056
|
+
const defs = chunk4SZSTDER_cjs.createSvgEl(doc, "defs");
|
|
1057
|
+
const lineShadow = chunkRN3JVXVN_cjs.getLineShadowParams(ss);
|
|
1057
1058
|
const shadowId = lineShadow ? `${seed}-line-shadow` : void 0;
|
|
1058
1059
|
if (lineShadow && shadowId) {
|
|
1059
|
-
const filter =
|
|
1060
|
+
const filter = chunk4SZSTDER_cjs.createSvgEl(doc, "filter", {
|
|
1060
1061
|
id: shadowId,
|
|
1061
1062
|
x: "-50%",
|
|
1062
1063
|
y: "-50%",
|
|
@@ -1064,7 +1065,7 @@ var renderConnectorElement = (element, zIndex, context) => {
|
|
|
1064
1065
|
height: "200%"
|
|
1065
1066
|
});
|
|
1066
1067
|
filter.appendChild(
|
|
1067
|
-
|
|
1068
|
+
chunk4SZSTDER_cjs.createSvgEl(doc, "feDropShadow", {
|
|
1068
1069
|
dx: lineShadow.offsetX,
|
|
1069
1070
|
dy: lineShadow.offsetY,
|
|
1070
1071
|
stdDeviation: lineShadow.blur / 2,
|
|
@@ -1074,8 +1075,8 @@ var renderConnectorElement = (element, zIndex, context) => {
|
|
|
1074
1075
|
);
|
|
1075
1076
|
defs.appendChild(filter);
|
|
1076
1077
|
}
|
|
1077
|
-
const startArrow =
|
|
1078
|
-
const endArrow =
|
|
1078
|
+
const startArrow = chunkRN3JVXVN_cjs.normalizeArrow(ss?.connectorStartArrow);
|
|
1079
|
+
const endArrow = chunkRN3JVXVN_cjs.normalizeArrow(ss?.connectorEndArrow);
|
|
1079
1080
|
const startMarkerId = startArrow ? `${seed}-start` : void 0;
|
|
1080
1081
|
const endMarkerId = endArrow ? `${seed}-end` : void 0;
|
|
1081
1082
|
if (startArrow && startMarkerId) {
|
|
@@ -1098,21 +1099,21 @@ var renderConnectorElement = (element, zIndex, context) => {
|
|
|
1098
1099
|
svg.appendChild(defs);
|
|
1099
1100
|
}
|
|
1100
1101
|
const compound = ss?.compoundLine;
|
|
1101
|
-
const offsets =
|
|
1102
|
-
const widths =
|
|
1102
|
+
const offsets = chunkRN3JVXVN_cjs.getCompoundLineOffsets(compound, strokeWidth);
|
|
1103
|
+
const widths = chunkRN3JVXVN_cjs.getCompoundLineWidths(compound, strokeWidth);
|
|
1103
1104
|
const shapeType = pptx.hasShapeProperties(element) ? element.shapeType : void 0;
|
|
1104
|
-
const usePath =
|
|
1105
|
+
const usePath = chunkRN3JVXVN_cjs.connectorNeedsPath(shapeType) && pptx.hasShapeProperties(element);
|
|
1105
1106
|
const pathData = usePath ? pptx.getConnectorPathGeometry(element).pathData : void 0;
|
|
1106
1107
|
const x1 = element.flipHorizontal ? w : 0;
|
|
1107
1108
|
const y1 = element.flipVertical ? h : 0;
|
|
1108
1109
|
const x2 = element.flipHorizontal ? 0 : w;
|
|
1109
1110
|
const y2 = element.flipVertical ? 0 : h;
|
|
1110
|
-
const hit =
|
|
1111
|
+
const hit = chunk4SZSTDER_cjs.createSvgEl(doc, "path", {
|
|
1111
1112
|
class: "pptxv-connector-hit",
|
|
1112
1113
|
d: pathData ?? `M${x1},${y1} L${x2},${y2}`,
|
|
1113
1114
|
fill: "none",
|
|
1114
1115
|
stroke: "transparent",
|
|
1115
|
-
"stroke-width":
|
|
1116
|
+
"stroke-width": chunkRN3JVXVN_cjs.connectorHitStrokeWidth(strokeWidth),
|
|
1116
1117
|
"stroke-linecap": "round",
|
|
1117
1118
|
"stroke-linejoin": "round"
|
|
1118
1119
|
});
|
|
@@ -1133,7 +1134,7 @@ var renderConnectorElement = (element, zIndex, context) => {
|
|
|
1133
1134
|
};
|
|
1134
1135
|
let node;
|
|
1135
1136
|
if (pathData !== void 0) {
|
|
1136
|
-
node =
|
|
1137
|
+
node = chunk4SZSTDER_cjs.createSvgEl(doc, "path", {
|
|
1137
1138
|
d: pathData,
|
|
1138
1139
|
fill: "none",
|
|
1139
1140
|
"stroke-linejoin": "round",
|
|
@@ -1143,7 +1144,7 @@ var renderConnectorElement = (element, zIndex, context) => {
|
|
|
1143
1144
|
node.style.transform = `translate(0, ${offset}px)`;
|
|
1144
1145
|
}
|
|
1145
1146
|
} else {
|
|
1146
|
-
node =
|
|
1147
|
+
node = chunk4SZSTDER_cjs.createSvgEl(doc, "line", {
|
|
1147
1148
|
x1,
|
|
1148
1149
|
y1: y1 + offset,
|
|
1149
1150
|
x2,
|
|
@@ -1151,7 +1152,7 @@ var renderConnectorElement = (element, zIndex, context) => {
|
|
|
1151
1152
|
...stroke
|
|
1152
1153
|
});
|
|
1153
1154
|
}
|
|
1154
|
-
node.style.setProperty("stroke-width",
|
|
1155
|
+
node.style.setProperty("stroke-width", chunk7XXOLM7H_cjs.screenStrokeWidth(strandWidth));
|
|
1155
1156
|
svg.appendChild(node);
|
|
1156
1157
|
});
|
|
1157
1158
|
wrapper.appendChild(svg);
|
|
@@ -1162,7 +1163,7 @@ function appendConnectorLabel(wrapper, element, context) {
|
|
|
1162
1163
|
if (!pptx.hasTextProperties(element)) {
|
|
1163
1164
|
return;
|
|
1164
1165
|
}
|
|
1165
|
-
const paragraphs =
|
|
1166
|
+
const paragraphs = chunkRN3JVXVN_cjs.buildParagraphs(element, context.fieldContext);
|
|
1166
1167
|
if (!paragraphs.some((paragraph) => paragraph.runs.length > 0)) {
|
|
1167
1168
|
return;
|
|
1168
1169
|
}
|
|
@@ -1182,8 +1183,8 @@ function appendConnectorLabel(wrapper, element, context) {
|
|
|
1182
1183
|
}
|
|
1183
1184
|
function buildMarker(context, id, arrow, strokeColor, size) {
|
|
1184
1185
|
const doc = context.document;
|
|
1185
|
-
const shape =
|
|
1186
|
-
const marker =
|
|
1186
|
+
const shape = chunkRN3JVXVN_cjs.markerPath(arrow, size.width, size.length);
|
|
1187
|
+
const marker = chunk4SZSTDER_cjs.createSvgEl(doc, "marker", {
|
|
1187
1188
|
id,
|
|
1188
1189
|
viewBox: "0 0 10 10",
|
|
1189
1190
|
refX: shape.refX,
|
|
@@ -1195,11 +1196,11 @@ function buildMarker(context, id, arrow, strokeColor, size) {
|
|
|
1195
1196
|
preserveAspectRatio: "none"
|
|
1196
1197
|
});
|
|
1197
1198
|
if (shape.shape === "circle") {
|
|
1198
|
-
marker.appendChild(
|
|
1199
|
+
marker.appendChild(chunk4SZSTDER_cjs.createSvgEl(doc, "circle", { cx: 5, cy: 5, r: 4, fill: strokeColor }));
|
|
1199
1200
|
} else if (shape.strokeOnly) {
|
|
1200
|
-
marker.appendChild(
|
|
1201
|
+
marker.appendChild(chunk4SZSTDER_cjs.createSvgEl(doc, "path", { d: shape.d, fill: "none", stroke: strokeColor }));
|
|
1201
1202
|
} else {
|
|
1202
|
-
marker.appendChild(
|
|
1203
|
+
marker.appendChild(chunk4SZSTDER_cjs.createSvgEl(doc, "path", { d: shape.d, fill: strokeColor }));
|
|
1203
1204
|
}
|
|
1204
1205
|
return marker;
|
|
1205
1206
|
}
|
|
@@ -1207,13 +1208,13 @@ function buildMarker(context, id, arrow, strokeColor, size) {
|
|
|
1207
1208
|
// src/pptx/dom/elements/ink-stroke-svg.ts
|
|
1208
1209
|
function buildStrokeSvg(doc, view, replay) {
|
|
1209
1210
|
if (view.nibMarks) {
|
|
1210
|
-
const g =
|
|
1211
|
+
const g = chunk4SZSTDER_cjs.createSvgEl(doc, "g", {
|
|
1211
1212
|
opacity: view.opacity,
|
|
1212
1213
|
...view.blendMode === "multiply" ? { style: "mix-blend-mode: multiply" } : {}
|
|
1213
1214
|
});
|
|
1214
1215
|
for (const m of view.nibMarks) {
|
|
1215
1216
|
g.appendChild(
|
|
1216
|
-
|
|
1217
|
+
chunk4SZSTDER_cjs.createSvgEl(doc, "ellipse", {
|
|
1217
1218
|
cx: m.cx,
|
|
1218
1219
|
cy: m.cy,
|
|
1219
1220
|
rx: m.rPerp,
|
|
@@ -1226,16 +1227,16 @@ function buildStrokeSvg(doc, view, replay) {
|
|
|
1226
1227
|
return g;
|
|
1227
1228
|
}
|
|
1228
1229
|
if (view.circles) {
|
|
1229
|
-
const g =
|
|
1230
|
+
const g = chunk4SZSTDER_cjs.createSvgEl(doc, "g", {
|
|
1230
1231
|
opacity: view.opacity,
|
|
1231
1232
|
...view.blendMode === "multiply" ? { style: "mix-blend-mode: multiply" } : {}
|
|
1232
1233
|
});
|
|
1233
1234
|
for (const c of view.circles) {
|
|
1234
|
-
g.appendChild(
|
|
1235
|
+
g.appendChild(chunk4SZSTDER_cjs.createSvgEl(doc, "circle", { cx: c.cx, cy: c.cy, r: c.r, fill: view.color }));
|
|
1235
1236
|
}
|
|
1236
1237
|
return g;
|
|
1237
1238
|
}
|
|
1238
|
-
const path =
|
|
1239
|
+
const path = chunk4SZSTDER_cjs.createSvgEl(doc, "path", {
|
|
1239
1240
|
d: view.d,
|
|
1240
1241
|
fill: "none",
|
|
1241
1242
|
stroke: view.color,
|
|
@@ -1263,24 +1264,24 @@ var renderContentPartElement = (element, zIndex, context) => {
|
|
|
1263
1264
|
return null;
|
|
1264
1265
|
}
|
|
1265
1266
|
const doc = context.document;
|
|
1266
|
-
const el =
|
|
1267
|
+
const el = chunk4SZSTDER_cjs.createEl(
|
|
1267
1268
|
doc,
|
|
1268
1269
|
"div",
|
|
1269
1270
|
"pptxv-element pptxv-contentpart",
|
|
1270
|
-
|
|
1271
|
+
chunkRN3JVXVN_cjs.getContainerStyle(element, zIndex)
|
|
1271
1272
|
);
|
|
1272
1273
|
el.dataset.elementId = element.id;
|
|
1273
1274
|
const strokes = element.inkStrokes;
|
|
1274
1275
|
if (!strokes || strokes.length === 0) {
|
|
1275
1276
|
el.classList.add("pptxv-placeholder");
|
|
1276
|
-
const label =
|
|
1277
|
+
const label = chunk4SZSTDER_cjs.createEl(doc, "div", "pptxv-placeholder-label");
|
|
1277
1278
|
label.textContent = context.t("pptx.ink.contentPartFallback");
|
|
1278
1279
|
el.appendChild(label);
|
|
1279
1280
|
return el;
|
|
1280
1281
|
}
|
|
1281
1282
|
const w = Math.max(element.width, 1);
|
|
1282
1283
|
const h = Math.max(element.height, 1);
|
|
1283
|
-
const svg =
|
|
1284
|
+
const svg = chunk4SZSTDER_cjs.createSvgEl(doc, "svg", {
|
|
1284
1285
|
viewBox: `0 0 ${w} ${h}`,
|
|
1285
1286
|
preserveAspectRatio: "none"
|
|
1286
1287
|
});
|
|
@@ -1288,7 +1289,7 @@ var renderContentPartElement = (element, zIndex, context) => {
|
|
|
1288
1289
|
svg.setAttribute("style", "width:100%;height:100%;pointer-events:none;display:block");
|
|
1289
1290
|
const replayStyles = context.presenting ? chunkNTXHQHCS_cjs.getContentPartReplayStyles(strokes) : [];
|
|
1290
1291
|
if (context.presenting) {
|
|
1291
|
-
const keyframes =
|
|
1292
|
+
const keyframes = chunk4SZSTDER_cjs.createSvgEl(doc, "style");
|
|
1292
1293
|
keyframes.textContent = chunkNTXHQHCS_cjs.INK_REPLAY_KEYFRAMES;
|
|
1293
1294
|
svg.appendChild(keyframes);
|
|
1294
1295
|
}
|
|
@@ -1300,38 +1301,38 @@ var renderContentPartElement = (element, zIndex, context) => {
|
|
|
1300
1301
|
return el;
|
|
1301
1302
|
};
|
|
1302
1303
|
function renderEquations(element, context) {
|
|
1303
|
-
if (!pptx.hasTextProperties(element) || !
|
|
1304
|
+
if (!pptx.hasTextProperties(element) || !chunkRN3JVXVN_cjs.isEquationOnlyText(element.textSegments)) {
|
|
1304
1305
|
return null;
|
|
1305
1306
|
}
|
|
1306
1307
|
const equations = (element.textSegments ?? []).filter((segment) => segment.equationXml);
|
|
1307
1308
|
if (equations.length === 0) {
|
|
1308
1309
|
return null;
|
|
1309
1310
|
}
|
|
1310
|
-
const wrapper =
|
|
1311
|
+
const wrapper = chunk4SZSTDER_cjs.createEl(context.document, "div", "pptxv-equations", {
|
|
1311
1312
|
...getTextBlockStyle(element),
|
|
1312
1313
|
alignItems: "center",
|
|
1313
1314
|
gap: "0.25em",
|
|
1314
1315
|
fontFamily: "'Cambria Math', 'STIX Two Math', serif"
|
|
1315
1316
|
});
|
|
1316
1317
|
for (const segment of equations) {
|
|
1317
|
-
const mathml =
|
|
1318
|
+
const mathml = chunkRN3JVXVN_cjs.convertOmmlToMathMl(segment.equationXml);
|
|
1318
1319
|
if (!mathml) {
|
|
1319
1320
|
continue;
|
|
1320
1321
|
}
|
|
1321
|
-
const row =
|
|
1322
|
+
const row = chunk4SZSTDER_cjs.createEl(context.document, "span", "pptxv-equation", {
|
|
1322
1323
|
display: "flex",
|
|
1323
1324
|
alignItems: "center",
|
|
1324
1325
|
justifyContent: "center",
|
|
1325
1326
|
width: "100%"
|
|
1326
1327
|
});
|
|
1327
|
-
const math =
|
|
1328
|
+
const math = chunk4SZSTDER_cjs.createEl(context.document, "span", "pptxv-equation-math", {
|
|
1328
1329
|
flex: 1,
|
|
1329
1330
|
textAlign: "center"
|
|
1330
1331
|
});
|
|
1331
|
-
math.innerHTML =
|
|
1332
|
+
math.innerHTML = chunkRN3JVXVN_cjs.sanitizeMathMl(mathml);
|
|
1332
1333
|
row.appendChild(math);
|
|
1333
1334
|
if (segment.equationNumber) {
|
|
1334
|
-
const number =
|
|
1335
|
+
const number = chunk4SZSTDER_cjs.createEl(context.document, "span", "pptxv-equation-number", {
|
|
1335
1336
|
whiteSpace: "nowrap"
|
|
1336
1337
|
});
|
|
1337
1338
|
number.textContent = `(${segment.equationNumber})`;
|
|
@@ -1345,8 +1346,8 @@ function renderExtrusionOverlay(doc, element) {
|
|
|
1345
1346
|
if (!pptx.hasShapeProperties(element)) {
|
|
1346
1347
|
return null;
|
|
1347
1348
|
}
|
|
1348
|
-
const fill =
|
|
1349
|
-
const data =
|
|
1349
|
+
const fill = chunkYZWKNFPU_cjs.getComputedFillStyle(element)?.backgroundColor;
|
|
1350
|
+
const data = chunkRN3JVXVN_cjs.build3DExtrusionData(
|
|
1350
1351
|
element.shapeStyle?.shape3d,
|
|
1351
1352
|
element.shapeStyle?.scene3d,
|
|
1352
1353
|
fill,
|
|
@@ -1356,11 +1357,11 @@ function renderExtrusionOverlay(doc, element) {
|
|
|
1356
1357
|
if (!data.hasExtrusion || data.panels.length === 0) {
|
|
1357
1358
|
return null;
|
|
1358
1359
|
}
|
|
1359
|
-
const wrapper =
|
|
1360
|
+
const wrapper = chunk4SZSTDER_cjs.createEl(doc, "div", "pptxv-extrusion-3d", toCss(data.wrapperStyle));
|
|
1360
1361
|
wrapper.setAttribute("aria-hidden", "true");
|
|
1361
1362
|
for (const panel of data.panels) {
|
|
1362
1363
|
wrapper.appendChild(
|
|
1363
|
-
|
|
1364
|
+
chunk4SZSTDER_cjs.createEl(
|
|
1364
1365
|
doc,
|
|
1365
1366
|
"div",
|
|
1366
1367
|
`pptxv-extrusion-3d-panel pptxv-extrusion-3d-panel--${panel.side}`,
|
|
@@ -1370,7 +1371,7 @@ function renderExtrusionOverlay(doc, element) {
|
|
|
1370
1371
|
}
|
|
1371
1372
|
if (data.materialOverlay) {
|
|
1372
1373
|
wrapper.appendChild(
|
|
1373
|
-
|
|
1374
|
+
chunk4SZSTDER_cjs.createEl(doc, "div", "pptxv-extrusion-3d-material", {
|
|
1374
1375
|
position: "absolute",
|
|
1375
1376
|
inset: 0,
|
|
1376
1377
|
backgroundImage: data.materialOverlay,
|
|
@@ -1408,18 +1409,18 @@ function appendOwnReflection(doc, host, element, mediaDataUrls, suppressOwnRefle
|
|
|
1408
1409
|
if (suppressOwnReflection) {
|
|
1409
1410
|
return;
|
|
1410
1411
|
}
|
|
1411
|
-
const wrapperStyle =
|
|
1412
|
+
const wrapperStyle = chunkRN3JVXVN_cjs.getComputedEffectStyle(element).reflection;
|
|
1412
1413
|
if (!wrapperStyle) {
|
|
1413
1414
|
return;
|
|
1414
1415
|
}
|
|
1415
|
-
const layer =
|
|
1416
|
+
const layer = chunk4SZSTDER_cjs.createEl(doc, "div", "pptxv-reflection", { ...wrapperStyle });
|
|
1416
1417
|
layer.setAttribute("aria-hidden", "true");
|
|
1417
1418
|
layer.appendChild(buildReflectionMirrorContent(doc, element, mediaDataUrls, void 0, true));
|
|
1418
1419
|
host.appendChild(layer);
|
|
1419
1420
|
}
|
|
1420
1421
|
function buildReflectionMirrorContent(doc, element, mediaDataUrls, parentGroupFill, suppressOwnReflection = false) {
|
|
1421
1422
|
if (element.type === "group") {
|
|
1422
|
-
const wrap =
|
|
1423
|
+
const wrap = chunk4SZSTDER_cjs.createEl(doc, "div", void 0, {
|
|
1423
1424
|
position: "relative",
|
|
1424
1425
|
width: "100%",
|
|
1425
1426
|
height: "100%",
|
|
@@ -1432,9 +1433,9 @@ function buildReflectionMirrorContent(doc, element, mediaDataUrls, parentGroupFi
|
|
|
1432
1433
|
if (groupFilterDefs) {
|
|
1433
1434
|
wrap.appendChild(groupFilterDefs);
|
|
1434
1435
|
}
|
|
1435
|
-
const childParentFill =
|
|
1436
|
+
const childParentFill = chunkRN3JVXVN_cjs.getGroupChildParentFill(element, parentGroupFill);
|
|
1436
1437
|
for (const child of element.children ?? []) {
|
|
1437
|
-
const childWrap =
|
|
1438
|
+
const childWrap = chunk4SZSTDER_cjs.createEl(doc, "div", void 0, chunkRN3JVXVN_cjs.getContainerStyle(child, 0));
|
|
1438
1439
|
childWrap.appendChild(
|
|
1439
1440
|
buildReflectionMirrorContent(doc, child, mediaDataUrls, childParentFill)
|
|
1440
1441
|
);
|
|
@@ -1443,12 +1444,12 @@ function buildReflectionMirrorContent(doc, element, mediaDataUrls, parentGroupFi
|
|
|
1443
1444
|
appendOwnReflection(doc, wrap, element, mediaDataUrls, suppressOwnReflection);
|
|
1444
1445
|
return wrap;
|
|
1445
1446
|
}
|
|
1446
|
-
const box =
|
|
1447
|
+
const box = chunk4SZSTDER_cjs.createEl(doc, "div", void 0, {
|
|
1447
1448
|
width: "100%",
|
|
1448
1449
|
height: "100%",
|
|
1449
1450
|
...getShapeFillStrokeStyle(element)
|
|
1450
1451
|
});
|
|
1451
|
-
const inheritedFill =
|
|
1452
|
+
const inheritedFill = chunkRN3JVXVN_cjs.resolveGroupChildFill(element, parentGroupFill);
|
|
1452
1453
|
if (inheritedFill) {
|
|
1453
1454
|
applyInheritedFill(box, inheritedFill);
|
|
1454
1455
|
}
|
|
@@ -1469,12 +1470,12 @@ function buildReflectionMirrorContent(doc, element, mediaDataUrls, parentGroupFi
|
|
|
1469
1470
|
box.appendChild(gradientOutline);
|
|
1470
1471
|
}
|
|
1471
1472
|
if (pptx.isImageLikeElement(element)) {
|
|
1472
|
-
const src =
|
|
1473
|
+
const src = chunkRN3JVXVN_cjs.getImageSrc(element, new Map(mediaDataUrls));
|
|
1473
1474
|
if (src) {
|
|
1474
|
-
const img =
|
|
1475
|
+
const img = chunk4SZSTDER_cjs.createEl(doc, "img", void 0, {
|
|
1475
1476
|
width: "100%",
|
|
1476
1477
|
height: "100%",
|
|
1477
|
-
...
|
|
1478
|
+
...chunkRN3JVXVN_cjs.getImageFitStyle(element)
|
|
1478
1479
|
});
|
|
1479
1480
|
img.setAttribute("src", src);
|
|
1480
1481
|
img.setAttribute("alt", "");
|
|
@@ -1484,7 +1485,7 @@ function buildReflectionMirrorContent(doc, element, mediaDataUrls, parentGroupFi
|
|
|
1484
1485
|
appendOwnReflection(doc, box, element, mediaDataUrls, suppressOwnReflection);
|
|
1485
1486
|
return box;
|
|
1486
1487
|
}
|
|
1487
|
-
const paragraphs =
|
|
1488
|
+
const paragraphs = chunkRN3JVXVN_cjs.buildParagraphs(element);
|
|
1488
1489
|
const hasText = paragraphs.some((p) => p.runs.length > 0 || p.bulletMarker !== void 0);
|
|
1489
1490
|
if (hasText) {
|
|
1490
1491
|
box.appendChild(renderTextBlock(doc, paragraphs, getTextBlockStyle(element)));
|
|
@@ -1496,29 +1497,29 @@ function buildReflectionMirrorContent(doc, element, mediaDataUrls, parentGroupFi
|
|
|
1496
1497
|
// src/pptx/dom/elements/shape-filter-defs.ts
|
|
1497
1498
|
var OUTLINE_SVG_STYLE = "position:absolute;inset:0;width:100%;height:100%;min-width:1px;min-height:1px;overflow:visible;pointer-events:none";
|
|
1498
1499
|
function renderShapeFilterDefs(doc, element) {
|
|
1499
|
-
const style =
|
|
1500
|
+
const style = chunkRN3JVXVN_cjs.getEffectStyleSource(element);
|
|
1500
1501
|
if (!style) {
|
|
1501
1502
|
return null;
|
|
1502
1503
|
}
|
|
1503
1504
|
const markups = [];
|
|
1504
|
-
const duotone =
|
|
1505
|
+
const duotone = chunkRN3JVXVN_cjs.getDuotoneSvgFilter(style, element.id);
|
|
1505
1506
|
if (duotone) {
|
|
1506
1507
|
markups.push(duotone.filterMarkup);
|
|
1507
1508
|
}
|
|
1508
|
-
const softEdge =
|
|
1509
|
+
const softEdge = chunkRN3JVXVN_cjs.getSoftEdgeSvgFilter(style, element.id);
|
|
1509
1510
|
if (softEdge) {
|
|
1510
1511
|
markups.push(softEdge.filterMarkup);
|
|
1511
1512
|
}
|
|
1512
|
-
const bevelLighting =
|
|
1513
|
+
const bevelLighting = chunkRN3JVXVN_cjs.getBevelLightingSvgFilter(element);
|
|
1513
1514
|
if (bevelLighting) {
|
|
1514
1515
|
markups.push(bevelLighting.filterMarkup);
|
|
1515
1516
|
}
|
|
1516
1517
|
if (markups.length === 0) {
|
|
1517
1518
|
return null;
|
|
1518
1519
|
}
|
|
1519
|
-
const svg =
|
|
1520
|
+
const svg = chunk4SZSTDER_cjs.createSvgEl(doc, "svg", { width: 0, height: 0, "aria-hidden": "true" });
|
|
1520
1521
|
svg.setAttribute("style", "position:absolute;width:0;height:0;overflow:hidden");
|
|
1521
|
-
const defs =
|
|
1522
|
+
const defs = chunk4SZSTDER_cjs.createSvgEl(doc, "defs");
|
|
1522
1523
|
defs.innerHTML = markups.join("");
|
|
1523
1524
|
svg.appendChild(defs);
|
|
1524
1525
|
return svg;
|
|
@@ -1527,11 +1528,11 @@ function renderShapeFillOverlay(doc, element) {
|
|
|
1527
1528
|
if (!pptx.hasShapeProperties(element)) {
|
|
1528
1529
|
return null;
|
|
1529
1530
|
}
|
|
1530
|
-
const overlay =
|
|
1531
|
+
const overlay = chunkRN3JVXVN_cjs.getComputedEffectStyle(element).fillOverlay;
|
|
1531
1532
|
if (!overlay) {
|
|
1532
1533
|
return null;
|
|
1533
1534
|
}
|
|
1534
|
-
const layer =
|
|
1535
|
+
const layer = chunk4SZSTDER_cjs.createEl(doc, "div", "pptxv-fill-overlay", {
|
|
1535
1536
|
position: "absolute",
|
|
1536
1537
|
inset: 0,
|
|
1537
1538
|
background: overlay.color,
|
|
@@ -1542,27 +1543,27 @@ function renderShapeFillOverlay(doc, element) {
|
|
|
1542
1543
|
return layer;
|
|
1543
1544
|
}
|
|
1544
1545
|
function renderReflectionOverlay(doc, element, mediaDataUrls) {
|
|
1545
|
-
const wrapperStyle =
|
|
1546
|
+
const wrapperStyle = chunkRN3JVXVN_cjs.getComputedEffectStyle(element).reflection;
|
|
1546
1547
|
if (!wrapperStyle) {
|
|
1547
1548
|
return null;
|
|
1548
1549
|
}
|
|
1549
|
-
const layer =
|
|
1550
|
+
const layer = chunk4SZSTDER_cjs.createEl(doc, "div", "pptxv-reflection", { ...wrapperStyle });
|
|
1550
1551
|
layer.setAttribute("aria-hidden", "true");
|
|
1551
1552
|
layer.appendChild(buildReflectionMirrorContent(doc, element, mediaDataUrls, void 0, true));
|
|
1552
1553
|
return layer;
|
|
1553
1554
|
}
|
|
1554
1555
|
function renderHollowHitOutline(doc, element) {
|
|
1555
|
-
const hit =
|
|
1556
|
+
const hit = chunkRN3JVXVN_cjs.buildHollowHitOutline(element);
|
|
1556
1557
|
if (!hit) {
|
|
1557
1558
|
return null;
|
|
1558
1559
|
}
|
|
1559
|
-
const svg =
|
|
1560
|
+
const svg = chunk4SZSTDER_cjs.createSvgEl(doc, "svg", {
|
|
1560
1561
|
"aria-hidden": "true",
|
|
1561
|
-
viewBox:
|
|
1562
|
+
viewBox: chunkRN3JVXVN_cjs.strokeOutlineViewBox(element),
|
|
1562
1563
|
preserveAspectRatio: "none"
|
|
1563
1564
|
});
|
|
1564
1565
|
svg.setAttribute("style", OUTLINE_SVG_STYLE);
|
|
1565
|
-
const path =
|
|
1566
|
+
const path = chunk4SZSTDER_cjs.createSvgEl(doc, "path", {
|
|
1566
1567
|
d: hit.d,
|
|
1567
1568
|
fill: "none",
|
|
1568
1569
|
stroke: "transparent",
|
|
@@ -1573,11 +1574,11 @@ function renderHollowHitOutline(doc, element) {
|
|
|
1573
1574
|
return svg;
|
|
1574
1575
|
}
|
|
1575
1576
|
function renderShapeSubpathFillOverlay(doc, element) {
|
|
1576
|
-
const overlay =
|
|
1577
|
+
const overlay = chunkYZWKNFPU_cjs.buildSubpathFillOverlay(element);
|
|
1577
1578
|
if (!overlay) {
|
|
1578
1579
|
return null;
|
|
1579
1580
|
}
|
|
1580
|
-
const svg =
|
|
1581
|
+
const svg = chunk4SZSTDER_cjs.createSvgEl(doc, "svg", {
|
|
1581
1582
|
class: "pptx-vanilla-subpath-fill",
|
|
1582
1583
|
"aria-hidden": "true",
|
|
1583
1584
|
viewBox: `0 0 ${overlay.viewBoxWidth} ${overlay.viewBoxHeight}`,
|
|
@@ -1585,33 +1586,34 @@ function renderShapeSubpathFillOverlay(doc, element) {
|
|
|
1585
1586
|
});
|
|
1586
1587
|
svg.setAttribute("style", "position:absolute;inset:0;width:100%;height:100%");
|
|
1587
1588
|
for (const paint of overlay.paints) {
|
|
1588
|
-
const path =
|
|
1589
|
+
const path = chunk4SZSTDER_cjs.createSvgEl(doc, "path", { d: paint.d, fill: paint.fill, stroke: "none" });
|
|
1589
1590
|
svg.appendChild(path);
|
|
1590
1591
|
}
|
|
1591
1592
|
return svg;
|
|
1592
1593
|
}
|
|
1593
1594
|
function renderStrokeOutline(doc, element) {
|
|
1594
|
-
const outline =
|
|
1595
|
+
const outline = chunkRN3JVXVN_cjs.buildStrokeOutline(element);
|
|
1595
1596
|
if (!outline) {
|
|
1596
1597
|
return null;
|
|
1597
1598
|
}
|
|
1598
|
-
const svg =
|
|
1599
|
+
const svg = chunk4SZSTDER_cjs.createSvgEl(doc, "svg", {
|
|
1599
1600
|
class: "pptx-vanilla-gradient-outline",
|
|
1601
|
+
"data-pptx-outline": "",
|
|
1600
1602
|
"aria-hidden": "true",
|
|
1601
|
-
viewBox:
|
|
1603
|
+
viewBox: chunkRN3JVXVN_cjs.strokeOutlineViewBox(element),
|
|
1602
1604
|
preserveAspectRatio: "none"
|
|
1603
1605
|
});
|
|
1604
1606
|
svg.setAttribute("style", OUTLINE_SVG_STYLE);
|
|
1605
1607
|
if (outline.paint) {
|
|
1606
|
-
const defs =
|
|
1607
|
-
if (
|
|
1608
|
-
const pattern =
|
|
1608
|
+
const defs = chunk4SZSTDER_cjs.createSvgEl(doc, "defs");
|
|
1609
|
+
if (chunkRN3JVXVN_cjs.isPatternPaint(outline.paint)) {
|
|
1610
|
+
const pattern = chunk4SZSTDER_cjs.createSvgEl(doc, "pattern", {
|
|
1609
1611
|
id: outline.paint.id,
|
|
1610
1612
|
width: outline.paint.width,
|
|
1611
1613
|
height: outline.paint.height,
|
|
1612
1614
|
patternUnits: "userSpaceOnUse"
|
|
1613
1615
|
});
|
|
1614
|
-
const image =
|
|
1616
|
+
const image = chunk4SZSTDER_cjs.createSvgEl(doc, "image", {
|
|
1615
1617
|
href: outline.paint.href,
|
|
1616
1618
|
width: outline.paint.width,
|
|
1617
1619
|
height: outline.paint.height
|
|
@@ -1619,12 +1621,12 @@ function renderStrokeOutline(doc, element) {
|
|
|
1619
1621
|
pattern.appendChild(image);
|
|
1620
1622
|
defs.appendChild(pattern);
|
|
1621
1623
|
} else {
|
|
1622
|
-
defs.innerHTML =
|
|
1624
|
+
defs.innerHTML = chunkRN3JVXVN_cjs.svgGradientMarkup(outline.paint);
|
|
1623
1625
|
}
|
|
1624
1626
|
svg.appendChild(defs);
|
|
1625
1627
|
}
|
|
1626
1628
|
for (const strand of outline.strands) {
|
|
1627
|
-
const path =
|
|
1629
|
+
const path = chunk4SZSTDER_cjs.createSvgEl(doc, "path", {
|
|
1628
1630
|
d: strand.d ?? outline.d,
|
|
1629
1631
|
fill: "none",
|
|
1630
1632
|
stroke: outline.stroke,
|
|
@@ -1642,7 +1644,7 @@ function renderStrokeOutline(doc, element) {
|
|
|
1642
1644
|
svg.appendChild(path);
|
|
1643
1645
|
}
|
|
1644
1646
|
if (outline.markers) {
|
|
1645
|
-
const defs =
|
|
1647
|
+
const defs = chunk4SZSTDER_cjs.createSvgEl(doc, "defs");
|
|
1646
1648
|
defs.innerHTML = outline.markers.markup;
|
|
1647
1649
|
svg.prepend(defs);
|
|
1648
1650
|
const path = svg.querySelector(":scope > path");
|
|
@@ -1678,14 +1680,14 @@ function indexRenderedNodes(root) {
|
|
|
1678
1680
|
return byId;
|
|
1679
1681
|
}
|
|
1680
1682
|
function paintInheritedFill(node, element, parentGroupFill) {
|
|
1681
|
-
const inherited =
|
|
1683
|
+
const inherited = chunkRN3JVXVN_cjs.resolveGroupChildFill(element, parentGroupFill);
|
|
1682
1684
|
if (inherited) {
|
|
1683
1685
|
applyGroupChildFill(node, inherited);
|
|
1684
1686
|
}
|
|
1685
1687
|
if (element.type !== "group") {
|
|
1686
1688
|
return;
|
|
1687
1689
|
}
|
|
1688
|
-
const childFill =
|
|
1690
|
+
const childFill = chunkRN3JVXVN_cjs.getGroupChildParentFill(element, parentGroupFill);
|
|
1689
1691
|
if (!childFill) {
|
|
1690
1692
|
return;
|
|
1691
1693
|
}
|
|
@@ -1698,8 +1700,8 @@ function paintInheritedFill(node, element, parentGroupFill) {
|
|
|
1698
1700
|
}
|
|
1699
1701
|
}
|
|
1700
1702
|
var renderGroupElement = (element, zIndex, context) => {
|
|
1701
|
-
const el =
|
|
1702
|
-
...
|
|
1703
|
+
const el = chunk4SZSTDER_cjs.createEl(context.document, "div", "pptxv-element pptxv-group", {
|
|
1704
|
+
...chunkRN3JVXVN_cjs.getContainerStyle(element, zIndex),
|
|
1703
1705
|
// A group paints no fill/outline of its own, but `p:grpSpPr/a:effectLst`
|
|
1704
1706
|
// DOES carry a shadow/glow/soft-edge for the group's own composite
|
|
1705
1707
|
// raster (see shared `getComputedEffectStyle`), expressed as `filter` /
|
|
@@ -1716,7 +1718,7 @@ var renderGroupElement = (element, zIndex, context) => {
|
|
|
1716
1718
|
el.appendChild(reflection);
|
|
1717
1719
|
}
|
|
1718
1720
|
if (element.type === "group" && element.children?.length) {
|
|
1719
|
-
const parentGroupFill =
|
|
1721
|
+
const parentGroupFill = chunkRN3JVXVN_cjs.getGroupChildParentFill(element);
|
|
1720
1722
|
element.children.forEach((child, index) => {
|
|
1721
1723
|
const childEl = context.renderElement(child, index);
|
|
1722
1724
|
if (childEl) {
|
|
@@ -1731,20 +1733,20 @@ var renderGroupElement = (element, zIndex, context) => {
|
|
|
1731
1733
|
// src/pptx/dom/elements/image.ts
|
|
1732
1734
|
var renderImageElement = (element, zIndex, context) => {
|
|
1733
1735
|
const doc = context.document;
|
|
1734
|
-
const geometry = element.type === "image" || element.type === "picture" ?
|
|
1736
|
+
const geometry = element.type === "image" || element.type === "picture" ? chunkRN3JVXVN_cjs.resolveShapeGeometry(element) : void 0;
|
|
1735
1737
|
const geometryClipPath = geometry?.kind === "clipPath" ? geometry.clipPath : void 0;
|
|
1736
|
-
const cropShapeClipPath = element.type === "image" || element.type === "picture" ?
|
|
1737
|
-
const layers =
|
|
1738
|
-
overflow:
|
|
1738
|
+
const cropShapeClipPath = element.type === "image" || element.type === "picture" ? chunkRN3JVXVN_cjs.getCropShapeClipPath(element.cropShape, element.width, element.height) : void 0;
|
|
1739
|
+
const layers = chunkRN3JVXVN_cjs.getPictureFrameLayers(element, {
|
|
1740
|
+
overflow: chunkRN3JVXVN_cjs.getImageOverflow(element),
|
|
1739
1741
|
borderRadius: geometry?.kind === "borderRadius" ? geometry.radius : void 0,
|
|
1740
1742
|
clipPath: geometryClipPath ?? cropShapeClipPath
|
|
1741
1743
|
});
|
|
1742
|
-
const el =
|
|
1743
|
-
...
|
|
1744
|
+
const el = chunk4SZSTDER_cjs.createEl(doc, "div", "pptxv-element pptxv-image", {
|
|
1745
|
+
...chunkRN3JVXVN_cjs.getContainerStyle(element, zIndex),
|
|
1744
1746
|
...layers.box
|
|
1745
1747
|
});
|
|
1746
1748
|
el.dataset.elementId = element.id;
|
|
1747
|
-
const surface = layers.surface ?
|
|
1749
|
+
const surface = layers.surface ? chunk4SZSTDER_cjs.createEl(doc, "div", "pptxv-image-surface", layers.surface) : el;
|
|
1748
1750
|
if (surface !== el) {
|
|
1749
1751
|
el.appendChild(surface);
|
|
1750
1752
|
const outline = renderStrokeOutline(doc, element);
|
|
@@ -1752,36 +1754,36 @@ var renderImageElement = (element, zIndex, context) => {
|
|
|
1752
1754
|
el.appendChild(outline);
|
|
1753
1755
|
}
|
|
1754
1756
|
}
|
|
1755
|
-
const src =
|
|
1757
|
+
const src = chunkRN3JVXVN_cjs.getImageSrc(element, new Map(context.mediaDataUrls));
|
|
1756
1758
|
if (!src) {
|
|
1757
1759
|
return el;
|
|
1758
1760
|
}
|
|
1759
|
-
const fx =
|
|
1761
|
+
const fx = chunkRN3JVXVN_cjs.getComputedImageStyle(element);
|
|
1760
1762
|
for (const f of fx.svgFilters) {
|
|
1761
|
-
const svg =
|
|
1763
|
+
const svg = chunk4SZSTDER_cjs.createSvgEl(doc, "svg", { width: 0, height: 0, "aria-hidden": "true" });
|
|
1762
1764
|
svg.setAttribute("style", "position:absolute;width:0;height:0;overflow:hidden");
|
|
1763
|
-
const defs =
|
|
1764
|
-
const filter =
|
|
1765
|
-
|
|
1765
|
+
const defs = chunk4SZSTDER_cjs.createSvgEl(doc, "defs");
|
|
1766
|
+
const filter = chunk4SZSTDER_cjs.createSvgEl(doc, "filter");
|
|
1767
|
+
chunk4SZSTDER_cjs.setSvgAttrs(filter, { id: f.id, "color-interpolation-filters": "sRGB" });
|
|
1766
1768
|
filter.innerHTML = f.markup;
|
|
1767
1769
|
defs.appendChild(filter);
|
|
1768
1770
|
svg.appendChild(defs);
|
|
1769
1771
|
surface.appendChild(svg);
|
|
1770
1772
|
}
|
|
1771
1773
|
const reflection = renderReflectionOverlay(doc, element, context.mediaDataUrls);
|
|
1772
|
-
const tiling =
|
|
1774
|
+
const tiling = chunkRN3JVXVN_cjs.getImageTilingStyle(element, chunkRN3JVXVN_cjs.getCachedNativeImageSize(src));
|
|
1773
1775
|
if (tiling) {
|
|
1774
|
-
const tile =
|
|
1776
|
+
const tile = chunk4SZSTDER_cjs.createEl(doc, "div", "pptxv-image-tile", tiling);
|
|
1775
1777
|
if (fx.filter) {
|
|
1776
1778
|
tile.style.filter = fx.filter;
|
|
1777
1779
|
}
|
|
1778
1780
|
if (fx.opacity !== void 0) {
|
|
1779
1781
|
tile.style.opacity = String(fx.opacity);
|
|
1780
1782
|
}
|
|
1781
|
-
if (!
|
|
1782
|
-
void
|
|
1783
|
+
if (!chunkRN3JVXVN_cjs.getCachedNativeImageSize(src)) {
|
|
1784
|
+
void chunkRN3JVXVN_cjs.probeNativeImageSize(src).then((size) => {
|
|
1783
1785
|
if (size) {
|
|
1784
|
-
|
|
1786
|
+
chunk4SZSTDER_cjs.applyStyleMap(tile, chunkRN3JVXVN_cjs.getImageTilingStyle(element, size) ?? {});
|
|
1785
1787
|
}
|
|
1786
1788
|
return void 0;
|
|
1787
1789
|
});
|
|
@@ -1792,9 +1794,9 @@ var renderImageElement = (element, zIndex, context) => {
|
|
|
1792
1794
|
}
|
|
1793
1795
|
return el;
|
|
1794
1796
|
}
|
|
1795
|
-
const fit =
|
|
1796
|
-
const fillCounterTransform =
|
|
1797
|
-
const img =
|
|
1797
|
+
const fit = chunkRN3JVXVN_cjs.getImageFitStyle(element);
|
|
1798
|
+
const fillCounterTransform = chunkRN3JVXVN_cjs.getImageFillCounterTransform(element, Boolean(fit.transform));
|
|
1799
|
+
const img = chunk4SZSTDER_cjs.createEl(doc, "img", void 0, {
|
|
1798
1800
|
...fit,
|
|
1799
1801
|
display: "block",
|
|
1800
1802
|
...fillCounterTransform ? { transform: fillCounterTransform, transformOrigin: "center" } : {}
|
|
@@ -1812,17 +1814,17 @@ var renderImageElement = (element, zIndex, context) => {
|
|
|
1812
1814
|
if (element.type === "image" || element.type === "picture") {
|
|
1813
1815
|
const clrChange = element.imageEffects?.clrChange;
|
|
1814
1816
|
if (clrChange) {
|
|
1815
|
-
void
|
|
1817
|
+
void chunkRN3JVXVN_cjs.resolveColorChangedImageSource(src, clrChange).then((resolved) => {
|
|
1816
1818
|
if (img.src === src || img.getAttribute("src") === src) {
|
|
1817
1819
|
img.src = resolved;
|
|
1818
1820
|
}
|
|
1819
1821
|
return void 0;
|
|
1820
1822
|
});
|
|
1821
1823
|
}
|
|
1822
|
-
const wash =
|
|
1824
|
+
const wash = chunkRN3JVXVN_cjs.getImageColorWashStyle(element.imageEffects?.colorWash);
|
|
1823
1825
|
if (wash) {
|
|
1824
1826
|
surface.appendChild(
|
|
1825
|
-
|
|
1827
|
+
chunk4SZSTDER_cjs.createEl(doc, "div", "pptxv-image-color-wash", {
|
|
1826
1828
|
position: "absolute",
|
|
1827
1829
|
inset: "0",
|
|
1828
1830
|
pointerEvents: "none",
|
|
@@ -1844,11 +1846,11 @@ var renderInkElement = (element, zIndex, context) => {
|
|
|
1844
1846
|
return null;
|
|
1845
1847
|
}
|
|
1846
1848
|
const doc = context.document;
|
|
1847
|
-
const wrapper =
|
|
1849
|
+
const wrapper = chunk4SZSTDER_cjs.createEl(
|
|
1848
1850
|
doc,
|
|
1849
1851
|
"div",
|
|
1850
1852
|
"pptxv-element pptxv-ink",
|
|
1851
|
-
|
|
1853
|
+
chunkRN3JVXVN_cjs.getContainerStyle(element, zIndex)
|
|
1852
1854
|
);
|
|
1853
1855
|
wrapper.dataset.elementId = element.id;
|
|
1854
1856
|
const paths = element.inkPaths;
|
|
@@ -1857,7 +1859,7 @@ var renderInkElement = (element, zIndex, context) => {
|
|
|
1857
1859
|
}
|
|
1858
1860
|
const w = Math.max(element.width, 1);
|
|
1859
1861
|
const h = Math.max(element.height, 1);
|
|
1860
|
-
const svg =
|
|
1862
|
+
const svg = chunk4SZSTDER_cjs.createSvgEl(doc, "svg", {
|
|
1861
1863
|
viewBox: `0 0 ${w} ${h}`,
|
|
1862
1864
|
preserveAspectRatio: "none"
|
|
1863
1865
|
});
|
|
@@ -1865,11 +1867,11 @@ var renderInkElement = (element, zIndex, context) => {
|
|
|
1865
1867
|
svg.setAttribute("style", "width:100%;height:100%;pointer-events:none;display:block");
|
|
1866
1868
|
const replayStyles = context.presenting ? chunkNTXHQHCS_cjs.getInkReplayStyles(element) : [];
|
|
1867
1869
|
if (context.presenting) {
|
|
1868
|
-
const keyframes =
|
|
1870
|
+
const keyframes = chunk4SZSTDER_cjs.createSvgEl(doc, "style");
|
|
1869
1871
|
keyframes.textContent = chunkNTXHQHCS_cjs.INK_REPLAY_KEYFRAMES;
|
|
1870
1872
|
svg.appendChild(keyframes);
|
|
1871
1873
|
}
|
|
1872
|
-
const views =
|
|
1874
|
+
const views = chunkRN3JVXVN_cjs.buildInkGroupStrokes(element, { color: chunkYZWKNFPU_cjs.DEFAULT_STROKE_COLOR, width: 1 });
|
|
1873
1875
|
for (const [i, view] of views.entries()) {
|
|
1874
1876
|
svg.appendChild(buildStrokeSvg(doc, view, replayStyles[i]));
|
|
1875
1877
|
}
|
|
@@ -1892,7 +1894,7 @@ function mediaFullscreenResetStyle(baseStyle) {
|
|
|
1892
1894
|
};
|
|
1893
1895
|
}
|
|
1894
1896
|
function buildFullscreenStopButton(doc, label, onStop) {
|
|
1895
|
-
const button =
|
|
1897
|
+
const button = chunk4SZSTDER_cjs.createEl(doc, "button", "pptxv-media-fullscreen-stop", {
|
|
1896
1898
|
position: "absolute",
|
|
1897
1899
|
bottom: "12px",
|
|
1898
1900
|
right: "12px",
|
|
@@ -1908,14 +1910,14 @@ function buildFullscreenStopButton(doc, label, onStop) {
|
|
|
1908
1910
|
button.type = "button";
|
|
1909
1911
|
button.setAttribute("aria-label", label);
|
|
1910
1912
|
button.addEventListener("click", onStop);
|
|
1911
|
-
const icon =
|
|
1913
|
+
const icon = chunk4SZSTDER_cjs.createSvgEl(doc, "svg", {
|
|
1912
1914
|
width: 18,
|
|
1913
1915
|
height: 18,
|
|
1914
1916
|
viewBox: "0 0 24 24",
|
|
1915
1917
|
fill: "currentColor",
|
|
1916
1918
|
stroke: "none"
|
|
1917
1919
|
});
|
|
1918
|
-
icon.appendChild(
|
|
1920
|
+
icon.appendChild(chunk4SZSTDER_cjs.createSvgEl(doc, "rect", { x: 6, y: 6, width: 12, height: 12, rx: 1 }));
|
|
1919
1921
|
button.appendChild(icon);
|
|
1920
1922
|
return button;
|
|
1921
1923
|
}
|
|
@@ -1923,12 +1925,12 @@ function wireMediaFullscreenOverlay(doc, container, mediaNode, element, context,
|
|
|
1923
1925
|
let stopButton = null;
|
|
1924
1926
|
const update = (playing) => {
|
|
1925
1927
|
const input = { fullScreen: element.fullScreen, presenting: context.presenting, playing };
|
|
1926
|
-
const active =
|
|
1927
|
-
|
|
1928
|
+
const active = chunkRN3JVXVN_cjs.isMediaFullscreenActive(input);
|
|
1929
|
+
chunk4SZSTDER_cjs.applyStyleMap(
|
|
1928
1930
|
container,
|
|
1929
|
-
active ?
|
|
1931
|
+
active ? chunkRN3JVXVN_cjs.MEDIA_FULLSCREEN_OVERLAY_STYLE : mediaFullscreenResetStyle(baseStyle)
|
|
1930
1932
|
);
|
|
1931
|
-
if (
|
|
1933
|
+
if (chunkRN3JVXVN_cjs.shouldShowMediaFullscreenStopButton(input)) {
|
|
1932
1934
|
if (!stopButton) {
|
|
1933
1935
|
stopButton = buildFullscreenStopButton(
|
|
1934
1936
|
doc,
|
|
@@ -1953,12 +1955,12 @@ function wireMediaFullscreenOverlay(doc, container, mediaNode, element, context,
|
|
|
1953
1955
|
|
|
1954
1956
|
// src/pptx/dom/elements/media.ts
|
|
1955
1957
|
function applyMediaPresentingState(el, presenting, playback) {
|
|
1956
|
-
|
|
1958
|
+
chunkRN3JVXVN_cjs.applyMediaPlaybackAttributes(el, playback);
|
|
1957
1959
|
if (presenting) {
|
|
1958
|
-
|
|
1959
|
-
|
|
1960
|
+
chunkRN3JVXVN_cjs.startMediaAutoplay(el, { trimStartMs: playback.trimStartMs });
|
|
1961
|
+
chunkRN3JVXVN_cjs.scheduleMediaTrimAndFade(el, {
|
|
1960
1962
|
...playback,
|
|
1961
|
-
volume:
|
|
1963
|
+
volume: chunkRN3JVXVN_cjs.mediaPlaybackAttributes(playback).volume
|
|
1962
1964
|
});
|
|
1963
1965
|
} else if (!el.paused) {
|
|
1964
1966
|
el.pause();
|
|
@@ -1968,20 +1970,20 @@ var renderMediaElement = (element, zIndex, context) => {
|
|
|
1968
1970
|
if (element.type !== "media") {
|
|
1969
1971
|
return null;
|
|
1970
1972
|
}
|
|
1971
|
-
const surface =
|
|
1973
|
+
const surface = chunkRN3JVXVN_cjs.mediaSurfaceOf({
|
|
1972
1974
|
interactive: context.interactive === true || context.reading === true,
|
|
1973
1975
|
presenting: context.presenting
|
|
1974
1976
|
});
|
|
1975
|
-
const showTransport =
|
|
1977
|
+
const showTransport = chunkRN3JVXVN_cjs.mediaTransportVisible({ ...surface, canvasTransport: true });
|
|
1976
1978
|
const doc = context.document;
|
|
1977
|
-
const baseStyle =
|
|
1978
|
-
const el =
|
|
1979
|
+
const baseStyle = chunkRN3JVXVN_cjs.getContainerStyle(element, zIndex);
|
|
1980
|
+
const el = chunk4SZSTDER_cjs.createEl(doc, "div", "pptxv-element pptxv-media", baseStyle);
|
|
1979
1981
|
el.dataset.elementId = element.id;
|
|
1980
1982
|
const mediaSrc = element.mediaData ?? (element.mediaPath ? context.mediaDataUrls.get(element.mediaPath) : void 0);
|
|
1981
|
-
const posterSrc =
|
|
1982
|
-
const onlineVideoEmbedUrl =
|
|
1983
|
+
const posterSrc = chunkRN3JVXVN_cjs.getImageSrc(element, new Map(context.mediaDataUrls));
|
|
1984
|
+
const onlineVideoEmbedUrl = chunkRN3JVXVN_cjs.getOnlineVideoEmbed(element)?.embedUrl;
|
|
1983
1985
|
if (onlineVideoEmbedUrl && element.mediaType === "video") {
|
|
1984
|
-
const iframe =
|
|
1986
|
+
const iframe = chunk4SZSTDER_cjs.createEl(doc, "iframe", "pptxv-media-video pptxv-media-iframe", {
|
|
1985
1987
|
width: "100%",
|
|
1986
1988
|
height: "100%",
|
|
1987
1989
|
border: "0",
|
|
@@ -1989,14 +1991,14 @@ var renderMediaElement = (element, zIndex, context) => {
|
|
|
1989
1991
|
});
|
|
1990
1992
|
iframe.src = onlineVideoEmbedUrl;
|
|
1991
1993
|
iframe.title = context.t("pptx.media.onlineVideoTitle");
|
|
1992
|
-
iframe.allow =
|
|
1993
|
-
iframe.sandbox.value =
|
|
1994
|
+
iframe.allow = chunkRN3JVXVN_cjs.ONLINE_VIDEO_IFRAME_ALLOW;
|
|
1995
|
+
iframe.sandbox.value = chunkRN3JVXVN_cjs.ONLINE_VIDEO_IFRAME_SANDBOX;
|
|
1994
1996
|
iframe.allowFullscreen = true;
|
|
1995
1997
|
el.appendChild(iframe);
|
|
1996
1998
|
return el;
|
|
1997
1999
|
}
|
|
1998
2000
|
if (mediaSrc && element.mediaType === "video") {
|
|
1999
|
-
const video =
|
|
2001
|
+
const video = chunk4SZSTDER_cjs.createEl(doc, "video", "pptxv-media-video", {
|
|
2000
2002
|
width: "100%",
|
|
2001
2003
|
height: "100%",
|
|
2002
2004
|
objectFit: "contain",
|
|
@@ -2015,27 +2017,27 @@ var renderMediaElement = (element, zIndex, context) => {
|
|
|
2015
2017
|
return el;
|
|
2016
2018
|
}
|
|
2017
2019
|
if (mediaSrc && element.mediaType === "audio") {
|
|
2018
|
-
const audio =
|
|
2020
|
+
const audio = chunk4SZSTDER_cjs.createEl(doc, "audio", "pptxv-media-audio", { width: "100%" });
|
|
2019
2021
|
audio.src = mediaSrc;
|
|
2020
2022
|
audio.controls = showTransport;
|
|
2021
2023
|
el.appendChild(audio);
|
|
2022
|
-
if (context.presenting &&
|
|
2024
|
+
if (context.presenting && chunkRN3JVXVN_cjs.registerCrossSlideAudio(element, mediaSrc)) {
|
|
2023
2025
|
audio.muted = true;
|
|
2024
|
-
|
|
2026
|
+
chunkRN3JVXVN_cjs.applyMediaPlaybackAttributes(audio, element);
|
|
2025
2027
|
return el;
|
|
2026
2028
|
}
|
|
2027
2029
|
applyMediaPresentingState(audio, context.presenting, element);
|
|
2028
2030
|
wireMediaFullscreenOverlay(doc, el, audio, element, context, baseStyle);
|
|
2029
2031
|
return el;
|
|
2030
2032
|
}
|
|
2031
|
-
const fallback =
|
|
2033
|
+
const fallback = chunkRN3JVXVN_cjs.mediaFallbackVisual(surface, {
|
|
2032
2034
|
hasPoster: Boolean(posterSrc),
|
|
2033
2035
|
missing: element.mediaMissing === true
|
|
2034
2036
|
});
|
|
2035
|
-
const icon =
|
|
2036
|
-
const labelKey =
|
|
2037
|
+
const icon = chunkRN3JVXVN_cjs.mediaFallbackIcon(fallback, element.mediaType);
|
|
2038
|
+
const labelKey = chunkRN3JVXVN_cjs.mediaFallbackLabelKey(fallback, element.mediaType);
|
|
2037
2039
|
if (fallback.poster && posterSrc) {
|
|
2038
|
-
const img =
|
|
2040
|
+
const img = chunk4SZSTDER_cjs.createEl(doc, "img", "pptxv-media-poster", {
|
|
2039
2041
|
width: "100%",
|
|
2040
2042
|
height: "100%",
|
|
2041
2043
|
objectFit: "contain",
|
|
@@ -2047,14 +2049,14 @@ var renderMediaElement = (element, zIndex, context) => {
|
|
|
2047
2049
|
img.setAttribute("draggable", "false");
|
|
2048
2050
|
el.appendChild(img);
|
|
2049
2051
|
if (fallback.badge !== "none") {
|
|
2050
|
-
const badge =
|
|
2052
|
+
const badge = chunk4SZSTDER_cjs.createEl(doc, "div", "pptxv-media-badge");
|
|
2051
2053
|
if (fallback.badge === "missing") {
|
|
2052
2054
|
badge.classList.add("pptxv-media-badge-missing");
|
|
2053
2055
|
}
|
|
2054
|
-
badge.setAttribute(
|
|
2056
|
+
badge.setAttribute(chunkRN3JVXVN_cjs.MEDIA_CHROME_ATTRIBUTE, fallback.badge);
|
|
2055
2057
|
badge.appendChild(buildIcon(doc, icon));
|
|
2056
2058
|
if (labelKey !== void 0 && fallback.badge === "missing") {
|
|
2057
|
-
const text =
|
|
2059
|
+
const text = chunk4SZSTDER_cjs.createEl(doc, "span");
|
|
2058
2060
|
text.textContent = context.t(labelKey);
|
|
2059
2061
|
badge.appendChild(text);
|
|
2060
2062
|
}
|
|
@@ -2064,12 +2066,12 @@ var renderMediaElement = (element, zIndex, context) => {
|
|
|
2064
2066
|
}
|
|
2065
2067
|
if (fallback.placeholder !== "none") {
|
|
2066
2068
|
el.classList.add("pptxv-placeholder", "pptxv-media-placeholder");
|
|
2067
|
-
el.setAttribute(
|
|
2069
|
+
el.setAttribute(chunkRN3JVXVN_cjs.MEDIA_CHROME_ATTRIBUTE, fallback.placeholder);
|
|
2068
2070
|
if (icon.length > 0) {
|
|
2069
2071
|
el.appendChild(buildIcon(doc, icon));
|
|
2070
2072
|
}
|
|
2071
2073
|
if (labelKey !== void 0) {
|
|
2072
|
-
const label =
|
|
2074
|
+
const label = chunk4SZSTDER_cjs.createEl(doc, "div", "pptxv-placeholder-label");
|
|
2073
2075
|
label.textContent = context.t(labelKey);
|
|
2074
2076
|
el.appendChild(label);
|
|
2075
2077
|
}
|
|
@@ -2096,11 +2098,11 @@ var renderModel3dElement = (element, zIndex, context) => {
|
|
|
2096
2098
|
return null;
|
|
2097
2099
|
}
|
|
2098
2100
|
const doc = context.document;
|
|
2099
|
-
const el =
|
|
2101
|
+
const el = chunk4SZSTDER_cjs.createEl(
|
|
2100
2102
|
doc,
|
|
2101
2103
|
"div",
|
|
2102
2104
|
"pptxv-element pptxv-model3d",
|
|
2103
|
-
|
|
2105
|
+
chunkRN3JVXVN_cjs.getContainerStyle(element, zIndex)
|
|
2104
2106
|
);
|
|
2105
2107
|
el.dataset.elementId = element.id;
|
|
2106
2108
|
const label = context.t("pptx.model3d.label");
|
|
@@ -2113,7 +2115,7 @@ var renderModel3dElement = (element, zIndex, context) => {
|
|
|
2113
2115
|
return el;
|
|
2114
2116
|
};
|
|
2115
2117
|
function buildPoster(doc, src, alt) {
|
|
2116
|
-
const img =
|
|
2118
|
+
const img = chunk4SZSTDER_cjs.createEl(doc, "img", "pptxv-model3d-poster", {
|
|
2117
2119
|
width: "100%",
|
|
2118
2120
|
height: "100%",
|
|
2119
2121
|
objectFit: "contain",
|
|
@@ -2127,7 +2129,7 @@ function buildPoster(doc, src, alt) {
|
|
|
2127
2129
|
return img;
|
|
2128
2130
|
}
|
|
2129
2131
|
function buildPlaceholder(doc, label) {
|
|
2130
|
-
const box =
|
|
2132
|
+
const box = chunk4SZSTDER_cjs.createEl(doc, "div", "pptxv-model3d-placeholder", {
|
|
2131
2133
|
width: "100%",
|
|
2132
2134
|
height: "100%",
|
|
2133
2135
|
display: "flex",
|
|
@@ -2141,7 +2143,7 @@ function buildPlaceholder(doc, label) {
|
|
|
2141
2143
|
borderRadius: "4px",
|
|
2142
2144
|
boxSizing: "border-box"
|
|
2143
2145
|
});
|
|
2144
|
-
const icon =
|
|
2146
|
+
const icon = chunk4SZSTDER_cjs.createSvgEl(doc, "svg", {
|
|
2145
2147
|
width: 24,
|
|
2146
2148
|
height: 24,
|
|
2147
2149
|
viewBox: "0 0 24 24",
|
|
@@ -2154,20 +2156,20 @@ function buildPlaceholder(doc, label) {
|
|
|
2154
2156
|
icon.setAttribute("class", "pptxv-model3d-icon");
|
|
2155
2157
|
icon.setAttribute("style", "margin-bottom:4px;color:#d1d5db");
|
|
2156
2158
|
icon.appendChild(
|
|
2157
|
-
|
|
2159
|
+
chunk4SZSTDER_cjs.createSvgEl(doc, "path", {
|
|
2158
2160
|
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"
|
|
2159
2161
|
})
|
|
2160
2162
|
);
|
|
2161
|
-
icon.appendChild(
|
|
2162
|
-
icon.appendChild(
|
|
2163
|
+
icon.appendChild(chunk4SZSTDER_cjs.createSvgEl(doc, "polyline", { points: "3.27 6.96 12 12.01 20.73 6.96" }));
|
|
2164
|
+
icon.appendChild(chunk4SZSTDER_cjs.createSvgEl(doc, "line", { x1: 12, y1: 22.08, x2: 12, y2: 12 }));
|
|
2163
2165
|
box.appendChild(icon);
|
|
2164
|
-
const text =
|
|
2166
|
+
const text = chunk4SZSTDER_cjs.createEl(doc, "span", "pptxv-model3d-label");
|
|
2165
2167
|
text.textContent = label;
|
|
2166
2168
|
box.appendChild(text);
|
|
2167
2169
|
return box;
|
|
2168
2170
|
}
|
|
2169
2171
|
function buildViewButton(doc, root, poster, element, context) {
|
|
2170
|
-
const button =
|
|
2172
|
+
const button = chunk4SZSTDER_cjs.createEl(doc, "button", "pptxv-model3d-view", {
|
|
2171
2173
|
position: "absolute",
|
|
2172
2174
|
bottom: "4px",
|
|
2173
2175
|
right: "4px",
|
|
@@ -2202,7 +2204,7 @@ function buildViewButton(doc, root, poster, element, context) {
|
|
|
2202
2204
|
button.remove();
|
|
2203
2205
|
return;
|
|
2204
2206
|
}
|
|
2205
|
-
const sceneHost =
|
|
2207
|
+
const sceneHost = chunk4SZSTDER_cjs.createEl(doc, "div", "pptxv-model3d-scene", {
|
|
2206
2208
|
position: "absolute",
|
|
2207
2209
|
inset: 0,
|
|
2208
2210
|
willChange: "transform"
|
|
@@ -2230,15 +2232,15 @@ function buildViewButton(doc, root, poster, element, context) {
|
|
|
2230
2232
|
|
|
2231
2233
|
// src/pptx/dom/elements/ole-icons.ts
|
|
2232
2234
|
function buildOleIcon(doc, type, color) {
|
|
2233
|
-
const svg =
|
|
2235
|
+
const svg = chunk4SZSTDER_cjs.createSvgEl(doc, "svg", {
|
|
2234
2236
|
width: 36,
|
|
2235
2237
|
height: 36,
|
|
2236
2238
|
viewBox: "0 0 24 24",
|
|
2237
2239
|
fill: "none",
|
|
2238
2240
|
"aria-hidden": "true"
|
|
2239
2241
|
});
|
|
2240
|
-
for (const shape of
|
|
2241
|
-
const node =
|
|
2242
|
+
for (const shape of chunkRN3JVXVN_cjs.getOleIconShapes(type)) {
|
|
2243
|
+
const node = chunk4SZSTDER_cjs.createSvgEl(doc, shape.tag, shape.attrs);
|
|
2242
2244
|
if (shape.tag === "text") {
|
|
2243
2245
|
node.setAttribute("fill", color);
|
|
2244
2246
|
node.textContent = shape.text ?? "";
|
|
@@ -2256,21 +2258,21 @@ var renderOleElement = (element, zIndex, context) => {
|
|
|
2256
2258
|
return null;
|
|
2257
2259
|
}
|
|
2258
2260
|
const doc = context.document;
|
|
2259
|
-
const oleType =
|
|
2260
|
-
const typeColor =
|
|
2261
|
-
const typeLabel =
|
|
2262
|
-
const el =
|
|
2261
|
+
const oleType = chunkRN3JVXVN_cjs.resolveOleType(element);
|
|
2262
|
+
const typeColor = chunkRN3JVXVN_cjs.getOleTypeColor(oleType);
|
|
2263
|
+
const typeLabel = chunkRN3JVXVN_cjs.getOleTypeLabel(oleType);
|
|
2264
|
+
const el = chunk4SZSTDER_cjs.createEl(doc, "div", "pptxv-element pptxv-ole", chunkRN3JVXVN_cjs.getContainerStyle(element, zIndex));
|
|
2263
2265
|
el.dataset.elementId = element.id;
|
|
2264
2266
|
el.setAttribute("role", "group");
|
|
2265
|
-
el.setAttribute("aria-label",
|
|
2267
|
+
el.setAttribute("aria-label", chunkRN3JVXVN_cjs.getOleAriaLabel(element));
|
|
2266
2268
|
el.title = infoLines(element, typeLabel).join("\n");
|
|
2267
2269
|
if (element.previewImageData) {
|
|
2268
|
-
el.appendChild(buildPreview(doc, element, typeColor,
|
|
2270
|
+
el.appendChild(buildPreview(doc, element, typeColor, chunkRN3JVXVN_cjs.getOleBadgeLabel(oleType)));
|
|
2269
2271
|
} else {
|
|
2270
2272
|
el.appendChild(buildPlaceholder2(doc, element, oleType, typeColor, typeLabel));
|
|
2271
2273
|
}
|
|
2272
|
-
const showActions =
|
|
2273
|
-
|
|
2274
|
+
const showActions = chunkRN3JVXVN_cjs.oleActionsVisible(
|
|
2275
|
+
chunkRN3JVXVN_cjs.mediaSurfaceOf({
|
|
2274
2276
|
interactive: context.interactive === true,
|
|
2275
2277
|
presenting: context.presenting
|
|
2276
2278
|
})
|
|
@@ -2286,7 +2288,7 @@ function infoLines(el, typeLabel) {
|
|
|
2286
2288
|
if (name) {
|
|
2287
2289
|
lines.push(name);
|
|
2288
2290
|
}
|
|
2289
|
-
const size =
|
|
2291
|
+
const size = chunkRN3JVXVN_cjs.formatBytes(el.oleEmbeddedByteSize);
|
|
2290
2292
|
if (size) {
|
|
2291
2293
|
lines.push(size);
|
|
2292
2294
|
}
|
|
@@ -2296,12 +2298,12 @@ function infoLines(el, typeLabel) {
|
|
|
2296
2298
|
return lines;
|
|
2297
2299
|
}
|
|
2298
2300
|
function buildPreview(doc, el, typeColor, badgeLabel) {
|
|
2299
|
-
const preview =
|
|
2301
|
+
const preview = chunk4SZSTDER_cjs.createEl(doc, "div", "pptxv-ole-preview", {
|
|
2300
2302
|
position: "relative",
|
|
2301
2303
|
width: "100%",
|
|
2302
2304
|
height: "100%"
|
|
2303
2305
|
});
|
|
2304
|
-
const img =
|
|
2306
|
+
const img = chunk4SZSTDER_cjs.createEl(doc, "img", "pptxv-ole-img", {
|
|
2305
2307
|
width: "100%",
|
|
2306
2308
|
height: "100%",
|
|
2307
2309
|
objectFit: "contain",
|
|
@@ -2310,19 +2312,19 @@ function buildPreview(doc, el, typeColor, badgeLabel) {
|
|
|
2310
2312
|
display: "block"
|
|
2311
2313
|
});
|
|
2312
2314
|
img.src = el.previewImageData ?? "";
|
|
2313
|
-
img.alt =
|
|
2315
|
+
img.alt = chunkRN3JVXVN_cjs.getOleAriaLabel(el);
|
|
2314
2316
|
img.draggable = false;
|
|
2315
2317
|
preview.appendChild(img);
|
|
2316
|
-
const badge =
|
|
2318
|
+
const badge = chunk4SZSTDER_cjs.createSvgEl(doc, "svg", { width: 24, height: 24, viewBox: "0 0 24 24" });
|
|
2317
2319
|
badge.setAttribute("class", "pptxv-ole-badge");
|
|
2318
2320
|
badge.setAttribute(
|
|
2319
2321
|
"style",
|
|
2320
2322
|
"position:absolute;bottom:4px;right:4px;z-index:10;pointer-events:none"
|
|
2321
2323
|
);
|
|
2322
2324
|
badge.appendChild(
|
|
2323
|
-
|
|
2325
|
+
chunk4SZSTDER_cjs.createSvgEl(doc, "rect", { x: 2, y: 2, width: 20, height: 20, rx: 3, fill: typeColor })
|
|
2324
2326
|
);
|
|
2325
|
-
const badgeText =
|
|
2327
|
+
const badgeText = chunk4SZSTDER_cjs.createSvgEl(doc, "text", {
|
|
2326
2328
|
x: 12,
|
|
2327
2329
|
y: 16,
|
|
2328
2330
|
"text-anchor": "middle",
|
|
@@ -2336,8 +2338,8 @@ function buildPreview(doc, el, typeColor, badgeLabel) {
|
|
|
2336
2338
|
return preview;
|
|
2337
2339
|
}
|
|
2338
2340
|
function buildPlaceholder2(doc, el, oleType, typeColor, typeLabel) {
|
|
2339
|
-
const box =
|
|
2340
|
-
...
|
|
2341
|
+
const box = chunk4SZSTDER_cjs.createEl(doc, "div", "pptxv-ole-placeholder", {
|
|
2342
|
+
...chunkRN3JVXVN_cjs.getPlaceholderStyle(oleType),
|
|
2341
2343
|
width: "100%",
|
|
2342
2344
|
height: "100%",
|
|
2343
2345
|
display: "flex",
|
|
@@ -2348,7 +2350,7 @@ function buildPlaceholder2(doc, el, oleType, typeColor, typeLabel) {
|
|
|
2348
2350
|
boxSizing: "border-box"
|
|
2349
2351
|
});
|
|
2350
2352
|
box.appendChild(buildOleIcon(doc, oleType, typeColor));
|
|
2351
|
-
const name =
|
|
2353
|
+
const name = chunk4SZSTDER_cjs.createEl(doc, "span", "pptxv-ole-name", {
|
|
2352
2354
|
marginTop: "8px",
|
|
2353
2355
|
fontSize: "12px",
|
|
2354
2356
|
fontWeight: 500,
|
|
@@ -2358,10 +2360,10 @@ function buildPlaceholder2(doc, el, oleType, typeColor, typeLabel) {
|
|
|
2358
2360
|
whiteSpace: "nowrap",
|
|
2359
2361
|
color: typeColor
|
|
2360
2362
|
});
|
|
2361
|
-
name.textContent =
|
|
2363
|
+
name.textContent = chunkRN3JVXVN_cjs.getOleDisplayName(el);
|
|
2362
2364
|
box.appendChild(name);
|
|
2363
2365
|
if (el.fileName) {
|
|
2364
|
-
const sublabel =
|
|
2366
|
+
const sublabel = chunk4SZSTDER_cjs.createEl(doc, "span", "pptxv-ole-sublabel", {
|
|
2365
2367
|
marginTop: "2px",
|
|
2366
2368
|
fontSize: "10px",
|
|
2367
2369
|
color: "rgba(0,0,0,0.45)",
|
|
@@ -2391,7 +2393,7 @@ var ACTION_STYLE = {
|
|
|
2391
2393
|
function buildActionBar(doc, el, typeLabel, context) {
|
|
2392
2394
|
const data = el.oleEmbeddedData ?? "";
|
|
2393
2395
|
const downloadName = el.oleEmbeddedFileName ?? el.fileName ?? typeLabel;
|
|
2394
|
-
const bar =
|
|
2396
|
+
const bar = chunk4SZSTDER_cjs.createEl(doc, "div", "pptxv-ole-actions", {
|
|
2395
2397
|
position: "absolute",
|
|
2396
2398
|
left: 0,
|
|
2397
2399
|
right: 0,
|
|
@@ -2410,9 +2412,9 @@ function buildActionBar(doc, el, typeLabel, context) {
|
|
|
2410
2412
|
for (const type of ["pointerdown", "mousedown", "click"]) {
|
|
2411
2413
|
bar.addEventListener(type, (event) => event.stopPropagation());
|
|
2412
2414
|
}
|
|
2413
|
-
const size =
|
|
2415
|
+
const size = chunkRN3JVXVN_cjs.formatBytes(el.oleEmbeddedByteSize);
|
|
2414
2416
|
if (size) {
|
|
2415
|
-
const meta =
|
|
2417
|
+
const meta = chunk4SZSTDER_cjs.createEl(doc, "span", "pptxv-ole-meta", {
|
|
2416
2418
|
marginRight: "auto",
|
|
2417
2419
|
color: "rgba(0,0,0,0.55)",
|
|
2418
2420
|
overflow: "hidden",
|
|
@@ -2422,7 +2424,7 @@ function buildActionBar(doc, el, typeLabel, context) {
|
|
|
2422
2424
|
meta.textContent = size;
|
|
2423
2425
|
bar.appendChild(meta);
|
|
2424
2426
|
}
|
|
2425
|
-
const download =
|
|
2427
|
+
const download = chunk4SZSTDER_cjs.createEl(doc, "a", "pptxv-ole-action", ACTION_STYLE);
|
|
2426
2428
|
download.href = data;
|
|
2427
2429
|
download.download = downloadName;
|
|
2428
2430
|
const downloadTitle = context.t("pptx.ole.downloadName", { name: downloadName });
|
|
@@ -2430,14 +2432,14 @@ function buildActionBar(doc, el, typeLabel, context) {
|
|
|
2430
2432
|
download.title = downloadTitle;
|
|
2431
2433
|
download.textContent = context.t("pptx.ole.download");
|
|
2432
2434
|
bar.appendChild(download);
|
|
2433
|
-
if (
|
|
2434
|
-
const open =
|
|
2435
|
+
if (chunkRN3JVXVN_cjs.isBrowserOpenableMime(el.oleEmbeddedMimeType)) {
|
|
2436
|
+
const open = chunk4SZSTDER_cjs.createEl(doc, "button", "pptxv-ole-action", ACTION_STYLE);
|
|
2435
2437
|
open.type = "button";
|
|
2436
2438
|
const openTitle = context.t("pptx.ole.openName", { name: downloadName });
|
|
2437
2439
|
open.setAttribute("aria-label", openTitle);
|
|
2438
2440
|
open.title = openTitle;
|
|
2439
2441
|
open.textContent = context.t("pptx.ole.open");
|
|
2440
|
-
open.addEventListener("click", () =>
|
|
2442
|
+
open.addEventListener("click", () => chunkRN3JVXVN_cjs.openUrlInNewTab(data));
|
|
2441
2443
|
bar.appendChild(open);
|
|
2442
2444
|
}
|
|
2443
2445
|
return bar;
|
|
@@ -2445,16 +2447,16 @@ function buildActionBar(doc, el, typeLabel, context) {
|
|
|
2445
2447
|
|
|
2446
2448
|
// src/pptx/dom/elements/placeholder.ts
|
|
2447
2449
|
var renderPlaceholderElement = (element, zIndex, context) => {
|
|
2448
|
-
const el =
|
|
2450
|
+
const el = chunk4SZSTDER_cjs.createEl(
|
|
2449
2451
|
context.document,
|
|
2450
2452
|
"div",
|
|
2451
2453
|
"pptxv-element pptxv-placeholder",
|
|
2452
|
-
|
|
2454
|
+
chunkRN3JVXVN_cjs.getContainerStyle(element, zIndex)
|
|
2453
2455
|
);
|
|
2454
2456
|
el.dataset.elementId = element.id;
|
|
2455
2457
|
el.dataset.elementType = element.type;
|
|
2456
|
-
const label =
|
|
2457
|
-
label.textContent =
|
|
2458
|
+
const label = chunk4SZSTDER_cjs.createEl(context.document, "div", "pptxv-placeholder-label");
|
|
2459
|
+
label.textContent = chunkWNDGU3GQ_cjs.keyToLabel(element.type);
|
|
2458
2460
|
el.appendChild(label);
|
|
2459
2461
|
return el;
|
|
2460
2462
|
};
|
|
@@ -2465,7 +2467,7 @@ var renderZoomElement = (element, zIndex, context) => {
|
|
|
2465
2467
|
return null;
|
|
2466
2468
|
}
|
|
2467
2469
|
const doc = context.document;
|
|
2468
|
-
const summaryView =
|
|
2470
|
+
const summaryView = chunkRN3JVXVN_cjs.buildSummaryZoomView(
|
|
2469
2471
|
element,
|
|
2470
2472
|
(index) => {
|
|
2471
2473
|
const slide = context.slides?.[index];
|
|
@@ -2481,19 +2483,19 @@ var renderZoomElement = (element, zIndex, context) => {
|
|
|
2481
2483
|
(key, params) => context.t(key, params)
|
|
2482
2484
|
);
|
|
2483
2485
|
if (summaryView) {
|
|
2484
|
-
const root =
|
|
2486
|
+
const root = chunk4SZSTDER_cjs.createEl(
|
|
2485
2487
|
doc,
|
|
2486
2488
|
"div",
|
|
2487
2489
|
"pptxv-element pptxv-zoom pptxv-summary-zoom",
|
|
2488
|
-
|
|
2490
|
+
chunkRN3JVXVN_cjs.getContainerStyle(element, zIndex)
|
|
2489
2491
|
);
|
|
2490
|
-
const content =
|
|
2492
|
+
const content = chunk4SZSTDER_cjs.createEl(doc, "div", "pptxv-summary-zoom-content", summaryView.containerStyle);
|
|
2491
2493
|
root.dataset.elementId = element.id;
|
|
2492
2494
|
root.dataset.zoomType = "summary";
|
|
2493
2495
|
root.setAttribute("role", "group");
|
|
2494
2496
|
root.setAttribute("aria-label", summaryView.ariaLabel);
|
|
2495
2497
|
for (const tile2 of summaryView.tiles) {
|
|
2496
|
-
const tileElement =
|
|
2498
|
+
const tileElement = chunk4SZSTDER_cjs.createEl(doc, "div", "pptxv-summary-zoom-tile", {
|
|
2497
2499
|
...tile2.style,
|
|
2498
2500
|
backgroundColor: tile2.backgroundColor,
|
|
2499
2501
|
overflow: "hidden",
|
|
@@ -2527,22 +2529,22 @@ var renderZoomElement = (element, zIndex, context) => {
|
|
|
2527
2529
|
});
|
|
2528
2530
|
}
|
|
2529
2531
|
if (tile2.imageSrc) {
|
|
2530
|
-
const image =
|
|
2532
|
+
const image = chunk4SZSTDER_cjs.createEl(doc, "img");
|
|
2531
2533
|
image.src = tile2.imageSrc;
|
|
2532
2534
|
image.alt = tile2.ariaLabel;
|
|
2533
2535
|
image.setAttribute("draggable", "false");
|
|
2534
2536
|
image.style.cssText = "width:100%;height:100%;object-fit:contain";
|
|
2535
2537
|
tileElement.appendChild(image);
|
|
2536
2538
|
} else {
|
|
2537
|
-
const label =
|
|
2539
|
+
const label = chunk4SZSTDER_cjs.createEl(doc, "div");
|
|
2538
2540
|
label.textContent = tile2.label;
|
|
2539
|
-
const slideLabel =
|
|
2541
|
+
const slideLabel = chunk4SZSTDER_cjs.createEl(doc, "div");
|
|
2540
2542
|
slideLabel.textContent = tile2.slideLabel;
|
|
2541
2543
|
tileElement.append(label, slideLabel);
|
|
2542
2544
|
}
|
|
2543
2545
|
content.appendChild(tileElement);
|
|
2544
2546
|
}
|
|
2545
|
-
const badge2 =
|
|
2547
|
+
const badge2 = chunk4SZSTDER_cjs.createEl(doc, "div", "pptxv-zoom-badge");
|
|
2546
2548
|
badge2.textContent = context.t("pptx.zoom.summaryZoom");
|
|
2547
2549
|
content.appendChild(badge2);
|
|
2548
2550
|
root.appendChild(content);
|
|
@@ -2552,7 +2554,7 @@ var renderZoomElement = (element, zIndex, context) => {
|
|
|
2552
2554
|
const target = element.targetSlideIndex ?? 0;
|
|
2553
2555
|
const targetSlide = context.slides?.[target];
|
|
2554
2556
|
const interactive = context.presenting && context.onZoomClick !== void 0;
|
|
2555
|
-
const el =
|
|
2557
|
+
const el = chunk4SZSTDER_cjs.createEl(doc, "div", "pptxv-element pptxv-zoom", chunkRN3JVXVN_cjs.getContainerStyle(element, zIndex));
|
|
2556
2558
|
el.dataset.elementId = element.id;
|
|
2557
2559
|
el.dataset.zoomType = zoomType;
|
|
2558
2560
|
el.dataset.zoomTarget = String(target);
|
|
@@ -2562,7 +2564,7 @@ var renderZoomElement = (element, zIndex, context) => {
|
|
|
2562
2564
|
el.tabIndex = 0;
|
|
2563
2565
|
el.style.cursor = "pointer";
|
|
2564
2566
|
const activate = () => {
|
|
2565
|
-
const zoomTarget =
|
|
2567
|
+
const zoomTarget = chunkRN3JVXVN_cjs.resolveZoomNavigationTarget(element);
|
|
2566
2568
|
if (zoomTarget) {
|
|
2567
2569
|
context.onZoomClick?.(zoomTarget, context.currentSlideIndex ?? 0);
|
|
2568
2570
|
}
|
|
@@ -2587,7 +2589,7 @@ var renderZoomElement = (element, zIndex, context) => {
|
|
|
2587
2589
|
section: element.targetSectionId
|
|
2588
2590
|
}) : context.t("pptx.zoom.ariaLabel", { number: target + 1 })
|
|
2589
2591
|
);
|
|
2590
|
-
const tile =
|
|
2592
|
+
const tile = chunk4SZSTDER_cjs.createEl(doc, "div", "pptxv-zoom-tile", {
|
|
2591
2593
|
position: "relative",
|
|
2592
2594
|
width: "100%",
|
|
2593
2595
|
height: "100%",
|
|
@@ -2596,7 +2598,7 @@ var renderZoomElement = (element, zIndex, context) => {
|
|
|
2596
2598
|
boxShadow: "0 2px 8px rgba(0, 0, 0, 0.15)"
|
|
2597
2599
|
});
|
|
2598
2600
|
if (element.imageData) {
|
|
2599
|
-
const img =
|
|
2601
|
+
const img = chunk4SZSTDER_cjs.createEl(doc, "img", "pptxv-zoom-img", {
|
|
2600
2602
|
width: "100%",
|
|
2601
2603
|
height: "100%",
|
|
2602
2604
|
objectFit: "contain",
|
|
@@ -2619,7 +2621,7 @@ var renderZoomElement = (element, zIndex, context) => {
|
|
|
2619
2621
|
)
|
|
2620
2622
|
);
|
|
2621
2623
|
}
|
|
2622
|
-
const badge =
|
|
2624
|
+
const badge = chunk4SZSTDER_cjs.createEl(doc, "div", "pptxv-zoom-badge", {
|
|
2623
2625
|
position: "absolute",
|
|
2624
2626
|
bottom: "4px",
|
|
2625
2627
|
right: "4px",
|
|
@@ -2637,7 +2639,7 @@ var renderZoomElement = (element, zIndex, context) => {
|
|
|
2637
2639
|
return el;
|
|
2638
2640
|
};
|
|
2639
2641
|
function buildThumbnail(doc, slideNumber, sectionText, backgroundColor, t) {
|
|
2640
|
-
const box =
|
|
2642
|
+
const box = chunk4SZSTDER_cjs.createEl(doc, "div", "pptxv-zoom-thumbnail", {
|
|
2641
2643
|
width: "100%",
|
|
2642
2644
|
height: "100%",
|
|
2643
2645
|
display: "flex",
|
|
@@ -2648,7 +2650,7 @@ function buildThumbnail(doc, slideNumber, sectionText, backgroundColor, t) {
|
|
|
2648
2650
|
border: "1px solid rgba(0, 0, 0, 0.1)",
|
|
2649
2651
|
boxSizing: "border-box"
|
|
2650
2652
|
});
|
|
2651
|
-
const slideLabel =
|
|
2653
|
+
const slideLabel = chunk4SZSTDER_cjs.createEl(doc, "div", "pptxv-zoom-slide-label", {
|
|
2652
2654
|
fontSize: "14px",
|
|
2653
2655
|
fontWeight: 600,
|
|
2654
2656
|
color: "rgba(0, 0, 0, 0.5)",
|
|
@@ -2657,7 +2659,7 @@ function buildThumbnail(doc, slideNumber, sectionText, backgroundColor, t) {
|
|
|
2657
2659
|
slideLabel.textContent = t("pptx.notes.slideN", { n: slideNumber });
|
|
2658
2660
|
box.appendChild(slideLabel);
|
|
2659
2661
|
if (sectionText) {
|
|
2660
|
-
const sectionLabel =
|
|
2662
|
+
const sectionLabel = chunk4SZSTDER_cjs.createEl(doc, "div", "pptxv-zoom-section-label", {
|
|
2661
2663
|
fontSize: "10px",
|
|
2662
2664
|
color: "rgba(0, 0, 0, 0.4)"
|
|
2663
2665
|
});
|
|
@@ -2676,7 +2678,7 @@ function registerExtraRenderers(registry) {
|
|
|
2676
2678
|
|
|
2677
2679
|
// src/pptx/dom/elements/register-rich-media.ts
|
|
2678
2680
|
function registerRichMediaRenderers(registry) {
|
|
2679
|
-
registry.register("smartArt",
|
|
2681
|
+
registry.register("smartArt", chunk4SZSTDER_cjs.renderSmartArtElement);
|
|
2680
2682
|
registry.register("media", renderMediaElement);
|
|
2681
2683
|
registry.register("ink", renderInkElement);
|
|
2682
2684
|
registry.register("ole", renderOleElement);
|
|
@@ -2712,10 +2714,10 @@ function enableTableResize(container, table, element, context) {
|
|
|
2712
2714
|
for (const handle of [...colHandles, ...rowHandles]) {
|
|
2713
2715
|
handle.remove();
|
|
2714
2716
|
}
|
|
2715
|
-
const crossings =
|
|
2717
|
+
const crossings = chunkRN3JVXVN_cjs.computeTableMergeCrossings(tableData.rows, tableData.columnWidths.length);
|
|
2716
2718
|
const rowBounds = measureRowBoundaries(table);
|
|
2717
|
-
colHandles =
|
|
2718
|
-
const handle =
|
|
2719
|
+
colHandles = chunkRN3JVXVN_cjs.computeColumnBoundaries(tableData.columnWidths).map((leftPct, i) => {
|
|
2720
|
+
const handle = chunk4SZSTDER_cjs.createEl(doc, "div", "pptxv-table-resize-col", {
|
|
2719
2721
|
position: "absolute",
|
|
2720
2722
|
top: "0",
|
|
2721
2723
|
bottom: "0",
|
|
@@ -2724,14 +2726,14 @@ function enableTableResize(container, table, element, context) {
|
|
|
2724
2726
|
zIndex: "10",
|
|
2725
2727
|
pointerEvents: "none"
|
|
2726
2728
|
});
|
|
2727
|
-
const segments =
|
|
2729
|
+
const segments = chunkRN3JVXVN_cjs.columnHandleSegments(
|
|
2728
2730
|
crossings.columns[i] ?? [],
|
|
2729
2731
|
rowBounds,
|
|
2730
2732
|
table.offsetHeight
|
|
2731
2733
|
);
|
|
2732
2734
|
for (const { top, height } of segments) {
|
|
2733
2735
|
handle.appendChild(
|
|
2734
|
-
|
|
2736
|
+
chunk4SZSTDER_cjs.createEl(doc, "div", "pptxv-table-resize-segment", {
|
|
2735
2737
|
position: "absolute",
|
|
2736
2738
|
left: "0",
|
|
2737
2739
|
right: "0",
|
|
@@ -2745,7 +2747,7 @@ function enableTableResize(container, table, element, context) {
|
|
|
2745
2747
|
return handle;
|
|
2746
2748
|
});
|
|
2747
2749
|
rowHandles = rowBounds.map((topPx, i) => {
|
|
2748
|
-
const handle =
|
|
2750
|
+
const handle = chunk4SZSTDER_cjs.createEl(doc, "div", "pptxv-table-resize-row", {
|
|
2749
2751
|
position: "absolute",
|
|
2750
2752
|
left: "0",
|
|
2751
2753
|
right: "0",
|
|
@@ -2754,10 +2756,10 @@ function enableTableResize(container, table, element, context) {
|
|
|
2754
2756
|
zIndex: "10",
|
|
2755
2757
|
pointerEvents: "none"
|
|
2756
2758
|
});
|
|
2757
|
-
const segments =
|
|
2759
|
+
const segments = chunkRN3JVXVN_cjs.rowHandleSegments(crossings.rows[i] ?? [], tableData.columnWidths);
|
|
2758
2760
|
for (const { leftPct, widthPct } of segments) {
|
|
2759
2761
|
handle.appendChild(
|
|
2760
|
-
|
|
2762
|
+
chunk4SZSTDER_cjs.createEl(doc, "div", "pptxv-table-resize-segment", {
|
|
2761
2763
|
position: "absolute",
|
|
2762
2764
|
top: "0",
|
|
2763
2765
|
bottom: "0",
|
|
@@ -2798,14 +2800,14 @@ function enableTableResize(container, table, element, context) {
|
|
|
2798
2800
|
const deltaProp = (event.clientX - active.startPos) / (rect.width || 1);
|
|
2799
2801
|
context.onTableResizeColumns?.(
|
|
2800
2802
|
element,
|
|
2801
|
-
|
|
2803
|
+
chunkRN3JVXVN_cjs.computeResizedColumnWidths(active.initialWidths, active.index, deltaProp)
|
|
2802
2804
|
);
|
|
2803
2805
|
} else if (event.clientY !== active.startPos && active.type === "row") {
|
|
2804
2806
|
const deltaY = event.clientY - active.startPos;
|
|
2805
2807
|
context.onTableResizeRow?.(
|
|
2806
2808
|
element,
|
|
2807
2809
|
active.index,
|
|
2808
|
-
|
|
2810
|
+
chunkRN3JVXVN_cjs.computeResizedRowHeight(active.initialRowHeight ?? chunkRN3JVXVN_cjs.DEFAULT_ROW_HEIGHT, deltaY)
|
|
2809
2811
|
);
|
|
2810
2812
|
}
|
|
2811
2813
|
drawHandles();
|
|
@@ -2814,13 +2816,13 @@ function enableTableResize(container, table, element, context) {
|
|
|
2814
2816
|
const rect = container.getBoundingClientRect();
|
|
2815
2817
|
const localX = event.clientX - rect.left;
|
|
2816
2818
|
const localY = event.clientY - rect.top;
|
|
2817
|
-
const scaleY =
|
|
2818
|
-
const crossings =
|
|
2819
|
+
const scaleY = chunkRN3JVXVN_cjs.getTableResizeScale(rect.height, container.offsetHeight);
|
|
2820
|
+
const crossings = chunkRN3JVXVN_cjs.computeTableMergeCrossings(tableData.rows, tableData.columnWidths.length);
|
|
2819
2821
|
const rowBounds = measureRowBoundaries(table);
|
|
2820
|
-
const colBoundaries =
|
|
2822
|
+
const colBoundaries = chunkRN3JVXVN_cjs.computeColumnBoundaries(tableData.columnWidths);
|
|
2821
2823
|
for (let i = 0; i < colBoundaries.length; i++) {
|
|
2822
2824
|
const boundaryX = colBoundaries[i] / 100 * rect.width;
|
|
2823
|
-
if (Math.abs(localX - boundaryX) <= HANDLE_ZONE && !
|
|
2825
|
+
if (Math.abs(localX - boundaryX) <= HANDLE_ZONE && !chunkRN3JVXVN_cjs.isColumnBoundaryMergedAt(crossings, i, rowBounds, localY / scaleY)) {
|
|
2824
2826
|
event.preventDefault();
|
|
2825
2827
|
event.stopPropagation();
|
|
2826
2828
|
doc.body.style.cursor = "col-resize";
|
|
@@ -2838,7 +2840,7 @@ function enableTableResize(container, table, element, context) {
|
|
|
2838
2840
|
}
|
|
2839
2841
|
}
|
|
2840
2842
|
for (let i = 0; i < rowBounds.length; i++) {
|
|
2841
|
-
if (Math.abs(localY - rowBounds[i] * scaleY) <= HANDLE_ZONE && !
|
|
2843
|
+
if (Math.abs(localY - rowBounds[i] * scaleY) <= HANDLE_ZONE && !chunkRN3JVXVN_cjs.isRowBoundaryMergedAt(crossings, i, tableData.columnWidths, localX / (rect.width || 1))) {
|
|
2842
2844
|
event.preventDefault();
|
|
2843
2845
|
event.stopPropagation();
|
|
2844
2846
|
const tr = table.querySelectorAll("tbody > tr")[i];
|
|
@@ -2849,7 +2851,7 @@ function enableTableResize(container, table, element, context) {
|
|
|
2849
2851
|
index: i,
|
|
2850
2852
|
startPos: event.clientY,
|
|
2851
2853
|
handleEl: rowHandles[i] ?? container,
|
|
2852
|
-
initialRowHeight: tr?.offsetHeight ??
|
|
2854
|
+
initialRowHeight: tr?.offsetHeight ?? chunkRN3JVXVN_cjs.DEFAULT_ROW_HEIGHT
|
|
2853
2855
|
};
|
|
2854
2856
|
win.addEventListener("mousemove", onMouseMove);
|
|
2855
2857
|
win.addEventListener("mouseup", onMouseUp);
|
|
@@ -2869,21 +2871,21 @@ var renderTableElement = (element, zIndex, context) => {
|
|
|
2869
2871
|
return null;
|
|
2870
2872
|
}
|
|
2871
2873
|
const doc = context.document;
|
|
2872
|
-
const container =
|
|
2873
|
-
...
|
|
2874
|
+
const container = chunk4SZSTDER_cjs.createEl(doc, "div", "pptxv-element pptxv-table", {
|
|
2875
|
+
...chunkRN3JVXVN_cjs.getContainerStyle(element, zIndex),
|
|
2874
2876
|
overflow: "hidden"
|
|
2875
2877
|
});
|
|
2876
2878
|
container.dataset.elementId = element.id;
|
|
2877
|
-
const table =
|
|
2879
|
+
const table = chunk4SZSTDER_cjs.createEl(doc, "table", "pptxv-table-grid", {
|
|
2878
2880
|
width: "100%",
|
|
2879
2881
|
height: "100%",
|
|
2880
2882
|
borderCollapse: "collapse",
|
|
2881
2883
|
tableLayout: "fixed",
|
|
2882
2884
|
// Load-bearing: an unstyled cell otherwise inherits the HOST chrome's
|
|
2883
2885
|
// font stack; all five bindings declare the same shared default here.
|
|
2884
|
-
fontFamily:
|
|
2886
|
+
fontFamily: chunkYZWKNFPU_cjs.DEFAULT_FONT_FAMILY,
|
|
2885
2887
|
// `a:tblPr@rtl`: mirrors the column order for right-to-left decks.
|
|
2886
|
-
...
|
|
2888
|
+
...chunkRN3JVXVN_cjs.tableContainerCss(tableData)
|
|
2887
2889
|
});
|
|
2888
2890
|
appendColgroup(doc, table, tableData.columnWidths);
|
|
2889
2891
|
const tbody = doc.createElement("tbody");
|
|
@@ -2945,13 +2947,13 @@ function renderCell(doc, tableData, cell, rowIndex, cellIndex, rowCount, columnC
|
|
|
2945
2947
|
if (cell.rowSpan && cell.rowSpan > 1) {
|
|
2946
2948
|
td.rowSpan = cell.rowSpan;
|
|
2947
2949
|
}
|
|
2948
|
-
const style =
|
|
2950
|
+
const style = chunkRN3JVXVN_cjs.tableCellCss(
|
|
2949
2951
|
tableData,
|
|
2950
2952
|
cell,
|
|
2951
2953
|
{ rowIndex, cellIndex, rowCount, columnCount },
|
|
2952
2954
|
styleContext
|
|
2953
2955
|
);
|
|
2954
|
-
const patternFill = cell.style ?
|
|
2956
|
+
const patternFill = cell.style ? chunkRN3JVXVN_cjs.cellPatternFillCss(cell.style) : null;
|
|
2955
2957
|
if (patternFill) {
|
|
2956
2958
|
delete style["backgroundColor"];
|
|
2957
2959
|
delete style["background"];
|
|
@@ -2962,9 +2964,9 @@ function renderCell(doc, tableData, cell, rowIndex, cellIndex, rowCount, columnC
|
|
|
2962
2964
|
style["backgroundColor"] = patternFill.backgroundColor;
|
|
2963
2965
|
}
|
|
2964
2966
|
}
|
|
2965
|
-
|
|
2966
|
-
|
|
2967
|
-
const diagonals =
|
|
2967
|
+
chunk4SZSTDER_cjs.applyStyleMap(td, CELL_BASE_STYLE);
|
|
2968
|
+
chunk4SZSTDER_cjs.applyStyleMap(td, style);
|
|
2969
|
+
const diagonals = chunkRN3JVXVN_cjs.getCellDiagonalBorders(
|
|
2968
2970
|
cell.style,
|
|
2969
2971
|
tableData,
|
|
2970
2972
|
{ rowIndex, cellIndex, rowCount, columnCount },
|
|
@@ -2977,17 +2979,17 @@ function renderCell(doc, tableData, cell, rowIndex, cellIndex, rowCount, columnC
|
|
|
2977
2979
|
return td;
|
|
2978
2980
|
}
|
|
2979
2981
|
function diagonalLine(doc, x1, y1, x2, y2, stroke, width) {
|
|
2980
|
-
const line =
|
|
2981
|
-
line.style.setProperty("stroke-width",
|
|
2982
|
+
const line = chunk4SZSTDER_cjs.createSvgEl(doc, "line", { x1, y1, x2, y2, stroke, "stroke-width": width });
|
|
2983
|
+
line.style.setProperty("stroke-width", chunk7XXOLM7H_cjs.screenStrokeWidth(width));
|
|
2982
2984
|
return line;
|
|
2983
2985
|
}
|
|
2984
2986
|
function renderDiagonalOverlay(doc, diagonals) {
|
|
2985
|
-
const svg =
|
|
2987
|
+
const svg = chunk4SZSTDER_cjs.createSvgEl(doc, "svg", {
|
|
2986
2988
|
class: "pptxv-table-diag",
|
|
2987
2989
|
"aria-hidden": "true",
|
|
2988
2990
|
preserveAspectRatio: "none"
|
|
2989
2991
|
});
|
|
2990
|
-
|
|
2992
|
+
chunk4SZSTDER_cjs.applyStyleMap(svg, {
|
|
2991
2993
|
position: "absolute",
|
|
2992
2994
|
inset: 0,
|
|
2993
2995
|
width: "100%",
|
|
@@ -3008,10 +3010,10 @@ function renderDiagonalOverlay(doc, diagonals) {
|
|
|
3008
3010
|
return svg;
|
|
3009
3011
|
}
|
|
3010
3012
|
function appendCellText(doc, td, cell, cellCss) {
|
|
3011
|
-
const blocks =
|
|
3013
|
+
const blocks = chunkRN3JVXVN_cjs.cellParagraphBlocks(cell);
|
|
3012
3014
|
if (blocks) {
|
|
3013
3015
|
for (const block of blocks) {
|
|
3014
|
-
const div =
|
|
3016
|
+
const div = chunk4SZSTDER_cjs.createEl(doc, "div", "pptxv-table-para", { display: "block", ...block.css });
|
|
3015
3017
|
appendRuns(doc, div, block.runs, cellCss);
|
|
3016
3018
|
td.appendChild(div);
|
|
3017
3019
|
}
|
|
@@ -3020,7 +3022,7 @@ function appendCellText(doc, td, cell, cellCss) {
|
|
|
3020
3022
|
const richCell = cell;
|
|
3021
3023
|
const textRuns = richCell.textRuns && richCell.textRuns.length > 0 ? richCell.textRuns : null;
|
|
3022
3024
|
if (!textRuns) {
|
|
3023
|
-
const span =
|
|
3025
|
+
const span = chunk4SZSTDER_cjs.createEl(doc, "span", "pptxv-table-text", { position: "relative" });
|
|
3024
3026
|
span.textContent = cell.text || " ";
|
|
3025
3027
|
td.appendChild(span);
|
|
3026
3028
|
return;
|
|
@@ -3028,7 +3030,7 @@ function appendCellText(doc, td, cell, cellCss) {
|
|
|
3028
3030
|
for (const run of textRuns) {
|
|
3029
3031
|
if (run.isParagraphBreak) {
|
|
3030
3032
|
td.appendChild(
|
|
3031
|
-
|
|
3033
|
+
chunk4SZSTDER_cjs.createEl(doc, "div", "pptxv-table-para-break", { display: "block", height: 0 })
|
|
3032
3034
|
);
|
|
3033
3035
|
continue;
|
|
3034
3036
|
}
|
|
@@ -3041,9 +3043,9 @@ function appendRuns(doc, parent, runs, cellCss) {
|
|
|
3041
3043
|
parent.appendChild(doc.createElement("br"));
|
|
3042
3044
|
continue;
|
|
3043
3045
|
}
|
|
3044
|
-
const span =
|
|
3046
|
+
const span = chunk4SZSTDER_cjs.createEl(doc, "span", "pptxv-table-run", {
|
|
3045
3047
|
position: "relative",
|
|
3046
|
-
...
|
|
3048
|
+
...chunkRN3JVXVN_cjs.cellRunStyle(run, cellCss)
|
|
3047
3049
|
});
|
|
3048
3050
|
span.textContent = run.text;
|
|
3049
3051
|
parent.appendChild(span);
|
|
@@ -3057,8 +3059,8 @@ function registerTableChartRenderers(registry) {
|
|
|
3057
3059
|
}
|
|
3058
3060
|
|
|
3059
3061
|
// src/pptx/dom/glyph-outline-cache.ts
|
|
3060
|
-
var glyphOutlineFontCache = new
|
|
3061
|
-
var getGlyphOutline =
|
|
3062
|
+
var glyphOutlineFontCache = new chunkRN3JVXVN_cjs.GlyphOutlineFontCache();
|
|
3063
|
+
var getGlyphOutline = chunkRN3JVXVN_cjs.createGlyphOutlineLookup(glyphOutlineFontCache);
|
|
3062
3064
|
|
|
3063
3065
|
// src/pptx/dom/elements/text-warp.ts
|
|
3064
3066
|
function renderWarpedText(element, context) {
|
|
@@ -3070,16 +3072,16 @@ function renderWarpedText(element, context) {
|
|
|
3070
3072
|
if (!preset || preset === "textNoShape") {
|
|
3071
3073
|
return null;
|
|
3072
3074
|
}
|
|
3073
|
-
const paragraphs =
|
|
3075
|
+
const paragraphs = chunkRN3JVXVN_cjs.groupIntoParagraphs(element);
|
|
3074
3076
|
if (paragraphs.length === 0) {
|
|
3075
3077
|
return null;
|
|
3076
3078
|
}
|
|
3077
|
-
if (!
|
|
3078
|
-
const transform =
|
|
3079
|
+
if (!chunkRN3JVXVN_cjs.shouldUseSvgWarp(preset)) {
|
|
3080
|
+
const transform = chunkRN3JVXVN_cjs.getWarpCssTransform(preset, style?.textWarpAdj, style?.textWarpAdj2);
|
|
3079
3081
|
if (!transform) {
|
|
3080
3082
|
return null;
|
|
3081
3083
|
}
|
|
3082
|
-
const text =
|
|
3084
|
+
const text = chunk4SZSTDER_cjs.createEl(context.document, "div", "pptxv-wordart", {
|
|
3083
3085
|
width: "100%",
|
|
3084
3086
|
height: "100%",
|
|
3085
3087
|
display: "flex",
|
|
@@ -3097,14 +3099,14 @@ function renderWarpedText(element, context) {
|
|
|
3097
3099
|
if (style?.fontSize) {
|
|
3098
3100
|
text.style.fontSize = `${style.fontSize}px`;
|
|
3099
3101
|
}
|
|
3100
|
-
const fontWeight =
|
|
3102
|
+
const fontWeight = chunkRN3JVXVN_cjs.fontWeightAttribute(style?.fontFamily, style?.bold);
|
|
3101
3103
|
if (fontWeight) {
|
|
3102
3104
|
text.style.fontWeight = fontWeight;
|
|
3103
3105
|
}
|
|
3104
3106
|
text.textContent = paragraphs.map((p) => p.segments.map((s) => s.text).join("")).join("\n");
|
|
3105
3107
|
return text;
|
|
3106
3108
|
}
|
|
3107
|
-
if (
|
|
3109
|
+
if (chunkRN3JVXVN_cjs.hasGlyphEnvelope(preset)) {
|
|
3108
3110
|
return renderGlyphWarp(element, paragraphs, context);
|
|
3109
3111
|
}
|
|
3110
3112
|
return renderPathWarp(element, paragraphs, context);
|
|
@@ -3113,7 +3115,7 @@ function segmentFont(segment, elementStyle) {
|
|
|
3113
3115
|
const s = segment.style ?? {};
|
|
3114
3116
|
const family = s.fontFamily || elementStyle.fontFamily;
|
|
3115
3117
|
return {
|
|
3116
|
-
fontFamily: family ? pptx.getSubstituteFontFamily(family) :
|
|
3118
|
+
fontFamily: family ? pptx.getSubstituteFontFamily(family) : chunkYZWKNFPU_cjs.DEFAULT_FONT_FAMILY,
|
|
3117
3119
|
fontSizePx: s.fontSize ?? elementStyle.fontSize ?? 18,
|
|
3118
3120
|
bold: s.bold ?? elementStyle.bold,
|
|
3119
3121
|
italic: s.italic ?? elementStyle.italic
|
|
@@ -3124,13 +3126,13 @@ function renderGlyphWarp(element, paragraphs, context) {
|
|
|
3124
3126
|
const preset = style.textWarpPreset;
|
|
3125
3127
|
const width = Math.max(element.width, 1);
|
|
3126
3128
|
const height = Math.max(element.height, 1);
|
|
3127
|
-
const svg =
|
|
3129
|
+
const svg = chunk4SZSTDER_cjs.createSvgEl(context.document, "svg", {
|
|
3128
3130
|
viewBox: `0 0 ${width} ${height}`,
|
|
3129
3131
|
"aria-hidden": "true"
|
|
3130
3132
|
});
|
|
3131
3133
|
svg.setAttribute("class", "pptxv-wordart");
|
|
3132
3134
|
svg.setAttribute("style", "position:absolute;inset:0;width:100%;height:100%;overflow:visible");
|
|
3133
|
-
const perLine =
|
|
3135
|
+
const perLine = chunkRN3JVXVN_cjs.buildGlyphEnvelopeBlock(
|
|
3134
3136
|
preset,
|
|
3135
3137
|
paragraphs.map(
|
|
3136
3138
|
(paragraph) => paragraph.segments.map((seg, i) => ({
|
|
@@ -3156,18 +3158,18 @@ function renderGlyphWarp(element, paragraphs, context) {
|
|
|
3156
3158
|
const renderedFamily = s.fontFamily || style.fontFamily;
|
|
3157
3159
|
const textAttrs = {
|
|
3158
3160
|
fill,
|
|
3159
|
-
"font-family": renderedFamily ? pptx.getSubstituteFontFamily(renderedFamily) :
|
|
3161
|
+
"font-family": renderedFamily ? pptx.getSubstituteFontFamily(renderedFamily) : chunkYZWKNFPU_cjs.DEFAULT_FONT_FAMILY,
|
|
3160
3162
|
"font-size": s.fontSize ?? style.fontSize ?? 18,
|
|
3161
|
-
"font-weight":
|
|
3162
|
-
"font-style":
|
|
3163
|
+
"font-weight": chunkRN3JVXVN_cjs.fontWeightAttribute(renderedFamily, s.bold ?? style.bold),
|
|
3164
|
+
"font-style": chunkRN3JVXVN_cjs.resolveFontItalic(renderedFamily, s.italic ?? style.italic) ? "italic" : void 0
|
|
3163
3165
|
};
|
|
3164
3166
|
if (g.outlinePath) {
|
|
3165
|
-
const path =
|
|
3167
|
+
const path = chunk4SZSTDER_cjs.createSvgEl(context.document, "path", { d: g.outlinePath, fill });
|
|
3166
3168
|
svg.appendChild(path);
|
|
3167
3169
|
return;
|
|
3168
3170
|
}
|
|
3169
3171
|
if (!g.slices || g.slices.length <= 1) {
|
|
3170
|
-
const text =
|
|
3172
|
+
const text = chunk4SZSTDER_cjs.createSvgEl(context.document, "text", {
|
|
3171
3173
|
x: g.x,
|
|
3172
3174
|
y: g.y,
|
|
3173
3175
|
transform: g.transform,
|
|
@@ -3177,17 +3179,17 @@ function renderGlyphWarp(element, paragraphs, context) {
|
|
|
3177
3179
|
svg.appendChild(text);
|
|
3178
3180
|
return;
|
|
3179
3181
|
}
|
|
3180
|
-
const group =
|
|
3182
|
+
const group = chunk4SZSTDER_cjs.createSvgEl(context.document, "g", {
|
|
3181
3183
|
"data-glyph-slices": g.slices.length
|
|
3182
3184
|
});
|
|
3183
3185
|
g.slices.forEach((slice, sliceIndex) => {
|
|
3184
3186
|
const clipId = `${element.id.replace(/[^a-zA-Z0-9_-]/gu, "_")}-warp-l${lineIndex}-g${glyphIndex}-s${sliceIndex}`;
|
|
3185
|
-
const clipPath =
|
|
3187
|
+
const clipPath = chunk4SZSTDER_cjs.createSvgEl(context.document, "clipPath", {
|
|
3186
3188
|
id: clipId,
|
|
3187
3189
|
clipPathUnits: "userSpaceOnUse"
|
|
3188
3190
|
});
|
|
3189
3191
|
clipPath.appendChild(
|
|
3190
|
-
|
|
3192
|
+
chunk4SZSTDER_cjs.createSvgEl(context.document, "rect", {
|
|
3191
3193
|
x: slice.clipX0,
|
|
3192
3194
|
y: -1e5,
|
|
3193
3195
|
width: slice.clipX1 - slice.clipX0,
|
|
@@ -3195,7 +3197,7 @@ function renderGlyphWarp(element, paragraphs, context) {
|
|
|
3195
3197
|
})
|
|
3196
3198
|
);
|
|
3197
3199
|
group.appendChild(clipPath);
|
|
3198
|
-
const text =
|
|
3200
|
+
const text = chunk4SZSTDER_cjs.createSvgEl(context.document, "text", {
|
|
3199
3201
|
x: g.x,
|
|
3200
3202
|
y: g.y,
|
|
3201
3203
|
transform: slice.transform,
|
|
@@ -3213,20 +3215,20 @@ function renderGlyphWarp(element, paragraphs, context) {
|
|
|
3213
3215
|
function renderPathWarp(element, paragraphs, context) {
|
|
3214
3216
|
const style = element.textStyle;
|
|
3215
3217
|
const preset = style.textWarpPreset;
|
|
3216
|
-
const svg =
|
|
3218
|
+
const svg = chunk4SZSTDER_cjs.createSvgEl(context.document, "svg", {
|
|
3217
3219
|
viewBox: `0 0 ${Math.max(element.width, 1)} ${Math.max(element.height, 1)}`,
|
|
3218
3220
|
preserveAspectRatio: "none",
|
|
3219
3221
|
"aria-hidden": "true"
|
|
3220
3222
|
});
|
|
3221
3223
|
svg.setAttribute("class", "pptxv-wordart");
|
|
3222
3224
|
svg.setAttribute("style", "position:absolute;inset:0;width:100%;height:100%;overflow:visible");
|
|
3223
|
-
const defs =
|
|
3225
|
+
const defs = chunk4SZSTDER_cjs.createSvgEl(context.document, "defs");
|
|
3224
3226
|
paragraphs.forEach((paragraph, index) => {
|
|
3225
3227
|
const id = `${element.id.replace(/[^a-zA-Z0-9_-]/gu, "_")}-warp-${index}`;
|
|
3226
3228
|
defs.appendChild(
|
|
3227
|
-
|
|
3229
|
+
chunk4SZSTDER_cjs.createSvgEl(context.document, "path", {
|
|
3228
3230
|
id,
|
|
3229
|
-
d:
|
|
3231
|
+
d: chunkRN3JVXVN_cjs.buildWarpPath(
|
|
3230
3232
|
preset,
|
|
3231
3233
|
element.width,
|
|
3232
3234
|
element.height,
|
|
@@ -3237,14 +3239,14 @@ function renderPathWarp(element, paragraphs, context) {
|
|
|
3237
3239
|
)
|
|
3238
3240
|
})
|
|
3239
3241
|
);
|
|
3240
|
-
const text =
|
|
3242
|
+
const text = chunk4SZSTDER_cjs.createSvgEl(context.document, "text", {
|
|
3241
3243
|
fill: style.color ?? "#000000",
|
|
3242
|
-
"font-family": style.fontFamily ? pptx.getSubstituteFontFamily(style.fontFamily) :
|
|
3244
|
+
"font-family": style.fontFamily ? pptx.getSubstituteFontFamily(style.fontFamily) : chunkYZWKNFPU_cjs.DEFAULT_FONT_FAMILY,
|
|
3243
3245
|
"font-size": style.fontSize ?? 18,
|
|
3244
|
-
"font-weight":
|
|
3245
|
-
"font-style":
|
|
3246
|
+
"font-weight": chunkRN3JVXVN_cjs.fontWeightAttribute(style.fontFamily, style.bold),
|
|
3247
|
+
"font-style": chunkRN3JVXVN_cjs.resolveFontItalic(style.fontFamily, style.italic) ? "italic" : void 0
|
|
3246
3248
|
});
|
|
3247
|
-
const textPath =
|
|
3249
|
+
const textPath = chunk4SZSTDER_cjs.createSvgEl(context.document, "textPath", {
|
|
3248
3250
|
href: `#${id}`,
|
|
3249
3251
|
startOffset: "50%",
|
|
3250
3252
|
"text-anchor": "middle"
|
|
@@ -3259,9 +3261,9 @@ function renderPathWarp(element, paragraphs, context) {
|
|
|
3259
3261
|
|
|
3260
3262
|
// src/pptx/dom/elements/text-shape.ts
|
|
3261
3263
|
var renderTextShapeElement = (element, zIndex, context) => {
|
|
3262
|
-
const container =
|
|
3264
|
+
const container = chunkRN3JVXVN_cjs.getContainerStyle(element, zIndex);
|
|
3263
3265
|
const animState = context.presentationStates?.get(element.id);
|
|
3264
|
-
const background =
|
|
3266
|
+
const background = chunkRN3JVXVN_cjs.getBackgroundAnimationState(element, context.presentationStates);
|
|
3265
3267
|
const visualState = background ?? animState;
|
|
3266
3268
|
const shape = getShapeFillStrokeStyle(
|
|
3267
3269
|
element,
|
|
@@ -3269,23 +3271,27 @@ var renderTextShapeElement = (element, zIndex, context) => {
|
|
|
3269
3271
|
visualState?.animatesStroke
|
|
3270
3272
|
);
|
|
3271
3273
|
const merged = { ...container, ...shape };
|
|
3272
|
-
|
|
3274
|
+
Object.assign(
|
|
3275
|
+
merged,
|
|
3276
|
+
chunkRN3JVXVN_cjs.abuttingEdgeBleedStyle(element, context.edgeBleeds?.get(element.id), merged)
|
|
3277
|
+
);
|
|
3278
|
+
const transform = chunk4SZSTDER_cjs.composeTransforms(container["transform"], shape["transform"]);
|
|
3273
3279
|
if (transform !== void 0) {
|
|
3274
3280
|
merged["transform"] = transform;
|
|
3275
3281
|
}
|
|
3276
|
-
const layers =
|
|
3277
|
-
const el =
|
|
3282
|
+
const layers = chunkRN3JVXVN_cjs.getBackgroundAnimationLayers(element, merged, background);
|
|
3283
|
+
const el = chunk4SZSTDER_cjs.createEl(context.document, "div", "pptxv-element pptxv-shape", layers.box);
|
|
3278
3284
|
el.dataset.elementId = element.id;
|
|
3279
|
-
const paint = layers.paint ?
|
|
3285
|
+
const paint = layers.paint ? chunk4SZSTDER_cjs.createEl(context.document, "div", void 0, layers.paint) : el;
|
|
3280
3286
|
if (paint !== el) {
|
|
3281
3287
|
paint.dataset.animId = layers.targetId;
|
|
3282
3288
|
paint.dataset.pptxAnimationLayer = "background";
|
|
3283
3289
|
el.appendChild(paint);
|
|
3284
3290
|
}
|
|
3285
3291
|
if (context.interactive && !context.presenting) {
|
|
3286
|
-
const hitTargetStyle =
|
|
3292
|
+
const hitTargetStyle = chunkRN3JVXVN_cjs.elementHitTargetStyle(element);
|
|
3287
3293
|
if (hitTargetStyle) {
|
|
3288
|
-
const hitTarget =
|
|
3294
|
+
const hitTarget = chunk4SZSTDER_cjs.createEl(context.document, "div", void 0, hitTargetStyle);
|
|
3289
3295
|
hitTarget.setAttribute("aria-hidden", "true");
|
|
3290
3296
|
hitTarget.setAttribute("data-pptx-hit-target", "true");
|
|
3291
3297
|
el.appendChild(hitTarget);
|
|
@@ -3326,8 +3332,8 @@ var renderTextShapeElement = (element, zIndex, context) => {
|
|
|
3326
3332
|
} else if (warped) {
|
|
3327
3333
|
el.appendChild(warped);
|
|
3328
3334
|
} else {
|
|
3329
|
-
const linkedSegments =
|
|
3330
|
-
const paragraphs =
|
|
3335
|
+
const linkedSegments = chunkRN3JVXVN_cjs.getOverflowSegments(element, context.slide?.elements);
|
|
3336
|
+
const paragraphs = chunkRN3JVXVN_cjs.buildParagraphs(element, context.fieldContext, linkedSegments);
|
|
3331
3337
|
const hasText = paragraphs.some((p) => p.runs.length > 0 || p.bulletMarker !== void 0);
|
|
3332
3338
|
if (hasText) {
|
|
3333
3339
|
el.appendChild(
|
|
@@ -3338,9 +3344,9 @@ var renderTextShapeElement = (element, zIndex, context) => {
|
|
|
3338
3344
|
);
|
|
3339
3345
|
} else {
|
|
3340
3346
|
const mode = context.interactive && !context.presenting ? "edit" : "present";
|
|
3341
|
-
const prompt =
|
|
3347
|
+
const prompt = chunkRN3JVXVN_cjs.placeholderPromptDescriptor(element, mode);
|
|
3342
3348
|
if (prompt) {
|
|
3343
|
-
const hint =
|
|
3349
|
+
const hint = chunk4SZSTDER_cjs.createEl(context.document, "div", "pptxv-placeholder-prompt", {
|
|
3344
3350
|
...getTextBlockStyle(element),
|
|
3345
3351
|
...prompt.style
|
|
3346
3352
|
});
|
|
@@ -3354,7 +3360,7 @@ var renderTextShapeElement = (element, zIndex, context) => {
|
|
|
3354
3360
|
|
|
3355
3361
|
// src/pptx/dom/elements/index.ts
|
|
3356
3362
|
function createDefaultRegistry() {
|
|
3357
|
-
const registry =
|
|
3363
|
+
const registry = chunk4SZSTDER_cjs.createElementRendererRegistry();
|
|
3358
3364
|
registry.register("text", renderTextShapeElement);
|
|
3359
3365
|
registry.register("shape", renderTextShapeElement);
|
|
3360
3366
|
registry.register("image", renderImageElement);
|
|
@@ -3404,8 +3410,8 @@ async function loadPresentation(buffer, options) {
|
|
|
3404
3410
|
digitalSignatureCount: parsed.digitalSignatureCount ?? 0,
|
|
3405
3411
|
isPasswordProtected: parsed.isPasswordProtected ?? false,
|
|
3406
3412
|
canvasSize: {
|
|
3407
|
-
width: parsed.width ??
|
|
3408
|
-
height: parsed.height ??
|
|
3413
|
+
width: parsed.width ?? chunkYZWKNFPU_cjs.DEFAULT_CANVAS_WIDTH,
|
|
3414
|
+
height: parsed.height ?? chunkYZWKNFPU_cjs.DEFAULT_CANVAS_HEIGHT
|
|
3409
3415
|
},
|
|
3410
3416
|
mediaDataUrls,
|
|
3411
3417
|
colorScheme: parsed.theme?.colorScheme,
|
|
@@ -3506,119 +3512,119 @@ async function resolveImageUrls(handler, slides) {
|
|
|
3506
3512
|
|
|
3507
3513
|
Object.defineProperty(exports, "SMARTART_SVG_STYLE", {
|
|
3508
3514
|
enumerable: true,
|
|
3509
|
-
get: function () { return
|
|
3515
|
+
get: function () { return chunk4SZSTDER_cjs.SMARTART_SVG_STYLE; }
|
|
3510
3516
|
});
|
|
3511
3517
|
Object.defineProperty(exports, "appendSvgTextLines", {
|
|
3512
3518
|
enumerable: true,
|
|
3513
|
-
get: function () { return
|
|
3519
|
+
get: function () { return chunk4SZSTDER_cjs.appendSvgTextLines; }
|
|
3514
3520
|
});
|
|
3515
3521
|
Object.defineProperty(exports, "applyStyleMap", {
|
|
3516
3522
|
enumerable: true,
|
|
3517
|
-
get: function () { return
|
|
3523
|
+
get: function () { return chunk4SZSTDER_cjs.applyStyleMap; }
|
|
3518
3524
|
});
|
|
3519
3525
|
Object.defineProperty(exports, "applyThreeViewTextStyle", {
|
|
3520
3526
|
enumerable: true,
|
|
3521
|
-
get: function () { return
|
|
3527
|
+
get: function () { return chunk4SZSTDER_cjs.applyThreeViewTextStyle; }
|
|
3522
3528
|
});
|
|
3523
3529
|
Object.defineProperty(exports, "buildSmartArtFallbackSvg", {
|
|
3524
3530
|
enumerable: true,
|
|
3525
|
-
get: function () { return
|
|
3531
|
+
get: function () { return chunk4SZSTDER_cjs.buildSmartArtFallbackSvg; }
|
|
3526
3532
|
});
|
|
3527
3533
|
Object.defineProperty(exports, "buildSmartArtInsertPreview", {
|
|
3528
3534
|
enumerable: true,
|
|
3529
|
-
get: function () { return
|
|
3535
|
+
get: function () { return chunk4SZSTDER_cjs.buildSmartArtInsertPreview; }
|
|
3530
3536
|
});
|
|
3531
3537
|
Object.defineProperty(exports, "buildSvgGradientDefs", {
|
|
3532
3538
|
enumerable: true,
|
|
3533
|
-
get: function () { return
|
|
3539
|
+
get: function () { return chunk4SZSTDER_cjs.buildSvgGradientDefs; }
|
|
3534
3540
|
});
|
|
3535
3541
|
Object.defineProperty(exports, "collectThreeViews", {
|
|
3536
3542
|
enumerable: true,
|
|
3537
|
-
get: function () { return
|
|
3543
|
+
get: function () { return chunk4SZSTDER_cjs.collectThreeViews; }
|
|
3538
3544
|
});
|
|
3539
3545
|
Object.defineProperty(exports, "composeTransforms", {
|
|
3540
3546
|
enumerable: true,
|
|
3541
|
-
get: function () { return
|
|
3547
|
+
get: function () { return chunk4SZSTDER_cjs.composeTransforms; }
|
|
3542
3548
|
});
|
|
3543
3549
|
Object.defineProperty(exports, "createEl", {
|
|
3544
3550
|
enumerable: true,
|
|
3545
|
-
get: function () { return
|
|
3551
|
+
get: function () { return chunk4SZSTDER_cjs.createEl; }
|
|
3546
3552
|
});
|
|
3547
3553
|
Object.defineProperty(exports, "createElementRendererRegistry", {
|
|
3548
3554
|
enumerable: true,
|
|
3549
|
-
get: function () { return
|
|
3555
|
+
get: function () { return chunk4SZSTDER_cjs.createElementRendererRegistry; }
|
|
3550
3556
|
});
|
|
3551
3557
|
Object.defineProperty(exports, "createSvgEl", {
|
|
3552
3558
|
enumerable: true,
|
|
3553
|
-
get: function () { return
|
|
3559
|
+
get: function () { return chunk4SZSTDER_cjs.createSvgEl; }
|
|
3554
3560
|
});
|
|
3555
3561
|
Object.defineProperty(exports, "enableSmartArtEditing", {
|
|
3556
3562
|
enumerable: true,
|
|
3557
|
-
get: function () { return
|
|
3563
|
+
get: function () { return chunk4SZSTDER_cjs.enableSmartArtEditing; }
|
|
3558
3564
|
});
|
|
3559
3565
|
Object.defineProperty(exports, "isChart3DEditable", {
|
|
3560
3566
|
enumerable: true,
|
|
3561
|
-
get: function () { return
|
|
3567
|
+
get: function () { return chunk4SZSTDER_cjs.isChart3DEditable; }
|
|
3562
3568
|
});
|
|
3563
3569
|
Object.defineProperty(exports, "mountThreeViewInto", {
|
|
3564
3570
|
enumerable: true,
|
|
3565
|
-
get: function () { return
|
|
3571
|
+
get: function () { return chunk4SZSTDER_cjs.mountThreeViewInto; }
|
|
3566
3572
|
});
|
|
3567
3573
|
Object.defineProperty(exports, "renderSmartArt3DElement", {
|
|
3568
3574
|
enumerable: true,
|
|
3569
|
-
get: function () { return
|
|
3575
|
+
get: function () { return chunk4SZSTDER_cjs.renderSmartArt3DElement; }
|
|
3570
3576
|
});
|
|
3571
3577
|
Object.defineProperty(exports, "renderSmartArtElement", {
|
|
3572
3578
|
enumerable: true,
|
|
3573
|
-
get: function () { return
|
|
3579
|
+
get: function () { return chunk4SZSTDER_cjs.renderSmartArtElement; }
|
|
3574
3580
|
});
|
|
3575
3581
|
Object.defineProperty(exports, "renderSmartArtSvg", {
|
|
3576
3582
|
enumerable: true,
|
|
3577
|
-
get: function () { return
|
|
3583
|
+
get: function () { return chunk4SZSTDER_cjs.renderSmartArtSvg; }
|
|
3578
3584
|
});
|
|
3579
3585
|
Object.defineProperty(exports, "rendering3DFlagsOf", {
|
|
3580
3586
|
enumerable: true,
|
|
3581
|
-
get: function () { return
|
|
3587
|
+
get: function () { return chunk4SZSTDER_cjs.rendering3DFlagsOf; }
|
|
3582
3588
|
});
|
|
3583
3589
|
Object.defineProperty(exports, "selectedChartPartOf", {
|
|
3584
3590
|
enumerable: true,
|
|
3585
|
-
get: function () { return
|
|
3591
|
+
get: function () { return chunk4SZSTDER_cjs.selectedChartPartOf; }
|
|
3586
3592
|
});
|
|
3587
3593
|
Object.defineProperty(exports, "setSvgAttrs", {
|
|
3588
3594
|
enumerable: true,
|
|
3589
|
-
get: function () { return
|
|
3595
|
+
get: function () { return chunk4SZSTDER_cjs.setSvgAttrs; }
|
|
3590
3596
|
});
|
|
3591
3597
|
Object.defineProperty(exports, "takeReusableThreeView", {
|
|
3592
3598
|
enumerable: true,
|
|
3593
|
-
get: function () { return
|
|
3599
|
+
get: function () { return chunk4SZSTDER_cjs.takeReusableThreeView; }
|
|
3594
3600
|
});
|
|
3595
3601
|
Object.defineProperty(exports, "wireChartThreeViewEvents", {
|
|
3596
3602
|
enumerable: true,
|
|
3597
|
-
get: function () { return
|
|
3603
|
+
get: function () { return chunk4SZSTDER_cjs.wireChartThreeViewEvents; }
|
|
3598
3604
|
});
|
|
3599
3605
|
Object.defineProperty(exports, "withReusableThreeViews", {
|
|
3600
3606
|
enumerable: true,
|
|
3601
|
-
get: function () { return
|
|
3607
|
+
get: function () { return chunk4SZSTDER_cjs.withReusableThreeViews; }
|
|
3602
3608
|
});
|
|
3603
3609
|
Object.defineProperty(exports, "buildEmbeddedFontStyles", {
|
|
3604
3610
|
enumerable: true,
|
|
3605
|
-
get: function () { return
|
|
3611
|
+
get: function () { return chunkRN3JVXVN_cjs.buildEmbeddedFontStyles; }
|
|
3606
3612
|
});
|
|
3607
3613
|
Object.defineProperty(exports, "buildFieldSubstitutionContext", {
|
|
3608
3614
|
enumerable: true,
|
|
3609
|
-
get: function () { return
|
|
3615
|
+
get: function () { return chunkRN3JVXVN_cjs.buildFieldSubstitutionContext; }
|
|
3610
3616
|
});
|
|
3611
3617
|
Object.defineProperty(exports, "releasePptxRenderCaches", {
|
|
3612
3618
|
enumerable: true,
|
|
3613
|
-
get: function () { return
|
|
3619
|
+
get: function () { return chunkRN3JVXVN_cjs.releasePptxRenderCaches; }
|
|
3614
3620
|
});
|
|
3615
3621
|
Object.defineProperty(exports, "renderChartViewModelSvg", {
|
|
3616
3622
|
enumerable: true,
|
|
3617
|
-
get: function () { return
|
|
3623
|
+
get: function () { return chunkJP26TA3Q_cjs.renderChartViewModelSvg; }
|
|
3618
3624
|
});
|
|
3619
3625
|
Object.defineProperty(exports, "createTranslator", {
|
|
3620
3626
|
enumerable: true,
|
|
3621
|
-
get: function () { return
|
|
3627
|
+
get: function () { return chunkWNDGU3GQ_cjs.createTranslator; }
|
|
3622
3628
|
});
|
|
3623
3629
|
exports.CHART_FORMAT_REQUEST_EVENT = CHART_FORMAT_REQUEST_EVENT;
|
|
3624
3630
|
exports.appendCommentMarkers = appendCommentMarkers;
|