pptx-react-viewer 3.17.1 → 3.19.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +43 -0
- package/README.md +55 -31
- package/dist/{AiChatPanel-SINEEZBW.mjs → AiChatPanel-3M7XWTVE.mjs} +4 -4
- package/dist/AiChatPanel-3M7XWTVE.mjs.br +0 -0
- package/dist/AiChatPanel-3M7XWTVE.mjs.gz +0 -0
- package/dist/{AiChatPanel-GYH43XWW.js → AiChatPanel-WDVU4RIM.js} +25 -25
- package/dist/AiChatPanel-WDVU4RIM.js.br +0 -0
- package/dist/AiChatPanel-WDVU4RIM.js.gz +0 -0
- package/dist/{Area3DChartScene-X5SM67PZ.mjs → Area3DChartScene-CTVWVXNW.mjs} +1 -1
- package/dist/{Area3DChartScene-X5SM67PZ.mjs.br → Area3DChartScene-CTVWVXNW.mjs.br} +0 -0
- package/dist/Area3DChartScene-CTVWVXNW.mjs.gz +0 -0
- package/dist/{Area3DChartScene-D7GSJGPQ.js → Area3DChartScene-N5KPQFC6.js} +2 -2
- package/dist/Area3DChartScene-N5KPQFC6.js.br +0 -0
- package/dist/Area3DChartScene-N5KPQFC6.js.gz +0 -0
- package/dist/{Bar3DChartScene-M72WQW5Y.js → Bar3DChartScene-3QRUPVPT.js} +2 -2
- package/dist/Bar3DChartScene-3QRUPVPT.js.br +0 -0
- package/dist/Bar3DChartScene-3QRUPVPT.js.gz +0 -0
- package/dist/{Bar3DChartScene-HWIFFGI3.mjs → Bar3DChartScene-PXFSFZRX.mjs} +1 -1
- package/dist/{Bar3DChartScene-HWIFFGI3.mjs.br → Bar3DChartScene-PXFSFZRX.mjs.br} +0 -0
- package/dist/Bar3DChartScene-PXFSFZRX.mjs.gz +0 -0
- package/dist/{GLTFLoader-374ZNTXW.mjs → GLTFLoader-IWJFC4XI.mjs} +54 -16
- package/dist/GLTFLoader-IWJFC4XI.mjs.br +0 -0
- package/dist/GLTFLoader-IWJFC4XI.mjs.gz +0 -0
- package/dist/{GLTFLoader-Q7BHCGAW.js → GLTFLoader-KY7AYPMX.js} +178 -140
- package/dist/GLTFLoader-KY7AYPMX.js.br +0 -0
- package/dist/GLTFLoader-KY7AYPMX.js.gz +0 -0
- package/dist/{Line3DChartScene-YOZEEQZ3.js → Line3DChartScene-776WLKR5.js} +2 -2
- package/dist/Line3DChartScene-776WLKR5.js.br +0 -0
- package/dist/Line3DChartScene-776WLKR5.js.gz +0 -0
- package/dist/{Line3DChartScene-7MPZWVF3.mjs → Line3DChartScene-LLL3BU4Q.mjs} +1 -1
- package/dist/Line3DChartScene-LLL3BU4Q.mjs.br +0 -0
- package/dist/Line3DChartScene-LLL3BU4Q.mjs.gz +0 -0
- package/dist/{Model3DScene-5IJSNGDZ.js → Model3DScene-7TM2XSJY.js} +2 -2
- package/dist/Model3DScene-7TM2XSJY.js.br +0 -0
- package/dist/Model3DScene-7TM2XSJY.js.gz +0 -0
- package/dist/{Model3DScene-57LVY5QW.mjs → Model3DScene-FMQ4FDC5.mjs} +1 -1
- package/dist/{Model3DScene-57LVY5QW.mjs.br → Model3DScene-FMQ4FDC5.mjs.br} +0 -0
- package/dist/Model3DScene-FMQ4FDC5.mjs.gz +0 -0
- package/dist/OrbitControls-2XOMWUVE.mjs +3 -0
- package/dist/OrbitControls-2XOMWUVE.mjs.br +0 -0
- package/dist/OrbitControls-2XOMWUVE.mjs.gz +0 -0
- package/dist/OrbitControls-CGYUF3BY.js +12 -0
- package/dist/OrbitControls-CGYUF3BY.js.br +0 -0
- package/dist/OrbitControls-CGYUF3BY.js.gz +0 -0
- package/dist/{PieChart3DScene-WD5B6NP3.mjs → PieChart3DScene-2YNQ5J7A.mjs} +1 -1
- package/dist/{PieChart3DScene-WD5B6NP3.mjs.br → PieChart3DScene-2YNQ5J7A.mjs.br} +0 -0
- package/dist/PieChart3DScene-2YNQ5J7A.mjs.gz +0 -0
- package/dist/{PieChart3DScene-UBI6X66Q.js → PieChart3DScene-DZY4MQCG.js} +2 -2
- package/dist/PieChart3DScene-DZY4MQCG.js.br +0 -0
- package/dist/PieChart3DScene-DZY4MQCG.js.gz +0 -0
- package/dist/{SmartArt3DScene-ODKCGJBO.mjs → SmartArt3DScene-QZGIABOK.mjs} +2 -2
- package/dist/SmartArt3DScene-QZGIABOK.mjs.br +0 -0
- package/dist/SmartArt3DScene-QZGIABOK.mjs.gz +0 -0
- package/dist/{SmartArt3DScene-BK7QN3WT.js → SmartArt3DScene-T236GYUT.js} +33 -33
- package/dist/SmartArt3DScene-T236GYUT.js.br +0 -0
- package/dist/SmartArt3DScene-T236GYUT.js.gz +0 -0
- package/dist/{SurfaceChart3DScene-JGNPYQ32.js → SurfaceChart3DScene-G3MWPEL3.js} +2 -2
- package/dist/SurfaceChart3DScene-G3MWPEL3.js.br +0 -0
- package/dist/SurfaceChart3DScene-G3MWPEL3.js.gz +0 -0
- package/dist/{SurfaceChart3DScene-JZGU6BBD.mjs → SurfaceChart3DScene-XJHLH2EM.mjs} +1 -1
- package/dist/{SurfaceChart3DScene-JZGU6BBD.mjs.br → SurfaceChart3DScene-XJHLH2EM.mjs.br} +0 -0
- package/dist/SurfaceChart3DScene-XJHLH2EM.mjs.gz +0 -0
- package/dist/{chunk-E55VEC37.js → chunk-2QWLARCW.js} +7357 -1264
- package/dist/chunk-2QWLARCW.js.br +0 -0
- package/dist/chunk-2QWLARCW.js.gz +0 -0
- package/dist/{chunk-KVXB22D3.js → chunk-36O4SE4R.js} +5 -5
- package/dist/chunk-36O4SE4R.js.br +0 -0
- package/dist/chunk-36O4SE4R.js.gz +0 -0
- package/dist/{chunk-B4QYQLZU.js → chunk-3N6AC4HA.js} +1122 -693
- package/dist/chunk-3N6AC4HA.js.br +0 -0
- package/dist/chunk-3N6AC4HA.js.gz +0 -0
- package/dist/{chunk-OAKDJYYT.mjs → chunk-3R5A2E2K.mjs} +6273 -202
- package/dist/chunk-3R5A2E2K.mjs.br +0 -0
- package/dist/chunk-3R5A2E2K.mjs.gz +0 -0
- package/dist/{chunk-7YJBRPCT.mjs → chunk-4KKKJ5MJ.mjs} +1 -1
- package/dist/chunk-4KKKJ5MJ.mjs.br +0 -0
- package/dist/chunk-4KKKJ5MJ.mjs.gz +0 -0
- package/dist/{chunk-IRG7SIUX.js → chunk-6DYDAKHG.js} +2044 -7308
- package/dist/chunk-6DYDAKHG.js.br +0 -0
- package/dist/chunk-6DYDAKHG.js.gz +0 -0
- package/dist/{chunk-XBMKFZVP.mjs → chunk-7TAWW5QQ.mjs} +1120 -694
- package/dist/chunk-7TAWW5QQ.mjs.br +0 -0
- package/dist/chunk-7TAWW5QQ.mjs.gz +0 -0
- package/dist/{chunk-VYSMTC5C.mjs → chunk-7VFH2FRI.mjs} +66 -124
- package/dist/chunk-7VFH2FRI.mjs.br +0 -0
- package/dist/chunk-7VFH2FRI.mjs.gz +0 -0
- package/dist/{chunk-64FUV37N.js → chunk-BRJN3ZMG.js} +2 -1
- package/dist/chunk-BRJN3ZMG.js.br +0 -0
- package/dist/{chunk-64FUV37N.js.gz → chunk-BRJN3ZMG.js.gz} +0 -0
- package/dist/{chunk-QTGCOL5H.mjs → chunk-F552WUJN.mjs} +5668 -2129
- package/dist/chunk-F552WUJN.mjs.br +0 -0
- package/dist/chunk-F552WUJN.mjs.gz +0 -0
- package/dist/{chunk-6C2WYLZY.js → chunk-IXS7DALE.js} +45 -39
- package/dist/chunk-IXS7DALE.js.br +0 -0
- package/dist/chunk-IXS7DALE.js.gz +0 -0
- package/dist/{chunk-4SPZ5IZN.js → chunk-LBMPJYAR.js} +5726 -2132
- package/dist/chunk-LBMPJYAR.js.br +0 -0
- package/dist/chunk-LBMPJYAR.js.gz +0 -0
- package/dist/{chunk-LAU34UMB.mjs → chunk-MQUTXOET.mjs} +2 -1
- package/dist/chunk-MQUTXOET.mjs.br +0 -0
- package/dist/{chunk-LAU34UMB.mjs.gz → chunk-MQUTXOET.mjs.gz} +0 -0
- package/dist/{chunk-3CBDTD46.mjs → chunk-MV2GCDBR.mjs} +8 -2
- package/dist/chunk-MV2GCDBR.mjs.br +0 -0
- package/dist/chunk-MV2GCDBR.mjs.gz +0 -0
- package/dist/{chunk-IXKAIIA2.mjs → chunk-V3BOQ52U.mjs} +242 -5506
- package/dist/chunk-V3BOQ52U.mjs.br +0 -0
- package/dist/chunk-V3BOQ52U.mjs.gz +0 -0
- package/dist/{chunk-7FBKS7OS.js → chunk-V6S72IRP.js} +238 -296
- package/dist/chunk-V6S72IRP.js.br +0 -0
- package/dist/chunk-V6S72IRP.js.gz +0 -0
- package/dist/i18n/de.cjs +3765 -0
- package/dist/i18n/de.cjs.br +0 -0
- package/dist/i18n/de.cjs.gz +0 -0
- package/dist/i18n/de.d.cts +3 -0
- package/dist/i18n/de.d.mts +3 -0
- package/dist/i18n/de.mjs +3738 -0
- package/dist/i18n/de.mjs.br +0 -0
- package/dist/i18n/de.mjs.gz +0 -0
- package/dist/i18n/es.cjs +3765 -0
- package/dist/i18n/es.cjs.br +0 -0
- package/dist/i18n/es.cjs.gz +0 -0
- package/dist/i18n/es.d.cts +3 -0
- package/dist/i18n/es.d.mts +3 -0
- package/dist/i18n/es.mjs +3738 -0
- package/dist/i18n/es.mjs.br +0 -0
- package/dist/i18n/es.mjs.gz +0 -0
- package/dist/i18n/fr.cjs +3765 -0
- package/dist/i18n/fr.cjs.br +0 -0
- package/dist/i18n/fr.cjs.gz +0 -0
- package/dist/i18n/fr.d.cts +3 -0
- package/dist/i18n/fr.d.mts +3 -0
- package/dist/i18n/fr.mjs +3738 -0
- package/dist/i18n/fr.mjs.br +0 -0
- package/dist/i18n/fr.mjs.gz +0 -0
- package/dist/i18n/zh-CN.cjs +3803 -0
- package/dist/i18n/zh-CN.cjs.br +0 -0
- package/dist/i18n/zh-CN.cjs.gz +0 -0
- package/dist/i18n/zh-CN.d.cts +3 -0
- package/dist/i18n/zh-CN.d.mts +3 -0
- package/dist/i18n/zh-CN.mjs +3776 -0
- package/dist/i18n/zh-CN.mjs.br +0 -0
- package/dist/i18n/zh-CN.mjs.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 +67 -4
- package/dist/index.js +51 -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 +2433 -2062
- package/dist/internals.js +183 -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/three.module-LGUV2LI6.mjs +2 -0
- package/dist/three.module-LGUV2LI6.mjs.br +0 -0
- package/dist/three.module-LGUV2LI6.mjs.gz +0 -0
- package/dist/{three.module-GNNNRIMK.js → three.module-YZ4M24WM.js} +454 -442
- package/dist/three.module-YZ4M24WM.js.br +0 -0
- package/dist/three.module-YZ4M24WM.js.gz +0 -0
- package/dist/viewer/index.d.ts +13 -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 +46 -6
- package/dist/AiChatPanel-GYH43XWW.js.br +0 -0
- package/dist/AiChatPanel-GYH43XWW.js.gz +0 -0
- package/dist/AiChatPanel-SINEEZBW.mjs.br +0 -0
- package/dist/AiChatPanel-SINEEZBW.mjs.gz +0 -0
- package/dist/Area3DChartScene-D7GSJGPQ.js.br +0 -0
- package/dist/Area3DChartScene-D7GSJGPQ.js.gz +0 -0
- package/dist/Area3DChartScene-X5SM67PZ.mjs.gz +0 -0
- package/dist/Bar3DChartScene-HWIFFGI3.mjs.gz +0 -0
- package/dist/Bar3DChartScene-M72WQW5Y.js.br +0 -0
- package/dist/Bar3DChartScene-M72WQW5Y.js.gz +0 -0
- package/dist/GLTFLoader-374ZNTXW.mjs.br +0 -0
- package/dist/GLTFLoader-374ZNTXW.mjs.gz +0 -0
- package/dist/GLTFLoader-Q7BHCGAW.js.br +0 -0
- package/dist/GLTFLoader-Q7BHCGAW.js.gz +0 -0
- package/dist/Line3DChartScene-7MPZWVF3.mjs.br +0 -0
- package/dist/Line3DChartScene-7MPZWVF3.mjs.gz +0 -0
- package/dist/Line3DChartScene-YOZEEQZ3.js.br +0 -0
- package/dist/Line3DChartScene-YOZEEQZ3.js.gz +0 -0
- package/dist/Model3DScene-57LVY5QW.mjs.gz +0 -0
- package/dist/Model3DScene-5IJSNGDZ.js.br +0 -0
- package/dist/Model3DScene-5IJSNGDZ.js.gz +0 -0
- package/dist/OrbitControls-SMYCPLXO.js +0 -12
- package/dist/OrbitControls-SMYCPLXO.js.br +0 -3
- package/dist/OrbitControls-SMYCPLXO.js.gz +0 -0
- package/dist/OrbitControls-ZTGHPI5G.mjs +0 -3
- package/dist/OrbitControls-ZTGHPI5G.mjs.br +0 -0
- package/dist/OrbitControls-ZTGHPI5G.mjs.gz +0 -0
- package/dist/PieChart3DScene-UBI6X66Q.js.br +0 -0
- package/dist/PieChart3DScene-UBI6X66Q.js.gz +0 -0
- package/dist/PieChart3DScene-WD5B6NP3.mjs.gz +0 -0
- package/dist/PowerPointViewer-Cde_wzd0.d.ts +0 -21
- package/dist/PowerPointViewer-Cde_wzd0.d.ts.map +0 -1
- package/dist/SmartArt3DScene-BK7QN3WT.js.br +0 -0
- package/dist/SmartArt3DScene-BK7QN3WT.js.gz +0 -0
- package/dist/SmartArt3DScene-ODKCGJBO.mjs.br +0 -0
- package/dist/SmartArt3DScene-ODKCGJBO.mjs.gz +0 -0
- package/dist/SurfaceChart3DScene-JGNPYQ32.js.br +0 -0
- package/dist/SurfaceChart3DScene-JGNPYQ32.js.gz +0 -0
- package/dist/SurfaceChart3DScene-JZGU6BBD.mjs.gz +0 -0
- package/dist/audience-content-store-A8Km8rBo.d.ts +0 -402
- package/dist/audience-content-store-A8Km8rBo.d.ts.map +0 -1
- package/dist/chunk-3CBDTD46.mjs.br +0 -0
- package/dist/chunk-3CBDTD46.mjs.gz +0 -0
- package/dist/chunk-4SPZ5IZN.js.br +0 -0
- package/dist/chunk-4SPZ5IZN.js.gz +0 -0
- package/dist/chunk-64FUV37N.js.br +0 -0
- package/dist/chunk-6C2WYLZY.js.br +0 -0
- package/dist/chunk-6C2WYLZY.js.gz +0 -0
- package/dist/chunk-7FBKS7OS.js.br +0 -0
- package/dist/chunk-7FBKS7OS.js.gz +0 -0
- package/dist/chunk-7YJBRPCT.mjs.br +0 -0
- package/dist/chunk-7YJBRPCT.mjs.gz +0 -0
- package/dist/chunk-B4QYQLZU.js.br +0 -0
- package/dist/chunk-B4QYQLZU.js.gz +0 -0
- package/dist/chunk-E55VEC37.js.br +0 -0
- package/dist/chunk-E55VEC37.js.gz +0 -0
- package/dist/chunk-IRG7SIUX.js.br +0 -0
- package/dist/chunk-IRG7SIUX.js.gz +0 -0
- package/dist/chunk-IXKAIIA2.mjs.br +0 -0
- package/dist/chunk-IXKAIIA2.mjs.gz +0 -0
- package/dist/chunk-KVXB22D3.js.br +0 -0
- package/dist/chunk-KVXB22D3.js.gz +0 -0
- package/dist/chunk-LAU34UMB.mjs.br +0 -0
- package/dist/chunk-OAKDJYYT.mjs.br +0 -0
- package/dist/chunk-OAKDJYYT.mjs.gz +0 -0
- package/dist/chunk-QTGCOL5H.mjs.br +0 -0
- package/dist/chunk-QTGCOL5H.mjs.gz +0 -0
- package/dist/chunk-VYSMTC5C.mjs.br +0 -0
- package/dist/chunk-VYSMTC5C.mjs.gz +0 -0
- package/dist/chunk-XBMKFZVP.mjs.br +0 -0
- package/dist/chunk-XBMKFZVP.mjs.gz +0 -0
- package/dist/index-CGKutKk1.d.ts +0 -46
- package/dist/index-CGKutKk1.d.ts.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/internals.d.ts.map +0 -1
- package/dist/three.module-AC7ESV4W.mjs +0 -2
- package/dist/three.module-AC7ESV4W.mjs.br +0 -0
- package/dist/three.module-AC7ESV4W.mjs.gz +0 -0
- package/dist/three.module-GNNNRIMK.js.br +0 -0
- package/dist/three.module-GNNNRIMK.js.gz +0 -0
- package/dist/types-BqB2ZCwS.d.ts +0 -836
- package/dist/types-BqB2ZCwS.d.ts.map +0 -1
- package/dist/useViewerBuildingBlocks-DkUGmlkP.d.ts +0 -521
- package/dist/useViewerBuildingBlocks-DkUGmlkP.d.ts.map +0 -1
- package/dist/viewer/index.d.ts.map +0 -1
|
Binary file
|
|
Binary file
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { SHAPE_PRESET_DEFS, VIEWER_SHORTCUT_REFERENCE, STROKE_DASH_OPTIONS, getAnimationInitialStyle, cloneHistorySnapshot, hasShapeProperties, getImageFitStyle, getComputedFillStyle, isImageLikeElement, getCropShapeClipPath, getImageTilingStyle, mediaPlaybackAttributes, buildTextBlockStyle, hasTextProperties, toCssWritingMode, toCssTextOrientation, toCssVerticalDirection, buildTextBodyLayoutStyle, buildTextBody3DSceneStyle, buildParagraphs, colorWithOpacity, normalizeHexColor, hexToRgbUnit, build3DExtrusionData, getComputedEffectStyle, getComputedStrokeStyle, getAnimationColorBaseStyle, isStrokeOnlyPresetElement, resolveShapeGeometry, normalizeStrokeDashType, getSvgStrokeDasharray, buildSvgGradientDef, buildStrokeOutline, getPresetShapeVectorGeometry, isWedgeCalloutPresetShape, svgGradientFillRef, isCalloutShape, getCalloutLeaderLineGeometry, buildCalloutLeaderLineSvgPath, getCalloutViewBoxBounds, svgLineCap, getCompoundLineOffsets, getCompoundLineWidths, canDrillDown, computeSelectionRect, DEFAULT_FONT_FAMILY, cellStyleToCss, rectToCells, isCellInRect, tableContainerCss, buildChartViewModel, resolveChartKind, chartPreserveAspectRatio, buildNotesPdfBytes, buildTiledSlidesPdfBytes, buildPreviewAnimation, buildMotionPathPreview, mediaFallbackVisual, scheduleMediaTrimAndFade, registerCrossSlideAudio, resolveAutoFitFontScale, resolveFontKerning, getSubstituteFontFamily, parsePanoseString, resolveScriptFontSet, hasDistinctScriptFonts,
|
|
2
|
-
import { translationsEn } from './chunk-
|
|
1
|
+
import { SHAPE_PRESET_DEFS, VIEWER_SHORTCUT_REFERENCE, STROKE_DASH_OPTIONS, getAnimationInitialStyle, cloneHistorySnapshot, hasShapeProperties, getImageFitStyle, getComputedFillStyle, isImageLikeElement, getCropShapeClipPath, getImageTilingStyle, mediaPlaybackAttributes, buildTextBlockStyle, hasTextProperties, toCssWritingMode, toCssTextOrientation, toCssVerticalDirection, buildTextBodyLayoutStyle, buildTextBody3DSceneStyle, buildParagraphs, colorWithOpacity, normalizeHexColor, hexToRgbUnit, build3DExtrusionData, getComputedEffectStyle, getComputedStrokeStyle, getAnimationColorBaseStyle, isStrokeOnlyPresetElement, resolveShapeGeometry, getConnectorPathGeometry, normalizeStrokeDashType, getSvgStrokeDasharray, buildSvgGradientDef, buildStrokeOutline, getPresetShapeVectorGeometry, isWedgeCalloutPresetShape, svgGradientFillRef, isCalloutShape, getCalloutLeaderLineGeometry, buildCalloutLeaderLineSvgPath, getCalloutViewBoxBounds, svgLineCap, getCompoundLineOffsets, getCompoundLineWidths, canDrillDown, computeSelectionRect, DEFAULT_FONT_FAMILY, cellStyleToCss, rectToCells, isCellInRect, tableContainerCss, buildChartViewModel, resolveChartKind, chartPreserveAspectRatio, buildNotesPdfBytes, buildTiledSlidesPdfBytes, buildPreviewAnimation, buildMotionPathPreview, mediaFallbackVisual, scheduleMediaTrimAndFade, registerCrossSlideAudio, withInlineListDecorationDefaults, segmentStyleToCss, resolveAutoFitFontScale, applyUnderlineVariant, nestedTextDecorationStyle, resolveFontKerning, getSubstituteFontFamily, parsePanoseString, resolveScriptFontSet, hasDistinctScriptFonts, pieceLetterSpacing, resolveMetricTrackingPx, hollowTextFillStyle, stripUnderlineDecoration, buildTabContext, TEXT_BUILD_ID_SEP, buildTextBuildSpec, textBuildSpanStyle, apply3dEffects, customGeometryPathsToSvgSubpaths, buildSubpathPaints, computeColumnBoundaries, getTableCellBandStyle, parseDrawingColor, parseDrawingColorOpacity, getCellDiagonalBorders, xmlText, cellRunStyle, getChartStylePalette, computeChartLegendLayout, mediaFallbackIcon, mediaFallbackLabelKey, MEDIA_CHROME_ATTRIBUTE, convertOmmlToMathMl, sanitizeMathMl, tableCellCss, computeResizedColumnWidths, computeResizedRowHeight, DEFAULT_ROW_HEIGHT, ooxmlGradientAngleToCssDegrees, buildRectPathGradient, buildRunTabLines, chartPartToAttrs, splitWordsForUnderline, splitRunForMetrics, splitRunByScriptFont } from './chunk-F552WUJN.mjs';
|
|
2
|
+
import { translationsEn } from './chunk-MQUTXOET.mjs';
|
|
3
3
|
import { clsx } from 'clsx';
|
|
4
4
|
import { twMerge } from 'tailwind-merge';
|
|
5
5
|
import React7, { useRef, useState, useEffect, useCallback, useMemo, useLayoutEffect } from 'react';
|
|
@@ -1426,7 +1426,33 @@ function renderRubyOrText(run, baseContent) {
|
|
|
1426
1426
|
/* @__PURE__ */ jsx("rp", { children: ")" })
|
|
1427
1427
|
] });
|
|
1428
1428
|
}
|
|
1429
|
-
function
|
|
1429
|
+
function renderSeededListRun(seed, runs, segments, context) {
|
|
1430
|
+
const sourceRun = runs.find((candidate) => candidate.segmentIndex === seed.segmentIndex);
|
|
1431
|
+
const segment = sourceRun ? segments[seed.segmentIndex] : { text: seed.text, style: seed.style };
|
|
1432
|
+
const resolvedSegment = {
|
|
1433
|
+
...segment,
|
|
1434
|
+
style: withInlineListDecorationDefaults(segment.style, context.element.textStyle)
|
|
1435
|
+
};
|
|
1436
|
+
const decorationCss = segmentStyleToCss(
|
|
1437
|
+
resolvedSegment,
|
|
1438
|
+
resolveAutoFitFontScale(context.element.textStyle)
|
|
1439
|
+
);
|
|
1440
|
+
applyUnderlineVariant(decorationCss, resolvedSegment);
|
|
1441
|
+
const run = sourceRun ? { ...sourceRun, style: { ...sourceRun.style, ...nestedTextDecorationStyle(decorationCss) } } : {
|
|
1442
|
+
text: seed.text,
|
|
1443
|
+
style: decorationCss,
|
|
1444
|
+
segmentIndex: seed.segmentIndex
|
|
1445
|
+
};
|
|
1446
|
+
const rendered = renderParagraphRun(run, resolvedSegment, context);
|
|
1447
|
+
if (!React7.isValidElement(rendered)) {
|
|
1448
|
+
return rendered;
|
|
1449
|
+
}
|
|
1450
|
+
return React7.cloneElement(rendered, {
|
|
1451
|
+
"data-pptx-list-run": seed.token,
|
|
1452
|
+
...seed.text === "" ? { children: /* @__PURE__ */ jsx("br", {}) } : {}
|
|
1453
|
+
});
|
|
1454
|
+
}
|
|
1455
|
+
function renderTextSegments(element, fallbackColor, emptyFallback, findHighlights, onHyperlinkClick, fieldContext, subElementAnimStates, segmentOverrides, requireCtrlClick, placeholderPrompt, inlineListSeed) {
|
|
1430
1456
|
if (!hasTextProperties(element)) {
|
|
1431
1457
|
return emptyFallback || null;
|
|
1432
1458
|
}
|
|
@@ -1437,7 +1463,12 @@ function renderTextSegments(element, fallbackColor, emptyFallback, findHighlight
|
|
|
1437
1463
|
}
|
|
1438
1464
|
return element.text || emptyFallback || "";
|
|
1439
1465
|
}
|
|
1440
|
-
const paragraphs = buildParagraphs(
|
|
1466
|
+
const paragraphs = buildParagraphs(
|
|
1467
|
+
element,
|
|
1468
|
+
fieldContext,
|
|
1469
|
+
segmentOverrides,
|
|
1470
|
+
inlineListSeed ? { preserveTrailingEmpty: true } : void 0
|
|
1471
|
+
);
|
|
1441
1472
|
const ctx = {
|
|
1442
1473
|
element,
|
|
1443
1474
|
fallbackColor,
|
|
@@ -1446,7 +1477,15 @@ function renderTextSegments(element, fallbackColor, emptyFallback, findHighlight
|
|
|
1446
1477
|
requireCtrlClick
|
|
1447
1478
|
};
|
|
1448
1479
|
return paragraphs.map(
|
|
1449
|
-
(para, paraIndex) => renderParagraph(
|
|
1480
|
+
(para, paraIndex) => renderParagraph(
|
|
1481
|
+
para,
|
|
1482
|
+
paraIndex,
|
|
1483
|
+
paragraphs.length,
|
|
1484
|
+
segments,
|
|
1485
|
+
ctx,
|
|
1486
|
+
subElementAnimStates,
|
|
1487
|
+
inlineListSeed
|
|
1488
|
+
)
|
|
1450
1489
|
);
|
|
1451
1490
|
}
|
|
1452
1491
|
function joinRunsBySegment(runs) {
|
|
@@ -1461,13 +1500,12 @@ function joinRunsBySegment(runs) {
|
|
|
1461
1500
|
}
|
|
1462
1501
|
return out;
|
|
1463
1502
|
}
|
|
1464
|
-
function renderParagraph(para, paraIndex, paraCount, segments, ctx, subElementAnimStates) {
|
|
1503
|
+
function renderParagraph(para, paraIndex, paraCount, segments, ctx, subElementAnimStates, inlineListSeed) {
|
|
1465
1504
|
const element = ctx.element;
|
|
1466
1505
|
const runCtx = { ...ctx, paragraphRtl: para.rtl };
|
|
1467
1506
|
const runs = joinRunsBySegment(para.runs);
|
|
1468
|
-
const
|
|
1469
|
-
|
|
1470
|
-
);
|
|
1507
|
+
const listParagraph = inlineListSeed?.paragraphs[paraIndex];
|
|
1508
|
+
const renderedRuns = listParagraph ? listParagraph.runs.map((run) => renderSeededListRun(run, runs, segments, runCtx)) : runs.map((run) => renderParagraphRun(run, segments[run.segmentIndex ?? -1], runCtx));
|
|
1471
1509
|
const paraStyle = {
|
|
1472
1510
|
// `text-align`, BiDi `direction` / `unicode-bidi` and the kinsoku
|
|
1473
1511
|
// line-break rules, resolved by shared from this paragraph's own `a:pPr`.
|
|
@@ -1512,17 +1550,25 @@ function renderParagraph(para, paraIndex, paraCount, segments, ctx, subElementAn
|
|
|
1512
1550
|
`-build-${pieceKey}`
|
|
1513
1551
|
)
|
|
1514
1552
|
);
|
|
1515
|
-
const needsWrapper = Object.keys(paraStyle).length > 0 || marker !== null;
|
|
1553
|
+
const needsWrapper = Boolean(listParagraph) || Object.keys(paraStyle).length > 0 || marker !== null;
|
|
1516
1554
|
if (!needsWrapper) {
|
|
1517
1555
|
return /* @__PURE__ */ jsxs(React7.Fragment, { children: [
|
|
1518
1556
|
wrappedContent,
|
|
1519
1557
|
paraIndex < paraCount - 1 ? /* @__PURE__ */ jsx("br", {}) : null
|
|
1520
1558
|
] }, `${element.id}-para-${paraIndex}`);
|
|
1521
1559
|
}
|
|
1522
|
-
return /* @__PURE__ */ jsxs(
|
|
1523
|
-
|
|
1524
|
-
|
|
1525
|
-
|
|
1560
|
+
return /* @__PURE__ */ jsxs(
|
|
1561
|
+
"div",
|
|
1562
|
+
{
|
|
1563
|
+
style: paraStyle,
|
|
1564
|
+
"data-pptx-list-paragraph": listParagraph?.token,
|
|
1565
|
+
children: [
|
|
1566
|
+
marker,
|
|
1567
|
+
para.isEmpty && !listParagraph ? /* @__PURE__ */ jsx("br", {}) : wrappedContent
|
|
1568
|
+
]
|
|
1569
|
+
},
|
|
1570
|
+
`${element.id}-para-${paraIndex}`
|
|
1571
|
+
);
|
|
1526
1572
|
}
|
|
1527
1573
|
function renderBulletMarker(para, paraIndex, elementId) {
|
|
1528
1574
|
const picture = para.bulletPicture;
|
|
@@ -1796,112 +1842,8 @@ function getShapeVisualStyle(element, _hasFill, fillColor, _strokeWidth, _stroke
|
|
|
1796
1842
|
return base;
|
|
1797
1843
|
}
|
|
1798
1844
|
}
|
|
1799
|
-
function
|
|
1800
|
-
|
|
1801
|
-
if (typeof direct === "number" && Number.isFinite(direct)) {
|
|
1802
|
-
return clampUnitInterval(direct / 1e5);
|
|
1803
|
-
}
|
|
1804
|
-
const fallbackKey = element.shapeAdjustments?.adj;
|
|
1805
|
-
if (typeof fallbackKey === "number" && Number.isFinite(fallbackKey)) {
|
|
1806
|
-
return clampUnitInterval(fallbackKey / 1e5);
|
|
1807
|
-
}
|
|
1808
|
-
return clampUnitInterval(fallback);
|
|
1809
|
-
}
|
|
1810
|
-
function getConnectorPathGeometry(element) {
|
|
1811
|
-
const width = Math.max(element.width, 0);
|
|
1812
|
-
const height = Math.max(element.height, 0);
|
|
1813
|
-
const normalizedType = (element.shapeType || "").toLowerCase();
|
|
1814
|
-
const mapX = (value) => value;
|
|
1815
|
-
const mapY = (value) => value;
|
|
1816
|
-
const point = (x, y) => `${mapX(x)} ${mapY(y)}`;
|
|
1817
|
-
const startX = mapX(0);
|
|
1818
|
-
const startY = mapY(0);
|
|
1819
|
-
const endX = mapX(width);
|
|
1820
|
-
const endY = mapY(height);
|
|
1821
|
-
const horizontalDominant = width >= height;
|
|
1822
|
-
if (normalizedType.includes("bentconnector3")) {
|
|
1823
|
-
const adj1 = getConnectorAdjustment(element, "adj1", 0.32);
|
|
1824
|
-
const adj2 = getConnectorAdjustment(element, "adj2", 0.68);
|
|
1825
|
-
if (horizontalDominant) {
|
|
1826
|
-
const x1 = width * Math.min(adj1, adj2);
|
|
1827
|
-
const x2 = width * Math.max(adj1, adj2);
|
|
1828
|
-
const yMid = height * 0.5;
|
|
1829
|
-
return {
|
|
1830
|
-
startX,
|
|
1831
|
-
startY,
|
|
1832
|
-
endX,
|
|
1833
|
-
endY,
|
|
1834
|
-
pathData: `M ${point(0, 0)} L ${point(x1, 0)} L ${point(x1, yMid)} L ${point(x2, yMid)} L ${point(x2, height)} L ${point(width, height)}`
|
|
1835
|
-
};
|
|
1836
|
-
}
|
|
1837
|
-
const y1 = height * Math.min(adj1, adj2);
|
|
1838
|
-
const y2 = height * Math.max(adj1, adj2);
|
|
1839
|
-
const xMid = width * 0.5;
|
|
1840
|
-
return {
|
|
1841
|
-
startX,
|
|
1842
|
-
startY,
|
|
1843
|
-
endX,
|
|
1844
|
-
endY,
|
|
1845
|
-
pathData: `M ${point(0, 0)} L ${point(0, y1)} L ${point(xMid, y1)} L ${point(xMid, y2)} L ${point(width, y2)} L ${point(width, height)}`
|
|
1846
|
-
};
|
|
1847
|
-
}
|
|
1848
|
-
if (normalizedType.includes("bentconnector")) {
|
|
1849
|
-
const adj1 = getConnectorAdjustment(element, "adj1", 0.5);
|
|
1850
|
-
const adj2 = getConnectorAdjustment(element, "adj2", 0.5);
|
|
1851
|
-
if (horizontalDominant) {
|
|
1852
|
-
const bendX = width * adj1;
|
|
1853
|
-
return {
|
|
1854
|
-
startX,
|
|
1855
|
-
startY,
|
|
1856
|
-
endX,
|
|
1857
|
-
endY,
|
|
1858
|
-
pathData: `M ${point(0, 0)} L ${point(bendX, 0)} L ${point(bendX, height)} L ${point(width, height)}`
|
|
1859
|
-
};
|
|
1860
|
-
}
|
|
1861
|
-
const bendY = height * adj2;
|
|
1862
|
-
return {
|
|
1863
|
-
startX,
|
|
1864
|
-
startY,
|
|
1865
|
-
endX,
|
|
1866
|
-
endY,
|
|
1867
|
-
pathData: `M ${point(0, 0)} L ${point(0, bendY)} L ${point(width, bendY)} L ${point(width, height)}`
|
|
1868
|
-
};
|
|
1869
|
-
}
|
|
1870
|
-
if (normalizedType.includes("curvedconnector3")) {
|
|
1871
|
-
const adj1 = getConnectorAdjustment(element, "adj1", 0.22);
|
|
1872
|
-
const adj2 = getConnectorAdjustment(element, "adj2", 0.78);
|
|
1873
|
-
const control1X = width * adj1;
|
|
1874
|
-
const control2X = width * adj2;
|
|
1875
|
-
const control1Y = 0;
|
|
1876
|
-
const control2Y = height;
|
|
1877
|
-
return {
|
|
1878
|
-
startX,
|
|
1879
|
-
startY,
|
|
1880
|
-
endX,
|
|
1881
|
-
endY,
|
|
1882
|
-
pathData: `M ${point(0, 0)} C ${point(control1X, control1Y)} ${point(control2X, control2Y)} ${point(width, height)}`
|
|
1883
|
-
};
|
|
1884
|
-
}
|
|
1885
|
-
if (normalizedType.includes("curvedconnector")) {
|
|
1886
|
-
const adj1 = getConnectorAdjustment(element, "adj1", 0.5);
|
|
1887
|
-
const adj2 = getConnectorAdjustment(element, "adj2", horizontalDominant ? 0 : 1);
|
|
1888
|
-
const controlX = width * adj1;
|
|
1889
|
-
const controlY = height * adj2;
|
|
1890
|
-
return {
|
|
1891
|
-
startX,
|
|
1892
|
-
startY,
|
|
1893
|
-
endX,
|
|
1894
|
-
endY,
|
|
1895
|
-
pathData: `M ${point(0, 0)} Q ${point(controlX, controlY)} ${point(width, height)}`
|
|
1896
|
-
};
|
|
1897
|
-
}
|
|
1898
|
-
return {
|
|
1899
|
-
startX,
|
|
1900
|
-
startY,
|
|
1901
|
-
endX,
|
|
1902
|
-
endY,
|
|
1903
|
-
pathData: `M ${point(0, 0)} L ${point(width, height)}`
|
|
1904
|
-
};
|
|
1845
|
+
function getConnectorPathGeometry2(element) {
|
|
1846
|
+
return getConnectorPathGeometry(element);
|
|
1905
1847
|
}
|
|
1906
1848
|
var ARROW_SIZE_SCALE = {
|
|
1907
1849
|
sm: 0.6,
|
|
@@ -2286,7 +2228,7 @@ function renderVectorShape(element, hasFill, fillColor, strokeWidth, strokeColor
|
|
|
2286
2228
|
if (element.type === "connector" || getShapeType(element.shapeType) === "connector" || element.shapeType === "line") {
|
|
2287
2229
|
const viewWidth = Math.max(element.width, 1);
|
|
2288
2230
|
const viewHeight = Math.max(element.height, 1);
|
|
2289
|
-
const { pathData } =
|
|
2231
|
+
const { pathData } = getConnectorPathGeometry2(element);
|
|
2290
2232
|
const markerSeed = element.id.replace(/[^a-zA-Z0-9_-]/gu, "_");
|
|
2291
2233
|
const startMarkerId = `${markerSeed}-start-arrow`;
|
|
2292
2234
|
const endMarkerId = `${markerSeed}-end-arrow`;
|
|
@@ -3011,10 +2953,10 @@ function TableResizeOverlay({
|
|
|
3011
2953
|
return;
|
|
3012
2954
|
}
|
|
3013
2955
|
const rect = containerRef.current.getBoundingClientRect();
|
|
3014
|
-
if (drag.type === "col" && drag.initialWidths && onResizeColumns) {
|
|
2956
|
+
if (e.clientX !== drag.startPos && drag.type === "col" && drag.initialWidths && onResizeColumns) {
|
|
3015
2957
|
const deltaProp = (e.clientX - drag.startPos) / rect.width;
|
|
3016
2958
|
onResizeColumns(computeResizedColumnWidths(drag.initialWidths, drag.index, deltaProp));
|
|
3017
|
-
} else if (drag.type === "row" && onResizeRow) {
|
|
2959
|
+
} else if (e.clientY !== drag.startPos && drag.type === "row" && onResizeRow) {
|
|
3018
2960
|
const deltaY = e.clientY - drag.startPos;
|
|
3019
2961
|
const newHeight = computeResizedRowHeight(
|
|
3020
2962
|
drag.initialRowHeight ?? DEFAULT_ROW_HEIGHT,
|
|
@@ -3866,4 +3808,4 @@ function stopPreviewAnimation() {
|
|
|
3866
3808
|
activePreview = null;
|
|
3867
3809
|
}
|
|
3868
3810
|
|
|
3869
|
-
export { ANIMATION_PRESET_OPTIONS, ARROW_SIZE_OPTIONS, CONNECTOR_ARROW_OPTIONS, DEFAULT_CANVAS_HEIGHT, DEFAULT_CANVAS_WIDTH, DEFAULT_FILL_COLOR, DEFAULT_FONT_FAMILY2 as DEFAULT_FONT_FAMILY, DEFAULT_SECTION_GROUP_ID, DEFAULT_STROKE_COLOR, DEFAULT_TABLE_COLUMNS, DEFAULT_TABLE_ROWS, DEFAULT_TEXT_COLOR, DEFAULT_TEXT_FONT_SIZE, GRID_SIZE, HYPERLINK_COLOR, MIN_ELEMENT_SIZE, SHAPE_PRESETS, SHORTCUT_REFERENCE_ITEMS, SLIDE_NAV_THUMBNAIL_WIDTH, STROKE_DASH_OPTIONS2 as STROKE_DASH_OPTIONS, TOOLBAR_SECTIONS, UNGROUPED_SECTION_ID, ZOOM_TO_SELECTION_PADDING, build3DExtrusionData2 as build3DExtrusionData, buildLineGlowFilter, buildLineShadowCss, buildNotesPdf, buildPdfFromTiledImageData, buildReactChartViewModel, buildTextBody3DSceneStyle2 as buildTextBody3DSceneStyle, cloneHistorySnapshot2 as cloneHistorySnapshot, cn, getAnimationInitialStyle2 as getAnimationInitialStyle, getConnectorPathGeometry, getCropShapeClipPath2 as getCropShapeClipPath, getDuotoneColors, getImageRenderStyle, getImageSurfaceMaskStyle, getImageSurfaceStyle, getImageTilingStyle2 as getImageTilingStyle, getShapeVisualStyle, getTextLayoutStyle, getTextStyleForElement, getTextWarpStyle, hasDagDuotoneEffect, isConnectorOrLineElement, renderChartElement, renderConnectorMarker, renderDagDuotoneSvgFilter, renderMediaElement, renderTableElement, renderTextSegments, renderVectorShape, shouldRenderFallbackLabel, startMotionPathPreview, startPreviewAnimation, stopPreviewAnimation };
|
|
3811
|
+
export { ANIMATION_PRESET_OPTIONS, ARROW_SIZE_OPTIONS, CONNECTOR_ARROW_OPTIONS, DEFAULT_CANVAS_HEIGHT, DEFAULT_CANVAS_WIDTH, DEFAULT_FILL_COLOR, DEFAULT_FONT_FAMILY2 as DEFAULT_FONT_FAMILY, DEFAULT_SECTION_GROUP_ID, DEFAULT_STROKE_COLOR, DEFAULT_TABLE_COLUMNS, DEFAULT_TABLE_ROWS, DEFAULT_TEXT_COLOR, DEFAULT_TEXT_FONT_SIZE, GRID_SIZE, HYPERLINK_COLOR, MIN_ELEMENT_SIZE, SHAPE_PRESETS, SHORTCUT_REFERENCE_ITEMS, SLIDE_NAV_THUMBNAIL_WIDTH, STROKE_DASH_OPTIONS2 as STROKE_DASH_OPTIONS, TOOLBAR_SECTIONS, UNGROUPED_SECTION_ID, ZOOM_TO_SELECTION_PADDING, build3DExtrusionData2 as build3DExtrusionData, buildLineGlowFilter, buildLineShadowCss, buildNotesPdf, buildPdfFromTiledImageData, buildReactChartViewModel, buildTextBody3DSceneStyle2 as buildTextBody3DSceneStyle, cloneHistorySnapshot2 as cloneHistorySnapshot, cn, getAnimationInitialStyle2 as getAnimationInitialStyle, getConnectorPathGeometry2 as getConnectorPathGeometry, getCropShapeClipPath2 as getCropShapeClipPath, getDuotoneColors, getImageRenderStyle, getImageSurfaceMaskStyle, getImageSurfaceStyle, getImageTilingStyle2 as getImageTilingStyle, getShapeVisualStyle, getTextLayoutStyle, getTextStyleForElement, getTextWarpStyle, hasDagDuotoneEffect, isConnectorOrLineElement, renderChartElement, renderConnectorMarker, renderDagDuotoneSvgFilter, renderMediaElement, renderTableElement, renderTextSegments, renderVectorShape, shouldRenderFallbackLabel, startMotionPathPreview, startPreviewAnimation, stopPreviewAnimation };
|
|
Binary file
|
|
Binary file
|
|
@@ -3848,7 +3848,8 @@ var LOCALE_CATALOG = [
|
|
|
3848
3848
|
{ code: "en", label: "English", nativeLabel: "English" },
|
|
3849
3849
|
{ code: "fr", label: "French", nativeLabel: "Fran\xE7ais" },
|
|
3850
3850
|
{ code: "es", label: "Spanish", nativeLabel: "Espa\xF1ol" },
|
|
3851
|
-
{ code: "de", label: "German", nativeLabel: "Deutsch" }
|
|
3851
|
+
{ code: "de", label: "German", nativeLabel: "Deutsch" },
|
|
3852
|
+
{ code: "zh-CN", label: "Chinese (Simplified)", nativeLabel: "\u7B80\u4F53\u4E2D\u6587" }
|
|
3852
3853
|
];
|
|
3853
3854
|
var ALIGNMENT_LABEL_KEYS = {
|
|
3854
3855
|
left: "pptx.ribbon.alignLeft",
|
|
Binary file
|
|
Binary file
|