ooxml-ui 1.26.0 → 1.26.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{chunk-WH3EGA3S.js → chunk-2EFIFIPB.js} +2 -2
- package/dist/{chunk-P4FRKIPE.js → chunk-W2JD75LX.js} +1 -0
- package/dist/docx/print-picture.d.ts +1 -0
- package/dist/docx.js +3 -2
- package/dist/index.js +3 -3
- package/dist/pptx/{chunk-LUDEAPHZ.cjs → chunk-4PYBBOIK.cjs} +43 -43
- package/dist/pptx/{chunk-CWHK7HF4.mjs → chunk-HF2YJASV.mjs} +1 -1
- package/dist/pptx/{chunk-HAO5PKWK.cjs → chunk-NFP4PCTP.cjs} +606 -314
- package/dist/pptx/{chunk-IWUIGVWT.mjs → chunk-R5GKUSHI.mjs} +607 -317
- package/dist/pptx/dom/index.cjs +385 -385
- package/dist/pptx/dom/index.mjs +5 -5
- package/dist/pptx/index.cjs +2996 -2988
- package/dist/pptx/index.mjs +1 -1
- package/dist/pptx/render/morph-animation.d.ts +11 -2
- package/dist/pptx/render/morph-animation.d.ts.map +1 -1
- package/dist/pptx/render/morph-geometry-keyframes.d.ts.map +1 -1
- package/dist/pptx/render/morph-matching.d.ts +1 -0
- package/dist/pptx/render/morph-matching.d.ts.map +1 -1
- package/dist/pptx/render/morph-stacked-copies.d.ts +20 -0
- package/dist/pptx/render/morph-stacked-copies.d.ts.map +1 -0
- package/dist/pptx/render/morph-text-flow.d.ts +48 -0
- package/dist/pptx/render/morph-text-flow.d.ts.map +1 -0
- package/dist/pptx/render/ribbon-galleries/themes-gallery.d.ts.map +1 -1
- package/dist/pptx/render/shape-geometry-cascade.d.ts.map +1 -1
- package/dist/pptx/render/stroke-clip-edge.d.ts +27 -0
- package/dist/pptx/render/stroke-clip-edge.d.ts.map +1 -0
- package/dist/pptx/render/stroke-clip-outset.d.ts +11 -1
- package/dist/pptx/render/stroke-clip-outset.d.ts.map +1 -1
- package/dist/pptx/render/stroke-outline.d.ts +13 -0
- package/dist/pptx/render/stroke-outline.d.ts.map +1 -1
- package/dist/pptx/render/stroke-style.d.ts +10 -1
- package/dist/pptx/render/stroke-style.d.ts.map +1 -1
- package/dist/pptx/{smartart-insert-preview-5ZTZYAZR.cjs → smartart-insert-preview-CTBWMXNX.cjs} +3 -3
- package/dist/pptx/{smartart-insert-preview-HMSNUWDO.mjs → smartart-insert-preview-QJBRDU4C.mjs} +2 -2
- package/dist/smartart.js +1 -1
- package/dist/teams.js +1 -1
- package/dist/xlsx/grid/styles.d.ts +1 -1
- package/dist/xlsx.js +5 -5
- package/package.json +2 -2
- /package/dist/{chunk-HGLCXNCT.js → chunk-WBE2Q5DC.js} +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineSmartArt, defineSmartArtPicker, defineSmartArtTextPane } from './chunk-
|
|
2
|
-
import { TEAMS_TAGS, registerTeams } from './chunk-
|
|
1
|
+
import { defineSmartArt, defineSmartArtPicker, defineSmartArtTextPane } from './chunk-W2JD75LX.js';
|
|
2
|
+
import { TEAMS_TAGS, registerTeams } from './chunk-WBE2Q5DC.js';
|
|
3
3
|
import { installOfficeUiTheme } from './chunk-T5ARELU2.js';
|
|
4
4
|
import { registerControls } from './chunk-WDOWQKKC.js';
|
|
5
5
|
import { definePresence } from './chunk-YZH2QS7J.js';
|
|
@@ -128,6 +128,7 @@ function renderDiagramDrawing(doc, drawing, scheme = {}, fonts = {}) {
|
|
|
128
128
|
svg.append(group);
|
|
129
129
|
}
|
|
130
130
|
svg.setAttribute("viewBox", `0 0 ${Math.max(right, 1)} ${Math.max(bottom, 1)}`);
|
|
131
|
+
svg.setAttribute("overflow", "visible");
|
|
131
132
|
return { svg, report };
|
|
132
133
|
}
|
|
133
134
|
function textElement(doc, shape, scheme, fonts, report) {
|
package/dist/docx.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { statusLayout, watchStatusWidth, compactPageText } from './chunk-UBBC5FH7.js';
|
|
2
2
|
import { syncRibbonAddIns, createHostBackstagePages, withHostMenuItems } from './chunk-KSOHDEUI.js';
|
|
3
3
|
export { RIBBON_ADD_IN_EVENT } from './chunk-KSOHDEUI.js';
|
|
4
|
-
import { defineSmartArt, SmartArtTextPaneController, defineSmartArtPicker } from './chunk-
|
|
4
|
+
import { defineSmartArt, SmartArtTextPaneController, defineSmartArtPicker } from './chunk-W2JD75LX.js';
|
|
5
5
|
import { legacyThemeAliases, legacyThemeBridge, installOfficeUiThemeFor } from './chunk-T5ARELU2.js';
|
|
6
6
|
import { createRibbonOverflow, defineRibbon, defineChartFormatPane, defineRuler, defineChartDataSheet, defineChartPicker, defineCommentsPane, defineDialog, defineSearchField, defineSwitch, defineTitleBar, defineRibbonActions, defineBackstage, defineStatusBar, defineZoomSlider, defineContextMenu, defineColorGrid, runKeyTips, defineOptionsDialog, assignKeyTips, optionsLabels, userInterfaceSection, personalizeSection, optionText, unavailableCategory } from './chunk-WDOWQKKC.js';
|
|
7
7
|
import { registerIcon } from './chunk-M6GF5ED2.js';
|
|
@@ -20949,7 +20949,7 @@ var underline_default = `/* Styled runs paint their own underline. Do not superi
|
|
|
20949
20949
|
`;
|
|
20950
20950
|
|
|
20951
20951
|
// raw-css:/home/runner/work/ooxml/ooxml/src/ui/src/docx/styles/print.css?raw
|
|
20952
|
-
var print_default = ".dve-print-pages {\n display: flex;\n flex-direction: column;\n align-items: center;\n gap: 24px;\n margin: 0 auto;\n zoom: var(--dve-zoom, 1);\n}\n/* The view wraps the layout's own pages container; zoom the pair once, not twice. */\n.dve-print-pages > .dve-print-pages {\n zoom: 1;\n}\n.dve-print-pages[hidden] {\n display: none;\n}\n.dve-print-page {\n position: relative;\n flex: none;\n background: var(--dve-page-color, var(--office-paper, #fff));\n color: #202124;\n box-shadow:\n 0 1px 3px #20212430,\n 0 4px 12px #20212420;\n overflow: hidden;\n}\n.dve-print-column {\n position: absolute;\n z-index: 1;\n}\n/* The frame and handles of a selected floating picture, as in Word. */\n.dve-print-float-frame {\n position: absolute;\n z-index: 4;\n box-sizing: border-box;\n border: 1px solid var(--word, #2b579a);\n pointer-events: none;\n}\n.dve-print-float-handle {\n position: absolute;\n box-sizing: border-box;\n width: 9px;\n height: 9px;\n border: 1px solid var(--word, #2b579a);\n background: #fff;\n pointer-events: auto;\n touch-action: none;\n}\n.dve-print-float-handle[data-float-handle='nw'] {\n left: -5px;\n top: -5px;\n}\n.dve-print-float-handle[data-float-handle='n'] {\n left: calc(50% - 5px);\n top: -5px;\n}\n.dve-print-float-handle[data-float-handle='ne'] {\n right: -5px;\n top: -5px;\n}\n.dve-print-float-handle[data-float-handle='e'] {\n right: -5px;\n top: calc(50% - 5px);\n}\n.dve-print-float-handle[data-float-handle='se'] {\n right: -5px;\n bottom: -5px;\n}\n.dve-print-float-handle[data-float-handle='s'] {\n left: calc(50% - 5px);\n bottom: -5px;\n}\n.dve-print-float-handle[data-float-handle='sw'] {\n left: -5px;\n bottom: -5px;\n}\n.dve-print-float-handle[data-float-handle='w'] {\n left: -5px;\n top: calc(50% - 5px);\n}\n/* Floating pictures sit in front of text unless anchored behind it (wp:anchor/@behindDoc). */\n.dve-print-float {\n z-index: 2;\n}\n.dve-print-float-behind {\n z-index: 0;\n}\n.dve-print-picture-missing {\n box-sizing: border-box;\n border: 1px dashed #8a8886;\n background: #f3f2f1;\n}\n.dve-print-chart {\n overflow: hidden;\n background: #fff;\n}\n.dve-print-chart > svg {\n display: block;\n width: 100%;\n height: 100%;\n}\n.dve-print-chart-frame {\n display: grid;\n place-items: center;\n color: #605e5c;\n font-size: 11px;\n}\n.dve-print-block {\n position: absolute;\n left: 0;\n width: 100%;\n}\n.dve-print-line {\n position: absolute;\n left: 0;\n width: 100%;\n font:\n 11pt/1.2 Calibri,\n Arial,\n sans-serif;\n cursor: text;\n}\n.dve-print-line span {\n position: absolute;\n top: 0;\n}\n.dve-print-row {\n position: absolute;\n left: 0;\n width: 100%;\n}\n/* Cells sit at their grid positions; borders come from the document (Word prints no gridlines). */\n.dve-print-cell {\n position: absolute;\n top: 0;\n box-sizing: border-box;\n}\n.dve-print-cell-content {\n position: absolute;\n bottom: 0;\n}\n@media print {\n .dve-ribbon,\n .dve-status,\n .multilingual-controls {\n display: none !important;\n }\n .dve-canvas {\n overflow: visible !important;\n padding: 0 !important;\n }\n .dve-paper {\n display: none !important;\n }\n .dve-print-pages {\n gap: 0 !important;\n zoom: 1 !important;\n }\n .dve-print-page {\n /* Like Word, page colours are not printed unless asked for. */\n background: #fff !important;\n box-shadow: none !important;\n break-after: page;\n }\n}\n.dve-print-header,\n.dve-print-footer {\n position: absolute;\n color: var(--ink);\n font-size: 11pt;\n pointer-events: none;\n}\n/* Header and footer editing in place on a page: the body dims, like Word. */\n.dve-print-story-editing .dve-print-block {\n opacity: 0.45;\n}\n.dve-print-header.dve-header-footer-editing,\n.dve-print-footer.dve-header-footer-editing {\n pointer-events: auto;\n cursor: text;\n z-index: 3;\n}\n.dve-print-header p,\n.dve-print-footer p {\n margin: 0;\n}\n.dve-print-header table,\n.dve-print-footer table {\n width: 100%;\n border-collapse: collapse;\n}\n\n/* Complex field begin/code/separate/end markers: kept in the document, never shown. */\n.dve-field-marker {\n display: inline;\n font-size: 0;\n}\n\n/* TOC entries link to hidden _Toc bookmarks; Word draws them in the entry's style, not as links. */\na.dve-link[data-anchor^='_Toc'] {\n color: inherit;\n text-decoration: none;\n}\n\n/* Tabs sized to Word's tab stops by tab-stops-view.ts; leaders fill the tab's width. */\n.dve-tab {\n display: inline-block;\n overflow: hidden;\n white-space: pre;\n vertical-align: baseline;\n text-indent: 0;\n}\n.dve-tab-leader-dot,\n.dve-tab-leader-middleDot {\n background-image: radial-gradient(circle, currentColor 0.8px, transparent 1.1px);\n background-size: 4px 4px;\n background-repeat: repeat-x;\n background-position: right 0 bottom 0.25em;\n}\n.dve-tab-leader-hyphen {\n background-image: linear-gradient(to right, currentColor 50%, transparent 50%);\n background-size: 6px 1px;\n background-repeat: repeat-x;\n background-position: right 0 bottom 0.4em;\n}\n.dve-tab-leader-underscore,\n.dve-tab-leader-heavy {\n border-bottom: 1px solid currentColor;\n}\n.dve-tab-leader-heavy {\n border-bottom-width: 2px;\n}\n\n/* Footnotes above the bottom margin; the separator is Word's 2-inch rule. */\n.dve-print-footnotes {\n position: absolute;\n z-index: 1;\n}\n.dve-print-footnote-separator {\n position: absolute;\n top: -7px;\n left: 0;\n width: 192px;\n border-top: 1px solid currentColor;\n}\n.dve-print-footnote-continuation-separator {\n width: 100%;\n}\n.dve-print-footnote {\n position: absolute;\n left: 0;\n width: 100%;\n}\n\n/* A note edited in place on its page: its number stays beside the editor. */\n.dve-print-note-container.dve-header-footer-editing {\n display: flex;\n align-items: flex-start;\n gap: 0.25em;\n z-index: 3;\n cursor: text;\n}\n.dve-print-note-container .dve-header-footer-editor {\n flex: 1 1 auto;\n min-width: 0;\n}\n.dve-print-note-label {\n font-size: 0.65em;\n line-height: 1.4;\n vertical-align: baseline;\n}\n\n[data-print-view] .dve-notes-container {\n display: none;\n}\n\n/* Word draws superscript and subscript at about two thirds size without growing the line. */\n.dve-paper sup,\n.dve-paper sub {\n font-size: 0.65em;\n line-height: 0;\n}\n/* Exact-height rows clip content that does not fit, as Word does. */\n.dve-print-cell {\n overflow: hidden;\n}\n.dve-print-paragraph-frame {\n position: absolute;\n top: 0;\n box-sizing: border-box;\n}\n\n/* View > Multiple Pages: Print Layout's sheets sit side by side and wrap, instead of one column. */\n.dve-canvas[data-multipage] .dve-print-pages {\n flex-direction: row;\n flex-wrap: wrap;\n align-items: flex-start;\n justify-content: center;\n}\n\n/* Layout > Line Numbers: numbers in the left margin, one per printed line. */\n.dve-print-line-number {\n position: absolute;\n width: 40px;\n text-align: right;\n font: 10px var(--office-font, system-ui, sans-serif);\n color: #444;\n pointer-events: none;\n}\n\n/* Native input stays mounted while page geometry supplies the visible selection. */\n.dve-paper.dve-print-input {\n position: fixed;\n top: 0;\n left: 0;\n margin: 0;\n opacity: 0;\n max-height: 1px;\n overflow: hidden;\n pointer-events: none;\n z-index: -1;\n}\n.dve-print-pages {\n position: relative;\n}\n.dve-print-selection-layer {\n position: absolute;\n inset: 0;\n pointer-events: none;\n z-index: 3;\n}\n.dve-print-caret,\n.dve-print-selection {\n position: absolute;\n pointer-events: none;\n}\n.dve-print-caret {\n background: currentColor;\n animation: dve-print-caret-blink 1s step-end infinite;\n}\n.dve-print-selection {\n background: Highlight;\n opacity: 0.3;\n}\n@keyframes dve-print-caret-blink {\n 50% {\n opacity: 0;\n }\n}\n@media print {\n .dve-print-input,\n .dve-print-selection-layer {\n display: none !important;\n }\n}\n/* In-place text editing of a floating shape or text box. */\n.dve-print-float-text {\n position: absolute;\n z-index: 5;\n box-sizing: border-box;\n padding: 4px 7px;\n resize: none;\n overflow: auto;\n border: 1px dashed var(--word, #2b579a);\n background: rgb(255 255 255 / 0.85);\n color: #000;\n font:\n 14.67px Calibri,\n Arial,\n sans-serif;\n text-align: center;\n}\n";
|
|
20952
|
+
var print_default = ".dve-print-pages {\n display: flex;\n flex-direction: column;\n align-items: center;\n gap: 24px;\n margin: 0 auto;\n zoom: var(--dve-zoom, 1);\n}\n/* The view wraps the layout's own pages container; zoom the pair once, not twice. */\n.dve-print-pages > .dve-print-pages {\n zoom: 1;\n}\n.dve-print-pages[hidden] {\n display: none;\n}\n.dve-print-page {\n position: relative;\n flex: none;\n background: var(--dve-page-color, var(--office-paper, #fff));\n color: #202124;\n box-shadow:\n 0 1px 3px #20212430,\n 0 4px 12px #20212420;\n overflow: hidden;\n}\n.dve-print-column {\n position: absolute;\n z-index: 1;\n}\n/* The frame and handles of a selected floating picture, as in Word. */\n.dve-print-float-frame {\n position: absolute;\n z-index: 4;\n box-sizing: border-box;\n border: 1px solid var(--word, #2b579a);\n pointer-events: none;\n}\n.dve-print-float-handle {\n position: absolute;\n box-sizing: border-box;\n width: 9px;\n height: 9px;\n border: 1px solid var(--word, #2b579a);\n background: #fff;\n pointer-events: auto;\n touch-action: none;\n}\n.dve-print-float-handle[data-float-handle='nw'] {\n left: -5px;\n top: -5px;\n}\n.dve-print-float-handle[data-float-handle='n'] {\n left: calc(50% - 5px);\n top: -5px;\n}\n.dve-print-float-handle[data-float-handle='ne'] {\n right: -5px;\n top: -5px;\n}\n.dve-print-float-handle[data-float-handle='e'] {\n right: -5px;\n top: calc(50% - 5px);\n}\n.dve-print-float-handle[data-float-handle='se'] {\n right: -5px;\n bottom: -5px;\n}\n.dve-print-float-handle[data-float-handle='s'] {\n left: calc(50% - 5px);\n bottom: -5px;\n}\n.dve-print-float-handle[data-float-handle='sw'] {\n left: -5px;\n bottom: -5px;\n}\n.dve-print-float-handle[data-float-handle='w'] {\n left: -5px;\n top: calc(50% - 5px);\n}\n/* Floating pictures sit in front of text unless anchored behind it (wp:anchor/@behindDoc). */\n.dve-print-float {\n z-index: 2;\n}\n.dve-print-float-behind {\n z-index: 0;\n}\n.dve-print-picture-missing {\n box-sizing: border-box;\n border: 1px dashed #8a8886;\n background: #f3f2f1;\n}\n.dve-print-chart {\n overflow: hidden;\n background: #fff;\n}\n.dve-print-chart.dve-print-shape {\n overflow: visible;\n background: none;\n}\n.dve-print-chart > svg {\n display: block;\n width: 100%;\n height: 100%;\n}\n.dve-print-chart-frame {\n display: grid;\n place-items: center;\n color: #605e5c;\n font-size: 11px;\n}\n.dve-print-block {\n position: absolute;\n left: 0;\n width: 100%;\n}\n.dve-print-line {\n position: absolute;\n left: 0;\n width: 100%;\n font:\n 11pt/1.2 Calibri,\n Arial,\n sans-serif;\n cursor: text;\n}\n.dve-print-line span {\n position: absolute;\n top: 0;\n}\n.dve-print-row {\n position: absolute;\n left: 0;\n width: 100%;\n}\n/* Cells sit at their grid positions; borders come from the document (Word prints no gridlines). */\n.dve-print-cell {\n position: absolute;\n top: 0;\n box-sizing: border-box;\n}\n.dve-print-cell-content {\n position: absolute;\n bottom: 0;\n}\n@media print {\n .dve-ribbon,\n .dve-status,\n .multilingual-controls {\n display: none !important;\n }\n .dve-canvas {\n overflow: visible !important;\n padding: 0 !important;\n }\n .dve-paper {\n display: none !important;\n }\n .dve-print-pages {\n gap: 0 !important;\n zoom: 1 !important;\n }\n .dve-print-page {\n /* Like Word, page colours are not printed unless asked for. */\n background: #fff !important;\n box-shadow: none !important;\n break-after: page;\n }\n}\n.dve-print-header,\n.dve-print-footer {\n position: absolute;\n color: var(--ink);\n font-size: 11pt;\n pointer-events: none;\n}\n/* Header and footer editing in place on a page: the body dims, like Word. */\n.dve-print-story-editing .dve-print-block {\n opacity: 0.45;\n}\n.dve-print-header.dve-header-footer-editing,\n.dve-print-footer.dve-header-footer-editing {\n pointer-events: auto;\n cursor: text;\n z-index: 3;\n}\n.dve-print-header p,\n.dve-print-footer p {\n margin: 0;\n}\n.dve-print-header table,\n.dve-print-footer table {\n width: 100%;\n border-collapse: collapse;\n}\n\n/* Complex field begin/code/separate/end markers: kept in the document, never shown. */\n.dve-field-marker {\n display: inline;\n font-size: 0;\n}\n\n/* TOC entries link to hidden _Toc bookmarks; Word draws them in the entry's style, not as links. */\na.dve-link[data-anchor^='_Toc'] {\n color: inherit;\n text-decoration: none;\n}\n\n/* Tabs sized to Word's tab stops by tab-stops-view.ts; leaders fill the tab's width. */\n.dve-tab {\n display: inline-block;\n overflow: hidden;\n white-space: pre;\n vertical-align: baseline;\n text-indent: 0;\n}\n.dve-tab-leader-dot,\n.dve-tab-leader-middleDot {\n background-image: radial-gradient(circle, currentColor 0.8px, transparent 1.1px);\n background-size: 4px 4px;\n background-repeat: repeat-x;\n background-position: right 0 bottom 0.25em;\n}\n.dve-tab-leader-hyphen {\n background-image: linear-gradient(to right, currentColor 50%, transparent 50%);\n background-size: 6px 1px;\n background-repeat: repeat-x;\n background-position: right 0 bottom 0.4em;\n}\n.dve-tab-leader-underscore,\n.dve-tab-leader-heavy {\n border-bottom: 1px solid currentColor;\n}\n.dve-tab-leader-heavy {\n border-bottom-width: 2px;\n}\n\n/* Footnotes above the bottom margin; the separator is Word's 2-inch rule. */\n.dve-print-footnotes {\n position: absolute;\n z-index: 1;\n}\n.dve-print-footnote-separator {\n position: absolute;\n top: -7px;\n left: 0;\n width: 192px;\n border-top: 1px solid currentColor;\n}\n.dve-print-footnote-continuation-separator {\n width: 100%;\n}\n.dve-print-footnote {\n position: absolute;\n left: 0;\n width: 100%;\n}\n\n/* A note edited in place on its page: its number stays beside the editor. */\n.dve-print-note-container.dve-header-footer-editing {\n display: flex;\n align-items: flex-start;\n gap: 0.25em;\n z-index: 3;\n cursor: text;\n}\n.dve-print-note-container .dve-header-footer-editor {\n flex: 1 1 auto;\n min-width: 0;\n}\n.dve-print-note-label {\n font-size: 0.65em;\n line-height: 1.4;\n vertical-align: baseline;\n}\n\n[data-print-view] .dve-notes-container {\n display: none;\n}\n\n/* Word draws superscript and subscript at about two thirds size without growing the line. */\n.dve-paper sup,\n.dve-paper sub {\n font-size: 0.65em;\n line-height: 0;\n}\n/* Exact-height rows clip content that does not fit, as Word does. */\n.dve-print-cell {\n overflow: hidden;\n}\n.dve-print-paragraph-frame {\n position: absolute;\n top: 0;\n box-sizing: border-box;\n}\n\n/* View > Multiple Pages: Print Layout's sheets sit side by side and wrap, instead of one column. */\n.dve-canvas[data-multipage] .dve-print-pages {\n flex-direction: row;\n flex-wrap: wrap;\n align-items: flex-start;\n justify-content: center;\n}\n\n/* Layout > Line Numbers: numbers in the left margin, one per printed line. */\n.dve-print-line-number {\n position: absolute;\n width: 40px;\n text-align: right;\n font: 10px var(--office-font, system-ui, sans-serif);\n color: #444;\n pointer-events: none;\n}\n\n/* Native input stays mounted while page geometry supplies the visible selection. */\n.dve-paper.dve-print-input {\n position: fixed;\n top: 0;\n left: 0;\n margin: 0;\n opacity: 0;\n max-height: 1px;\n overflow: hidden;\n pointer-events: none;\n z-index: -1;\n}\n.dve-print-pages {\n position: relative;\n}\n.dve-print-selection-layer {\n position: absolute;\n inset: 0;\n pointer-events: none;\n z-index: 3;\n}\n.dve-print-caret,\n.dve-print-selection {\n position: absolute;\n pointer-events: none;\n}\n.dve-print-caret {\n background: currentColor;\n animation: dve-print-caret-blink 1s step-end infinite;\n}\n.dve-print-selection {\n background: Highlight;\n opacity: 0.3;\n}\n@keyframes dve-print-caret-blink {\n 50% {\n opacity: 0;\n }\n}\n@media print {\n .dve-print-input,\n .dve-print-selection-layer {\n display: none !important;\n }\n}\n/* In-place text editing of a floating shape or text box. */\n.dve-print-float-text {\n position: absolute;\n z-index: 5;\n box-sizing: border-box;\n padding: 4px 7px;\n resize: none;\n overflow: auto;\n border: 1px dashed var(--word, #2b579a);\n background: rgb(255 255 255 / 0.85);\n color: #000;\n font:\n 14.67px Calibri,\n Arial,\n sans-serif;\n text-align: center;\n}\n";
|
|
20953
20953
|
|
|
20954
20954
|
// raw-css:/home/runner/work/ooxml/ooxml/src/ui/src/docx/styles/chrome-titlebar.css?raw
|
|
20955
20955
|
var chrome_titlebar_default = ".dve-frame {\n position: relative;\n border: 0;\n box-shadow: none;\n}\n.dve-icon {\n flex: none;\n}\n.dve-icon-button {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n min-width: 28px;\n height: 28px;\n padding: 0 6px;\n border: 0;\n border-radius: var(--dve-radius, var(--office-radius, 4px));\n background: none;\n color: inherit;\n cursor: pointer;\n}\n.dve-icon-button:hover:not(:disabled),\n.dve-icon-button[aria-pressed='true'] {\n background: var(--word-soft);\n}\n.dve-icon-button:disabled {\n opacity: 0.4;\n cursor: default;\n}\n\n/* Title bar: drawn by the shared office-ui-title-bar; these colour it. */\n.dve-titlebar {\n flex: none;\n --office-title-bar-height: 40px;\n --office-title-bar-background: var(--chrome);\n --office-title-bar-border: var(--line);\n --office-title-bar-mark-background: var(--word);\n --office-title-bar-mark-foreground: var(\n --dve-primary-foreground,\n var(--office-accent-foreground, #fff)\n );\n}\n";
|
|
@@ -21700,6 +21700,7 @@ function chartElement(chart) {
|
|
|
21700
21700
|
if (svg && svg.localName === "svg") {
|
|
21701
21701
|
sanitizeChartSvg(svg);
|
|
21702
21702
|
element.classList.add("dve-print-chart");
|
|
21703
|
+
if (chart.shape) element.classList.add("dve-print-shape");
|
|
21703
21704
|
element.title = chart.label;
|
|
21704
21705
|
element.append(document.importNode(svg, true));
|
|
21705
21706
|
} else {
|
package/dist/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export { OFFICE_UI_TAGS, registerOfficeUi } from './chunk-
|
|
1
|
+
export { OFFICE_UI_TAGS, registerOfficeUi } from './chunk-2EFIFIPB.js';
|
|
2
2
|
export { HOST_REGION_ATTRIBUTE, HostRegionHost, RIBBON_ADD_IN_EVENT, createHostBackstagePages, defineRibbonAddInElements, syncHostMenuChildren, syncRibbonAddIns, tidyMenuSeparators, withHostMenuItems } from './chunk-KSOHDEUI.js';
|
|
3
|
-
export { OfficeUiSmartArt, OfficeUiSmartArtPicker, OfficeUiSmartArtTextPane, SmartArtTextPaneController, defineSmartArt, defineSmartArtPicker, defineSmartArtTextPane, renderDiagramDrawing, smartArtColorsGalleryState, smartArtLayoutTileSvg, smartArtStylesGalleryState, smartArtTileSvg } from './chunk-
|
|
4
|
-
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 { OfficeUiSmartArt, OfficeUiSmartArtPicker, OfficeUiSmartArtTextPane, SmartArtTextPaneController, defineSmartArt, defineSmartArtPicker, defineSmartArtTextPane, renderDiagramDrawing, smartArtColorsGalleryState, smartArtLayoutTileSvg, smartArtStylesGalleryState, smartArtTileSvg } from './chunk-W2JD75LX.js';
|
|
4
|
+
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-WBE2Q5DC.js';
|
|
5
5
|
export { TeamsPresentationPreview, defineTeamsPresentationPreview } from './chunk-FHO7TEWA.js';
|
|
6
6
|
import './chunk-CDAXY5KC.js';
|
|
7
7
|
import './chunk-NDUD5JJB.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkNFP4PCTP_cjs = require('./chunk-NFP4PCTP.cjs');
|
|
4
4
|
var chunk6KLPQQYP_cjs = require('./chunk-6KLPQQYP.cjs');
|
|
5
5
|
var chunkFM4C4MBJ_cjs = require('./chunk-FM4C4MBJ.cjs');
|
|
6
6
|
|
|
@@ -102,7 +102,7 @@ function mountThreeViewInto(doc, wrapper, options) {
|
|
|
102
102
|
return view;
|
|
103
103
|
}
|
|
104
104
|
function isChart3DEditable(element, context) {
|
|
105
|
-
return element.type === "chart" && Boolean(context.interactive) && Boolean(context.onChartPointChange) && Boolean(context.selectedElementIds?.has(element.id)) &&
|
|
105
|
+
return element.type === "chart" && Boolean(context.interactive) && Boolean(context.onChartPointChange) && Boolean(context.selectedElementIds?.has(element.id)) && chunkNFP4PCTP_cjs.canDrillDown(element);
|
|
106
106
|
}
|
|
107
107
|
function selectedChartPartOf(element, context) {
|
|
108
108
|
return context.chartPartSelection?.elementId === element.id ? context.chartPartSelection.part : null;
|
|
@@ -144,13 +144,13 @@ function wireChartThreeViewEvents(view, element, context, badgeHost) {
|
|
|
144
144
|
const listeners = new AbortController();
|
|
145
145
|
chartViewListeners.set(view, listeners);
|
|
146
146
|
view.addEventListener(
|
|
147
|
-
|
|
148
|
-
(event) =>
|
|
147
|
+
chunkNFP4PCTP_cjs.THREE_VIEW_EVENTS.select,
|
|
148
|
+
(event) => chunkNFP4PCTP_cjs.applyChart3DSelect(bridge, event.detail.part),
|
|
149
149
|
{ signal: listeners.signal }
|
|
150
150
|
);
|
|
151
151
|
view.addEventListener(
|
|
152
|
-
|
|
153
|
-
(event) =>
|
|
152
|
+
chunkNFP4PCTP_cjs.THREE_VIEW_EVENTS.drag,
|
|
153
|
+
(event) => chunkNFP4PCTP_cjs.applyChart3DDrag(bridge, event.detail),
|
|
154
154
|
{ signal: listeners.signal }
|
|
155
155
|
);
|
|
156
156
|
}
|
|
@@ -164,7 +164,7 @@ function applyThreeViewTextStyle(el, style) {
|
|
|
164
164
|
// src/pptx/dom/elements/smartart-3d.ts
|
|
165
165
|
var renderSmartArt3DElement = (element, zIndex, context) => {
|
|
166
166
|
const wrapper = renderSmartArtSvg(element, zIndex, context);
|
|
167
|
-
const spec = wrapper ?
|
|
167
|
+
const spec = wrapper ? chunkNFP4PCTP_cjs.resolveSmartArtThreeViewSpec(element, context.smartArt3D) : null;
|
|
168
168
|
if (!wrapper || !spec) {
|
|
169
169
|
return wrapper;
|
|
170
170
|
}
|
|
@@ -174,18 +174,18 @@ var renderSmartArt3DElement = (element, zIndex, context) => {
|
|
|
174
174
|
textStyle: context.presentationStates?.get(element.id)?.textStyle
|
|
175
175
|
});
|
|
176
176
|
if (context.onSmartArtNodeTextChange && context.interactive && !context.presenting) {
|
|
177
|
-
const layer = renderSmartArtSvg(
|
|
177
|
+
const layer = renderSmartArtSvg(chunkNFP4PCTP_cjs.elementInLocalFrame(element), 0, context);
|
|
178
178
|
if (layer) {
|
|
179
179
|
layer.classList.add("pptxv-smartart-3d-edit-layer");
|
|
180
|
-
layer.setAttribute(
|
|
181
|
-
|
|
180
|
+
layer.setAttribute(chunkNFP4PCTP_cjs.SMARTART_3D_EDIT_LAYER_ATTRIBUTE, "true");
|
|
181
|
+
chunkNFP4PCTP_cjs.stripEditLayerMarkers(layer);
|
|
182
182
|
layer.setAttribute("aria-hidden", "true");
|
|
183
183
|
Object.assign(layer.style, { position: "absolute", inset: "0", zIndex: "1" });
|
|
184
184
|
for (const svg of layer.querySelectorAll("svg")) {
|
|
185
185
|
svg.style.opacity = "0";
|
|
186
186
|
}
|
|
187
187
|
wrapper.appendChild(layer);
|
|
188
|
-
|
|
188
|
+
chunkNFP4PCTP_cjs.routeEditLayerPointerToNodes(layer);
|
|
189
189
|
}
|
|
190
190
|
}
|
|
191
191
|
return wrapper;
|
|
@@ -198,14 +198,14 @@ function nodeTarget(target) {
|
|
|
198
198
|
}
|
|
199
199
|
function enableSmartArtEditing(chrome, element, context) {
|
|
200
200
|
const data = element.smartArtData;
|
|
201
|
-
if (!data || !context.onSmartArtNodeTextChange && !context.onSmartArtNodeFillChange || !
|
|
201
|
+
if (!data || !context.onSmartArtNodeTextChange && !context.onSmartArtNodeFillChange || !chunkNFP4PCTP_cjs.canDrillDown(element)) {
|
|
202
202
|
return;
|
|
203
203
|
}
|
|
204
204
|
let editor = null;
|
|
205
205
|
let swatches = null;
|
|
206
206
|
let hideTimer;
|
|
207
207
|
const cancelHide = () => clearTimeout(hideTimer);
|
|
208
|
-
const ignoredHover = (event) => chrome.closest(`[${
|
|
208
|
+
const ignoredHover = (event) => chrome.closest(`[${chunkNFP4PCTP_cjs.SMARTART_3D_EDIT_LAYER_ATTRIBUTE}]`) !== null && !chunkNFP4PCTP_cjs.isForwardedEditLayerEvent(event);
|
|
209
209
|
const closeEditor = (input = editor) => {
|
|
210
210
|
if (!input || input !== editor) {
|
|
211
211
|
return;
|
|
@@ -221,8 +221,8 @@ function enableSmartArtEditing(chrome, element, context) {
|
|
|
221
221
|
}
|
|
222
222
|
event.stopPropagation();
|
|
223
223
|
const textNode = target.querySelector("text");
|
|
224
|
-
const textRect = textNode ?
|
|
225
|
-
const rect = textRect && textRect.width > 0 ? textRect :
|
|
224
|
+
const textRect = textNode ? chunkNFP4PCTP_cjs.measureSvgViewportRect(textNode) : null;
|
|
225
|
+
const rect = textRect && textRect.width > 0 ? textRect : chunkNFP4PCTP_cjs.measureSvgViewportRect(target);
|
|
226
226
|
if (!rect) {
|
|
227
227
|
return;
|
|
228
228
|
}
|
|
@@ -246,7 +246,7 @@ function enableSmartArtEditing(chrome, element, context) {
|
|
|
246
246
|
textAlign: "center"
|
|
247
247
|
});
|
|
248
248
|
editor = input;
|
|
249
|
-
input.value =
|
|
249
|
+
input.value = chunkNFP4PCTP_cjs.findSmartArtNodeText(data, nodeId) ?? "";
|
|
250
250
|
const commit = () => {
|
|
251
251
|
if (input !== editor) {
|
|
252
252
|
return;
|
|
@@ -281,7 +281,7 @@ function enableSmartArtEditing(chrome, element, context) {
|
|
|
281
281
|
}
|
|
282
282
|
cancelHide();
|
|
283
283
|
swatches?.remove();
|
|
284
|
-
const rect =
|
|
284
|
+
const rect = chunkNFP4PCTP_cjs.measureSvgViewportRect(target);
|
|
285
285
|
if (!rect) {
|
|
286
286
|
return;
|
|
287
287
|
}
|
|
@@ -300,7 +300,7 @@ function enableSmartArtEditing(chrome, element, context) {
|
|
|
300
300
|
});
|
|
301
301
|
swatches.setAttribute("role", "group");
|
|
302
302
|
swatches.setAttribute("aria-label", context.t("pptx.smartArt.fillColor"));
|
|
303
|
-
for (const color of
|
|
303
|
+
for (const color of chunkNFP4PCTP_cjs.resolvePalette(data).slice(0, 6)) {
|
|
304
304
|
const button = createEl(chrome.ownerDocument, "button", "", {
|
|
305
305
|
width: "18px",
|
|
306
306
|
height: "18px",
|
|
@@ -402,7 +402,7 @@ function buildSmartArtFallbackSvg(doc, layout, a11yNodes = [], nodeIds = []) {
|
|
|
402
402
|
svg.setAttribute("class", "pptxv-smartart-svg");
|
|
403
403
|
svg.setAttribute("style", SMARTART_SVG_STYLE);
|
|
404
404
|
for (const conn of layout.connectors) {
|
|
405
|
-
const paint =
|
|
405
|
+
const paint = chunkNFP4PCTP_cjs.smartArtConnectorPaint(conn);
|
|
406
406
|
svg.appendChild(
|
|
407
407
|
createSvgEl(doc, "path", {
|
|
408
408
|
d: paint.d,
|
|
@@ -461,7 +461,7 @@ function buildFallbackNode(doc, node, shadowFilter, a11yLabel, nodeId) {
|
|
|
461
461
|
})
|
|
462
462
|
);
|
|
463
463
|
}
|
|
464
|
-
const label =
|
|
464
|
+
const label = chunkNFP4PCTP_cjs.smartArtNodeLabel(node);
|
|
465
465
|
if (label.visible) {
|
|
466
466
|
appendSvgTextLines(doc, g, {
|
|
467
467
|
lines: label.lines,
|
|
@@ -497,41 +497,41 @@ var renderSmartArtSvg = (element, zIndex, context) => {
|
|
|
497
497
|
doc,
|
|
498
498
|
"div",
|
|
499
499
|
"pptxv-element pptxv-smartart",
|
|
500
|
-
|
|
500
|
+
chunkNFP4PCTP_cjs.getContainerStyle(element, zIndex)
|
|
501
501
|
);
|
|
502
502
|
wrapper.dataset.elementId = element.id;
|
|
503
503
|
wrapper.dataset.testid = `smartart-${data?.layout ?? "diagram"}`;
|
|
504
|
-
const chrome = createEl(doc, "div", "pptxv-smartart-chrome",
|
|
504
|
+
const chrome = createEl(doc, "div", "pptxv-smartart-chrome", chunkNFP4PCTP_cjs.buildChromeStyle(data?.chrome));
|
|
505
505
|
chrome.style.position = "relative";
|
|
506
506
|
wrapper.appendChild(chrome);
|
|
507
507
|
if (data) {
|
|
508
|
-
const a11y =
|
|
508
|
+
const a11y = chunkNFP4PCTP_cjs.buildSmartArtA11y(data);
|
|
509
509
|
chrome.setAttribute("role", "img");
|
|
510
510
|
chrome.setAttribute("aria-label", a11y.label);
|
|
511
511
|
}
|
|
512
512
|
const nodes = data?.nodes ?? [];
|
|
513
513
|
const drawingShapes = data?.drawingShapes ?? [];
|
|
514
514
|
const animationState = context.presentationStates?.get(element.id);
|
|
515
|
-
const { nodes: revealedNodesFull } =
|
|
515
|
+
const { nodes: revealedNodesFull } = chunkNFP4PCTP_cjs.resolveRevealedSmartArtNodes(
|
|
516
516
|
nodes,
|
|
517
517
|
animationState,
|
|
518
518
|
data?.presLayoutVars
|
|
519
519
|
);
|
|
520
520
|
if (data && drawingShapes.length > 0) {
|
|
521
|
-
const revealedShapes =
|
|
521
|
+
const revealedShapes = chunkNFP4PCTP_cjs.resolveRevealedDrawingShapes(drawingShapes, nodes, animationState);
|
|
522
522
|
chrome.appendChild(
|
|
523
|
-
buildDrawingShapesSvg(doc, element.id, data,
|
|
523
|
+
buildDrawingShapesSvg(doc, element.id, data, chunkNFP4PCTP_cjs.buildSmartArtA11y(data).nodes, revealedShapes)
|
|
524
524
|
);
|
|
525
525
|
enableSmartArtEditing(chrome, element, context);
|
|
526
526
|
return wrapper;
|
|
527
527
|
}
|
|
528
528
|
if (data && nodes.length > 0) {
|
|
529
529
|
const revealedNodes = revealedNodesFull;
|
|
530
|
-
const layout =
|
|
530
|
+
const layout = chunkNFP4PCTP_cjs.computeSmartArtElementLayout(
|
|
531
531
|
data,
|
|
532
532
|
revealedNodes,
|
|
533
533
|
{ width: element.width, height: element.height },
|
|
534
|
-
|
|
534
|
+
chunkNFP4PCTP_cjs.resolvePalette(data),
|
|
535
535
|
data.style ?? "flat",
|
|
536
536
|
element.id
|
|
537
537
|
);
|
|
@@ -539,8 +539,8 @@ var renderSmartArtSvg = (element, zIndex, context) => {
|
|
|
539
539
|
buildSmartArtFallbackSvg(
|
|
540
540
|
doc,
|
|
541
541
|
layout,
|
|
542
|
-
|
|
543
|
-
|
|
542
|
+
chunkNFP4PCTP_cjs.buildSmartArtA11y(data).nodes,
|
|
543
|
+
chunkNFP4PCTP_cjs.flattenNodes(revealedNodes).map((node) => node.id)
|
|
544
544
|
)
|
|
545
545
|
);
|
|
546
546
|
enableSmartArtEditing(chrome, element, context);
|
|
@@ -563,17 +563,17 @@ var renderSmartArtSvg = (element, zIndex, context) => {
|
|
|
563
563
|
function buildDrawingShapesSvg(doc, elementId, data, a11yNodes, revealedShapes) {
|
|
564
564
|
const allShapes = data.drawingShapes ?? [];
|
|
565
565
|
const style = data.style ?? "flat";
|
|
566
|
-
const viewBox =
|
|
567
|
-
const rendered =
|
|
566
|
+
const viewBox = chunkNFP4PCTP_cjs.computeDrawingViewBox(allShapes);
|
|
567
|
+
const rendered = chunkNFP4PCTP_cjs.projectDrawingShapes(
|
|
568
568
|
elementId,
|
|
569
569
|
revealedShapes,
|
|
570
570
|
viewBox,
|
|
571
|
-
|
|
571
|
+
chunkNFP4PCTP_cjs.resolvePalette(data),
|
|
572
572
|
style
|
|
573
573
|
);
|
|
574
|
-
const shadow =
|
|
574
|
+
const shadow = chunkNFP4PCTP_cjs.styleShadowFilter(style);
|
|
575
575
|
const labelsById = new Map(a11yNodes.map((node) => [node.id, node.label]));
|
|
576
|
-
const nodeIds =
|
|
576
|
+
const nodeIds = chunkNFP4PCTP_cjs.resolveRevealedDrawingShapeNodeIds(allShapes, revealedShapes, data.nodes);
|
|
577
577
|
const svg = createSvgEl(doc, "svg", {
|
|
578
578
|
viewBox: `0 0 ${viewBox.width} ${viewBox.height}`,
|
|
579
579
|
preserveAspectRatio: "xMidYMid meet"
|
|
@@ -702,26 +702,26 @@ function createElementRendererRegistry() {
|
|
|
702
702
|
// src/pptx/dom/smartart-insert-preview.ts
|
|
703
703
|
function buildSmartArtInsertPreview(doc, t, layout, size) {
|
|
704
704
|
const scale = Math.min(
|
|
705
|
-
size.width /
|
|
706
|
-
size.height /
|
|
705
|
+
size.width / chunkNFP4PCTP_cjs.SMARTART_PREVIEW_ELEMENT_WIDTH,
|
|
706
|
+
size.height / chunkNFP4PCTP_cjs.SMARTART_PREVIEW_ELEMENT_HEIGHT
|
|
707
707
|
);
|
|
708
708
|
const box = createEl(doc, "div", "pptxv-smartart-option-preview", {
|
|
709
|
-
width: `${Math.round(
|
|
710
|
-
height: `${Math.round(
|
|
709
|
+
width: `${Math.round(chunkNFP4PCTP_cjs.SMARTART_PREVIEW_ELEMENT_WIDTH * scale)}px`,
|
|
710
|
+
height: `${Math.round(chunkNFP4PCTP_cjs.SMARTART_PREVIEW_ELEMENT_HEIGHT * scale)}px`,
|
|
711
711
|
overflow: "hidden",
|
|
712
712
|
pointerEvents: "none",
|
|
713
713
|
position: "relative"
|
|
714
714
|
});
|
|
715
715
|
box.setAttribute("aria-hidden", "true");
|
|
716
716
|
const stage = createEl(doc, "div", void 0, {
|
|
717
|
-
width: `${
|
|
718
|
-
height: `${
|
|
717
|
+
width: `${chunkNFP4PCTP_cjs.SMARTART_PREVIEW_ELEMENT_WIDTH}px`,
|
|
718
|
+
height: `${chunkNFP4PCTP_cjs.SMARTART_PREVIEW_ELEMENT_HEIGHT}px`,
|
|
719
719
|
transform: `scale(${scale})`,
|
|
720
720
|
transformOrigin: "top left",
|
|
721
721
|
position: "relative"
|
|
722
722
|
});
|
|
723
723
|
box.appendChild(stage);
|
|
724
|
-
const element =
|
|
724
|
+
const element = chunkNFP4PCTP_cjs.buildSmartArtPreviewElement(layout);
|
|
725
725
|
const slide = {
|
|
726
726
|
id: "smartart-preview",
|
|
727
727
|
rId: "smartart-preview",
|
|
@@ -731,7 +731,7 @@ function buildSmartArtInsertPreview(doc, t, layout, size) {
|
|
|
731
731
|
const context = {
|
|
732
732
|
document: doc,
|
|
733
733
|
slide,
|
|
734
|
-
canvasSize: { width:
|
|
734
|
+
canvasSize: { width: chunkNFP4PCTP_cjs.SMARTART_PREVIEW_ELEMENT_WIDTH, height: chunkNFP4PCTP_cjs.SMARTART_PREVIEW_ELEMENT_HEIGHT },
|
|
735
735
|
scale: 1,
|
|
736
736
|
mediaDataUrls: /* @__PURE__ */ new Map(),
|
|
737
737
|
t,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { canDrillDown, 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, SMARTART_PREVIEW_ELEMENT_WIDTH, SMARTART_PREVIEW_ELEMENT_HEIGHT, buildSmartArtPreviewElement, isForwardedEditLayerEvent } from './chunk-
|
|
1
|
+
import { canDrillDown, 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, SMARTART_PREVIEW_ELEMENT_WIDTH, SMARTART_PREVIEW_ELEMENT_HEIGHT, buildSmartArtPreviewElement, isForwardedEditLayerEvent } from './chunk-R5GKUSHI.mjs';
|
|
2
2
|
import { formatAxisValue } from './chunk-34LEUH5R.mjs';
|
|
3
3
|
import { THREE_VIEW_TAG, defineThreeViewElement } from './chunk-AMW2AR7J.mjs';
|
|
4
4
|
|