pptx-svelte-viewer 4.1.6 → 4.2.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/index.d.ts CHANGED
@@ -5320,7 +5320,6 @@ interface PptxSmartArtNode {
5320
5320
  }
5321
5321
  //#endregion
5322
5322
  //#region src/core/types/smart-art-style-definition.d.ts
5323
- /** Editable metadata shared by DiagramML quick-style and color definitions. */
5324
5323
  interface PptxSmartArtDefinitionText {
5325
5324
  value: string;
5326
5325
  language?: string;
@@ -5420,6 +5419,17 @@ interface PptxSmartArtQuickStyle extends PptxSmartArtDefinitionMetadata {
5420
5419
  effectIntensity?: string;
5421
5420
  /** Ordered CT_StyleLabel metadata. Complex style payload remains preserved XML. */
5422
5421
  labels?: PptxSmartArtQuickStyleLabel[];
5422
+ /**
5423
+ * Whole-diagram 3D scene (camera preset/rotation/zoom/fov, light rig,
5424
+ * backdrop) from the quick style's own `dgm:styleDef/dgm:scene3d`, present
5425
+ * for the "Scene" quick styles (Brick, Flat, Metallic, Sunset, Bird's Eye
5426
+ * Scene). One camera renders the whole diagram; per-shape `a:scene3d` is
5427
+ * absent for those styles (see `PptxSmartArtDrawingShape.scene3d`). Each
5428
+ * `dgm:styleLbl` also carries its own per-label `dgm:scene3d`/`dgm:sp3d`,
5429
+ * but PowerPoint bakes those fully resolved onto each cached shape's own
5430
+ * `dsp:spPr/a:sp3d`, so only the diagram-level scene is exposed here.
5431
+ */
5432
+ scene3d?: Pptx3DScene;
5423
5433
  }
5424
5434
  //#endregion
5425
5435
  //#region src/core/types/smart-art.d.ts
@@ -5620,6 +5630,29 @@ interface PptxSmartArtDrawingShape extends PptxCustomPathProperties {
5620
5630
  textFrameY?: number;
5621
5631
  textFrameWidth?: number;
5622
5632
  textFrameHeight?: number;
5633
+ /**
5634
+ * 3D scene (camera/light rig/backdrop) from `dsp:spPr/a:scene3d`, when this
5635
+ * cached shape carries its own per-shape camera. Bevel quick styles
5636
+ * (Polished, Inset, Cartoon, Powder) cache one per shape (always
5637
+ * `orthographicFront`, so the 2D layout stays undistorted). Scene quick
5638
+ * styles (Brick, Flat, Metallic, Sunset, Bird's Eye) instead put ONE camera
5639
+ * on the whole diagram (see `PptxSmartArtQuickStyle.scene3d`) and leave this
5640
+ * undefined on every shape.
5641
+ */
5642
+ scene3d?: Pptx3DScene;
5643
+ /**
5644
+ * 3D extrusion/bevel/contour/material from `dsp:spPr/a:sp3d`. PowerPoint
5645
+ * caches this fully resolved (from the quick style's per-label `dgm:sp3d`)
5646
+ * on every shape for every non-flat quick style, bevel or scene alike.
5647
+ */
5648
+ shape3d?: Pptx3DShape;
5649
+ /**
5650
+ * Text-body 3D extrusion/bevel from `dsp:txBody/a:bodyPr/a:sp3d`. Rare:
5651
+ * present when a quick style extrudes the label text itself off the shape
5652
+ * face (e.g. Bird's Eye Scene: `extrusionH="28000"`), rather than only the
5653
+ * shape body.
5654
+ */
5655
+ text3d?: Text3DStyle;
5623
5656
  }
5624
5657
  /**
5625
5658
  * Presentation layout variables from `dgm:prSet/dgm:presLayoutVars` (data model)
@@ -12198,6 +12231,20 @@ interface ViewportFitOptions {
12198
12231
  /** Positive fit-factor ceiling; null allows enlargement without a ceiling. */
12199
12232
  maxFitScale?: number | null;
12200
12233
  }
12234
+ //#endregion
12235
+ //#region src/web-components/select-value.d.ts
12236
+ /** Public DOM shape used by all bindings; the element is not a native select. */
12237
+ interface PptxUiSelectElement extends HTMLElement {
12238
+ value: string;
12239
+ disabled: boolean;
12240
+ readonly options: HTMLOptionElement[];
12241
+ selectedIndex: number;
12242
+ }
12243
+ declare global {
12244
+ interface HTMLElementTagNameMap {
12245
+ 'pptx-ui-select': PptxUiSelectElement;
12246
+ }
12247
+ }
12201
12248
 
12202
12249
  //#endregion
12203
12250
  //#region src/ai/change-animator.d.ts
package/dist/index.js CHANGED
@@ -1,41 +1,41 @@
1
- import { Ch as e, Fc as a, Fl as o, Hu as r, Jd as t, Jm as i, Rl as l, Sh as n, Th as S, Tl as m, Vo as d, ad as p, as as T, cs as h, fn as v, fp as c, kl as g, ls as P, mc as u, nc as C, os as f, ps as k, sn as A, wh as E, xh as N, yp as x, zl as D } from "./transition-overlay-DIPxa90i.js";
2
- import { i as F } from "./translator-D7duxy6A.js";
3
- import { a as B, c as O, l as R, o as V, s as _, t as w, u as y } from "./export-CKRGg8D0.js";
1
+ import { $o as s, Ks as a, Mu as o, Ol as r, Qo as t, Rd as i, Rm as l, Tc as n, Tl as m, Xo as S, Yo as d, Yu as p, Zt as T, dh as h, fh as v, hh as g, hl as P, ic as u, jo as c, kl as C, lp as f, mh as k, nn as A, np as E, ph as N, rs as D, yl as b } from "./transition-overlay-BcUomRXK.js";
2
+ import { i as I } from "./translator-D7duxy6A.js";
3
+ import { a as R, c as B, l as F, o as _, s as y, t as L, u as V } from "./export-DoyAdIHl.js";
4
4
  import "./i18n.js";
5
5
  export {
6
- A as PPTX_OPEN_ACCEPT,
7
- v as PRESENTATION_OPEN_EXTENSIONS,
8
- w as PowerPointViewer,
9
- d as createImageElementFromFile,
10
- T as defaultCssVars,
11
- f as defaultRadius,
12
- h as defaultThemeColors,
13
- P as deleteAutosaveSnapshot,
14
- k as describeCollaborationShellState,
15
- V as exportAllSlidesToSvg,
16
- _ as exportAllSlidesToSvgBlobs,
17
- O as exportSlideAsSvg,
18
- R as exportSlideToSvg,
19
- y as exportSlideToSvgBlob,
20
- C as forgetSessionDeck,
6
+ T as PPTX_OPEN_ACCEPT,
7
+ A as PRESENTATION_OPEN_EXTENSIONS,
8
+ L as PowerPointViewer,
9
+ c as createImageElementFromFile,
10
+ d as defaultCssVars,
11
+ S as defaultRadius,
12
+ t as defaultThemeColors,
13
+ s as deleteAutosaveSnapshot,
14
+ D as describeCollaborationShellState,
15
+ _ as exportAllSlidesToSvg,
16
+ y as exportAllSlidesToSvgBlobs,
17
+ B as exportSlideAsSvg,
18
+ F as exportSlideToSvg,
19
+ V as exportSlideToSvgBlob,
20
+ a as forgetSessionDeck,
21
21
  u as getAutosaveSnapshot,
22
- a as getSessionTabId,
23
- m as isLegacyBinaryPresentation,
24
- g as isSupportedPresentationFile,
25
- o as listAutosaveSnapshots,
26
- l as loadPresentationDeck,
27
- D as loadSessionDeck,
28
- r as parsePresentationSessionId,
22
+ n as getSessionTabId,
23
+ P as isLegacyBinaryPresentation,
24
+ b as isSupportedPresentationFile,
25
+ m as listAutosaveSnapshots,
26
+ r as loadPresentationDeck,
27
+ C as loadSessionDeck,
28
+ o as parsePresentationSessionId,
29
29
  p as presentationBaseName,
30
- F as registerTranslations,
31
- t as rememberSessionDeck,
32
- B as renderToCanvas,
33
- c as restoreSessionDeck,
34
- x as savedPresentationFileName,
35
- i as themeToCssVars,
36
- N as vermilionDarkColors,
37
- n as vermilionDarkTheme,
38
- e as vermilionLightColors,
39
- E as vermilionLightTheme,
40
- S as vermilionRadius
30
+ I as registerTranslations,
31
+ i as rememberSessionDeck,
32
+ R as renderToCanvas,
33
+ E as restoreSessionDeck,
34
+ f as savedPresentationFileName,
35
+ l as themeToCssVars,
36
+ h as vermilionDarkColors,
37
+ v as vermilionDarkTheme,
38
+ N as vermilionLightColors,
39
+ k as vermilionLightTheme,
40
+ g as vermilionRadius
41
41
  };
@@ -5236,7 +5236,6 @@ interface PptxSmartArtNode {
5236
5236
  }
5237
5237
  //#endregion
5238
5238
  //#region src/core/types/smart-art-style-definition.d.ts
5239
- /** Editable metadata shared by DiagramML quick-style and color definitions. */
5240
5239
  interface PptxSmartArtDefinitionText {
5241
5240
  value: string;
5242
5241
  language?: string;
@@ -5336,6 +5335,17 @@ interface PptxSmartArtQuickStyle extends PptxSmartArtDefinitionMetadata {
5336
5335
  effectIntensity?: string;
5337
5336
  /** Ordered CT_StyleLabel metadata. Complex style payload remains preserved XML. */
5338
5337
  labels?: PptxSmartArtQuickStyleLabel[];
5338
+ /**
5339
+ * Whole-diagram 3D scene (camera preset/rotation/zoom/fov, light rig,
5340
+ * backdrop) from the quick style's own `dgm:styleDef/dgm:scene3d`, present
5341
+ * for the "Scene" quick styles (Brick, Flat, Metallic, Sunset, Bird's Eye
5342
+ * Scene). One camera renders the whole diagram; per-shape `a:scene3d` is
5343
+ * absent for those styles (see `PptxSmartArtDrawingShape.scene3d`). Each
5344
+ * `dgm:styleLbl` also carries its own per-label `dgm:scene3d`/`dgm:sp3d`,
5345
+ * but PowerPoint bakes those fully resolved onto each cached shape's own
5346
+ * `dsp:spPr/a:sp3d`, so only the diagram-level scene is exposed here.
5347
+ */
5348
+ scene3d?: Pptx3DScene;
5339
5349
  }
5340
5350
  //#endregion
5341
5351
  //#region src/core/types/smart-art.d.ts
@@ -5536,6 +5546,29 @@ interface PptxSmartArtDrawingShape extends PptxCustomPathProperties {
5536
5546
  textFrameY?: number;
5537
5547
  textFrameWidth?: number;
5538
5548
  textFrameHeight?: number;
5549
+ /**
5550
+ * 3D scene (camera/light rig/backdrop) from `dsp:spPr/a:scene3d`, when this
5551
+ * cached shape carries its own per-shape camera. Bevel quick styles
5552
+ * (Polished, Inset, Cartoon, Powder) cache one per shape (always
5553
+ * `orthographicFront`, so the 2D layout stays undistorted). Scene quick
5554
+ * styles (Brick, Flat, Metallic, Sunset, Bird's Eye) instead put ONE camera
5555
+ * on the whole diagram (see `PptxSmartArtQuickStyle.scene3d`) and leave this
5556
+ * undefined on every shape.
5557
+ */
5558
+ scene3d?: Pptx3DScene;
5559
+ /**
5560
+ * 3D extrusion/bevel/contour/material from `dsp:spPr/a:sp3d`. PowerPoint
5561
+ * caches this fully resolved (from the quick style's per-label `dgm:sp3d`)
5562
+ * on every shape for every non-flat quick style, bevel or scene alike.
5563
+ */
5564
+ shape3d?: Pptx3DShape;
5565
+ /**
5566
+ * Text-body 3D extrusion/bevel from `dsp:txBody/a:bodyPr/a:sp3d`. Rare:
5567
+ * present when a quick style extrudes the label text itself off the shape
5568
+ * face (e.g. Bird's Eye Scene: `extrusionH="28000"`), rather than only the
5569
+ * shape body.
5570
+ */
5571
+ text3d?: Text3DStyle;
5539
5572
  }
5540
5573
  /**
5541
5574
  * Presentation layout variables from `dgm:prSet/dgm:presLayoutVars` (data model)
@@ -8384,6 +8417,20 @@ declare const P14_TRANSITION_KEYFRAMES_ALL = "\n/* ── Conveyor (translate X
8384
8417
  */
8385
8418
  declare function getP14TransitionAnimations(type: PptxTransitionType, durationMs: number, direction: string | undefined, orient?: string | undefined, pattern?: string | undefined): SlideTransitionAnimations | undefined;
8386
8419
  //#endregion
8420
+ //#region src/web-components/select-value.d.ts
8421
+ /** Public DOM shape used by all bindings; the element is not a native select. */
8422
+ interface PptxUiSelectElement extends HTMLElement {
8423
+ value: string;
8424
+ disabled: boolean;
8425
+ readonly options: HTMLOptionElement[];
8426
+ selectedIndex: number;
8427
+ }
8428
+ declare global {
8429
+ interface HTMLElementTagNameMap {
8430
+ 'pptx-ui-select': PptxUiSelectElement;
8431
+ }
8432
+ }
8433
+ //#endregion
8387
8434
  //#region src/render/slide-transition-cinematic.d.ts
8388
8435
  /**
8389
8436
  * Resolve a p15 cinematic transition to its CSS `animation` descriptors, or
package/dist/internals.js CHANGED
@@ -1,26 +1,26 @@
1
- import { Bn as a, Kf as n, Lc as i, Mf as T, Oc as t, Ut as S, Vn as _, Zf as e, _c as A, cp as E, cr as I, ft as o, gr as r, ht as N, in as R, ip as O, jf as M, nn as D, rn as l, t as L, tt as P, wn as c, xt as F } from "./transition-overlay-DIPxa90i.js";
1
+ import { An as a, Dc as n, G as T, If as i, Jf as t, Jt as S, Kt as e, Nt as A, Qf as _, Qn as E, Sf as I, Vf as o, at as N, dt as r, jn as R, mn as O, nt as D, or as M, qt as l, sc as L, t as P, vc as v, xf as F } from "./transition-overlay-BcUomRXK.js";
2
2
  export {
3
- P as CINEMATIC_TRANSITION_KEYFRAMES,
4
- o as DEFAULT_MORPH_DURATION_MS,
3
+ T as CINEMATIC_TRANSITION_KEYFRAMES,
4
+ D as DEFAULT_MORPH_DURATION_MS,
5
5
  N as DEFAULT_TRANSITION_DURATION_MS,
6
- F as EASE,
7
- S as INSTANT,
8
- D as P14_TRANSITION_KEYFRAMES,
6
+ r as EASE,
7
+ A as INSTANT,
8
+ e as P14_TRANSITION_KEYFRAMES,
9
9
  l as P14_TRANSITION_KEYFRAMES_2,
10
- R as P14_TRANSITION_KEYFRAMES_ALL,
11
- L as PresentationTransitionOverlay,
12
- c as RANDOM_ELIGIBLE_TYPES,
10
+ S as P14_TRANSITION_KEYFRAMES_ALL,
11
+ P as PresentationTransitionOverlay,
12
+ O as RANDOM_ELIGIBLE_TYPES,
13
13
  a as SLIDE_TRANSITION_KEYFRAMES,
14
- _ as SLIDE_TRANSITION_KEYFRAMES_CSS,
15
- I as TRANSITION_SPEED_DURATION_MS,
16
- r as WHEEL_SPOKE_COUNTS,
17
- A as getCinematicTransitionAnimations,
18
- t as getP14TransitionAnimations,
19
- i as getSlideTransitionAnimations,
20
- M as resolveDirection,
21
- T as resolveDirection8,
22
- n as resolveOrientation,
23
- e as resolveSlideTransition,
24
- O as resolveTransitionDurationMs,
25
- E as resolveWheelSpokeCount
14
+ R as SLIDE_TRANSITION_KEYFRAMES_CSS,
15
+ E as TRANSITION_SPEED_DURATION_MS,
16
+ M as WHEEL_SPOKE_COUNTS,
17
+ L as getCinematicTransitionAnimations,
18
+ v as getP14TransitionAnimations,
19
+ n as getSlideTransitionAnimations,
20
+ F as resolveDirection,
21
+ I as resolveDirection8,
22
+ i as resolveOrientation,
23
+ o as resolveSlideTransition,
24
+ t as resolveTransitionDurationMs,
25
+ _ as resolveWheelSpokeCount
26
26
  };