pptx-svelte-viewer 3.20.0 → 3.20.2
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 +72 -0
- package/dist/{AiChatPanel-BQMTzmyn.js → AiChatPanel-BMqwxaiL.js} +2 -2
- package/dist/{export-C3n1_x3s.js → export-BgaECw4Y.js} +4920 -4916
- package/dist/index.d.ts +38 -0
- package/dist/index.js +17 -17
- package/dist/internals.d.ts +38 -0
- package/dist/internals.js +1 -1
- package/dist/{transition-overlay-CU6rrUCz.js → transition-overlay-CMzV6QTe.js} +23425 -23290
- package/dist/viewer/index.d.ts +38 -0
- package/dist/viewer/index.js +7 -7
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -935,6 +935,13 @@ interface ShapeStyle {
|
|
|
935
935
|
fillImageUrl?: string;
|
|
936
936
|
/** How the image is sized within the shape: stretch to fill, or tile/repeat. */
|
|
937
937
|
fillImageMode?: 'stretch' | 'tile';
|
|
938
|
+
/** Whether the image fill rotates/flips with the shape (`a:blipFill/@rotWithShape`).
|
|
939
|
+
* Defaults to true per the schema; preserved for round-trip when the source
|
|
940
|
+
* authored the attribute explicitly. When false, the shape's own geometry
|
|
941
|
+
* (clip-path/outline) still carries the shape's rotation/flip, but the
|
|
942
|
+
* picture content inside stays fixed to the page frame (upright), matching
|
|
943
|
+
* PowerPoint. See `pptx-viewer-shared`'s `getImageFillCounterTransform`. */
|
|
944
|
+
fillImageRotWithShape?: boolean;
|
|
938
945
|
fillGradientStops?: Array<{
|
|
939
946
|
color: string;
|
|
940
947
|
position: number;
|
|
@@ -2395,6 +2402,13 @@ type PptxChartPictureFormat = 'stretch' | 'stack' | 'stackScale';
|
|
|
2395
2402
|
* "Picture or texture fill" with "Stack"/"Stretch" semantics on a bar/column
|
|
2396
2403
|
* data point, distinct from the point's plain `c:spPr` solid/gradient fill.
|
|
2397
2404
|
*
|
|
2405
|
+
* `c:pictureOptions` is optional: a point/series whose `c:spPr` carries a bare
|
|
2406
|
+
* `a:blipFill` with NO `c:pictureOptions` sibling at all is still a fully
|
|
2407
|
+
* legal, common picture fill (PowerPoint's own default "stretch, no stack"
|
|
2408
|
+
* when the format pane never touched the stack settings); `parseChartDataPointPicture`
|
|
2409
|
+
* synthesizes this descriptor (`pictureFormat: 'stretch'`) in that case so the
|
|
2410
|
+
* SAME render pipeline resolves it, rather than silently dropping the fill.
|
|
2411
|
+
*
|
|
2398
2412
|
* The flags parse purely (`parseChartDataPointPicture` in
|
|
2399
2413
|
* `utils/chart-datapoint-serializer.ts`); {@link imageUrl} is a separate,
|
|
2400
2414
|
* later addition populated by the runtime (`PptxHandlerRuntimeChartParsing.ts`)
|
|
@@ -2420,6 +2434,12 @@ interface PptxChartDataPointPicture {
|
|
|
2420
2434
|
* when the point has no picture fill or the image could not be resolved.
|
|
2421
2435
|
*/
|
|
2422
2436
|
imageUrl?: string;
|
|
2437
|
+
/**
|
|
2438
|
+
* Effective opacity (0-1) from the blip's `a:alphaModFix/@amt` (a
|
|
2439
|
+
* thousandths-of-a-percent value, so `amt="60000"` is `0.6`). `undefined`
|
|
2440
|
+
* when the blip carries no `alphaModFix`, meaning fully opaque.
|
|
2441
|
+
*/
|
|
2442
|
+
opacity?: number;
|
|
2423
2443
|
}
|
|
2424
2444
|
//#endregion
|
|
2425
2445
|
//#region src/core/types/chart-pivot-format.d.ts
|
|
@@ -3073,6 +3093,17 @@ interface PptxChartDataPoint {
|
|
|
3073
3093
|
bubble3D?: boolean;
|
|
3074
3094
|
/** Per-point picture-fill flags (`c:dPt/c:pictureOptions`). */
|
|
3075
3095
|
picture?: PptxChartDataPointPicture;
|
|
3096
|
+
/**
|
|
3097
|
+
* A picture fill implied by a bare `c:dPt/c:spPr/a:blipFill` with NO
|
|
3098
|
+
* sibling `c:pictureOptions` at all: still a fully legal "stretch, no
|
|
3099
|
+
* stack" picture fill, just one PowerPoint's format pane never touched the
|
|
3100
|
+
* stack settings for. Render-derived only: unlike {@link picture}, this is
|
|
3101
|
+
* never written back on save (the original, untouched `c:spPr` already
|
|
3102
|
+
* round-trips verbatim), so populating it can never desync the saved file
|
|
3103
|
+
* from what was authored. See `chart-datapoint-picture.ts`'s
|
|
3104
|
+
* `parseImplicitBlipPictureFill`.
|
|
3105
|
+
*/
|
|
3106
|
+
impliedPicture?: PptxChartDataPointPicture;
|
|
3076
3107
|
/**
|
|
3077
3108
|
* This point's identity GUID (`c:dPt/c:extLst/c:ext/c16:uniqueId/@val`,
|
|
3078
3109
|
* the Office 2014+ `{C3380CC4-5D6E-409C-BE32-E72D297353CC}` chart
|
|
@@ -3439,6 +3470,13 @@ interface PptxChartSeries {
|
|
|
3439
3470
|
* when the point has none of its own.
|
|
3440
3471
|
*/
|
|
3441
3472
|
picture?: PptxChartDataPointPicture;
|
|
3473
|
+
/**
|
|
3474
|
+
* A picture fill implied by a bare `c:ser/c:spPr/a:blipFill` with NO
|
|
3475
|
+
* sibling `c:pictureOptions` at all. See
|
|
3476
|
+
* {@link PptxChartDataPoint.impliedPicture}'s doc comment: same
|
|
3477
|
+
* render-only, never-serialized-back convention, at the series level.
|
|
3478
|
+
*/
|
|
3479
|
+
impliedPicture?: PptxChartDataPointPicture;
|
|
3442
3480
|
/**
|
|
3443
3481
|
* This series' identity GUID (`c:ser/c:extLst/c:ext/c16:uniqueId/@val`,
|
|
3444
3482
|
* the Office 2014+ `{C3380CC4-5D6E-409C-BE32-E72D297353CC}` chart
|
package/dist/index.js
CHANGED
|
@@ -1,40 +1,40 @@
|
|
|
1
|
-
import { Al as e, Ec as a, El as o,
|
|
2
|
-
import { i as
|
|
3
|
-
import { a as
|
|
1
|
+
import { Al as e, Ec as a, El as o, Im as r, Ju as t, Ld as i, Po as l, Qo as n, Zo as m, ac as S, bl as d, dh as p, ep as T, es as v, fh as g, fn as h, gl as P, ju as u, kl as c, lh as E, ph as f, qs as A, sn as k, sp as C, ts as N, uh as D } from "./transition-overlay-CMzV6QTe.js";
|
|
2
|
+
import { i as I } from "./translator-wOMMyMjv.js";
|
|
3
|
+
import { a as B, c as F, l as L, o as O, s as _, t as R, u as V } from "./export-BgaECw4Y.js";
|
|
4
4
|
import "./i18n.js";
|
|
5
5
|
export {
|
|
6
6
|
k as PPTX_OPEN_ACCEPT,
|
|
7
|
-
|
|
7
|
+
h as PRESENTATION_OPEN_EXTENSIONS,
|
|
8
8
|
R as PowerPointViewer,
|
|
9
9
|
l as createImageElementFromFile,
|
|
10
10
|
m as defaultCssVars,
|
|
11
11
|
n as defaultRadius,
|
|
12
|
-
|
|
12
|
+
v as defaultThemeColors,
|
|
13
13
|
N as deleteAutosaveSnapshot,
|
|
14
14
|
O as exportAllSlidesToSvg,
|
|
15
15
|
_ as exportAllSlidesToSvgBlobs,
|
|
16
|
-
|
|
16
|
+
F as exportSlideAsSvg,
|
|
17
17
|
L as exportSlideToSvg,
|
|
18
18
|
V as exportSlideToSvgBlob,
|
|
19
19
|
A as forgetSessionDeck,
|
|
20
20
|
S as getAutosaveSnapshot,
|
|
21
21
|
a as getSessionTabId,
|
|
22
|
-
|
|
22
|
+
P as isLegacyBinaryPresentation,
|
|
23
23
|
d as isSupportedPresentationFile,
|
|
24
24
|
o as listAutosaveSnapshots,
|
|
25
|
-
|
|
25
|
+
c as loadPresentationDeck,
|
|
26
26
|
e as loadSessionDeck,
|
|
27
|
-
|
|
27
|
+
u as parsePresentationSessionId,
|
|
28
28
|
t as presentationBaseName,
|
|
29
|
-
|
|
29
|
+
I as registerTranslations,
|
|
30
30
|
i as rememberSessionDeck,
|
|
31
|
-
|
|
32
|
-
|
|
31
|
+
B as renderToCanvas,
|
|
32
|
+
T as restoreSessionDeck,
|
|
33
33
|
C as savedPresentationFileName,
|
|
34
34
|
r as themeToCssVars,
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
35
|
+
E as vermilionDarkColors,
|
|
36
|
+
D as vermilionDarkTheme,
|
|
37
|
+
p as vermilionLightColors,
|
|
38
|
+
g as vermilionLightTheme,
|
|
39
|
+
f as vermilionRadius
|
|
40
40
|
};
|
package/dist/internals.d.ts
CHANGED
|
@@ -933,6 +933,13 @@ interface ShapeStyle {
|
|
|
933
933
|
fillImageUrl?: string;
|
|
934
934
|
/** How the image is sized within the shape: stretch to fill, or tile/repeat. */
|
|
935
935
|
fillImageMode?: 'stretch' | 'tile';
|
|
936
|
+
/** Whether the image fill rotates/flips with the shape (`a:blipFill/@rotWithShape`).
|
|
937
|
+
* Defaults to true per the schema; preserved for round-trip when the source
|
|
938
|
+
* authored the attribute explicitly. When false, the shape's own geometry
|
|
939
|
+
* (clip-path/outline) still carries the shape's rotation/flip, but the
|
|
940
|
+
* picture content inside stays fixed to the page frame (upright), matching
|
|
941
|
+
* PowerPoint. See `pptx-viewer-shared`'s `getImageFillCounterTransform`. */
|
|
942
|
+
fillImageRotWithShape?: boolean;
|
|
936
943
|
fillGradientStops?: Array<{
|
|
937
944
|
color: string;
|
|
938
945
|
position: number;
|
|
@@ -2312,6 +2319,13 @@ type PptxChartPictureFormat = 'stretch' | 'stack' | 'stackScale';
|
|
|
2312
2319
|
* "Picture or texture fill" with "Stack"/"Stretch" semantics on a bar/column
|
|
2313
2320
|
* data point, distinct from the point's plain `c:spPr` solid/gradient fill.
|
|
2314
2321
|
*
|
|
2322
|
+
* `c:pictureOptions` is optional: a point/series whose `c:spPr` carries a bare
|
|
2323
|
+
* `a:blipFill` with NO `c:pictureOptions` sibling at all is still a fully
|
|
2324
|
+
* legal, common picture fill (PowerPoint's own default "stretch, no stack"
|
|
2325
|
+
* when the format pane never touched the stack settings); `parseChartDataPointPicture`
|
|
2326
|
+
* synthesizes this descriptor (`pictureFormat: 'stretch'`) in that case so the
|
|
2327
|
+
* SAME render pipeline resolves it, rather than silently dropping the fill.
|
|
2328
|
+
*
|
|
2315
2329
|
* The flags parse purely (`parseChartDataPointPicture` in
|
|
2316
2330
|
* `utils/chart-datapoint-serializer.ts`); {@link imageUrl} is a separate,
|
|
2317
2331
|
* later addition populated by the runtime (`PptxHandlerRuntimeChartParsing.ts`)
|
|
@@ -2337,6 +2351,12 @@ interface PptxChartDataPointPicture {
|
|
|
2337
2351
|
* when the point has no picture fill or the image could not be resolved.
|
|
2338
2352
|
*/
|
|
2339
2353
|
imageUrl?: string;
|
|
2354
|
+
/**
|
|
2355
|
+
* Effective opacity (0-1) from the blip's `a:alphaModFix/@amt` (a
|
|
2356
|
+
* thousandths-of-a-percent value, so `amt="60000"` is `0.6`). `undefined`
|
|
2357
|
+
* when the blip carries no `alphaModFix`, meaning fully opaque.
|
|
2358
|
+
*/
|
|
2359
|
+
opacity?: number;
|
|
2340
2360
|
}
|
|
2341
2361
|
//#endregion
|
|
2342
2362
|
//#region src/core/types/chart-pivot-format.d.ts
|
|
@@ -2990,6 +3010,17 @@ interface PptxChartDataPoint {
|
|
|
2990
3010
|
bubble3D?: boolean;
|
|
2991
3011
|
/** Per-point picture-fill flags (`c:dPt/c:pictureOptions`). */
|
|
2992
3012
|
picture?: PptxChartDataPointPicture;
|
|
3013
|
+
/**
|
|
3014
|
+
* A picture fill implied by a bare `c:dPt/c:spPr/a:blipFill` with NO
|
|
3015
|
+
* sibling `c:pictureOptions` at all: still a fully legal "stretch, no
|
|
3016
|
+
* stack" picture fill, just one PowerPoint's format pane never touched the
|
|
3017
|
+
* stack settings for. Render-derived only: unlike {@link picture}, this is
|
|
3018
|
+
* never written back on save (the original, untouched `c:spPr` already
|
|
3019
|
+
* round-trips verbatim), so populating it can never desync the saved file
|
|
3020
|
+
* from what was authored. See `chart-datapoint-picture.ts`'s
|
|
3021
|
+
* `parseImplicitBlipPictureFill`.
|
|
3022
|
+
*/
|
|
3023
|
+
impliedPicture?: PptxChartDataPointPicture;
|
|
2993
3024
|
/**
|
|
2994
3025
|
* This point's identity GUID (`c:dPt/c:extLst/c:ext/c16:uniqueId/@val`,
|
|
2995
3026
|
* the Office 2014+ `{C3380CC4-5D6E-409C-BE32-E72D297353CC}` chart
|
|
@@ -3356,6 +3387,13 @@ interface PptxChartSeries {
|
|
|
3356
3387
|
* when the point has none of its own.
|
|
3357
3388
|
*/
|
|
3358
3389
|
picture?: PptxChartDataPointPicture;
|
|
3390
|
+
/**
|
|
3391
|
+
* A picture fill implied by a bare `c:ser/c:spPr/a:blipFill` with NO
|
|
3392
|
+
* sibling `c:pictureOptions` at all. See
|
|
3393
|
+
* {@link PptxChartDataPoint.impliedPicture}'s doc comment: same
|
|
3394
|
+
* render-only, never-serialized-back convention, at the series level.
|
|
3395
|
+
*/
|
|
3396
|
+
impliedPicture?: PptxChartDataPointPicture;
|
|
3359
3397
|
/**
|
|
3360
3398
|
* This series' identity GUID (`c:ser/c:extLst/c:ext/c16:uniqueId/@val`,
|
|
3361
3399
|
* the Office 2014+ `{C3380CC4-5D6E-409C-BE32-E72D297353CC}` chart
|
package/dist/internals.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Bn as a, Kf as n, Oc as i, Pf as T, Ut as t, Vn as S, Xf as e, bf as _, cc as A, cr as E, ft as I, gr as o, ht as r, in as N, nn as R, rn as O, t as M, tt as D, wn as l, xt as P, yc as L, yf as c, zf as f } from "./transition-overlay-
|
|
1
|
+
import { Bn as a, Kf as n, Oc as i, Pf as T, Ut as t, Vn as S, Xf as e, bf as _, cc as A, cr as E, ft as I, gr as o, ht as r, in as N, nn as R, rn as O, t as M, tt as D, wn as l, xt as P, yc as L, yf as c, zf as f } from "./transition-overlay-CMzV6QTe.js";
|
|
2
2
|
export {
|
|
3
3
|
D as CINEMATIC_TRANSITION_KEYFRAMES,
|
|
4
4
|
I as DEFAULT_MORPH_DURATION_MS,
|