ooxml-ui 1.9.0 → 1.10.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 (118) hide show
  1. package/dist/{chunk-SNV6YKPC.js → chunk-HZSYGNNB.js} +2 -1
  2. package/dist/{chunk-SKYBYVYH.js → chunk-IXLJNVUD.js} +1 -1
  3. package/dist/{chunk-PH7IBZOZ.js → chunk-WMGMZIMM.js} +1 -1
  4. package/dist/docx/print-border-width.d.ts +2 -0
  5. package/dist/docx/print-table.d.ts +1 -1
  6. package/dist/docx.js +93 -8
  7. package/dist/index.js +3 -3
  8. package/dist/pptx/ai/index.cjs +2 -2
  9. package/dist/pptx/ai/index.mjs +1 -1
  10. package/dist/pptx/{chunk-F7BBPOVJ.mjs → chunk-5AD3V3PA.mjs} +1 -0
  11. package/dist/pptx/{chunk-BPAA5FSB.mjs → chunk-6B3UUVRS.mjs} +1 -1
  12. package/dist/pptx/{chunk-KBCKCW5M.mjs → chunk-6NFW2AQA.mjs} +682 -481
  13. package/dist/pptx/chunk-EYPNQ3FG.cjs +59 -0
  14. package/dist/pptx/chunk-FFIYFHBO.mjs +55 -0
  15. package/dist/pptx/{chunk-HWW2UVUP.cjs → chunk-JRCK6CFI.cjs} +19 -9
  16. package/dist/pptx/{chunk-MKVKISFW.mjs → chunk-OBRLAW6C.mjs} +1 -1
  17. package/dist/pptx/{chunk-BFZDO2DY.cjs → chunk-OCNECNJS.cjs} +785 -550
  18. package/dist/pptx/{chunk-Y4LTLCQP.cjs → chunk-OJFD3SHS.cjs} +26 -47
  19. package/dist/pptx/{chunk-7KPDES3X.mjs → chunk-PMURSMHH.mjs} +6 -35
  20. package/dist/pptx/{chunk-PKDISDDZ.cjs → chunk-TSSWTBJQ.cjs} +2 -2
  21. package/dist/pptx/{chunk-SABFKDRM.mjs → chunk-WFEN6SHA.mjs} +19 -10
  22. package/dist/pptx/{chunk-UEF4BFW4.cjs → chunk-XFQ2RD4I.cjs} +7 -7
  23. package/dist/pptx/{chunk-QVYJB7G2.cjs → chunk-Y7CDPPMZ.cjs} +1 -0
  24. package/dist/pptx/dom/elements/text-shape.d.ts.map +1 -1
  25. package/dist/pptx/dom/index.cjs +228 -218
  26. package/dist/pptx/dom/index.mjs +29 -19
  27. package/dist/pptx/dom/load-presentation.d.ts +1 -0
  28. package/dist/pptx/dom/load-presentation.d.ts.map +1 -1
  29. package/dist/pptx/i18n/index.cjs +6 -6
  30. package/dist/pptx/i18n/index.mjs +1 -1
  31. package/dist/pptx/i18n/translations-en-galleries.d.ts.map +1 -1
  32. package/dist/pptx/index.cjs +2889 -2825
  33. package/dist/pptx/index.mjs +7 -7
  34. package/dist/pptx/render/animation-after-effect-authoring.d.ts +1 -38
  35. package/dist/pptx/render/animation-after-effect-authoring.d.ts.map +1 -1
  36. package/dist/pptx/render/animation-after-effect.d.ts +2 -2
  37. package/dist/pptx/render/animation-after-effect.d.ts.map +1 -1
  38. package/dist/pptx/render/animation-authoring.cjs +39 -39
  39. package/dist/pptx/render/animation-authoring.d.ts +2 -11
  40. package/dist/pptx/render/animation-authoring.d.ts.map +1 -1
  41. package/dist/pptx/render/animation-authoring.mjs +1 -1
  42. package/dist/pptx/render/animation-opacity-playback.d.ts +9 -0
  43. package/dist/pptx/render/animation-opacity-playback.d.ts.map +1 -0
  44. package/dist/pptx/render/animation-opacity-style.d.ts +6 -0
  45. package/dist/pptx/render/animation-opacity-style.d.ts.map +1 -0
  46. package/dist/pptx/render/animation-playback-engine.d.ts +1 -1
  47. package/dist/pptx/render/animation-playback-engine.d.ts.map +1 -1
  48. package/dist/pptx/render/animation-playback-seek.d.ts.map +1 -1
  49. package/dist/pptx/render/animation-playback-steps.d.ts.map +1 -1
  50. package/dist/pptx/render/animation-timeline-engine.d.ts +4 -0
  51. package/dist/pptx/render/animation-timeline-engine.d.ts.map +1 -1
  52. package/dist/pptx/render/animation-timeline-group.d.ts +2 -0
  53. package/dist/pptx/render/animation-timeline-group.d.ts.map +1 -1
  54. package/dist/pptx/render/animation-timeline-regular-step.d.ts.map +1 -1
  55. package/dist/pptx/render/animation-timeline-rows.d.ts.map +1 -1
  56. package/dist/pptx/render/animation-timeline-sequence-builder.d.ts.map +1 -1
  57. package/dist/pptx/render/animation-timeline-step-effect.d.ts +2 -1
  58. package/dist/pptx/render/animation-timeline-step-effect.d.ts.map +1 -1
  59. package/dist/pptx/render/animation-timeline-step.d.ts +3 -1
  60. package/dist/pptx/render/animation-timeline-step.d.ts.map +1 -1
  61. package/dist/pptx/render/background-animation-layers.d.ts +12 -0
  62. package/dist/pptx/render/background-animation-layers.d.ts.map +1 -0
  63. package/dist/pptx/render/customization/customization-resolve-ribbon.d.ts.map +1 -1
  64. package/dist/pptx/render/customization/ribbon-control-catalog-tail.d.ts +6 -0
  65. package/dist/pptx/render/customization/ribbon-control-catalog-tail.d.ts.map +1 -1
  66. package/dist/pptx/render/customization/ribbon-control-catalog.d.ts +6 -0
  67. package/dist/pptx/render/customization/ribbon-control-catalog.d.ts.map +1 -1
  68. package/dist/pptx/render/field-context.d.ts +2 -0
  69. package/dist/pptx/render/field-context.d.ts.map +1 -1
  70. package/dist/pptx/render/font-family-update.d.ts +45 -0
  71. package/dist/pptx/render/font-family-update.d.ts.map +1 -0
  72. package/dist/pptx/render/format-painter.cjs +6 -6
  73. package/dist/pptx/render/format-painter.mjs +3 -3
  74. package/dist/pptx/render/index.d.ts +3 -0
  75. package/dist/pptx/render/index.d.ts.map +1 -1
  76. package/dist/pptx/render/inline-selection-utils.d.ts +2 -1
  77. package/dist/pptx/render/inline-selection-utils.d.ts.map +1 -1
  78. package/dist/pptx/render/inspector-helpers.cjs +17 -13
  79. package/dist/pptx/render/inspector-helpers.d.ts +8 -0
  80. package/dist/pptx/render/inspector-helpers.d.ts.map +1 -1
  81. package/dist/pptx/render/inspector-helpers.mjs +2 -2
  82. package/dist/pptx/render/picture-frame.d.ts +20 -0
  83. package/dist/pptx/render/picture-frame.d.ts.map +1 -1
  84. package/dist/pptx/render/ribbon-animations-state.cjs +6 -6
  85. package/dist/pptx/render/ribbon-animations-state.mjs +2 -2
  86. package/dist/pptx/render/ribbon-galleries/gallery-placements.d.ts +3 -3
  87. package/dist/pptx/render/ribbon-galleries/gallery-placements.d.ts.map +1 -1
  88. package/dist/pptx/render/ribbon-galleries/table-style-tile-svg.d.ts +21 -6
  89. package/dist/pptx/render/ribbon-galleries/table-style-tile-svg.d.ts.map +1 -1
  90. package/dist/pptx/render/ribbon-galleries/table-styles-gallery.d.ts +3 -1
  91. package/dist/pptx/render/ribbon-galleries/table-styles-gallery.d.ts.map +1 -1
  92. package/dist/pptx/render/ribbon-home-crop.d.ts +37 -0
  93. package/dist/pptx/render/ribbon-home-crop.d.ts.map +1 -0
  94. package/dist/pptx/render/ribbon-home-families-objects.d.ts +5 -2
  95. package/dist/pptx/render/ribbon-home-families-objects.d.ts.map +1 -1
  96. package/dist/pptx/render/ribbon-home-spec.d.ts +1 -1
  97. package/dist/pptx/render/ribbon-home-spec.d.ts.map +1 -1
  98. package/dist/pptx/render/ribbon-home-state-extras.d.ts.map +1 -1
  99. package/dist/pptx/render/ribbon-home-state.d.ts +1 -0
  100. package/dist/pptx/render/ribbon-home-state.d.ts.map +1 -1
  101. package/dist/pptx/render/text-block-style.d.ts.map +1 -1
  102. package/dist/pptx/render/text-field-substitution.d.ts +12 -0
  103. package/dist/pptx/render/text-field-substitution.d.ts.map +1 -1
  104. package/dist/pptx/render/text-style-update.d.ts.map +1 -1
  105. package/dist/pptx/render/update-text-segment-style.d.ts +7 -1
  106. package/dist/pptx/render/update-text-segment-style.d.ts.map +1 -1
  107. package/dist/pptx/web-components/index.d.ts.map +1 -1
  108. package/dist/pptx/web-components/ribbon-home-styles.d.ts +1 -1
  109. package/dist/pptx/web-components/ribbon-home-styles.d.ts.map +1 -1
  110. package/dist/pptx/web-components/ribbon-home.d.ts +2 -0
  111. package/dist/pptx/web-components/ribbon-home.d.ts.map +1 -1
  112. package/dist/{presentation-preview-HF3GZ2VD.js → presentation-preview-VIIU7E2S.js} +1 -1
  113. package/dist/teams.js +2 -2
  114. package/dist/xlsx/dialogs/pivot-values.d.ts +10 -0
  115. package/dist/xlsx.js +147 -12
  116. package/package.json +2 -2
  117. package/dist/pptx/chunk-CENGE3TZ.mjs +0 -10
  118. package/dist/pptx/chunk-OGJRSAGH.cjs +0 -12
@@ -1,20 +1,20 @@
1
- import { GlyphOutlineFontCache, createGlyphOutlineLookup, getActiveXControlOverlayView, buildCommentMarkers, COMMENT_MARKER_SIZE, getComputedEffectStyle, getComputedStrokeStyle, getComputed3dStyle, isHollowShapeElement, resolveShapeGeometry, buildTextBlockStyle, buildTextBody3DSceneStyle, getSlideBackgroundStyle, applyRenderedElementAccessibility, applyElementActionAffordances, isTemplateElementId, actionAffordanceLabels, canDrillDown, beginChartMarkDrag, THREE_VIEW_EVENTS, applyChart3DSelect, applyChart3DDrag, resolveChartThreeViewSpec, getContainerStyle, resolveRevealedChartData, chartPlaceholderLabel, buildTextBuildSpec, textBuildSpanStyle, getLineGlowFilterCss, getLineShadowParams, normalizeArrow, getCompoundLineOffsets, getCompoundLineWidths, connectorNeedsPath, connectorHitStrokeWidth, buildParagraphs, markerPath, isEquationOnlyText, convertOmmlToMathMl, sanitizeMathMl, build3DExtrusionData, getGroupChildParentFill, resolveGroupChildFill, getImageSrc, getImageFitStyle, getEffectStyleSource, getDuotoneSvgFilter, getSoftEdgeSvgFilter, getBevelLightingSvgFilter, buildHollowHitOutline, strokeOutlineViewBox, buildStrokeOutline, isPatternPaint, svgGradientMarkup, getCropShapeClipPath, getPictureFrameLayers, getImageOverflow, getComputedImageStyle, getImageTilingStyle, getCachedNativeImageSize, probeNativeImageSize, getImageFillCounterTransform, resolveColorChangedImageSource, getImageColorWashStyle, buildInkGroupStrokes, applyMediaPlaybackAttributes, startMediaAutoplay, scheduleMediaTrimAndFade, mediaPlaybackAttributes, mediaSurfaceOf, mediaTransportVisible, getOnlineVideoEmbed, ONLINE_VIDEO_IFRAME_ALLOW, ONLINE_VIDEO_IFRAME_SANDBOX, registerCrossSlideAudio, mediaFallbackVisual, mediaFallbackIcon, mediaFallbackLabelKey, MEDIA_CHROME_ATTRIBUTE, getOleIconShapes, resolveOleType, getOleTypeColor, getOleTypeLabel, getOleAriaLabel, getOleBadgeLabel, oleActionsVisible, formatBytes, getPlaceholderStyle, getOleDisplayName, isBrowserOpenableMime, openUrlInNewTab, buildSummaryZoomView, resolveSmartArtThreeViewSpec, elementInLocalFrame, stripEditLayerMarkers, routeEditLayerPointerToNodes, measureSvgViewportRect, findSmartArtNodeText, resolvePalette, smartArtConnectorPaint, smartArtNodeLabel, buildChromeStyle, buildSmartArtA11y, resolveRevealedSmartArtNodes, resolveRevealedDrawingShapes, computeSmartArtElementLayout, flattenNodes, computeDrawingViewBox, projectDrawingShapes, styleShadowFilter, resolveRevealedDrawingShapeNodeIds, getTableResizeScale, computeTableMergeCrossings, computeColumnBoundaries, isColumnBoundaryMergedAt, isRowBoundaryMergedAt, DEFAULT_ROW_HEIGHT, tableContainerCss, tableCellCss, cellPatternFillCss, getCellDiagonalBorders, cellParagraphBlocks, cellRunStyle, groupIntoParagraphs, shouldUseSvgWarp, getWarpCssTransform, hasGlyphEnvelope, buildGlyphEnvelopeBlock, buildWarpPath, elementHitTargetStyle, getOverflowSegments, placeholderPromptDescriptor, advanceChartMarkDrag, columnHandleSegments, rowHandleSegments, computeResizedColumnWidths, computeResizedRowHeight, isElementRendered, shouldRenderHitTarget, resolveZoomNavigationTarget, isMediaFullscreenActive, MEDIA_FULLSCREEN_OVERLAY_STYLE, shouldShowMediaFullscreenStopButton, runEquationMathMl, isRunHyperlinkClickable } from '../chunk-KBCKCW5M.mjs';
2
- export { buildEmbeddedFontStyles, buildFieldSubstitutionContext } from '../chunk-KBCKCW5M.mjs';
1
+ import { GlyphOutlineFontCache, createGlyphOutlineLookup, getActiveXControlOverlayView, buildCommentMarkers, COMMENT_MARKER_SIZE, getComputedEffectStyle, getComputedStrokeStyle, getComputed3dStyle, isHollowShapeElement, resolveShapeGeometry, buildTextBlockStyle, buildTextBody3DSceneStyle, getSlideBackgroundStyle, applyRenderedElementAccessibility, applyElementActionAffordances, isTemplateElementId, actionAffordanceLabels, canDrillDown, beginChartMarkDrag, THREE_VIEW_EVENTS, applyChart3DSelect, applyChart3DDrag, resolveChartThreeViewSpec, getContainerStyle, resolveRevealedChartData, chartPlaceholderLabel, buildTextBuildSpec, textBuildSpanStyle, getLineGlowFilterCss, getLineShadowParams, normalizeArrow, getCompoundLineOffsets, getCompoundLineWidths, connectorNeedsPath, connectorHitStrokeWidth, buildParagraphs, markerPath, isEquationOnlyText, convertOmmlToMathMl, sanitizeMathMl, build3DExtrusionData, getGroupChildParentFill, resolveGroupChildFill, getImageSrc, getImageFitStyle, getEffectStyleSource, getDuotoneSvgFilter, getSoftEdgeSvgFilter, getBevelLightingSvgFilter, buildHollowHitOutline, strokeOutlineViewBox, buildStrokeOutline, isPatternPaint, svgGradientMarkup, getCropShapeClipPath, getPictureFrameLayers, getImageOverflow, getComputedImageStyle, getImageTilingStyle, getCachedNativeImageSize, probeNativeImageSize, getImageFillCounterTransform, resolveColorChangedImageSource, getImageColorWashStyle, buildInkGroupStrokes, applyMediaPlaybackAttributes, startMediaAutoplay, scheduleMediaTrimAndFade, mediaPlaybackAttributes, mediaSurfaceOf, mediaTransportVisible, getOnlineVideoEmbed, ONLINE_VIDEO_IFRAME_ALLOW, ONLINE_VIDEO_IFRAME_SANDBOX, registerCrossSlideAudio, mediaFallbackVisual, mediaFallbackIcon, mediaFallbackLabelKey, MEDIA_CHROME_ATTRIBUTE, getOleIconShapes, resolveOleType, getOleTypeColor, getOleTypeLabel, getOleAriaLabel, getOleBadgeLabel, oleActionsVisible, formatBytes, getPlaceholderStyle, getOleDisplayName, isBrowserOpenableMime, openUrlInNewTab, buildSummaryZoomView, resolveSmartArtThreeViewSpec, elementInLocalFrame, stripEditLayerMarkers, routeEditLayerPointerToNodes, measureSvgViewportRect, findSmartArtNodeText, resolvePalette, smartArtConnectorPaint, smartArtNodeLabel, buildChromeStyle, buildSmartArtA11y, resolveRevealedSmartArtNodes, resolveRevealedDrawingShapes, computeSmartArtElementLayout, flattenNodes, computeDrawingViewBox, projectDrawingShapes, styleShadowFilter, resolveRevealedDrawingShapeNodeIds, getTableResizeScale, computeTableMergeCrossings, computeColumnBoundaries, isColumnBoundaryMergedAt, isRowBoundaryMergedAt, DEFAULT_ROW_HEIGHT, tableContainerCss, tableCellCss, cellPatternFillCss, getCellDiagonalBorders, cellParagraphBlocks, cellRunStyle, groupIntoParagraphs, shouldUseSvgWarp, getWarpCssTransform, hasGlyphEnvelope, buildGlyphEnvelopeBlock, buildWarpPath, getBackgroundAnimationState, getBackgroundAnimationLayers, elementHitTargetStyle, getOverflowSegments, placeholderPromptDescriptor, advanceChartMarkDrag, columnHandleSegments, rowHandleSegments, computeResizedColumnWidths, computeResizedRowHeight, isElementRendered, shouldRenderHitTarget, resolveZoomNavigationTarget, isMediaFullscreenActive, MEDIA_FULLSCREEN_OVERLAY_STYLE, shouldShowMediaFullscreenStopButton, runEquationMathMl, isRunHyperlinkClickable } from '../chunk-6NFW2AQA.mjs';
2
+ export { buildEmbeddedFontStyles, buildFieldSubstitutionContext } from '../chunk-6NFW2AQA.mjs';
3
3
  import '../chunk-A63ASSCH.mjs';
4
4
  import { modelDataToBlobUrl, mountModel3D } from '../chunk-DMWNOP4E.mjs';
5
5
  import '../chunk-WSR2S2MY.mjs';
6
6
  import '../chunk-GVH4QN7R.mjs';
7
- import '../chunk-BPAA5FSB.mjs';
7
+ import '../chunk-6B3UUVRS.mjs';
8
8
  import '../chunk-APQ3OOAT.mjs';
9
9
  import { ensureChartInteractionStyles, CHART_INTERACTIVE_CLASS, applyChartPartHighlight, findChartPartTarget, buildChartMarkDragGeometry, beginChartValueDrag, advanceChartValueDrag, renderChartViewModelSvg, withChartTitle } from '../chunk-NAFUYAQP.mjs';
10
10
  export { renderChartViewModelSvg } from '../chunk-NAFUYAQP.mjs';
11
11
  import '../chunk-RQJOOXRG.mjs';
12
12
  import '../chunk-PI47Z46K.mjs';
13
13
  import '../chunk-QX6XPYVA.mjs';
14
- import '../chunk-MKVKISFW.mjs';
14
+ import '../chunk-OBRLAW6C.mjs';
15
15
  import '../chunk-KY75GY5O.mjs';
16
16
  import '../chunk-L55MIOBC.mjs';
17
- import '../chunk-SABFKDRM.mjs';
17
+ import '../chunk-WFEN6SHA.mjs';
18
18
  import '../chunk-SMSCEGAE.mjs';
19
19
  import '../chunk-7BHPBO2O.mjs';
20
20
  import { getComputedFillStyle, getCssBorderDashStyle, DEFAULT_STROKE_COLOR, DEFAULT_TEXT_COLOR, buildChartViewModel, resolveChartKind, subscribeBarFacePicturePixelSamples, resolveChartPalette, buildDashArray, buildSubpathFillOverlay, DEFAULT_FONT_FAMILY, DEFAULT_CANVAS_HEIGHT, DEFAULT_CANVAS_WIDTH, formatAxisValue } from '../chunk-DPOES4WM.mjs';
@@ -29,13 +29,13 @@ import '../chunk-3ZI57W7O.mjs';
29
29
  import '../chunk-IXFG46KB.mjs';
30
30
  import '../chunk-IEAO7N4E.mjs';
31
31
  import '../chunk-XAOEDYA5.mjs';
32
- import '../chunk-7KPDES3X.mjs';
32
+ import '../chunk-PMURSMHH.mjs';
33
33
  import '../chunk-T7FRLIDM.mjs';
34
34
  import '../chunk-XRWEURSV.mjs';
35
35
  import { resolveTableCellImageUrls, resolveTableStyleImageUrls, resolveTextFillBlipUrls, collectMediaElements, resolveMediaElementSource, collectAnimationSoundPaths, collectImagePaths, applyImagePathPatches } from '../chunk-AEQGGKRZ.mjs';
36
- import { keyToLabel } from '../chunk-F7BBPOVJ.mjs';
37
- export { createTranslator } from '../chunk-F7BBPOVJ.mjs';
38
- import '../chunk-CENGE3TZ.mjs';
36
+ import { keyToLabel } from '../chunk-5AD3V3PA.mjs';
37
+ export { createTranslator } from '../chunk-5AD3V3PA.mjs';
38
+ import '../chunk-FFIYFHBO.mjs';
39
39
  import '../chunk-7JBQPQ6G.mjs';
40
40
  import '../chunk-WHUMPYEM.mjs';
41
41
  import { hasShapeProperties, hasTextProperties, getConnectorPathGeometry, isImageLikeElement, getSubstituteFontFamily, PptxHandler } from 'ooxml-core/pptx';
@@ -3882,18 +3882,27 @@ function renderPathWarp(element, paragraphs, context) {
3882
3882
  var renderTextShapeElement = (element, zIndex, context) => {
3883
3883
  const container = getContainerStyle(element, zIndex);
3884
3884
  const animState = context.presentationStates?.get(element.id);
3885
+ const background = getBackgroundAnimationState(element, context.presentationStates);
3886
+ const visualState = background ?? animState;
3885
3887
  const shape = getShapeFillStrokeStyle(
3886
3888
  element,
3887
- animState?.animatesFill,
3888
- animState?.animatesStroke
3889
+ visualState?.animatesFill,
3890
+ visualState?.animatesStroke
3889
3891
  );
3890
3892
  const merged = { ...container, ...shape };
3891
3893
  const transform = composeTransforms(container["transform"], shape["transform"]);
3892
3894
  if (transform !== void 0) {
3893
3895
  merged["transform"] = transform;
3894
3896
  }
3895
- const el = createEl(context.document, "div", "pptxv-element pptxv-shape", merged);
3897
+ const layers = getBackgroundAnimationLayers(element, merged, background);
3898
+ const el = createEl(context.document, "div", "pptxv-element pptxv-shape", layers.box);
3896
3899
  el.dataset.elementId = element.id;
3900
+ const paint = layers.paint ? createEl(context.document, "div", void 0, layers.paint) : el;
3901
+ if (paint !== el) {
3902
+ paint.dataset.animId = layers.targetId;
3903
+ paint.dataset.pptxAnimationLayer = "background";
3904
+ el.appendChild(paint);
3905
+ }
3897
3906
  if (context.interactive && !context.presenting) {
3898
3907
  const hitTargetStyle = elementHitTargetStyle(element);
3899
3908
  if (hitTargetStyle) {
@@ -3905,31 +3914,31 @@ var renderTextShapeElement = (element, zIndex, context) => {
3905
3914
  }
3906
3915
  const subpathFill = renderShapeSubpathFillOverlay(context.document, element);
3907
3916
  if (subpathFill) {
3908
- el.appendChild(subpathFill);
3917
+ paint.appendChild(subpathFill);
3909
3918
  }
3910
3919
  const extrusion = renderExtrusionOverlay(context.document, element);
3911
3920
  if (extrusion) {
3912
- el.appendChild(extrusion);
3921
+ paint.appendChild(extrusion);
3913
3922
  }
3914
3923
  const filterDefs = renderShapeFilterDefs(context.document, element);
3915
3924
  if (filterDefs) {
3916
- el.appendChild(filterDefs);
3925
+ paint.appendChild(filterDefs);
3917
3926
  }
3918
3927
  const fillOverlay = renderShapeFillOverlay(context.document, element);
3919
3928
  if (fillOverlay) {
3920
- el.appendChild(fillOverlay);
3929
+ paint.appendChild(fillOverlay);
3921
3930
  }
3922
3931
  const gradientOutline = renderStrokeOutline(context.document, element);
3923
3932
  if (gradientOutline) {
3924
- el.appendChild(gradientOutline);
3933
+ paint.appendChild(gradientOutline);
3925
3934
  }
3926
3935
  const hollowHit = renderHollowHitOutline(context.document, element);
3927
3936
  if (hollowHit) {
3928
- el.appendChild(hollowHit);
3937
+ paint.appendChild(hollowHit);
3929
3938
  }
3930
3939
  const reflection = renderReflectionOverlay(context.document, element, context.mediaDataUrls);
3931
3940
  if (reflection) {
3932
- el.appendChild(reflection);
3941
+ paint.appendChild(reflection);
3933
3942
  }
3934
3943
  const equation = renderEquations(element, context);
3935
3944
  const warped = equation ? null : renderWarpedText(element, context);
@@ -4003,6 +4012,7 @@ async function loadPresentation(buffer, options) {
4003
4012
  presentationProperties: parsed.presentationProperties ?? {},
4004
4013
  viewProperties: parsed.viewProperties,
4005
4014
  headerFooter: parsed.headerFooter ?? {},
4015
+ firstSlideNumber: parsed.firstSlideNumber,
4006
4016
  coreProperties: parsed.coreProperties,
4007
4017
  appProperties: parsed.appProperties,
4008
4018
  customProperties: parsed.customProperties ?? [],
@@ -26,6 +26,7 @@ export interface LoadedPresentation {
26
26
  */
27
27
  viewProperties?: PptxViewProperties;
28
28
  headerFooter: PptxHeaderFooter;
29
+ firstSlideNumber?: number | undefined;
29
30
  coreProperties?: PptxCoreProperties;
30
31
  appProperties?: PptxAppProperties;
31
32
  customProperties: PptxCustomProperty[];
@@ -1 +1 @@
1
- {"version":3,"file":"load-presentation.d.ts","sourceR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3D;AAED;;;GAGG;AACH,wBAAsB,gBAAgB,CACrC,OAAO,EAAE,WAAW,EACpB,MAAM,EAAE,SAAS,EAAE,EACnB,QAAQ,EAAE,MAAM,EAAE,GAChB,OAAO,CAAC,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CA2C9B"}
1
+ {"version":3,"file":"load-presentation.d.ts","sourceRoot":"","sources":["../../../src/pptx/dom/load-presentation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAEX,mBAAmB,EACnB,iBAAiB,EACjB,iBAAiB,EACjB,wBAAwB,EACxB,kBAAkB,EAClB,kBAAkB,EAClB,cAAc,EACd,gBAAgB,EAChB,iBAAiB,EACjB,gBAAgB,EAChB,uBAAuB,EACvB,kBAAkB,EAClB,eAAe,EACf,0BAA0B,EAC1B,WAAW,EACX,SAAS,EACT,eAAe,EACf,iBAAiB,EACjB,oBAAoB,EACpB,mBAAmB,EACnB,eAAe,EACf,kBAAkB,EAClB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAC9C,OAAO,KAAK,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAczD;;;;;;;GAOG;AACH,MAAM,WAAW,kBAAkB;IAClC,uEAAuE;IACvE,OAAO,EAAE,WAAW,CAAC;IACrB,sDAAsD;IACtD,MAAM,EAAE,SAAS,EAAE,CAAC;IACpB,oCAAoC;IACpC,QAAQ,EAAE,WAAW,EAAE,CAAC;IACxB,sBAAsB,EAAE,0BAA0B,CAAC;IACnD;;;;;;OAMG;IACH,cAAc,CAAC,EAAE,kBAAkB,CAAC;IACpC,YAAY,EAAE,gBAAgB,CAAC;IAC/B,gBAAgB,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACtC,cAAc,CAAC,EAAE,kBAAkB,CAAC;IACpC,aAAa,CAAC,EAAE,iBAAiB,CAAC;IAClC,gBAAgB,EAAE,kBAAkB,EAAE,CAAC;IACvC,WA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CAAC;IAC9B;;;;OAIG;IACH,mBAAmB,CAAC,EAAE,OAAO,CAAC;CAC9B;AAED,wBAAsB,gBAAgB,CACrC,MAAM,EAAE,WAAW,EACnB,OAAO,CAAC,EAAE,uBAAuB,GAC/B,OAAO,CAAC,kBAAkB,CAAC,CAmF7B;AAED,qFAAqF;AACrF,wBAAgB,cAAc,CAAC,IAAI,EAAE,QAAQ,CAAC,MAAM,CAAC,GAAG,IAAI,CAM3D;AAED;;;GAGG;AACH,wBAAsB,gBAAgB,CACrC,OAAO,EAAE,WAAW,EACpB,MAAM,EAAE,SAAS,EAAE,EACnB,QAAQ,EAAE,MAAM,EAAE,GAChB,OAAO,CAAC,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CA2C9B"}
@@ -1,26 +1,26 @@
1
1
  'use strict';
2
2
 
3
- var chunkQVYJB7G2_cjs = require('../chunk-QVYJB7G2.cjs');
3
+ var chunkY7CDPPMZ_cjs = require('../chunk-Y7CDPPMZ.cjs');
4
4
 
5
5
 
6
6
 
7
7
  Object.defineProperty(exports, "ALIGNMENT_LABEL_KEYS", {
8
8
  enumerable: true,
9
- get: function () { return chunkQVYJB7G2_cjs.ALIGNMENT_LABEL_KEYS; }
9
+ get: function () { return chunkY7CDPPMZ_cjs.ALIGNMENT_LABEL_KEYS; }
10
10
  });
11
11
  Object.defineProperty(exports, "LOCALE_CATALOG", {
12
12
  enumerable: true,
13
- get: function () { return chunkQVYJB7G2_cjs.LOCALE_CATALOG; }
13
+ get: function () { return chunkY7CDPPMZ_cjs.LOCALE_CATALOG; }
14
14
  });
15
15
  Object.defineProperty(exports, "createTranslator", {
16
16
  enumerable: true,
17
- get: function () { return chunkQVYJB7G2_cjs.createTranslator; }
17
+ get: function () { return chunkY7CDPPMZ_cjs.createTranslator; }
18
18
  });
19
19
  Object.defineProperty(exports, "keyToLabel", {
20
20
  enumerable: true,
21
- get: function () { return chunkQVYJB7G2_cjs.keyToLabel; }
21
+ get: function () { return chunkY7CDPPMZ_cjs.keyToLabel; }
22
22
  });
23
23
  Object.defineProperty(exports, "translationsEn", {
24
24
  enumerable: true,
25
- get: function () { return chunkQVYJB7G2_cjs.translationsEn; }
25
+ get: function () { return chunkY7CDPPMZ_cjs.translationsEn; }
26
26
  });
@@ -1 +1 @@
1
- export { ALIGNMENT_LABEL_KEYS, LOCALE_CATALOG, createTranslator, keyToLabel, translationsEn } from '../chunk-F7BBPOVJ.mjs';
1
+ export { ALIGNMENT_LABEL_KEYS, LOCALE_CATALOG, createTranslator, keyToLabel, translationsEn } from '../chunk-5AD3V3PA.mjs';
@@ -1 +1 @@
1
- {"version":3,"file":"translations-en-galleries.d.ts","sourceRoot":"","sources":["../../../src/pptx/i18n/translations-en-galleries.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,eAAO,MAAM,qBAAqB,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CA6DxD,CAAC"}
1
+ {"version":3,"file":"translations-en-galleries.d.ts","sourceRoot":"","sources":["../../../src/pptx/i18n/translations-en-galleries.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,eAAO,MAAM,qBAAqB,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CA8DxD,CAAC"}