@aixa-transformation/pptx-viewer 2.0.24 → 2.0.29

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.
@@ -1,6 +1,6 @@
1
- import { SHAPE_PRESET_DEFS, TOOLBAR_TABS, computeValueRangeForChart, getAnimationInitialStyle, computeVirtualRange, DEFAULT_VIRTUAL_OVERSCAN, BROADCAST_THROTTLE_MS, createSyncGate, validateRoomId, resolveTransportForServerUrl, isMixedContentBlocked, CONNECTION_TIMEOUT_MS, sanitizeColor, cloneTemplateElementsBySlideId, cloneSlide, PresentationAnimationController, computeEntranceAnimationDelay, PRESENTATION_HASH, PRESENTATION_NONCE_KEY, PRESENTATION_CHANNEL_NAME, swapPresentationWindows, PRESENTATION_MESSAGE_ORIGIN, clearAudienceContent, buildPresentationAudienceUrl, resolveAudienceScreenPlacement, placeAudienceWindow, storeAudienceContent, isPresentationSessionMessage, collectMediaElements, collectImagePaths, buildInitialGuides, saveAutosaveSnapshot, normalizeHexColor, toCssWritingMode, toCssTextOrientation, toCssVerticalDirection, computeAutoFitTextStyle, resolveLineHeight, getKinsokuLineBreakStyles, buildTextBody3DSceneStyle, resolveParagraphRtl, resolveParagraphAlign, resolveCssTextAlign, colorWithOpacity, build3DExtrusionData, getResolvedShapeClipPath, normalizeStrokeDashType, buildCssGradientFromShapeStyle, buildShadowCssFromShapeStyle, buildInnerShadowCssFromShapeStyle, buildMultiLayerShadowCss, buildGlowBoxShadow, getCompoundLineBoxShadow, getSoftEdgeFilterId, getEffectDagFilter, buildPatternFillCss, buildReflectionCss, getCssBorderDashStyle, getCompoundLineBorderWidth, getSvgStrokeDasharray, svgLineCap, getCompoundLineOffsets, getCompoundLineWidths, clampCropValue, computeSelectionRect, rectToCells, isCellInRect, buildChartViewModel, buildPreviewAnimation, isTemplateElementId, getInlineEditorSelection, applyStyleToSelectedSegments, setPendingSelectionRestore, applyCaseTransformToSegments, transformTextCase, addSection, renameSection, deleteSection, moveSectionUp, moveSectionDown, moveSlidesToSection, normalizeColorsForCapture, preprocessCssForCapture, slideProgressPercent, slideStatusLabel, EXPORT_ASSEMBLING_PERCENT, EXPORT_DONE_PERCENT, isExportAbortError, recordProgressPercent, comparePresentation, applyAcceptSlide, applyAcceptAllSlides, collectUsedFonts, detectTouchDevice, detectOrientation, isMobileViewport, MOBILE_BREAKPOINT, TABLET_BREAKPOINT, remapTextToSegments, shouldLoopContinuously, applyRehearsalTimings, copyFormatFromElement, applyFormatToElement, createViewerOptionsStore, readSlidesFromYDoc, reconcileSlidesInYDoc, LOCAL_SYNC_ORIGIN, observeYDocSlides, shouldAutoFollowBroadcaster, createTouchGestureRecognizer, isKeyboardOpen, openPptxFile, readBackstageRecentFile, isActionHidden, buildElementClipboardPayload, generatePackageReadme, downloadBlob, groupElements, generateElementId, makeCloneId, alignElements, distributeElements, bringForward, sendBackward, bringToFront, sendToBack, newTableElement, createDefaultChartElement, readViewportMetrics, computeKeyboardInset, derivePresenceList, buildPrintDocument, buildOutlineHtml, buildSlidesHtml, buildNotesHtml, buildHandoutsHtml, createBlankSlide, makeSlideId, cloneHistorySnapshot, createPresentationSessionId, resolveTransitionDurationMs, isUrlSafe, createPresenterTimer, createInitialPresentationSnapshot, mergePresentationSnapshot, presenterElapsed, stepPresenterZoom, resetPresenterTimer, togglePresenterTimer, isTemplateElement, substituteFieldText, resolveUnderlineDecorationStyle, hasDistinctScriptFonts, buildTextReflectionCss, getTextAlphaOpacity, buildTextRunFilterChain, buildTextShadowCss, TEXT_BUILD_ID_SEP, apply3dEffects, clampUnitInterval, getRoundRectRadiusPx, computeColumnBoundaries, parseDrawingColor, parseDrawingColorOpacity, getCellDiagonalBorders, getPatternSvg, ooxmlDashToCssBorderStyle, cell3DBevelCss, getChartStylePalette, computeLayout, valueToY, formatAxisValue, computeLayoutOptions, splitSeriesByAxis, computeValueRange, getSecondaryValueAxis, seriesColor, paletteColor, resolveRegionCode, normalizeValue, sequentialColorScale, canvasToJpegData, downloadDataUrl, pickSupportedMimeType, WEBM_MIME_CANDIDATES, fpsToFrameIntervalMs, segmentFrameCount, sanitizeDownloadFilename, encodeGif, groupSlidesBySection, hasCopyableFormat, createBackstagePresentation, cloneElementForPaste, computeScrollDelta, rerouteConnectorsForMovedElements, applyReroutedConnectors, buildPrintHtmlDocument, parseMediaCommand, convertOmmlToMathMl, sanitizeMathMl, buildTextFillCss, resolvePictureBullet, computeResizedColumnWidths, computeResizedRowHeight, DEFAULT_ROW_HEIGHT, resolveFontRefIdx, tintColor2, shadeColor2, deleteTableColumn, insertTableColumn, deleteTableRow, insertTableRow, splitCell, mergeCells, buildSlidesPdfBytes, buildNotesPdfBytes, isPpactionUrl, parsePpactionUrl, safeOpenUrl, ACTION_BUTTON_PRESETS, buildSmartArtPresetData, computeSnapToShape, computeMarqueeHitIds, mergeAdditiveSelection, segmentByScript, resolveFontForScript, generateLogTicks, formatAxisValueWithUnits, getDisplayUnitLabel, applyResize, snapBoxToGrid, hexToRgbChannels, chartPartToAttrs } from './chunk-45A3IISI.mjs';
1
+ import { SHAPE_PRESET_DEFS, TOOLBAR_TABS, computeValueRangeForChart, getAnimationInitialStyle, computeVirtualRange, DEFAULT_VIRTUAL_OVERSCAN, BROADCAST_THROTTLE_MS, createSyncGate, validateRoomId, resolveTransportForServerUrl, isMixedContentBlocked, CONNECTION_TIMEOUT_MS, sanitizeColor, cloneTemplateElementsBySlideId, cloneSlide, PresentationAnimationController, computeEntranceAnimationDelay, PRESENTATION_HASH, PRESENTATION_NONCE_KEY, PRESENTATION_CHANNEL_NAME, swapPresentationWindows, PRESENTATION_MESSAGE_ORIGIN, clearAudienceContent, buildPresentationAudienceUrl, resolveAudienceScreenPlacement, placeAudienceWindow, storeAudienceContent, isPresentationSessionMessage, collectMediaElements, collectImagePaths, buildInitialGuides, saveAutosaveSnapshot, normalizeHexColor, toCssWritingMode, toCssTextOrientation, toCssVerticalDirection, computeAutoFitTextStyle, resolveLineHeight, getKinsokuLineBreakStyles, buildTextBody3DSceneStyle, resolveParagraphRtl, resolveParagraphAlign, resolveCssTextAlign, colorWithOpacity, build3DExtrusionData, getResolvedShapeClipPath, normalizeStrokeDashType, buildCssGradientFromShapeStyle, buildShadowCssFromShapeStyle, buildInnerShadowCssFromShapeStyle, buildMultiLayerShadowCss, buildGlowBoxShadow, getCompoundLineBoxShadow, getSoftEdgeFilterId, getEffectDagFilter, buildPatternFillCss, buildReflectionCss, getCssBorderDashStyle, getCompoundLineBorderWidth, getSvgStrokeDasharray, svgLineCap, getCompoundLineOffsets, getCompoundLineWidths, clampCropValue, computeSelectionRect, rectToCells, isCellInRect, buildChartViewModel, buildPreviewAnimation, isTemplateElementId, getInlineEditorSelection, applyStyleToSelectedSegments, setPendingSelectionRestore, applyCaseTransformToSegments, transformTextCase, addSection, renameSection, deleteSection, moveSectionUp, moveSectionDown, moveSlidesToSection, normalizeColorsForCapture, preprocessCssForCapture, slideProgressPercent, slideStatusLabel, EXPORT_ASSEMBLING_PERCENT, EXPORT_DONE_PERCENT, isExportAbortError, recordProgressPercent, comparePresentation, applyAcceptSlide, applyAcceptAllSlides, collectUsedFonts, detectTouchDevice, detectOrientation, isMobileViewport, MOBILE_BREAKPOINT, TABLET_BREAKPOINT, remapTextToSegments, shouldLoopContinuously, applyRehearsalTimings, copyFormatFromElement, applyFormatToElement, createViewerOptionsStore, readSlidesFromYDoc, reconcileSlidesInYDoc, LOCAL_SYNC_ORIGIN, observeYDocSlides, shouldAutoFollowBroadcaster, createTouchGestureRecognizer, isKeyboardOpen, openPptxFile, readBackstageRecentFile, isActionHidden, buildElementClipboardPayload, generatePackageReadme, downloadBlob, groupElements, generateElementId, makeCloneId, alignElements, distributeElements, bringForward, sendBackward, bringToFront, sendToBack, newTableElement, createDefaultChartElement, readViewportMetrics, computeKeyboardInset, derivePresenceList, buildPrintDocument, buildOutlineHtml, buildSlidesHtml, buildNotesHtml, buildHandoutsHtml, createBlankSlide, makeSlideId, cloneHistorySnapshot, createPresentationSessionId, resolveTransitionDurationMs, isUrlSafe, createPresenterTimer, createInitialPresentationSnapshot, mergePresentationSnapshot, presenterElapsed, stepPresenterZoom, resetPresenterTimer, togglePresenterTimer, isTemplateElement, substituteFieldText, resolveUnderlineDecorationStyle, hasDistinctScriptFonts, buildTextReflectionCss, getTextAlphaOpacity, buildTextRunFilterChain, buildTextShadowCss, TEXT_BUILD_ID_SEP, apply3dEffects, clampUnitInterval, getRoundRectRadiusPx, computeColumnBoundaries, parseDrawingColor, parseDrawingColorOpacity, getCellDiagonalBorders, getPatternSvg, ooxmlDashToCssBorderStyle, cell3DBevelCss, getChartStylePalette, computeLayout, valueToY, formatAxisValue, computeLayoutOptions, splitSeriesByAxis, computeValueRange, getSecondaryValueAxis, seriesColor, paletteColor, resolveRegionCode, normalizeValue, sequentialColorScale, canvasToJpegData, downloadDataUrl, pickSupportedMimeType, WEBM_MIME_CANDIDATES, fpsToFrameIntervalMs, segmentFrameCount, sanitizeDownloadFilename, encodeGif, groupSlidesBySection, hasCopyableFormat, createBackstagePresentation, cloneElementForPaste, computeScrollDelta, rerouteConnectorsForMovedElements, applyReroutedConnectors, buildPrintHtmlDocument, parseMediaCommand, convertOmmlToMathMl, sanitizeMathMl, buildTextFillCss, resolvePictureBullet, computeResizedColumnWidths, computeResizedRowHeight, DEFAULT_ROW_HEIGHT, resolveFontRefIdx, tintColor2, shadeColor2, deleteTableColumn, insertTableColumn, deleteTableRow, insertTableRow, splitCell, mergeCells, buildSlidesPdfBytes, buildNotesPdfBytes, isPpactionUrl, parsePpactionUrl, safeOpenUrl, ACTION_BUTTON_PRESETS, buildSmartArtPresetData, computeSnapToShape, computeMarqueeHitIds, mergeAdditiveSelection, segmentByScript, resolveFontForScript, generateLogTicks, formatAxisValueWithUnits, getDisplayUnitLabel, applyResize, snapBoxToGrid, hexToRgbChannels, chartPartToAttrs } from './chunk-YVQPLQ3C.mjs';
2
2
  import { translationsEn } from './chunk-2X72MOPZ.mjs';
3
- import { PptxHandler, EncryptedFileError, hasTextProperties, hasShapeProperties, isImageLikeElement, isCalloutShape, getCalloutLeaderLineGeometry, buildCalloutLeaderLineSvgPath, getCalloutViewBoxBounds, applyThemeToData, THEME_PRESETS, themeColorSchemesEqual, guidePxToEmu, mergeShapes, buildThemeColorMap, reResolveSlideColors, getSubstituteFontFamily, evaluatePresetShape, customGeometryPathsToSvgSubpaths, getPresetShapeClipPath, svgPathToPolygons, polygonsToSvgPath, SvgExporter, rebuildTableStructureInRawXml, updateCellTextStyleInRawXml, updateCellTextInRawXml, updateMergeAttrsInRawXml, elementActionToPptxAction } from './chunk-LTBO2ZJC.mjs';
3
+ import { PptxHandler, EncryptedFileError, hasTextProperties, hasShapeProperties, isImageLikeElement, isCalloutShape, getCalloutLeaderLineGeometry, buildCalloutLeaderLineSvgPath, getCalloutViewBoxBounds, applyThemeToData, THEME_PRESETS, themeColorSchemesEqual, guidePxToEmu, mergeShapes, buildThemeColorMap, reResolveSlideColors, getSubstituteFontFamily, evaluatePresetShape, customGeometryPathsToSvgSubpaths, getPresetShapeClipPath, svgPathToPolygons, polygonsToSvgPath, SvgExporter, rebuildTableStructureInRawXml, updateCellTextStyleInRawXml, updateCellTextInRawXml, updateMergeAttrsInRawXml, elementActionToPptxAction } from './chunk-JJ5MVLCK.mjs';
4
4
  import React4, { useState, useEffect, useMemo, Suspense, useRef, useCallback, useSyncExternalStore, useImperativeHandle, useLayoutEffect } from 'react';
5
5
  import { LuTriangle, LuPlus, LuMoveRight, LuMinus, LuDiamond, LuDatabase, LuCircle, LuSquare } from 'react-icons/lu';
6
6
  import { clsx } from 'clsx';
@@ -5037,6 +5037,7 @@ function renderSingleSegment(element, segment, segmentIndex, fallbackColor, find
5037
5037
 
5038
5038
  // src/viewer/utils/text-paragraph-spacing.ts
5039
5039
  var PT_TO_PX = 96 / 72;
5040
+ var DRAWINGML_SINGLE_LINE_HEIGHT = 1.2;
5040
5041
  function resolveParagraphSpacing(input) {
5041
5042
  const { paraProps, bodyStyle, isFirst, isLast, spaceFirstLast } = input;
5042
5043
  const result = {};
@@ -5055,7 +5056,7 @@ function resolveParagraphSpacing(input) {
5055
5056
  if (typeof exactPt === "number" && exactPt > 0) {
5056
5057
  result.lineHeight = `${exactPt * PT_TO_PX}px`;
5057
5058
  } else if (typeof multiplier === "number" && multiplier > 0) {
5058
- result.lineHeight = multiplier;
5059
+ result.lineHeight = multiplier * DRAWINGML_SINGLE_LINE_HEIGHT;
5059
5060
  }
5060
5061
  return result;
5061
5062
  }
@@ -5065,7 +5066,22 @@ function groupSegmentsIntoParagraphs(segments) {
5065
5066
  for (let i = 0; i < segments.length; i++) {
5066
5067
  const seg = segments[i];
5067
5068
  if (seg.text === "\n") {
5068
- paragraphs.push(current);
5069
+ const currentHasVisibleContent = current.some(
5070
+ ({ segment }) => Boolean(segment.text && segment.text.trim().length > 0)
5071
+ );
5072
+ if (!currentHasVisibleContent && paragraphs.length === 0) {
5073
+ current = [];
5074
+ continue;
5075
+ }
5076
+ if (current.length === 0 && paragraphs.length > 0) {
5077
+ current.push({
5078
+ segment: { ...seg, text: "" },
5079
+ globalIndex: i
5080
+ });
5081
+ }
5082
+ if (current.length > 0) {
5083
+ paragraphs.push(current);
5084
+ }
5069
5085
  current = [];
5070
5086
  } else {
5071
5087
  current.push({ segment: seg, globalIndex: i });
@@ -5074,6 +5090,11 @@ function groupSegmentsIntoParagraphs(segments) {
5074
5090
  if (current.length > 0 || paragraphs.length === 0) {
5075
5091
  paragraphs.push(current);
5076
5092
  }
5093
+ while (paragraphs.length > 1 && !paragraphs[paragraphs.length - 1].some(
5094
+ ({ segment }) => !segment.bulletInfo && Boolean(segment.text && segment.text.trim().length > 0)
5095
+ )) {
5096
+ paragraphs.pop();
5097
+ }
5077
5098
  return paragraphs;
5078
5099
  }
5079
5100
  function renderTextSegments(element, fallbackColor, emptyFallback, findHighlights, onHyperlinkClick, fieldContext, subElementAnimStates, segmentOverrides, requireCtrlClick) {
@@ -5135,6 +5156,7 @@ function renderTextSegments(element, fallbackColor, emptyFallback, findHighlight
5135
5156
  ...firstSeg?.segment.style,
5136
5157
  ...paraProps
5137
5158
  };
5159
+ const paragraphAutoFitScale = typeof element.textStyle?.autoFitFontScale === "number" && element.textStyle.autoFitFontScale > 0 && element.textStyle.autoFitFontScale < 1 ? element.textStyle.autoFitFontScale : 1;
5138
5160
  const spacing = resolveParagraphSpacing({
5139
5161
  paraProps: effectiveParaProps,
5140
5162
  bodyStyle,
@@ -5142,10 +5164,27 @@ function renderTextSegments(element, fallbackColor, emptyFallback, findHighlight
5142
5164
  isLast: paraIndex === paragraphs.length - 1,
5143
5165
  spaceFirstLast
5144
5166
  });
5167
+ const hasAuthoredParagraphLineSpacing = paraProps?.lineSpacing !== void 0 || paraProps?.lineSpacingExactPt !== void 0;
5168
+ if (!hasAuthoredParagraphLineSpacing) {
5169
+ if (typeof spacing.marginTop === "number") {
5170
+ spacing.marginTop *= paragraphAutoFitScale;
5171
+ }
5172
+ if (typeof spacing.marginBottom === "number") {
5173
+ spacing.marginBottom *= paragraphAutoFitScale;
5174
+ }
5175
+ }
5176
+ const autoFitLineSpacingReduction = element.textStyle?.autoFitLineSpacingReduction;
5177
+ if (typeof spacing.lineHeight === "number" && typeof autoFitLineSpacingReduction === "number" && autoFitLineSpacingReduction > 0) {
5178
+ spacing.lineHeight = Math.max(1, spacing.lineHeight - autoFitLineSpacingReduction);
5179
+ }
5145
5180
  const hasParaSpacing = spacing.marginTop !== void 0 || spacing.marginBottom !== void 0 || spacing.lineHeight !== void 0;
5146
5181
  const paraStyle = {
5147
5182
  ...paraKinsokuStyle
5148
5183
  };
5184
+ const paragraphFontSize = typeof effectiveParaProps.fontSize === "number" ? effectiveParaProps.fontSize * paragraphAutoFitScale : void 0;
5185
+ if (typeof paragraphFontSize === "number" && Number.isFinite(paragraphFontSize) && paragraphFontSize > 0) {
5186
+ paraStyle.fontSize = paragraphFontSize;
5187
+ }
5149
5188
  if (spacing.marginTop !== void 0) {
5150
5189
  paraStyle.marginTop = spacing.marginTop;
5151
5190
  }
@@ -5193,10 +5232,11 @@ function renderTextSegments(element, fallbackColor, emptyFallback, findHighlight
5193
5232
  hasBullet && globalIndex === firstSeg.globalIndex ? Math.max(0, -(rawTextIndent ?? 0)) : void 0
5194
5233
  )
5195
5234
  );
5235
+ const isAuthoredEmptyParagraph = paraSegments.length > 0 && paraSegments.every(({ segment }) => !segment.text || segment.text.trim().length === 0);
5196
5236
  const wrappedContent = wrapWithTextBuildAnimation(
5197
5237
  element.id,
5198
5238
  paraIndex,
5199
- renderedSegments,
5239
+ isAuthoredEmptyParagraph ? [/* @__PURE__ */ jsx("br", {}, `${element.id}-empty-${paraIndex}`)] : renderedSegments,
5200
5240
  paraSegments,
5201
5241
  subElementAnimStates
5202
5242
  );
@@ -6257,7 +6297,11 @@ function getImageRenderStyle(element) {
6257
6297
  ...maskStyle,
6258
6298
  width: "100%",
6259
6299
  height: "100%",
6260
- objectFit: "cover"
6300
+ // DrawingML's default `a:stretch/a:fillRect` maps the complete bitmap
6301
+ // into the picture frame. Cropping is represented explicitly by
6302
+ // `a:srcRect`; using CSS `cover` here introduced an extra implicit crop
6303
+ // whenever the frame and bitmap aspect ratios differed slightly.
6304
+ objectFit: "fill"
6261
6305
  };
6262
6306
  }
6263
6307
  const safeHorizontalScale = cropLeft + cropRight >= 0.99 ? 0.99 / (cropLeft + cropRight) : 1;
@@ -7484,7 +7528,7 @@ function renderTableFromTableData(element, textStyle, options) {
7484
7528
  "div",
7485
7529
  {
7486
7530
  className: cn(
7487
- "w-full h-full overflow-hidden",
7531
+ "w-full h-full overflow-visible",
7488
7532
  isEditable2 && hasCellSelectionHandler ? "pointer-events-auto" : "pointer-events-none"
7489
7533
  ),
7490
7534
  children: /* @__PURE__ */ jsxs("table", { className: "w-full h-full border-collapse table-fixed", children: [
@@ -7635,7 +7679,7 @@ function renderTableElement(element, textStyle, options) {
7635
7679
  "div",
7636
7680
  {
7637
7681
  className: cn(
7638
- "w-full h-full overflow-hidden",
7682
+ "w-full h-full overflow-visible",
7639
7683
  isEditable2 && hasCellSelectionHandler ? "pointer-events-auto" : "pointer-events-none"
7640
7684
  ),
7641
7685
  children: /* @__PURE__ */ jsxs("table", { className: "w-full h-full border-collapse table-fixed", children: [
@@ -9602,7 +9646,7 @@ function FailedToLoad() {
9602
9646
  var LazySurfaceChart3DScene = React4.lazy(
9603
9647
  async () => {
9604
9648
  try {
9605
- return await import('./SurfaceChart3DScene-GIAS6HZ7.mjs');
9649
+ return await import('./SurfaceChart3DScene-ZZYDRV5N.mjs');
9606
9650
  } catch {
9607
9651
  return { default: FailedToLoad };
9608
9652
  }
@@ -11800,6 +11844,16 @@ function renderMediaElement(element, mediaDataUrls, options) {
11800
11844
  }
11801
11845
  if (element.mediaMissing) {
11802
11846
  if (posterUrl) {
11847
+ if (isPresentationMode) {
11848
+ return /* @__PURE__ */ jsx(
11849
+ "img",
11850
+ {
11851
+ src: posterUrl,
11852
+ alt: translationsEn["pptx.media.posterAlt"],
11853
+ className: "w-full h-full object-contain pointer-events-none"
11854
+ }
11855
+ );
11856
+ }
11803
11857
  return /* @__PURE__ */ jsxs("div", { className: "w-full h-full relative pointer-events-none", children: [
11804
11858
  /* @__PURE__ */ jsx(
11805
11859
  "img",
@@ -16443,6 +16497,7 @@ function useSerialize(input) {
16443
16497
  tagCollections,
16444
16498
  notesMaster,
16445
16499
  handoutMaster,
16500
+ embeddedFonts,
16446
16501
  handlerRef,
16447
16502
  inlineEditingElementIdRef,
16448
16503
  inlineEditingTextRef,
@@ -16496,7 +16551,8 @@ function useSerialize(input) {
16496
16551
  customProperties: customProperties.length > 0 ? customProperties : void 0,
16497
16552
  tags: tagCollections.length > 0 ? tagCollections : void 0,
16498
16553
  notesMaster,
16499
- handoutMaster
16554
+ handoutMaster,
16555
+ embeddedFonts: embeddedFonts.length > 0 ? embeddedFonts : void 0
16500
16556
  };
16501
16557
  if (password) {
16502
16558
  return handler.saveEncrypted(slidesToSave, password, saveOptions);
@@ -16515,6 +16571,7 @@ function useSerialize(input) {
16515
16571
  tagCollections,
16516
16572
  notesMaster,
16517
16573
  handoutMaster,
16574
+ embeddedFonts,
16518
16575
  guides,
16519
16576
  activeSlideIndex,
16520
16577
  handlerRef,
@@ -17249,6 +17306,7 @@ function useContentLifecycle(input) {
17249
17306
  tagCollections: state.tagCollections,
17250
17307
  notesMaster: state.notesMaster,
17251
17308
  handoutMaster: state.handoutMaster,
17309
+ embeddedFonts: state.embeddedFonts,
17252
17310
  handlerRef,
17253
17311
  inlineEditingElementIdRef: state.inlineEditingElementIdRef,
17254
17312
  inlineEditingTextRef: state.inlineEditingTextRef,
@@ -17735,7 +17793,7 @@ function useViewerIntegration(input) {
17735
17793
  if (onDirtyChange) {
17736
17794
  onDirtyChange(state.isDirty);
17737
17795
  }
17738
- }, [state.isDirty, onDirtyChange]);
17796
+ }, [state.isDirty, state.slides, state.embeddedFonts, onDirtyChange]);
17739
17797
  useEffect(() => {
17740
17798
  if (onActiveSlideChange) {
17741
17799
  onActiveSlideChange(activeSlideIndex);
@@ -17934,7 +17992,7 @@ function useYjsDocumentSync({
17934
17992
  return;
17935
17993
  }
17936
17994
  try {
17937
- const { PptxHandler: PptxHandler2 } = await import('./dist-DPZ5B7L7.mjs');
17995
+ const { PptxHandler: PptxHandler2 } = await import('./dist-RTG3TU65.mjs');
17938
17996
  const handler = new PptxHandler2();
17939
17997
  await handler.load(sourceBytes.buffer);
17940
17998
  const currentSlides = readSlidesFromYDoc(
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var chunkHUD73YBT_js = require('./chunk-HUD73YBT.js');
3
+ var chunkN7OHVHBS_js = require('./chunk-N7OHVHBS.js');
4
4
  var DOMPurify = require('dompurify');
5
5
 
6
6
  function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
@@ -238,7 +238,7 @@ function resolveThemeCatalogEntry(key, catalog = THEME_CATALOG) {
238
238
  return catalog.find((entry) => entry.key === key)?.theme;
239
239
  }
240
240
  function corePreset(id) {
241
- const preset = chunkHUD73YBT_js.THEME_PRESETS.find((p) => p.id === id);
241
+ const preset = chunkN7OHVHBS_js.THEME_PRESETS.find((p) => p.id === id);
242
242
  if (!preset) {
243
243
  throw new Error(`theme-gallery-presets: core THEME_PRESETS is missing "${id}"`);
244
244
  }
@@ -414,7 +414,7 @@ function buildInitialGuides(presentationGuides, firstSlideGuides) {
414
414
  guides.push({
415
415
  id: g.id,
416
416
  axis: g.orientation === "horz" ? "h" : "v",
417
- position: chunkHUD73YBT_js.guideEmuToPx(g.positionEmu)
417
+ position: chunkN7OHVHBS_js.guideEmuToPx(g.positionEmu)
418
418
  });
419
419
  }
420
420
  }
@@ -423,7 +423,7 @@ function buildInitialGuides(presentationGuides, firstSlideGuides) {
423
423
  guides.push({
424
424
  id: g.id,
425
425
  axis: g.orientation === "horz" ? "h" : "v",
426
- position: chunkHUD73YBT_js.guideEmuToPx(g.positionEmu)
426
+ position: chunkN7OHVHBS_js.guideEmuToPx(g.positionEmu)
427
427
  });
428
428
  }
429
429
  }
@@ -436,23 +436,23 @@ function getResolvedShapeClipPathFor(shapeType, width, height, adjustments) {
436
436
  return void 0;
437
437
  }
438
438
  if (!Number.isFinite(width) || !Number.isFinite(height) || width <= 0 || height <= 0) {
439
- return chunkHUD73YBT_js.getShapeClipPath(shapeType);
439
+ return chunkN7OHVHBS_js.getShapeClipPath(shapeType);
440
440
  }
441
441
  if (adjustments && Object.keys(adjustments).length > 0) {
442
- const adjusted = chunkHUD73YBT_js.getAdjustmentAwareShapeClipPath(shapeType, width, height, adjustments);
442
+ const adjusted = chunkN7OHVHBS_js.getAdjustmentAwareShapeClipPath(shapeType, width, height, adjustments);
443
443
  if (adjusted !== void 0) {
444
444
  return adjusted;
445
445
  }
446
446
  }
447
- const fromPreset = chunkHUD73YBT_js.getShapeClipPathFromPreset(shapeType, width, height, adjustments);
447
+ const fromPreset = chunkN7OHVHBS_js.getShapeClipPathFromPreset(shapeType, width, height, adjustments);
448
448
  if (fromPreset !== void 0) {
449
449
  return fromPreset;
450
450
  }
451
- const cloud = chunkHUD73YBT_js.getCloudPathForRendering(shapeType, width, height);
451
+ const cloud = chunkN7OHVHBS_js.getCloudPathForRendering(shapeType, width, height);
452
452
  if (cloud !== void 0) {
453
453
  return cloud;
454
454
  }
455
- return chunkHUD73YBT_js.getShapeClipPath(shapeType);
455
+ return chunkN7OHVHBS_js.getShapeClipPath(shapeType);
456
456
  }
457
457
  function buildCustomGeometryClipPath(pathData, pathWidth, pathHeight, elemWidth, elemHeight) {
458
458
  if (!pathData || !Number.isFinite(pathWidth) || !Number.isFinite(pathHeight) || pathWidth <= 0 || pathHeight <= 0 || !Number.isFinite(elemWidth) || !Number.isFinite(elemHeight) || elemWidth <= 0 || elemHeight <= 0) {
@@ -1101,7 +1101,7 @@ var OOXML_PATTERN_PRESETS = [
1101
1101
  "zigZag"
1102
1102
  ];
1103
1103
  function getComputedFillStyle(element, parentGroupFill) {
1104
- if (!chunkHUD73YBT_js.hasShapeProperties(element)) {
1104
+ if (!chunkN7OHVHBS_js.hasShapeProperties(element)) {
1105
1105
  return void 0;
1106
1106
  }
1107
1107
  const ss = element.shapeStyle;
@@ -1170,7 +1170,7 @@ function getGroupChildParentFill(group) {
1170
1170
  return group.type === "group" ? group.groupFill : void 0;
1171
1171
  }
1172
1172
  function resolveGroupChildFill(child2, parentGroupFill) {
1173
- if (!parentGroupFill || !chunkHUD73YBT_js.hasShapeProperties(child2) || child2.shapeStyle?.fillMode !== "group") {
1173
+ if (!parentGroupFill || !chunkN7OHVHBS_js.hasShapeProperties(child2) || child2.shapeStyle?.fillMode !== "group") {
1174
1174
  return void 0;
1175
1175
  }
1176
1176
  return getComputedFillStyle(child2, parentGroupFill);
@@ -1373,7 +1373,7 @@ var DEFAULT_SCHEME_COLOR_MAP = {
1373
1373
  phclr: "#4472C4"
1374
1374
  };
1375
1375
  function applyDrawingColorTransforms2(baseColor, colorNode) {
1376
- return chunkHUD73YBT_js.applyDrawingColorTransforms(baseColor, colorNode);
1376
+ return chunkN7OHVHBS_js.applyDrawingColorTransforms(baseColor, colorNode);
1377
1377
  }
1378
1378
  function parseDrawingColorChoice(colorNode, schemeColorOverrides) {
1379
1379
  if (!colorNode) {
@@ -1425,7 +1425,7 @@ function parseDrawingColorChoice(colorNode, schemeColorOverrides) {
1425
1425
  const h = hueRaw / 6e4;
1426
1426
  const s = clampUnitInterval(satRaw / 1e5);
1427
1427
  const l = clampUnitInterval(lumRaw / 1e5);
1428
- const rgb = chunkHUD73YBT_js.hslToRgb(h, s, l);
1428
+ const rgb = chunkN7OHVHBS_js.hslToRgb(h, s, l);
1429
1429
  const toHex2 = (value) => Math.min(255, Math.max(0, Math.round(value))).toString(16).padStart(2, "0").toUpperCase();
1430
1430
  const base = `#${toHex2(rgb.r)}${toHex2(rgb.g)}${toHex2(rgb.b)}`;
1431
1431
  return applyDrawingColorTransforms2(base, hslNode);
@@ -1435,7 +1435,7 @@ function parseDrawingColorChoice(colorNode, schemeColorOverrides) {
1435
1435
  const preset = String(
1436
1436
  colorNode["a:prstClr"]?.["@_val"] || ""
1437
1437
  ).toLowerCase();
1438
- const mapped = chunkHUD73YBT_js.PRESET_COLOR_MAP[preset];
1438
+ const mapped = chunkN7OHVHBS_js.PRESET_COLOR_MAP[preset];
1439
1439
  if (!mapped) {
1440
1440
  return void 0;
1441
1441
  }
@@ -1978,7 +1978,7 @@ function hexToRgbUnit2(hex) {
1978
1978
  };
1979
1979
  }
1980
1980
  function getEffects(element) {
1981
- if (!chunkHUD73YBT_js.isImageLikeElement(element)) {
1981
+ if (!chunkN7OHVHBS_js.isImageLikeElement(element)) {
1982
1982
  return void 0;
1983
1983
  }
1984
1984
  return element.imageEffects;
@@ -2167,7 +2167,7 @@ function buildDuotoneFilterMarkup(color1, color2) {
2167
2167
  const c2 = hexToRgbUnit2(color2);
2168
2168
  return `<feColorMatrix type="matrix" values="${GRAYSCALE_LUMINANCE_MATRIX}"/><feComponentTransfer><feFuncR type="linear" slope="${c2.r - c1.r}" intercept="${c1.r}"/><feFuncG type="linear" slope="${c2.g - c1.g}" intercept="${c1.g}"/><feFuncB type="linear" slope="${c2.b - c1.b}" intercept="${c1.b}"/></feComponentTransfer>`;
2169
2169
  }
2170
- function getDuotoneImageFilter(element, elementId = chunkHUD73YBT_js.isImageLikeElement(element) ? element.id : "") {
2170
+ function getDuotoneImageFilter(element, elementId = chunkN7OHVHBS_js.isImageLikeElement(element) ? element.id : "") {
2171
2171
  const effects = getEffects(element);
2172
2172
  if (!effects?.duotone) {
2173
2173
  return void 0;
@@ -2269,7 +2269,7 @@ function buildImageAlphaFilterMarkup(effects) {
2269
2269
  }
2270
2270
  return parts.length > 0 ? parts.join("") : void 0;
2271
2271
  }
2272
- function getImageAlphaFilter(element, elementId = chunkHUD73YBT_js.isImageLikeElement(element) ? element.id : "") {
2272
+ function getImageAlphaFilter(element, elementId = chunkN7OHVHBS_js.isImageLikeElement(element) ? element.id : "") {
2273
2273
  const effects = getEffects(element);
2274
2274
  if (!effects || !hasAdvancedImageAlphaEffects(element)) {
2275
2275
  return void 0;
@@ -2359,7 +2359,7 @@ function buildArtisticFilterMarkup(effectName, radius) {
2359
2359
  return void 0;
2360
2360
  }
2361
2361
  }
2362
- function getArtisticImageFilter(element, elementId = chunkHUD73YBT_js.isImageLikeElement(element) ? element.id : "") {
2362
+ function getArtisticImageFilter(element, elementId = chunkN7OHVHBS_js.isImageLikeElement(element) ? element.id : "") {
2363
2363
  const effects = getEffects(element);
2364
2364
  if (!effects?.artisticEffect || !needsSvgArtisticFilter(effects.artisticEffect)) {
2365
2365
  return void 0;
@@ -3318,7 +3318,7 @@ function convertChildren(node) {
3318
3318
  if (key.startsWith("@_")) {
3319
3319
  continue;
3320
3320
  }
3321
- const tag = chunkHUD73YBT_js.stripXmlOrderSuffix(key);
3321
+ const tag = chunkN7OHVHBS_js.stripXmlOrderSuffix(key);
3322
3322
  if (tag === "m:oMathPara") {
3323
3323
  continue;
3324
3324
  }
@@ -3390,7 +3390,7 @@ function findOmathRoots(node) {
3390
3390
  }
3391
3391
  }
3392
3392
  const contentTags = /* @__PURE__ */ new Set(["m:r", "m:f", "m:rad", "m:sSup", "m:sSub", "m:box"]);
3393
- if (Object.keys(node).some((key) => contentTags.has(chunkHUD73YBT_js.stripXmlOrderSuffix(key)))) {
3393
+ if (Object.keys(node).some((key) => contentTags.has(chunkN7OHVHBS_js.stripXmlOrderSuffix(key)))) {
3394
3394
  return [node];
3395
3395
  }
3396
3396
  return [];
@@ -3600,7 +3600,7 @@ function mergeSiblings(nodes) {
3600
3600
  }
3601
3601
  const ordered2 = {};
3602
3602
  for (const [position, [key, value]] of entries.entries()) {
3603
- ordered2[(counts.get(key) ?? 0) > 1 ? chunkHUD73YBT_js.orderedXmlKey(key, position) : key] = value;
3603
+ ordered2[(counts.get(key) ?? 0) > 1 ? chunkN7OHVHBS_js.orderedXmlKey(key, position) : key] = value;
3604
3604
  }
3605
3605
  return ordered2;
3606
3606
  }
@@ -4004,7 +4004,7 @@ function ommlChildrenToLatex(node) {
4004
4004
  if (key.startsWith("@_")) {
4005
4005
  continue;
4006
4006
  }
4007
- const tag = chunkHUD73YBT_js.stripXmlOrderSuffix(key);
4007
+ const tag = chunkN7OHVHBS_js.stripXmlOrderSuffix(key);
4008
4008
  const items = ensureArr(node[key]);
4009
4009
  for (const item of items) {
4010
4010
  const result = ommlElementToLatex(tag, item);
@@ -12185,7 +12185,7 @@ function buildSegmentCounts(slide, nativeAnims) {
12185
12185
  for (const anim of nativeAnims) {
12186
12186
  if (anim.buildType && anim.buildType !== "allAtOnce" && anim.targetId) {
12187
12187
  const el = slide.elements.find((e) => e.id === anim.targetId);
12188
- if (el && chunkHUD73YBT_js.hasTextProperties(el) && el.textSegments && el.textSegments.length > 0) {
12188
+ if (el && chunkN7OHVHBS_js.hasTextProperties(el) && el.textSegments && el.textSegments.length > 0) {
12189
12189
  segmentCounts.set(anim.targetId, countTextSegments(el.textSegments));
12190
12190
  }
12191
12191
  }
@@ -14403,7 +14403,7 @@ function rotateDelta(dx, dy, rotationDeg) {
14403
14403
  }
14404
14404
  function applyResize(box, handle, dxScreen, dyScreen, zoom, opts = {}) {
14405
14405
  const scale = zoom || 1;
14406
- const minSize = opts.minSize ?? chunkHUD73YBT_js.MIN_ELEMENT_SIZE;
14406
+ const minSize = opts.minSize ?? chunkN7OHVHBS_js.MIN_ELEMENT_SIZE;
14407
14407
  const rotation = rotationOf(box);
14408
14408
  const local = rotateDelta(dxScreen / scale, dyScreen / scale, rotation);
14409
14409
  const dx = local.x;
@@ -14430,7 +14430,7 @@ function applyResize(box, handle, dxScreen, dyScreen, zoom, opts = {}) {
14430
14430
  }
14431
14431
  return { x: newX, y: newY, width: newW, height: newH, rotation };
14432
14432
  }
14433
- function snapBoxToGrid(box, handle, gridSpacingPx, minSize = chunkHUD73YBT_js.MIN_ELEMENT_SIZE) {
14433
+ function snapBoxToGrid(box, handle, gridSpacingPx, minSize = chunkN7OHVHBS_js.MIN_ELEMENT_SIZE) {
14434
14434
  if (handle === null || gridSpacingPx <= 0) {
14435
14435
  return box;
14436
14436
  }
@@ -14460,7 +14460,7 @@ function snapBoxToGrid(box, handle, gridSpacingPx, minSize = chunkHUD73YBT_js.MI
14460
14460
  }
14461
14461
  return { x, y, width, height };
14462
14462
  }
14463
- function computeMarqueeHitIds(marquee, elements, minSize = chunkHUD73YBT_js.MIN_ELEMENT_SIZE) {
14463
+ function computeMarqueeHitIds(marquee, elements, minSize = chunkN7OHVHBS_js.MIN_ELEMENT_SIZE) {
14464
14464
  const minX = Math.min(marquee.startX, marquee.currentX);
14465
14465
  const minY = Math.min(marquee.startY, marquee.currentY);
14466
14466
  const maxX = Math.max(marquee.startX, marquee.currentX);
@@ -16016,7 +16016,7 @@ var THEME_COLOR_LABELS = {
16016
16016
  };
16017
16017
  function buildThemeColorGrid(colorScheme) {
16018
16018
  return THEME_COLOR_TINT_ROWS.map(
16019
- (row) => chunkHUD73YBT_js.THEME_COLOR_SCHEME_KEYS.map((key) => ({
16019
+ (row) => chunkN7OHVHBS_js.THEME_COLOR_SCHEME_KEYS.map((key) => ({
16020
16020
  hex: row.transform(colorScheme[key]),
16021
16021
  schemeKey: key,
16022
16022
  rowLabel: row.label,
@@ -16352,12 +16352,12 @@ function getShapeConnectionSites(shape) {
16352
16352
  }
16353
16353
  const pathW = geo.pathWidth && geo.pathWidth > 0 ? geo.pathWidth : shape.width;
16354
16354
  const pathH = geo.pathHeight && geo.pathHeight > 0 ? geo.pathHeight : shape.height;
16355
- const vars = chunkHUD73YBT_js.createBuiltinVariables({ w: pathW, h: pathH });
16355
+ const vars = chunkN7OHVHBS_js.createBuiltinVariables({ w: pathW, h: pathH });
16356
16356
  const scaleX = pathW > 0 ? shape.width / pathW : 1;
16357
16357
  const scaleY = pathH > 0 ? shape.height / pathH : 1;
16358
16358
  return cxn.map((site, index) => ({
16359
- x: chunkHUD73YBT_js.resolveCoordinate(site.posX, vars) * scaleX,
16360
- y: chunkHUD73YBT_js.resolveCoordinate(site.posY, vars) * scaleY,
16359
+ x: chunkN7OHVHBS_js.resolveCoordinate(site.posX, vars) * scaleX,
16360
+ y: chunkN7OHVHBS_js.resolveCoordinate(site.posY, vars) * scaleY,
16361
16361
  index
16362
16362
  }));
16363
16363
  }
@@ -16520,7 +16520,7 @@ function svgLineCap(lineCap) {
16520
16520
  }
16521
16521
  function copyFormatFromElement(element) {
16522
16522
  const result = {};
16523
- if (chunkHUD73YBT_js.hasShapeProperties(element) && element.shapeStyle) {
16523
+ if (chunkN7OHVHBS_js.hasShapeProperties(element) && element.shapeStyle) {
16524
16524
  const s = element.shapeStyle;
16525
16525
  result.shapeStyle = {
16526
16526
  fillColor: s.fillColor,
@@ -16549,7 +16549,7 @@ function copyFormatFromElement(element) {
16549
16549
  softEdgeRadius: s.softEdgeRadius
16550
16550
  };
16551
16551
  }
16552
- if (chunkHUD73YBT_js.hasTextProperties(element) && element.textStyle) {
16552
+ if (chunkN7OHVHBS_js.hasTextProperties(element) && element.textStyle) {
16553
16553
  const t = element.textStyle;
16554
16554
  result.textStyle = {
16555
16555
  fontFamily: t.fontFamily,
@@ -16580,7 +16580,7 @@ function definedEntries(obj) {
16580
16580
  }
16581
16581
  function applyFormatToElement(element, format) {
16582
16582
  let updated = { ...element };
16583
- if (format.shapeStyle && chunkHUD73YBT_js.hasShapeProperties(updated)) {
16583
+ if (format.shapeStyle && chunkN7OHVHBS_js.hasShapeProperties(updated)) {
16584
16584
  updated = {
16585
16585
  ...updated,
16586
16586
  shapeStyle: {
@@ -16589,7 +16589,7 @@ function applyFormatToElement(element, format) {
16589
16589
  }
16590
16590
  };
16591
16591
  }
16592
- if (format.textStyle && chunkHUD73YBT_js.hasTextProperties(updated)) {
16592
+ if (format.textStyle && chunkN7OHVHBS_js.hasTextProperties(updated)) {
16593
16593
  updated = {
16594
16594
  ...updated,
16595
16595
  textStyle: {
@@ -16604,7 +16604,7 @@ function hasCopyableFormat(element) {
16604
16604
  if (!element) {
16605
16605
  return false;
16606
16606
  }
16607
- return chunkHUD73YBT_js.hasShapeProperties(element) || chunkHUD73YBT_js.hasTextProperties(element);
16607
+ return chunkN7OHVHBS_js.hasShapeProperties(element) || chunkN7OHVHBS_js.hasTextProperties(element);
16608
16608
  }
16609
16609
  function copySegmentMetadata(from, to) {
16610
16610
  if (from.equationXml !== void 0) {
@@ -16741,7 +16741,7 @@ function getRoundRectRadiusPx(element) {
16741
16741
  return Math.min(Math.max(element.width, 1), Math.max(element.height, 1)) * 0.5 * normalizedAdjustment;
16742
16742
  }
16743
16743
  function getShapeAdjustmentHandleDescriptor(element) {
16744
- if (!chunkHUD73YBT_js.hasShapeProperties(element)) {
16744
+ if (!chunkN7OHVHBS_js.hasShapeProperties(element)) {
16745
16745
  return null;
16746
16746
  }
16747
16747
  const normalizedShapeType = String(element.shapeType || "").toLowerCase();
@@ -17750,7 +17750,7 @@ function createSyncGate(onOpen, graceMs = INITIAL_SYNC_GRACE_MS) {
17750
17750
  var POSITION_THRESHOLD = 2;
17751
17751
  var SIZE_THRESHOLD = 2;
17752
17752
  function getElementText(element) {
17753
- if (!chunkHUD73YBT_js.hasTextProperties(element)) {
17753
+ if (!chunkN7OHVHBS_js.hasTextProperties(element)) {
17754
17754
  return "";
17755
17755
  }
17756
17756
  if (element.textSegments && element.textSegments.length > 0) {
@@ -23102,7 +23102,7 @@ function getAriaRole(element) {
23102
23102
  case "model3d":
23103
23103
  return "img";
23104
23104
  case "shape": {
23105
- if (chunkHUD73YBT_js.hasTextProperties(element) && element.text) {
23105
+ if (chunkN7OHVHBS_js.hasTextProperties(element) && element.text) {
23106
23106
  return "group";
23107
23107
  }
23108
23108
  return "img";
@@ -23115,7 +23115,7 @@ function getAriaLabel(element) {
23115
23115
  if ((element.type === "image" || element.type === "picture") && "altText" in element && typeof element.altText === "string" && element.altText.trim()) {
23116
23116
  return element.altText.trim();
23117
23117
  }
23118
- if (chunkHUD73YBT_js.hasTextProperties(element) && element.text) {
23118
+ if (chunkN7OHVHBS_js.hasTextProperties(element) && element.text) {
23119
23119
  const text = element.text.trim();
23120
23120
  if (text) {
23121
23121
  return text.length > 120 ? `${text.slice(0, 117)}...` : text;
@@ -23522,7 +23522,7 @@ var DEFAULT_CHART_POSITION = { x: 120, y: 120, width: 480, height: 320 };
23522
23522
  var DEFAULT_CATEGORIES = ["Category 1", "Category 2", "Category 3"];
23523
23523
  var DEFAULT_SERIES_VALUES = [4, 3, 5];
23524
23524
  function createDefaultChartElement(chartType = DEFAULT_INSERT_CHART_TYPE, position) {
23525
- return chunkHUD73YBT_js.createChartElement(
23525
+ return chunkN7OHVHBS_js.createChartElement(
23526
23526
  chartType,
23527
23527
  {
23528
23528
  categories: [...DEFAULT_CATEGORIES],
@@ -24557,7 +24557,7 @@ function computeVirtualRange(totalItems, itemHeight, scrollTop, viewportHeight,
24557
24557
  };
24558
24558
  }
24559
24559
  function collectFontsFromElement(element, fonts) {
24560
- if (chunkHUD73YBT_js.hasTextProperties(element)) {
24560
+ if (chunkN7OHVHBS_js.hasTextProperties(element)) {
24561
24561
  if (element.textStyle?.fontFamily) {
24562
24562
  fonts.add(element.textStyle.fontFamily);
24563
24563
  }
@@ -1,4 +1,4 @@
1
- import { THEME_PRESETS, MIN_ELEMENT_SIZE, guideEmuToPx, hasShapeProperties, THEME_COLOR_SCHEME_KEYS, hasTextProperties, createChartElement, getShapeClipPath, getAdjustmentAwareShapeClipPath, getShapeClipPathFromPreset, getCloudPathForRendering, hslToRgb, PRESET_COLOR_MAP, isImageLikeElement, stripXmlOrderSuffix, orderedXmlKey, createBuiltinVariables, resolveCoordinate, applyDrawingColorTransforms } from './chunk-LTBO2ZJC.mjs';
1
+ import { THEME_PRESETS, MIN_ELEMENT_SIZE, guideEmuToPx, hasShapeProperties, THEME_COLOR_SCHEME_KEYS, hasTextProperties, createChartElement, getShapeClipPath, getAdjustmentAwareShapeClipPath, getShapeClipPathFromPreset, getCloudPathForRendering, hslToRgb, PRESET_COLOR_MAP, isImageLikeElement, stripXmlOrderSuffix, orderedXmlKey, createBuiltinVariables, resolveCoordinate, applyDrawingColorTransforms } from './chunk-JJ5MVLCK.mjs';
2
2
  import DOMPurify from 'dompurify';
3
3
 
4
4
  var defaultThemeColors = {