ooxml-ui 1.40.0 → 1.42.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/custom-elements.json +480 -0
- package/dist/chart/design-galleries.d.ts +0 -1
- package/dist/chart/format-pane-3d.d.ts +1 -0
- package/dist/chart/format-pane-common.d.ts +1 -0
- package/dist/chart/format-pane-types.d.ts +0 -1
- package/dist/chart/format-pane-view.d.ts +0 -1
- package/dist/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/controls.d.ts +16 -2
- package/dist/controls.d.ts.map +1 -1
- package/dist/controls.js +4 -4
- 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 +39 -0
- package/dist/dialog/message-dialogs.d.ts.map +1 -0
- package/dist/dialog/share-controller.d.ts +38 -0
- package/dist/dialog/share-dialog-locales.d.ts +48 -0
- package/dist/dialog/share-dialog-locales.d.ts.map +1 -0
- package/dist/dialog/share-dialog.d.ts +122 -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 +43 -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 +71 -0
- package/dist/files/connected-services.d.ts.map +1 -0
- package/dist/files/open-places.d.ts +59 -0
- package/dist/files/open-places.d.ts.map +1 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.js +10 -10
- package/dist/notices/read-only-banner.d.ts.map +1 -1
- package/dist/picture-effects.d.ts +0 -1
- package/dist/picture-pixels.d.ts.map +1 -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-BLONL4S7.mjs → chunk-BA4CJI4U.mjs} +36 -4
- package/dist/pptx/{chunk-XTC6MQYM.mjs → chunk-C7G2CSU2.mjs} +3 -3
- package/dist/pptx/{chunk-S5VKG3XJ.cjs → chunk-CK6RYGB4.cjs} +38 -3
- 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-HIRBPTML.cjs → chunk-JP26TA3Q.cjs} +12 -12
- package/dist/pptx/{chunk-NUB6VP7R.mjs → chunk-OPLK7GPB.mjs} +8483 -3453
- package/dist/pptx/{chunk-XWAX3PZO.cjs → chunk-RI4YZ4AG.cjs} +8705 -3621
- 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-ZLK243QC.cjs → chunk-XTYRGVT5.cjs} +49 -49
- 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/connector.d.ts.map +1 -1
- package/dist/pptx/dom/elements/edge-bleed-restore.d.ts +19 -0
- package/dist/pptx/dom/elements/edge-bleed-restore.d.ts.map +1 -0
- package/dist/pptx/dom/elements/shape-filter-defs.d.ts.map +1 -1
- package/dist/pptx/dom/elements/text-shape.d.ts.map +1 -1
- package/dist/pptx/dom/index.cjs +481 -432
- package/dist/pptx/dom/index.d.ts +1 -0
- package/dist/pptx/dom/index.d.ts.map +1 -1
- package/dist/pptx/dom/index.mjs +64 -17
- 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 +3601 -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-path.d.ts +15 -0
- package/dist/pptx/render/connector-path.d.ts.map +1 -1
- package/dist/pptx/render/connector-style.d.ts +12 -2
- package/dist/pptx/render/connector-style.d.ts.map +1 -1
- package/dist/pptx/render/device-pixel-stroke.d.ts +43 -6
- package/dist/pptx/render/device-pixel-stroke.d.ts.map +1 -1
- package/dist/pptx/render/effect-profile.d.ts +53 -0
- package/dist/pptx/render/effect-profile.d.ts.map +1 -0
- package/dist/pptx/render/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/font-settled.d.ts +14 -0
- package/dist/pptx/render/font-settled.d.ts.map +1 -0
- package/dist/pptx/render/index.d.ts +12 -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 +24 -35
- 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 +74 -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-line-carry.d.ts +40 -0
- package/dist/pptx/render/morph-line-carry.d.ts.map +1 -0
- 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 +86 -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-rotation.d.ts +30 -0
- package/dist/pptx/render/morph-rotation.d.ts.map +1 -0
- 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-strands.d.ts +36 -0
- package/dist/pptx/render/morph-shape-carry-strands.d.ts.map +1 -0
- package/dist/pptx/render/morph-shape-carry.d.ts +78 -0
- package/dist/pptx/render/morph-shape-carry.d.ts.map +1 -0
- package/dist/pptx/render/morph-soft-edge-blend.d.ts +38 -0
- package/dist/pptx/render/morph-soft-edge-blend.d.ts.map +1 -0
- package/dist/pptx/render/morph-text-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 +68 -0
- package/dist/pptx/render/morph-text-frame.d.ts.map +1 -0
- package/dist/pptx/render/morph-text-glyph-plan.d.ts +31 -0
- package/dist/pptx/render/morph-text-glyph-plan.d.ts.map +1 -0
- package/dist/pptx/render/morph-text-glyphs.d.ts +27 -0
- package/dist/pptx/render/morph-text-glyphs.d.ts.map +1 -0
- package/dist/pptx/render/morph-text-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 +75 -0
- package/dist/pptx/render/morph-text-lines.d.ts.map +1 -0
- package/dist/pptx/render/morph-text-piece-caps.d.ts +36 -0
- package/dist/pptx/render/morph-text-piece-caps.d.ts.map +1 -0
- package/dist/pptx/render/morph-text-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 +92 -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 +110 -0
- package/dist/pptx/render/morph-text-transform.d.ts.map +1 -0
- package/dist/pptx/render/morph-types.d.ts +88 -38
- package/dist/pptx/render/morph-types.d.ts.map +1 -1
- package/dist/pptx/render/paragraph-baseline-settle.d.ts +8 -0
- package/dist/pptx/render/paragraph-baseline-settle.d.ts.map +1 -0
- package/dist/pptx/render/paragraph-baseline.d.ts +150 -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 +13 -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 +7 -0
- package/dist/pptx/render/stroke-outline.d.ts.map +1 -1
- package/dist/pptx/render/table-cell-paragraphs.d.ts.map +1 -1
- package/dist/pptx/render/text-block-style.d.ts.map +1 -1
- package/dist/pptx/render/text-body-layout.d.ts.map +1 -1
- package/dist/pptx/render/text-effects.d.ts +6 -11
- package/dist/pptx/render/text-effects.d.ts.map +1 -1
- package/dist/pptx/render/text-flip-compensation.d.ts +51 -0
- package/dist/pptx/render/text-flip-compensation.d.ts.map +1 -0
- package/dist/pptx/render/text-line-height.d.ts +8 -8
- package/dist/pptx/render/text-line-height.d.ts.map +1 -1
- package/dist/pptx/render/text-paragraph-style.d.ts +13 -0
- package/dist/pptx/render/text-paragraph-style.d.ts.map +1 -1
- package/dist/pptx/render/text-paragraphs.d.ts.map +1 -1
- package/dist/pptx/render/text-shrink-block.d.ts +23 -0
- package/dist/pptx/render/text-shrink-block.d.ts.map +1 -0
- package/dist/pptx/render/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/render/visual-effects.d.ts +3 -1
- package/dist/pptx/render/visual-effects.d.ts.map +1 -1
- package/dist/pptx/{smartart-insert-preview-BP4WAD5U.mjs → smartart-insert-preview-AE7D4I7L.mjs} +7 -7
- package/dist/pptx/{smartart-insert-preview-USGRDZHJ.cjs → smartart-insert-preview-P4NV2FRD.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/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
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
3
|
+
var chunkJP26TA3Q_cjs = require('./chunk-JP26TA3Q.cjs');
|
|
4
|
+
var chunkYZWKNFPU_cjs = require('./chunk-YZWKNFPU.cjs');
|
|
5
5
|
var chart = require('ooxml-core/chart');
|
|
6
6
|
|
|
7
7
|
var NORMAL_SHADE = {
|
|
@@ -181,7 +181,7 @@ function buildChart3DBarMeshes(three, layout, svgWidth, svgHeight) {
|
|
|
181
181
|
// src/pptx/render/chart-3d-chrome-overlay.ts
|
|
182
182
|
function renderChart3DChromeOverlaySvg(doc, source, box) {
|
|
183
183
|
const vm = box ? withBoxChromePositions(source) : source;
|
|
184
|
-
const svg =
|
|
184
|
+
const svg = chunkJP26TA3Q_cjs.createSvgEl(doc, "svg", {
|
|
185
185
|
class: "pptxv-chart-3d-chrome",
|
|
186
186
|
viewBox: `0 0 ${vm.svgWidth} ${vm.svgHeight}`,
|
|
187
187
|
preserveAspectRatio: "none"
|
|
@@ -194,7 +194,7 @@ function renderChart3DChromeOverlaySvg(doc, source, box) {
|
|
|
194
194
|
svg.style.setProperty("pointer-events", "none");
|
|
195
195
|
if (vm.areaFill) {
|
|
196
196
|
svg.appendChild(
|
|
197
|
-
|
|
197
|
+
chunkJP26TA3Q_cjs.createSvgEl(doc, "rect", {
|
|
198
198
|
x: 0,
|
|
199
199
|
y: 0,
|
|
200
200
|
width: vm.svgWidth,
|
|
@@ -205,7 +205,7 @@ function renderChart3DChromeOverlaySvg(doc, source, box) {
|
|
|
205
205
|
);
|
|
206
206
|
}
|
|
207
207
|
if (vm.title) {
|
|
208
|
-
const title =
|
|
208
|
+
const title = chunkJP26TA3Q_cjs.createSvgEl(doc, "text", {
|
|
209
209
|
x: vm.titleX,
|
|
210
210
|
y: vm.titleY,
|
|
211
211
|
"text-anchor": "middle",
|
|
@@ -217,7 +217,7 @@ function renderChart3DChromeOverlaySvg(doc, source, box) {
|
|
|
217
217
|
});
|
|
218
218
|
if (vm.titleRunSpans && vm.titleRunSpans.length > 0) {
|
|
219
219
|
for (const run of vm.titleRunSpans) {
|
|
220
|
-
const tspan =
|
|
220
|
+
const tspan = chunkJP26TA3Q_cjs.createSvgEl(doc, "tspan", {
|
|
221
221
|
"font-size": run.fontSize,
|
|
222
222
|
"font-weight": run.fontWeight,
|
|
223
223
|
"font-style": run.fontStyle,
|
|
@@ -236,28 +236,28 @@ function renderChart3DChromeOverlaySvg(doc, source, box) {
|
|
|
236
236
|
appendBoxLabels(doc, svg, vm, box.labels);
|
|
237
237
|
const legend = box.legend ?? vm.legend.map((item) => ({ ...item, lineSwatch: void 0 }));
|
|
238
238
|
const legendVm = { ...vm, legend: box.reverseLegend ? legend.reverse() : legend };
|
|
239
|
-
|
|
239
|
+
chunkJP26TA3Q_cjs.appendChartLegendSvg(doc, svg, legendVm);
|
|
240
240
|
return svg;
|
|
241
241
|
}
|
|
242
242
|
for (const gl of vm.gridlines) {
|
|
243
|
-
svg.appendChild(
|
|
243
|
+
svg.appendChild(chunkJP26TA3Q_cjs.renderChartLineSvg(doc, gl));
|
|
244
244
|
}
|
|
245
245
|
for (const gl of vm.secondaryGridlines ?? []) {
|
|
246
|
-
svg.appendChild(
|
|
246
|
+
svg.appendChild(chunkJP26TA3Q_cjs.renderChartLineSvg(doc, gl));
|
|
247
247
|
}
|
|
248
248
|
for (const lbl of vm.axisLabels) {
|
|
249
|
-
svg.appendChild(
|
|
249
|
+
svg.appendChild(chunkJP26TA3Q_cjs.renderChartTextSvg(doc, lbl));
|
|
250
250
|
}
|
|
251
251
|
for (const lbl of vm.secondaryAxisLabels ?? []) {
|
|
252
|
-
svg.appendChild(
|
|
252
|
+
svg.appendChild(chunkJP26TA3Q_cjs.renderChartTextSvg(doc, lbl));
|
|
253
253
|
}
|
|
254
254
|
if (vm.zeroLine) {
|
|
255
|
-
svg.appendChild(
|
|
255
|
+
svg.appendChild(chunkJP26TA3Q_cjs.renderChartLineSvg(doc, vm.zeroLine));
|
|
256
256
|
}
|
|
257
257
|
for (const lbl of vm.categoryLabels) {
|
|
258
|
-
svg.appendChild(
|
|
258
|
+
svg.appendChild(chunkJP26TA3Q_cjs.renderChartTextSvg(doc, lbl));
|
|
259
259
|
}
|
|
260
|
-
|
|
260
|
+
chunkJP26TA3Q_cjs.appendChartLegendSvg(doc, svg, vm);
|
|
261
261
|
return svg;
|
|
262
262
|
}
|
|
263
263
|
var PT = 4 / 3;
|
|
@@ -276,7 +276,7 @@ function appendBoxLabels(doc, svg, vm, labels) {
|
|
|
276
276
|
const style = vm.axisLabels[0];
|
|
277
277
|
for (const label of labels) {
|
|
278
278
|
svg.appendChild(
|
|
279
|
-
|
|
279
|
+
chunkJP26TA3Q_cjs.renderChartTextSvg(doc, {
|
|
280
280
|
kind: "text",
|
|
281
281
|
x: label.x,
|
|
282
282
|
y: label.y,
|
|
@@ -346,7 +346,7 @@ function attachChart3DMarkInteraction(options) {
|
|
|
346
346
|
}
|
|
347
347
|
const point = pointAt(event.clientX, event.clientY);
|
|
348
348
|
const value = point ? adapter.valueOf(point) : void 0;
|
|
349
|
-
const tooltip = point && value !== void 0 ?
|
|
349
|
+
const tooltip = point && value !== void 0 ? chunkJP26TA3Q_cjs.buildBarChart3DHoverTooltip(
|
|
350
350
|
{ seriesIndex: point.seriesIndex, categoryIndex: point.pointIndex, value },
|
|
351
351
|
{
|
|
352
352
|
categoryLabels: options.categoryLabels,
|
|
@@ -364,7 +364,7 @@ function attachChart3DMarkInteraction(options) {
|
|
|
364
364
|
return;
|
|
365
365
|
}
|
|
366
366
|
const point = pointAt(event.clientX, event.clientY);
|
|
367
|
-
const armed = point !== null &&
|
|
367
|
+
const armed = point !== null && chunkJP26TA3Q_cjs.isChartInteractionArmed(target);
|
|
368
368
|
if (armed) {
|
|
369
369
|
event.stopPropagation();
|
|
370
370
|
}
|
|
@@ -440,7 +440,7 @@ function obliqueDragValue(layout, startValue, dx, dy) {
|
|
|
440
440
|
const along = layout.horizontal ? dx : -dy;
|
|
441
441
|
const raw = startValue + along / layout.valueScale;
|
|
442
442
|
const span = layout.range.max - layout.range.min;
|
|
443
|
-
return
|
|
443
|
+
return chunkJP26TA3Q_cjs.roundDragValue(raw, { min: layout.range.min, max: layout.range.max, span });
|
|
444
444
|
}
|
|
445
445
|
function obliqueDraggedExtent(layout, value) {
|
|
446
446
|
const { min, max } = layout.range;
|
|
@@ -453,7 +453,7 @@ function obliqueDraggedExtent(layout, value) {
|
|
|
453
453
|
function obliqueBarAtValue(layout, bar, value) {
|
|
454
454
|
const { from, length } = obliqueDraggedExtent(layout, value);
|
|
455
455
|
const extent = (layout.range.max - layout.range.min) * layout.valueScale;
|
|
456
|
-
const taper =
|
|
456
|
+
const taper = chunkJP26TA3Q_cjs.obliqueBarTaper(bar.shape, from, from + length, extent, value);
|
|
457
457
|
return layout.horizontal ? { ...bar, x: from, w: length, value, taper } : { ...bar, y: from, h: length, value, taper };
|
|
458
458
|
}
|
|
459
459
|
|
|
@@ -545,7 +545,7 @@ function buildPerspBarPrisms(chartData, layout, override) {
|
|
|
545
545
|
const nSer = chartData.series.length;
|
|
546
546
|
const catExtent = layout.horizontal ? layout.view.box.h : layout.view.box.w;
|
|
547
547
|
const slot = nCat > 0 ? catExtent / nCat : catExtent;
|
|
548
|
-
const gapWidth = (chartData.barGapWidth ??
|
|
548
|
+
const gapWidth = (chartData.barGapWidth ?? chunkYZWKNFPU_cjs.DEFAULT_BAR_GAP_WIDTH) / 100;
|
|
549
549
|
const slots = layout.grouping === "clustered" ? nSer : 1;
|
|
550
550
|
const barW = slot / (slots + gapWidth);
|
|
551
551
|
const depth = Math.min(barW, layout.rowDepth);
|
|
@@ -598,7 +598,7 @@ function buildPerspBarPrisms(chartData, layout, override) {
|
|
|
598
598
|
z0,
|
|
599
599
|
z1: z0 + depth,
|
|
600
600
|
shape,
|
|
601
|
-
taper:
|
|
601
|
+
taper: chunkJP26TA3Q_cjs.obliqueBarTaper(
|
|
602
602
|
shape,
|
|
603
603
|
v0,
|
|
604
604
|
v1,
|
|
@@ -793,7 +793,7 @@ function buildPerspGridlines(three, layout) {
|
|
|
793
793
|
function buildPerspMeshes(three, layout, prisms) {
|
|
794
794
|
const group = new three.Group();
|
|
795
795
|
group.matrixAutoUpdate = false;
|
|
796
|
-
group.matrix.copy(
|
|
796
|
+
group.matrix.copy(chunkJP26TA3Q_cjs.perspBoxMatrix(three, layout.view));
|
|
797
797
|
const gridlines = buildPerspGridlines(three, layout);
|
|
798
798
|
group.add(gridlines);
|
|
799
799
|
const material = new three.MeshBasicMaterial({ vertexColors: true, side: three.DoubleSide });
|
|
@@ -848,7 +848,7 @@ function surfaceBands(chartData, range, palette) {
|
|
|
848
848
|
const fmt = chartData.bandFmts?.find((b) => b.index === i)?.spPr;
|
|
849
849
|
const cycle = palette.length > 0 ? palette : ["#4472C4"];
|
|
850
850
|
const base = cycle[i % cycle.length];
|
|
851
|
-
const fallback = Math.floor(i / cycle.length) % 2 === 1 ?
|
|
851
|
+
const fallback = Math.floor(i / cycle.length) % 2 === 1 ? chunkYZWKNFPU_cjs.shade(base, 0.4) : base;
|
|
852
852
|
return {
|
|
853
853
|
label: `${formatEdge(lo)}-${formatEdge(edges[i + 1])}`,
|
|
854
854
|
color: fmt?.fillColor ?? fmt?.strokeColor ?? fallback
|
|
@@ -1032,7 +1032,7 @@ function disposeObject(object) {
|
|
|
1032
1032
|
function buildSurfaceMarks(three, chartData, layout, palette) {
|
|
1033
1033
|
const group = new three.Group();
|
|
1034
1034
|
group.matrixAutoUpdate = false;
|
|
1035
|
-
group.matrix.copy(
|
|
1035
|
+
group.matrix.copy(chunkJP26TA3Q_cjs.perspBoxMatrix(three, layout.view));
|
|
1036
1036
|
const gridlines = buildPerspGridlines(three, layout);
|
|
1037
1037
|
group.add(gridlines);
|
|
1038
1038
|
let visual = buildVisual(three, chartData, layout, palette);
|
|
@@ -1172,8 +1172,8 @@ function surfaceLegend(chartData, layout, palette, background, textStyle) {
|
|
|
1172
1172
|
function mountPerspChartView(input, ctx) {
|
|
1173
1173
|
const three = ctx.three;
|
|
1174
1174
|
const { vm, layout, chartData } = input;
|
|
1175
|
-
const palette =
|
|
1176
|
-
const camera =
|
|
1175
|
+
const palette = chunkYZWKNFPU_cjs.resolveChartPalette(chartData);
|
|
1176
|
+
const camera = chunkJP26TA3Q_cjs.buildPerspCamera(three, layout.view, vm.svgWidth, vm.svgHeight);
|
|
1177
1177
|
const scene = new three.Scene();
|
|
1178
1178
|
const marks = buildPerspMarkSet(three, chartData, layout, palette);
|
|
1179
1179
|
scene.add(marks.group);
|
|
@@ -1222,15 +1222,15 @@ function mountPerspChartView(input, ctx) {
|
|
|
1222
1222
|
const a = marks.anchor(point, start);
|
|
1223
1223
|
const step = unit * layout.valueScale;
|
|
1224
1224
|
const b = layout.horizontal ? [a[0] + step, a[1], a[2]] : [a[0], a[1] + step, a[2]];
|
|
1225
|
-
const s0 =
|
|
1226
|
-
const s1 =
|
|
1225
|
+
const s0 = chunkJP26TA3Q_cjs.perspToScreen(layout.view, a);
|
|
1226
|
+
const s1 = chunkJP26TA3Q_cjs.perspToScreen(layout.view, b);
|
|
1227
1227
|
const ux = (s1.x - s0.x) / unit;
|
|
1228
1228
|
const uy = (s1.y - s0.y) / unit;
|
|
1229
1229
|
const len2 = ux * ux + uy * uy || 1;
|
|
1230
1230
|
const span = layout.range.max - layout.range.min;
|
|
1231
1231
|
return {
|
|
1232
1232
|
preview(dx, dy) {
|
|
1233
|
-
const value =
|
|
1233
|
+
const value = chunkJP26TA3Q_cjs.roundDragValue(start + (dx * ux + dy * uy) / len2, {
|
|
1234
1234
|
min: layout.range.min,
|
|
1235
1235
|
max: layout.range.max,
|
|
1236
1236
|
span
|
|
@@ -1318,7 +1318,7 @@ function sliceBuffers(three, layout, slice) {
|
|
|
1318
1318
|
const steps = Math.max(2, Math.ceil(span / (Math.PI * 2) * SEGMENTS_PER_TURN));
|
|
1319
1319
|
const angles = Array.from({ length: steps + 1 }, (_, i) => slice.startAngle + span * i / steps);
|
|
1320
1320
|
const rim = (a, y) => {
|
|
1321
|
-
const p =
|
|
1321
|
+
const p = chunkJP26TA3Q_cjs.pieRimPoint(cx, cz, r, a);
|
|
1322
1322
|
return [p.x, y, p.z];
|
|
1323
1323
|
};
|
|
1324
1324
|
const radial = (a) => [Math.sin(a), 0, Math.cos(a)];
|
|
@@ -1362,7 +1362,7 @@ function sliceBuffers(three, layout, slice) {
|
|
|
1362
1362
|
function buildPieMarks(three, layout) {
|
|
1363
1363
|
const group = new three.Group();
|
|
1364
1364
|
group.matrixAutoUpdate = false;
|
|
1365
|
-
group.matrix.copy(
|
|
1365
|
+
group.matrix.copy(chunkJP26TA3Q_cjs.perspBoxMatrix(three, layout.view));
|
|
1366
1366
|
const material = new three.MeshBasicMaterial({
|
|
1367
1367
|
vertexColors: true,
|
|
1368
1368
|
side: three.DoubleSide,
|
|
@@ -1426,12 +1426,12 @@ function slicesWith(input, pointIndex, value) {
|
|
|
1426
1426
|
...input.element,
|
|
1427
1427
|
chartData: { ...input.chartData, series }
|
|
1428
1428
|
};
|
|
1429
|
-
return
|
|
1429
|
+
return chunkJP26TA3Q_cjs.computePieChartLayout(element, input.vm)?.slices ?? input.layout.slices;
|
|
1430
1430
|
}
|
|
1431
1431
|
function mountPieChartView(input, ctx) {
|
|
1432
1432
|
const three = ctx.three;
|
|
1433
1433
|
const { vm, layout, chartData } = input;
|
|
1434
|
-
const camera =
|
|
1434
|
+
const camera = chunkJP26TA3Q_cjs.buildPerspCamera(three, layout.view, vm.svgWidth, vm.svgHeight);
|
|
1435
1435
|
const scene = new three.Scene();
|
|
1436
1436
|
const marks = buildPieMarks(three, layout);
|
|
1437
1437
|
scene.add(marks.group);
|
|
@@ -1472,7 +1472,7 @@ function mountPieChartView(input, ctx) {
|
|
|
1472
1472
|
const start = values();
|
|
1473
1473
|
return {
|
|
1474
1474
|
preview(_dx, _dy, at) {
|
|
1475
|
-
const hit =
|
|
1475
|
+
const hit = chunkJP26TA3Q_cjs.perspScreenToPlaneY(layout.view, at.x, at.y, layout.center.y);
|
|
1476
1476
|
if (!hit) {
|
|
1477
1477
|
return start[point.pointIndex];
|
|
1478
1478
|
}
|
|
@@ -1480,7 +1480,7 @@ function mountPieChartView(input, ctx) {
|
|
|
1480
1480
|
hit.x - layout.center.x - slice.offset.x,
|
|
1481
1481
|
hit.z - layout.center.z - slice.offset.z
|
|
1482
1482
|
);
|
|
1483
|
-
const value =
|
|
1483
|
+
const value = chunkJP26TA3Q_cjs.resolvePieSliceShareValue(
|
|
1484
1484
|
angle,
|
|
1485
1485
|
slice.startAngle,
|
|
1486
1486
|
start,
|
|
@@ -1496,7 +1496,7 @@ function mountPieChartView(input, ctx) {
|
|
|
1496
1496
|
marker.visible = slice !== void 0;
|
|
1497
1497
|
if (slice) {
|
|
1498
1498
|
const mid = (slice.startAngle + slice.endAngle) / 2;
|
|
1499
|
-
const p =
|
|
1499
|
+
const p = chunkJP26TA3Q_cjs.pieRimPoint(
|
|
1500
1500
|
layout.center.x + slice.offset.x,
|
|
1501
1501
|
layout.center.z + slice.offset.z,
|
|
1502
1502
|
layout.radius * 0.6,
|
|
@@ -1561,7 +1561,7 @@ async function mountChart3DView(spec, ctx) {
|
|
|
1561
1561
|
return mountPieChartView(
|
|
1562
1562
|
{
|
|
1563
1563
|
element: spec.element,
|
|
1564
|
-
vm:
|
|
1564
|
+
vm: chunkJP26TA3Q_cjs.widenPieViewModel(spec.vm, spec.element),
|
|
1565
1565
|
layout: spec.geometry.layout,
|
|
1566
1566
|
chartData: chartData2,
|
|
1567
1567
|
categoryLabels: spec.categoryLabels
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { widenPieViewModel, buildPerspCamera, createSvgEl, appendChartLegendSvg, renderChartLineSvg, renderChartTextSvg, perspBoxMatrix, pieRimPoint, perspScreenToPlaneY, resolvePieSliceShareValue, perspToScreen, roundDragValue, buildBarChart3DHoverTooltip, isChartInteractionArmed, computePieChartLayout, obliqueBarTaper } from './chunk-
|
|
2
|
-
import { resolveChartPalette, shade, DEFAULT_BAR_GAP_WIDTH } from './chunk-
|
|
1
|
+
import { widenPieViewModel, buildPerspCamera, createSvgEl, appendChartLegendSvg, renderChartLineSvg, renderChartTextSvg, perspBoxMatrix, pieRimPoint, perspScreenToPlaneY, resolvePieSliceShareValue, perspToScreen, roundDragValue, buildBarChart3DHoverTooltip, isChartInteractionArmed, computePieChartLayout, obliqueBarTaper } from './chunk-DH6EKOVI.mjs';
|
|
2
|
+
import { resolveChartPalette, shade, DEFAULT_BAR_GAP_WIDTH } from './chunk-TW5UQCZS.mjs';
|
|
3
3
|
import { buildChart3DBoxFaceColors } from 'ooxml-core/chart';
|
|
4
4
|
|
|
5
5
|
var NORMAL_SHADE = {
|
|
@@ -8,14 +8,46 @@ function cssPx(width) {
|
|
|
8
8
|
const rounded = Number(width.toFixed(4));
|
|
9
9
|
return `${rounded > 0 ? rounded : 1e-4}px`;
|
|
10
10
|
}
|
|
11
|
-
|
|
11
|
+
var STEP = `max(var(${DEVICE_PX_VAR}, 0px), 0.001px)`;
|
|
12
|
+
function quantizedWidth(widthExpr) {
|
|
13
|
+
return `max(${STEP}, round(${widthExpr}, ${STEP}))`;
|
|
14
|
+
}
|
|
15
|
+
function screenStrokeWidth(width, minOutsideStage = 0) {
|
|
16
|
+
if (typeof width !== "number" || !Number.isFinite(width) || width <= 0) {
|
|
17
|
+
return "0px";
|
|
18
|
+
}
|
|
19
|
+
const quantized = quantizedWidth(cssPx(width));
|
|
20
|
+
return minOutsideStage > 0 ? `max(${quantized}, ${outsideStageFloor(minOutsideStage)})` : quantized;
|
|
21
|
+
}
|
|
22
|
+
function outsideStageFloor(min) {
|
|
23
|
+
const dp = `var(${DEVICE_PX_VAR}, 1000px)`;
|
|
24
|
+
const px = cssPx(min);
|
|
25
|
+
return `max(clamp(0px, calc(${dp} - 100px), ${px}), clamp(0px, calc((0.001px - ${dp}) * 1000), ${px}))`;
|
|
26
|
+
}
|
|
27
|
+
function snappedStrokeShift(coord, width) {
|
|
28
|
+
if (typeof width !== "number" || !Number.isFinite(width) || width <= 0 || !Number.isFinite(coord)) {
|
|
29
|
+
return "0px";
|
|
30
|
+
}
|
|
31
|
+
const at = `${Number(coord.toFixed(4))}px`;
|
|
32
|
+
const full = quantizedWidth(cssPx(width));
|
|
33
|
+
return `calc(round(${at}, ${STEP}) - round(down, calc(${full} / 2), ${STEP}) + ${full} / 2 - ${at})`;
|
|
34
|
+
}
|
|
35
|
+
function snappedStrokeTransform(axis, x, y, width) {
|
|
36
|
+
if (typeof width !== "number" || !Number.isFinite(width) || width <= 0) {
|
|
37
|
+
return void 0;
|
|
38
|
+
}
|
|
39
|
+
const dx = axis === "h" ? "0px" : snappedStrokeShift(x, width);
|
|
40
|
+
const dy = axis === "v" ? "0px" : snappedStrokeShift(y, width);
|
|
41
|
+
return `translate(${dx}, ${dy})`;
|
|
42
|
+
}
|
|
43
|
+
function screenBorderWidth(width) {
|
|
12
44
|
if (typeof width !== "number" || !Number.isFinite(width) || width <= 0) {
|
|
13
45
|
return "0px";
|
|
14
46
|
}
|
|
15
47
|
return `max(${cssPx(width)}, var(${DEVICE_PX_VAR}, 0px))`;
|
|
16
48
|
}
|
|
17
49
|
function screenBorder(width, style, color) {
|
|
18
|
-
return `${
|
|
50
|
+
return `${screenBorderWidth(width)} ${style ?? "solid"} ${color}`;
|
|
19
51
|
}
|
|
20
52
|
var watchedWindows = /* @__PURE__ */ new WeakSet();
|
|
21
53
|
function watchDevicePixelRatio(win = typeof window === "undefined" ? void 0 : window) {
|
|
@@ -112,7 +144,7 @@ async function loadChart3DThree() {
|
|
|
112
144
|
|
|
113
145
|
// src/pptx/three-view/scene-registry.ts
|
|
114
146
|
var loaders = {
|
|
115
|
-
chart: async () => (await import('./chart-3d-view-scene-
|
|
147
|
+
chart: async () => (await import('./chart-3d-view-scene-CGLU6ISD.mjs')).mountChart3DView,
|
|
116
148
|
smartart: async () => (await import('./view-scene-GHBN7QMR.mjs')).mountSmartArt3DView
|
|
117
149
|
};
|
|
118
150
|
async function loadThreeViewScene(kind) {
|
|
@@ -1034,4 +1066,4 @@ function pinCapturedSize(original, clonedEl) {
|
|
|
1034
1066
|
});
|
|
1035
1067
|
}
|
|
1036
1068
|
|
|
1037
|
-
export { CLONE_STYLE_SHEET_TIMEOUT_MS, DEVICE_PIXEL_RATIO_VAR, DEVICE_PX_VAR, MAX_DEVICE_PIXEL_RATIO, THREE_VIEW_MARKER_ATTR, THREE_VIEW_SETTLE_TIMEOUT_MS, THREE_VIEW_SNAPSHOT_ATTR, THREE_VIEW_TAG, clonedStyleSheetsLoaded, computeThreeViewSize, defineThreeViewElement, deviceStrokeStageStyle, flatten3dTransform, flatten3dTransforms, flattenBackdropFilter, flattenMixBlendMode, has3dTransform, html2canvasCaptureScope, isExportIgnoredElement, neutralizeDeviceStrokes, parseBlurValue, pinCapturedSize, prepareExportClone, prepareHtml2CanvasClone, preprocessCssForCapture, removeUnsupportedFeatures, resolveCustomProperties, screenBorder, screenStrokeWidth, settleThreeViews, snapshotThreeViewsIntoClone, watchDevicePixelRatio, withAuthoredStrokeWidths };
|
|
1069
|
+
export { CLONE_STYLE_SHEET_TIMEOUT_MS, DEVICE_PIXEL_RATIO_VAR, DEVICE_PX_VAR, MAX_DEVICE_PIXEL_RATIO, THREE_VIEW_MARKER_ATTR, THREE_VIEW_SETTLE_TIMEOUT_MS, THREE_VIEW_SNAPSHOT_ATTR, THREE_VIEW_TAG, clonedStyleSheetsLoaded, computeThreeViewSize, defineThreeViewElement, deviceStrokeStageStyle, flatten3dTransform, flatten3dTransforms, flattenBackdropFilter, flattenMixBlendMode, has3dTransform, html2canvasCaptureScope, isExportIgnoredElement, neutralizeDeviceStrokes, parseBlurValue, pinCapturedSize, prepareExportClone, prepareHtml2CanvasClone, preprocessCssForCapture, removeUnsupportedFeatures, resolveCustomProperties, screenBorder, screenBorderWidth, screenStrokeWidth, settleThreeViews, snappedStrokeShift, snappedStrokeTransform, snapshotThreeViewsIntoClone, watchDevicePixelRatio, withAuthoredStrokeWidths };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { THREE_VIEW_EVENTS, applyChart3DSelect, applyChart3DDrag, resolveSmartArtThreeViewSpec, elementInLocalFrame, SMARTART_3D_EDIT_LAYER_ATTRIBUTE, stripEditLayerMarkers, routeEditLayerPointerToNodes, measureSvgViewportRect, findSmartArtNodeText, resolvePalette, smartArtConnectorPaint, smartArtNodeLabel, getContainerStyle, buildChromeStyle, buildSmartArtA11y, resolveRevealedSmartArtNodes, resolveRevealedDrawingShapes, computeSmartArtElementLayout, flattenNodes, computeDrawingViewBox, projectDrawingShapes, styleShadowFilter, resolveRevealedDrawingShapeNodeIds, refreshSmartArtPictureImage, SMARTART_PREVIEW_ELEMENT_WIDTH, SMARTART_PREVIEW_ELEMENT_HEIGHT, buildSmartArtPreviewElement, isForwardedEditLayerEvent } from './chunk-
|
|
1
|
+
import { THREE_VIEW_EVENTS, applyChart3DSelect, applyChart3DDrag, resolveSmartArtThreeViewSpec, elementInLocalFrame, SMARTART_3D_EDIT_LAYER_ATTRIBUTE, stripEditLayerMarkers, routeEditLayerPointerToNodes, measureSvgViewportRect, findSmartArtNodeText, resolvePalette, smartArtConnectorPaint, smartArtNodeLabel, getContainerStyle, buildChromeStyle, buildSmartArtA11y, resolveRevealedSmartArtNodes, resolveRevealedDrawingShapes, computeSmartArtElementLayout, flattenNodes, computeDrawingViewBox, projectDrawingShapes, styleShadowFilter, resolveRevealedDrawingShapeNodeIds, refreshSmartArtPictureImage, SMARTART_PREVIEW_ELEMENT_WIDTH, SMARTART_PREVIEW_ELEMENT_HEIGHT, buildSmartArtPreviewElement, isForwardedEditLayerEvent } from './chunk-OPLK7GPB.mjs';
|
|
2
2
|
import { canDrillDown } from './chunk-FUKVYJPM.mjs';
|
|
3
|
-
import { formatAxisValue } from './chunk-
|
|
4
|
-
import { THREE_VIEW_TAG, defineThreeViewElement } from './chunk-
|
|
3
|
+
import { formatAxisValue } from './chunk-TW5UQCZS.mjs';
|
|
4
|
+
import { THREE_VIEW_TAG, defineThreeViewElement } from './chunk-BA4CJI4U.mjs';
|
|
5
5
|
|
|
6
6
|
// src/pptx/dom/dom.ts
|
|
7
7
|
function toCssPropertyName(key) {
|
|
@@ -10,14 +10,46 @@ function cssPx(width) {
|
|
|
10
10
|
const rounded = Number(width.toFixed(4));
|
|
11
11
|
return `${rounded > 0 ? rounded : 1e-4}px`;
|
|
12
12
|
}
|
|
13
|
-
|
|
13
|
+
var STEP = `max(var(${DEVICE_PX_VAR}, 0px), 0.001px)`;
|
|
14
|
+
function quantizedWidth(widthExpr) {
|
|
15
|
+
return `max(${STEP}, round(${widthExpr}, ${STEP}))`;
|
|
16
|
+
}
|
|
17
|
+
function screenStrokeWidth(width, minOutsideStage = 0) {
|
|
18
|
+
if (typeof width !== "number" || !Number.isFinite(width) || width <= 0) {
|
|
19
|
+
return "0px";
|
|
20
|
+
}
|
|
21
|
+
const quantized = quantizedWidth(cssPx(width));
|
|
22
|
+
return minOutsideStage > 0 ? `max(${quantized}, ${outsideStageFloor(minOutsideStage)})` : quantized;
|
|
23
|
+
}
|
|
24
|
+
function outsideStageFloor(min) {
|
|
25
|
+
const dp = `var(${DEVICE_PX_VAR}, 1000px)`;
|
|
26
|
+
const px = cssPx(min);
|
|
27
|
+
return `max(clamp(0px, calc(${dp} - 100px), ${px}), clamp(0px, calc((0.001px - ${dp}) * 1000), ${px}))`;
|
|
28
|
+
}
|
|
29
|
+
function snappedStrokeShift(coord, width) {
|
|
30
|
+
if (typeof width !== "number" || !Number.isFinite(width) || width <= 0 || !Number.isFinite(coord)) {
|
|
31
|
+
return "0px";
|
|
32
|
+
}
|
|
33
|
+
const at = `${Number(coord.toFixed(4))}px`;
|
|
34
|
+
const full = quantizedWidth(cssPx(width));
|
|
35
|
+
return `calc(round(${at}, ${STEP}) - round(down, calc(${full} / 2), ${STEP}) + ${full} / 2 - ${at})`;
|
|
36
|
+
}
|
|
37
|
+
function snappedStrokeTransform(axis, x, y, width) {
|
|
38
|
+
if (typeof width !== "number" || !Number.isFinite(width) || width <= 0) {
|
|
39
|
+
return void 0;
|
|
40
|
+
}
|
|
41
|
+
const dx = axis === "h" ? "0px" : snappedStrokeShift(x, width);
|
|
42
|
+
const dy = axis === "v" ? "0px" : snappedStrokeShift(y, width);
|
|
43
|
+
return `translate(${dx}, ${dy})`;
|
|
44
|
+
}
|
|
45
|
+
function screenBorderWidth(width) {
|
|
14
46
|
if (typeof width !== "number" || !Number.isFinite(width) || width <= 0) {
|
|
15
47
|
return "0px";
|
|
16
48
|
}
|
|
17
49
|
return `max(${cssPx(width)}, var(${DEVICE_PX_VAR}, 0px))`;
|
|
18
50
|
}
|
|
19
51
|
function screenBorder(width, style, color) {
|
|
20
|
-
return `${
|
|
52
|
+
return `${screenBorderWidth(width)} ${style ?? "solid"} ${color}`;
|
|
21
53
|
}
|
|
22
54
|
var watchedWindows = /* @__PURE__ */ new WeakSet();
|
|
23
55
|
function watchDevicePixelRatio(win = typeof window === "undefined" ? void 0 : window) {
|
|
@@ -114,7 +146,7 @@ async function loadChart3DThree() {
|
|
|
114
146
|
|
|
115
147
|
// src/pptx/three-view/scene-registry.ts
|
|
116
148
|
var loaders = {
|
|
117
|
-
chart: async () => (await import('./chart-3d-view-scene-
|
|
149
|
+
chart: async () => (await import('./chart-3d-view-scene-C7QUQTXD.cjs')).mountChart3DView,
|
|
118
150
|
smartart: async () => (await import('./view-scene-4ZFUCP6S.cjs')).mountSmartArt3DView
|
|
119
151
|
};
|
|
120
152
|
async function loadThreeViewScene(kind) {
|
|
@@ -1064,8 +1096,11 @@ exports.preprocessCssForCapture = preprocessCssForCapture;
|
|
|
1064
1096
|
exports.removeUnsupportedFeatures = removeUnsupportedFeatures;
|
|
1065
1097
|
exports.resolveCustomProperties = resolveCustomProperties;
|
|
1066
1098
|
exports.screenBorder = screenBorder;
|
|
1099
|
+
exports.screenBorderWidth = screenBorderWidth;
|
|
1067
1100
|
exports.screenStrokeWidth = screenStrokeWidth;
|
|
1068
1101
|
exports.settleThreeViews = settleThreeViews;
|
|
1102
|
+
exports.snappedStrokeShift = snappedStrokeShift;
|
|
1103
|
+
exports.snappedStrokeTransform = snappedStrokeTransform;
|
|
1069
1104
|
exports.snapshotThreeViewsIntoClone = snapshotThreeViewsIntoClone;
|
|
1070
1105
|
exports.watchDevicePixelRatio = watchDevicePixelRatio;
|
|
1071
1106
|
exports.withAuthoredStrokeWidths = withAuthoredStrokeWidths;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { computePlotLayout, radarAngle, computeStackedSeriesPlots, computeLayoutOptions, computeStackedValueRangeForAxis, primaryValueAxis, valueToY2, collapseChartTitleRunsForEdit, computePieLayout, computeChartLegendLayout, buildMarkTooltip, formatAxisValueWithUnits, axisTickValues } from './chunk-
|
|
1
|
+
import { computePlotLayout, radarAngle, computeStackedSeriesPlots, computeLayoutOptions, computeStackedValueRangeForAxis, primaryValueAxis, valueToY2, collapseChartTitleRunsForEdit, computePieLayout, computeChartLegendLayout, buildMarkTooltip, formatAxisValueWithUnits, axisTickValues } from './chunk-TW5UQCZS.mjs';
|
|
2
2
|
|
|
3
3
|
// src/pptx/render/chart-interaction-radar.ts
|
|
4
4
|
function buildRadarDragGeometry(element, chartData, categoryLabels, pointIndex) {
|
|
@@ -600,6 +600,12 @@ var OFFICE_TOKENS = {
|
|
|
600
600
|
"--office-title-bar-name-max-width-narrow": "140px",
|
|
601
601
|
"--office-title-bar-search-max-width": "448px",
|
|
602
602
|
"--office-title-bar-results-max-height": "256px",
|
|
603
|
+
// Office app brand colours (file-type badges, app tiles); kept in dark themes like Office icons
|
|
604
|
+
"--office-word-brand": "#185abd",
|
|
605
|
+
"--office-excel-brand": "#107c41",
|
|
606
|
+
"--office-powerpoint-brand": "#c43e1c",
|
|
607
|
+
"--office-visio-brand": "#3955a3",
|
|
608
|
+
"--office-app-brand-foreground": "#ffffff",
|
|
603
609
|
// Component: team workspace (a Teams-like surface)
|
|
604
610
|
"--office-teams-brand": "#5b5fc7",
|
|
605
611
|
"--office-teams-brand-hover": "#4f52b2",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkYZWKNFPU_cjs = require('./chunk-YZWKNFPU.cjs');
|
|
4
4
|
|
|
5
5
|
// src/pptx/render/chart-interaction-radar.ts
|
|
6
6
|
function buildRadarDragGeometry(element, chartData, categoryLabels, pointIndex) {
|
|
@@ -11,7 +11,7 @@ function buildRadarDragGeometry(element, chartData, categoryLabels, pointIndex)
|
|
|
11
11
|
if (pointIndex < 0 || pointIndex >= catCount) {
|
|
12
12
|
return null;
|
|
13
13
|
}
|
|
14
|
-
const layout =
|
|
14
|
+
const layout = chunkYZWKNFPU_cjs.computePlotLayout(element.width, element.height, chartData, false), cx = layout.plotLeft + layout.plotWidth / 2, cy = layout.plotTop + layout.plotHeight / 2, radius = Math.max(Math.min(layout.plotWidth, layout.plotHeight) / 2 - 4, 1), maxVal = Math.max(1, ...chartData.series.flatMap((s) => s.values.map((v) => Math.abs(v)))), angle = chunkYZWKNFPU_cjs.radarAngle(pointIndex, catCount);
|
|
15
15
|
return { cx, cy, radius, maxVal, angle };
|
|
16
16
|
}
|
|
17
17
|
function resolveRadarDragValue(geometry, pointerX, pointerY) {
|
|
@@ -35,13 +35,13 @@ function buildStackedDragGeometry(element, chartData, seriesIndex, pointIndex) {
|
|
|
35
35
|
chartData.categories.length,
|
|
36
36
|
...seriesValues.map((values) => values.length),
|
|
37
37
|
pointIndex + 1
|
|
38
|
-
), plots =
|
|
38
|
+
), plots = chunkYZWKNFPU_cjs.computeStackedSeriesPlots(seriesValues, catCount, percent), baseValue = plots[seriesIndex]?.base[pointIndex] ?? 0, otherAbsSum = seriesValues.reduce(
|
|
39
39
|
(sum, values, si) => si === seriesIndex ? sum : sum + Math.abs(values[pointIndex] ?? 0),
|
|
40
40
|
0
|
|
41
|
-
), layoutOpts =
|
|
41
|
+
), layoutOpts = chunkYZWKNFPU_cjs.computeLayoutOptions(chartData.axes, chartData.dataTable, chartData.series.length), layout = chunkYZWKNFPU_cjs.computePlotLayout(element.width, element.height, chartData, true, layoutOpts), range = chunkYZWKNFPU_cjs.computeStackedValueRangeForAxis(
|
|
42
42
|
chartData.series,
|
|
43
43
|
catCount,
|
|
44
|
-
|
|
44
|
+
chunkYZWKNFPU_cjs.primaryValueAxis(chartData.axes),
|
|
45
45
|
percent,
|
|
46
46
|
layout.autoPlotHeight
|
|
47
47
|
);
|
|
@@ -156,7 +156,7 @@ function dragValueForPart(viewY, drag, seriesIndex) {
|
|
|
156
156
|
return roundDragValue(valueFromY(viewY, range, drag.plotTop, drag.plotBottom), range);
|
|
157
157
|
}
|
|
158
158
|
function dragAnchorViewY(value, drag, seriesIndex) {
|
|
159
|
-
return
|
|
159
|
+
return chunkYZWKNFPU_cjs.valueToY2(value, rangeForSeries(drag, seriesIndex), drag.plotTop, drag.plotBottom);
|
|
160
160
|
}
|
|
161
161
|
function withChartPointValue(chartData, seriesIndex, pointIndex, value) {
|
|
162
162
|
const series = chartData.series[seriesIndex];
|
|
@@ -177,7 +177,7 @@ function withChartTitle(chartData, title) {
|
|
|
177
177
|
// A multi-run title collapses to one run in its dominant style so this
|
|
178
178
|
// edit does not leave another, now-stale run's text trailing the new
|
|
179
179
|
// title; see `collapseChartTitleRunsForEdit`'s doc.
|
|
180
|
-
...
|
|
180
|
+
...chunkYZWKNFPU_cjs.collapseChartTitleRunsForEdit(chartData, trimmed),
|
|
181
181
|
style: { ...chartData.style, hasTitle: trimmed.length > 0 }
|
|
182
182
|
};
|
|
183
183
|
}
|
|
@@ -223,7 +223,7 @@ function buildPieDragGeometry(element, chartData, pointIndex) {
|
|
|
223
223
|
if (!series || pointIndex < 0 || pointIndex >= series.values.length) {
|
|
224
224
|
return null;
|
|
225
225
|
}
|
|
226
|
-
const isDoughnut = chartData.chartType === "doughnut", { cx, cy } =
|
|
226
|
+
const isDoughnut = chartData.chartType === "doughnut", { cx, cy } = chunkYZWKNFPU_cjs.computePieLayout(element.width, element.height, chartData, isDoughnut), startAngle = -Math.PI / 2 + (chartData.firstSliceAngle ?? 0) * Math.PI / 180;
|
|
227
227
|
return { cx, cy, values: series.values, pointIndex, startAngle };
|
|
228
228
|
}
|
|
229
229
|
function resolvePieSliceShareValue(pointerAngle, leadingAngle, values, pointIndex) {
|
|
@@ -628,7 +628,7 @@ function renderChartTextSvg(doc, text) {
|
|
|
628
628
|
return el;
|
|
629
629
|
}
|
|
630
630
|
function appendChartLegendSvg(doc, svg, vm, translate) {
|
|
631
|
-
|
|
631
|
+
chunkYZWKNFPU_cjs.computeChartLegendLayout(vm, translate).forEach((item) => {
|
|
632
632
|
const g = createSvgEl(doc, "g", {
|
|
633
633
|
class: "pptxv-chart-legend-item",
|
|
634
634
|
transform: `translate(${item.x.toFixed(1)},${item.y.toFixed(1)})`
|
|
@@ -942,7 +942,7 @@ function buildBarChart3DHoverTooltip(hit, data) {
|
|
|
942
942
|
if (!hit) {
|
|
943
943
|
return void 0;
|
|
944
944
|
}
|
|
945
|
-
return
|
|
945
|
+
return chunkYZWKNFPU_cjs.buildMarkTooltip(
|
|
946
946
|
data.seriesNames[hit.seriesIndex],
|
|
947
947
|
data.categoryLabels[hit.categoryIndex],
|
|
948
948
|
hit.value,
|
|
@@ -955,7 +955,7 @@ function formatValueLabel(chartData, grouping, v) {
|
|
|
955
955
|
if (grouping === "percentStacked") {
|
|
956
956
|
return `${Math.round(v * 100)}%`;
|
|
957
957
|
}
|
|
958
|
-
return
|
|
958
|
+
return chunkYZWKNFPU_cjs.formatAxisValueWithUnits(
|
|
959
959
|
v,
|
|
960
960
|
chartData.axes?.find((a) => a.axisType === "valAx")
|
|
961
961
|
);
|
|
@@ -1039,7 +1039,7 @@ function buildGridlines(layout) {
|
|
|
1039
1039
|
const { w, h, d } = layout.box;
|
|
1040
1040
|
const lines = [];
|
|
1041
1041
|
const span = layout.range.max - layout.range.min;
|
|
1042
|
-
for (const v of
|
|
1042
|
+
for (const v of chunkYZWKNFPU_cjs.axisTickValues({ ...layout.range, span })) {
|
|
1043
1043
|
const p = valuePos(layout, v);
|
|
1044
1044
|
if (layout.horizontal) {
|
|
1045
1045
|
lines.push({ from: [p, 0, d], to: [p, h, d] }, { from: [p, 0, 0], to: [p, 0, d] });
|