pptx-react-viewer 2.2.1 → 2.4.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 (152) hide show
  1. package/CHANGELOG.md +4 -0
  2. package/dist/{AiChatPanel-O4NYWO3D.js → AiChatPanel-HLLGXBZF.js} +23 -24
  3. package/dist/AiChatPanel-HLLGXBZF.js.br +0 -0
  4. package/dist/AiChatPanel-HLLGXBZF.js.gz +0 -0
  5. package/dist/{AiChatPanel-XRKEPXAM.mjs → AiChatPanel-SXYMXFYS.mjs} +4 -5
  6. package/dist/AiChatPanel-SXYMXFYS.mjs.br +0 -0
  7. package/dist/AiChatPanel-SXYMXFYS.mjs.gz +0 -0
  8. package/dist/{Model3DScene-JN5F5C4Z.mjs → Model3DScene-IECT4RWT.mjs} +1 -2
  9. package/dist/Model3DScene-IECT4RWT.mjs.br +0 -0
  10. package/dist/Model3DScene-IECT4RWT.mjs.gz +0 -0
  11. package/dist/{Model3DScene-HYE6HA2C.js → Model3DScene-ZQBWLAMC.js} +2 -3
  12. package/dist/Model3DScene-ZQBWLAMC.js.br +0 -0
  13. package/dist/Model3DScene-ZQBWLAMC.js.gz +0 -0
  14. package/dist/{PowerPointViewer-gmU5rc7K.d.ts → PowerPointViewer-Cjn1RgSz.d.ts} +2 -2
  15. package/dist/{PowerPointViewer-gmU5rc7K.d.ts.map → PowerPointViewer-Cjn1RgSz.d.ts.map} +1 -1
  16. package/dist/{SurfaceChart3DScene-FDJ6LC4E.js → SurfaceChart3DScene-4KRMRWW6.js} +2 -3
  17. package/dist/SurfaceChart3DScene-4KRMRWW6.js.br +0 -0
  18. package/dist/SurfaceChart3DScene-4KRMRWW6.js.gz +0 -0
  19. package/dist/{SurfaceChart3DScene-V7P3LQVV.mjs → SurfaceChart3DScene-52C3IMPQ.mjs} +1 -2
  20. package/dist/SurfaceChart3DScene-52C3IMPQ.mjs.br +0 -0
  21. package/dist/SurfaceChart3DScene-52C3IMPQ.mjs.gz +0 -0
  22. package/dist/audience-content-store-BMlth_3U.d.ts +386 -0
  23. package/dist/audience-content-store-BMlth_3U.d.ts.map +1 -0
  24. package/dist/{chunk-YIFO3WQO.js → chunk-25VSL2BB.js} +1 -0
  25. package/dist/chunk-25VSL2BB.js.br +0 -0
  26. package/dist/chunk-25VSL2BB.js.gz +0 -0
  27. package/dist/{chunk-XJTWUXXC.js → chunk-5GHLRHBR.js} +3 -3
  28. package/dist/chunk-5GHLRHBR.js.br +0 -0
  29. package/dist/chunk-5GHLRHBR.js.gz +0 -0
  30. package/dist/{chunk-2U243ZEP.js → chunk-5TPQJWEO.js} +267 -252
  31. package/dist/chunk-5TPQJWEO.js.br +0 -0
  32. package/dist/chunk-5TPQJWEO.js.gz +0 -0
  33. package/dist/{chunk-O75FHZQJ.mjs → chunk-G6Q3NXRV.mjs} +23 -8
  34. package/dist/chunk-G6Q3NXRV.mjs.br +0 -0
  35. package/dist/chunk-G6Q3NXRV.mjs.gz +0 -0
  36. package/dist/{chunk-RYHBWTPI.mjs → chunk-KK7FWBGO.mjs} +89 -69
  37. package/dist/chunk-KK7FWBGO.mjs.br +0 -0
  38. package/dist/chunk-KK7FWBGO.mjs.gz +0 -0
  39. package/dist/{chunk-7NSLKNCT.mjs → chunk-LRIXPSVT.mjs} +4 -6
  40. package/dist/chunk-LRIXPSVT.mjs.br +0 -0
  41. package/dist/chunk-LRIXPSVT.mjs.gz +0 -0
  42. package/dist/{chunk-I2HF7ZPO.mjs → chunk-Q6FC2552.mjs} +1 -1
  43. package/dist/chunk-Q6FC2552.mjs.br +0 -0
  44. package/dist/chunk-Q6FC2552.mjs.gz +0 -0
  45. package/dist/{chunk-R2H3FHK6.js → chunk-QBZA2GMB.mjs} +47788 -32364
  46. package/dist/chunk-QBZA2GMB.mjs.br +0 -0
  47. package/dist/chunk-QBZA2GMB.mjs.gz +0 -0
  48. package/dist/{chunk-K2AW5UXT.js → chunk-VEZO33T2.js} +314 -316
  49. package/dist/chunk-VEZO33T2.js.br +0 -0
  50. package/dist/chunk-VEZO33T2.js.gz +0 -0
  51. package/dist/{chunk-PE2I5L6R.mjs → chunk-WK56SFN7.js} +48287 -31794
  52. package/dist/chunk-WK56SFN7.js.br +0 -0
  53. package/dist/chunk-WK56SFN7.js.gz +0 -0
  54. package/dist/{chunk-QULJW7LU.js → chunk-XSBFV6TL.js} +929 -909
  55. package/dist/chunk-XSBFV6TL.js.br +0 -0
  56. package/dist/chunk-XSBFV6TL.js.gz +0 -0
  57. package/dist/{chunk-PZTPX3HK.mjs → chunk-Z6HIZWIQ.mjs} +1 -0
  58. package/dist/chunk-Z6HIZWIQ.mjs.br +0 -0
  59. package/dist/chunk-Z6HIZWIQ.mjs.gz +0 -0
  60. package/dist/i18n.js +4 -4
  61. package/dist/i18n.js.br +0 -0
  62. package/dist/i18n.js.gz +0 -0
  63. package/dist/i18n.mjs +1 -1
  64. package/dist/i18n.mjs.br +0 -0
  65. package/dist/i18n.mjs.gz +0 -0
  66. package/dist/index.d.ts +92 -87
  67. package/dist/index.js +39 -40
  68. package/dist/index.js.br +0 -0
  69. package/dist/index.js.gz +0 -0
  70. package/dist/index.mjs +6 -7
  71. package/dist/index.mjs.br +0 -0
  72. package/dist/index.mjs.gz +0 -0
  73. package/dist/internals.d.ts +519 -514
  74. package/dist/internals.d.ts.map +1 -1
  75. package/dist/internals.js +79 -81
  76. package/dist/internals.js.br +0 -0
  77. package/dist/internals.js.gz +0 -0
  78. package/dist/internals.mjs +4 -6
  79. package/dist/internals.mjs.br +0 -0
  80. package/dist/internals.mjs.gz +0 -0
  81. package/dist/pptx-viewer.css +1 -1
  82. package/dist/pptx-viewer.css.br +0 -0
  83. package/dist/pptx-viewer.css.gz +0 -0
  84. package/dist/{animation-timeline-eb5z0SHW.d.ts → types-DciBT90G.d.ts} +4 -3
  85. package/dist/types-DciBT90G.d.ts.map +1 -0
  86. package/dist/{useViewerBuildingBlocks-CjureTRf.d.ts → useViewerBuildingBlocks-DMDZRawe.d.ts} +4 -4
  87. package/dist/{useViewerBuildingBlocks-CjureTRf.d.ts.map → useViewerBuildingBlocks-DMDZRawe.d.ts.map} +1 -1
  88. package/dist/viewer/index.d.ts +92 -88
  89. package/dist/viewer/index.js +22 -24
  90. package/dist/viewer/index.js.br +0 -0
  91. package/dist/viewer/index.js.gz +0 -0
  92. package/dist/viewer/index.mjs +6 -8
  93. package/dist/viewer/index.mjs.br +0 -0
  94. package/dist/viewer/index.mjs.gz +0 -0
  95. package/package.json +4 -4
  96. package/dist/AiChatPanel-O4NYWO3D.js.br +0 -0
  97. package/dist/AiChatPanel-O4NYWO3D.js.gz +0 -0
  98. package/dist/AiChatPanel-XRKEPXAM.mjs.br +0 -0
  99. package/dist/AiChatPanel-XRKEPXAM.mjs.gz +0 -0
  100. package/dist/Model3DScene-HYE6HA2C.js.br +0 -0
  101. package/dist/Model3DScene-HYE6HA2C.js.gz +0 -0
  102. package/dist/Model3DScene-JN5F5C4Z.mjs.br +0 -0
  103. package/dist/Model3DScene-JN5F5C4Z.mjs.gz +0 -0
  104. package/dist/SurfaceChart3DScene-FDJ6LC4E.js.br +0 -0
  105. package/dist/SurfaceChart3DScene-FDJ6LC4E.js.gz +0 -0
  106. package/dist/SurfaceChart3DScene-V7P3LQVV.mjs.br +0 -0
  107. package/dist/SurfaceChart3DScene-V7P3LQVV.mjs.gz +0 -0
  108. package/dist/animation-timeline-eb5z0SHW.d.ts.map +0 -1
  109. package/dist/chunk-2QHCOESN.js +0 -28037
  110. package/dist/chunk-2QHCOESN.js.br +0 -0
  111. package/dist/chunk-2QHCOESN.js.gz +0 -0
  112. package/dist/chunk-2U243ZEP.js.br +0 -0
  113. package/dist/chunk-2U243ZEP.js.gz +0 -0
  114. package/dist/chunk-6G6S7PEI.mjs +0 -27604
  115. package/dist/chunk-6G6S7PEI.mjs.br +0 -0
  116. package/dist/chunk-6G6S7PEI.mjs.gz +0 -0
  117. package/dist/chunk-7NSLKNCT.mjs.br +0 -0
  118. package/dist/chunk-7NSLKNCT.mjs.gz +0 -0
  119. package/dist/chunk-I2HF7ZPO.mjs.br +0 -0
  120. package/dist/chunk-I2HF7ZPO.mjs.gz +0 -0
  121. package/dist/chunk-IKBO6CZC.js +0 -2
  122. package/dist/chunk-IKBO6CZC.js.br +0 -3
  123. package/dist/chunk-IKBO6CZC.js.gz +0 -0
  124. package/dist/chunk-K2AW5UXT.js.br +0 -0
  125. package/dist/chunk-K2AW5UXT.js.gz +0 -0
  126. package/dist/chunk-O75FHZQJ.mjs.br +0 -0
  127. package/dist/chunk-O75FHZQJ.mjs.gz +0 -0
  128. package/dist/chunk-PE2I5L6R.mjs.br +0 -0
  129. package/dist/chunk-PE2I5L6R.mjs.gz +0 -0
  130. package/dist/chunk-PZTPX3HK.mjs.br +0 -0
  131. package/dist/chunk-PZTPX3HK.mjs.gz +0 -0
  132. package/dist/chunk-QULJW7LU.js.br +0 -0
  133. package/dist/chunk-QULJW7LU.js.gz +0 -0
  134. package/dist/chunk-R2H3FHK6.js.br +0 -0
  135. package/dist/chunk-R2H3FHK6.js.gz +0 -0
  136. package/dist/chunk-RYHBWTPI.mjs.br +0 -0
  137. package/dist/chunk-RYHBWTPI.mjs.gz +0 -0
  138. package/dist/chunk-T5U6P2JH.mjs +0 -1
  139. package/dist/chunk-T5U6P2JH.mjs.br +0 -0
  140. package/dist/chunk-T5U6P2JH.mjs.gz +0 -0
  141. package/dist/chunk-XJTWUXXC.js.br +0 -0
  142. package/dist/chunk-XJTWUXXC.js.gz +0 -0
  143. package/dist/chunk-YIFO3WQO.js.br +0 -0
  144. package/dist/chunk-YIFO3WQO.js.gz +0 -0
  145. package/dist/dist-VEWYRBTB.mjs +0 -2
  146. package/dist/dist-VEWYRBTB.mjs.br +0 -0
  147. package/dist/dist-VEWYRBTB.mjs.gz +0 -0
  148. package/dist/dist-ZCJLIRYG.js +0 -2275
  149. package/dist/dist-ZCJLIRYG.js.br +0 -0
  150. package/dist/dist-ZCJLIRYG.js.gz +0 -0
  151. package/dist/index-CDCSXtK3.d.ts +0 -685
  152. package/dist/index-CDCSXtK3.d.ts.map +0 -1
Binary file
Binary file
@@ -375,6 +375,7 @@ var translationsEn = {
375
375
  "pptx.presentation.highlighter": "Highlighter",
376
376
  "pptx.presentation.eraser": "Eraser",
377
377
  "pptx.presentation.laserPointer": "Laser Pointer",
378
+ "pptx.presentation.endOfSlideShow": "End of slide show, click to exit.",
378
379
  "pptx.presentation.pointerTools": "Pointer Options",
379
380
  // Selection pane
380
381
  "pptx.selectionPane.title": "Selection Pane",
Binary file
Binary file
package/dist/i18n.js CHANGED
@@ -1,19 +1,19 @@
1
1
  'use strict';
2
2
 
3
- var chunkYIFO3WQO_js = require('./chunk-YIFO3WQO.js');
3
+ var chunk25VSL2BB_js = require('./chunk-25VSL2BB.js');
4
4
  require('./chunk-4VNS5WPM.js');
5
5
 
6
6
 
7
7
 
8
8
  Object.defineProperty(exports, "LOCALE_CATALOG", {
9
9
  enumerable: true,
10
- get: function () { return chunkYIFO3WQO_js.LOCALE_CATALOG; }
10
+ get: function () { return chunk25VSL2BB_js.LOCALE_CATALOG; }
11
11
  });
12
12
  Object.defineProperty(exports, "keyToLabel", {
13
13
  enumerable: true,
14
- get: function () { return chunkYIFO3WQO_js.keyToLabel; }
14
+ get: function () { return chunk25VSL2BB_js.keyToLabel; }
15
15
  });
16
16
  Object.defineProperty(exports, "translationsEn", {
17
17
  enumerable: true,
18
- get: function () { return chunkYIFO3WQO_js.translationsEn; }
18
+ get: function () { return chunk25VSL2BB_js.translationsEn; }
19
19
  });
package/dist/i18n.js.br CHANGED
Binary file
package/dist/i18n.js.gz CHANGED
Binary file
package/dist/i18n.mjs CHANGED
@@ -1,2 +1,2 @@
1
- export { LOCALE_CATALOG, keyToLabel, translationsEn } from './chunk-PZTPX3HK.mjs';
1
+ export { LOCALE_CATALOG, keyToLabel, translationsEn } from './chunk-Z6HIZWIQ.mjs';
2
2
  import './chunk-XGB3TDIC.mjs';
package/dist/i18n.mjs.br CHANGED
Binary file
package/dist/i18n.mjs.gz CHANGED
Binary file
package/dist/index.d.ts CHANGED
@@ -554,6 +554,62 @@ interface PptxCustomPathProperties {
554
554
  customGeometryTextRect?: CustomGeometryTextRect;
555
555
  }
556
556
  //#endregion
557
+ //#region src/core/types/effect-dag.d.ts
558
+ type EffectDagBlendMode = 'darken' | 'lighten' | 'mult' | 'over' | 'screen';
559
+ type EffectDagContainerType = 'sib' | 'tree';
560
+ type EffectDagNode = EffectDagContainer | EffectDagBlend | EffectDagXfrm | EffectDagRelOff | EffectDagBlur | EffectDagAlphaOutset | EffectDagPresetShadow | EffectDagRawLeaf;
561
+ interface EffectDagContainer {
562
+ kind: 'cont';
563
+ type: EffectDagContainerType;
564
+ name?: string;
565
+ children: EffectDagNode[];
566
+ }
567
+ interface EffectDagBlend {
568
+ kind: 'blend';
569
+ mode: EffectDagBlendMode;
570
+ container: EffectDagContainer;
571
+ }
572
+ interface EffectDagXfrm {
573
+ kind: 'xfrmEffect';
574
+ sx?: number;
575
+ sy?: number;
576
+ kx?: number;
577
+ ky?: number;
578
+ tx?: number;
579
+ ty?: number;
580
+ }
581
+ interface EffectDagRelOff {
582
+ kind: 'relOff';
583
+ tx?: number;
584
+ ty?: number;
585
+ }
586
+ /** Typed CT_BlurEffect with its original payload retained for lossless edits. */
587
+ interface EffectDagBlur {
588
+ kind: 'blur';
589
+ radiusEmu?: number;
590
+ grow?: boolean;
591
+ xml: XmlObject;
592
+ }
593
+ /** Typed CT_AlphaOutsetEffect with original XML retained for lossless edits. */
594
+ interface EffectDagAlphaOutset {
595
+ kind: 'alphaOutset';
596
+ radiusEmu?: number;
597
+ xml: XmlObject;
598
+ }
599
+ /** Typed CT_PresetShadowEffect with colour and extension XML retained verbatim. */
600
+ interface EffectDagPresetShadow {
601
+ kind: 'prstShdw';
602
+ preset?: `shdw${number}`;
603
+ distanceEmu?: number;
604
+ direction?: number;
605
+ xml: XmlObject;
606
+ }
607
+ interface EffectDagRawLeaf {
608
+ kind: 'raw';
609
+ tag: string;
610
+ xml: Record<string, unknown>;
611
+ }
612
+ //#endregion
557
613
  //#region src/core/types/three-d.d.ts
558
614
  /**
559
615
  * 3-D effect properties, text warp (WordArt) presets, and scene/shape bevel
@@ -1016,6 +1072,15 @@ interface ShapeStyle {
1016
1072
  lineGlowOpacity?: number;
1017
1073
  /** Raw `a:effectDag` XML node preserved for round-trip serialisation. */
1018
1074
  effectDagXml?: XmlObject;
1075
+ /**
1076
+ * Typed effect graph parsed from {@link ShapeStyle.effectDagXml}. The four
1077
+ * structural container nodes (`a:cont`, `a:blend`, `a:xfrmEffect`,
1078
+ * `a:relOff`) are fully typed; any other leaf effect (e.g. `a:outerShdw`,
1079
+ * `a:glow`, `a:alphaInv`) is captured as
1080
+ * {@link import('./effect-dag').EffectDagRawLeaf} so we never have to
1081
+ * recurse into the full effect taxonomy.
1082
+ */
1083
+ effectDagTree?: EffectDagContainer;
1019
1084
  /** Grayscale flag from effectDag `a:grayscl`. */
1020
1085
  dagGrayscale?: boolean;
1021
1086
  /** Bi-level threshold (0-100) from effectDag `a:biLevel`. */
@@ -1450,6 +1515,20 @@ interface TextStyle {
1450
1515
  textPresetShadowDirection?: number;
1451
1516
  /** Text blur effect radius in px (`a:blur`). */
1452
1517
  textBlurRadius?: number;
1518
+ /**
1519
+ * Raw `a:effectDag` XML node from `a:rPr`, preserved verbatim for
1520
+ * round-trip serialisation. Mirrors the shape-level
1521
+ * {@link import('./shape-style').ShapeStyle.effectDagXml} field.
1522
+ */
1523
+ textEffectDagXml?: XmlObject;
1524
+ /**
1525
+ * Typed effect graph parsed from `textEffectDagXml`. The four structural
1526
+ * container nodes (`a:cont`, `a:blend`, `a:xfrmEffect`, `a:relOff`) are
1527
+ * fully typed; any other leaf effect is captured as
1528
+ * {@link import('./effect-dag').EffectDagRawLeaf} so we never have to
1529
+ * recurse into the full effect taxonomy.
1530
+ */
1531
+ textEffectDagTree?: EffectDagContainer;
1453
1532
  /** Text alpha modulation fixed (0-100) from `a:alphaModFix`. */
1454
1533
  textAlphaModFix?: number;
1455
1534
  /** Text alpha modulation from `a:alphaMod` (0-100 percentage). */
@@ -2840,62 +2919,6 @@ interface PptxChartData {
2840
2919
  clrMapOvr?: Record<string, string>;
2841
2920
  }
2842
2921
  //#endregion
2843
- //#region src/core/types/effect-dag.d.ts
2844
- type EffectDagBlendMode = 'darken' | 'lighten' | 'mult' | 'over' | 'screen';
2845
- type EffectDagContainerType = 'sib' | 'tree';
2846
- type EffectDagNode = EffectDagContainer | EffectDagBlend | EffectDagXfrm | EffectDagRelOff | EffectDagBlur | EffectDagAlphaOutset | EffectDagPresetShadow | EffectDagRawLeaf;
2847
- interface EffectDagContainer {
2848
- kind: 'cont';
2849
- type: EffectDagContainerType;
2850
- name?: string;
2851
- children: EffectDagNode[];
2852
- }
2853
- interface EffectDagBlend {
2854
- kind: 'blend';
2855
- mode: EffectDagBlendMode;
2856
- container: EffectDagContainer;
2857
- }
2858
- interface EffectDagXfrm {
2859
- kind: 'xfrmEffect';
2860
- sx?: number;
2861
- sy?: number;
2862
- kx?: number;
2863
- ky?: number;
2864
- tx?: number;
2865
- ty?: number;
2866
- }
2867
- interface EffectDagRelOff {
2868
- kind: 'relOff';
2869
- tx?: number;
2870
- ty?: number;
2871
- }
2872
- /** Typed CT_BlurEffect with its original payload retained for lossless edits. */
2873
- interface EffectDagBlur {
2874
- kind: 'blur';
2875
- radiusEmu?: number;
2876
- grow?: boolean;
2877
- xml: XmlObject;
2878
- }
2879
- /** Typed CT_AlphaOutsetEffect with original XML retained for lossless edits. */
2880
- interface EffectDagAlphaOutset {
2881
- kind: 'alphaOutset';
2882
- radiusEmu?: number;
2883
- xml: XmlObject;
2884
- }
2885
- /** Typed CT_PresetShadowEffect with colour and extension XML retained verbatim. */
2886
- interface EffectDagPresetShadow {
2887
- kind: 'prstShdw';
2888
- preset?: `shdw${number}`;
2889
- distanceEmu?: number;
2890
- direction?: number;
2891
- xml: XmlObject;
2892
- }
2893
- interface EffectDagRawLeaf {
2894
- kind: 'raw';
2895
- tag: string;
2896
- xml: Record<string, unknown>;
2897
- }
2898
- //#endregion
2899
2922
  //#region src/core/types/image.d.ts
2900
2923
  /**
2901
2924
  * Image recolour/adjustment properties parsed from blip extensions.
@@ -3098,36 +3121,6 @@ interface PptxImageProperties {
3098
3121
  /** Crop-to-shape — CSS clip-path shape name. */
3099
3122
  cropShape?: PptxCropShape;
3100
3123
  }
3101
- declare module "./index" {
3102
- interface TextStyle {
3103
- /**
3104
- * Raw `a:effectDag` XML node from `a:rPr`, preserved verbatim for
3105
- * round-trip serialisation. Mirrors the shape-level
3106
- * {@link import('./shape-style').ShapeStyle.effectDagXml} field.
3107
- */
3108
- textEffectDagXml?: XmlObject;
3109
- /**
3110
- * Typed effect graph parsed from `textEffectDagXml`. The four structural
3111
- * container nodes (`a:cont`, `a:blend`, `a:xfrmEffect`, `a:relOff`) are
3112
- * fully typed; any other leaf effect is captured as
3113
- * {@link EffectDagRawLeaf} so we never have to recurse into the full
3114
- * effect taxonomy.
3115
- */
3116
- textEffectDagTree?: EffectDagContainer;
3117
- }
3118
- }
3119
- declare module "./index" {
3120
- interface ShapeStyle {
3121
- /**
3122
- * Typed effect graph parsed from {@link ShapeStyle.effectDagXml}. The four
3123
- * structural container nodes (`a:cont`, `a:blend`, `a:xfrmEffect`,
3124
- * `a:relOff`) are fully typed; any other leaf effect (e.g. `a:outerShdw`,
3125
- * `a:glow`, `a:alphaInv`) is captured as {@link EffectDagRawLeaf} so we
3126
- * never have to recurse into the full effect taxonomy.
3127
- */
3128
- effectDagTree?: EffectDagContainer;
3129
- }
3130
- }
3131
3124
  //#endregion
3132
3125
  //#region src/core/types/media.d.ts
3133
3126
  /**
@@ -6847,7 +6840,6 @@ interface PptxEmbeddedFont {
6847
6840
  originalPartBytes?: Uint8Array;
6848
6841
  }
6849
6842
 
6850
- //#endregion
6851
6843
  //#region src/core/types/theme-presets.d.ts
6852
6844
  /**
6853
6845
  * A complete theme preset that can be applied to a presentation.
@@ -6886,6 +6878,13 @@ type FillInput = {
6886
6878
  opacity?: number;
6887
6879
  } | {
6888
6880
  type: 'gradient';
6881
+ /**
6882
+ * Gradient direction in the OOXML `a:lin/@ang` convention: degrees
6883
+ * clockwise from the positive x-axis, pointing from the first stop
6884
+ * towards the last (`0` = left to right, `90` = top to bottom). This is
6885
+ * what lands in `ShapeStyle.fillGradientAngle` and what is written back
6886
+ * to the file, NOT a CSS `linear-gradient()` angle.
6887
+ */
6889
6888
  angle?: number;
6890
6889
  gradientType?: 'linear' | 'radial';
6891
6890
  stops: Array<{
@@ -7043,6 +7042,12 @@ type BackgroundInput = {
7043
7042
  color: string;
7044
7043
  } | {
7045
7044
  type: 'gradient';
7045
+ /**
7046
+ * Slide backgrounds are stored as a ready-made CSS gradient string
7047
+ * (`PptxSlide.backgroundGradient`), so this is a CSS
7048
+ * `linear-gradient()` angle: degrees clockwise from "to top"
7049
+ * (`90` = left to right, `180` = top to bottom). Defaults to `180`.
7050
+ */
7046
7051
  angle?: number;
7047
7052
  stops: Array<{
7048
7053
  color: string;
package/dist/index.js CHANGED
@@ -1,133 +1,132 @@
1
1
  'use strict';
2
2
 
3
- var chunkQULJW7LU_js = require('./chunk-QULJW7LU.js');
4
- require('./chunk-XJTWUXXC.js');
5
- var chunkK2AW5UXT_js = require('./chunk-K2AW5UXT.js');
6
- var chunk2U243ZEP_js = require('./chunk-2U243ZEP.js');
7
- var chunk2QHCOESN_js = require('./chunk-2QHCOESN.js');
8
- var chunkYIFO3WQO_js = require('./chunk-YIFO3WQO.js');
9
- require('./chunk-R2H3FHK6.js');
3
+ var chunkXSBFV6TL_js = require('./chunk-XSBFV6TL.js');
4
+ require('./chunk-5GHLRHBR.js');
5
+ var chunkVEZO33T2_js = require('./chunk-VEZO33T2.js');
6
+ var chunk5TPQJWEO_js = require('./chunk-5TPQJWEO.js');
7
+ var chunk25VSL2BB_js = require('./chunk-25VSL2BB.js');
8
+ var chunkWK56SFN7_js = require('./chunk-WK56SFN7.js');
10
9
  require('./chunk-4VNS5WPM.js');
11
10
 
12
11
 
13
12
 
14
13
  Object.defineProperty(exports, "PowerPointViewer", {
15
14
  enumerable: true,
16
- get: function () { return chunkQULJW7LU_js.PowerPointViewer; }
15
+ get: function () { return chunkXSBFV6TL_js.PowerPointViewer; }
17
16
  });
18
17
  Object.defineProperty(exports, "SlideCanvas", {
19
18
  enumerable: true,
20
- get: function () { return chunkQULJW7LU_js.SlideCanvas; }
19
+ get: function () { return chunkXSBFV6TL_js.SlideCanvas; }
21
20
  });
22
21
  Object.defineProperty(exports, "Toolbar", {
23
22
  enumerable: true,
24
- get: function () { return chunkQULJW7LU_js.Toolbar; }
23
+ get: function () { return chunkXSBFV6TL_js.Toolbar; }
25
24
  });
26
25
  Object.defineProperty(exports, "ViewerThemeProvider", {
27
26
  enumerable: true,
28
- get: function () { return chunkQULJW7LU_js.ViewerThemeProvider; }
27
+ get: function () { return chunkXSBFV6TL_js.ViewerThemeProvider; }
29
28
  });
30
29
  Object.defineProperty(exports, "useViewerTheme", {
31
30
  enumerable: true,
32
- get: function () { return chunkQULJW7LU_js.useViewerTheme; }
31
+ get: function () { return chunkXSBFV6TL_js.useViewerTheme; }
33
32
  });
34
33
  Object.defineProperty(exports, "renderToCanvas", {
35
34
  enumerable: true,
36
- get: function () { return chunkK2AW5UXT_js.renderToCanvas; }
35
+ get: function () { return chunkVEZO33T2_js.renderToCanvas; }
37
36
  });
38
37
  Object.defineProperty(exports, "useViewerBuildingBlocks", {
39
38
  enumerable: true,
40
- get: function () { return chunkK2AW5UXT_js.useViewerBuildingBlocks; }
39
+ get: function () { return chunkVEZO33T2_js.useViewerBuildingBlocks; }
41
40
  });
42
41
  Object.defineProperty(exports, "getAnimationInitialStyle", {
43
42
  enumerable: true,
44
- get: function () { return chunk2U243ZEP_js.getAnimationInitialStyle; }
43
+ get: function () { return chunk5TPQJWEO_js.getAnimationInitialStyle; }
44
+ });
45
+ Object.defineProperty(exports, "LOCALE_CATALOG", {
46
+ enumerable: true,
47
+ get: function () { return chunk25VSL2BB_js.LOCALE_CATALOG; }
45
48
  });
46
49
  Object.defineProperty(exports, "AVATAR_COLOR_SWATCHES", {
47
50
  enumerable: true,
48
- get: function () { return chunk2QHCOESN_js.AVATAR_COLOR_SWATCHES; }
51
+ get: function () { return chunkWK56SFN7_js.AVATAR_COLOR_SWATCHES; }
49
52
  });
50
53
  Object.defineProperty(exports, "DEFAULT_VIEWER_PROFILE", {
51
54
  enumerable: true,
52
- get: function () { return chunk2QHCOESN_js.DEFAULT_VIEWER_PROFILE; }
55
+ get: function () { return chunkWK56SFN7_js.DEFAULT_VIEWER_PROFILE; }
53
56
  });
54
57
  Object.defineProperty(exports, "THEME_CATALOG", {
55
58
  enumerable: true,
56
- get: function () { return chunk2QHCOESN_js.THEME_CATALOG; }
59
+ get: function () { return chunkWK56SFN7_js.THEME_CATALOG; }
57
60
  });
58
61
  Object.defineProperty(exports, "VIEWER_PREFS_STORAGE_KEY", {
59
62
  enumerable: true,
60
- get: function () { return chunk2QHCOESN_js.VIEWER_PREFS_STORAGE_KEY; }
63
+ get: function () { return chunkWK56SFN7_js.VIEWER_PREFS_STORAGE_KEY; }
61
64
  });
62
65
  Object.defineProperty(exports, "clearAllLocalViewerData", {
63
66
  enumerable: true,
64
- get: function () { return chunk2QHCOESN_js.clearAllLocalViewerData; }
67
+ get: function () { return chunkWK56SFN7_js.clearAllLocalViewerData; }
65
68
  });
66
69
  Object.defineProperty(exports, "clearStoredViewerPrefs", {
67
70
  enumerable: true,
68
- get: function () { return chunk2QHCOESN_js.clearStoredViewerPrefs; }
71
+ get: function () { return chunkWK56SFN7_js.clearStoredViewerPrefs; }
69
72
  });
70
73
  Object.defineProperty(exports, "defaultCssVars", {
71
74
  enumerable: true,
72
- get: function () { return chunk2QHCOESN_js.defaultCssVars; }
75
+ get: function () { return chunkWK56SFN7_js.defaultCssVars; }
73
76
  });
74
77
  Object.defineProperty(exports, "defaultRadius", {
75
78
  enumerable: true,
76
- get: function () { return chunk2QHCOESN_js.defaultRadius; }
79
+ get: function () { return chunkWK56SFN7_js.defaultRadius; }
77
80
  });
78
81
  Object.defineProperty(exports, "defaultThemeColors", {
79
82
  enumerable: true,
80
- get: function () { return chunk2QHCOESN_js.defaultThemeColors; }
83
+ get: function () { return chunkWK56SFN7_js.defaultThemeColors; }
81
84
  });
82
85
  Object.defineProperty(exports, "getLocalStorageUsageSummary", {
83
86
  enumerable: true,
84
- get: function () { return chunk2QHCOESN_js.getLocalStorageUsageSummary; }
87
+ get: function () { return chunkWK56SFN7_js.getLocalStorageUsageSummary; }
85
88
  });
86
89
  Object.defineProperty(exports, "readStoredViewerPrefs", {
87
90
  enumerable: true,
88
- get: function () { return chunk2QHCOESN_js.readStoredViewerPrefs; }
91
+ get: function () { return chunkWK56SFN7_js.readStoredViewerPrefs; }
89
92
  });
90
93
  Object.defineProperty(exports, "resolveProfileInitial", {
91
94
  enumerable: true,
92
- get: function () { return chunk2QHCOESN_js.resolveProfileInitial; }
95
+ get: function () { return chunkWK56SFN7_js.resolveProfileInitial; }
93
96
  });
94
97
  Object.defineProperty(exports, "resolveThemeCatalogEntry", {
95
98
  enumerable: true,
96
- get: function () { return chunk2QHCOESN_js.resolveThemeCatalogEntry; }
99
+ get: function () { return chunkWK56SFN7_js.resolveThemeCatalogEntry; }
97
100
  });
98
101
  Object.defineProperty(exports, "saveViewerProfile", {
99
102
  enumerable: true,
100
- get: function () { return chunk2QHCOESN_js.saveViewerProfile; }
103
+ get: function () { return chunkWK56SFN7_js.saveViewerProfile; }
101
104
  });
102
105
  Object.defineProperty(exports, "themeToCssVars", {
103
106
  enumerable: true,
104
- get: function () { return chunk2QHCOESN_js.themeToCssVars; }
107
+ get: function () { return chunkWK56SFN7_js.themeToCssVars; }
105
108
  });
106
109
  Object.defineProperty(exports, "vermilionDarkColors", {
107
110
  enumerable: true,
108
- get: function () { return chunk2QHCOESN_js.vermilionDarkColors; }
111
+ get: function () { return chunkWK56SFN7_js.vermilionDarkColors; }
109
112
  });
110
113
  Object.defineProperty(exports, "vermilionDarkTheme", {
111
114
  enumerable: true,
112
- get: function () { return chunk2QHCOESN_js.vermilionDarkTheme; }
115
+ get: function () { return chunkWK56SFN7_js.vermilionDarkTheme; }
113
116
  });
114
117
  Object.defineProperty(exports, "vermilionLightColors", {
115
118
  enumerable: true,
116
- get: function () { return chunk2QHCOESN_js.vermilionLightColors; }
119
+ get: function () { return chunkWK56SFN7_js.vermilionLightColors; }
117
120
  });
118
121
  Object.defineProperty(exports, "vermilionLightTheme", {
119
122
  enumerable: true,
120
- get: function () { return chunk2QHCOESN_js.vermilionLightTheme; }
123
+ get: function () { return chunkWK56SFN7_js.vermilionLightTheme; }
121
124
  });
122
125
  Object.defineProperty(exports, "vermilionRadius", {
123
126
  enumerable: true,
124
- get: function () { return chunk2QHCOESN_js.vermilionRadius; }
127
+ get: function () { return chunkWK56SFN7_js.vermilionRadius; }
125
128
  });
126
129
  Object.defineProperty(exports, "writeStoredViewerPrefs", {
127
130
  enumerable: true,
128
- get: function () { return chunk2QHCOESN_js.writeStoredViewerPrefs; }
129
- });
130
- Object.defineProperty(exports, "LOCALE_CATALOG", {
131
- enumerable: true,
132
- get: function () { return chunkYIFO3WQO_js.LOCALE_CATALOG; }
131
+ get: function () { return chunkWK56SFN7_js.writeStoredViewerPrefs; }
133
132
  });
package/dist/index.js.br CHANGED
Binary file
package/dist/index.js.gz CHANGED
Binary file
package/dist/index.mjs CHANGED
@@ -1,8 +1,7 @@
1
- export { PowerPointViewer, SlideCanvas, Toolbar, ViewerThemeProvider, useViewerTheme } from './chunk-RYHBWTPI.mjs';
2
- import './chunk-I2HF7ZPO.mjs';
3
- export { renderToCanvas, useViewerBuildingBlocks } from './chunk-7NSLKNCT.mjs';
4
- export { getAnimationInitialStyle } from './chunk-O75FHZQJ.mjs';
5
- export { AVATAR_COLOR_SWATCHES, DEFAULT_VIEWER_PROFILE, THEME_CATALOG, VIEWER_PREFS_STORAGE_KEY, clearAllLocalViewerData, clearStoredViewerPrefs, defaultCssVars, defaultRadius, defaultThemeColors, getLocalStorageUsageSummary, readStoredViewerPrefs, resolveProfileInitial, resolveThemeCatalogEntry, saveViewerProfile, themeToCssVars, vermilionDarkColors, vermilionDarkTheme, vermilionLightColors, vermilionLightTheme, vermilionRadius, writeStoredViewerPrefs } from './chunk-6G6S7PEI.mjs';
6
- export { LOCALE_CATALOG } from './chunk-PZTPX3HK.mjs';
7
- import './chunk-PE2I5L6R.mjs';
1
+ export { PowerPointViewer, SlideCanvas, Toolbar, ViewerThemeProvider, useViewerTheme } from './chunk-KK7FWBGO.mjs';
2
+ import './chunk-Q6FC2552.mjs';
3
+ export { renderToCanvas, useViewerBuildingBlocks } from './chunk-LRIXPSVT.mjs';
4
+ export { getAnimationInitialStyle } from './chunk-G6Q3NXRV.mjs';
5
+ export { LOCALE_CATALOG } from './chunk-Z6HIZWIQ.mjs';
6
+ export { AVATAR_COLOR_SWATCHES, DEFAULT_VIEWER_PROFILE, THEME_CATALOG, VIEWER_PREFS_STORAGE_KEY, clearAllLocalViewerData, clearStoredViewerPrefs, defaultCssVars, defaultRadius, defaultThemeColors, getLocalStorageUsageSummary, readStoredViewerPrefs, resolveProfileInitial, resolveThemeCatalogEntry, saveViewerProfile, themeToCssVars, vermilionDarkColors, vermilionDarkTheme, vermilionLightColors, vermilionLightTheme, vermilionRadius, writeStoredViewerPrefs } from './chunk-QBZA2GMB.mjs';
8
7
  import './chunk-XGB3TDIC.mjs';
package/dist/index.mjs.br CHANGED
Binary file
package/dist/index.mjs.gz CHANGED
Binary file