pptx-react-viewer 2.16.1 → 2.16.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.
Files changed (97) hide show
  1. package/CHANGELOG.md +2 -0
  2. package/dist/{AiChatPanel-OHB6CVLY.js → AiChatPanel-MCGNCS7Q.js} +22 -22
  3. package/dist/AiChatPanel-MCGNCS7Q.js.br +0 -0
  4. package/dist/AiChatPanel-MCGNCS7Q.js.gz +0 -0
  5. package/dist/{AiChatPanel-UPNVIENY.mjs → AiChatPanel-WJXPCHQK.mjs} +3 -3
  6. package/dist/AiChatPanel-WJXPCHQK.mjs.br +0 -0
  7. package/dist/AiChatPanel-WJXPCHQK.mjs.gz +0 -0
  8. package/dist/{Model3DScene-KEUY3M7X.mjs → Model3DScene-IXW2AKAU.mjs} +1 -1
  9. package/dist/{Model3DScene-KEUY3M7X.mjs.br → Model3DScene-IXW2AKAU.mjs.br} +0 -0
  10. package/dist/Model3DScene-IXW2AKAU.mjs.gz +0 -0
  11. package/dist/{Model3DScene-7FKWPESH.js → Model3DScene-Q2DTGVQ7.js} +2 -2
  12. package/dist/Model3DScene-Q2DTGVQ7.js.br +0 -0
  13. package/dist/Model3DScene-Q2DTGVQ7.js.gz +0 -0
  14. package/dist/{SurfaceChart3DScene-NPJQXIGW.js → SurfaceChart3DScene-AD43LAOO.js} +2 -2
  15. package/dist/SurfaceChart3DScene-AD43LAOO.js.br +0 -0
  16. package/dist/SurfaceChart3DScene-AD43LAOO.js.gz +0 -0
  17. package/dist/{SurfaceChart3DScene-2MLBPJ63.mjs → SurfaceChart3DScene-MODEHQ6G.mjs} +1 -1
  18. package/dist/{SurfaceChart3DScene-2MLBPJ63.mjs.br → SurfaceChart3DScene-MODEHQ6G.mjs.br} +0 -0
  19. package/dist/SurfaceChart3DScene-MODEHQ6G.mjs.gz +0 -0
  20. package/dist/{chunk-3NDRTC7T.js → chunk-4GX347MG.js} +235 -46
  21. package/dist/chunk-4GX347MG.js.br +0 -0
  22. package/dist/{chunk-3NDRTC7T.js.gz → chunk-4GX347MG.js.gz} +0 -0
  23. package/dist/{chunk-7UBDMCI7.js → chunk-CIK6XUOH.js} +3 -3
  24. package/dist/chunk-CIK6XUOH.js.br +0 -0
  25. package/dist/chunk-CIK6XUOH.js.gz +0 -0
  26. package/dist/{chunk-N6IE34HX.js → chunk-JV6DI7AK.js} +1096 -1074
  27. package/dist/chunk-JV6DI7AK.js.br +0 -0
  28. package/dist/chunk-JV6DI7AK.js.gz +0 -0
  29. package/dist/{chunk-6ROCCY4M.mjs → chunk-LDD2UVCV.mjs} +49 -27
  30. package/dist/chunk-LDD2UVCV.mjs.br +0 -0
  31. package/dist/chunk-LDD2UVCV.mjs.gz +0 -0
  32. package/dist/{chunk-ENOHLGJ2.mjs → chunk-MDFCBYEM.mjs} +234 -47
  33. package/dist/chunk-MDFCBYEM.mjs.br +0 -0
  34. package/dist/{chunk-ENOHLGJ2.mjs.gz → chunk-MDFCBYEM.mjs.gz} +0 -0
  35. package/dist/{chunk-DQTTI6D4.js → chunk-NKE64XVV.js} +340 -340
  36. package/dist/chunk-NKE64XVV.js.br +0 -0
  37. package/dist/chunk-NKE64XVV.js.gz +0 -0
  38. package/dist/{chunk-IN7D2T4R.js → chunk-P6KM7RO5.js} +297 -276
  39. package/dist/chunk-P6KM7RO5.js.br +0 -0
  40. package/dist/chunk-P6KM7RO5.js.gz +0 -0
  41. package/dist/{chunk-LJZFG6YP.mjs → chunk-QI2JCXTH.mjs} +1 -1
  42. package/dist/chunk-QI2JCXTH.mjs.br +0 -0
  43. package/dist/chunk-QI2JCXTH.mjs.gz +0 -0
  44. package/dist/{chunk-RUK5XZGO.mjs → chunk-UWYHBCLM.mjs} +2 -2
  45. package/dist/chunk-UWYHBCLM.mjs.br +0 -0
  46. package/dist/chunk-UWYHBCLM.mjs.gz +0 -0
  47. package/dist/{chunk-ZOOGEDYG.mjs → chunk-Z4CS2ZYN.mjs} +48 -27
  48. package/dist/chunk-Z4CS2ZYN.mjs.br +0 -0
  49. package/dist/chunk-Z4CS2ZYN.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 +27 -0
  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-OHB6CVLY.js.br +0 -0
  71. package/dist/AiChatPanel-OHB6CVLY.js.gz +0 -0
  72. package/dist/AiChatPanel-UPNVIENY.mjs.br +0 -0
  73. package/dist/AiChatPanel-UPNVIENY.mjs.gz +0 -0
  74. package/dist/Model3DScene-7FKWPESH.js.br +0 -0
  75. package/dist/Model3DScene-7FKWPESH.js.gz +0 -0
  76. package/dist/Model3DScene-KEUY3M7X.mjs.gz +0 -0
  77. package/dist/SurfaceChart3DScene-2MLBPJ63.mjs.gz +0 -0
  78. package/dist/SurfaceChart3DScene-NPJQXIGW.js.br +0 -0
  79. package/dist/SurfaceChart3DScene-NPJQXIGW.js.gz +0 -0
  80. package/dist/chunk-3NDRTC7T.js.br +0 -0
  81. package/dist/chunk-6ROCCY4M.mjs.br +0 -0
  82. package/dist/chunk-6ROCCY4M.mjs.gz +0 -0
  83. package/dist/chunk-7UBDMCI7.js.br +0 -0
  84. package/dist/chunk-7UBDMCI7.js.gz +0 -0
  85. package/dist/chunk-DQTTI6D4.js.br +0 -0
  86. package/dist/chunk-DQTTI6D4.js.gz +0 -0
  87. package/dist/chunk-ENOHLGJ2.mjs.br +0 -0
  88. package/dist/chunk-IN7D2T4R.js.br +0 -0
  89. package/dist/chunk-IN7D2T4R.js.gz +0 -0
  90. package/dist/chunk-LJZFG6YP.mjs.br +0 -0
  91. package/dist/chunk-LJZFG6YP.mjs.gz +0 -0
  92. package/dist/chunk-N6IE34HX.js.br +0 -0
  93. package/dist/chunk-N6IE34HX.js.gz +0 -0
  94. package/dist/chunk-RUK5XZGO.mjs.br +0 -0
  95. package/dist/chunk-RUK5XZGO.mjs.gz +0 -0
  96. package/dist/chunk-ZOOGEDYG.mjs.br +0 -0
  97. package/dist/chunk-ZOOGEDYG.mjs.gz +0 -0
Binary file
Binary file
@@ -1,4 +1,4 @@
1
- import { ThemePresets, PptxMarkdownConverter } from './chunk-ENOHLGJ2.mjs';
1
+ import { ThemePresets, PptxMarkdownConverter } from './chunk-MDFCBYEM.mjs';
2
2
  import { __export } from './chunk-XGB3TDIC.mjs';
3
3
  import * as mcp from 'pptx-viewer-mcp';
4
4
  import * as mcpSchemas from 'pptx-viewer-mcp/schemas';
Binary file
Binary file
@@ -1,6 +1,6 @@
1
- import { cloneHistorySnapshot, MIN_ELEMENT_SIZE, ZOOM_TO_SELECTION_PADDING, DEFAULT_CANVAS_HEIGHT, DEFAULT_CANVAS_WIDTH, partitionTemplateElements, UNGROUPED_SECTION_ID, buildSaveSlides, DEFAULT_TABLE_ROWS, DEFAULT_TABLE_COLUMNS, executeMediaCommand, buildPdfFromImageData, buildNotesPdf, EMU_PER_PX, GRID_SIZE, DEFAULT_TEXT_FONT_SIZE } from './chunk-ZOOGEDYG.mjs';
1
+ import { cloneHistorySnapshot, MIN_ELEMENT_SIZE, ZOOM_TO_SELECTION_PADDING, DEFAULT_CANVAS_HEIGHT, DEFAULT_CANVAS_WIDTH, partitionTemplateElements, UNGROUPED_SECTION_ID, buildSaveSlides, DEFAULT_TABLE_ROWS, DEFAULT_TABLE_COLUMNS, executeMediaCommand, buildPdfFromImageData, buildNotesPdf, EMU_PER_PX, GRID_SIZE, DEFAULT_TEXT_FONT_SIZE } from './chunk-Z4CS2ZYN.mjs';
2
2
  import { translationsEn } from './chunk-5YV26HMJ.mjs';
3
- import { TOOLBAR_TABS, computeVirtualRange, DEFAULT_VIRTUAL_OVERSCAN, createPresenceProjector, BROADCAST_THROTTLE_MS, createSyncGate, clearLocalAwareness, validateRoomId, createDepartureChannel, resolveTransportForServerUrl, isMixedContentBlocked, CONNECTION_TIMEOUT_MS, registerCollaborationTeardown, sanitizeColor, cloneTemplateElementsBySlideId, cloneSlide, createWheelStepBuffer, createViewerZoomStore, clampZoomScale, mapEditingWheel, PresentationAnimationController, PRESENTATION_HASH, PRESENTATION_NONCE_KEY, PRESENTATION_CHANNEL_NAME, swapPresentationWindows, PRESENTATION_MESSAGE_ORIGIN, clearAudienceContent, buildPresentationAudienceUrl, resolveAudienceScreenPlacement, placeAudienceWindow, storeAudienceContent, isPresentationSessionMessage, endAudienceDisplay, createPresentationKeyBuffer, acceptsPresentationInput, resolveAutoAdvanceDelayMs, hasShowSlideAfter, nextShowSlideIndex, previousShowSlideIndex, createPresenterShowGuard, attachPresentationVisibilityPause, buildMorphTransitionPlan, morphOptionToMode, buildMorphAnimationRules, createCollaborationLivePatcher, publishLiveInlineText, PptxHandler, collectMediaElements, collectImagePaths, buildInitialGuides, EncryptedFileError, saveAutosaveSnapshot, isTemplateElementId, hasShapeProperties, hasTextProperties, getInlineEditorSelection, applyStyleToSelectedSegments, setPendingSelectionRestore, applyCaseTransformToSegments, transformTextCase, addSection, renameSection, deleteSection, moveSectionUp, moveSectionDown, moveSlidesToSection, normalizeColorsForCapture, preprocessCssForCapture, downloadBlob, sanitizeDownloadFilename, slideProgressPercent, slideStatusLabel, EXPORT_ASSEMBLING_PERCENT, EXPORT_DONE_PERCENT, isExportAbortError, recordProgressPercent, applyThemeToData, THEME_PRESETS, themeColorSchemesEqual, comparePresentation, applyAcceptSlide, applyAcceptAllSlides, collectUsedFonts, detectTouchDevice, detectOrientation, isMobileViewport, MOBILE_BREAKPOINT, TABLET_BREAKPOINT, mayLeaveSlideShow, stopAllPersistentAudio, remapTextToSegments, guidePxToEmu, shouldLoopContinuously, applyRehearsalTimings, copyFormatFromElement, applyFormatToElement, mapEditorKey, isEditorTextInputTarget, createViewerOptionsStore, readSlidesFromYDoc, reconcileSlidesInYDoc, LOCAL_SYNC_ORIGIN, observeYDocSlides, shouldAutoFollowBroadcaster, createTouchGestureRecognizer, MAX_ZOOM_SCALE, MIN_ZOOM_SCALE, isKeyboardOpen, openPptxFile, readBackstageRecentFile, isActionHidden, buildElementClipboardPayload, generatePackageReadme, exportDeckJson, groupElements, generateElementId, makeCloneId, alignElements, distributeElements, bringForward, sendBackward, bringToFront, sendToBack, newTableElement, createDefaultChartElement, readViewportMetrics, computeKeyboardInset, mergeShapes, mapPresentationKey, lastShowSlideIndex, firstShowSlideIndex, mapPresentationWheel, buildPrintDocument, buildOutlineHtml, buildSlidesHtml, buildNotesHtml, buildHandoutsHtml, createBlankSlide, makeSlideId, buildSlideTemplateSlide, templateSchemeFromTheme, buildThemeColorMap, reResolveSlideColors, computeEntranceAnimationDelay, createPresentationSessionId, resolveTransitionDurationMs, runPresentationAction, createPresenterTimer, createInitialPresentationSnapshot, mergePresentationSnapshot, resetPresenterTimer, presenterElapsed, stepPresenterZoom, togglePresenterTimer, canvasToJpegData, downloadDataUrl, pickSupportedMimeType, WEBM_MIME_CANDIDATES, fpsToFrameIntervalMs, segmentFrameCount, encodeGif, resolveShowSlideIndexes, groupSlidesBySection, hasCopyableFormat, createBackstagePresentation, buildFieldSubstitutionContext, cloneElementForPaste, computeScrollDelta, getPresetShapeClipPath, svgPathToPolygons, polygonsToSvgPath, rerouteConnectorsForMovedElements, applyReroutedConnectors, SvgExporter, buildPrintHtmlDocument, deleteTableColumn, rebuildTableStructureInRawXml, insertTableColumn, deleteTableRow, insertTableRow, updateCellTextStyleInRawXml, updateCellTextInRawXml, splitCell, updateMergeAttrsInRawXml, mergeCells, isPpactionUrl, parsePpactionUrl, safeOpenUrl, ACTION_BUTTON_PRESETS, elementActionToPptxAction, buildSmartArtPresetData, computeSnapToShape, publishLiveGeometry, computeMarqueeHitIds, mergeAdditiveSelection, applyResize, snapBoxToGrid, applyMotionPathPreset } from './chunk-ENOHLGJ2.mjs';
3
+ import { TOOLBAR_TABS, computeVirtualRange, DEFAULT_VIRTUAL_OVERSCAN, createPresenceProjector, BROADCAST_THROTTLE_MS, createSyncGate, clearLocalAwareness, validateRoomId, createDepartureChannel, resolveTransportForServerUrl, isMixedContentBlocked, CONNECTION_TIMEOUT_MS, registerCollaborationTeardown, sanitizeColor, cloneTemplateElementsBySlideId, cloneSlide, createWheelStepBuffer, createViewerZoomStore, clampZoomScale, mapEditingWheel, PresentationAnimationController, PRESENTATION_HASH, PRESENTATION_NONCE_KEY, PRESENTATION_CHANNEL_NAME, swapPresentationWindows, PRESENTATION_MESSAGE_ORIGIN, clearAudienceContent, buildPresentationAudienceUrl, resolveAudienceScreenPlacement, placeAudienceWindow, storeAudienceContent, isPresentationSessionMessage, endAudienceDisplay, createPresentationKeyBuffer, acceptsPresentationInput, resolveAutoAdvanceDelayMs, hasShowSlideAfter, nextShowSlideIndex, previousShowSlideIndex, createPresenterShowGuard, attachPresentationVisibilityPause, buildMorphTransitionPlan, morphOptionToMode, buildMorphAnimationRules, createCollaborationLivePatcher, publishLiveInlineText, PptxHandler, collectMediaElements, collectImagePaths, buildInitialGuides, EncryptedFileError, saveAutosaveSnapshot, isTemplateElementId, hasShapeProperties, hasTextProperties, getInlineEditorSelection, applyStyleToSelectedSegments, setPendingSelectionRestore, applyCaseTransformToSegments, transformTextCase, addSection, renameSection, deleteSection, moveSectionUp, moveSectionDown, moveSlidesToSection, normalizeColorsForCapture, preprocessCssForCapture, downloadBlob, sanitizeDownloadFilename, slideProgressPercent, slideStatusLabel, EXPORT_ASSEMBLING_PERCENT, EXPORT_DONE_PERCENT, isExportAbortError, recordProgressPercent, applyThemeToData, THEME_PRESETS, themeColorSchemesEqual, comparePresentation, applyAcceptSlide, applyAcceptAllSlides, collectUsedFonts, detectTouchDevice, detectOrientation, isMobileViewport, MOBILE_BREAKPOINT, TABLET_BREAKPOINT, mayLeaveSlideShow, stopAllPersistentAudio, remapTextToSegments, guidePxToEmu, shouldLoopContinuously, applyRehearsalTimings, copyFormatFromElement, applyFormatToElement, mapEditorKey, isEditorTextInputTarget, createViewerOptionsStore, readSlidesFromYDoc, reconcileSlidesInYDoc, LOCAL_SYNC_ORIGIN, observeYDocSlides, shouldAutoFollowBroadcaster, createTouchGestureRecognizer, MAX_ZOOM_SCALE, MIN_ZOOM_SCALE, isKeyboardOpen, openPptxFile, readBackstageRecentFile, isActionHidden, buildElementClipboardPayload, generatePackageReadme, exportDeckJson, groupElements, generateElementId, makeCloneId, alignElements, distributeElements, bringForward, sendBackward, bringToFront, sendToBack, newTableElement, createDefaultChartElement, readViewportMetrics, computeKeyboardInset, mergeShapes, mapPresentationKey, lastShowSlideIndex, firstShowSlideIndex, mapPresentationWheel, buildPrintDocument, buildOutlineHtml, buildSlidesHtml, buildNotesHtml, buildHandoutsHtml, createBlankSlide, makeSlideId, buildSlideTemplateSlide, templateSchemeFromTheme, buildThemeColorMap, reResolveSlideColors, computeEntranceAnimationDelay, createPresentationSessionId, resolveTransitionDurationMs, runPresentationAction, createPresenterTimer, createInitialPresentationSnapshot, mergePresentationSnapshot, resetPresenterTimer, presenterElapsed, stepPresenterZoom, togglePresenterTimer, canvasToJpegData, downloadDataUrl, pickSupportedMimeType, WEBM_MIME_CANDIDATES, fpsToFrameIntervalMs, segmentFrameCount, encodeGif, resolveShowSlideIndexes, groupSlidesBySection, hasCopyableFormat, createBackstagePresentation, buildFieldSubstitutionContext, cloneElementForPaste, computeScrollDelta, getPresetShapeClipPath, svgPathToPolygons, polygonsToSvgPath, rerouteConnectorsForMovedElements, applyReroutedConnectors, SvgExporter, buildPrintHtmlDocument, deleteTableColumn, rebuildTableStructureInRawXml, insertTableColumn, deleteTableRow, insertTableRow, updateCellTextStyleInRawXml, updateCellTextInRawXml, splitCell, updateMergeAttrsInRawXml, mergeCells, isPpactionUrl, parsePpactionUrl, safeOpenUrl, ACTION_BUTTON_PRESETS, elementActionToPptxAction, buildSmartArtPresetData, computeSnapToShape, publishLiveGeometry, computeMarqueeHitIds, mergeAdditiveSelection, applyResize, snapBoxToGrid, applyMotionPathPreset } from './chunk-MDFCBYEM.mjs';
4
4
  import { useRef, useState, useEffect, useCallback, useMemo, useLayoutEffect, useSyncExternalStore, useImperativeHandle } from 'react';
5
5
  import JSZip from 'jszip';
6
6
  import { useTranslation } from 'react-i18next';
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, getRoundRectRadiusPx2, mediaFallbackVisual, registerPersistentAudio, proportionalLineHeight, substituteFieldText, resolveUnderlineDecorationStyle, resolveAutoFitFontScale, getSubstituteFontFamily, parsePanoseString, hasDistinctScriptFonts, resolveMetricTrackingPx, 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, mediaFallbackIcon, mediaFallbackLabelKey, MEDIA_CHROME_ATTRIBUTE, convertOmmlToMathMl, sanitizeMathMl, buildTextFillCss, resolvePictureBullet, computeResizedColumnWidths, computeResizedRowHeight, DEFAULT_ROW_HEIGHT, resolveFontRefIdx, tintColor2, shadeColor2, ooxmlGradientAngleToCssDegrees, segmentByScript, resolveFontForScript, generateLogTicks, formatAxisValueWithUnits, getDisplayUnitLabel, hexToRgbChannels, chartPartToAttrs } from './chunk-ENOHLGJ2.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, mediaFallbackVisual, registerPersistentAudio, proportionalLineHeight, substituteFieldText, resolveUnderlineDecorationStyle, resolveAutoFitFontScale, getSubstituteFontFamily, parsePanoseString, hasDistinctScriptFonts, pieceLetterSpacing, resolveMetricTrackingPx, 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, mediaFallbackIcon, mediaFallbackLabelKey, MEDIA_CHROME_ATTRIBUTE, convertOmmlToMathMl, sanitizeMathMl, buildTextFillCss, resolvePictureBullet, computeResizedColumnWidths, computeResizedRowHeight, DEFAULT_ROW_HEIGHT, resolveFontRefIdx, tintColor2, shadeColor2, ooxmlGradientAngleToCssDegrees, generateLogTicks, formatAxisValueWithUnits, getDisplayUnitLabel, splitRunForMetrics, hexToRgbChannels, chartPartToAttrs, segmentByScript, resolveFontForScript } from './chunk-MDFCBYEM.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';
@@ -1531,12 +1531,34 @@ function renderScriptAwareText(text, needsScriptFonts, scriptFonts, baseFontFami
1531
1531
  return /* @__PURE__ */ jsx("span", { style: { fontFamily: font }, children: run.text }, `${keyPrefix}-r${i}`);
1532
1532
  });
1533
1533
  }
1534
- function renderSegmentContent(elementId, segmentIndex, textValue, lines, needsScriptFonts, scriptFonts, baseFontFamily, findHighlights, tabContext) {
1534
+ function renderMetricPieces(text, metric, keyPrefix, inner) {
1535
+ if (!metric || !text) {
1536
+ return inner(text, keyPrefix);
1537
+ }
1538
+ const pieces = splitRunForMetrics(text, metric.font);
1539
+ if (pieces.length <= 1) {
1540
+ return inner(text, keyPrefix);
1541
+ }
1542
+ return pieces.map((piece, i) => /* @__PURE__ */ jsx(
1543
+ "span",
1544
+ {
1545
+ style: { letterSpacing: pieceLetterSpacing(metric.authoredPx, piece.tracking) },
1546
+ children: inner(piece.text, `${keyPrefix}-w${i}`)
1547
+ },
1548
+ `${keyPrefix}-w${i}`
1549
+ ));
1550
+ }
1551
+ function renderSegmentContent(elementId, segmentIndex, textValue, lines, needsScriptFonts, scriptFonts, baseFontFamily, findHighlights, tabContext, metric) {
1535
1552
  const segHl = findHighlights?.get(segmentIndex);
1536
1553
  if (!segHl || segHl.length === 0) {
1537
1554
  return lines.map((line, lineIndex) => {
1538
1555
  const lineKey = `${elementId}-seg-${segmentIndex}-line-${lineIndex}`;
1539
- const renderPiece = (text, key) => renderScriptAwareText(text, needsScriptFonts, scriptFonts, baseFontFamily, key);
1556
+ const renderPiece = (text, key) => renderMetricPieces(
1557
+ text,
1558
+ metric,
1559
+ key,
1560
+ (pieceText, pieceKey) => renderScriptAwareText(pieceText, needsScriptFonts, scriptFonts, baseFontFamily, pieceKey)
1561
+ );
1540
1562
  return /* @__PURE__ */ jsxs(React6.Fragment, { children: [
1541
1563
  tabContext && line.includes(" ") ? renderTabbedLine(line, tabContext, lineKey, renderPiece) : renderPiece(line, lineKey),
1542
1564
  lineIndex < lines.length - 1 ? /* @__PURE__ */ jsx("br", {}) : null
@@ -1568,8 +1590,15 @@ function renderSegmentContent(elementId, segmentIndex, textValue, lines, needsSc
1568
1590
  isCurrent: false
1569
1591
  });
1570
1592
  }
1571
- return chunks.map(
1572
- (chunk, ci) => chunk.highlighted ? /* @__PURE__ */ jsx(
1593
+ const renderChunk = (text, key) => renderMetricPieces(
1594
+ text,
1595
+ metric,
1596
+ key,
1597
+ (pieceText, pieceKey) => renderScriptAwareText(pieceText, needsScriptFonts, scriptFonts, baseFontFamily, pieceKey)
1598
+ );
1599
+ return chunks.map((chunk, ci) => {
1600
+ const chunkKey = `${elementId}-seg-${segmentIndex}-hl-${ci}`;
1601
+ return chunk.highlighted ? /* @__PURE__ */ jsx(
1573
1602
  "mark",
1574
1603
  {
1575
1604
  style: {
@@ -1577,23 +1606,11 @@ function renderSegmentContent(elementId, segmentIndex, textValue, lines, needsSc
1577
1606
  color: "inherit",
1578
1607
  borderRadius: 2
1579
1608
  },
1580
- children: renderScriptAwareText(
1581
- chunk.text,
1582
- needsScriptFonts,
1583
- scriptFonts,
1584
- baseFontFamily,
1585
- `${elementId}-seg-${segmentIndex}-hl-${ci}`
1586
- )
1609
+ children: renderChunk(chunk.text, chunkKey)
1587
1610
  },
1588
- `${elementId}-seg-${segmentIndex}-hl-${ci}`
1589
- ) : /* @__PURE__ */ jsx(React6.Fragment, { children: renderScriptAwareText(
1590
- chunk.text,
1591
- needsScriptFonts,
1592
- scriptFonts,
1593
- baseFontFamily,
1594
- `${elementId}-seg-${segmentIndex}-hl-${ci}`
1595
- ) }, `${elementId}-seg-${segmentIndex}-hl-${ci}`)
1596
- );
1611
+ chunkKey
1612
+ ) : /* @__PURE__ */ jsx(React6.Fragment, { children: renderChunk(chunk.text, chunkKey) }, chunkKey);
1613
+ });
1597
1614
  }
1598
1615
  function renderEquationSegment(elementId, segmentIndex, equationXml, equationNumber) {
1599
1616
  const mathml = convertOmmlToMathMl(equationXml);
@@ -1746,14 +1763,17 @@ function renderSingleSegment(element, segment, segmentIndex, fallbackColor, find
1746
1763
  )
1747
1764
  };
1748
1765
  const needsScriptFonts = hasDistinctScriptFonts(scriptFonts);
1749
- const metricTracking = resolveMetricTrackingPx(textValue, {
1766
+ const metricFont = {
1750
1767
  fontFamily: baseFontFamily,
1751
1768
  fontSizePx: baseFontSize * baselineFontScale,
1752
1769
  bold: Boolean(segmentStyle.bold),
1753
1770
  italic: Boolean(segmentStyle.italic)
1754
- });
1755
- const totalLetterSpacing = authoredLetterSpacing + metricTracking;
1756
- const letterSpacing = totalLetterSpacing === 0 ? void 0 : `${totalLetterSpacing}px`;
1771
+ };
1772
+ const metricContext = { font: metricFont, authoredPx: authoredLetterSpacing };
1773
+ const letterSpacing = pieceLetterSpacing(
1774
+ authoredLetterSpacing,
1775
+ resolveMetricTrackingPx(textValue, metricFont)
1776
+ );
1757
1777
  const spanStyle = {
1758
1778
  color: resolvedSegmentColor,
1759
1779
  fontSize: baseFontSize * baselineFontScale,
@@ -1833,7 +1853,8 @@ function renderSingleSegment(element, segment, segmentIndex, fallbackColor, find
1833
1853
  baseFontFamily,
1834
1854
  Boolean(segmentStyle.bold),
1835
1855
  Boolean(segmentStyle.italic)
1836
- )
1856
+ ),
1857
+ metricContext
1837
1858
  );
1838
1859
  let innerContent;
1839
1860
  if (hasRuby) {
@@ -6160,7 +6181,7 @@ function FailedToLoad() {
6160
6181
  var LazySurfaceChart3DScene = React6.lazy(
6161
6182
  async () => {
6162
6183
  try {
6163
- return await import('./SurfaceChart3DScene-2MLBPJ63.mjs');
6184
+ return await import('./SurfaceChart3DScene-MODEHQ6G.mjs');
6164
6185
  } catch {
6165
6186
  return { default: FailedToLoad };
6166
6187
  }
Binary file
Binary file
package/dist/index.js CHANGED
@@ -1,54 +1,54 @@
1
1
  'use strict';
2
2
 
3
- var chunkN6IE34HX_js = require('./chunk-N6IE34HX.js');
4
- require('./chunk-7UBDMCI7.js');
5
- var chunkDQTTI6D4_js = require('./chunk-DQTTI6D4.js');
6
- var chunkIN7D2T4R_js = require('./chunk-IN7D2T4R.js');
3
+ var chunkJV6DI7AK_js = require('./chunk-JV6DI7AK.js');
4
+ require('./chunk-CIK6XUOH.js');
5
+ var chunkNKE64XVV_js = require('./chunk-NKE64XVV.js');
6
+ var chunkP6KM7RO5_js = require('./chunk-P6KM7RO5.js');
7
7
  var chunk3ISYPBSX_js = require('./chunk-3ISYPBSX.js');
8
- var chunk3NDRTC7T_js = require('./chunk-3NDRTC7T.js');
8
+ var chunk4GX347MG_js = require('./chunk-4GX347MG.js');
9
9
  require('./chunk-4VNS5WPM.js');
10
10
 
11
11
 
12
12
 
13
13
  Object.defineProperty(exports, "PowerPointViewer", {
14
14
  enumerable: true,
15
- get: function () { return chunkN6IE34HX_js.PowerPointViewer; }
15
+ get: function () { return chunkJV6DI7AK_js.PowerPointViewer; }
16
16
  });
17
17
  Object.defineProperty(exports, "SlideCanvas", {
18
18
  enumerable: true,
19
- get: function () { return chunkN6IE34HX_js.SlideCanvas; }
19
+ get: function () { return chunkJV6DI7AK_js.SlideCanvas; }
20
20
  });
21
21
  Object.defineProperty(exports, "SlideTemplateGalleryDialog", {
22
22
  enumerable: true,
23
- get: function () { return chunkN6IE34HX_js.SlideTemplateGalleryDialog; }
23
+ get: function () { return chunkJV6DI7AK_js.SlideTemplateGalleryDialog; }
24
24
  });
25
25
  Object.defineProperty(exports, "SlideTemplatePreview", {
26
26
  enumerable: true,
27
- get: function () { return chunkN6IE34HX_js.SlideTemplatePreview; }
27
+ get: function () { return chunkJV6DI7AK_js.SlideTemplatePreview; }
28
28
  });
29
29
  Object.defineProperty(exports, "Toolbar", {
30
30
  enumerable: true,
31
- get: function () { return chunkN6IE34HX_js.Toolbar; }
31
+ get: function () { return chunkJV6DI7AK_js.Toolbar; }
32
32
  });
33
33
  Object.defineProperty(exports, "ViewerThemeProvider", {
34
34
  enumerable: true,
35
- get: function () { return chunkN6IE34HX_js.ViewerThemeProvider; }
35
+ get: function () { return chunkJV6DI7AK_js.ViewerThemeProvider; }
36
36
  });
37
37
  Object.defineProperty(exports, "useViewerTheme", {
38
38
  enumerable: true,
39
- get: function () { return chunkN6IE34HX_js.useViewerTheme; }
39
+ get: function () { return chunkJV6DI7AK_js.useViewerTheme; }
40
40
  });
41
41
  Object.defineProperty(exports, "renderToCanvas", {
42
42
  enumerable: true,
43
- get: function () { return chunkDQTTI6D4_js.renderToCanvas; }
43
+ get: function () { return chunkNKE64XVV_js.renderToCanvas; }
44
44
  });
45
45
  Object.defineProperty(exports, "useViewerBuildingBlocks", {
46
46
  enumerable: true,
47
- get: function () { return chunkDQTTI6D4_js.useViewerBuildingBlocks; }
47
+ get: function () { return chunkNKE64XVV_js.useViewerBuildingBlocks; }
48
48
  });
49
49
  Object.defineProperty(exports, "getAnimationInitialStyle", {
50
50
  enumerable: true,
51
- get: function () { return chunkIN7D2T4R_js.getAnimationInitialStyle; }
51
+ get: function () { return chunkP6KM7RO5_js.getAnimationInitialStyle; }
52
52
  });
53
53
  Object.defineProperty(exports, "LOCALE_CATALOG", {
54
54
  enumerable: true,
@@ -56,97 +56,97 @@ Object.defineProperty(exports, "LOCALE_CATALOG", {
56
56
  });
57
57
  Object.defineProperty(exports, "AVATAR_COLOR_SWATCHES", {
58
58
  enumerable: true,
59
- get: function () { return chunk3NDRTC7T_js.AVATAR_COLOR_SWATCHES; }
59
+ get: function () { return chunk4GX347MG_js.AVATAR_COLOR_SWATCHES; }
60
60
  });
61
61
  Object.defineProperty(exports, "DEFAULT_VIEWER_PROFILE", {
62
62
  enumerable: true,
63
- get: function () { return chunk3NDRTC7T_js.DEFAULT_VIEWER_PROFILE; }
63
+ get: function () { return chunk4GX347MG_js.DEFAULT_VIEWER_PROFILE; }
64
64
  });
65
65
  Object.defineProperty(exports, "SLIDE_TEMPLATES", {
66
66
  enumerable: true,
67
- get: function () { return chunk3NDRTC7T_js.SLIDE_TEMPLATES; }
67
+ get: function () { return chunk4GX347MG_js.SLIDE_TEMPLATES; }
68
68
  });
69
69
  Object.defineProperty(exports, "THEME_CATALOG", {
70
70
  enumerable: true,
71
- get: function () { return chunk3NDRTC7T_js.THEME_CATALOG; }
71
+ get: function () { return chunk4GX347MG_js.THEME_CATALOG; }
72
72
  });
73
73
  Object.defineProperty(exports, "VIEWER_PREFS_STORAGE_KEY", {
74
74
  enumerable: true,
75
- get: function () { return chunk3NDRTC7T_js.VIEWER_PREFS_STORAGE_KEY; }
75
+ get: function () { return chunk4GX347MG_js.VIEWER_PREFS_STORAGE_KEY; }
76
76
  });
77
77
  Object.defineProperty(exports, "buildSlideTemplateContent", {
78
78
  enumerable: true,
79
- get: function () { return chunk3NDRTC7T_js.buildSlideTemplateContent; }
79
+ get: function () { return chunk4GX347MG_js.buildSlideTemplateContent; }
80
80
  });
81
81
  Object.defineProperty(exports, "buildSlideTemplateSlide", {
82
82
  enumerable: true,
83
- get: function () { return chunk3NDRTC7T_js.buildSlideTemplateSlide; }
83
+ get: function () { return chunk4GX347MG_js.buildSlideTemplateSlide; }
84
84
  });
85
85
  Object.defineProperty(exports, "clearAllLocalViewerData", {
86
86
  enumerable: true,
87
- get: function () { return chunk3NDRTC7T_js.clearAllLocalViewerData; }
87
+ get: function () { return chunk4GX347MG_js.clearAllLocalViewerData; }
88
88
  });
89
89
  Object.defineProperty(exports, "clearStoredViewerPrefs", {
90
90
  enumerable: true,
91
- get: function () { return chunk3NDRTC7T_js.clearStoredViewerPrefs; }
91
+ get: function () { return chunk4GX347MG_js.clearStoredViewerPrefs; }
92
92
  });
93
93
  Object.defineProperty(exports, "defaultCssVars", {
94
94
  enumerable: true,
95
- get: function () { return chunk3NDRTC7T_js.defaultCssVars; }
95
+ get: function () { return chunk4GX347MG_js.defaultCssVars; }
96
96
  });
97
97
  Object.defineProperty(exports, "defaultRadius", {
98
98
  enumerable: true,
99
- get: function () { return chunk3NDRTC7T_js.defaultRadius; }
99
+ get: function () { return chunk4GX347MG_js.defaultRadius; }
100
100
  });
101
101
  Object.defineProperty(exports, "defaultThemeColors", {
102
102
  enumerable: true,
103
- get: function () { return chunk3NDRTC7T_js.defaultThemeColors; }
103
+ get: function () { return chunk4GX347MG_js.defaultThemeColors; }
104
104
  });
105
105
  Object.defineProperty(exports, "getLocalStorageUsageSummary", {
106
106
  enumerable: true,
107
- get: function () { return chunk3NDRTC7T_js.getLocalStorageUsageSummary; }
107
+ get: function () { return chunk4GX347MG_js.getLocalStorageUsageSummary; }
108
108
  });
109
109
  Object.defineProperty(exports, "readStoredViewerPrefs", {
110
110
  enumerable: true,
111
- get: function () { return chunk3NDRTC7T_js.readStoredViewerPrefs; }
111
+ get: function () { return chunk4GX347MG_js.readStoredViewerPrefs; }
112
112
  });
113
113
  Object.defineProperty(exports, "resolveProfileInitial", {
114
114
  enumerable: true,
115
- get: function () { return chunk3NDRTC7T_js.resolveProfileInitial; }
115
+ get: function () { return chunk4GX347MG_js.resolveProfileInitial; }
116
116
  });
117
117
  Object.defineProperty(exports, "resolveThemeCatalogEntry", {
118
118
  enumerable: true,
119
- get: function () { return chunk3NDRTC7T_js.resolveThemeCatalogEntry; }
119
+ get: function () { return chunk4GX347MG_js.resolveThemeCatalogEntry; }
120
120
  });
121
121
  Object.defineProperty(exports, "saveViewerProfile", {
122
122
  enumerable: true,
123
- get: function () { return chunk3NDRTC7T_js.saveViewerProfile; }
123
+ get: function () { return chunk4GX347MG_js.saveViewerProfile; }
124
124
  });
125
125
  Object.defineProperty(exports, "themeToCssVars", {
126
126
  enumerable: true,
127
- get: function () { return chunk3NDRTC7T_js.themeToCssVars; }
127
+ get: function () { return chunk4GX347MG_js.themeToCssVars; }
128
128
  });
129
129
  Object.defineProperty(exports, "vermilionDarkColors", {
130
130
  enumerable: true,
131
- get: function () { return chunk3NDRTC7T_js.vermilionDarkColors; }
131
+ get: function () { return chunk4GX347MG_js.vermilionDarkColors; }
132
132
  });
133
133
  Object.defineProperty(exports, "vermilionDarkTheme", {
134
134
  enumerable: true,
135
- get: function () { return chunk3NDRTC7T_js.vermilionDarkTheme; }
135
+ get: function () { return chunk4GX347MG_js.vermilionDarkTheme; }
136
136
  });
137
137
  Object.defineProperty(exports, "vermilionLightColors", {
138
138
  enumerable: true,
139
- get: function () { return chunk3NDRTC7T_js.vermilionLightColors; }
139
+ get: function () { return chunk4GX347MG_js.vermilionLightColors; }
140
140
  });
141
141
  Object.defineProperty(exports, "vermilionLightTheme", {
142
142
  enumerable: true,
143
- get: function () { return chunk3NDRTC7T_js.vermilionLightTheme; }
143
+ get: function () { return chunk4GX347MG_js.vermilionLightTheme; }
144
144
  });
145
145
  Object.defineProperty(exports, "vermilionRadius", {
146
146
  enumerable: true,
147
- get: function () { return chunk3NDRTC7T_js.vermilionRadius; }
147
+ get: function () { return chunk4GX347MG_js.vermilionRadius; }
148
148
  });
149
149
  Object.defineProperty(exports, "writeStoredViewerPrefs", {
150
150
  enumerable: true,
151
- get: function () { return chunk3NDRTC7T_js.writeStoredViewerPrefs; }
151
+ get: function () { return chunk4GX347MG_js.writeStoredViewerPrefs; }
152
152
  });
package/dist/index.js.br CHANGED
Binary file
package/dist/index.js.gz CHANGED
Binary file
package/dist/index.mjs CHANGED
@@ -1,7 +1,7 @@
1
- export { PowerPointViewer, SlideCanvas, SlideTemplateGalleryDialog, SlideTemplatePreview, Toolbar, ViewerThemeProvider, useViewerTheme } from './chunk-6ROCCY4M.mjs';
2
- import './chunk-LJZFG6YP.mjs';
3
- export { renderToCanvas, useViewerBuildingBlocks } from './chunk-RUK5XZGO.mjs';
4
- export { getAnimationInitialStyle } from './chunk-ZOOGEDYG.mjs';
1
+ export { PowerPointViewer, SlideCanvas, SlideTemplateGalleryDialog, SlideTemplatePreview, Toolbar, ViewerThemeProvider, useViewerTheme } from './chunk-LDD2UVCV.mjs';
2
+ import './chunk-QI2JCXTH.mjs';
3
+ export { renderToCanvas, useViewerBuildingBlocks } from './chunk-UWYHBCLM.mjs';
4
+ export { getAnimationInitialStyle } from './chunk-Z4CS2ZYN.mjs';
5
5
  export { LOCALE_CATALOG } from './chunk-5YV26HMJ.mjs';
6
- export { AVATAR_COLOR_SWATCHES, DEFAULT_VIEWER_PROFILE, SLIDE_TEMPLATES, THEME_CATALOG, VIEWER_PREFS_STORAGE_KEY, buildSlideTemplateContent, buildSlideTemplateSlide, clearAllLocalViewerData, clearStoredViewerPrefs, defaultCssVars, defaultRadius, defaultThemeColors, getLocalStorageUsageSummary, readStoredViewerPrefs, resolveProfileInitial, resolveThemeCatalogEntry, saveViewerProfile, themeToCssVars, vermilionDarkColors, vermilionDarkTheme, vermilionLightColors, vermilionLightTheme, vermilionRadius, writeStoredViewerPrefs } from './chunk-ENOHLGJ2.mjs';
6
+ export { AVATAR_COLOR_SWATCHES, DEFAULT_VIEWER_PROFILE, SLIDE_TEMPLATES, THEME_CATALOG, VIEWER_PREFS_STORAGE_KEY, buildSlideTemplateContent, buildSlideTemplateSlide, clearAllLocalViewerData, clearStoredViewerPrefs, defaultCssVars, defaultRadius, defaultThemeColors, getLocalStorageUsageSummary, readStoredViewerPrefs, resolveProfileInitial, resolveThemeCatalogEntry, saveViewerProfile, themeToCssVars, vermilionDarkColors, vermilionDarkTheme, vermilionLightColors, vermilionLightTheme, vermilionRadius, writeStoredViewerPrefs } from './chunk-MDFCBYEM.mjs';
7
7
  import './chunk-XGB3TDIC.mjs';
package/dist/index.mjs.br CHANGED
Binary file
package/dist/index.mjs.gz CHANGED
Binary file
@@ -8611,6 +8611,33 @@ interface MorphTransitionPlan {
8611
8611
  incomingImageAnimations: Map<string, string>;
8612
8612
  /** Outgoing (ghost) counterpart of {@link MorphTransitionPlan.incomingImageAnimations}. */
8613
8613
  outgoingImageAnimations: Map<string, string>;
8614
+ /**
8615
+ * Incoming-slide element id -> CSS `animation` shorthand for the copy the
8616
+ * overlay paints, above every ghost.
8617
+ *
8618
+ * These are the arriving shapes a ghost would otherwise hide for the whole
8619
+ * transition (see {@link MorphTransitionPlan.overlayIncomingElements}). Their
8620
+ * entry in {@link MorphTransitionPlan.incomingAnimations} has been replaced
8621
+ * by one that holds them invisible, so the stage copy stays out of the way
8622
+ * and only this one is seen.
8623
+ */
8624
+ overlayIncomingAnimations: Map<string, string>;
8625
+ /**
8626
+ * The incoming-slide elements to paint in the overlay ON TOP of
8627
+ * {@link MorphTransitionPlan.outgoingElements}, in document order.
8628
+ *
8629
+ * The overlay is one flat layer above the live stage, which is only faithful
8630
+ * while every ghost really does belong on top of everything the stage draws.
8631
+ * A shape arriving INSIDE a persisting one does not: the wheel deck's centre
8632
+ * disc is unchanged between slides, so its ghost is opaque for the whole
8633
+ * morph, and the title and body dissolving in within it were invisible until
8634
+ * the overlay came down (issue #146). Painting those here restores the order
8635
+ * PowerPoint composites in.
8636
+ *
8637
+ * Usually empty. A binding renders these with the INCOMING slide as their
8638
+ * context, applying {@link MorphTransitionPlan.overlayIncomingAnimations}.
8639
+ */
8640
+ overlayIncomingElements: PptxElement[];
8614
8641
  /**
8615
8642
  * The outgoing slide's elements, in document order, for the binding to
8616
8643
  * render in its transition overlay for the duration of the morph. Each one