pptx-svelte-viewer 4.7.0 → 4.8.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 +66 -0
- package/dist/{AiChatPanel-UtQgHZdw.js → AiChatPanel-DlPmzYrj.js} +2 -2
- package/dist/{export-BmYgdMk2.js → export-eOlnlLkp.js} +1396 -1395
- package/dist/i18n/de.cjs +64 -96
- package/dist/i18n/de.mjs +64 -96
- package/dist/i18n/es.cjs +64 -96
- package/dist/i18n/es.mjs +64 -96
- package/dist/i18n/fr.cjs +64 -96
- package/dist/i18n/fr.mjs +64 -96
- package/dist/i18n/zh-CN.cjs +63 -95
- package/dist/i18n/zh-CN.mjs +63 -95
- package/dist/i18n.js +1 -1
- package/dist/index.d.ts +82 -3
- package/dist/index.js +41 -41
- package/dist/internals.d.ts +58 -3
- package/dist/internals.js +18 -18
- package/dist/{transition-overlay-BjAhkWT1.js → transition-overlay-DKx4G_5w.js} +63450 -47481
- package/dist/{translator-D5VddVYr.js → translator-BTAuI1KR.js} +63 -95
- package/dist/viewer/index.d.ts +99 -3
- package/dist/viewer/index.js +2 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,55 +1,55 @@
|
|
|
1
|
-
import { $u as a, An as e, At as o, Ef as r, F as t, Fr as i,
|
|
2
|
-
import { i as y } from "./translator-
|
|
3
|
-
import { M as K, a as
|
|
1
|
+
import { $u as a, An as e, At as o, Ef as r, F as t, Fr as i, Hl as S, Ir as _, Lu as T, Ms as l, N as n, Pr as E, Rr as I, Tn as A, Tt as m, Uu as D, Vm as N, Xn as O, Ym as d, Yu as P, _p as C, a_ as p, cc as R, dc as c, ed as g, fc as v, fn as u, gc as f, i_ as B, kg as h, lc as M, ll as V, mn as k, o_ as x, pn as F, r_ as L, s_ as b, sf as G, xl as U, xr as X, z as W } from "./transition-overlay-DKx4G_5w.js";
|
|
2
|
+
import { i as y } from "./translator-BTAuI1KR.js";
|
|
3
|
+
import { M as K, a as Y, c as z, l as $, o as j, s as q, t as J } from "./export-eOlnlLkp.js";
|
|
4
4
|
import "./i18n.js";
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
n as BACKSTAGE_CARD_IDS,
|
|
7
7
|
t as BACKSTAGE_PAGE_IDS,
|
|
8
8
|
W as CANVAS_CONTEXT_MENU_COMMAND_IDS,
|
|
9
|
-
|
|
9
|
+
m as EDITOR_SHORTCUT_ACTION_IDS,
|
|
10
10
|
o as ELEMENT_CONTEXT_MENU_COMMAND_IDS,
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
11
|
+
u as OPTIONS_PAGE_IDS,
|
|
12
|
+
F as OPTIONS_SECTION_IDS,
|
|
13
|
+
k as OPTIONS_SETTING_IDS,
|
|
14
|
+
A as PPTX_OPEN_ACCEPT,
|
|
15
15
|
e as PRESENTATION_OPEN_EXTENSIONS,
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
16
|
+
J as PowerPointViewer,
|
|
17
|
+
O as RIBBON_TAB_IDS,
|
|
18
|
+
X as TOOLBAR_BUTTON_IDS,
|
|
19
|
+
E as VIEWER_DIALOG_IDS,
|
|
20
20
|
i as VIEWER_EXPORT_FORMAT_IDS,
|
|
21
21
|
_ as VIEWER_FEATURE_IDS,
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
22
|
+
I as VIEWER_PANEL_IDS,
|
|
23
|
+
l as createImageElementFromFile,
|
|
24
|
+
R as defaultCssVars,
|
|
25
|
+
M as defaultRadius,
|
|
26
|
+
c as defaultThemeColors,
|
|
27
|
+
v as deleteAutosaveSnapshot,
|
|
28
|
+
f as describeCollaborationShellState,
|
|
29
|
+
Y as exportAllSlidesToSvg,
|
|
30
|
+
j as exportAllSlidesToSvgBlobs,
|
|
31
|
+
q as exportSlideAsSvg,
|
|
32
|
+
z as exportSlideToSvg,
|
|
33
|
+
$ as exportSlideToSvgBlob,
|
|
34
|
+
V as forgetSessionDeck,
|
|
35
|
+
U as getAutosaveSnapshot,
|
|
36
|
+
S as getSessionTabId,
|
|
37
37
|
T as isLegacyBinaryPresentation,
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
38
|
+
D as isSupportedPresentationFile,
|
|
39
|
+
P as listAutosaveSnapshots,
|
|
40
|
+
a as loadPresentationDeck,
|
|
41
|
+
g as loadSessionDeck,
|
|
42
|
+
G as parsePresentationSessionId,
|
|
43
43
|
r as presentationBaseName,
|
|
44
44
|
y as registerTranslations,
|
|
45
|
-
|
|
45
|
+
C as rememberSessionDeck,
|
|
46
46
|
K as renderToCanvas,
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
47
|
+
N as restoreSessionDeck,
|
|
48
|
+
d as savedPresentationFileName,
|
|
49
|
+
h as themeToCssVars,
|
|
50
50
|
L as vermilionDarkColors,
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
51
|
+
B as vermilionDarkTheme,
|
|
52
|
+
p as vermilionLightColors,
|
|
53
|
+
x as vermilionLightTheme,
|
|
54
|
+
b as vermilionRadius
|
|
55
55
|
};
|
package/dist/internals.d.ts
CHANGED
|
@@ -1293,6 +1293,13 @@ interface ShapeStyle {
|
|
|
1293
1293
|
* `authored-shape-style.ts`'s `effectIsPurelyStyleMatrix`.
|
|
1294
1294
|
*/
|
|
1295
1295
|
inheritedEffectStyle?: ShapeStyle;
|
|
1296
|
+
/**
|
|
1297
|
+
* Set by a style-matrix pick (the Shape Styles gallery): the shape's own
|
|
1298
|
+
* `spPr` fill, outline and effects were replaced by `<p:style>`, so the
|
|
1299
|
+
* writer clears whatever the retained `spPr` still authored before it
|
|
1300
|
+
* writes the (now reference-owned) style. Never parsed; editor state only.
|
|
1301
|
+
*/
|
|
1302
|
+
styleMatrixReset?: boolean;
|
|
1296
1303
|
}
|
|
1297
1304
|
//#endregion
|
|
1298
1305
|
//#region src/core/types/text.d.ts
|
|
@@ -2267,6 +2274,22 @@ interface TextSegment {
|
|
|
2267
2274
|
* Used by the renderer to apply font family, colour, etc. to the `<rt>` element.
|
|
2268
2275
|
*/
|
|
2269
2276
|
rubyStyle?: TextStyle;
|
|
2277
|
+
/**
|
|
2278
|
+
* The parsed `a:rubyPr` node, kept verbatim so its attributes (`hps`,
|
|
2279
|
+
* `hpsRaise`, `hpsBaseText`, `lid`, ...) round-trip exactly; only an
|
|
2280
|
+
* edited {@link rubyAlignment} is written over it on save.
|
|
2281
|
+
*/
|
|
2282
|
+
rubyPropertiesXml?: XmlObject;
|
|
2283
|
+
/**
|
|
2284
|
+
* What each of a ruby run's two base-side `a:rPr`s authored on its own:
|
|
2285
|
+
* `outer` is the containing `a:r`'s, `base` the `a:rubyBase` run's. The
|
|
2286
|
+
* flat {@link style} merges both for rendering; these let the writer give
|
|
2287
|
+
* each `a:rPr` back only its own properties (plus any later edit).
|
|
2288
|
+
*/
|
|
2289
|
+
rubyRunAuthoredStyles?: {
|
|
2290
|
+
outer?: TextStyle;
|
|
2291
|
+
base?: TextStyle;
|
|
2292
|
+
};
|
|
2270
2293
|
}
|
|
2271
2294
|
//#endregion
|
|
2272
2295
|
//#region src/core/types/element-base.d.ts
|
|
@@ -4055,6 +4078,14 @@ interface PptxChartData {
|
|
|
4055
4078
|
style?: PptxChartStyle;
|
|
4056
4079
|
/** Grouping mode for bar/area/line charts: 'clustered' | 'stacked' | 'percentStacked' */
|
|
4057
4080
|
grouping?: 'clustered' | 'stacked' | 'percentStacked';
|
|
4081
|
+
/**
|
|
4082
|
+
* The source `c:grouping` was `standard`, which {@link grouping} folds into
|
|
4083
|
+
* `'clustered'` (a 2D bar chart draws the two the same). A 3D chart draws
|
|
4084
|
+
* `standard` differently: each series on its own depth row. The writer
|
|
4085
|
+
* emits `standard` again while `grouping` is still `'clustered'`, so the
|
|
4086
|
+
* chart round-trips unchanged.
|
|
4087
|
+
*/
|
|
4088
|
+
groupingStandard?: boolean;
|
|
4058
4089
|
/**
|
|
4059
4090
|
* Whether the first (or only) series varies its point colours
|
|
4060
4091
|
* (`c:varyColors/@val`). Pie/doughnut default this on; single-series
|
|
@@ -5452,6 +5483,14 @@ interface PptxSmartArtNode {
|
|
|
5452
5483
|
* quick-style variation) applied to every other node.
|
|
5453
5484
|
*/
|
|
5454
5485
|
coherent3DOff?: boolean;
|
|
5486
|
+
/**
|
|
5487
|
+
* The layout variables PowerPoint recorded for each presentation node
|
|
5488
|
+
* this point drives (`dgm:prSet/@presName` -> `dgm:presLayoutVars`
|
|
5489
|
+
* variable -> `@val`), e.g. `{ hierRoot1: { hierBranch: 'l' } }` for an
|
|
5490
|
+
* org-chart manager set to "Left Hanging". Read-only: the presentation
|
|
5491
|
+
* points themselves round-trip verbatim.
|
|
5492
|
+
*/
|
|
5493
|
+
presLayoutVarsByName?: Record<string, Record<string, string>>;
|
|
5455
5494
|
/**
|
|
5456
5495
|
* Per-run text + run-properties for the node's first paragraph, captured at
|
|
5457
5496
|
* parse time. When the joined run text still equals {@link text} (the node
|
|
@@ -5521,6 +5560,16 @@ interface PptxSmartArtQuickStyleLabel {
|
|
|
5521
5560
|
name: string;
|
|
5522
5561
|
/** Theme-resolved `dgm:style` refs for this label's role, when available. */
|
|
5523
5562
|
resolvedStyle?: PptxSmartArtResolvedStyleRef;
|
|
5563
|
+
/**
|
|
5564
|
+
* The label's own `dgm:scene3d` (per-shape camera + light rig). PowerPoint
|
|
5565
|
+
* copies it onto a shape's cached `a:scene3d` unless it is the default
|
|
5566
|
+
* front camera with a `threePt` light (see `applySmartArtQuickStyle3d`).
|
|
5567
|
+
*/
|
|
5568
|
+
scene3d?: Pptx3DScene;
|
|
5569
|
+
/** The label's own `dgm:sp3d` (bevel / extrusion / contour / material); absent when empty. */
|
|
5570
|
+
shape3d?: Pptx3DShape;
|
|
5571
|
+
/** The label's `dgm:txPr/a:sp3d` label-text extrusion (Bird's Eye Scene). */
|
|
5572
|
+
text3d?: Text3DStyle;
|
|
5524
5573
|
}
|
|
5525
5574
|
/** CT_CTStyleLabel metadata from a color-transform definition. */
|
|
5526
5575
|
interface PptxSmartArtColorStyleLabel {
|
|
@@ -5588,9 +5637,10 @@ interface PptxSmartArtQuickStyle extends PptxSmartArtDefinitionMetadata {
|
|
|
5588
5637
|
* for the "Scene" quick styles (Brick, Flat, Metallic, Sunset, Bird's Eye
|
|
5589
5638
|
* Scene). One camera renders the whole diagram; per-shape `a:scene3d` is
|
|
5590
5639
|
* absent for those styles (see `PptxSmartArtDrawingShape.scene3d`). Each
|
|
5591
|
-
* `dgm:styleLbl` also carries its own per-label `dgm:scene3d`/`dgm:sp3d
|
|
5592
|
-
*
|
|
5593
|
-
*
|
|
5640
|
+
* `dgm:styleLbl` also carries its own per-label `dgm:scene3d`/`dgm:sp3d`
|
|
5641
|
+
* ({@link PptxSmartArtQuickStyleLabel.scene3d} / `shape3d` / `text3d`),
|
|
5642
|
+
* which PowerPoint bakes onto each cached shape; they are re-applied when a
|
|
5643
|
+
* structural edit regenerates the shapes.
|
|
5594
5644
|
*/
|
|
5595
5645
|
scene3d?: Pptx3DScene;
|
|
5596
5646
|
}
|
|
@@ -5721,6 +5771,11 @@ interface PptxSmartArtDrawingShape extends PptxCustomPathProperties {
|
|
|
5721
5771
|
fillNone?: boolean;
|
|
5722
5772
|
/** Solid fill colour (hex). */
|
|
5723
5773
|
fillColor?: string;
|
|
5774
|
+
/**
|
|
5775
|
+
* Opacity (0..1) of the solid fill, from the colour's `a:alpha` (Basic Venn
|
|
5776
|
+
* paints its circles at 50% so overlaps blend). Absent when opaque.
|
|
5777
|
+
*/
|
|
5778
|
+
fillOpacity?: number;
|
|
5724
5779
|
/**
|
|
5725
5780
|
* Gradient fill stops when the cached shape uses `a:gradFill`. Positions are
|
|
5726
5781
|
* 0..100 (percent). Renderers emit an SVG/CSS gradient instead of a flat box.
|
package/dist/internals.js
CHANGED
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Ct as a, Fl as T, Hn as n, Lm as i, Nm as e, Or as S, Tm as _, Vr as t, Wl as A, Y as E, _t as o, ar as I, bn as r, em as N, en as R, mt as O, or as l, t as m, tm as M, wl as D, xn as L, ym as F, yn as P } from "./transition-overlay-DKx4G_5w.js";
|
|
2
2
|
export {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
3
|
+
E as CINEMATIC_TRANSITION_KEYFRAMES,
|
|
4
|
+
O as DEFAULT_MORPH_DURATION_MS,
|
|
5
|
+
o as DEFAULT_TRANSITION_DURATION_MS,
|
|
6
|
+
a as EASE,
|
|
7
|
+
R as INSTANT,
|
|
8
|
+
P as P14_TRANSITION_KEYFRAMES,
|
|
9
|
+
r as P14_TRANSITION_KEYFRAMES_2,
|
|
10
10
|
L as P14_TRANSITION_KEYFRAMES_ALL,
|
|
11
|
-
|
|
11
|
+
m as PresentationTransitionOverlay,
|
|
12
12
|
n as RANDOM_ELIGIBLE_TYPES,
|
|
13
|
-
|
|
14
|
-
|
|
13
|
+
I as SLIDE_TRANSITION_KEYFRAMES,
|
|
14
|
+
l as SLIDE_TRANSITION_KEYFRAMES_CSS,
|
|
15
15
|
S as TRANSITION_SPEED_DURATION_MS,
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
16
|
+
t as WHEEL_SPOKE_COUNTS,
|
|
17
|
+
D as getCinematicTransitionAnimations,
|
|
18
|
+
T as getP14TransitionAnimations,
|
|
19
19
|
A as getSlideTransitionAnimations,
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
20
|
+
N as resolveDirection,
|
|
21
|
+
M as resolveDirection8,
|
|
22
|
+
F as resolveOrientation,
|
|
23
|
+
_ as resolveSlideTransition,
|
|
24
24
|
e as resolveTransitionDurationMs,
|
|
25
25
|
i as resolveWheelSpokeCount
|
|
26
26
|
};
|