pptx-react-viewer 2.15.2 → 2.16.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.
Files changed (100) hide show
  1. package/CHANGELOG.md +4 -0
  2. package/dist/{AiChatPanel-HSQLY6O7.mjs → AiChatPanel-TYU52HDW.mjs} +3 -3
  3. package/dist/AiChatPanel-TYU52HDW.mjs.br +0 -0
  4. package/dist/AiChatPanel-TYU52HDW.mjs.gz +0 -0
  5. package/dist/{AiChatPanel-WGX7DUQE.js → AiChatPanel-VKGWK23E.js} +22 -22
  6. package/dist/AiChatPanel-VKGWK23E.js.br +0 -0
  7. package/dist/AiChatPanel-VKGWK23E.js.gz +0 -0
  8. package/dist/{Model3DScene-3DOCQYAE.mjs → Model3DScene-267BHD5T.mjs} +1 -1
  9. package/dist/Model3DScene-267BHD5T.mjs.br +0 -0
  10. package/dist/Model3DScene-267BHD5T.mjs.gz +0 -0
  11. package/dist/{Model3DScene-DYWYNVLU.js → Model3DScene-TG7OSR6V.js} +2 -2
  12. package/dist/Model3DScene-TG7OSR6V.js.br +0 -0
  13. package/dist/Model3DScene-TG7OSR6V.js.gz +0 -0
  14. package/dist/{SurfaceChart3DScene-7UB5JE2W.js → SurfaceChart3DScene-GK4JHZAC.js} +2 -2
  15. package/dist/SurfaceChart3DScene-GK4JHZAC.js.br +0 -0
  16. package/dist/SurfaceChart3DScene-GK4JHZAC.js.gz +0 -0
  17. package/dist/{SurfaceChart3DScene-GIKV3DXC.mjs → SurfaceChart3DScene-RPRVXRQZ.mjs} +1 -1
  18. package/dist/{SurfaceChart3DScene-GIKV3DXC.mjs.br → SurfaceChart3DScene-RPRVXRQZ.mjs.br} +0 -0
  19. package/dist/SurfaceChart3DScene-RPRVXRQZ.mjs.gz +0 -0
  20. package/dist/{chunk-RSNAGJTQ.js → chunk-7W5MCYBN.js} +1084 -1052
  21. package/dist/chunk-7W5MCYBN.js.br +0 -0
  22. package/dist/chunk-7W5MCYBN.js.gz +0 -0
  23. package/dist/{chunk-MQXKBH43.js → chunk-AX75ONFY.js} +247 -247
  24. package/dist/chunk-AX75ONFY.js.br +0 -0
  25. package/dist/chunk-AX75ONFY.js.gz +0 -0
  26. package/dist/{chunk-ZAO36XAK.mjs → chunk-FFBY2TKD.mjs} +5 -5
  27. package/dist/chunk-FFBY2TKD.mjs.br +0 -0
  28. package/dist/chunk-FFBY2TKD.mjs.gz +0 -0
  29. package/dist/{chunk-U47SG5XL.js → chunk-GOPIG4VW.js} +353 -336
  30. package/dist/chunk-GOPIG4VW.js.br +0 -0
  31. package/dist/chunk-GOPIG4VW.js.gz +0 -0
  32. package/dist/{chunk-LVGFV42Z.mjs → chunk-OIITLGKQ.mjs} +234 -144
  33. package/dist/chunk-OIITLGKQ.mjs.br +0 -0
  34. package/dist/chunk-OIITLGKQ.mjs.gz +0 -0
  35. package/dist/{chunk-SBRSPTSA.js → chunk-P3Y3OMAD.js} +239 -144
  36. package/dist/chunk-P3Y3OMAD.js.br +0 -0
  37. package/dist/chunk-P3Y3OMAD.js.gz +0 -0
  38. package/dist/{chunk-DC4GIE7E.js → chunk-PILJZ5OE.js} +3 -3
  39. package/dist/chunk-PILJZ5OE.js.br +0 -0
  40. package/dist/chunk-PILJZ5OE.js.gz +0 -0
  41. package/dist/{chunk-GLC2RPKN.mjs → chunk-TWPZJXLC.mjs} +22 -5
  42. package/dist/chunk-TWPZJXLC.mjs.br +0 -0
  43. package/dist/chunk-TWPZJXLC.mjs.gz +0 -0
  44. package/dist/{chunk-IXCNYPFK.mjs → chunk-ULB35HMJ.mjs} +1 -1
  45. package/dist/chunk-ULB35HMJ.mjs.br +0 -0
  46. package/dist/chunk-ULB35HMJ.mjs.gz +0 -0
  47. package/dist/{chunk-IXEHYABF.mjs → chunk-VNVURLZM.mjs} +40 -8
  48. package/dist/chunk-VNVURLZM.mjs.br +0 -0
  49. package/dist/chunk-VNVURLZM.mjs.gz +0 -0
  50. package/dist/index.js +39 -39
  51. package/dist/index.js.br +0 -0
  52. package/dist/index.js.gz +0 -0
  53. package/dist/index.mjs +5 -5
  54. package/dist/index.mjs.br +0 -0
  55. package/dist/index.mjs.gz +0 -0
  56. package/dist/internals.d.ts.map +1 -1
  57. package/dist/internals.js +78 -78
  58. package/dist/internals.js.br +0 -0
  59. package/dist/internals.js.gz +0 -0
  60. package/dist/internals.mjs +3 -3
  61. package/dist/internals.mjs.br +0 -0
  62. package/dist/internals.mjs.gz +0 -0
  63. package/dist/viewer/index.js +26 -26
  64. package/dist/viewer/index.js.br +0 -0
  65. package/dist/viewer/index.js.gz +0 -0
  66. package/dist/viewer/index.mjs +5 -5
  67. package/dist/viewer/index.mjs.br +0 -0
  68. package/dist/viewer/index.mjs.gz +0 -0
  69. package/package.json +1 -1
  70. package/dist/AiChatPanel-HSQLY6O7.mjs.br +0 -0
  71. package/dist/AiChatPanel-HSQLY6O7.mjs.gz +0 -0
  72. package/dist/AiChatPanel-WGX7DUQE.js.br +0 -0
  73. package/dist/AiChatPanel-WGX7DUQE.js.gz +0 -0
  74. package/dist/Model3DScene-3DOCQYAE.mjs.br +0 -0
  75. package/dist/Model3DScene-3DOCQYAE.mjs.gz +0 -0
  76. package/dist/Model3DScene-DYWYNVLU.js.br +0 -0
  77. package/dist/Model3DScene-DYWYNVLU.js.gz +0 -0
  78. package/dist/SurfaceChart3DScene-7UB5JE2W.js.br +0 -0
  79. package/dist/SurfaceChart3DScene-7UB5JE2W.js.gz +0 -0
  80. package/dist/SurfaceChart3DScene-GIKV3DXC.mjs.gz +0 -0
  81. package/dist/chunk-DC4GIE7E.js.br +0 -0
  82. package/dist/chunk-DC4GIE7E.js.gz +0 -0
  83. package/dist/chunk-GLC2RPKN.mjs.br +0 -0
  84. package/dist/chunk-GLC2RPKN.mjs.gz +0 -0
  85. package/dist/chunk-IXCNYPFK.mjs.br +0 -0
  86. package/dist/chunk-IXCNYPFK.mjs.gz +0 -0
  87. package/dist/chunk-IXEHYABF.mjs.br +0 -0
  88. package/dist/chunk-IXEHYABF.mjs.gz +0 -0
  89. package/dist/chunk-LVGFV42Z.mjs.br +0 -0
  90. package/dist/chunk-LVGFV42Z.mjs.gz +0 -0
  91. package/dist/chunk-MQXKBH43.js.br +0 -0
  92. package/dist/chunk-MQXKBH43.js.gz +0 -0
  93. package/dist/chunk-RSNAGJTQ.js.br +0 -0
  94. package/dist/chunk-RSNAGJTQ.js.gz +0 -0
  95. package/dist/chunk-SBRSPTSA.js.br +0 -0
  96. package/dist/chunk-SBRSPTSA.js.gz +0 -0
  97. package/dist/chunk-U47SG5XL.js.br +0 -0
  98. package/dist/chunk-U47SG5XL.js.gz +0 -0
  99. package/dist/chunk-ZAO36XAK.mjs.br +0 -0
  100. package/dist/chunk-ZAO36XAK.mjs.gz +0 -0
Binary file
Binary file
@@ -1,5 +1,5 @@
1
1
  import { translationsEn } from './chunk-5YV26HMJ.mjs';
2
- import { SHAPE_PRESET_DEFS, computeValueRangeForChart, VIEWER_SHORTCUT_REFERENCE, getAnimationInitialStyle, cloneHistorySnapshot, hasShapeProperties, isTemplateElement, getImageFitStyle, isImageLikeElement, runMediaCommand, findMediaElementByElementId, mediaPlaybackAttributes, buildTextBlockStyle, hasTextProperties, toCssWritingMode, toCssTextOrientation, toCssVerticalDirection, getKinsokuLineBreakStyles, buildTextBody3DSceneStyle, resolveParagraphRtl, resolveParagraphAlign, resolveCssTextAlign, resolveParagraphStrutFontSize, colorWithOpacity, normalizeHexColor, build3DExtrusionData, isIdentityRectClip, getResolvedShapeClipPath, isStrokeOnlyPresetElement, normalizeStrokeDashType, buildCssGradientFromShapeStyle, buildShadowCssFromShapeStyle, buildInnerShadowCssFromShapeStyle, suppressesCssBorder, buildMultiLayerShadowCss, buildGlowBoxShadow, getCompoundLineBoxShadow, getSoftEdgeFilterId, getEffectDagFilter, buildPatternFillCss, buildReflectionCss, getCssBorderDashStyle, getCompoundLineBorderWidth, getSvgStrokeDasharray, buildSvgGradientDef, isCalloutShape, getCalloutLeaderLineGeometry, buildCalloutLeaderLineSvgPath, getCalloutViewBoxBounds, svgLineCap, getCompoundLineOffsets, getCompoundLineWidths, computeSelectionRect, DEFAULT_FONT_FAMILY, rectToCells, isCellInRect, buildChartViewModel, buildNotesPdfBytes, buildSlidesPdfBytes, buildPreviewAnimation, buildMotionPathPreview, getRoundRectRadiusPx, registerPersistentAudio, proportionalLineHeight, substituteFieldText, resolveUnderlineDecorationStyle, POWERPOINT_METRIC_TRACKING, resolveAutoFitFontScale, getSubstituteFontFamily, parsePanoseString, hasDistinctScriptFonts, buildTextReflectionCss, getTextAlphaOpacity, buildTextRunFilterChain, buildTextShadowCss, TEXT_BUILD_ID_SEP, buildTextBuildSpec, textBuildSpanStyle, sanitizeGradientStops, getGradientTileFlipCss, getGradientTileRectCss, apply3dEffects, clampUnitInterval, customGeometryPathsToSvgSubpaths, svgGradientFillRef, computeColumnBoundaries, parseDrawingColor, parseDrawingColorOpacity, getCellDiagonalBorders, getPatternSvg, ooxmlDashToCssBorderStyle, cell3DBevelCss, getChartStylePalette, chartAreaFill, computeLayout, valueToY, formatAxisValue, computeLayoutOptions, splitSeriesByAxis, computeValueRange, getSecondaryValueAxis, seriesColor, paletteColor, resolveRegionCode, normalizeValue, sequentialColorScale, convertOmmlToMathMl, sanitizeMathMl, buildTextFillCss, resolvePictureBullet, computeResizedColumnWidths, computeResizedRowHeight, DEFAULT_ROW_HEIGHT, resolveFontRefIdx, tintColor2, shadeColor2, ooxmlGradientAngleToCssDegrees, segmentByScript, resolveFontForScript, generateLogTicks, formatAxisValueWithUnits, getDisplayUnitLabel, hexToRgbChannels, chartPartToAttrs } from './chunk-LVGFV42Z.mjs';
2
+ import { SHAPE_PRESET_DEFS, computeValueRangeForChart, VIEWER_SHORTCUT_REFERENCE, getAnimationInitialStyle, cloneHistorySnapshot, hasShapeProperties, isTemplateElement, getImageFitStyle, isImageLikeElement, runMediaCommand, findMediaElementByElementId, mediaPlaybackAttributes, buildTextBlockStyle, hasTextProperties, toCssWritingMode, toCssTextOrientation, toCssVerticalDirection, getKinsokuLineBreakStyles, buildTextBody3DSceneStyle, resolveParagraphRtl, resolveParagraphAlign, resolveCssTextAlign, resolveParagraphStrutFontSize, colorWithOpacity, normalizeHexColor, build3DExtrusionData, isIdentityRectClip, getResolvedShapeClipPath, isStrokeOnlyPresetElement, normalizeStrokeDashType, buildCssGradientFromShapeStyle, buildShadowCssFromShapeStyle, buildInnerShadowCssFromShapeStyle, suppressesCssBorder, buildMultiLayerShadowCss, buildGlowBoxShadow, getCompoundLineBoxShadow, getSoftEdgeFilterId, getEffectDagFilter, buildPatternFillCss, buildReflectionCss, getCssBorderDashStyle, getCompoundLineBorderWidth, getSvgStrokeDasharray, buildSvgGradientDef, isCalloutShape, getCalloutLeaderLineGeometry, buildCalloutLeaderLineSvgPath, getCalloutViewBoxBounds, svgLineCap, getCompoundLineOffsets, getCompoundLineWidths, computeSelectionRect, DEFAULT_FONT_FAMILY, rectToCells, isCellInRect, buildChartViewModel, buildNotesPdfBytes, buildSlidesPdfBytes, buildPreviewAnimation, buildMotionPathPreview, getRoundRectRadiusPx2, registerPersistentAudio, proportionalLineHeight, substituteFieldText, resolveUnderlineDecorationStyle, POWERPOINT_METRIC_TRACKING, resolveAutoFitFontScale, getSubstituteFontFamily, parsePanoseString, hasDistinctScriptFonts, buildTextReflectionCss, getTextAlphaOpacity, buildTextRunFilterChain, buildTextShadowCss, TEXT_BUILD_ID_SEP, buildTextBuildSpec, textBuildSpanStyle, sanitizeGradientStops, getGradientTileFlipCss, getGradientTileRectCss, apply3dEffects, clampUnitInterval, customGeometryPathsToSvgSubpaths, svgGradientFillRef, computeColumnBoundaries, parseDrawingColor, parseDrawingColorOpacity, getCellDiagonalBorders, getPatternSvg, ooxmlDashToCssBorderStyle, cell3DBevelCss, getChartStylePalette, chartAreaFill, computeLayout, valueToY, formatAxisValue, computeLayoutOptions, splitSeriesByAxis, computeValueRange, getSecondaryValueAxis, seriesColor, paletteColor, resolveRegionCode, normalizeValue, sequentialColorScale, convertOmmlToMathMl, sanitizeMathMl, buildTextFillCss, resolvePictureBullet, computeResizedColumnWidths, computeResizedRowHeight, DEFAULT_ROW_HEIGHT, resolveFontRefIdx, tintColor2, shadeColor2, ooxmlGradientAngleToCssDegrees, segmentByScript, resolveFontForScript, generateLogTicks, formatAxisValueWithUnits, getDisplayUnitLabel, hexToRgbChannels, chartPartToAttrs } from './chunk-OIITLGKQ.mjs';
3
3
  import { clsx } from 'clsx';
4
4
  import { twMerge } from 'tailwind-merge';
5
5
  import React6, { useState, useEffect, useMemo, Suspense, useRef, useCallback, useLayoutEffect } from 'react';
@@ -301,7 +301,7 @@ function getImageMaskStyle(element) {
301
301
  }
302
302
  const normalized = shapeType.toLowerCase();
303
303
  if (normalized === "roundrect" || normalized === "round1rect" || normalized === "round2samerect" || normalized === "round2diagrect" || normalized === "sniproundrect" || normalized === "snip1rect" || normalized === "snip2diagrect") {
304
- const radiusPx = getRoundRectRadiusPx(element);
304
+ const radiusPx = getRoundRectRadiusPx2(element);
305
305
  if (radiusPx <= 0.01) {
306
306
  return void 0;
307
307
  }
@@ -2211,7 +2211,7 @@ function renderDagDuotoneSvgFilter(elementId, color1, color2) {
2211
2211
  function localClampAdjustment(value) {
2212
2212
  return Math.max(SHAPE_ADJUSTMENT_MIN, Math.min(SHAPE_ADJUSTMENT_MAX, Math.round(value)));
2213
2213
  }
2214
- function getRoundRectRadiusPx2(element) {
2214
+ function getRoundRectRadiusPx(element) {
2215
2215
  const adjustment = element.shapeAdjustments?.adj;
2216
2216
  const adjValue = typeof adjustment === "number" && Number.isFinite(adjustment) ? localClampAdjustment(adjustment) : DEFAULT_ROUND_RECT_ADJUSTMENT;
2217
2217
  const normalizedAdjustment = adjValue / SHAPE_ADJUSTMENT_MAX;
@@ -2410,7 +2410,7 @@ function getShapeVisualStyle(element, hasFill, fillColor, strokeWidth, strokeCol
2410
2410
  };
2411
2411
  }
2412
2412
  if (normalizedShapeType === "roundRect") {
2413
- const radiusPx = getRoundRectRadiusPx2(element);
2413
+ const radiusPx = getRoundRectRadiusPx(element);
2414
2414
  if (radiusPx <= 0.01) {
2415
2415
  return base;
2416
2416
  }
@@ -6162,7 +6162,7 @@ function FailedToLoad() {
6162
6162
  var LazySurfaceChart3DScene = React6.lazy(
6163
6163
  async () => {
6164
6164
  try {
6165
- return await import('./SurfaceChart3DScene-GIKV3DXC.mjs');
6165
+ return await import('./SurfaceChart3DScene-RPRVXRQZ.mjs');
6166
6166
  } catch {
6167
6167
  return { default: FailedToLoad };
6168
6168
  }
Binary file
Binary file