pptx-react-viewer 3.0.4 → 3.1.1
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 +63 -0
- package/dist/{AiChatPanel-E4V3FYLR.js → AiChatPanel-6PERJN7M.js} +24 -24
- package/dist/AiChatPanel-6PERJN7M.js.br +0 -0
- package/dist/AiChatPanel-6PERJN7M.js.gz +0 -0
- package/dist/{AiChatPanel-GSTUOESI.mjs → AiChatPanel-EIENGCKW.mjs} +4 -4
- package/dist/AiChatPanel-EIENGCKW.mjs.br +0 -0
- package/dist/AiChatPanel-EIENGCKW.mjs.gz +0 -0
- package/dist/Area3DChartScene-TXCLQLBQ.js +47 -0
- package/dist/Area3DChartScene-TXCLQLBQ.js.br +0 -0
- package/dist/Area3DChartScene-TXCLQLBQ.js.gz +0 -0
- package/dist/Area3DChartScene-W6SVC235.mjs +45 -0
- package/dist/Area3DChartScene-W6SVC235.mjs.br +0 -0
- package/dist/Area3DChartScene-W6SVC235.mjs.gz +0 -0
- package/dist/Bar3DChartScene-6RHPFLZT.js +47 -0
- package/dist/Bar3DChartScene-6RHPFLZT.js.br +0 -0
- package/dist/Bar3DChartScene-6RHPFLZT.js.gz +0 -0
- package/dist/Bar3DChartScene-FCVUZIJ3.mjs +45 -0
- package/dist/Bar3DChartScene-FCVUZIJ3.mjs.br +0 -0
- package/dist/Bar3DChartScene-FCVUZIJ3.mjs.gz +0 -0
- package/dist/Line3DChartScene-2ZFE53KO.js +47 -0
- package/dist/Line3DChartScene-2ZFE53KO.js.br +0 -0
- package/dist/Line3DChartScene-2ZFE53KO.js.gz +0 -0
- package/dist/Line3DChartScene-MJXFXSPW.mjs +45 -0
- package/dist/Line3DChartScene-MJXFXSPW.mjs.br +0 -0
- package/dist/Line3DChartScene-MJXFXSPW.mjs.gz +0 -0
- package/dist/{Model3DScene-45JR5NXN.js → Model3DScene-7VQNRY5B.js} +2 -2
- package/dist/Model3DScene-7VQNRY5B.js.br +0 -0
- package/dist/Model3DScene-7VQNRY5B.js.gz +0 -0
- package/dist/{Model3DScene-634CXE46.mjs → Model3DScene-A5RV3KNJ.mjs} +1 -1
- package/dist/Model3DScene-A5RV3KNJ.mjs.br +0 -0
- package/dist/Model3DScene-A5RV3KNJ.mjs.gz +0 -0
- package/dist/PieChart3DScene-JTHZESS3.js +47 -0
- package/dist/PieChart3DScene-JTHZESS3.js.br +0 -0
- package/dist/PieChart3DScene-JTHZESS3.js.gz +0 -0
- package/dist/PieChart3DScene-UEVFZZVW.mjs +45 -0
- package/dist/PieChart3DScene-UEVFZZVW.mjs.br +0 -0
- package/dist/PieChart3DScene-UEVFZZVW.mjs.gz +0 -0
- package/dist/{PowerPointViewer-SkkxAGKa.d.ts → PowerPointViewer-Cl6jBPNw.d.ts} +2 -2
- package/dist/PowerPointViewer-Cl6jBPNw.d.ts.map +1 -0
- package/dist/{SurfaceChart3DScene-BBQFOGVR.js → SurfaceChart3DScene-FXUNT5OK.js} +2 -2
- package/dist/SurfaceChart3DScene-FXUNT5OK.js.br +0 -0
- package/dist/SurfaceChart3DScene-FXUNT5OK.js.gz +0 -0
- package/dist/{SurfaceChart3DScene-OBVXGXSD.mjs → SurfaceChart3DScene-WD65PAG4.mjs} +1 -1
- package/dist/SurfaceChart3DScene-WD65PAG4.mjs.br +0 -0
- package/dist/SurfaceChart3DScene-WD65PAG4.mjs.gz +0 -0
- package/dist/{audience-content-store-Bx4Yj2pN.d.ts → audience-content-store-bR7Gs_1S.d.ts} +2 -2
- package/dist/{audience-content-store-Bx4Yj2pN.d.ts.map → audience-content-store-bR7Gs_1S.d.ts.map} +1 -1
- package/dist/{chunk-J4KXCPQ3.mjs → chunk-5ERW2B25.mjs} +1 -1
- package/dist/chunk-5ERW2B25.mjs.br +0 -0
- package/dist/chunk-5ERW2B25.mjs.gz +0 -0
- package/dist/{chunk-Z4F5BCQB.js → chunk-GCE2TYHF.js} +170 -169
- package/dist/chunk-GCE2TYHF.js.br +0 -0
- package/dist/chunk-GCE2TYHF.js.gz +0 -0
- package/dist/{chunk-AX4JM6TW.js → chunk-GIFQWIW5.js} +2535 -1959
- package/dist/chunk-GIFQWIW5.js.br +0 -0
- package/dist/chunk-GIFQWIW5.js.gz +0 -0
- package/dist/{chunk-NPA3EBET.mjs → chunk-ICAYXQVJ.mjs} +720 -144
- package/dist/chunk-ICAYXQVJ.mjs.br +0 -0
- package/dist/chunk-ICAYXQVJ.mjs.gz +0 -0
- package/dist/{chunk-7HPI5HBA.js → chunk-IDTNKL4S.js} +6201 -2447
- package/dist/chunk-IDTNKL4S.js.br +0 -0
- package/dist/chunk-IDTNKL4S.js.gz +0 -0
- package/dist/{chunk-V7ZLEZ5W.mjs → chunk-ISDTM2V3.mjs} +6172 -2447
- package/dist/chunk-ISDTM2V3.mjs.br +0 -0
- package/dist/chunk-ISDTM2V3.mjs.gz +0 -0
- package/dist/{chunk-ROWGR6GY.mjs → chunk-MAOUVROK.mjs} +3 -3
- package/dist/chunk-MAOUVROK.mjs.br +0 -0
- package/dist/chunk-MAOUVROK.mjs.gz +0 -0
- package/dist/{chunk-L5MNLIQF.mjs → chunk-MKPSUHUH.mjs} +25 -0
- package/dist/chunk-MKPSUHUH.mjs.br +0 -0
- package/dist/chunk-MKPSUHUH.mjs.gz +0 -0
- package/dist/{chunk-XURJHY6K.js → chunk-OTBQBTTQ.js} +391 -391
- package/dist/chunk-OTBQBTTQ.js.br +0 -0
- package/dist/chunk-OTBQBTTQ.js.gz +0 -0
- package/dist/{chunk-6ILXI752.mjs → chunk-OUX4O5XK.mjs} +17 -16
- package/dist/chunk-OUX4O5XK.mjs.br +0 -0
- package/dist/chunk-OUX4O5XK.mjs.gz +0 -0
- package/dist/{chunk-5IYGA2HX.js → chunk-OZGFMZEX.js} +3 -3
- package/dist/chunk-OZGFMZEX.js.br +0 -0
- package/dist/chunk-OZGFMZEX.js.gz +0 -0
- package/dist/{chunk-U6A5FWWE.js → chunk-PIUB7R2K.js} +25 -0
- package/dist/chunk-PIUB7R2K.js.br +0 -0
- package/dist/chunk-PIUB7R2K.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 +202 -9
- 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 +159 -9
- 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/{types-kLpvSPxq.d.ts → types-Bzdkiakq.d.ts} +44 -1
- package/dist/{types-kLpvSPxq.d.ts.map → types-Bzdkiakq.d.ts.map} +1 -1
- package/dist/{useViewerBuildingBlocks-fh7rq4jc.d.ts → useViewerBuildingBlocks-DC1O_op4.d.ts} +2 -2
- package/dist/{useViewerBuildingBlocks-fh7rq4jc.d.ts.map → useViewerBuildingBlocks-DC1O_op4.d.ts.map} +1 -1
- package/dist/viewer/index.d.ts +196 -6
- 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 +2 -2
- package/dist/AiChatPanel-E4V3FYLR.js.br +0 -0
- package/dist/AiChatPanel-E4V3FYLR.js.gz +0 -0
- package/dist/AiChatPanel-GSTUOESI.mjs.br +0 -0
- package/dist/AiChatPanel-GSTUOESI.mjs.gz +0 -0
- package/dist/Model3DScene-45JR5NXN.js.br +0 -0
- package/dist/Model3DScene-45JR5NXN.js.gz +0 -0
- package/dist/Model3DScene-634CXE46.mjs.br +0 -0
- package/dist/Model3DScene-634CXE46.mjs.gz +0 -0
- package/dist/PowerPointViewer-SkkxAGKa.d.ts.map +0 -1
- package/dist/SurfaceChart3DScene-BBQFOGVR.js.br +0 -0
- package/dist/SurfaceChart3DScene-BBQFOGVR.js.gz +0 -0
- package/dist/SurfaceChart3DScene-OBVXGXSD.mjs.br +0 -0
- package/dist/SurfaceChart3DScene-OBVXGXSD.mjs.gz +0 -0
- package/dist/chunk-5IYGA2HX.js.br +0 -0
- package/dist/chunk-5IYGA2HX.js.gz +0 -0
- package/dist/chunk-6ILXI752.mjs.br +0 -0
- package/dist/chunk-6ILXI752.mjs.gz +0 -0
- package/dist/chunk-7HPI5HBA.js.br +0 -0
- package/dist/chunk-7HPI5HBA.js.gz +0 -0
- package/dist/chunk-AX4JM6TW.js.br +0 -0
- package/dist/chunk-AX4JM6TW.js.gz +0 -0
- package/dist/chunk-J4KXCPQ3.mjs.br +0 -0
- package/dist/chunk-J4KXCPQ3.mjs.gz +0 -0
- package/dist/chunk-L5MNLIQF.mjs.br +0 -0
- package/dist/chunk-L5MNLIQF.mjs.gz +0 -0
- package/dist/chunk-NPA3EBET.mjs.br +0 -0
- package/dist/chunk-NPA3EBET.mjs.gz +0 -0
- package/dist/chunk-ROWGR6GY.mjs.br +0 -0
- package/dist/chunk-ROWGR6GY.mjs.gz +0 -0
- package/dist/chunk-U6A5FWWE.js.br +0 -0
- package/dist/chunk-U6A5FWWE.js.gz +0 -0
- package/dist/chunk-V7ZLEZ5W.mjs.br +0 -0
- package/dist/chunk-V7ZLEZ5W.mjs.gz +0 -0
- package/dist/chunk-XURJHY6K.js.br +0 -0
- package/dist/chunk-XURJHY6K.js.gz +0 -0
- package/dist/chunk-Z4F5BCQB.js.br +0 -0
- package/dist/chunk-Z4F5BCQB.js.gz +0 -0
|
Binary file
|
|
Binary file
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { translationsEn } from './chunk-
|
|
2
|
-
import { SHAPE_PRESET_DEFS, VIEWER_SHORTCUT_REFERENCE, getAnimationInitialStyle, cloneHistorySnapshot, hasShapeProperties, getImageFitStyle, isImageLikeElement, getImageTilingStyle, runMediaCommand, findMediaElementByElementId, mediaPlaybackAttributes, buildTextBlockStyle, hasTextProperties, toCssWritingMode, toCssTextOrientation, toCssVerticalDirection, buildTextBodyLayoutStyle, buildTextBody3DSceneStyle, buildParagraphs, colorWithOpacity, normalizeHexColor, build3DExtrusionData, getComputedFillStyle, getComputedEffectStyle, getComputedStrokeStyle, isStrokeOnlyPresetElement, resolveShapeGeometry, normalizeStrokeDashType, getSvgStrokeDasharray, buildSvgGradientDef, isCalloutShape, getCalloutLeaderLineGeometry, buildCalloutLeaderLineSvgPath, getCalloutViewBoxBounds, svgLineCap, getCompoundLineOffsets, getCompoundLineWidths, computeSelectionRect, DEFAULT_FONT_FAMILY, cellStyleToCss, rectToCells, isCellInRect, tableContainerCss, buildChartViewModel, resolveChartKind, chartPreserveAspectRatio, buildNotesPdfBytes, buildSlidesPdfBytes, buildPreviewAnimation, buildMotionPathPreview, getRoundRectRadiusPx2, getResolvedShapeClipPath, mediaFallbackVisual, registerPersistentAudio, resolveAutoFitFontScale, resolveFontKerning, getSubstituteFontFamily, parsePanoseString, resolveScriptFontSet, hasDistinctScriptFonts, nestedTextDecorationStyle, pieceLetterSpacing, resolveMetricTrackingPx, hollowTextFillStyle, buildTabContext, TEXT_BUILD_ID_SEP, buildTextBuildSpec, textBuildSpanStyle, apply3dEffects, clampUnitInterval, customGeometryPathsToSvgSubpaths, svgGradientFillRef, buildSubpathPaints, computeColumnBoundaries, getTableCellBandStyle, parseDrawingColor, parseDrawingColorOpacity, getCellDiagonalBorders, cellRunStyle, getChartStylePalette, computeChartLegendLayout, mediaFallbackIcon, mediaFallbackLabelKey, MEDIA_CHROME_ATTRIBUTE, convertOmmlToMathMl, sanitizeMathMl, tableCellCss, computeResizedColumnWidths, computeResizedRowHeight, DEFAULT_ROW_HEIGHT, ooxmlGradientAngleToCssDegrees, buildRunTabLines, chartPartToAttrs, splitRunForMetrics, splitRunByScriptFont } from './chunk-
|
|
1
|
+
import { translationsEn } from './chunk-MKPSUHUH.mjs';
|
|
2
|
+
import { SHAPE_PRESET_DEFS, VIEWER_SHORTCUT_REFERENCE, getAnimationInitialStyle, cloneHistorySnapshot, hasShapeProperties, getImageFitStyle, isImageLikeElement, getImageTilingStyle, runMediaCommand, findMediaElementByElementId, mediaPlaybackAttributes, buildTextBlockStyle, hasTextProperties, toCssWritingMode, toCssTextOrientation, toCssVerticalDirection, buildTextBodyLayoutStyle, buildTextBody3DSceneStyle, buildParagraphs, colorWithOpacity, normalizeHexColor, build3DExtrusionData, getComputedFillStyle, getComputedEffectStyle, getComputedStrokeStyle, isStrokeOnlyPresetElement, resolveShapeGeometry, normalizeStrokeDashType, getSvgStrokeDasharray, buildSvgGradientDef, isCalloutShape, getCalloutLeaderLineGeometry, buildCalloutLeaderLineSvgPath, getCalloutViewBoxBounds, svgLineCap, getCompoundLineOffsets, getCompoundLineWidths, computeSelectionRect, DEFAULT_FONT_FAMILY, cellStyleToCss, rectToCells, isCellInRect, tableContainerCss, buildChartViewModel, resolveChartKind, chartPreserveAspectRatio, buildNotesPdfBytes, buildSlidesPdfBytes, buildPreviewAnimation, buildMotionPathPreview, getRoundRectRadiusPx2, getResolvedShapeClipPath, mediaFallbackVisual, registerPersistentAudio, resolveAutoFitFontScale, resolveFontKerning, getSubstituteFontFamily, parsePanoseString, resolveScriptFontSet, hasDistinctScriptFonts, nestedTextDecorationStyle, pieceLetterSpacing, resolveMetricTrackingPx, hollowTextFillStyle, buildTabContext, TEXT_BUILD_ID_SEP, buildTextBuildSpec, textBuildSpanStyle, apply3dEffects, clampUnitInterval, customGeometryPathsToSvgSubpaths, svgGradientFillRef, buildSubpathPaints, computeColumnBoundaries, getTableCellBandStyle, parseDrawingColor, parseDrawingColorOpacity, getCellDiagonalBorders, cellRunStyle, getChartStylePalette, computeChartLegendLayout, mediaFallbackIcon, mediaFallbackLabelKey, MEDIA_CHROME_ATTRIBUTE, convertOmmlToMathMl, sanitizeMathMl, tableCellCss, computeResizedColumnWidths, computeResizedRowHeight, DEFAULT_ROW_HEIGHT, ooxmlGradientAngleToCssDegrees, buildRectPathGradient, buildRunTabLines, chartPartToAttrs, splitRunForMetrics, splitRunByScriptFont } from './chunk-ISDTM2V3.mjs';
|
|
3
3
|
import { clsx } from 'clsx';
|
|
4
4
|
import { twMerge } from 'tailwind-merge';
|
|
5
5
|
import React6, { useRef, useState, useEffect, useCallback, useMemo, useLayoutEffect } from 'react';
|
|
@@ -2375,13 +2375,13 @@ function parseGradientFillCss(gradFill) {
|
|
|
2375
2375
|
if (stops.length === 0) {
|
|
2376
2376
|
return void 0;
|
|
2377
2377
|
}
|
|
2378
|
-
const
|
|
2378
|
+
const rawStops = stops.map((gs) => {
|
|
2379
2379
|
const pos = Number.parseInt(String(gs["@_pos"] || "0"), 10) / 1e3;
|
|
2380
2380
|
const color = parseDrawingColor(gs) ?? "#888888";
|
|
2381
2381
|
const opacity = parseDrawingColorOpacity(gs);
|
|
2382
|
-
return { pos, color
|
|
2383
|
-
}).sort((a, b) => a.
|
|
2384
|
-
const stopStrings =
|
|
2382
|
+
return { position: pos, color, opacity };
|
|
2383
|
+
}).sort((a, b) => a.position - b.position);
|
|
2384
|
+
const stopStrings = rawStops.map((s) => `${colorWithOpacity(s.color, s.opacity)} ${s.position.toFixed(1)}%`).join(", ");
|
|
2385
2385
|
const lin = gradFill["a:lin"];
|
|
2386
2386
|
if (lin) {
|
|
2387
2387
|
const angRaw = Number.parseInt(String(lin["@_ang"] || "0"), 10);
|
|
@@ -2391,24 +2391,25 @@ function parseGradientFillCss(gradFill) {
|
|
|
2391
2391
|
const path = gradFill["a:path"];
|
|
2392
2392
|
if (path) {
|
|
2393
2393
|
const pathType = String(path["@_path"] || "circle");
|
|
2394
|
-
const
|
|
2394
|
+
const fillToRectXml = path["a:fillToRect"];
|
|
2395
|
+
const fillToRect = fillToRectXml ? {
|
|
2396
|
+
l: Number.parseInt(String(fillToRectXml["@_l"] || "0"), 10) / 1e5,
|
|
2397
|
+
t: Number.parseInt(String(fillToRectXml["@_t"] || "0"), 10) / 1e5,
|
|
2398
|
+
r: Number.parseInt(String(fillToRectXml["@_r"] || "0"), 10) / 1e5,
|
|
2399
|
+
b: Number.parseInt(String(fillToRectXml["@_b"] || "0"), 10) / 1e5
|
|
2400
|
+
} : void 0;
|
|
2401
|
+
if (pathType === "rect") {
|
|
2402
|
+
return buildRectPathGradient(rawStops, void 0, fillToRect);
|
|
2403
|
+
}
|
|
2395
2404
|
let cx = 50;
|
|
2396
2405
|
let cy = 50;
|
|
2397
2406
|
if (fillToRect) {
|
|
2398
|
-
const l
|
|
2399
|
-
const t = Number.parseInt(String(fillToRect["@_t"] || "0"), 10) / 1e5;
|
|
2400
|
-
const r = Number.parseInt(String(fillToRect["@_r"] || "0"), 10) / 1e5;
|
|
2401
|
-
const b = Number.parseInt(String(fillToRect["@_b"] || "0"), 10) / 1e5;
|
|
2407
|
+
const { l, t, r, b } = fillToRect;
|
|
2402
2408
|
cx = (l + (1 - r)) / 2 * 100;
|
|
2403
2409
|
cy = (t + (1 - b)) / 2 * 100;
|
|
2404
2410
|
}
|
|
2405
2411
|
const posX = `${Math.round(cx)}%`;
|
|
2406
2412
|
const posY = `${Math.round(cy)}%`;
|
|
2407
|
-
if (pathType === "rect") {
|
|
2408
|
-
const semiX = Math.max(cx, 100 - cx);
|
|
2409
|
-
const semiY = Math.max(cy, 100 - cy);
|
|
2410
|
-
return `radial-gradient(${Math.round(semiX)}% ${Math.round(semiY)}% at ${posX} ${posY}, ${stopStrings})`;
|
|
2411
|
-
}
|
|
2412
2413
|
if (pathType === "shape") {
|
|
2413
2414
|
return `radial-gradient(farthest-side at ${posX} ${posY}, ${stopStrings})`;
|
|
2414
2415
|
}
|
|
Binary file
|
|
Binary file
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkIDTNKL4S_js = require('./chunk-IDTNKL4S.js');
|
|
4
4
|
var chunk4VNS5WPM_js = require('./chunk-4VNS5WPM.js');
|
|
5
5
|
var mcp = require('pptx-viewer-mcp');
|
|
6
6
|
var mcpSchemas = require('pptx-viewer-mcp/schemas');
|
|
@@ -14879,7 +14879,7 @@ async function buildSlideMarkdown(slides, slideIndex2, meta3, options = {}) {
|
|
|
14879
14879
|
};
|
|
14880
14880
|
let markdown;
|
|
14881
14881
|
try {
|
|
14882
|
-
const converter = new
|
|
14882
|
+
const converter = new chunkIDTNKL4S_js.PptxMarkdownConverter(
|
|
14883
14883
|
"",
|
|
14884
14884
|
{
|
|
14885
14885
|
sourceName: meta3.title ?? "deck.pptx",
|
|
@@ -15471,7 +15471,7 @@ var getTheme = (ctx) => {
|
|
|
15471
15471
|
name: theme?.name,
|
|
15472
15472
|
colorScheme: theme?.colorScheme,
|
|
15473
15473
|
fontScheme: theme?.fontScheme,
|
|
15474
|
-
availablePresets: Object.keys(
|
|
15474
|
+
availablePresets: Object.keys(chunkIDTNKL4S_js.ThemePresets)
|
|
15475
15475
|
};
|
|
15476
15476
|
};
|
|
15477
15477
|
var readExecutors = {
|
|
Binary file
|
|
Binary file
|
|
@@ -1236,6 +1236,8 @@ var translationsEn = {
|
|
|
1236
1236
|
"pptx.animation.duration": "Duration (ms)",
|
|
1237
1237
|
"pptx.animation.moveDown": "Move down",
|
|
1238
1238
|
"pptx.animation.moveUp": "Move up",
|
|
1239
|
+
"pptx.animation.nativeEffect": "PowerPoint effect",
|
|
1240
|
+
"pptx.animation.nativeEffectHint": "Added in PowerPoint. Drag your own effects ahead of or behind it.",
|
|
1239
1241
|
"pptx.animation.none": "None",
|
|
1240
1242
|
"pptx.animation.preview": "Preview",
|
|
1241
1243
|
"pptx.animation.repeatCount": "Repeat count",
|
|
@@ -1411,6 +1413,8 @@ var translationsEn = {
|
|
|
1411
1413
|
"pptx.ole.linked": "Linked",
|
|
1412
1414
|
"pptx.ole.title": "OLE Object",
|
|
1413
1415
|
"pptx.ole.type": "Type",
|
|
1416
|
+
"pptx.ole.objectName": "Object Name",
|
|
1417
|
+
"pptx.ole.objectNamePlaceholder": "Used by screen readers and the Selection Pane",
|
|
1414
1418
|
// Presentation mode (annotations-on-exit prompt)
|
|
1415
1419
|
"pptx.presentation.clearAnnotations": "Clear Annotations",
|
|
1416
1420
|
"pptx.presentation.discardAnnotations": "Discard Annotations",
|
|
@@ -1607,6 +1611,14 @@ var translationsEn = {
|
|
|
1607
1611
|
"pptx.transition.sound": "Sound",
|
|
1608
1612
|
"pptx.transition.spokes": "Spokes",
|
|
1609
1613
|
"pptx.transition.type": "Type",
|
|
1614
|
+
"pptx.transition.speed": "Speed",
|
|
1615
|
+
"pptx.transition.speed.slow": "Slow",
|
|
1616
|
+
"pptx.transition.speed.med": "Medium",
|
|
1617
|
+
"pptx.transition.speed.fast": "Fast",
|
|
1618
|
+
"pptx.transition.morphOption": "Morph by",
|
|
1619
|
+
"pptx.transition.morphOption.byObject": "By Object",
|
|
1620
|
+
"pptx.transition.morphOption.byWord": "By Word",
|
|
1621
|
+
"pptx.transition.morphOption.byChar": "By Character",
|
|
1610
1622
|
// Context menu / editor toolbar (Angular/Vue-specific additions)
|
|
1611
1623
|
"pptx.contextMenu.ariaLabel": "Context menu",
|
|
1612
1624
|
"pptx.editorToolbar.ariaLabel": "Editor toolbar",
|
|
@@ -2111,6 +2123,7 @@ var translationsEn = {
|
|
|
2111
2123
|
"pptx.ribbon.advanceAfterSeconds": "Advance after specified duration",
|
|
2112
2124
|
"pptx.ribbon.sound": "Sound:",
|
|
2113
2125
|
"pptx.ribbon.soundNone": "[No Sound]",
|
|
2126
|
+
"pptx.ribbon.soundOther": "Other Sound...",
|
|
2114
2127
|
"pptx.ribbon.inspector": "Inspector",
|
|
2115
2128
|
"pptx.ribbon.openInspectorTransitions": "Open Inspector for full transition options",
|
|
2116
2129
|
"pptx.ribbon.removeAnimation": "Remove Animation",
|
|
@@ -2342,6 +2355,17 @@ var translationsEn = {
|
|
|
2342
2355
|
"pptx.animation.motionPath.endHandle": "Motion path end point",
|
|
2343
2356
|
"pptx.animation.motionPath.overlay": "Motion path preview",
|
|
2344
2357
|
"pptx.animations.motionPathGalleryAria": "Motion Paths: Lines, Arcs, Turns, Shapes, and Loops",
|
|
2358
|
+
// --- Effect sound + "after animation" authoring controls ---
|
|
2359
|
+
"pptx.animation.sound": "Sound",
|
|
2360
|
+
"pptx.animation.sound.none": "[No Sound]",
|
|
2361
|
+
"pptx.animation.sound.custom": "Choose sound file...",
|
|
2362
|
+
"pptx.animation.sound.chooseFile": "Choose an audio file",
|
|
2363
|
+
"pptx.animation.afterAnimation": "After animation",
|
|
2364
|
+
"pptx.animation.afterAnimation.none": "Don't Dim",
|
|
2365
|
+
"pptx.animation.afterAnimation.dimToColor": "Dim after animation",
|
|
2366
|
+
"pptx.animation.afterAnimation.hideAfterAnimation": "Hide after animation",
|
|
2367
|
+
"pptx.animation.afterAnimation.hideOnNextClick": "Hide on next mouse click",
|
|
2368
|
+
"pptx.animation.afterAnimation.color": "Dim color",
|
|
2345
2369
|
// --- 2026-07-03 missing-key sweep: keys used by Vue/Angular with no
|
|
2346
2370
|
// existing dictionary entry (React has 0 such gaps and is the ground-
|
|
2347
2371
|
// truth reference these were derived from). Appended flat rather than
|
|
@@ -3552,6 +3576,7 @@ var translationsEn = {
|
|
|
3552
3576
|
"pptx.chart.typeArea3D": "Area (3-D)",
|
|
3553
3577
|
"pptx.chart.typeSurface": "Surface",
|
|
3554
3578
|
"pptx.chart.typeHistogram": "Histogram",
|
|
3579
|
+
"pptx.chart.typePareto": "Pareto",
|
|
3555
3580
|
"pptx.chart.typeFunnel": "Funnel",
|
|
3556
3581
|
"pptx.chart.typeTreemap": "Treemap",
|
|
3557
3582
|
"pptx.chart.typeSunburst": "Sunburst",
|
|
Binary file
|
|
Binary file
|
package/dist/i18n.js
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkPIUB7R2K_js = require('./chunk-PIUB7R2K.js');
|
|
4
4
|
require('./chunk-4VNS5WPM.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
Object.defineProperty(exports, "LOCALE_CATALOG", {
|
|
9
9
|
enumerable: true,
|
|
10
|
-
get: function () { return
|
|
10
|
+
get: function () { return chunkPIUB7R2K_js.LOCALE_CATALOG; }
|
|
11
11
|
});
|
|
12
12
|
Object.defineProperty(exports, "keyToLabel", {
|
|
13
13
|
enumerable: true,
|
|
14
|
-
get: function () { return
|
|
14
|
+
get: function () { return chunkPIUB7R2K_js.keyToLabel; }
|
|
15
15
|
});
|
|
16
16
|
Object.defineProperty(exports, "translationsEn", {
|
|
17
17
|
enumerable: true,
|
|
18
|
-
get: function () { return
|
|
18
|
+
get: function () { return chunkPIUB7R2K_js.translationsEn; }
|
|
19
19
|
});
|
package/dist/i18n.js.br
CHANGED
|
Binary file
|
package/dist/i18n.js.gz
CHANGED
|
Binary file
|
package/dist/i18n.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { LOCALE_CATALOG, keyToLabel, translationsEn } from './chunk-
|
|
1
|
+
export { LOCALE_CATALOG, keyToLabel, translationsEn } from './chunk-MKPSUHUH.mjs';
|
|
2
2
|
import './chunk-XGB3TDIC.mjs';
|
package/dist/i18n.mjs.br
CHANGED
|
Binary file
|
package/dist/i18n.mjs.gz
CHANGED
|
Binary file
|
package/dist/index.d.ts
CHANGED
|
@@ -1698,6 +1698,32 @@ interface TextStyle {
|
|
|
1698
1698
|
textReflectionEndOpacity?: number;
|
|
1699
1699
|
/** Text reflection offset distance in px. */
|
|
1700
1700
|
textReflectionOffset?: number;
|
|
1701
|
+
/**
|
|
1702
|
+
* Text reflection fade direction (`a:rPr/a:effectLst/a:reflection/@fadeDir`)
|
|
1703
|
+
* in degrees. Mirrors `ShapeStyle.reflectionFadeDirection`.
|
|
1704
|
+
*/
|
|
1705
|
+
textReflectionFadeDirection?: number;
|
|
1706
|
+
/**
|
|
1707
|
+
* Text reflection horizontal scaling (`@sx`), same units as
|
|
1708
|
+
* `ShapeStyle.reflectionScaleX` (1000ths of a percent, e.g. 100000 = 100%).
|
|
1709
|
+
*/
|
|
1710
|
+
textReflectionScaleX?: number;
|
|
1711
|
+
/** Text reflection vertical scaling (`@sy`). See `ShapeStyle.reflectionScaleY`. */
|
|
1712
|
+
textReflectionScaleY?: number;
|
|
1713
|
+
/**
|
|
1714
|
+
* Text reflection horizontal skew (`@kx`) in 60000ths of a degree. See
|
|
1715
|
+
* `ShapeStyle.reflectionSkewX`.
|
|
1716
|
+
*/
|
|
1717
|
+
textReflectionSkewX?: number;
|
|
1718
|
+
/** Text reflection vertical skew (`@ky`). See `ShapeStyle.reflectionSkewY`. */
|
|
1719
|
+
textReflectionSkewY?: number;
|
|
1720
|
+
/**
|
|
1721
|
+
* Text reflection independent rotation (`@rot`) in degrees. See
|
|
1722
|
+
* `ShapeStyle.reflectionRotation`.
|
|
1723
|
+
*/
|
|
1724
|
+
textReflectionRotation?: number;
|
|
1725
|
+
/** Text reflection anchor (`@algn`). See `ShapeStyle.reflectionAlignment`. */
|
|
1726
|
+
textReflectionAlignment?: 'tl' | 't' | 'tr' | 'l' | 'ctr' | 'r' | 'bl' | 'b' | 'br';
|
|
1701
1727
|
/** 3D extrusion/bevel settings on the text body. */
|
|
1702
1728
|
text3d?: Text3DStyle;
|
|
1703
1729
|
/** 3D scene (camera + light rig) settings on the text body (`a:bodyPr/a:scene3d`). */
|
|
@@ -5399,6 +5425,21 @@ interface ContentPartInkStroke {
|
|
|
5399
5425
|
* variable-width strokes that reflect stylus/pen pressure.
|
|
5400
5426
|
*/
|
|
5401
5427
|
pressures?: number[];
|
|
5428
|
+
/**
|
|
5429
|
+
* Per-point pen-tilt lean direction (radians), decoded from the source
|
|
5430
|
+
* InkML's `OTx`/`OTy` tilt-offset channels or its `AZIMUTH` channel.
|
|
5431
|
+
*
|
|
5432
|
+
* When present (paired with {@link tiltMagnitudes}), the renderer widens
|
|
5433
|
+
* each point perpendicular to the lean direction, approximating a
|
|
5434
|
+
* calligraphic (chisel-tip) nib. Absent when the source declared no tilt
|
|
5435
|
+
* channel, in which case rendering is unaffected.
|
|
5436
|
+
*/
|
|
5437
|
+
tiltAngles?: number[];
|
|
5438
|
+
/**
|
|
5439
|
+
* Per-point pen-tilt strength (0 upright, 1 maximally leaned), paired with
|
|
5440
|
+
* {@link tiltAngles}.
|
|
5441
|
+
*/
|
|
5442
|
+
tiltMagnitudes?: number[];
|
|
5402
5443
|
}
|
|
5403
5444
|
/**
|
|
5404
5445
|
* A content-part element wrapped in `mc:AlternateContent`.
|
|
@@ -5957,6 +5998,19 @@ interface PptxNativeAnimation {
|
|
|
5957
5998
|
scaleZoomContents?: boolean;
|
|
5958
5999
|
/** Parsed `p:tav` keyframes from `p:tavLst` (CT_TLAnimVariantList). */
|
|
5959
6000
|
keyframes?: PptxAnimationKeyframe[];
|
|
6001
|
+
/**
|
|
6002
|
+
* The attribute {@link keyframes} drives, from the SAME node's
|
|
6003
|
+
* `p:cBhvr/p:attrNameLst/p:attrName` (ECMA-376 S19.5.4). `p:tavLst` is
|
|
6004
|
+
* schema-generic: without this, playback could see a numeric ramp but not
|
|
6005
|
+
* know whether it targeted opacity, position, colour, or something with
|
|
6006
|
+
* no CSS mapping. Lowercased and trimmed; common values seen in the wild
|
|
6007
|
+
* (and written by this codebase's own animation writer) include
|
|
6008
|
+
* `"style.opacity"`, `"style.color"`, `"style.visibility"`, `"fillcolor"`,
|
|
6009
|
+
* `"stroke.color"`, `"r"` (rotation, only meaningful on `p:animRot`), and
|
|
6010
|
+
* `"ppt_x"` / `"ppt_y"` (position, normally driven via `p:animMotion`
|
|
6011
|
+
* instead). Absent when the behaviour carries no `p:attrNameLst`.
|
|
6012
|
+
*/
|
|
6013
|
+
attrName?: string;
|
|
5960
6014
|
/** Repeat count (e.g. `2`, `Infinity` for indefinite). */
|
|
5961
6015
|
repeatCount?: number;
|
|
5962
6016
|
/** Whether the animation plays in reverse after completion. */
|
|
@@ -6058,6 +6112,17 @@ interface PptxNativeAnimation {
|
|
|
6058
6112
|
textTarget?: PptxTextAnimationTarget;
|
|
6059
6113
|
/** Whether this animation is inside an exclusive container (`p:excl`). */
|
|
6060
6114
|
exclusive?: boolean;
|
|
6115
|
+
/**
|
|
6116
|
+
* Identifies which `p:excl` container this animation belongs to, when
|
|
6117
|
+
* {@link exclusive} is set. ECMA-376 S19.5.24 CT_TLExclusiveTimeNode: at
|
|
6118
|
+
* most one direct child of an exclusive container may be active at a
|
|
6119
|
+
* time, so starting one child stops any other currently-playing child of
|
|
6120
|
+
* the SAME container. Two different `p:excl` containers on the same slide
|
|
6121
|
+
* are independent groups; this id (assigned per container encountered
|
|
6122
|
+
* during parsing, stable only within one parse's animation list) lets
|
|
6123
|
+
* playback tell them apart. Absent when {@link exclusive} is unset.
|
|
6124
|
+
*/
|
|
6125
|
+
exclGroupId?: number;
|
|
6061
6126
|
/** Command type from `p:cmd` (@_type: call/evt/verb). */
|
|
6062
6127
|
commandType?: string;
|
|
6063
6128
|
/** Command string from `p:cmd` (@_cmd). */
|
|
@@ -6341,6 +6406,52 @@ interface PptxElementAnimation {
|
|
|
6341
6406
|
soundPath?: string;
|
|
6342
6407
|
/** Whether to stop any currently playing sound (`p:endSnd`). */
|
|
6343
6408
|
stopSound?: boolean;
|
|
6409
|
+
/**
|
|
6410
|
+
* Pending, not-yet-embedded sound chosen in the authoring UI, as a
|
|
6411
|
+
* `data:audio/...;base64,...` URL. Mirrors the `imageData` /
|
|
6412
|
+
* `mediaData` pending-embed convention used elsewhere in the typed model:
|
|
6413
|
+
* on save, the writer converts this to real bytes under `ppt/media/`,
|
|
6414
|
+
* mints a relationship, and replaces this field with the resolved
|
|
6415
|
+
* {@link soundRId} / {@link soundPath}. Cleared once embedded.
|
|
6416
|
+
*/
|
|
6417
|
+
soundData?: string;
|
|
6418
|
+
/**
|
|
6419
|
+
* Display name for the chosen sound (e.g. the uploaded file's name),
|
|
6420
|
+
* shown by the authoring UI's sound picker. Purely cosmetic; has no
|
|
6421
|
+
* OOXML equivalent and is not required for playback.
|
|
6422
|
+
*/
|
|
6423
|
+
soundFileName?: string;
|
|
6424
|
+
}
|
|
6425
|
+
/**
|
|
6426
|
+
* A read-only anchor representing one of the deck's own effect groups: a
|
|
6427
|
+
* top-level click group (`p:par` under `p:timing`'s main sequence) that this
|
|
6428
|
+
* app did not author, so it is never exposed as an editable
|
|
6429
|
+
* {@link PptxElementAnimation}.
|
|
6430
|
+
*
|
|
6431
|
+
* The authoring UI merges these anchors alongside `PptxSlide.animations` to
|
|
6432
|
+
* render the FULL animation sequence (editor-authored and deck-native
|
|
6433
|
+
* effects together) and lets an editor-authored entry be dragged to any
|
|
6434
|
+
* position relative to them. `order` is the anchor's position among ALL
|
|
6435
|
+
* top-level click groups (editor-owned and native) at load time, in the same
|
|
6436
|
+
* numbering space as {@link PptxElementAnimation.order}, so the two
|
|
6437
|
+
* populations sort into one coherent timeline.
|
|
6438
|
+
*
|
|
6439
|
+
* Anchors are never written back: on save, an untouched anchor's own click
|
|
6440
|
+
* group is repositioned (if an editor-authored effect was dragged past it)
|
|
6441
|
+
* but never mutated, so the deck's own effect stays byte-identical apart
|
|
6442
|
+
* from its position in the sequence.
|
|
6443
|
+
*/
|
|
6444
|
+
interface PptxAnimationTimelineAnchor {
|
|
6445
|
+
/**
|
|
6446
|
+
* Position of this group among all top-level click groups in the main
|
|
6447
|
+
* animation sequence at load time (dense, shared with editor entries'
|
|
6448
|
+
* `order`).
|
|
6449
|
+
*/
|
|
6450
|
+
order: number;
|
|
6451
|
+
/** Shape id(s) this group's effects target, for a readable UI label. */
|
|
6452
|
+
targetIds: string[];
|
|
6453
|
+
/** Effect preset classes present in the group (entr/exit/emph/path). */
|
|
6454
|
+
presetClasses: Array<'entr' | 'exit' | 'emph' | 'path'>;
|
|
6344
6455
|
}
|
|
6345
6456
|
//#endregion
|
|
6346
6457
|
//#region src/core/types/embedded-font.d.ts
|
|
@@ -7044,8 +7155,19 @@ interface PptxSlideTransition {
|
|
|
7044
7155
|
soundLoop?: boolean;
|
|
7045
7156
|
/** Resolved transition sound media path within the package. */
|
|
7046
7157
|
soundPath?: string;
|
|
7047
|
-
/** Human-readable sound file name (extracted from soundPath
|
|
7158
|
+
/** Human-readable sound file name (extracted from soundPath, or set by the
|
|
7159
|
+
* UI when a new file is picked, before it has a soundPath at all). */
|
|
7048
7160
|
soundFileName?: string;
|
|
7161
|
+
/**
|
|
7162
|
+
* A newly-picked local sound file awaiting embedding, as a `data:` URL.
|
|
7163
|
+
* Set by the transitions ribbon's Sound picker (`applyTransitionSoundFile`
|
|
7164
|
+
* in `pptx-viewer-shared`) when the user chooses a file that is not yet
|
|
7165
|
+
* part of the package; mirrors `imageData`/`mediaData` on picture and media
|
|
7166
|
+
* elements. The save pipeline (`embedTransitionSound`) writes the bytes to
|
|
7167
|
+
* `ppt/media/`, mints a relationship, sets `soundRId`/`soundPath`, and
|
|
7168
|
+
* clears this field so a later save does not re-embed the same bytes.
|
|
7169
|
+
*/
|
|
7170
|
+
soundData?: string;
|
|
7049
7171
|
/**
|
|
7050
7172
|
* When true, the transition stops the currently-playing sound (OOXML `p:sndAc/p:endSnd`).
|
|
7051
7173
|
* Mutually exclusive with `soundRId`/`soundPath` (which use `p:stSnd`).
|
|
@@ -7319,17 +7441,29 @@ interface PptxSlide {
|
|
|
7319
7441
|
backgroundPattern?: PptxSlideBackgroundPattern;
|
|
7320
7442
|
/**
|
|
7321
7443
|
* `<p:bgPr/@shadeToTitle>`: boolean flag instructing the renderer to
|
|
7322
|
-
* shade the background toward the title placeholder
|
|
7323
|
-
*
|
|
7324
|
-
*
|
|
7325
|
-
*
|
|
7326
|
-
*
|
|
7444
|
+
* shade the background gradient toward the title placeholder's text
|
|
7445
|
+
* colour. Parsed and round-tripped here on the core model; the actual
|
|
7446
|
+
* visual effect is applied by `pptx-viewer-shared`'s
|
|
7447
|
+
* `getSlideBackgroundStyle` (see `render/background-shade-to-title.ts`),
|
|
7448
|
+
* consumed by all five bindings, not by core itself. That module's
|
|
7449
|
+
* docstring explains the approximation: no published ECMA-376 or
|
|
7450
|
+
* MS-ODRAWXML text documents the exact legacy blend. Legacy PowerPoint
|
|
7451
|
+
* 97-2003 hint, not observed in any real-world corpus file this project
|
|
7452
|
+
* has collected and not settable from any modern PowerPoint UI; see
|
|
7453
|
+
* `docs/guide/limitations.md`.
|
|
7327
7454
|
*
|
|
7328
7455
|
* ECMA-376 §19.3.1.2 (CT_BackgroundProperties).
|
|
7329
7456
|
*/
|
|
7330
7457
|
backgroundShadeToTitle?: boolean;
|
|
7331
7458
|
transition?: PptxSlideTransition;
|
|
7332
7459
|
animations?: PptxElementAnimation[];
|
|
7460
|
+
/**
|
|
7461
|
+
* Read-only anchors for the deck's own (non-editor-authored) effect
|
|
7462
|
+
* groups, merged with `animations` by the authoring UI so drag-to-reorder
|
|
7463
|
+
* can target any position in the full sequence. See
|
|
7464
|
+
* {@link PptxAnimationTimelineAnchor}.
|
|
7465
|
+
*/
|
|
7466
|
+
animationTimelineAnchors?: PptxAnimationTimelineAnchor[];
|
|
7333
7467
|
/** Native OOXML animation data parsed from `p:timing`. */
|
|
7334
7468
|
nativeAnimations?: PptxNativeAnimation[];
|
|
7335
7469
|
/** Preserved raw `p:timing` XML for lossless round-trip of native animations. */
|
|
@@ -8721,12 +8855,25 @@ interface IPptxHandlerRuntimeFactory {
|
|
|
8721
8855
|
*/
|
|
8722
8856
|
/** Supported encryption algorithms. */
|
|
8723
8857
|
type EncryptionAlgorithm = 'AES128' | 'AES256';
|
|
8858
|
+
/**
|
|
8859
|
+
* Which OOXML encryption scheme to write when creating a password-protected
|
|
8860
|
+
* file. Real PowerPoint can write and open either scheme; this library
|
|
8861
|
+
* defaults to 'agile' (Office 2010+), matching PowerPoint's own default.
|
|
8862
|
+
*/
|
|
8863
|
+
type EncryptionScheme = 'agile' | 'standard';
|
|
8724
8864
|
/** Encryption options for creating encrypted files. */
|
|
8725
8865
|
interface EncryptionOptions {
|
|
8726
8866
|
/** The encryption algorithm to use (defaults to AES256). */
|
|
8727
8867
|
algorithm?: EncryptionAlgorithm;
|
|
8728
8868
|
/** Number of hash iterations for key derivation (defaults to 100000). Lower values speed up tests. */
|
|
8729
8869
|
spinCount?: number;
|
|
8870
|
+
/**
|
|
8871
|
+
* Which encryption scheme to write (defaults to 'agile'). 'standard'
|
|
8872
|
+
* writes the ECMA-376 Standard scheme (Office 2007-compatible: a single
|
|
8873
|
+
* password-derived AES-CBC key with a zero IV over the whole package),
|
|
8874
|
+
* mirroring the scheme this library already knows how to decrypt.
|
|
8875
|
+
*/
|
|
8876
|
+
encryptionScheme?: EncryptionScheme;
|
|
8730
8877
|
}
|
|
8731
8878
|
//#endregion
|
|
8732
8879
|
//#region src/core/PptxHandlerCore.d.ts
|
|
@@ -9934,10 +10081,13 @@ declare function savedPresentationFileName(sourceName: string | null | undefined
|
|
|
9934
10081
|
/**
|
|
9935
10082
|
* Dropdown ids for the insert-chart menu. Distinct from `PptxChartType`
|
|
9936
10083
|
* because PowerPoint offers Column (vertical) and Bar (horizontal) as two
|
|
9937
|
-
* entries over the same underlying `'bar'` chart type
|
|
9938
|
-
*
|
|
10084
|
+
* entries over the same underlying `'bar'` chart type, and because `'pareto'`
|
|
10085
|
+
* has no `PptxChartType` of its own: it is a dropdown entry that resolves to
|
|
10086
|
+
* `type: 'histogram'` (see docs/guide/limitations.md's ChartEx row) with a
|
|
10087
|
+
* frequency-plus-cumulative-percentage default shape. The other six ChartEx
|
|
10088
|
+
* ids (`histogram` through `regionMap`) map one-to-one onto their chart type.
|
|
9939
10089
|
*/
|
|
9940
|
-
type InsertChartKind = 'column' | 'bar' | 'line' | 'pie' | 'doughnut' | 'area' | 'scatter' | 'histogram' | 'funnel' | 'treemap' | 'sunburst' | 'boxWhisker' | 'regionMap';
|
|
10090
|
+
type InsertChartKind = 'column' | 'bar' | 'line' | 'pie' | 'doughnut' | 'area' | 'scatter' | 'histogram' | 'pareto' | 'funnel' | 'treemap' | 'sunburst' | 'boxWhisker' | 'regionMap';
|
|
9941
10091
|
/** In-memory clipboard payload stored when an element is copied or cut. */
|
|
9942
10092
|
interface ElementClipboardPayload {
|
|
9943
10093
|
element: PptxElement;
|
|
@@ -10680,6 +10830,49 @@ interface PowerPointViewerProps {
|
|
|
10680
10830
|
* to the SVG surface renderer. Default `false`.
|
|
10681
10831
|
*/
|
|
10682
10832
|
surfaceChart3D?: boolean;
|
|
10833
|
+
/**
|
|
10834
|
+
* Opt in to the interactive Three.js bar3D-chart renderer. When `true`,
|
|
10835
|
+
* `bar3D` charts render as camera-orbitable real box meshes (drag to
|
|
10836
|
+
* rotate, scroll to zoom) instead of the flat SVG oblique-projection
|
|
10837
|
+
* illusion. Chart marks are not selectable/draggable in this mode.
|
|
10838
|
+
* Requires the optional `three` peer dependency; when it is not installed
|
|
10839
|
+
* (or the chart has no plottable grid, or it is a horizontal 3-D Bar), the
|
|
10840
|
+
* viewer transparently falls back to the flat SVG bar3D renderer. Default
|
|
10841
|
+
* `false`.
|
|
10842
|
+
*/
|
|
10843
|
+
barChart3D?: boolean;
|
|
10844
|
+
/**
|
|
10845
|
+
* Opt in to the interactive Three.js line3D-chart renderer. When `true`,
|
|
10846
|
+
* `line3D` charts render as a camera-orbitable real tube-path mesh per
|
|
10847
|
+
* series, one per depth ("series") plane (drag to rotate, scroll to zoom),
|
|
10848
|
+
* instead of the flat SVG oblique-projection illusion. Chart marks are not
|
|
10849
|
+
* selectable/draggable in this mode. Requires the optional `three` peer
|
|
10850
|
+
* dependency; when it is not installed (or the chart has no plottable
|
|
10851
|
+
* grid), the viewer transparently falls back to the flat SVG line3D
|
|
10852
|
+
* renderer. Default `false`.
|
|
10853
|
+
*/
|
|
10854
|
+
lineChart3D?: boolean;
|
|
10855
|
+
/**
|
|
10856
|
+
* Opt in to the interactive Three.js area3D-chart renderer. When `true`,
|
|
10857
|
+
* `area3D` charts render as a camera-orbitable real tube path + filled
|
|
10858
|
+
* ribbon mesh per series, one per depth ("series") plane (drag to rotate,
|
|
10859
|
+
* scroll to zoom), instead of the flat SVG oblique-projection illusion.
|
|
10860
|
+
* Chart marks are not selectable/draggable in this mode. Requires the
|
|
10861
|
+
* optional `three` peer dependency; when it is not installed (or the chart
|
|
10862
|
+
* has no plottable grid), the viewer transparently falls back to the flat
|
|
10863
|
+
* SVG area3D renderer. Default `false`.
|
|
10864
|
+
*/
|
|
10865
|
+
areaChart3D?: boolean;
|
|
10866
|
+
/**
|
|
10867
|
+
* Opt in to the interactive Three.js pie3D-chart renderer. When `true`,
|
|
10868
|
+
* `pie3D` charts render as camera-orbitable real wedge meshes (drag to
|
|
10869
|
+
* rotate, scroll to zoom) instead of the flat SVG oblique-projection
|
|
10870
|
+
* illusion. Chart marks are not selectable/draggable in this mode.
|
|
10871
|
+
* Requires the optional `three` peer dependency; when it is not installed
|
|
10872
|
+
* (or the chart has no plottable series), the viewer transparently falls
|
|
10873
|
+
* back to the flat SVG pie3D renderer. Default `false`.
|
|
10874
|
+
*/
|
|
10875
|
+
pieChart3D?: boolean;
|
|
10683
10876
|
/**
|
|
10684
10877
|
* Hide individual toolbar buttons and/or ribbon tabs instead of the whole
|
|
10685
10878
|
* toolbar. Accepts any mix of button ids (`share`, `broadcast`, `export`,
|