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/CHANGELOG.md +6 -0
- package/dist/{AiChatPanel-C4TquPtV.js → AiChatPanel-fey6hh2R.js} +6 -6
- package/dist/{export-CKRGg8D0.js → export-DoyAdIHl.js} +12771 -12937
- package/dist/index.d.ts +48 -1
- package/dist/index.js +36 -36
- package/dist/internals.d.ts +48 -1
- package/dist/internals.js +21 -21
- package/dist/pptx-svelte-viewer.css +1 -1
- package/dist/{transition-overlay-DIPxa90i.js → transition-overlay-BcUomRXK.js} +48581 -46717
- package/dist/viewer/index.d.ts +66 -19
- package/dist/viewer/index.js +5 -5
- package/package.json +1 -1
- package/dist/smartart-3d-D1MLYTBe.js +0 -290
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 {
|
|
2
|
-
import { i as
|
|
3
|
-
import { a as
|
|
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
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
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
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
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
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
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
|
};
|
package/dist/internals.d.ts
CHANGED
|
@@ -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 {
|
|
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
|
-
|
|
4
|
-
|
|
3
|
+
T as CINEMATIC_TRANSITION_KEYFRAMES,
|
|
4
|
+
D as DEFAULT_MORPH_DURATION_MS,
|
|
5
5
|
N as DEFAULT_TRANSITION_DURATION_MS,
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
r as EASE,
|
|
7
|
+
A as INSTANT,
|
|
8
|
+
e as P14_TRANSITION_KEYFRAMES,
|
|
9
9
|
l as P14_TRANSITION_KEYFRAMES_2,
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
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
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
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
|
};
|