pptx-react-viewer 3.1.0 → 3.1.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/CHANGELOG.md +58 -0
- package/dist/{AiChatPanel-WVORGKRT.js → AiChatPanel-4EYZDQXM.js} +24 -24
- package/dist/AiChatPanel-4EYZDQXM.js.br +0 -0
- package/dist/AiChatPanel-4EYZDQXM.js.gz +0 -0
- package/dist/{AiChatPanel-5LCCN7FG.mjs → AiChatPanel-UCFQIWOQ.mjs} +4 -4
- package/dist/AiChatPanel-UCFQIWOQ.mjs.br +0 -0
- package/dist/AiChatPanel-UCFQIWOQ.mjs.gz +0 -0
- package/dist/{Area3DChartScene-W6UZTRDP.mjs → Area3DChartScene-PMYXO4MR.mjs} +1 -1
- package/dist/Area3DChartScene-PMYXO4MR.mjs.br +0 -0
- package/dist/Area3DChartScene-PMYXO4MR.mjs.gz +0 -0
- package/dist/{Area3DChartScene-DY5CSLE2.js → Area3DChartScene-YBMC6NKY.js} +2 -2
- package/dist/Area3DChartScene-YBMC6NKY.js.br +0 -0
- package/dist/Area3DChartScene-YBMC6NKY.js.gz +0 -0
- package/dist/{Bar3DChartScene-7HZSPYG4.js → Bar3DChartScene-75DCA2ZA.js} +2 -2
- package/dist/Bar3DChartScene-75DCA2ZA.js.br +0 -0
- package/dist/Bar3DChartScene-75DCA2ZA.js.gz +0 -0
- package/dist/{Bar3DChartScene-FCWQEQLH.mjs → Bar3DChartScene-CEOI6SU6.mjs} +1 -1
- package/dist/Bar3DChartScene-CEOI6SU6.mjs.br +0 -0
- package/dist/Bar3DChartScene-CEOI6SU6.mjs.gz +0 -0
- package/dist/{Line3DChartScene-EPPWQOHS.mjs → Line3DChartScene-EZZKWUZR.mjs} +1 -1
- package/dist/Line3DChartScene-EZZKWUZR.mjs.br +0 -0
- package/dist/Line3DChartScene-EZZKWUZR.mjs.gz +0 -0
- package/dist/{Line3DChartScene-BKO24WYO.js → Line3DChartScene-STGX6N6V.js} +2 -2
- package/dist/Line3DChartScene-STGX6N6V.js.br +0 -0
- package/dist/Line3DChartScene-STGX6N6V.js.gz +0 -0
- package/dist/{Model3DScene-JFVRE5VL.js → Model3DScene-DWRD63FH.js} +2 -2
- package/dist/Model3DScene-DWRD63FH.js.br +0 -0
- package/dist/Model3DScene-DWRD63FH.js.gz +0 -0
- package/dist/{Model3DScene-IAY33GO2.mjs → Model3DScene-FGQJKWL6.mjs} +1 -1
- package/dist/Model3DScene-FGQJKWL6.mjs.br +0 -0
- package/dist/Model3DScene-FGQJKWL6.mjs.gz +0 -0
- package/dist/{PieChart3DScene-ZP5TSL62.mjs → PieChart3DScene-DH6RSJO6.mjs} +1 -1
- package/dist/PieChart3DScene-DH6RSJO6.mjs.br +0 -0
- package/dist/PieChart3DScene-DH6RSJO6.mjs.gz +0 -0
- package/dist/{PieChart3DScene-IPH7GLKU.js → PieChart3DScene-R3Y7OVVO.js} +2 -2
- package/dist/PieChart3DScene-R3Y7OVVO.js.br +0 -0
- package/dist/PieChart3DScene-R3Y7OVVO.js.gz +0 -0
- package/dist/PowerPointViewer-Cl6jBPNw.d.ts.map +1 -1
- package/dist/{SurfaceChart3DScene-DOMJGPAD.mjs → SurfaceChart3DScene-BMBU5RKI.mjs} +1 -1
- package/dist/SurfaceChart3DScene-BMBU5RKI.mjs.br +0 -0
- package/dist/SurfaceChart3DScene-BMBU5RKI.mjs.gz +0 -0
- package/dist/{SurfaceChart3DScene-TGDBVJSW.js → SurfaceChart3DScene-UM5HA3VO.js} +2 -2
- package/dist/SurfaceChart3DScene-UM5HA3VO.js.br +0 -0
- package/dist/SurfaceChart3DScene-UM5HA3VO.js.gz +0 -0
- package/dist/{chunk-7JZLE56X.js → chunk-2HLDBQH7.js} +157 -157
- package/dist/chunk-2HLDBQH7.js.br +0 -0
- package/dist/chunk-2HLDBQH7.js.gz +0 -0
- package/dist/{chunk-VMLKJDA5.mjs → chunk-4VVOTEQ4.mjs} +359 -336
- package/dist/chunk-4VVOTEQ4.mjs.br +0 -0
- package/dist/chunk-4VVOTEQ4.mjs.gz +0 -0
- package/dist/{chunk-T7BAPZBY.js → chunk-7ZQ2FZXE.js} +305 -45
- package/dist/chunk-7ZQ2FZXE.js.br +0 -0
- package/dist/chunk-7ZQ2FZXE.js.gz +0 -0
- package/dist/{chunk-MKPSUHUH.mjs → chunk-ARJE3V6V.mjs} +5 -6
- package/dist/chunk-ARJE3V6V.mjs.br +0 -0
- package/dist/chunk-ARJE3V6V.mjs.gz +0 -0
- package/dist/{chunk-A5EUD6UU.js → chunk-MQEG5GOV.js} +1343 -1250
- package/dist/chunk-MQEG5GOV.js.br +0 -0
- package/dist/chunk-MQEG5GOV.js.gz +0 -0
- package/dist/{chunk-PQNZCSB7.mjs → chunk-O5DKWJDK.mjs} +1 -1
- package/dist/chunk-O5DKWJDK.mjs.br +0 -0
- package/dist/{chunk-PQNZCSB7.mjs.gz → chunk-O5DKWJDK.mjs.gz} +0 -0
- package/dist/{chunk-BP2L2KOZ.mjs → chunk-S546O4W2.mjs} +291 -45
- package/dist/chunk-S546O4W2.mjs.br +0 -0
- package/dist/chunk-S546O4W2.mjs.gz +0 -0
- package/dist/{chunk-PIUB7R2K.js → chunk-SWRY3SI5.js} +5 -6
- package/dist/chunk-SWRY3SI5.js.br +0 -0
- package/dist/chunk-SWRY3SI5.js.gz +0 -0
- package/dist/{chunk-TIEUZCYQ.mjs → chunk-VLLZ3QL2.mjs} +265 -172
- package/dist/chunk-VLLZ3QL2.mjs.br +0 -0
- package/dist/chunk-VLLZ3QL2.mjs.gz +0 -0
- package/dist/{chunk-SNWAM2XJ.mjs → chunk-W3J6SNVE.mjs} +2 -2
- package/dist/chunk-W3J6SNVE.mjs.br +0 -0
- package/dist/chunk-W3J6SNVE.mjs.gz +0 -0
- package/dist/{chunk-POAZ53L5.js → chunk-WVIKFMNS.js} +725 -704
- package/dist/chunk-WVIKFMNS.js.br +0 -0
- package/dist/chunk-WVIKFMNS.js.gz +0 -0
- package/dist/{chunk-VQVC27WL.js → chunk-YNUYFR2T.js} +3 -3
- package/dist/chunk-YNUYFR2T.js.br +0 -0
- package/dist/chunk-YNUYFR2T.js.gz +0 -0
- package/dist/i18n.js +4 -4
- package/dist/i18n.js.br +0 -0
- package/dist/i18n.js.gz +0 -0
- package/dist/i18n.mjs +1 -1
- package/dist/i18n.mjs.br +0 -0
- package/dist/i18n.mjs.gz +0 -0
- package/dist/index.d.ts +27 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +47 -47
- package/dist/index.js.br +0 -0
- package/dist/index.js.gz +0 -0
- package/dist/index.mjs +6 -6
- package/dist/index.mjs.br +0 -0
- package/dist/index.mjs.gz +0 -0
- package/dist/internals.d.ts +99 -22
- package/dist/internals.d.ts.map +1 -1
- package/dist/internals.js +79 -79
- package/dist/internals.js.br +0 -0
- package/dist/internals.js.gz +0 -0
- package/dist/internals.mjs +4 -4
- package/dist/internals.mjs.br +0 -0
- package/dist/internals.mjs.gz +0 -0
- package/dist/pptx-viewer.css +1 -1
- package/dist/pptx-viewer.css.br +0 -0
- package/dist/pptx-viewer.css.gz +0 -0
- package/dist/{useViewerBuildingBlocks-DC1O_op4.d.ts → useViewerBuildingBlocks-X1L8BjsQ.d.ts} +19 -2
- package/dist/useViewerBuildingBlocks-X1L8BjsQ.d.ts.map +1 -0
- package/dist/viewer/index.js +27 -27
- package/dist/viewer/index.js.br +0 -0
- package/dist/viewer/index.js.gz +0 -0
- package/dist/viewer/index.mjs +6 -6
- package/dist/viewer/index.mjs.br +0 -0
- package/dist/viewer/index.mjs.gz +0 -0
- package/package.json +1 -1
- package/dist/AiChatPanel-5LCCN7FG.mjs.br +0 -0
- package/dist/AiChatPanel-5LCCN7FG.mjs.gz +0 -0
- package/dist/AiChatPanel-WVORGKRT.js.br +0 -0
- package/dist/AiChatPanel-WVORGKRT.js.gz +0 -0
- package/dist/Area3DChartScene-DY5CSLE2.js.br +0 -0
- package/dist/Area3DChartScene-DY5CSLE2.js.gz +0 -0
- package/dist/Area3DChartScene-W6UZTRDP.mjs.br +0 -0
- package/dist/Area3DChartScene-W6UZTRDP.mjs.gz +0 -0
- package/dist/Bar3DChartScene-7HZSPYG4.js.br +0 -0
- package/dist/Bar3DChartScene-7HZSPYG4.js.gz +0 -0
- package/dist/Bar3DChartScene-FCWQEQLH.mjs.br +0 -0
- package/dist/Bar3DChartScene-FCWQEQLH.mjs.gz +0 -0
- package/dist/Line3DChartScene-BKO24WYO.js.br +0 -0
- package/dist/Line3DChartScene-BKO24WYO.js.gz +0 -0
- package/dist/Line3DChartScene-EPPWQOHS.mjs.br +0 -0
- package/dist/Line3DChartScene-EPPWQOHS.mjs.gz +0 -0
- package/dist/Model3DScene-IAY33GO2.mjs.br +0 -0
- package/dist/Model3DScene-IAY33GO2.mjs.gz +0 -0
- package/dist/Model3DScene-JFVRE5VL.js.br +0 -0
- package/dist/Model3DScene-JFVRE5VL.js.gz +0 -0
- package/dist/PieChart3DScene-IPH7GLKU.js.br +0 -0
- package/dist/PieChart3DScene-IPH7GLKU.js.gz +0 -0
- package/dist/PieChart3DScene-ZP5TSL62.mjs.br +0 -0
- package/dist/PieChart3DScene-ZP5TSL62.mjs.gz +0 -0
- package/dist/SurfaceChart3DScene-DOMJGPAD.mjs.br +0 -0
- package/dist/SurfaceChart3DScene-DOMJGPAD.mjs.gz +0 -0
- package/dist/SurfaceChart3DScene-TGDBVJSW.js.br +0 -0
- package/dist/SurfaceChart3DScene-TGDBVJSW.js.gz +0 -0
- package/dist/chunk-7JZLE56X.js.br +0 -0
- package/dist/chunk-7JZLE56X.js.gz +0 -0
- package/dist/chunk-A5EUD6UU.js.br +0 -0
- package/dist/chunk-A5EUD6UU.js.gz +0 -0
- package/dist/chunk-BP2L2KOZ.mjs.br +0 -0
- package/dist/chunk-BP2L2KOZ.mjs.gz +0 -0
- package/dist/chunk-MKPSUHUH.mjs.br +0 -0
- package/dist/chunk-MKPSUHUH.mjs.gz +0 -0
- package/dist/chunk-PIUB7R2K.js.br +0 -0
- package/dist/chunk-PIUB7R2K.js.gz +0 -0
- package/dist/chunk-POAZ53L5.js.br +0 -0
- package/dist/chunk-POAZ53L5.js.gz +0 -0
- package/dist/chunk-PQNZCSB7.mjs.br +0 -0
- package/dist/chunk-SNWAM2XJ.mjs.br +0 -0
- package/dist/chunk-SNWAM2XJ.mjs.gz +0 -0
- package/dist/chunk-T7BAPZBY.js.br +0 -0
- package/dist/chunk-T7BAPZBY.js.gz +0 -0
- package/dist/chunk-TIEUZCYQ.mjs.br +0 -0
- package/dist/chunk-TIEUZCYQ.mjs.gz +0 -0
- package/dist/chunk-VMLKJDA5.mjs.br +0 -0
- package/dist/chunk-VMLKJDA5.mjs.gz +0 -0
- package/dist/chunk-VQVC27WL.js.br +0 -0
- package/dist/chunk-VQVC27WL.js.gz +0 -0
- package/dist/useViewerBuildingBlocks-DC1O_op4.d.ts.map +0 -1
|
Binary file
|
|
Binary file
|
|
@@ -33539,7 +33539,7 @@ function chartDataAddCategory(chartData, categoryName) {
|
|
|
33539
33539
|
}))
|
|
33540
33540
|
};
|
|
33541
33541
|
}
|
|
33542
|
-
function chartDataRemoveCategory(chartData, categoryIndex) {
|
|
33542
|
+
function chartDataRemoveCategory(chartData, categoryIndex, followDataPoint = true) {
|
|
33543
33543
|
if (categoryIndex < 0 || categoryIndex >= chartData.categories.length) {
|
|
33544
33544
|
throw new RangeError(
|
|
33545
33545
|
`Category index ${categoryIndex} is out of range. Chart has ${chartData.categories.length} categories.`
|
|
@@ -33550,10 +33550,14 @@ function chartDataRemoveCategory(chartData, categoryIndex) {
|
|
|
33550
33550
|
categories: chartData.categories.filter((_, i) => i !== categoryIndex),
|
|
33551
33551
|
series: chartData.series.map((s) => ({
|
|
33552
33552
|
...s,
|
|
33553
|
-
values: s.values.filter((_, i) => i !== categoryIndex)
|
|
33553
|
+
values: s.values.filter((_, i) => i !== categoryIndex),
|
|
33554
|
+
...s.dataPoints && followDataPoint ? { dataPoints: reindexDataPoints(s.dataPoints, categoryIndex) } : {}
|
|
33554
33555
|
}))
|
|
33555
33556
|
};
|
|
33556
33557
|
}
|
|
33558
|
+
function reindexDataPoints(dataPoints, removedIndex) {
|
|
33559
|
+
return dataPoints.filter((dp) => dp.idx !== removedIndex).map((dp) => dp.idx > removedIndex ? { ...dp, idx: dp.idx - 1 } : dp);
|
|
33560
|
+
}
|
|
33557
33561
|
var EMU_PER_PX4 = 914400 / 96;
|
|
33558
33562
|
var EMU_PER_POS_UNIT = 12700 / 8;
|
|
33559
33563
|
var P14_GUIDE_URI = "{72B1D4B2-8646-4E06-B1EF-53B0C71A9B0A}";
|
|
@@ -111424,10 +111428,15 @@ function buildParetoAxis(layout) {
|
|
|
111424
111428
|
}
|
|
111425
111429
|
var CHART_TYPE_OPTIONS = [
|
|
111426
111430
|
{ value: "bar", label: "Bar", labelKey: "pptx.chart.typeBar" },
|
|
111431
|
+
{ value: "bar3D", label: "Bar (3-D)", labelKey: "pptx.chart.typeBar3D" },
|
|
111427
111432
|
{ value: "line", label: "Line", labelKey: "pptx.chart.typeLine" },
|
|
111433
|
+
{ value: "line3D", label: "Line (3-D)", labelKey: "pptx.chart.typeLine3D" },
|
|
111428
111434
|
{ value: "pie", label: "Pie", labelKey: "pptx.chart.typePie" },
|
|
111435
|
+
{ value: "pie3D", label: "Pie (3-D)", labelKey: "pptx.chart.typePie3D" },
|
|
111429
111436
|
{ value: "doughnut", label: "Doughnut", labelKey: "pptx.chart.typeDoughnut" },
|
|
111430
111437
|
{ value: "area", label: "Area", labelKey: "pptx.chart.typeArea" },
|
|
111438
|
+
{ value: "area3D", label: "Area (3-D)", labelKey: "pptx.chart.typeArea3D" },
|
|
111439
|
+
{ value: "surface", label: "Surface", labelKey: "pptx.chart.typeSurface" },
|
|
111431
111440
|
{ value: "scatter", label: "Scatter", labelKey: "pptx.chart.typeScatter" },
|
|
111432
111441
|
{ value: "bubble", label: "Bubble", labelKey: "pptx.chart.typeBubble" },
|
|
111433
111442
|
{ value: "radar", label: "Radar", labelKey: "pptx.chart.typeRadar" },
|
|
@@ -111726,11 +111735,11 @@ function removeChartSeries(data, seriesIndex) {
|
|
|
111726
111735
|
function addChartCategory(data) {
|
|
111727
111736
|
return chartDataAddCategory(data, `Cat ${data.categories.length + 1}`);
|
|
111728
111737
|
}
|
|
111729
|
-
function removeChartCategory(data, categoryIndex) {
|
|
111738
|
+
function removeChartCategory(data, categoryIndex, followDataPoint = true) {
|
|
111730
111739
|
if (data.categories.length <= 1 || categoryIndex < 0 || categoryIndex >= data.categories.length) {
|
|
111731
111740
|
return null;
|
|
111732
111741
|
}
|
|
111733
|
-
return chartDataRemoveCategory(data, categoryIndex);
|
|
111742
|
+
return chartDataRemoveCategory(data, categoryIndex, followDataPoint);
|
|
111734
111743
|
}
|
|
111735
111744
|
function setChartCategoryLabel(data, categoryIndex, label) {
|
|
111736
111745
|
if (categoryIndex < 0 || categoryIndex >= data.categories.length) {
|
|
@@ -120294,6 +120303,7 @@ var translationsEn = {
|
|
|
120294
120303
|
// Print
|
|
120295
120304
|
"pptx.print.title": "Print",
|
|
120296
120305
|
"pptx.print.printButton": "Print",
|
|
120306
|
+
"pptx.print.preparingToPrint": "Preparing to print\u2026",
|
|
120297
120307
|
// Export
|
|
120298
120308
|
"pptx.export.processing": "Processing\u2026",
|
|
120299
120309
|
"pptx.export.cancel": "Cancel",
|
|
@@ -121603,6 +121613,8 @@ var translationsEn = {
|
|
|
121603
121613
|
"pptx.security.hidePassword": "Hide password",
|
|
121604
121614
|
"pptx.security.show": "Show",
|
|
121605
121615
|
"pptx.security.hide": "Hide",
|
|
121616
|
+
"pptx.security.protectedViewTitle": "PROTECTED VIEW",
|
|
121617
|
+
"pptx.security.enableEditing": "Enable Editing",
|
|
121606
121618
|
"pptx.ribbon.slideShowOptions": "Slide show options",
|
|
121607
121619
|
"pptx.ribbon.fromBeginning": "From Beginning",
|
|
121608
121620
|
"pptx.ribbon.presenterView": "Presenter View",
|
|
@@ -122033,8 +122045,6 @@ var translationsEn = {
|
|
|
122033
122045
|
"pptx.file.copyImageTooltip": "Copy Slide as Image",
|
|
122034
122046
|
"pptx.file.fonts": "Fonts",
|
|
122035
122047
|
"pptx.file.gif": "GIF",
|
|
122036
|
-
"pptx.file.package": "Package",
|
|
122037
|
-
"pptx.file.packageTooltip": "Package for Sharing",
|
|
122038
122048
|
"pptx.file.pdf": "PDF",
|
|
122039
122049
|
"pptx.file.png": "PNG",
|
|
122040
122050
|
"pptx.file.saveAsPpsx": "Save .ppsx",
|
|
@@ -122828,6 +122838,8 @@ var translationsEn = {
|
|
|
122828
122838
|
"pptx.options.advanced.display": "Display",
|
|
122829
122839
|
"pptx.options.advanced.recentCount": "Show this number of Recent Presentations",
|
|
122830
122840
|
"pptx.options.advanced.disableHardwareAcceleration": "Disable hardware graphics acceleration",
|
|
122841
|
+
"pptx.options.advanced.disable3DRendering": "Disable 3D rendering (for performance)",
|
|
122842
|
+
"pptx.options.advanced.disable3DRenderingInfo": "Forces every 3D chart and SmartArt scene to fall back to flat 2D rendering, even in a presentation that enables 3D. Turn this on if 3D scenes run slowly on this device.",
|
|
122831
122843
|
"pptx.options.advanced.openDocumentsView": "Open all documents using this view",
|
|
122832
122844
|
"pptx.options.openView.savedView": "The view saved in the file",
|
|
122833
122845
|
"pptx.options.openView.normal": "Normal",
|
|
@@ -123137,8 +123149,6 @@ var translationsEn = {
|
|
|
123137
123149
|
"pptx.backstage.card.saveAsPpsx.body": "Save a .ppsx file that opens directly in slide show.",
|
|
123138
123150
|
"pptx.backstage.card.saveAsPptm.title": "Macro-Enabled Presentation",
|
|
123139
123151
|
"pptx.backstage.card.saveAsPptm.body": "Preserve VBA content in a .pptm file.",
|
|
123140
|
-
"pptx.backstage.card.package.title": "Package for Sharing",
|
|
123141
|
-
"pptx.backstage.card.package.body": "Bundle the presentation and linked assets.",
|
|
123142
123152
|
"pptx.backstage.card.pdf.title": "Create PDF",
|
|
123143
123153
|
"pptx.backstage.card.pdf.body": "Publish a portable document with one page per slide.",
|
|
123144
123154
|
"pptx.backstage.card.png.title": "Export current slide",
|
|
@@ -123155,8 +123165,6 @@ var translationsEn = {
|
|
|
123155
123165
|
"pptx.backstage.card.print.body": "Choose a printer, layout, copies, and output settings in your browser print dialog.",
|
|
123156
123166
|
"pptx.backstage.card.share.title": "Share with People",
|
|
123157
123167
|
"pptx.backstage.card.share.body": "Invite collaborators and work on the presentation together.",
|
|
123158
|
-
"pptx.backstage.card.sharePackage.title": "Package for Sharing",
|
|
123159
|
-
"pptx.backstage.card.sharePackage.body": "Download a self-contained package for offline sharing.",
|
|
123160
123168
|
// OOXML wire tokens that controls used to render verbatim. Wording follows
|
|
123161
123169
|
// PowerPoint's own dialogs; see `render/schema-label-keys.ts` for the
|
|
123162
123170
|
// token -> key lookups these back.
|
|
@@ -129700,7 +129708,7 @@ function buildActiveSessionUsers(params) {
|
|
|
129700
129708
|
const local = {
|
|
129701
129709
|
id: "local",
|
|
129702
129710
|
name: params.localUserName,
|
|
129703
|
-
initials: getUserInitials(params.localUserName),
|
|
129711
|
+
initials: params.localUserInitials?.trim() ? params.localUserInitials.trim().slice(0, 2).toUpperCase() : getUserInitials(params.localUserName),
|
|
129704
129712
|
color: params.localUserColor ?? DEFAULT_LOCAL_COLOR,
|
|
129705
129713
|
isLocal: true
|
|
129706
129714
|
}, remote = params.remoteUsers.map((user) => ({
|
|
@@ -139891,6 +139899,9 @@ function runPresentationAction(action, options, runner) {
|
|
|
139891
139899
|
runner.endShow();
|
|
139892
139900
|
return true;
|
|
139893
139901
|
case "openUrl":
|
|
139902
|
+
if (runner.confirmUrl && !runner.confirmUrl(intent.url)) {
|
|
139903
|
+
return true;
|
|
139904
|
+
}
|
|
139894
139905
|
return safeOpenUrl(intent.url);
|
|
139895
139906
|
default:
|
|
139896
139907
|
return false;
|
|
@@ -142595,13 +142606,14 @@ function splitFilePath(path, translate) {
|
|
|
142595
142606
|
location: parts.slice(0, -1).join("/") || label("pptx.backstage.browserStorage", "Browser storage")
|
|
142596
142607
|
};
|
|
142597
142608
|
}
|
|
142598
|
-
async function listBackstageRecentFiles(translate) {
|
|
142609
|
+
async function listBackstageRecentFiles(translate, limit) {
|
|
142599
142610
|
if (typeof indexedDB === "undefined") {
|
|
142600
142611
|
return [];
|
|
142601
142612
|
}
|
|
142602
142613
|
try {
|
|
142603
142614
|
const snapshots = await listAutosaveSnapshots();
|
|
142604
|
-
|
|
142615
|
+
const sorted = snapshots.map((snapshot) => ({ ...snapshot, ...splitFilePath(snapshot.key, translate) })).sort((a, b) => b.timestamp - a.timestamp);
|
|
142616
|
+
return limit === void 0 ? sorted : sorted.slice(0, Math.max(0, limit));
|
|
142605
142617
|
} catch {
|
|
142606
142618
|
return [];
|
|
142607
142619
|
}
|
|
@@ -142681,7 +142693,6 @@ var BACKSTAGE_CARDS = {
|
|
|
142681
142693
|
"Macro-Enabled Presentation",
|
|
142682
142694
|
"Preserve VBA content in a .pptm file."
|
|
142683
142695
|
),
|
|
142684
|
-
package: card("package", "Package for Sharing", "Bundle the presentation and linked assets."),
|
|
142685
142696
|
pdf: card("pdf", "Create PDF", "Publish a portable document with one page per slide."),
|
|
142686
142697
|
png: card("png", "Export current slide", "Create a high-quality PNG image."),
|
|
142687
142698
|
video: card("video", "Create a Video", "Export slide timings and animations as WebM."),
|
|
@@ -142701,19 +142712,14 @@ var BACKSTAGE_CARDS = {
|
|
|
142701
142712
|
"share",
|
|
142702
142713
|
"Share with People",
|
|
142703
142714
|
"Invite collaborators and work on the presentation together."
|
|
142704
|
-
),
|
|
142705
|
-
sharePackage: card(
|
|
142706
|
-
"sharePackage",
|
|
142707
|
-
"Package for Sharing",
|
|
142708
|
-
"Download a self-contained package for offline sharing."
|
|
142709
142715
|
)
|
|
142710
142716
|
};
|
|
142711
142717
|
var BACKSTAGE_PAGE_CARDS = {
|
|
142712
142718
|
info: ["protect", "inspect", "embedFonts", "signatures", "versionHistory"],
|
|
142713
|
-
saveAs: ["saveAsPptx", "saveAsPpsx", "saveAsPptm"
|
|
142719
|
+
saveAs: ["saveAsPptx", "saveAsPpsx", "saveAsPptm"],
|
|
142714
142720
|
export: ["pdf", "png", "video", "gif", "json", "copyImage"],
|
|
142715
142721
|
print: ["print"],
|
|
142716
|
-
share: ["share"
|
|
142722
|
+
share: ["share"]
|
|
142717
142723
|
};
|
|
142718
142724
|
function backstageCardsFor(page) {
|
|
142719
142725
|
return (BACKSTAGE_PAGE_CARDS[page] ?? []).map((id) => BACKSTAGE_CARDS[id]);
|
|
@@ -143220,6 +143226,111 @@ var TOOLBAR_TABS = [
|
|
|
143220
143226
|
function isActionHidden(id, hiddenActions) {
|
|
143221
143227
|
return hiddenActions !== void 0 && hiddenActions.includes(id);
|
|
143222
143228
|
}
|
|
143229
|
+
var DAY_NAMES = ["monday", "tuesday", "wednesday", "thursday", "friday", "saturday", "sunday"];
|
|
143230
|
+
var FRACTIONS = [
|
|
143231
|
+
["1/2", "\xBD"],
|
|
143232
|
+
["1/4", "\xBC"],
|
|
143233
|
+
["3/4", "\xBE"]
|
|
143234
|
+
];
|
|
143235
|
+
var ORDINAL_SUFFIXES = {
|
|
143236
|
+
st: "\u02E2\u1D57",
|
|
143237
|
+
nd: "\u207F\u1D48",
|
|
143238
|
+
rd: "\u02B3\u1D48",
|
|
143239
|
+
th: "\u1D57\u02B0"
|
|
143240
|
+
};
|
|
143241
|
+
function fixTwoInitialCapitals(word) {
|
|
143242
|
+
if (/^[A-Z]{2}[a-z]/.test(word) && !/^[A-Z]{3,}$/.test(word)) {
|
|
143243
|
+
const second = word.charAt(1).toLowerCase();
|
|
143244
|
+
return `${word.charAt(0)}${second}${word.slice(2)}`;
|
|
143245
|
+
}
|
|
143246
|
+
return word;
|
|
143247
|
+
}
|
|
143248
|
+
function capitalizeDayName(word) {
|
|
143249
|
+
const bare = word.toLowerCase();
|
|
143250
|
+
if (DAY_NAMES.includes(bare) && word === bare) {
|
|
143251
|
+
return `${bare.charAt(0).toUpperCase()}${bare.slice(1)}`;
|
|
143252
|
+
}
|
|
143253
|
+
return word;
|
|
143254
|
+
}
|
|
143255
|
+
function replaceFractions(word) {
|
|
143256
|
+
for (const [plain, glyph] of FRACTIONS) {
|
|
143257
|
+
if (word === plain) {
|
|
143258
|
+
return glyph;
|
|
143259
|
+
}
|
|
143260
|
+
}
|
|
143261
|
+
return word;
|
|
143262
|
+
}
|
|
143263
|
+
function replaceOrdinal(word) {
|
|
143264
|
+
const match = /^(\d+)(st|nd|rd|th)$/i.exec(word);
|
|
143265
|
+
if (!match || match[1] === void 0 || match[2] === void 0) {
|
|
143266
|
+
return word;
|
|
143267
|
+
}
|
|
143268
|
+
const superscript = ORDINAL_SUFFIXES[match[2].toLowerCase()];
|
|
143269
|
+
return superscript ? `${match[1]}${superscript}` : word;
|
|
143270
|
+
}
|
|
143271
|
+
function transformWord(word, proofing) {
|
|
143272
|
+
let result = word;
|
|
143273
|
+
if (proofing.autoCorrectTwoInitialCapitals) {
|
|
143274
|
+
result = fixTwoInitialCapitals(result);
|
|
143275
|
+
}
|
|
143276
|
+
if (proofing.autoCorrectCapitalizeDayNames) {
|
|
143277
|
+
result = capitalizeDayName(result);
|
|
143278
|
+
}
|
|
143279
|
+
if (proofing.autoCorrectFractions) {
|
|
143280
|
+
result = replaceFractions(result);
|
|
143281
|
+
}
|
|
143282
|
+
if (proofing.autoCorrectOrdinals) {
|
|
143283
|
+
result = replaceOrdinal(result);
|
|
143284
|
+
}
|
|
143285
|
+
return result;
|
|
143286
|
+
}
|
|
143287
|
+
function applySmartQuotes(text2) {
|
|
143288
|
+
let result = "";
|
|
143289
|
+
for (let i = 0; i < text2.length; i += 1) {
|
|
143290
|
+
const char = text2.charAt(i);
|
|
143291
|
+
if (char !== '"' && char !== "'") {
|
|
143292
|
+
result += char;
|
|
143293
|
+
continue;
|
|
143294
|
+
}
|
|
143295
|
+
const previous = i === 0 ? "" : text2.charAt(i - 1);
|
|
143296
|
+
const opening = previous === "" || /[\s([{‘“-]/.test(previous);
|
|
143297
|
+
if (char === '"') {
|
|
143298
|
+
result += opening ? "\u201C" : "\u201D";
|
|
143299
|
+
} else {
|
|
143300
|
+
result += opening ? "\u2018" : "\u2019";
|
|
143301
|
+
}
|
|
143302
|
+
}
|
|
143303
|
+
return result;
|
|
143304
|
+
}
|
|
143305
|
+
function applyHyphensToDash(text2) {
|
|
143306
|
+
return text2.replace(/(\S)--(?=\S)/g, "$1\u2014").replace(/ -- /g, " \u2013 ");
|
|
143307
|
+
}
|
|
143308
|
+
function capitalizeSentences(text2) {
|
|
143309
|
+
return text2.replace(
|
|
143310
|
+
/(^|[.!?]\s+)([a-z])/g,
|
|
143311
|
+
(_match, lead, letter) => `${lead}${letter.toUpperCase()}`
|
|
143312
|
+
);
|
|
143313
|
+
}
|
|
143314
|
+
function applyAutoCorrect(text2, proofing) {
|
|
143315
|
+
if (text2.length === 0) {
|
|
143316
|
+
return text2;
|
|
143317
|
+
}
|
|
143318
|
+
let result = text2;
|
|
143319
|
+
if (proofing.autoCorrectSmartQuotes) {
|
|
143320
|
+
result = applySmartQuotes(result);
|
|
143321
|
+
}
|
|
143322
|
+
if (proofing.autoCorrectHyphensToDash) {
|
|
143323
|
+
result = applyHyphensToDash(result);
|
|
143324
|
+
}
|
|
143325
|
+
const needsWordPass = proofing.autoCorrectTwoInitialCapitals || proofing.autoCorrectCapitalizeDayNames || proofing.autoCorrectFractions || proofing.autoCorrectOrdinals;
|
|
143326
|
+
if (needsWordPass) {
|
|
143327
|
+
result = result.split(/(\s+)/).map((part) => /^\s+$/.test(part) ? part : transformWord(part, proofing)).join("");
|
|
143328
|
+
}
|
|
143329
|
+
if (proofing.autoCorrectCapitalizeFirstLetter) {
|
|
143330
|
+
result = capitalizeSentences(result);
|
|
143331
|
+
}
|
|
143332
|
+
return result;
|
|
143333
|
+
}
|
|
143223
143334
|
var QUICK_ACCESS_COMMAND_CATALOG = [
|
|
143224
143335
|
{ id: "save", labelKey: "pptx.toolbar.save", icon: "save" },
|
|
143225
143336
|
{ id: "undo", labelKey: "pptx.toolbar.undo", icon: "undo" },
|
|
@@ -143395,6 +143506,7 @@ var DEFAULT_VIEWER_OPTIONS = {
|
|
|
143395
143506
|
showGrid: false,
|
|
143396
143507
|
snapToGrid: false,
|
|
143397
143508
|
disableHardwareAcceleration: false,
|
|
143509
|
+
disable3DRendering: false,
|
|
143398
143510
|
openDocumentsView: "savedView",
|
|
143399
143511
|
slideShowShowMenuOnRightClick: true,
|
|
143400
143512
|
slideShowShowPopupToolbar: true,
|
|
@@ -143517,16 +143629,132 @@ function applyPreferenceToOptions(options, key2, value) {
|
|
|
143517
143629
|
}
|
|
143518
143630
|
return next;
|
|
143519
143631
|
}
|
|
143632
|
+
function resolveHistoryDepth(options) {
|
|
143633
|
+
const steps = Math.round(options.advanced.maximumUndoSteps);
|
|
143634
|
+
return Math.min(150, Math.max(3, Number.isFinite(steps) ? steps : 100));
|
|
143635
|
+
}
|
|
143520
143636
|
function resolveAutosaveIntervalSeconds(options) {
|
|
143521
143637
|
const seconds = Math.round(options.save.autoRecoverIntervalMinutes * 60);
|
|
143522
143638
|
return Math.max(AUTOSAVE_MIN_INTERVAL_SECONDS, Number.isFinite(seconds) ? seconds : 120);
|
|
143523
143639
|
}
|
|
143640
|
+
function resolveScreenTip(options, label, description, shortcut) {
|
|
143641
|
+
const style = options.general.screenTipStyle;
|
|
143642
|
+
if (style === "off") {
|
|
143643
|
+
return void 0;
|
|
143644
|
+
}
|
|
143645
|
+
let tip = label;
|
|
143646
|
+
if (style === "descriptions" && description) {
|
|
143647
|
+
tip = `${tip}: ${description}`;
|
|
143648
|
+
}
|
|
143649
|
+
if (shortcut && options.accessibility.showShortcutKeysInScreenTips) {
|
|
143650
|
+
tip = `${tip} (${shortcut})`;
|
|
143651
|
+
}
|
|
143652
|
+
return tip;
|
|
143653
|
+
}
|
|
143654
|
+
function resolveDefaultPrintSettings(options) {
|
|
143655
|
+
if (options.advanced.printUseMostRecentSettings) {
|
|
143656
|
+
return void 0;
|
|
143657
|
+
}
|
|
143658
|
+
return {
|
|
143659
|
+
printWhat: options.advanced.printWhat,
|
|
143660
|
+
colorMode: options.advanced.printColorMode,
|
|
143661
|
+
frameSlides: options.advanced.printFrameSlides,
|
|
143662
|
+
scaleToFit: options.advanced.printScaleToFit
|
|
143663
|
+
};
|
|
143664
|
+
}
|
|
143665
|
+
function resolveImageResolutionPpi(preset) {
|
|
143666
|
+
switch (preset) {
|
|
143667
|
+
case "ppi330":
|
|
143668
|
+
return 330;
|
|
143669
|
+
case "ppi220":
|
|
143670
|
+
return 220;
|
|
143671
|
+
case "ppi150":
|
|
143672
|
+
return 150;
|
|
143673
|
+
case "ppi96":
|
|
143674
|
+
return 96;
|
|
143675
|
+
default:
|
|
143676
|
+
return void 0;
|
|
143677
|
+
}
|
|
143678
|
+
}
|
|
143679
|
+
function resolveImageResolutionScale(options) {
|
|
143680
|
+
if (options.advanced.doNotCompressImages) {
|
|
143681
|
+
return 1;
|
|
143682
|
+
}
|
|
143683
|
+
const ppi = resolveImageResolutionPpi(options.advanced.imageDefaultResolution);
|
|
143684
|
+
return ppi === void 0 ? 1 : Math.max(0.25, Math.min(4, ppi / 96));
|
|
143685
|
+
}
|
|
143524
143686
|
function shouldConfirmExternalHyperlink(options, href) {
|
|
143525
143687
|
if (!options.trust.confirmExternalHyperlinks) {
|
|
143526
143688
|
return false;
|
|
143527
143689
|
}
|
|
143528
143690
|
return /^https?:/i.test(href);
|
|
143529
143691
|
}
|
|
143692
|
+
function resolve3DRenderingFlags(hostFlags, options) {
|
|
143693
|
+
if (!options.advanced.disable3DRendering) {
|
|
143694
|
+
return hostFlags;
|
|
143695
|
+
}
|
|
143696
|
+
return {
|
|
143697
|
+
smartArt3D: false,
|
|
143698
|
+
surfaceChart3D: false,
|
|
143699
|
+
barChart3D: false,
|
|
143700
|
+
lineChart3D: false,
|
|
143701
|
+
areaChart3D: false,
|
|
143702
|
+
pieChart3D: false
|
|
143703
|
+
};
|
|
143704
|
+
}
|
|
143705
|
+
function resolveOptionRootClasses(options, prefix) {
|
|
143706
|
+
const classes = [];
|
|
143707
|
+
if (options.accessibility.reducedMotion) {
|
|
143708
|
+
classes.push(`${prefix}-reduced-motion`);
|
|
143709
|
+
}
|
|
143710
|
+
if (options.advanced.disableHardwareAcceleration) {
|
|
143711
|
+
classes.push(`${prefix}-no-hw-accel`);
|
|
143712
|
+
}
|
|
143713
|
+
if (options.general.displayOptimization === "compatibility") {
|
|
143714
|
+
classes.push(`${prefix}-compat-display`);
|
|
143715
|
+
}
|
|
143716
|
+
return classes;
|
|
143717
|
+
}
|
|
143718
|
+
function shouldDiscardAutosaveOnSuccessfulSave(options) {
|
|
143719
|
+
return !options.save.keepLastAutoRecoveredVersion;
|
|
143720
|
+
}
|
|
143721
|
+
function shouldClearAutosaveCacheOnClose(options) {
|
|
143722
|
+
return options.save.clearCacheOnClose;
|
|
143723
|
+
}
|
|
143724
|
+
function resolveExpiredAutosaveSnapshots(snapshots, options, now = Date.now()) {
|
|
143725
|
+
const days = options.save.cacheRetentionDays;
|
|
143726
|
+
if (!Number.isFinite(days) || days <= 0) {
|
|
143727
|
+
return [];
|
|
143728
|
+
}
|
|
143729
|
+
const maxAgeMs = days * 24 * 60 * 60 * 1e3;
|
|
143730
|
+
return snapshots.filter((snapshot) => now - snapshot.timestamp > maxAgeMs).map((s) => s.key);
|
|
143731
|
+
}
|
|
143732
|
+
function playFeedbackSound(options) {
|
|
143733
|
+
if (!options.accessibility.feedbackWithSound || typeof window === "undefined") {
|
|
143734
|
+
return;
|
|
143735
|
+
}
|
|
143736
|
+
const AudioContextCtor = window.AudioContext;
|
|
143737
|
+
if (!AudioContextCtor) {
|
|
143738
|
+
return;
|
|
143739
|
+
}
|
|
143740
|
+
try {
|
|
143741
|
+
const context = new AudioContextCtor();
|
|
143742
|
+
const oscillator = context.createOscillator();
|
|
143743
|
+
const gain = context.createGain();
|
|
143744
|
+
const modern = options.accessibility.soundScheme === "modern";
|
|
143745
|
+
oscillator.frequency.value = modern ? 880 : 660;
|
|
143746
|
+
oscillator.type = modern ? "sine" : "square";
|
|
143747
|
+
gain.gain.setValueAtTime(0.04, context.currentTime);
|
|
143748
|
+
gain.gain.exponentialRampToValueAtTime(1e-4, context.currentTime + 0.15);
|
|
143749
|
+
oscillator.connect(gain).connect(context.destination);
|
|
143750
|
+
oscillator.start();
|
|
143751
|
+
oscillator.stop(context.currentTime + 0.16);
|
|
143752
|
+
oscillator.onended = () => {
|
|
143753
|
+
void context.close();
|
|
143754
|
+
};
|
|
143755
|
+
} catch {
|
|
143756
|
+
}
|
|
143757
|
+
}
|
|
143530
143758
|
function toggle(group2, key2, labelKey, extra) {
|
|
143531
143759
|
return { kind: "toggle", group: group2, key: key2, labelKey, ...extra };
|
|
143532
143760
|
}
|
|
@@ -143631,6 +143859,9 @@ var ADVANCED_TAB = {
|
|
|
143631
143859
|
"disableHardwareAcceleration",
|
|
143632
143860
|
"pptx.options.advanced.disableHardwareAcceleration"
|
|
143633
143861
|
),
|
|
143862
|
+
toggle("advanced", "disable3DRendering", "pptx.options.advanced.disable3DRendering", {
|
|
143863
|
+
infoKey: "pptx.options.advanced.disable3DRenderingInfo"
|
|
143864
|
+
}),
|
|
143634
143865
|
select(
|
|
143635
143866
|
"advanced",
|
|
143636
143867
|
"openDocumentsView",
|
|
@@ -144193,22 +144424,6 @@ function canvasToJpegData(canvas, quality = 0.92) {
|
|
|
144193
144424
|
}
|
|
144194
144425
|
return { bytes, w: canvas.width, h: canvas.height };
|
|
144195
144426
|
}
|
|
144196
|
-
function generatePackageReadme(presentationFilename) {
|
|
144197
|
-
return [
|
|
144198
|
-
"Presentation Package",
|
|
144199
|
-
"====================",
|
|
144200
|
-
"",
|
|
144201
|
-
`This folder contains the presentation "${presentationFilename}" along with`,
|
|
144202
|
-
"all linked media files (images, audio, video) in the /media subfolder.",
|
|
144203
|
-
"",
|
|
144204
|
-
"To view this presentation:",
|
|
144205
|
-
"1. Open the presentation file with any compatible presentation software",
|
|
144206
|
-
"2. Ensure the /media folder remains alongside the presentation file",
|
|
144207
|
-
"",
|
|
144208
|
-
`Packaged on ${(/* @__PURE__ */ new Date()).toLocaleDateString()}`,
|
|
144209
|
-
""
|
|
144210
|
-
].join("\n");
|
|
144211
|
-
}
|
|
144212
144427
|
function encodeGif(frames, delay = {}) {
|
|
144213
144428
|
if (frames.length === 0) {
|
|
144214
144429
|
throw new Error("[gif-encoder] encodeGif: frames array must not be empty");
|
|
@@ -144700,9 +144915,15 @@ function sanitizeSlideSvg(svg, width, height) {
|
|
|
144700
144915
|
return `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 ${safeWidth} ${safeHeight}" width="${safeWidth}" height="${safeHeight}">${sanitized}</svg>`;
|
|
144701
144916
|
}
|
|
144702
144917
|
function buildPrintDocument(svgs, width, height, options = {}) {
|
|
144703
|
-
const {
|
|
144918
|
+
const {
|
|
144919
|
+
title = "Print",
|
|
144920
|
+
orientation = "landscape",
|
|
144921
|
+
colorFilter = "",
|
|
144922
|
+
scaleToFit = true
|
|
144923
|
+
} = options;
|
|
144704
144924
|
const safeOrientation = sanitizeOrientation(orientation);
|
|
144705
144925
|
const safeColorFilter = sanitizeCssDeclaration(colorFilter);
|
|
144926
|
+
const svgSizeStyle = scaleToFit ? ".print-slide-page svg { max-width: 100%; max-height: 100%; width: auto; height: auto; }" : `.print-slide-page svg { max-width: none; max-height: none; width: ${width}px; height: ${height}px; }`;
|
|
144706
144927
|
const slidePages = svgs.map((svg, i) => {
|
|
144707
144928
|
const safeSvg = sanitizeSlideSvg(svg, width, height);
|
|
144708
144929
|
return `<section class="print-slide-page" aria-label="Slide ${i + 1}">
|
|
@@ -144733,12 +144954,7 @@ function buildPrintDocument(svgs, width, height, options = {}) {
|
|
|
144733
144954
|
.print-slide-page:last-child {
|
|
144734
144955
|
page-break-after: auto;
|
|
144735
144956
|
}
|
|
144736
|
-
|
|
144737
|
-
max-width: 100%;
|
|
144738
|
-
max-height: 100%;
|
|
144739
|
-
width: auto;
|
|
144740
|
-
height: auto;
|
|
144741
|
-
}
|
|
144957
|
+
${svgSizeStyle}
|
|
144742
144958
|
@page {
|
|
144743
144959
|
size: ${safeOrientation};
|
|
144744
144960
|
margin: 5mm;
|
|
@@ -145515,6 +145731,12 @@ function computeSlideIndices(slideRange, activeSlideIndex, slideCount, customRan
|
|
|
145515
145731
|
}
|
|
145516
145732
|
return Array.from({ length: slideCount }, (_, i) => i);
|
|
145517
145733
|
}
|
|
145734
|
+
function filterHiddenSlideIndices(indices, slides, includeHidden) {
|
|
145735
|
+
if (includeHidden) {
|
|
145736
|
+
return indices;
|
|
145737
|
+
}
|
|
145738
|
+
return indices.filter((index) => !slides[index]?.hidden);
|
|
145739
|
+
}
|
|
145518
145740
|
function computeColorFilter(colorMode) {
|
|
145519
145741
|
if (colorMode === "grayscale") {
|
|
145520
145742
|
return "filter: grayscale(1);";
|
|
@@ -145635,6 +145857,7 @@ function buildPrintHtmlDocument(options) {
|
|
|
145635
145857
|
const colorFilter = options.colorFilter;
|
|
145636
145858
|
const safeBodyHtml = isSafePrintBodyHtml(bodyHtml) ? sanitizeMarkupOrEmpty(bodyHtml, PRINT_BODY_SANITIZE_CONFIG) : "";
|
|
145637
145859
|
const frameStyle = frameSlides ? "img.slide-img, .notes-slide, .handout-cell img { border: 2px solid #000 !important; }" : "";
|
|
145860
|
+
const scaleToFitStyle = options.scaleToFit === false ? ".slide-page img.slide-img { max-width: none; max-height: none; width: auto; height: auto; } .handout-cell img { width: auto; height: auto; max-width: none; max-height: none; object-fit: none; }" : "";
|
|
145638
145861
|
return `<!doctype html>
|
|
145639
145862
|
<html>
|
|
145640
145863
|
<head>
|
|
@@ -145677,11 +145900,34 @@ function buildPrintHtmlDocument(options) {
|
|
|
145677
145900
|
img { break-inside: avoid; }
|
|
145678
145901
|
}
|
|
145679
145902
|
${frameStyle}
|
|
145903
|
+
${scaleToFitStyle}
|
|
145680
145904
|
</style>
|
|
145681
145905
|
</head>
|
|
145682
145906
|
<body>${safeBodyHtml}</body>
|
|
145683
145907
|
</html>`;
|
|
145684
145908
|
}
|
|
145909
|
+
function openPendingPrintWindow(preparingLabel) {
|
|
145910
|
+
const printWindow = window.open("", "_blank", "noopener,noreferrer");
|
|
145911
|
+
if (!printWindow) {
|
|
145912
|
+
return null;
|
|
145913
|
+
}
|
|
145914
|
+
const safeLabel = escapeHtml22(preparingLabel);
|
|
145915
|
+
printWindow.document.open();
|
|
145916
|
+
printWindow.document.write(
|
|
145917
|
+
`<!doctype html><title>${safeLabel}</title><body style="font:14px system-ui;color:#666;padding:2rem">${safeLabel}</body>`
|
|
145918
|
+
);
|
|
145919
|
+
printWindow.document.close();
|
|
145920
|
+
return printWindow;
|
|
145921
|
+
}
|
|
145922
|
+
function finishPrintWindow(printWindow, htmlDocument) {
|
|
145923
|
+
printWindow.document.open();
|
|
145924
|
+
printWindow.document.write(htmlDocument);
|
|
145925
|
+
printWindow.document.close();
|
|
145926
|
+
printWindow.focus();
|
|
145927
|
+
setTimeout(() => {
|
|
145928
|
+
printWindow.print();
|
|
145929
|
+
}, 300);
|
|
145930
|
+
}
|
|
145685
145931
|
var WEBM_MIME_CANDIDATES = [
|
|
145686
145932
|
"video/webm;codecs=vp9",
|
|
145687
145933
|
"video/webm;codecs=vp8",
|
|
@@ -145937,6 +146183,7 @@ exports.apply3dEffects = apply3dEffects;
|
|
|
145937
146183
|
exports.applyAcceptAllSlides = applyAcceptAllSlides;
|
|
145938
146184
|
exports.applyAcceptSlide = applyAcceptSlide;
|
|
145939
146185
|
exports.applyAnimationTimelineOrder = applyAnimationTimelineOrder;
|
|
146186
|
+
exports.applyAutoCorrect = applyAutoCorrect;
|
|
145940
146187
|
exports.applyCaseTransformToSegments = applyCaseTransformToSegments;
|
|
145941
146188
|
exports.applyChartBuildReveal = applyChartBuildReveal;
|
|
145942
146189
|
exports.applyChartPartHighlight = applyChartPartHighlight;
|
|
@@ -146158,6 +146405,7 @@ exports.exportDeckJson = exportDeckJson;
|
|
|
146158
146405
|
exports.extraQuickAccessCommands = extraQuickAccessCommands;
|
|
146159
146406
|
exports.extractPathPoints = extractPathPoints;
|
|
146160
146407
|
exports.filterCommands = filterCommands;
|
|
146408
|
+
exports.filterHiddenSlideIndices = filterHiddenSlideIndices;
|
|
146161
146409
|
exports.filterInteractableIds = filterInteractableIds;
|
|
146162
146410
|
exports.filterRenderedElements = filterRenderedElements;
|
|
146163
146411
|
exports.findChartPartTarget = findChartPartTarget;
|
|
@@ -146166,6 +146414,7 @@ exports.findEraserHitElementId = findEraserHitElementId;
|
|
|
146166
146414
|
exports.findInSlides = findInSlides;
|
|
146167
146415
|
exports.findMediaElementByElementId = findMediaElementByElementId;
|
|
146168
146416
|
exports.findSmartArtNodeText = findSmartArtNodeText;
|
|
146417
|
+
exports.finishPrintWindow = finishPrintWindow;
|
|
146169
146418
|
exports.firstShowSlideIndex = firstShowSlideIndex;
|
|
146170
146419
|
exports.flattenNodes = flattenNodes;
|
|
146171
146420
|
exports.flattenTagCollections = flattenTagCollections;
|
|
@@ -146186,7 +146435,6 @@ exports.generateBroadcastRoomId = generateBroadcastRoomId;
|
|
|
146186
146435
|
exports.generateElementId = generateElementId;
|
|
146187
146436
|
exports.generateNibMarks = generateNibMarks;
|
|
146188
146437
|
exports.generateNoteLineCount = generateNoteLineCount;
|
|
146189
|
-
exports.generatePackageReadme = generatePackageReadme;
|
|
146190
146438
|
exports.generatePressureCircles = generatePressureCircles;
|
|
146191
146439
|
exports.generateTicks = generateTicks;
|
|
146192
146440
|
exports.getAnimationInitialStyle = getAnimationInitialStyle;
|
|
@@ -146352,6 +146600,7 @@ exports.notesSegmentsToSpans = notesSegmentsToSpans;
|
|
|
146352
146600
|
exports.observeYDocSlides = observeYDocSlides;
|
|
146353
146601
|
exports.ooxmlGradientAngleToCssDegrees = ooxmlGradientAngleToCssDegrees;
|
|
146354
146602
|
exports.openNativeEyeDropper = openNativeEyeDropper;
|
|
146603
|
+
exports.openPendingPrintWindow = openPendingPrintWindow;
|
|
146355
146604
|
exports.openPptxFile = openPptxFile;
|
|
146356
146605
|
exports.openReadingView = openReadingView;
|
|
146357
146606
|
exports.openUrlInNewTab = openUrlInNewTab;
|
|
@@ -146368,6 +146617,7 @@ exports.pickSupportedMimeType = pickSupportedMimeType;
|
|
|
146368
146617
|
exports.pieceLetterSpacing = pieceLetterSpacing;
|
|
146369
146618
|
exports.placeAudienceWindow = placeAudienceWindow;
|
|
146370
146619
|
exports.placeCaretAtEnd = placeCaretAtEnd;
|
|
146620
|
+
exports.playFeedbackSound = playFeedbackSound;
|
|
146371
146621
|
exports.playSlideTransitionPreview = playSlideTransitionPreview;
|
|
146372
146622
|
exports.polygonsToSvgPath = polygonsToSvgPath;
|
|
146373
146623
|
exports.pptxActionToElementAction = pptxActionToElementAction;
|
|
@@ -146427,6 +146677,7 @@ exports.replyToCommentInList = replyToCommentInList;
|
|
|
146427
146677
|
exports.rerouteConnectorsForMovedElements = rerouteConnectorsForMovedElements;
|
|
146428
146678
|
exports.resetPresenterTimer = resetPresenterTimer;
|
|
146429
146679
|
exports.resetSlideLayoutPath = resetSlideLayoutPath;
|
|
146680
|
+
exports.resolve3DRenderingFlags = resolve3DRenderingFlags;
|
|
146430
146681
|
exports.resolveActionType = resolveActionType;
|
|
146431
146682
|
exports.resolveAudienceScreenPlacement = resolveAudienceScreenPlacement;
|
|
146432
146683
|
exports.resolveAuthoredCustomShowId = resolveAuthoredCustomShowId;
|
|
@@ -146438,11 +146689,15 @@ exports.resolveAutosaveIntervalSeconds = resolveAutosaveIntervalSeconds;
|
|
|
146438
146689
|
exports.resolveChartKind = resolveChartKind;
|
|
146439
146690
|
exports.resolveConnectorEndpointUpdate = resolveConnectorEndpointUpdate;
|
|
146440
146691
|
exports.resolveDefaultFontFamily = resolveDefaultFontFamily;
|
|
146692
|
+
exports.resolveDefaultPrintSettings = resolveDefaultPrintSettings;
|
|
146441
146693
|
exports.resolveDrawingShapeNodeId = resolveDrawingShapeNodeId;
|
|
146442
146694
|
exports.resolveElementActionAffordance = resolveElementActionAffordance;
|
|
146443
146695
|
exports.resolveElementInteractivity = resolveElementInteractivity;
|
|
146696
|
+
exports.resolveExpiredAutosaveSnapshots = resolveExpiredAutosaveSnapshots;
|
|
146444
146697
|
exports.resolveFontKerning = resolveFontKerning;
|
|
146445
146698
|
exports.resolveGroupChildFill = resolveGroupChildFill;
|
|
146699
|
+
exports.resolveHistoryDepth = resolveHistoryDepth;
|
|
146700
|
+
exports.resolveImageResolutionScale = resolveImageResolutionScale;
|
|
146446
146701
|
exports.resolveInkColor = resolveInkColor;
|
|
146447
146702
|
exports.resolveInkOpacity = resolveInkOpacity;
|
|
146448
146703
|
exports.resolveInkWidth = resolveInkWidth;
|
|
@@ -146451,8 +146706,11 @@ exports.resolveMetricTrackingPx = resolveMetricTrackingPx;
|
|
|
146451
146706
|
exports.resolveNotesSchematicBodyFontSizePx = resolveNotesSchematicBodyFontSizePx;
|
|
146452
146707
|
exports.resolveNotesSegments = resolveNotesSegments;
|
|
146453
146708
|
exports.resolveOleType = resolveOleType;
|
|
146709
|
+
exports.resolveOptionRootClasses = resolveOptionRootClasses;
|
|
146454
146710
|
exports.resolvePalette = resolvePalette;
|
|
146711
|
+
exports.resolvePresentationAction = resolvePresentationAction;
|
|
146455
146712
|
exports.resolveProfileInitial = resolveProfileInitial;
|
|
146713
|
+
exports.resolveScreenTip = resolveScreenTip;
|
|
146456
146714
|
exports.resolveScriptFontSet = resolveScriptFontSet;
|
|
146457
146715
|
exports.resolveSelectionPaneRename = resolveSelectionPaneRename;
|
|
146458
146716
|
exports.resolveShapeGeometry = resolveShapeGeometry;
|
|
@@ -146514,8 +146772,10 @@ exports.setTableElementCellText = setTableElementCellText;
|
|
|
146514
146772
|
exports.shapeFillChange = shapeFillChange;
|
|
146515
146773
|
exports.shapeOutlineChange = shapeOutlineChange;
|
|
146516
146774
|
exports.shouldAutoFollowBroadcaster = shouldAutoFollowBroadcaster;
|
|
146775
|
+
exports.shouldClearAutosaveCacheOnClose = shouldClearAutosaveCacheOnClose;
|
|
146517
146776
|
exports.shouldCommitSmartArtNodeText = shouldCommitSmartArtNodeText;
|
|
146518
146777
|
exports.shouldConfirmExternalHyperlink = shouldConfirmExternalHyperlink;
|
|
146778
|
+
exports.shouldDiscardAutosaveOnSuccessfulSave = shouldDiscardAutosaveOnSuccessfulSave;
|
|
146519
146779
|
exports.shouldLoopContinuously = shouldLoopContinuously;
|
|
146520
146780
|
exports.shouldProbeAutosaveRecovery = shouldProbeAutosaveRecovery;
|
|
146521
146781
|
exports.shouldRoomSlidesReplaceLoad = shouldRoomSlidesReplaceLoad;
|
|
Binary file
|
|
Binary file
|