ooxml-ui 1.51.0 → 1.52.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 +17 -1
- package/custom-elements.json +72 -0
- package/dist/chart/format-pane-analysis.d.ts +1 -0
- package/dist/chart/format-pane-axis.d.ts +1 -0
- package/dist/chart/format-pane-fill-kinds.d.ts +1 -0
- package/dist/chart/format-pane-fill-line.d.ts +1 -0
- package/dist/chart/format-pane-locales/index.d.ts +1 -1
- package/dist/chart/format-pane-locales/index.d.ts.map +1 -1
- package/dist/chart/format-pane-locales/ja.d.ts +3 -0
- package/dist/chart/format-pane-locales/ja.d.ts.map +1 -0
- package/dist/chart/format-pane-locales/ko.d.ts +3 -0
- package/dist/chart/format-pane-locales/ko.d.ts.map +1 -0
- package/dist/chart/format-pane-model.d.ts +1 -0
- package/dist/chart/format-pane-text.d.ts +1 -0
- package/dist/chart/format-pane-types.d.ts +1 -0
- package/dist/chart/format-pane-view.d.ts +1 -0
- package/dist/chart-format-locales.js +1 -1
- package/dist/chrome/format-section.d.ts +50 -0
- package/dist/chrome/format-section.d.ts.map +1 -0
- package/dist/{chunk-SRYBCJC2.js → chunk-3TF5IIIJ.js} +62 -13
- package/dist/{chunk-FE5KE5TR.js → chunk-4W4QZF4C.js} +1 -1
- package/dist/{chunk-6EOS74O4.js → chunk-5FMWQWLP.js} +27 -2
- package/dist/{chunk-N6AKS4ED.js → chunk-6C6S4AWF.js} +47 -4
- package/dist/{chunk-63ELC26U.js → chunk-ALWA7Q42.js} +6 -5
- package/dist/{chunk-IHZK4NPQ.js → chunk-FP45SLBV.js} +6 -6
- package/dist/{chunk-Q6WZEGAM.js → chunk-FQN4XNEF.js} +1 -1
- package/dist/{chunk-4OBMFPGF.js → chunk-GSO4HLIY.js} +620 -2
- package/dist/{chunk-II43ALTT.js → chunk-HUR5JAG7.js} +1 -1
- package/dist/{chunk-BY7X2LNM.js → chunk-JNCHVQQA.js} +4 -4
- package/dist/{chunk-6FFZFH73.js → chunk-QDU4GLWK.js} +1 -1
- package/dist/{chunk-2JHM6UO3.js → chunk-QGRJJUH7.js} +1 -1
- package/dist/controls.d.ts +4 -2
- package/dist/controls.d.ts.map +1 -1
- package/dist/controls.js +5 -5
- package/dist/docx/backstage-pages.d.ts +2 -0
- package/dist/docx/context-menu-actions.d.ts +14 -1
- package/dist/docx/context-menu-items.d.ts +13 -0
- package/dist/docx/convert-notes-dialog.d.ts +14 -0
- package/dist/docx/document-information-attr.d.ts +14 -0
- package/dist/docx/document-inspector-apply.d.ts +20 -0
- package/dist/docx/document-inspector-dialog.d.ts +16 -0
- package/dist/docx/editor-chrome.d.ts +2 -0
- package/dist/docx/editor-plugins.d.ts +5 -0
- package/dist/docx/field-update.d.ts +4 -3
- package/dist/docx/format-dialogs.d.ts +7 -1
- package/dist/docx/locales/convert-notes.d.ts +14 -0
- package/dist/docx/locales/document-inspector.d.ts +39 -0
- package/dist/docx/locales/en.d.ts +66 -0
- package/dist/docx/locales/find-stories.d.ts +10 -0
- package/dist/docx/locales/paste-options.d.ts +17 -0
- package/dist/docx/locales/picture-watermark.d.ts +12 -0
- package/dist/docx/locales/picture.d.ts +11 -0
- package/dist/docx/localization-strings.d.ts +66 -0
- package/dist/docx/note-commands.d.ts +12 -1
- package/dist/docx/page-controller.d.ts +5 -4
- package/dist/docx/parts-controller.d.ts +21 -3
- package/dist/docx/parts-story-writes.d.ts +10 -0
- package/dist/docx/paste-options-button.d.ts +18 -0
- package/dist/docx/paste-options.d.ts +45 -0
- package/dist/docx/paste-special-dialog.d.ts +11 -0
- package/dist/docx/picture-dialog.d.ts +3 -2
- package/dist/docx/picture-drop.d.ts +25 -0
- package/dist/docx/picture-format-commands.d.ts +25 -0
- package/dist/docx/picture-format-ribbon.d.ts +4 -0
- package/dist/docx/print-header-footer.d.ts +6 -2
- package/dist/docx/print-inline-object.d.ts +3 -0
- package/dist/docx/print-picture-watermark.d.ts +11 -0
- package/dist/docx/ribbon-action.d.ts +14 -0
- package/dist/docx/ribbon-icons.d.ts +1 -0
- package/dist/docx/search-controller.d.ts +24 -2
- package/dist/docx/search-panel-options.d.ts +10 -0
- package/dist/docx/search-panel.d.ts +3 -0
- package/dist/docx/search-stories.d.ts +38 -0
- package/dist/docx/search-story-host.d.ts +13 -0
- package/dist/docx/search-story-replace.d.ts +33 -0
- package/dist/docx/shape-commands.d.ts +2 -2
- package/dist/docx/shape-format-ribbon.d.ts +1 -0
- package/dist/docx/table-properties.d.ts +2 -1
- package/dist/docx/watermark-commands.d.ts +6 -3
- package/dist/docx/watermark-dialog.d.ts +25 -4
- package/dist/docx/watermark-picture.d.ts +12 -0
- package/dist/docx/word-paste.d.ts +13 -0
- package/dist/docx.js +3435 -1256
- package/dist/embedding/region-host.d.ts +1 -0
- package/dist/export/pdf-embedded-font.d.ts +1 -0
- package/dist/export/pdf-embedded-font.d.ts.map +1 -0
- package/dist/export/pdf-font-faces.d.ts +26 -0
- package/dist/export/pdf-font-faces.d.ts.map +1 -0
- package/dist/export/pdf-fonts.d.ts +1 -0
- package/dist/export/pdf-fonts.d.ts.map +1 -0
- package/dist/export/pdf-image.d.ts +18 -0
- package/dist/export/pdf-image.d.ts.map +1 -0
- package/dist/{visio → export}/pdf-path.d.ts +1 -0
- package/dist/export/pdf-path.d.ts.map +1 -0
- package/dist/{visio → export}/pdf-svg-gradient.d.ts +2 -1
- package/dist/export/pdf-svg-gradient.d.ts.map +1 -0
- package/dist/export/pdf-svg-notes.d.ts +25 -0
- package/dist/export/pdf-svg-notes.d.ts.map +1 -0
- package/dist/export/pdf-svg-shapes.d.ts +3 -0
- package/dist/export/pdf-svg-shapes.d.ts.map +1 -0
- package/dist/{visio → export}/pdf-svg-style.d.ts +1 -0
- package/dist/export/pdf-svg-style.d.ts.map +1 -0
- package/dist/export/pdf-svg-text.d.ts +11 -0
- package/dist/export/pdf-svg-text.d.ts.map +1 -0
- package/dist/{visio → export}/pdf-svg.d.ts +13 -3
- package/dist/export/pdf-svg.d.ts.map +1 -0
- package/dist/export/pdf-vector.d.ts +14 -8
- package/dist/export/pdf-vector.d.ts.map +1 -0
- package/dist/fonts/webfonts.d.ts +5 -3
- package/dist/fonts/webfonts.d.ts.map +1 -1
- package/dist/image-native-size.d.ts +1 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.js +10 -10
- package/dist/look-tokens.d.ts +25 -0
- package/dist/look-tokens.d.ts.map +1 -0
- package/dist/look.d.ts +29 -0
- package/dist/look.d.ts.map +1 -0
- package/dist/notices/toasts.d.ts +3 -0
- package/dist/notices/toasts.d.ts.map +1 -1
- package/dist/picture-effects.d.ts +1 -0
- package/dist/pptx/{chunk-VOBKKF45.mjs → chunk-5454QDUH.mjs} +712 -3
- package/dist/pptx/{chunk-U6YDJVNS.cjs → chunk-7ZRVQFQN.cjs} +47 -47
- package/dist/pptx/{chunk-2FKBWWSS.cjs → chunk-AN34Z3QP.cjs} +145 -2
- package/dist/pptx/{chunk-XLSW7WM3.mjs → chunk-EEELXUAE.mjs} +135 -3
- package/dist/pptx/{chunk-XZSGVMRN.cjs → chunk-IV2F5JWR.cjs} +62 -3
- package/dist/pptx/{chunk-VR6UAL2A.mjs → chunk-KCIIXE4D.mjs} +93724 -88066
- package/dist/pptx/{chunk-EU7TGRWX.mjs → chunk-NGOH4ENE.mjs} +2 -2
- package/dist/pptx/{chunk-G4VNRJUX.mjs → chunk-Q23MZFWZ.mjs} +62 -3
- package/dist/pptx/{chunk-OIEN54CC.cjs → chunk-SC4VATDY.cjs} +90551 -84780
- package/dist/pptx/{chunk-3JGYWDMR.cjs → chunk-WKKLVLLP.cjs} +712 -3
- package/dist/pptx/dom/index.cjs +380 -380
- package/dist/pptx/dom/index.mjs +8 -8
- package/dist/pptx/export/html2canvas-clone.cjs +6 -6
- package/dist/pptx/export/html2canvas-clone.mjs +1 -1
- package/dist/pptx/export/index.d.ts +6 -0
- package/dist/pptx/export/index.d.ts.map +1 -1
- package/dist/pptx/export/pdf-export-diagnostics.d.ts +44 -0
- package/dist/pptx/export/pdf-export-diagnostics.d.ts.map +1 -0
- package/dist/pptx/export/pdf-export-notice.d.ts +52 -0
- package/dist/pptx/export/pdf-export-notice.d.ts.map +1 -0
- package/dist/pptx/export/pdf-export-run.d.ts +30 -0
- package/dist/pptx/export/pdf-export-run.d.ts.map +1 -0
- package/dist/pptx/export/pdf-vector-box.d.ts +26 -0
- package/dist/pptx/export/pdf-vector-box.d.ts.map +1 -0
- package/dist/pptx/export/pdf-vector-collect-parts.d.ts +49 -0
- package/dist/pptx/export/pdf-vector-collect-parts.d.ts.map +1 -0
- package/dist/pptx/export/pdf-vector-collect.d.ts +39 -0
- package/dist/pptx/export/pdf-vector-collect.d.ts.map +1 -0
- package/dist/pptx/export/pdf-vector-css.d.ts +36 -0
- package/dist/pptx/export/pdf-vector-css.d.ts.map +1 -0
- package/dist/pptx/export/pdf-vector-display-list.d.ts +92 -0
- package/dist/pptx/export/pdf-vector-display-list.d.ts.map +1 -0
- package/dist/pptx/export/pdf-vector-export.d.ts +63 -0
- package/dist/pptx/export/pdf-vector-export.d.ts.map +1 -0
- package/dist/pptx/export/pdf-vector-paint.d.ts +44 -0
- package/dist/pptx/export/pdf-vector-paint.d.ts.map +1 -0
- package/dist/pptx/export/pdf-vector-raster-batch.d.ts +43 -0
- package/dist/pptx/export/pdf-vector-raster-batch.d.ts.map +1 -0
- package/dist/pptx/export/pdf-vector-raster-isolate.d.ts +67 -0
- package/dist/pptx/export/pdf-vector-raster-isolate.d.ts.map +1 -0
- package/dist/pptx/export/pdf-vector-raster-live.d.ts +17 -0
- package/dist/pptx/export/pdf-vector-raster-live.d.ts.map +1 -0
- package/dist/pptx/export/pdf-vector-raster-template.d.ts +26 -0
- package/dist/pptx/export/pdf-vector-raster-template.d.ts.map +1 -0
- package/dist/pptx/export/pdf-vector-raster.d.ts +27 -0
- package/dist/pptx/export/pdf-vector-raster.d.ts.map +1 -0
- package/dist/pptx/export/pdf-vector-select.d.ts +30 -0
- package/dist/pptx/export/pdf-vector-select.d.ts.map +1 -0
- package/dist/pptx/export/pdf-vector-svg.d.ts +13 -0
- package/dist/pptx/export/pdf-vector-svg.d.ts.map +1 -0
- package/dist/pptx/export/pdf-vector-text.d.ts +35 -0
- package/dist/pptx/export/pdf-vector-text.d.ts.map +1 -0
- package/dist/pptx/export/pdf-vector-timeout.d.ts +15 -0
- package/dist/pptx/export/pdf-vector-timeout.d.ts.map +1 -0
- package/dist/pptx/export/pdf-vector-transforms.d.ts +15 -0
- package/dist/pptx/export/pdf-vector-transforms.d.ts.map +1 -0
- package/dist/pptx/i18n/index.cjs +6 -6
- package/dist/pptx/i18n/index.mjs +1 -1
- package/dist/pptx/i18n/locale-catalog.d.ts.map +1 -1
- package/dist/pptx/i18n/translations-en-pdf-export.d.ts +7 -0
- package/dist/pptx/i18n/translations-en-pdf-export.d.ts.map +1 -0
- package/dist/pptx/i18n/translations-en.d.ts.map +1 -1
- package/dist/pptx/index.cjs +3652 -3260
- package/dist/pptx/index.mjs +4 -4
- package/dist/pptx/render/chrome-controls-state.d.ts +10 -0
- package/dist/pptx/render/chrome-controls-state.d.ts.map +1 -1
- package/dist/pptx/render/compatibility-warning-toasts.d.ts +12 -0
- package/dist/pptx/render/compatibility-warning-toasts.d.ts.map +1 -1
- package/dist/pptx/render/controller/format-pane-controller.d.ts +69 -0
- package/dist/pptx/render/controller/format-pane-controller.d.ts.map +1 -0
- package/dist/pptx/render/controller/index.d.ts +2 -0
- package/dist/pptx/render/controller/index.d.ts.map +1 -1
- package/dist/pptx/render/customization/customization-resolve.d.ts +4 -0
- package/dist/pptx/render/customization/customization-resolve.d.ts.map +1 -1
- package/dist/pptx/render/customization/customization-types.d.ts +7 -1
- package/dist/pptx/render/customization/customization-types.d.ts.map +1 -1
- package/dist/pptx/render/customization/ribbon-control-visibility.d.ts.map +1 -1
- package/dist/pptx/render/deck-webfont-readiness.d.ts.map +1 -1
- package/dist/pptx/render/editor-chrome/cards-css.d.ts +9 -0
- package/dist/pptx/render/editor-chrome/cards-css.d.ts.map +1 -0
- package/dist/pptx/render/editor-chrome/home-layout-css.d.ts.map +1 -1
- package/dist/pptx/render/editor-chrome/index.d.ts +1 -0
- package/dist/pptx/render/editor-chrome/index.d.ts.map +1 -1
- package/dist/pptx/render/embedded-font-bytes.d.ts.map +1 -1
- package/dist/pptx/render/embedded-font-trust.d.ts.map +1 -1
- package/dist/pptx/render/export-clone.d.ts.map +1 -1
- package/dist/pptx/render/font-embedding.d.ts +26 -0
- package/dist/pptx/render/font-embedding.d.ts.map +1 -1
- package/dist/pptx/render/foreign-object-svg-document.d.ts +32 -1
- package/dist/pptx/render/foreign-object-svg-document.d.ts.map +1 -1
- package/dist/pptx/render/google-webfonts.d.ts +11 -1
- package/dist/pptx/render/google-webfonts.d.ts.map +1 -1
- package/dist/pptx/render/html-text-paste.d.ts +26 -0
- package/dist/pptx/render/html-text-paste.d.ts.map +1 -0
- package/dist/pptx/render/index.d.ts +13 -0
- package/dist/pptx/render/index.d.ts.map +1 -1
- package/dist/pptx/render/inline-caret-offset.d.ts +12 -0
- package/dist/pptx/render/inline-caret-offset.d.ts.map +1 -0
- package/dist/pptx/render/inline-caret.d.ts +0 -9
- package/dist/pptx/render/inline-caret.d.ts.map +1 -1
- package/dist/pptx/render/inline-rich-paste.d.ts +53 -0
- package/dist/pptx/render/inline-rich-paste.d.ts.map +1 -0
- package/dist/pptx/render/inspector/format-panel-sections.d.ts +42 -0
- package/dist/pptx/render/inspector/format-panel-sections.d.ts.map +1 -0
- package/dist/pptx/render/inspector/format-section-mixed.d.ts +27 -0
- package/dist/pptx/render/inspector/format-section-mixed.d.ts.map +1 -0
- package/dist/pptx/render/inspector/format-section-reveal.d.ts +21 -0
- package/dist/pptx/render/inspector/format-section-reveal.d.ts.map +1 -0
- package/dist/pptx/render/inspector/format-sections.d.ts +54 -0
- package/dist/pptx/render/inspector/format-sections.d.ts.map +1 -0
- package/dist/pptx/render/inspector/index.d.ts +7 -0
- package/dist/pptx/render/inspector/index.d.ts.map +1 -1
- package/dist/pptx/render/options/viewer-options-apply.d.ts +8 -0
- package/dist/pptx/render/options/viewer-options-apply.d.ts.map +1 -1
- package/dist/pptx/render/options/viewer-options-tabs-advanced.d.ts.map +1 -1
- package/dist/pptx/render/options/viewer-options.d.ts +4 -0
- package/dist/pptx/render/options/viewer-options.d.ts.map +1 -1
- package/dist/pptx/render/pdf-export-range.d.ts +39 -0
- package/dist/pptx/render/pdf-export-range.d.ts.map +1 -0
- package/dist/pptx/render/slide-package-clipboard.d.ts +5 -0
- package/dist/pptx/render/slide-package-clipboard.d.ts.map +1 -1
- package/dist/pptx/render/system-clipboard-copy.d.ts +54 -0
- package/dist/pptx/render/system-clipboard-copy.d.ts.map +1 -0
- package/dist/pptx/render/table-cell-edit-outcome.d.ts +59 -0
- package/dist/pptx/render/table-cell-edit-outcome.d.ts.map +1 -0
- package/dist/pptx/render/table-cell-navigation.d.ts +97 -0
- package/dist/pptx/render/table-cell-navigation.d.ts.map +1 -0
- package/dist/pptx/render/table-cell-rich-text.d.ts +7 -0
- package/dist/pptx/render/table-cell-rich-text.d.ts.map +1 -0
- package/dist/pptx/render/table-cell-text-editor-dom.d.ts +42 -0
- package/dist/pptx/render/table-cell-text-editor-dom.d.ts.map +1 -0
- package/dist/pptx/render/table-cell-text-editor.d.ts +64 -0
- package/dist/pptx/render/table-cell-text-editor.d.ts.map +1 -0
- package/dist/pptx/render/table-cell-text-range.d.ts +24 -0
- package/dist/pptx/render/table-cell-text-range.d.ts.map +1 -0
- package/dist/pptx/render/table-cells-format.d.ts +32 -0
- package/dist/pptx/render/table-cells-format.d.ts.map +1 -0
- package/dist/pptx/render/table-cells-paste-listener.d.ts +27 -0
- package/dist/pptx/render/table-cells-paste-listener.d.ts.map +1 -0
- package/dist/pptx/render/table-tsv-paste.d.ts +36 -0
- package/dist/pptx/render/table-tsv-paste.d.ts.map +1 -0
- package/dist/pptx/render/text-design-tracking.d.ts +6 -0
- package/dist/pptx/render/text-design-tracking.d.ts.map +1 -1
- package/dist/pptx/render/text-metric-tracking.d.ts.map +1 -1
- package/dist/pptx/render/text-run-style.d.ts.map +1 -1
- package/dist/pptx/render/text-tracking-settle.d.ts +13 -0
- package/dist/pptx/render/text-tracking-settle.d.ts.map +1 -0
- package/dist/pptx/render/text-warp-outline-webfont-fetch.d.ts +1 -1
- package/dist/pptx/render/text-warp-outline-webfont-fetch.d.ts.map +1 -1
- package/dist/pptx/render/viewer-props-manifest.d.ts.map +1 -1
- package/dist/pptx/{smartart-insert-preview-QZWYQJRA.mjs → smartart-insert-preview-H2LZCTYG.mjs} +5 -5
- package/dist/pptx/{smartart-insert-preview-4DGDUPAL.cjs → smartart-insert-preview-MMCWPA26.cjs} +6 -6
- package/dist/pptx/theme/index.cjs +18 -18
- package/dist/pptx/theme/index.mjs +1 -1
- package/dist/pptx/web-components/format-section.d.ts +7 -0
- package/dist/pptx/web-components/format-section.d.ts.map +1 -0
- package/dist/pptx/web-components/index.d.ts +5 -2
- package/dist/pptx/web-components/index.d.ts.map +1 -1
- 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/pptx/web-components/pdf-export-dialog-body.d.ts +26 -0
- package/dist/pptx/web-components/pdf-export-dialog-body.d.ts.map +1 -0
- package/dist/pptx/web-components/pdf-export-dialog.d.ts +33 -0
- package/dist/pptx/web-components/pdf-export-dialog.d.ts.map +1 -0
- package/dist/pptx/web-components/pdf-export-options.d.ts +26 -0
- package/dist/pptx/web-components/pdf-export-options.d.ts.map +1 -0
- package/dist/pptx/web-components/ribbon-launchers.d.ts +12 -2
- package/dist/pptx/web-components/ribbon-launchers.d.ts.map +1 -1
- package/dist/pptx/web-components/theme-editor-dock.d.ts.map +1 -1
- package/dist/presence.js +3 -3
- package/dist/render-cache.d.ts +1 -0
- package/dist/smartart.js +3 -3
- package/dist/teams.js +7 -7
- package/dist/theme.d.ts +9 -0
- package/dist/theme.d.ts.map +1 -1
- package/dist/theme.js +2 -2
- package/dist/tokens.d.ts +10 -0
- package/dist/tokens.d.ts.map +1 -1
- package/dist/visio/font-stack.d.ts +6 -0
- package/dist/visio.js +198 -102
- package/dist/xlsx.js +14 -14
- package/package.json +2 -2
- package/dist/visio/pdf-svg-text.d.ts +0 -8
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pdf-embedded-font.d.ts","sourceRoot":"","sources":["../../src/export/pdf-embedded-font.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,EAKN,KAAK,YAAY,EAEjB,MAAM,iBAAiB,CAAC;AAEzB,mDAAmD;AACnD,MAAM,WAAW,WAAW;IAC3B,uEAAuE;IACvE,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,qEAAqE;IACrE,IAAI,EAAE,UAAU,CAAC;CACjB;AAED,qBAAa,eAAe;;IAS1B,QAAQ,CAAC,IAAI,EAAE,YAAY;IAL5B,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,IAAI,EAAE,OAAO,CAAC;IACvB,QAAQ,CAAC,MAAM,EAAE,OAAO,CAAC;IACzB,OAAO,eAON;IACD,2FAA2F;IAC3F,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,WAAW,GAAG,eAAe,GAAG,SAAS,CAM5D;IACD,sFAAsF;IACtF,MAAM,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAO5B;IACD,2CAA2C;IAC3C,KAAK,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAI1B;IAKD,6FAA6F;IAC7F,MAAM,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAc3B;IACD,IAAI,IAAI,IAAI,OAAO,CAElB;IACD,yDAAyD;IACzD,IAAI,SAAS,IAAI,MAAM,CAEtB;IACD,0DAA0D;IAC1D,KAAK,IAAI,YAAY,CAqBpB;CACD;AAED,MAAM,WAAW,YAAY;IAC5B,QAAQ,EAAE,UAAU,CAAC;IACrB,uDAAuD;IACvD,MAAM,EAAE,MAAM,EAAE,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE;QACX,KAAK,EAAE,MAAM,CAAC;QACd,IAAI,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC;QACvC,WAAW,EAAE,MAAM,CAAC;QACpB,MAAM,EAAE,MAAM,CAAC;QACf,OAAO,EAAE,MAAM,CAAC;QAChB,SAAS,EAAE,MAAM,CAAC;QAClB,KAAK,EAAE,MAAM,CAAC;KACd,CAAC;CACF;AAgCD;;;GAGG;AACH,qBAAa,UAAU;IACtB,QAAQ,CAAC,KAAK,EAAE,eAAe,EAAE,CAAC;IAClC,YAAY,KAAK,GAAE,SAAS,WAAW,EAAO,EAK7C;IACD,IAAI,IAAI,IAAI,MAAM,CAEjB;IACD,wEAAwE;IACxE,IAAI,CAAC,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,GAAG,eAAe,GAAG,SAAS,CAY9F;IACD,yFAAyF;IACzF,GAAG,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAQ3B;CACD"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The fonts a page already holds locally, as files a PDF can embed: every `@font-face` rule in
|
|
3
|
+
* the document's `<style>` elements whose source is a `data:` or `blob:` URL (the deck's own
|
|
4
|
+
* embedded fonts, which the viewers register that way). Remote sources are skipped, so reading
|
|
5
|
+
* them never makes a network request. Whether a font may be embedded is decided later by
|
|
6
|
+
* `PdfFontSet` from the font's own licence flags.
|
|
7
|
+
*/
|
|
8
|
+
import type { PdfFontFile } from './pdf-embedded-font.js';
|
|
9
|
+
/** The subset of `Document` this needs, so tests can pass a fake. */
|
|
10
|
+
export interface FontFaceSourceDocument {
|
|
11
|
+
querySelectorAll(selector: 'style'): ArrayLike<{
|
|
12
|
+
textContent: string | null;
|
|
13
|
+
}>;
|
|
14
|
+
}
|
|
15
|
+
/** One `@font-face` rule with a local source. */
|
|
16
|
+
export interface LocalFontFace {
|
|
17
|
+
family: string;
|
|
18
|
+
bold: boolean;
|
|
19
|
+
italic: boolean;
|
|
20
|
+
url: string;
|
|
21
|
+
}
|
|
22
|
+
/** Parse the `@font-face` rules of `css` that name a `data:` or `blob:` source. */
|
|
23
|
+
export declare function parseLocalFontFaces(css: string): LocalFontFace[];
|
|
24
|
+
/** The local font files of `doc`'s `@font-face` rules (see the module comment). */
|
|
25
|
+
export declare function collectLocalFontFiles(doc: FontFaceSourceDocument): Promise<PdfFontFile[]>;
|
|
26
|
+
//# sourceMappingURL=pdf-font-faces.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pdf-font-faces.d.ts","sourceRoot":"","sources":["../../src/export/pdf-font-faces.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAEvD,qEAAqE;AACrE,MAAM,WAAW,sBAAsB;IACtC,gBAAgB,CAAC,QAAQ,EAAE,OAAO,GAAG,SAAS,CAAC;QAAE,WAAW,EAAE,MAAM,GAAG,IAAI,CAAA;KAAE,CAAC,CAAC;CAC/E;AAED,iDAAiD;AACjD,MAAM,WAAW,aAAa;IAC7B,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,OAAO,CAAC;IACd,MAAM,EAAE,OAAO,CAAC;IAChB,GAAG,EAAE,MAAM,CAAC;CACZ;AA8BD,mFAAmF;AACnF,wBAAgB,mBAAmB,CAAC,GAAG,EAAE,MAAM,GAAG,aAAa,EAAE,CAuBhE;AA+BD,mFAAmF;AACnF,wBAAsB,qBAAqB,CAAC,GAAG,EAAE,sBAAsB,GAAG,OAAO,CAAC,WAAW,EAAE,CAAC,CAiB/F"}
|
|
@@ -12,3 +12,4 @@ export declare function pdfTextWidth(text: string, baseFont: string): number;
|
|
|
12
12
|
export declare function encodeWinAnsi(text: string): string | undefined;
|
|
13
13
|
/** A PDF literal string for a WinAnsi string. */
|
|
14
14
|
export declare const pdfLiteral: (text: string) => string;
|
|
15
|
+
//# sourceMappingURL=pdf-fonts.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pdf-fonts.d.ts","sourceRoot":"","sources":["../../src/export/pdf-fonts.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,0EAA0E;AAC1E,wBAAgB,WAAW,CAAC,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,EAAE,OAAO,GAAG,MAAM,CAkBlF;AAWD,oFAAoF;AACpF,wBAAgB,YAAY,CAAC,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,MAAM,CAUnE;AASD,mGAAmG;AACnG,wBAAgB,aAAa,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAc9D;AAED,iDAAiD;AACjD,eAAO,MAAM,UAAU,SAAU,MAAM,KAAG,MACqB,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Browser pictures (data URLs, canvases, decoded images) as PDF image XObjects: 8-bit RGB
|
|
3
|
+
* samples with an optional alpha plane, both Flate-compressed when the browser has
|
|
4
|
+
* `CompressionStream`. Nothing is fetched: only `data:` and `blob:` sources are decoded.
|
|
5
|
+
*/
|
|
6
|
+
import type { PdfImageResource } from './pdf-vector.js';
|
|
7
|
+
/** The longest side a decoded picture keeps (larger pictures are downscaled). */
|
|
8
|
+
export declare const PDF_MAX_IMAGE_SIDE = 2048;
|
|
9
|
+
/** RGBA pixels as an image resource; the alpha plane is kept only when a pixel is translucent. */
|
|
10
|
+
export declare function rgbaToPdfImage(rgba: Uint8ClampedArray, width: number, height: number, view: Window): Promise<PdfImageResource>;
|
|
11
|
+
/**
|
|
12
|
+
* Draw `source` (an image, canvas or video frame) onto a canvas of at most `maxSide` pixels a
|
|
13
|
+
* side and read it back. `undefined` when the pixels cannot be read (a tainted canvas).
|
|
14
|
+
*/
|
|
15
|
+
export declare function drawableToPdfImage(doc: Document, source: CanvasImageSource, naturalWidth: number, naturalHeight: number, maxSide?: number): Promise<PdfImageResource | undefined>;
|
|
16
|
+
/** Decode a `data:` or `blob:` picture to RGB (and alpha) samples, downscaled to a bounded size. */
|
|
17
|
+
export declare function decodePdfImage(doc: Document, href: string, maxSide?: number): Promise<PdfImageResource | undefined>;
|
|
18
|
+
//# sourceMappingURL=pdf-image.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pdf-image.d.ts","sourceRoot":"","sources":["../../src/export/pdf-image.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAErD,iFAAiF;AACjF,eAAO,MAAM,kBAAkB,OAAO,CAAC;AAYvC,kGAAkG;AAClG,wBAAsB,cAAc,CACnC,IAAI,EAAE,iBAAiB,EACvB,KAAK,EAAE,MAAM,EACb,MAAM,EAAE,MAAM,EACd,IAAI,EAAE,MAAM,GACV,OAAO,CAAC,gBAAgB,CAAC,CA2B3B;AAED;;;GAGG;AACH,wBAAsB,kBAAkB,CACvC,GAAG,EAAE,QAAQ,EACb,MAAM,EAAE,iBAAiB,EACzB,YAAY,EAAE,MAAM,EACpB,aAAa,EAAE,MAAM,EACrB,OAAO,SAAqB,GAC1B,OAAO,CAAC,gBAAgB,GAAG,SAAS,CAAC,CAkBvC;AAED,oGAAoG;AACpG,wBAAsB,cAAc,CACnC,GAAG,EAAE,QAAQ,EACb,IAAI,EAAE,MAAM,EACZ,OAAO,SAAqB,GAC1B,OAAO,CAAC,gBAAgB,GAAG,SAAS,CAAC,CAcvC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pdf-path.d.ts","sourceRoot":"","sources":["../../src/export/pdf-path.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAEpD,OAAO,EAAE,cAAc,EAAE,iBAAiB,EAAE,SAAS,EAAE,KAAK,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAIlG,wDAAwD;AACxD,wBAAgB,aAAa,CAAC,QAAQ,EAAE,SAAS,WAAW,EAAE,GAAG,MAAM,EAAE,CAaxE;AAED,MAAM,WAAW,OAAO;IACvB,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;IACV,0FAA0F;IAC1F,KAAK,EAAE,MAAM,CAAC;CACd;AAED,uFAAuF;AACvF,wBAAgB,QAAQ,CAAC,QAAQ,EAAE,SAAS,WAAW,EAAE,GAAG;IAAE,KAAK,CAAC,EAAE,OAAO,CAAC;IAAC,GAAG,CAAC,EAAE,OAAO,CAAA;CAAE,CAwC7F"}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* `sh` inside the filled path's clip, so it needs no pattern matrix: the matrices below are
|
|
4
4
|
* applied with `cm` first (bounding-box units, then `gradientTransform`).
|
|
5
5
|
*/
|
|
6
|
-
import type { PdfShading } from '
|
|
6
|
+
import type { PdfShading } from './pdf-vector.js';
|
|
7
7
|
import type { PathSegment } from './pdf-path.js';
|
|
8
8
|
export interface GradientPaint {
|
|
9
9
|
shading: PdfShading;
|
|
@@ -21,3 +21,4 @@ export declare const isGradient: (element: Element | undefined) => element is El
|
|
|
21
21
|
export declare function pathBounds(segments: readonly PathSegment[]): [number, number, number, number] | undefined;
|
|
22
22
|
/** The gradient as a shading for a path with `bounds`; `undefined` when it cannot be drawn. */
|
|
23
23
|
export declare function gradientPaint(gradient: Element, bounds: [number, number, number, number] | undefined): GradientPaint | undefined;
|
|
24
|
+
//# sourceMappingURL=pdf-svg-gradient.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pdf-svg-gradient.d.ts","sourceRoot":"","sources":["../../src/export/pdf-svg-gradient.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC/C,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAG9C,MAAM,WAAW,aAAa;IAC7B,OAAO,EAAE,UAAU,CAAC;IACpB,sEAAsE;IACtE,QAAQ,EAAE,MAAM,EAAE,EAAE,CAAC;IACrB,8DAA8D;IAC9D,OAAO,EAAE,MAAM,CAAC;IAChB,oFAAoF;IACpF,eAAe,EAAE,OAAO,CAAC;IACzB,2DAA2D;IAC3D,kBAAkB,EAAE,OAAO,CAAC;CAC5B;AAED,eAAO,MAAM,UAAU,YAAa,OAAO,GAAG,SAAS,KAAG,OAAO,IAAI,OACc,CAAC;AAEpF,2DAA2D;AAC3D,wBAAgB,UAAU,CACzB,QAAQ,EAAE,SAAS,WAAW,EAAE,GAC9B,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,GAAG,SAAS,CAoB9C;AASD,+FAA+F;AAC/F,wBAAgB,aAAa,CAC5B,QAAQ,EAAE,OAAO,EACjB,MAAM,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,GAAG,SAAS,GAClD,aAAa,GAAG,SAAS,CAqE3B"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* What the SVG-to-PDF converter (`pdf-svg.ts`) simplifies, as stable codes. A product that
|
|
3
|
+
* translates its report (PowerPoint's PDF notice) maps the code to its own dictionary key; the
|
|
4
|
+
* English sentence here is what `convertSvgPage` reports to products that show it as is (Visio's
|
|
5
|
+
* Export page).
|
|
6
|
+
*/
|
|
7
|
+
export declare const PDF_SVG_NOTES: {
|
|
8
|
+
readonly gradientOpacityAveraged: 'Gradient transparency is averaged: a PDF shading has one opacity.';
|
|
9
|
+
readonly gradientSpreadApproximated: 'Repeating and reflecting gradients are drawn as one gradient.';
|
|
10
|
+
readonly gradientFlatFill: 'A gradient with no usable area is drawn as one flat colour (the middle stop).';
|
|
11
|
+
readonly gradientOutlineFlat: 'Gradient outlines are drawn as one flat colour (the middle stop).';
|
|
12
|
+
readonly shadowBlurDropped: 'Shadow blur is not applied: shadows are drawn hard-edged.';
|
|
13
|
+
readonly glowApproximated: 'Glow is approximated by a hard-edged halo at half strength (no blur).';
|
|
14
|
+
readonly reflectionDropped: 'Reflections and masked shapes are not drawn.';
|
|
15
|
+
readonly bevelDropped: 'Bevel profiles and lighting are not drawn.';
|
|
16
|
+
readonly groupPerspectiveAffine: 'The children of a group turned with perspective use one affine fit of the projection.';
|
|
17
|
+
readonly solid3dFlat: 'Perspective and extrusion are drawn from the projected outline with flat shading; text and pictures use one affine fit of the projection (no convergence).';
|
|
18
|
+
readonly perspectiveParallel: '3-D rotation is drawn as a parallel projection without perspective.';
|
|
19
|
+
readonly filterDropped: 'Blur and soft-edge filters are not applied.';
|
|
20
|
+
};
|
|
21
|
+
/** One simplification the SVG-to-PDF converter made. */
|
|
22
|
+
export type PdfSvgNoteCode = keyof typeof PDF_SVG_NOTES;
|
|
23
|
+
/** Every code, in a stable order. */
|
|
24
|
+
export declare const PDF_SVG_NOTE_CODES: PdfSvgNoteCode[];
|
|
25
|
+
//# sourceMappingURL=pdf-svg-notes.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pdf-svg-notes.d.ts","sourceRoot":"","sources":["../../src/export/pdf-svg-notes.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,eAAO,MAAM,aAAa;aACzB,uBAAuB,EAAE,mEAAmE;aAC5F,0BAA0B,EAAE,+DAA+D;aAC3F,gBAAgB,EAAE,+EAA+E;aACjG,mBAAmB,EAAE,mEAAmE;aACxF,iBAAiB,EAAE,2DAA2D;aAC9E,gBAAgB,EAAE,uEAAuE;aACzF,iBAAiB,EAAE,8CAA8C;aACjE,YAAY,EAAE,4CAA4C;aAC1D,sBAAsB,EACrB,uFAAuF;aACxF,WAAW,EACV,4JAA4J;aAC7J,mBAAmB,EAAE,qEAAqE;aAC1F,aAAa,EAAE,6CAA6C;CACnD,CAAC;AAEX,wDAAwD;AACxD,MAAM,MAAM,cAAc,GAAG,MAAM,OAAO,aAAa,CAAC;AAExD,qCAAqC;AACrC,eAAO,MAAM,kBAAkB,EAAiC,cAAc,EAAE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pdf-svg-shapes.d.ts","sourceRoot":"","sources":["../../src/export/pdf-svg-shapes.ts"],"names":[],"mappings":"AAoBA,oFAAoF;AACpF,wBAAgB,cAAc,CAAC,OAAO,EAAE,OAAO,GAAG,MAAM,GAAG,SAAS,CAyBnE"}
|
|
@@ -18,3 +18,4 @@ export declare const number: (value: string | null, fallback?: number) => number
|
|
|
18
18
|
export declare const hrefOf: (element: Element) => string | null;
|
|
19
19
|
/** The `id` inside `url(#id)`. */
|
|
20
20
|
export declare const urlId: (value: string | null) => string | undefined;
|
|
21
|
+
//# sourceMappingURL=pdf-svg-style.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pdf-svg-style.d.ts","sourceRoot":"","sources":["../../src/export/pdf-svg-style.ts"],"names":[],"mappings":"AAAA,8EAA8E;AAE9E,2EAA2E;AAC3E,qBAAa,WAAY,SAAQ,KAAK;CAAG;AAEzC,MAAM,WAAW,IAAI;IACpB,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;CACV;AA6BD,iGAAiG;AACjG,wBAAgB,UAAU,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,GAAG,IAAI,GAAG,IAAI,CA+BxE;AAED,wEAAwE;AACxE,wBAAgB,cAAc,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,GAAG,MAAM,EAAE,EAAE,CAwC/D;AAED,gGAAgG;AAChG,wBAAgB,SAAS,CAAC,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAOvE;AAED,eAAO,MAAM,MAAM,UAAW,MAAM,GAAG,IAAI,wBAAiB,MAG3D,CAAC;AAEF,eAAO,MAAM,MAAM,YAAa,OAAO,KAAG,MAAM,GAAG,IAC4C,CAAC;AAEhG,kCAAkC;AAClC,eAAO,MAAM,KAAK,UAAW,MAAM,GAAG,IAAI,KAAG,MAAM,GAAG,SAC8B,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { PdfVectorPage } from './pdf-vector.js';
|
|
2
|
+
import type { PdfFontSet } from './pdf-embedded-font.js';
|
|
3
|
+
/** Maps a `font-family` value to the family the PDF matches fonts by (default: as written). */
|
|
4
|
+
export type SvgFontFamilyMapper = (value: string) => string;
|
|
5
|
+
/**
|
|
6
|
+
* Draw one SVG `<text>` as real PDF text, row by row (the renderer's `tspan` rows carry x, y
|
|
7
|
+
* and anchor; their `tspan` children are the styled runs). The page space is y-down, so each
|
|
8
|
+
* run uses a flipped text matrix. Positions inside a row use approximate standard-font widths.
|
|
9
|
+
*/
|
|
10
|
+
export declare function drawSvgText(page: PdfVectorPage, text: Element, alpha: number, fonts?: PdfFontSet, familyOf?: SvgFontFamilyMapper): void;
|
|
11
|
+
//# sourceMappingURL=pdf-svg-text.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pdf-svg-text.d.ts","sourceRoot":"","sources":["../../src/export/pdf-svg-text.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAClD,OAAO,KAAK,EAAmB,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAoBvE,+FAA+F;AAC/F,MAAM,MAAM,mBAAmB,GAAG,CAAC,KAAK,EAAE,MAAM,KAAK,MAAM,CAAC;AAuB5D;;;;GAIG;AACH,wBAAgB,WAAW,CAC1B,IAAI,EAAE,aAAa,EACnB,IAAI,EAAE,OAAO,EACb,KAAK,EAAE,MAAM,EACb,KAAK,CAAC,EAAE,UAAU,EAClB,QAAQ,GAAE,mBAA+B,GACvC,IAAI,CAaN"}
|
|
@@ -5,8 +5,10 @@
|
|
|
5
5
|
* throws `PdfFallback` inside `convertSvgPage`, which then reports `fallback` so the caller can
|
|
6
6
|
* use a picture of the page instead.
|
|
7
7
|
*/
|
|
8
|
-
import type { PdfFontSet } from '
|
|
9
|
-
import { PdfVectorPage, type PdfImageResource } from '
|
|
8
|
+
import type { PdfFontSet } from './pdf-embedded-font.js';
|
|
9
|
+
import { PdfVectorPage, type PdfImageResource } from './pdf-vector.js';
|
|
10
|
+
import { type SvgFontFamilyMapper } from './pdf-svg-text.js';
|
|
11
|
+
import { type PdfSvgNoteCode } from './pdf-svg-notes.js';
|
|
10
12
|
export interface SvgPageConversion {
|
|
11
13
|
/** The vector page, or `undefined` when `fallback` lists why it cannot be vector. */
|
|
12
14
|
page?: PdfVectorPage;
|
|
@@ -19,4 +21,12 @@ export declare function collectSvgImages(svg: Element): string[];
|
|
|
19
21
|
* Convert the static page SVG to a PDF page `widthIn` x `heightIn` inches. Never throws for
|
|
20
22
|
* unsupported content: it returns `fallback` reasons instead.
|
|
21
23
|
*/
|
|
22
|
-
export declare function convertSvgPage(svg: Element, widthIn: number, heightIn: number, images: ReadonlyMap<string, PdfImageResource>, fonts?: PdfFontSet): SvgPageConversion;
|
|
24
|
+
export declare function convertSvgPage(svg: Element, widthIn: number, heightIn: number, images: ReadonlyMap<string, PdfImageResource>, fonts?: PdfFontSet, familyOf?: SvgFontFamilyMapper): SvgPageConversion;
|
|
25
|
+
/**
|
|
26
|
+
* Draw the children of one `<svg>` root into `page` in the page's current space (SVG user
|
|
27
|
+
* units). Throws `PdfFallback` for content the vector path cannot represent, so a caller can
|
|
28
|
+
* draw that subtree as a picture instead; returns what was simplified, as codes
|
|
29
|
+
* (`PDF_SVG_NOTES` has their English).
|
|
30
|
+
*/
|
|
31
|
+
export declare function drawSvgSubtree(page: PdfVectorPage, svg: Element, images: ReadonlyMap<string, PdfImageResource>, fonts?: PdfFontSet, alpha?: number): PdfSvgNoteCode[];
|
|
32
|
+
//# sourceMappingURL=pdf-svg.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pdf-svg.d.ts","sourceRoot":"","sources":["../../src/export/pdf-svg.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACtD,OAAO,EAAE,aAAa,EAAE,KAAK,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAEpE,OAAO,EAAe,KAAK,mBAAmB,EAAE,MAAM,gBAAgB,CAAC;AAEvE,OAAO,EAAiB,KAAK,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAYrE,MAAM,WAAW,iBAAiB;IACjC,qFAAqF;IACrF,IAAI,CAAC,EAAE,aAAa,CAAC;IACrB,QAAQ,EAAE,MAAM,EAAE,CAAC;IACnB,QAAQ,EAAE,MAAM,EAAE,CAAC;CACnB;AAmBD,uFAAuF;AACvF,wBAAgB,gBAAgB,CAAC,GAAG,EAAE,OAAO,GAAG,MAAM,EAAE,CAOvD;AA4RD;;;GAGG;AACH,wBAAgB,cAAc,CAC7B,GAAG,EAAE,OAAO,EACZ,OAAO,EAAE,MAAM,EACf,QAAQ,EAAE,MAAM,EAChB,MAAM,EAAE,WAAW,CAAC,MAAM,EAAE,gBAAgB,CAAC,EAC7C,KAAK,CAAC,EAAE,UAAU,EAClB,QAAQ,CAAC,EAAE,mBAAmB,GAC5B,iBAAiB,CAiBnB;AAED;;;;;GAKG;AACH,wBAAgB,cAAc,CAC7B,IAAI,EAAE,aAAa,EACnB,GAAG,EAAE,OAAO,EACZ,MAAM,EAAE,WAAW,CAAC,MAAM,EAAE,gBAAgB,CAAC,EAC7C,KAAK,CAAC,EAAE,UAAU,EAClB,KAAK,SAAI,GACP,cAAc,EAAE,CAIlB"}
|
|
@@ -25,6 +25,17 @@ export interface PdfShading {
|
|
|
25
25
|
b: number;
|
|
26
26
|
}[];
|
|
27
27
|
}
|
|
28
|
+
/** Spacing and text state for one run of text. */
|
|
29
|
+
export interface PdfTextSpacing {
|
|
30
|
+
/** Extra space after each space character, in text space units. */
|
|
31
|
+
word?: number;
|
|
32
|
+
/** Extra space after each character, in text space units. */
|
|
33
|
+
character?: number;
|
|
34
|
+
/** Horizontal scaling in percent (`Tz`), so a run can be fitted to a measured width. */
|
|
35
|
+
scale?: number;
|
|
36
|
+
/** Invisible text (render mode 3): selectable and searchable over a picture of it. */
|
|
37
|
+
invisible?: boolean;
|
|
38
|
+
}
|
|
28
39
|
/** One page under construction: append operators, then hand it to `buildVectorPdf`. */
|
|
29
40
|
export declare class PdfVectorPage {
|
|
30
41
|
#private;
|
|
@@ -59,18 +70,12 @@ export declare class PdfVectorPage {
|
|
|
59
70
|
* One run of text with a y-down text matrix, so glyphs read upright in a y-down space.
|
|
60
71
|
* `text` must already be a WinAnsi string.
|
|
61
72
|
*/
|
|
62
|
-
text(baseFont: string, size: number, x: number, y: number, text: string, spacing?:
|
|
63
|
-
word?: number;
|
|
64
|
-
character?: number;
|
|
65
|
-
}): void;
|
|
73
|
+
text(baseFont: string, size: number, x: number, y: number, text: string, spacing?: PdfTextSpacing): void;
|
|
66
74
|
/**
|
|
67
75
|
* Text in an embedded font (2-byte CIDs), y-down like `text`. Word spacing is emulated with
|
|
68
76
|
* kerning after each space, since `Tw` does not apply to multi-byte codes.
|
|
69
77
|
*/
|
|
70
|
-
embeddedText(font: PdfEmbeddedFont, size: number, x: number, y: number, text: string, spacing?:
|
|
71
|
-
word?: number;
|
|
72
|
-
character?: number;
|
|
73
|
-
}): void;
|
|
78
|
+
embeddedText(font: PdfEmbeddedFont, size: number, x: number, y: number, text: string, spacing?: PdfTextSpacing): void;
|
|
74
79
|
/** Paint a gradient over the current clip, in the current space. */
|
|
75
80
|
paintShading(shading: PdfShading): void;
|
|
76
81
|
image(resource: PdfImageResource): string;
|
|
@@ -82,3 +87,4 @@ export interface PdfVectorOptions {
|
|
|
82
87
|
}
|
|
83
88
|
/** Assemble the PDF bytes for one or more pages. */
|
|
84
89
|
export declare function buildVectorPdf(pages: readonly PdfVectorPage[], options?: PdfVectorOptions): Uint8Array<ArrayBuffer>;
|
|
90
|
+
//# sourceMappingURL=pdf-vector.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pdf-vector.d.ts","sourceRoot":"","sources":["../../src/export/pdf-vector.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAE3D,6FAA6F;AAC7F,MAAM,WAAW,gBAAgB;IAChC,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,8EAA8E;IAC9E,IAAI,EAAE,UAAU,CAAC;IACjB,MAAM,CAAC,EAAE,aAAa,GAAG,WAAW,CAAC;IACrC,yDAAyD;IACzD,KAAK,CAAC,EAAE;QAAE,IAAI,EAAE,UAAU,CAAC;QAAC,MAAM,CAAC,EAAE,aAAa,CAAA;KAAE,CAAC;CACrD;AAED,gGAAgG;AAChG,MAAM,WAAW,UAAU;IAC1B,IAAI,EAAE,OAAO,GAAG,QAAQ,CAAC;IACzB,qDAAqD;IACrD,MAAM,EAAE,SAAS,MAAM,EAAE,CAAC;IAC1B,mDAAmD;IACnD,KAAK,EAAE,SAAS;QAAE,MAAM,EAAE,MAAM,CAAC;QAAC,CAAC,EAAE,MAAM,CAAC;QAAC,CAAC,EAAE,MAAM,CAAC;QAAC,CAAC,EAAE,MAAM,CAAA;KAAE,EAAE,CAAC;CACtE;AAQD,kDAAkD;AAClD,MAAM,WAAW,cAAc;IAC9B,mEAAmE;I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,GAAG,IAAI,CAOvC;IACD,IAAI,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,GAAG,IAAI,CAErD;IACD,IAAI,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,CAO7B;IACD;;;OAGG;IACH,IAAI,CACH,QAAQ,EAAE,MAAM,EAChB,IAAI,EAAE,MAAM,EACZ,CAAC,EAAE,MAAM,EACT,CAAC,EAAE,MAAM,EACT,IAAI,EAAE,MAAM,EACZ,OAAO,GAAE,cAAmB,GAC1B,IAAI,CAMN;IACD;;;OAGG;IACH,YAAY,CACX,IAAI,EAAE,eAAe,EACrB,IAAI,EAAE,MAAM,EACZ,CAAC,EAAE,MAAM,EACT,CAAC,EAAE,MAAM,EACT,IAAI,EAAE,MAAM,EACZ,OAAO,GAAE,cAAmB,GAC1B,IAAI,CAkBN;IACD,oEAAoE;IACpE,YAAY,CAAC,OAAO,EAAE,UAAU,GAAG,IAAI,CAItC;IACD,KAAK,CAAC,QAAQ,EAAE,gBAAgB,GAAG,MAAM,CAOxC;IACD,uEAAuE;IACvE,SAAS,CAAC,QAAQ,EAAE,gBAAgB,GAAG,IAAI,CAE1C;CACD;AAED,MAAM,WAAW,gBAAgB;IAChC,KAAK,CAAC,EAAE,MAAM,CAAC;CACf;AA2DD,oDAAoD;AACpD,wBAAgB,cAAc,CAC7B,KAAK,EAAE,SAAS,aAAa,EAAE,EAC/B,OAAO,GAAE,gBAAqB,GAC5B,UAAU,CAAC,WAAW,CAAC,CAkHzB"}
|
package/dist/fonts/webfonts.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type WebfontFace, type WebfontRun } from 'ooxml-core/text';
|
|
1
|
+
import { type WebfontFace, type WebfontRun, type WebfontServeOptions } from 'ooxml-core/text';
|
|
2
2
|
/**
|
|
3
3
|
* How long a loaded document may wait for its webfonts before it is shown with stand-in faces:
|
|
4
4
|
* about the browser's own block period for `font-display: swap`. Cached faces arrive well inside
|
|
@@ -29,9 +29,9 @@ export declare function resetWebfontSessionCache(): void;
|
|
|
29
29
|
/** The families to look up: neither embedded nor installed (and not already resolved). */
|
|
30
30
|
export declare function selectWebfontCandidates(families: Iterable<string>, embedded?: Iterable<string>, isLocallyInstalled?: (family: string) => boolean): string[];
|
|
31
31
|
/** The CSS2 fragments for the candidates, recording each match in the session cache. */
|
|
32
|
-
export declare function matchWebfontFragments(candidates: readonly string[]): string[];
|
|
32
|
+
export declare function matchWebfontFragments(candidates: readonly string[], options?: WebfontServeOptions): string[];
|
|
33
33
|
/** The stylesheet href for the candidates, or `null` (also when `base` is `null`: off). */
|
|
34
|
-
export declare function webfontHref(candidates: readonly string[], base: string | null): string | null;
|
|
34
|
+
export declare function webfontHref(candidates: readonly string[], base: string | null, options?: WebfontServeOptions): string | null;
|
|
35
35
|
export interface PrefetchWebfontsOptions {
|
|
36
36
|
document: Document;
|
|
37
37
|
/** The product's managed `<link>` id; the early stylesheet takes `<id>-prefetch`. */
|
|
@@ -41,6 +41,8 @@ export interface PrefetchWebfontsOptions {
|
|
|
41
41
|
/** From `resolveGoogleFontsCss2Base`; `null` (off) removes any early stylesheet. */
|
|
42
42
|
base: string | null;
|
|
43
43
|
isLocallyInstalled?: (family: string) => boolean;
|
|
44
|
+
/** Request measured look-alikes rather than metric clones (see `WebfontServeOptions`). */
|
|
45
|
+
lookAlikes?: boolean;
|
|
44
46
|
}
|
|
45
47
|
/**
|
|
46
48
|
* Start downloading a file's webfonts before it is parsed. The families its package declares
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"webfonts.d.ts","sourceRoot":"","sources":["../../src/fonts/webfonts.ts"],"names":[],"mappings":"AAaA,OAAO,EAMN,KAAK,WAAW,EAChB,KAAK,UAAU,EACf,MAAM,iBAAiB,CAAC;AAEzB;;;;;;GAMG;AACH,eAAO,MAAM,kBAAkB,MAAM,CAAC;AACtC,2DAA2D;AAC3D,eA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AAE,MAAM,CAAC;IAClB,eAAe,EAAE,MAAM,CAAC;IACxB,UAAU,CAAC,EAAE,CAAC,QAAQ,EAAE,eAAe,KAAK,IAAI,CAAC;IACjD,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,aAAa,CAAC,EAAE,MAAM,IAAI,CAAC;CAC3B,GACC,OAAO,CAAC,gBAAgB,CAAC,CAoD3B"}
|
|
@@ -40,3 +40,4 @@ export declare function probeNativeImageSize(src: string): Promise<NativeImageSi
|
|
|
40
40
|
export declare function clearNativeImageSizeCache(): void;
|
|
41
41
|
/** Test-only compatibility alias. */
|
|
42
42
|
export declare function _resetNativeImageSizeCacheForTests(): void;
|
|
43
|
+
//# sourceMappingURL=image-native-size.d.ts.map
|
package/dist/index.d.ts
CHANGED
|
@@ -11,7 +11,7 @@ export * from './theme.js';
|
|
|
11
11
|
export * from './recovery-scheduler.js';
|
|
12
12
|
export { CONTRACT_REVISION, type Definer } from './registry.js';
|
|
13
13
|
/** Every ooxml-ui tag this package defines, in registration order. */
|
|
14
|
-
export declare const OFFICE_UI_TAGS: readonly ["office-ui-icon", "office-ui-button", "office-ui-checkbox", "office-ui-switch", "office-ui-select", "office-ui-ribbon-group", "office-ui-ribbon-stack", "office-ui-menu-item", "office-ui-menu-button", "office-ui-menu-separator", "office-ui-context-menu", "office-ui-command-search", "office-ui-toolbar", "office-ui-dialog", "office-ui-status-bar", "office-ui-status-item", "office-ui-zoom-slider", "office-ui-tab-strip", "office-ui-task-pane", "office-ui-options-dialog", "office-ui-account", "office-ui-ribbon", "office-ui-ribbon-actions", "office-ui-find-bar", "office-ui-ruler", "office-ui-backstage", "office-ui-cloud-files", "office-ui-open-places", "office-ui-connected-services", "office-ui-print-preview", "office-ui-radio", "office-ui-search", "office-ui-ribbon-toggle", "office-ui-dialog-footer", "office-ui-toasts", "office-ui-read-only-banner", "office-ui-paste-options", "office-ui-title-bar", "office-ui-ribbon-section", "office-ui-gallery", "office-ui-comments-pane", "office-ui-chart-format-pane", "office-ui-symbol-picker", "office-ui-color-grid", "office-ui-color-custom", "office-ui-chart-picker", "office-ui-chart-data-sheet", "office-ui-progress-dialog", "office-ui-message-dialog", "office-ui-share-dialog", "office-ui-presence", "office-ui-smartart", "office-ui-smartart-picker", "office-ui-smartart-text-pane", "office-ui-avatar", "office-ui-app-rail", "office-ui-activity-feed", "office-ui-channel-list", "office-ui-chat-list", "office-ui-chat-composer", "office-ui-prejoin", "office-ui-call-grid", "office-ui-call-controls", "office-ui-chat-sidebar", "office-ui-people-picker", "office-ui-calendar-view", "office-ui-calendar-agenda"];
|
|
14
|
+
export declare const OFFICE_UI_TAGS: readonly ["office-ui-icon", "office-ui-button", "office-ui-checkbox", "office-ui-switch", "office-ui-select", "office-ui-ribbon-group", "office-ui-ribbon-stack", "office-ui-menu-item", "office-ui-menu-button", "office-ui-menu-separator", "office-ui-context-menu", "office-ui-command-search", "office-ui-toolbar", "office-ui-dialog", "office-ui-status-bar", "office-ui-status-item", "office-ui-zoom-slider", "office-ui-tab-strip", "office-ui-task-pane", "office-ui-format-section", "office-ui-options-dialog", "office-ui-account", "office-ui-ribbon", "office-ui-ribbon-actions", "office-ui-find-bar", "office-ui-ruler", "office-ui-backstage", "office-ui-cloud-files", "office-ui-open-places", "office-ui-connected-services", "office-ui-print-preview", "office-ui-radio", "office-ui-search", "office-ui-ribbon-toggle", "office-ui-dialog-footer", "office-ui-toasts", "office-ui-read-only-banner", "office-ui-paste-options", "office-ui-title-bar", "office-ui-ribbon-section", "office-ui-gallery", "office-ui-comments-pane", "office-ui-chart-format-pane", "office-ui-symbol-picker", "office-ui-color-grid", "office-ui-color-custom", "office-ui-chart-picker", "office-ui-chart-data-sheet", "office-ui-progress-dialog", "office-ui-message-dialog", "office-ui-share-dialog", "office-ui-presence", "office-ui-smartart", "office-ui-smartart-picker", "office-ui-smartart-text-pane", "office-ui-avatar", "office-ui-app-rail", "office-ui-activity-feed", "office-ui-channel-list", "office-ui-chat-list", "office-ui-chat-composer", "office-ui-prejoin", "office-ui-call-grid", "office-ui-call-controls", "office-ui-chat-sidebar", "office-ui-people-picker", "office-ui-calendar-view", "office-ui-calendar-agenda"];
|
|
15
15
|
/**
|
|
16
16
|
* Install the theme tokens and define every element. Idempotent and safe to call from every
|
|
17
17
|
* viewer binding; a no-op where there is no DOM (SSR).
|
package/dist/index.js
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
export { OFFICE_UI_TAGS, registerOfficeUi } from './chunk-
|
|
1
|
+
export { OFFICE_UI_TAGS, registerOfficeUi } from './chunk-ALWA7Q42.js';
|
|
2
2
|
export { createRecoveryScheduler } from './chunk-DA57FPSN.js';
|
|
3
|
-
export { HOST_REGION_ATTRIBUTE, HostRegionHost, RIBBON_ADD_IN_EVENT, createHostBackstagePages, defineRibbonAddInElements, syncHostMenuChildren, syncRibbonAddIns, tidyMenuSeparators, withHostMenuItems } from './chunk-
|
|
4
|
-
export { OfficeUiSmartArt, OfficeUiSmartArtPicker, OfficeUiSmartArtTextPane, SmartArtTextPaneController, cachedPicturePixels, defineSmartArt, defineSmartArtPicker, defineSmartArtTextPane, needsPicturePixels, picturePaint, pictureSvg, probePicturePixels, renderDiagramDrawing, smartArtColorsGalleryState, smartArtLayoutTileSvg, smartArtStylesGalleryState, smartArtTileSvg } from './chunk-
|
|
5
|
-
export { EMOJI, OfficeUiActivityFeed, OfficeUiAppRail, OfficeUiAvatar, OfficeUiCalendarAgenda, OfficeUiCalendarView, OfficeUiCallControls, OfficeUiCallGrid, OfficeUiChannelList, OfficeUiChatComposer, OfficeUiChatList, OfficeUiChatSidebar, OfficeUiPeoplePicker, OfficeUiPrejoin, QUICK_REACTIONS, TEAMS_CONTRACT, TEAMS_TAGS, TeamsApp, TeamsChannelTab, TeamsContentPreview, TeamsController, TeamsElement, TeamsFilesPanel, TeamsSettings, activityTime, applyTeamsProps, bindTeams, colorFor, createTeams, dayKind, dayLabel, defineActivityFeed, defineAppRail, defineAvatar, defineCalendarAgenda, defineCalendarView, defineCallControls, defineCallGrid, defineChannelList, defineChatComposer, defineChatList, defineChatSidebar, definePeoplePicker, definePrejoin, defineTeamsApp, defineTeamsChannelTab, defineTeamsContentPreview, defineTeamsFilesPanel, defineTeamsSettings, formatElapsed, formatSize, formatTime, formatWhen, icon, listenTeamsEvents, loadConfig, loadIdentity, parseIceLines, pickTeamsProps, registerTeams, safeStorage, saveConfig, saveIdentity, withStyles } from './chunk-
|
|
3
|
+
export { HOST_REGION_ATTRIBUTE, HostRegionHost, RIBBON_ADD_IN_EVENT, createHostBackstagePages, defineRibbonAddInElements, syncHostMenuChildren, syncRibbonAddIns, tidyMenuSeparators, withHostMenuItems } from './chunk-QGRJJUH7.js';
|
|
4
|
+
export { OfficeUiSmartArt, OfficeUiSmartArtPicker, OfficeUiSmartArtTextPane, SmartArtTextPaneController, cachedPicturePixels, defineSmartArt, defineSmartArtPicker, defineSmartArtTextPane, needsPicturePixels, picturePaint, pictureSvg, probePicturePixels, renderDiagramDrawing, smartArtColorsGalleryState, smartArtLayoutTileSvg, smartArtStylesGalleryState, smartArtTileSvg } from './chunk-QDU4GLWK.js';
|
|
5
|
+
export { EMOJI, OfficeUiActivityFeed, OfficeUiAppRail, OfficeUiAvatar, OfficeUiCalendarAgenda, OfficeUiCalendarView, OfficeUiCallControls, OfficeUiCallGrid, OfficeUiChannelList, OfficeUiChatComposer, OfficeUiChatList, OfficeUiChatSidebar, OfficeUiPeoplePicker, OfficeUiPrejoin, QUICK_REACTIONS, TEAMS_CONTRACT, TEAMS_TAGS, TeamsApp, TeamsChannelTab, TeamsContentPreview, TeamsController, TeamsElement, TeamsFilesPanel, TeamsSettings, activityTime, applyTeamsProps, bindTeams, colorFor, createTeams, dayKind, dayLabel, defineActivityFeed, defineAppRail, defineAvatar, defineCalendarAgenda, defineCalendarView, defineCallControls, defineCallGrid, defineChannelList, defineChatComposer, defineChatList, defineChatSidebar, definePeoplePicker, definePrejoin, defineTeamsApp, defineTeamsChannelTab, defineTeamsContentPreview, defineTeamsFilesPanel, defineTeamsSettings, formatElapsed, formatSize, formatTime, formatWhen, icon, listenTeamsEvents, loadConfig, loadIdentity, parseIceLines, pickTeamsProps, registerTeams, safeStorage, saveConfig, saveIdentity, withStyles } from './chunk-JNCHVQQA.js';
|
|
6
6
|
export { TeamsPresentationPreview, defineTeamsPresentationPreview } from './chunk-4ZSZPUE5.js';
|
|
7
7
|
import './chunk-CDAXY5KC.js';
|
|
8
8
|
import './chunk-NDUD5JJB.js';
|
|
9
9
|
import './chunk-KJMAVPQB.js';
|
|
10
|
-
export { BUILDING_BLOCKS_CSS, LEGACY_OFFICE_THEME_TOKENS, THEME_CSS, THEME_STYLE_ID, installOfficeUiTheme, installOfficeUiThemeFor, legacyThemeAliases, legacyThemeBridge, prepareOfficeUiBlock, shadcnBridge, themeBridge } from './chunk-
|
|
11
|
-
export { CONTROL_DEFINERS, CUSTOM_FONT_ACCEPT, CUSTOM_FONT_EXTENSIONS, DEFAULT_CLOUD_FILES_LABELS, DEFAULT_COMMENTS_LABELS, DEFAULT_CONNECTED_SERVICES_LABELS, DEFAULT_OFFICE_PROFILE, DEFAULT_OPEN_PLACES_LABELS, DEVICE_PLACE, EMPTY_MENU_STATE, OFFICE_AVATAR_SWATCHES, OFFICE_COLOR_SWATCHES, OFFICE_COLOR_SWATCH_HEXES, OFFICE_PROFILE_STORAGE_KEY, OFFICE_SYMBOLS, OFFICE_TITLE_BAR_SEARCH_LIMIT, OFFICE_TOAST_VISIBLE_LIMIT, OfficeUiChartFormatPane, OfficeUiCloudFiles, OfficeUiConnectedServices, OfficeUiMessageDialog, OfficeUiOpenPlaces, OfficeUiShareDialog, SAVE_PROGRESS_TEXT, SHARE_DIALOG_LABELS, SHARE_DIALOG_LOCALES, alertDialog, assignKeyTips, attachKeyTips, attachRibbonGroupOverflow, buildChartFormatModel, buildFontCatalog, chartFormatFieldIntent, chartFormatLocale, chartFormatPaneTitle, chartFormatSourceTabs, chartFormatTargetLabel, chartFormatTargetOptions, chartFormatTranslator, chartSpaceFormatSource, clampFlyoutPosition, clampOptionNumber, clearOfficeProfile, commentInitials, confirmDialog, createDialogSession, createFontFaceScope, createLiveColorInput, createRibbonOverflow, defaultPaneGradient, defineAccount, defineBackstage, defineButton, defineChartDataSheet, defineChartFormatPane, defineChartPicker, defineCheckbox, defineCloudFiles, defineColorCustom, defineColorGrid, defineCommandSearch, defineCommentsPane, defineConnectedServices, defineContextMenu, defineDialog, defineDialogFooter, defineFindBar, defineGallery, defineIcon, defineMenuButton, defineMenuItem, defineMenuSeparator, defineMessageDialog, defineOpenPlaces, defineOptionsDialog, definePasteOptions, definePrintPreview, defineProgressDialog, defineRadio, defineReadOnlyBanner, defineRibbon, defineRibbonActions, defineRibbonGroup, defineRibbonSection, defineRibbonStack, defineRibbonToggle, defineRuler, defineSearchField, defineSelect, defineShareDialog, defineStatusBar, defineStatusItem, defineSwitch, defineSymbolPicker, defineTabStrip, defineTaskPane, defineTitleBar, defineToasts, defineToolbar, defineZoomSlider, deriveCustomFontDescriptor, drawingColorFromHex, drawingGradientFrom, fitRibbonGroups, formatCommentTime, glyph, handleLiveColorEvent, hexForInput, isFontFamilyAvailable, liveColorRevertPatch, nextEnabledIndex, optionText, optionsLabels, parseOfficeSymbolCode, personalizeSection, profileInitials, promptDialog, readOfficeProfile, recordLiveColorLeaves, registerControls, registerCustomFont, resolveChartFormatSourceTarget, rulerDivisions, runKeyTips, sanitizeOfficeProfile, saveProgressLabel, saveProgressStepChanged, scanAvailableFontFamilies, shareDialogLabels, translateChartFormatText, typeAheadIndex, unavailableCategory, unavailableControl, userInterfaceSection, writeOfficeProfile } from './chunk-
|
|
10
|
+
export { BUILDING_BLOCKS_CSS, CARDS_LOOK_CSS, CARDS_LOOK_PROPERTIES, CJK_UI_FONTS, LEGACY_OFFICE_THEME_TOKENS, OFFICE_LOOKS, OFFICE_LOOK_ATTRIBUTE, THEME_CSS, THEME_STYLE_ID, applyOfficeLook, installOfficeUiTheme, installOfficeUiThemeFor, legacyThemeAliases, legacyThemeBridge, normalizeOfficeLook, prepareOfficeUiBlock, shadcnBridge, themeBridge } from './chunk-6C6S4AWF.js';
|
|
11
|
+
export { CONTROL_DEFINERS, CUSTOM_FONT_ACCEPT, CUSTOM_FONT_EXTENSIONS, DEFAULT_CLOUD_FILES_LABELS, DEFAULT_COMMENTS_LABELS, DEFAULT_CONNECTED_SERVICES_LABELS, DEFAULT_OFFICE_PROFILE, DEFAULT_OPEN_PLACES_LABELS, DEVICE_PLACE, EMPTY_MENU_STATE, OFFICE_AVATAR_SWATCHES, OFFICE_COLOR_SWATCHES, OFFICE_COLOR_SWATCH_HEXES, OFFICE_PROFILE_STORAGE_KEY, OFFICE_SYMBOLS, OFFICE_TITLE_BAR_SEARCH_LIMIT, OFFICE_TOAST_VISIBLE_LIMIT, OfficeUiChartFormatPane, OfficeUiCloudFiles, OfficeUiConnectedServices, OfficeUiFormatSection, OfficeUiMessageDialog, OfficeUiOpenPlaces, OfficeUiShareDialog, SAVE_PROGRESS_TEXT, SHARE_DIALOG_LABELS, SHARE_DIALOG_LOCALES, alertDialog, assignKeyTips, attachKeyTips, attachRibbonGroupOverflow, buildChartFormatModel, buildFontCatalog, chartFormatFieldIntent, chartFormatLocale, chartFormatPaneTitle, chartFormatSourceTabs, chartFormatTargetLabel, chartFormatTargetOptions, chartFormatTranslator, chartSpaceFormatSource, clampFlyoutPosition, clampOptionNumber, clearOfficeProfile, commentInitials, confirmDialog, createDialogSession, createFontFaceScope, createLiveColorInput, createRibbonOverflow, defaultPaneGradient, defineAccount, defineBackstage, defineButton, defineChartDataSheet, defineChartFormatPane, defineChartPicker, defineCheckbox, defineCloudFiles, defineColorCustom, defineColorGrid, defineCommandSearch, defineCommentsPane, defineConnectedServices, defineContextMenu, defineDialog, defineDialogFooter, defineFindBar, defineFormatSection, defineGallery, defineIcon, defineMenuButton, defineMenuItem, defineMenuSeparator, defineMessageDialog, defineOpenPlaces, defineOptionsDialog, definePasteOptions, definePrintPreview, defineProgressDialog, defineRadio, defineReadOnlyBanner, defineRibbon, defineRibbonActions, defineRibbonGroup, defineRibbonSection, defineRibbonStack, defineRibbonToggle, defineRuler, defineSearchField, defineSelect, defineShareDialog, defineStatusBar, defineStatusItem, defineSwitch, defineSymbolPicker, defineTabStrip, defineTaskPane, defineTitleBar, defineToasts, defineToolbar, defineZoomSlider, deriveCustomFontDescriptor, drawingColorFromHex, drawingGradientFrom, fitRibbonGroups, formatCommentTime, glyph, handleLiveColorEvent, hexForInput, isFontFamilyAvailable, liveColorRevertPatch, nextEnabledIndex, optionText, optionsLabels, parseOfficeSymbolCode, personalizeSection, profileInitials, promptDialog, readOfficeProfile, recordLiveColorLeaves, registerControls, registerCustomFont, resolveChartFormatSourceTarget, rulerDivisions, runKeyTips, sanitizeOfficeProfile, saveProgressLabel, saveProgressStepChanged, scanAvailableFontFamilies, shareDialogLabels, translateChartFormatText, typeAheadIndex, unavailableCategory, unavailableControl, userInterfaceSection, writeOfficeProfile } from './chunk-3TF5IIIJ.js';
|
|
12
12
|
export { createIconSvg, getIcon, listIcons, paintIcon, registerIcon } from './chunk-M6GF5ED2.js';
|
|
13
|
-
export { CHART_FORMAT_LOCALES, CHART_FORMAT_STRINGS, prefixChartFormatStrings } from './chunk-
|
|
14
|
-
export { OfficeUiPresence, definePresence, initialsOf, participantsFromAwareness } from './chunk-
|
|
13
|
+
export { CHART_FORMAT_LOCALES, CHART_FORMAT_STRINGS, prefixChartFormatStrings } from './chunk-GSO4HLIY.js';
|
|
14
|
+
export { OfficeUiPresence, definePresence, initialsOf, participantsFromAwareness } from './chunk-FQN4XNEF.js';
|
|
15
15
|
export { parseSvgPreview } from './chunk-FN7IF6M6.js';
|
|
16
|
-
export { CONTRACT_REVISION, OfficeElement, controlStyles, flag, readFlag, triState, valueOn, withTokens } from './chunk-
|
|
17
|
-
export { COMPACT, FOCUS_RING, OFFICE_TOKENS, TOUCH, tok } from './chunk-
|
|
16
|
+
export { CONTRACT_REVISION, OfficeElement, controlStyles, flag, readFlag, triState, valueOn, withTokens } from './chunk-4W4QZF4C.js';
|
|
17
|
+
export { COMPACT, FOCUS_RING, LOOK_DARK_TOKENS, LOOK_TOKENS, OFFICE_TOKENS, TOUCH, tok } from './chunk-5FMWQWLP.js';
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The tokens of the opt-in "cards" look (`data-office-look="cards"`, see `look.ts`): shape,
|
|
3
|
+
* elevation and density only, never a colour of the palette. They are part of the `--office-*`
|
|
4
|
+
* contract and declared on `:root` like every other token, but the default look reads none of
|
|
5
|
+
* them, so declaring them changes nothing until a scope opts into the look.
|
|
6
|
+
*/
|
|
7
|
+
export declare const LOOK_TOKENS: {
|
|
8
|
+
/** A floating card: the ribbon, thumbnail rail, canvas, notes and side pane. */
|
|
9
|
+
readonly '--office-shadow-card': '0 1px 3px rgb(60 64 67 / 20%), 0 2px 6px rgb(60 64 67 / 8%)';
|
|
10
|
+
/** A card above the cards: menus and popovers. */
|
|
11
|
+
readonly '--office-shadow-card-strong': '0 1px 3px rgb(60 64 67 / 30%), 0 4px 8px 3px rgb(60 64 67 / 15%)';
|
|
12
|
+
/** Cards carry no hard border in light; dark themes give them a subtle one. */
|
|
13
|
+
readonly '--office-card-border': 'transparent';
|
|
14
|
+
readonly '--office-radius-surface': '14px';
|
|
15
|
+
readonly '--office-radius-toolbar': '12px';
|
|
16
|
+
readonly '--office-radius-control': '7px';
|
|
17
|
+
/** The space between cards and around them. */
|
|
18
|
+
readonly '--office-workspace-gap': '12px';
|
|
19
|
+
readonly '--office-side-pane-width': '320px';
|
|
20
|
+
readonly '--office-pane-heading-height': '36px';
|
|
21
|
+
readonly '--office-pane-field-height': '32px';
|
|
22
|
+
};
|
|
23
|
+
/** The dark values, declared by the theme's dark scopes with the rest of the palette. */
|
|
24
|
+
export declare const LOOK_DARK_TOKENS: Partial<Record<keyof typeof LOOK_TOKENS, string>>;
|
|
25
|
+
//# sourceMappingURL=look-tokens.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"look-tokens.d.ts","sourceRoot":"","sources":["../src/look-tokens.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,eAAO,MAAM,WAAW;IACvB,gFAAgF;aAChF,sBAAsB,EAAE,6DAA6D;IACrF,kDAAkD;aAClD,6BAA6B,EAAE,kEAAkE;IACjG,+EAA+E;aAC/E,sBAAsB,EAAE,aAAa;aACrC,yBAAyB,EAAE,MAAM;aACjC,yBAAyB,EAAE,MAAM;aACjC,yBAAyB,EAAE,KAAK;IAChC,+CAA+C;aAC/C,wBAAwB,EAAE,MAAM;aAChC,0BAA0B,EAAE,OAAO;aACnC,8BAA8B,EAAE,MAAM;aACtC,4BAA4B,EAAE,MAAM;CAC3B,CAAC;AAEX,yFAAyF;AACzF,eAAO,MAAM,gBAAgB,EAAE,OAAO,CAAC,MAAM,CAAC,MAAM,OAAO,WAAW,EAAE,MAAM,CAAC,CAI9E,CAAC"}
|
package/dist/look.d.ts
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The Office chrome's looks. `data-office-theme` picks the palette (light, dark, auto); the look,
|
|
3
|
+
* `data-office-look` on the same scope, picks shape, elevation and density and never a colour.
|
|
4
|
+
* The default look is today's flat chrome. `cards` floats the chrome regions (ribbon, thumbnail
|
|
5
|
+
* rail, canvas, notes, side pane) as rounded, shadowed cards on a workspace background, with
|
|
6
|
+
* rounder controls, pill switchers and a roomier Format pane.
|
|
7
|
+
*
|
|
8
|
+
* Elements in shadow roots cannot see the attribute, so the look reaches them through private
|
|
9
|
+
* `--_office-look-*` properties declared on the look's scope. Each element reads one with its
|
|
10
|
+
* default-look value as the fallback, so nothing changes outside the look, and the look never
|
|
11
|
+
* redeclares a public token a host may have overridden. A product's light-DOM chrome selects the
|
|
12
|
+
* attribute directly (for PowerPoint, `pptx/render/editor-chrome/cards-css.ts`).
|
|
13
|
+
*/
|
|
14
|
+
export declare const OFFICE_LOOK_ATTRIBUTE = "data-office-look";
|
|
15
|
+
export declare const OFFICE_LOOKS: readonly ['default', 'cards'];
|
|
16
|
+
export type OfficeLook = (typeof OFFICE_LOOKS)[number];
|
|
17
|
+
/**
|
|
18
|
+
* The private properties the shared elements read under the cards look. Declared again on each
|
|
19
|
+
* theme scope inside the look, so a dark scope nested in a light one gets its own shadows.
|
|
20
|
+
*/
|
|
21
|
+
export declare const CARDS_LOOK_PROPERTIES: Readonly<Record<string, string>>;
|
|
22
|
+
export declare const CARDS_LOOK_CSS: string;
|
|
23
|
+
/** The look a value names, `default` for anything else (a missing or unknown attribute). */
|
|
24
|
+
export declare function normalizeOfficeLook(value: unknown): OfficeLook;
|
|
25
|
+
/**
|
|
26
|
+
* Set a scope's look. The default look removes the attribute, so the scope inherits whatever an
|
|
27
|
+
* outer scope chose. Only the attribute changes: mounted editors keep their state.
|
|
28
|
+
*/
|
|
29
|
+
export declare function applyOfficeLook(element: Element, look: OfficeLook | undefined): void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"look.d.ts","sourceRoot":"","sources":["../src/look.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,qBAAqB,qBAAqB,CAAC;AAExD,eAAO,MAAM,YAAY,YAAI,SAAS,EAAE,OAAO,CAAU,CAAC;AAC1D,MAAM,MAAM,UAAU,GAAG,CAAC,OAAO,YAAY,CAAC,CAAC,MAAM,CAAC,CAAC;AAMvD;;;GAGG;AACH,eAAO,MAAM,qBAAqB,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAUlE,CAAC;AAEF,eAAO,MAAM,cAAc,QAK1B,CAAC;AAEF,4FAA4F;AAC5F,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,OAAO,GAAG,UAAU,CAE9D;AAED;;;GAGG;AACH,wBAAgB,eAAe,CAAC,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,UAAU,GAAG,SAAS,GAAG,IAAI,CAGpF"}
|
package/dist/notices/toasts.d.ts
CHANGED
|
@@ -9,6 +9,8 @@ export interface OfficeToast {
|
|
|
9
9
|
readonly severity: 'info' | 'warning';
|
|
10
10
|
/** Translated message. */
|
|
11
11
|
readonly message: string;
|
|
12
|
+
/** Translated lines shown under a collapsed Details expander. */
|
|
13
|
+
readonly details?: readonly string[];
|
|
12
14
|
}
|
|
13
15
|
export interface OfficeToastsState {
|
|
14
16
|
toasts: readonly OfficeToast[];
|
|
@@ -18,6 +20,7 @@ export interface OfficeToastsState {
|
|
|
18
20
|
title?: string;
|
|
19
21
|
dismissAll?: string;
|
|
20
22
|
dismiss?: string;
|
|
23
|
+
details?: string;
|
|
21
24
|
};
|
|
22
25
|
}
|
|
23
26
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"toasts.d.ts","sourceRoot":"","sources":["../../src/notices/toasts.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,KAAK,cAAc,EAAE,MAAM,KAAK,CAAC;AAEhD,OAAO,EAAE,aAAa,EAAiB,MAAM,SAAS,CAAC;AAKvD,kEAAkE;AAClE,eAAO,MAAM,0BAA0B,IAAI,CAAC;AAE5C,MAAM,WAAW,WAAW;IAC3B,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IACpB,sDAAsD;IACtD,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,QAAQ,EAAE,MAAM,GAAG,SAAS,CAAC;IACtC,0BAA0B;IAC1B,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"toasts.d.ts","sourceRoot":"","sources":["../../src/notices/toasts.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,KAAK,cAAc,EAAE,MAAM,KAAK,CAAC;AAEhD,OAAO,EAAE,aAAa,EAAiB,MAAM,SAAS,CAAC;AAKvD,kEAAkE;AAClE,eAAO,MAAM,0BAA0B,IAAI,CAAC;AAE5C,MAAM,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