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/viewer/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/viewer/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { A as e, M as a, c as l, d as S, f as n, i as v, j as o, l as d, m as p, n as b, o as m, p as c, r as g, s as x, t as w, u as
|
|
3
|
-
var
|
|
1
|
+
import { Mh as s, jh as i } from "../transition-overlay-CMzV6QTe.js";
|
|
2
|
+
import { A as e, M as a, c as l, d as S, f as n, i as v, j as o, l as d, m as p, n as b, o as m, p as c, r as g, s as x, t as w, u as T } from "../export-BgaECw4Y.js";
|
|
3
|
+
var A = a, P = o, V = e;
|
|
4
4
|
export {
|
|
5
5
|
w as PowerPointViewer,
|
|
6
6
|
v as PresentationLoader,
|
|
7
|
-
|
|
7
|
+
A as Ribbon,
|
|
8
8
|
V as SlideCanvas,
|
|
9
9
|
g as ViewerState,
|
|
10
10
|
P as ViewerToolbar,
|
|
@@ -15,9 +15,9 @@ export {
|
|
|
15
15
|
x as exportAllSlidesToSvgBlobs,
|
|
16
16
|
l as exportSlideAsSvg,
|
|
17
17
|
d as exportSlideToSvg,
|
|
18
|
-
|
|
18
|
+
T as exportSlideToSvgBlob,
|
|
19
19
|
n as fitScale,
|
|
20
20
|
c as resolveNavigationKey,
|
|
21
|
-
|
|
22
|
-
|
|
21
|
+
i as zoomInPercent,
|
|
22
|
+
s as zoomOutPercent
|
|
23
23
|
};
|