pptx-svelte-viewer 2.3.0 → 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.
package/dist/i18n.js CHANGED
@@ -1,4 +1,4 @@
1
- import { a as s, c as e, i as t, n as r, o, r as n, s as i, t as l } from "./translator-D2iZRR15.js";
1
+ import { a as s, c as e, i as t, n as r, o, r as n, s as i, t as l } from "./translator-DL83W_OP.js";
2
2
  export {
3
3
  o as LOCALE_CATALOG,
4
4
  l as createTranslator,
package/dist/index.d.ts CHANGED
@@ -533,6 +533,62 @@ interface PptxCustomPathProperties {
533
533
  customGeometryTextRect?: CustomGeometryTextRect;
534
534
  }
535
535
  //#endregion
536
+ //#region src/core/types/effect-dag.d.ts
537
+ type EffectDagBlendMode = 'darken' | 'lighten' | 'mult' | 'over' | 'screen';
538
+ type EffectDagContainerType = 'sib' | 'tree';
539
+ type EffectDagNode = EffectDagContainer | EffectDagBlend | EffectDagXfrm | EffectDagRelOff | EffectDagBlur | EffectDagAlphaOutset | EffectDagPresetShadow | EffectDagRawLeaf;
540
+ interface EffectDagContainer {
541
+ kind: 'cont';
542
+ type: EffectDagContainerType;
543
+ name?: string;
544
+ children: EffectDagNode[];
545
+ }
546
+ interface EffectDagBlend {
547
+ kind: 'blend';
548
+ mode: EffectDagBlendMode;
549
+ container: EffectDagContainer;
550
+ }
551
+ interface EffectDagXfrm {
552
+ kind: 'xfrmEffect';
553
+ sx?: number;
554
+ sy?: number;
555
+ kx?: number;
556
+ ky?: number;
557
+ tx?: number;
558
+ ty?: number;
559
+ }
560
+ interface EffectDagRelOff {
561
+ kind: 'relOff';
562
+ tx?: number;
563
+ ty?: number;
564
+ }
565
+ /** Typed CT_BlurEffect with its original payload retained for lossless edits. */
566
+ interface EffectDagBlur {
567
+ kind: 'blur';
568
+ radiusEmu?: number;
569
+ grow?: boolean;
570
+ xml: XmlObject;
571
+ }
572
+ /** Typed CT_AlphaOutsetEffect with original XML retained for lossless edits. */
573
+ interface EffectDagAlphaOutset {
574
+ kind: 'alphaOutset';
575
+ radiusEmu?: number;
576
+ xml: XmlObject;
577
+ }
578
+ /** Typed CT_PresetShadowEffect with colour and extension XML retained verbatim. */
579
+ interface EffectDagPresetShadow {
580
+ kind: 'prstShdw';
581
+ preset?: `shdw${number}`;
582
+ distanceEmu?: number;
583
+ direction?: number;
584
+ xml: XmlObject;
585
+ }
586
+ interface EffectDagRawLeaf {
587
+ kind: 'raw';
588
+ tag: string;
589
+ xml: Record<string, unknown>;
590
+ }
591
+ //#endregion
536
592
  //#region src/core/types/three-d.d.ts
537
593
  /**
538
594
  * 3-D effect properties, text warp (WordArt) presets, and scene/shape bevel
@@ -995,6 +1051,15 @@ interface ShapeStyle {
995
1051
  lineGlowOpacity?: number;
996
1052
  /** Raw `a:effectDag` XML node preserved for round-trip serialisation. */
997
1053
  effectDagXml?: XmlObject;
1054
+ /**
1055
+ * Typed effect graph parsed from {@link ShapeStyle.effectDagXml}. The four
1056
+ * structural container nodes (`a:cont`, `a:blend`, `a:xfrmEffect`,
1057
+ * `a:relOff`) are fully typed; any other leaf effect (e.g. `a:outerShdw`,
1058
+ * `a:glow`, `a:alphaInv`) is captured as
1059
+ * {@link import('./effect-dag').EffectDagRawLeaf} so we never have to
1060
+ * recurse into the full effect taxonomy.
1061
+ */
1062
+ effectDagTree?: EffectDagContainer;
998
1063
  /** Grayscale flag from effectDag `a:grayscl`. */
999
1064
  dagGrayscale?: boolean;
1000
1065
  /** Bi-level threshold (0-100) from effectDag `a:biLevel`. */
@@ -1429,6 +1494,20 @@ interface TextStyle {
1429
1494
  textPresetShadowDirection?: number;
1430
1495
  /** Text blur effect radius in px (`a:blur`). */
1431
1496
  textBlurRadius?: number;
1497
+ /**
1498
+ * Raw `a:effectDag` XML node from `a:rPr`, preserved verbatim for
1499
+ * round-trip serialisation. Mirrors the shape-level
1500
+ * {@link import('./shape-style').ShapeStyle.effectDagXml} field.
1501
+ */
1502
+ textEffectDagXml?: XmlObject;
1503
+ /**
1504
+ * Typed effect graph parsed from `textEffectDagXml`. The four structural
1505
+ * container nodes (`a:cont`, `a:blend`, `a:xfrmEffect`, `a:relOff`) are
1506
+ * fully typed; any other leaf effect is captured as
1507
+ * {@link import('./effect-dag').EffectDagRawLeaf} so we never have to
1508
+ * recurse into the full effect taxonomy.
1509
+ */
1510
+ textEffectDagTree?: EffectDagContainer;
1432
1511
  /** Text alpha modulation fixed (0-100) from `a:alphaModFix`. */
1433
1512
  textAlphaModFix?: number;
1434
1513
  /** Text alpha modulation from `a:alphaMod` (0-100 percentage). */
@@ -2819,62 +2898,6 @@ interface PptxChartData {
2819
2898
  clrMapOvr?: Record<string, string>;
2820
2899
  }
2821
2900
  //#endregion
2822
- //#region src/core/types/effect-dag.d.ts
2823
- type EffectDagBlendMode = 'darken' | 'lighten' | 'mult' | 'over' | 'screen';
2824
- type EffectDagContainerType = 'sib' | 'tree';
2825
- type EffectDagNode = EffectDagContainer | EffectDagBlend | EffectDagXfrm | EffectDagRelOff | EffectDagBlur | EffectDagAlphaOutset | EffectDagPresetShadow | EffectDagRawLeaf;
2826
- interface EffectDagContainer {
2827
- kind: 'cont';
2828
- type: EffectDagContainerType;
2829
- name?: string;
2830
- children: EffectDagNode[];
2831
- }
2832
- interface EffectDagBlend {
2833
- kind: 'blend';
2834
- mode: EffectDagBlendMode;
2835
- container: EffectDagContainer;
2836
- }
2837
- interface EffectDagXfrm {
2838
- kind: 'xfrmEffect';
2839
- sx?: number;
2840
- sy?: number;
2841
- kx?: number;
2842
- ky?: number;
2843
- tx?: number;
2844
- ty?: number;
2845
- }
2846
- interface EffectDagRelOff {
2847
- kind: 'relOff';
2848
- tx?: number;
2849
- ty?: number;
2850
- }
2851
- /** Typed CT_BlurEffect with its original payload retained for lossless edits. */
2852
- interface EffectDagBlur {
2853
- kind: 'blur';
2854
- radiusEmu?: number;
2855
- grow?: boolean;
2856
- xml: XmlObject;
2857
- }
2858
- /** Typed CT_AlphaOutsetEffect with original XML retained for lossless edits. */
2859
- interface EffectDagAlphaOutset {
2860
- kind: 'alphaOutset';
2861
- radiusEmu?: number;
2862
- xml: XmlObject;
2863
- }
2864
- /** Typed CT_PresetShadowEffect with colour and extension XML retained verbatim. */
2865
- interface EffectDagPresetShadow {
2866
- kind: 'prstShdw';
2867
- preset?: `shdw${number}`;
2868
- distanceEmu?: number;
2869
- direction?: number;
2870
- xml: XmlObject;
2871
- }
2872
- interface EffectDagRawLeaf {
2873
- kind: 'raw';
2874
- tag: string;
2875
- xml: Record<string, unknown>;
2876
- }
2877
- //#endregion
2878
2901
  //#region src/core/types/image.d.ts
2879
2902
  /**
2880
2903
  * Image recolour/adjustment properties parsed from blip extensions.
@@ -3077,36 +3100,6 @@ interface PptxImageProperties {
3077
3100
  /** Crop-to-shape — CSS clip-path shape name. */
3078
3101
  cropShape?: PptxCropShape;
3079
3102
  }
3080
- declare module "./index" {
3081
- interface TextStyle {
3082
- /**
3083
- * Raw `a:effectDag` XML node from `a:rPr`, preserved verbatim for
3084
- * round-trip serialisation. Mirrors the shape-level
3085
- * {@link import('./shape-style').ShapeStyle.effectDagXml} field.
3086
- */
3087
- textEffectDagXml?: XmlObject;
3088
- /**
3089
- * Typed effect graph parsed from `textEffectDagXml`. The four structural
3090
- * container nodes (`a:cont`, `a:blend`, `a:xfrmEffect`, `a:relOff`) are
3091
- * fully typed; any other leaf effect is captured as
3092
- * {@link EffectDagRawLeaf} so we never have to recurse into the full
3093
- * effect taxonomy.
3094
- */
3095
- textEffectDagTree?: EffectDagContainer;
3096
- }
3097
- }
3098
- declare module "./index" {
3099
- interface ShapeStyle {
3100
- /**
3101
- * Typed effect graph parsed from {@link ShapeStyle.effectDagXml}. The four
3102
- * structural container nodes (`a:cont`, `a:blend`, `a:xfrmEffect`,
3103
- * `a:relOff`) are fully typed; any other leaf effect (e.g. `a:outerShdw`,
3104
- * `a:glow`, `a:alphaInv`) is captured as {@link EffectDagRawLeaf} so we
3105
- * never have to recurse into the full effect taxonomy.
3106
- */
3107
- effectDagTree?: EffectDagContainer;
3108
- }
3109
- }
3110
3103
  //#endregion
3111
3104
  //#region src/core/types/media.d.ts
3112
3105
  /**
@@ -6826,7 +6819,6 @@ interface PptxEmbeddedFont {
6826
6819
  originalPartBytes?: Uint8Array;
6827
6820
  }
6828
6821
 
6829
- //#endregion
6830
6822
  //#region src/core/types/theme-presets.d.ts
6831
6823
  /**
6832
6824
  * A complete theme preset that can be applied to a presentation.
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
- import { C as e, S as t, St as a, _t as o, b as i, bt as r, dt as l, ft as n, gt as S, ht as m, lt as d, mt as p, pt as v, t as g, ut as h, vt as u, w as T, x, xt as f, yt as A } from "./export-ko5GUtEk.js";
2
- import { i as b } from "./translator-D2iZRR15.js";
1
+ import { C as e, S as t, St as a, _t as o, b as i, bt as r, dt as l, ft as n, gt as S, ht as m, lt as d, mt as p, pt as v, t as g, ut as h, vt as u, w as T, x, xt as f, yt as A } from "./export-C4AAOFct.js";
2
+ import { i as b } from "./translator-DL83W_OP.js";
3
3
  import "./i18n.js";
4
4
  export {
5
5
  g as PowerPointViewer,