pptx-vue-viewer 1.1.11 → 1.1.13
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.cjs +1 -1
- package/dist/index.cjs.br +0 -0
- package/dist/index.cjs.gz +0 -0
- package/dist/index.js +1 -1
- package/dist/index.js.br +0 -0
- package/dist/index.js.gz +0 -0
- package/dist/viewer/PowerPointViewer.vue.d.ts.map +1 -1
- package/dist/viewer/components/SlideCanvas.vue.d.ts +12 -1
- package/dist/viewer/components/SlideCanvas.vue.d.ts.map +1 -1
- package/dist/viewer/components/TableRenderer.vue.d.ts.map +1 -1
- package/dist/viewer/composables/visual-3d.d.ts +6 -69
- package/dist/viewer/composables/visual-3d.d.ts.map +1 -1
- package/dist/viewer/index.cjs +1 -1
- package/dist/viewer/index.cjs.br +0 -0
- package/dist/viewer/index.cjs.gz +0 -0
- package/dist/viewer/index.js +1 -1
- package/dist/viewer/index.js.br +0 -0
- package/dist/viewer/index.js.gz +0 -0
- package/dist/{viewer-QlecshSv.js → viewer-DOKNVF1b.js} +3592 -3570
- package/dist/viewer-DOKNVF1b.js.br +0 -0
- package/dist/{viewer-QlecshSv.js.gz → viewer-DOKNVF1b.js.gz} +0 -0
- package/dist/{viewer-E6C9jlVo.cjs → viewer-QVDbby6z.cjs} +3657 -3635
- package/dist/viewer-QVDbby6z.cjs.br +0 -0
- package/dist/{viewer-E6C9jlVo.cjs.gz → viewer-QVDbby6z.cjs.gz} +0 -0
- package/package.json +1 -1
- package/dist/viewer/composables/table-style.d.ts +0 -36
- package/dist/viewer/composables/table-style.d.ts.map +0 -1
- package/dist/viewer-E6C9jlVo.cjs.br +0 -0
- package/dist/viewer-QlecshSv.js.br +0 -0
package/dist/index.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const e = require("./viewer-
|
|
2
|
+
const e = require("./viewer-QVDbby6z.cjs");
|
|
3
3
|
let r = require("clsx"), t = require("tailwind-merge");
|
|
4
4
|
exports.ElementRenderer = e.ElementRenderer_default, exports.PowerPointViewer = e.PowerPointViewer_default, exports.SlideCanvas = e.SlideCanvas_default, exports.SlideStage = e.SlideStage_default, exports.cn = function(...e) {
|
|
5
5
|
return (0, t.twMerge)((0, r.clsx)(e));
|
package/dist/index.cjs.br
CHANGED
|
Binary file
|
package/dist/index.cjs.gz
CHANGED
|
Binary file
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { C as a, F as s, N as e, P as r, R as i, S as o, a as t, o as m, s as n, t as l, w } from "./viewer-
|
|
1
|
+
import { C as a, F as s, N as e, P as r, R as i, S as o, a as t, o as m, s as n, t as l, w } from "./viewer-DOKNVF1b.js";
|
|
2
2
|
import { clsx as d } from "clsx";
|
|
3
3
|
import { twMerge as f } from "tailwind-merge";
|
|
4
4
|
function p(...a) {
|
package/dist/index.js.br
CHANGED
|
Binary file
|
package/dist/index.js.gz
CHANGED
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PowerPointViewer.vue.d.ts","sourceRoot":"","sources":["../../src/viewer/PowerPointViewer.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"PowerPointViewer.vue.d.ts","sourceRoot":"","sources":["../../src/viewer/PowerPointViewer.vue"],"names":[],"mappings":"AA+wCA,OAAO,KAAK,EACX,mBAAmB,EAEnB,sBAAsB,EACtB,qBAAqB,EACrB,MAAM,SAAS,CAAC;AA28DjB,QAAA,MAAM,YAAY;;;;;;;;;;;;;;;;6EAKhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
|
|
@@ -7,18 +7,29 @@ import { CanvasSize } from '../types';
|
|
|
7
7
|
* The React version additionally layered in rulers, grid, guides, marquee/
|
|
8
8
|
* selection, connector-creation, drawing, and collaboration overlays — all
|
|
9
9
|
* tracked in PORTING.md.
|
|
10
|
+
*
|
|
11
|
+
* Responsive sizing: the slide has a fixed authored pixel size (e.g. 1280×720),
|
|
12
|
+
* which overflows small/mobile viewports. We measure the scroll viewport and
|
|
13
|
+
* emit a `fitScale` (how much the slide must shrink to fit, capped at 1, never
|
|
14
|
+
* upscaling) so the parent can fold it into the effective zoom — mirroring the
|
|
15
|
+
* React viewer's `fitScale * scale` model where "100%" means "fit to viewport".
|
|
10
16
|
*/
|
|
11
17
|
type __VLS_Props = {
|
|
12
18
|
slide: PptxSlide | undefined;
|
|
13
19
|
canvasSize: CanvasSize;
|
|
14
20
|
mediaDataUrls: Map<string, string>;
|
|
21
|
+
/** Effective scale (fitScale × user zoom) supplied by the parent. */
|
|
15
22
|
zoom?: number;
|
|
16
23
|
};
|
|
17
24
|
declare var __VLS_7: {};
|
|
18
25
|
type __VLS_Slots = {} & {
|
|
19
26
|
default?: (props: typeof __VLS_7) => any;
|
|
20
27
|
};
|
|
21
|
-
declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
28
|
+
declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
29
|
+
"update:fitScale": (args_0: number) => any;
|
|
30
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
31
|
+
"onUpdate:fitScale"?: ((args_0: number) => any) | undefined;
|
|
32
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
22
33
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
23
34
|
declare const _default: typeof __VLS_export;
|
|
24
35
|
export default _default;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SlideCanvas.vue.d.ts","sourceRoot":"","sources":["../../../src/viewer/components/SlideCanvas.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"SlideCanvas.vue.d.ts","sourceRoot":"","sources":["../../../src/viewer/components/SlideCanvas.vue"],"names":[],"mappings":"AAwGA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAIlD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAG3C;;;;;;;;;;;;;GAaG;AACH,KAAK,WAAW,GAAG;IAClB,KAAK,EAAE,SAAS,GAAG,SAAS,CAAC;IAC7B,UAAU,EAAE,UAAU,CAAC;IACvB,aAAa,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACnC,qEAAqE;IACrE,IAAI,CAAC,EAAE,MAAM,CAAC;CACd,CAAC;AA+GF,QAAA,IAAI,OAAO,IAAW,CAAE;AACxB,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,CAAC;AAO/C,QAAA,MAAM,UAAU;;;;kFAGd,CAAC;AACH,QAAA,MAAM,YAAY,EAAS,eAAe,CAAC,OAAO,UAAU,EAAE,WAAW,CAAC,CAAC;wBACtD,OAAO,YAAY;AAAxC,wBAAyC;AACzC,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KACV,CAAA;CACD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TableRenderer.vue.d.ts","sourceRoot":"","sources":["../../../src/viewer/components/TableRenderer.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"TableRenderer.vue.d.ts","sourceRoot":"","sources":["../../../src/viewer/components/TableRenderer.vue"],"names":[],"mappings":"AA6NA,OAAO,KAAK,EAAE,WAAW,EAAiB,MAAM,kBAAkB,CAAC;AAQnE;;;;;;;;;;;;;;;;;;GAkBG;AACH,KAAK,WAAW,GAAG;IAClB,OAAO,EAAE,WAAW,CAAC;IACrB,+EAA+E;IAC/E,aAAa,CAAC,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACpC,MAAM,EAAE,MAAM,CAAC;CACf,CAAC;AAsMF,QAAA,MAAM,YAAY,kSAEhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
|
|
@@ -1,74 +1,11 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Computed3dStyle } from 'pptx-viewer-shared';
|
|
2
2
|
import { CSSProperties } from 'vue';
|
|
3
|
-
|
|
4
|
-
export
|
|
5
|
-
transform?: string;
|
|
6
|
-
transformStyle?: string;
|
|
7
|
-
perspective?: string;
|
|
8
|
-
}
|
|
3
|
+
export { get3dTransformCss, getExtrusionBoxShadow, getContourBoxShadow, getBevelStyle, getMaterialFilter, getComputed3dStyle, } from 'pptx-viewer-shared';
|
|
4
|
+
export type { Transform3dCss, BevelCss, Computed3dStyle } from 'pptx-viewer-shared';
|
|
9
5
|
/**
|
|
10
|
-
*
|
|
11
|
-
*
|
|
12
|
-
*
|
|
13
|
-
* box-shadow depth (mirrors React's `apply3dEffects`).
|
|
14
|
-
*
|
|
15
|
-
* Returns `undefined` when there is nothing 3D to apply.
|
|
16
|
-
*/
|
|
17
|
-
export declare function get3dTransformCss(scene3d: Pptx3DScene | undefined, shape3d: Pptx3DShape | undefined): Transform3dCss | undefined;
|
|
18
|
-
/**
|
|
19
|
-
* Extrusion depth → layered `box-shadow`. Stacks up to {@link MAX_EXTRUSION_LAYERS}
|
|
20
|
-
* offset shadows (radiating per camera angle) with a final soft shadow for
|
|
21
|
-
* depth perception. Returns `undefined` when there is no extrusion.
|
|
22
|
-
*/
|
|
23
|
-
export declare function getExtrusionBoxShadow(shape3d: Pptx3DShape | undefined, cameraRotX?: number, cameraRotY?: number): string | undefined;
|
|
24
|
-
/** Contour (outline ring) → box-shadow. Returns `undefined` when no contour. */
|
|
25
|
-
export declare function getContourBoxShadow(shape3d: Pptx3DShape | undefined): string | undefined;
|
|
26
|
-
/** The CSS produced by {@link getBevelStyle}. */
|
|
27
|
-
export interface BevelCss {
|
|
28
|
-
boxShadow: string;
|
|
29
|
-
background?: string;
|
|
30
|
-
}
|
|
31
|
-
/**
|
|
32
|
-
* Bevel preset → inset `box-shadow` (top + bottom bevels combined), plus an
|
|
33
|
-
* optional background gradient for presets that benefit from one
|
|
34
|
-
* (convex/divot/softRound). Returns `undefined` when no bevel is present.
|
|
35
|
-
*/
|
|
36
|
-
export declare function getBevelStyle(shape3d: Pptx3DShape | undefined): BevelCss | undefined;
|
|
37
|
-
/** Material preset → CSS `filter`. Returns `undefined` when none/flat. */
|
|
38
|
-
export declare function getMaterialFilter(shape3d: Pptx3DShape | undefined): string | undefined;
|
|
39
|
-
/**
|
|
40
|
-
* Aggregate 3D CSS for a shape style's `scene3d`/`shape3d`.
|
|
41
|
-
*
|
|
42
|
-
* NOTE: the extrusion box-shadow is returned SEPARATELY as `extrusionBoxShadow`
|
|
43
|
-
* (and contour/bevel/material/backdrop shadows folded into `boxShadow`). The
|
|
44
|
-
* caller is expected to comma-join `extrusionBoxShadow` AND `boxShadow` with
|
|
45
|
-
* any pre-existing effect shadow rather than overwrite it. `filter`,
|
|
46
|
-
* `backgroundImage` and `opacity` should likewise be merged, not clobbered.
|
|
47
|
-
*/
|
|
48
|
-
export interface Computed3dStyle {
|
|
49
|
-
transform?: string;
|
|
50
|
-
transformStyle?: string;
|
|
51
|
-
perspective?: string;
|
|
52
|
-
willChange?: string;
|
|
53
|
-
/** Stacked extrusion depth shadow — combine separately from `boxShadow`. */
|
|
54
|
-
extrusionBoxShadow?: string;
|
|
55
|
-
/** Contour + bevel + backdrop + material specular shadows (comma-joined). */
|
|
56
|
-
boxShadow?: string;
|
|
57
|
-
background?: string;
|
|
58
|
-
backgroundImage?: string;
|
|
59
|
-
filter?: string;
|
|
60
|
-
opacity?: number;
|
|
61
|
-
}
|
|
62
|
-
/**
|
|
63
|
-
* Compute the complete set of 3D CSS for an element's shape style. Reads
|
|
64
|
-
* `scene3d`/`shape3d` off the element's `shapeStyle`. Returns `undefined`
|
|
65
|
-
* when the element carries no 3D data so callers can skip merging entirely.
|
|
66
|
-
*/
|
|
67
|
-
export declare function getComputed3dStyle(el: PptxElement): Computed3dStyle | undefined;
|
|
68
|
-
/**
|
|
69
|
-
* Convenience: merge a {@link Computed3dStyle} into an existing `CSSProperties`
|
|
70
|
-
* object, COMBINING shadows/filters/backgrounds rather than overwriting. This
|
|
71
|
-
* is the recommended integration helper for `getShapeFillStrokeStyle`.
|
|
6
|
+
* Merge a {@link Computed3dStyle} into an existing `CSSProperties` object,
|
|
7
|
+
* COMBINING shadows/filters/backgrounds rather than overwriting. This is the
|
|
8
|
+
* recommended integration helper for `getShapeFillStrokeStyle`.
|
|
72
9
|
*
|
|
73
10
|
* - `extrusionBoxShadow` + `boxShadow` are comma-joined with `base.boxShadow`.
|
|
74
11
|
* - `filter` is space-joined; `backgroundImage` comma-joined (3D layer first).
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"visual-3d.d.ts","sourceRoot":"","sources":["../../../src/viewer/composables/visual-3d.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"visual-3d.d.ts","sourceRoot":"","sources":["../../../src/viewer/composables/visual-3d.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AACH,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAC1D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,KAAK,CAAC;AAEzC,OAAO,EACN,iBAAiB,EACjB,qBAAqB,EACrB,mBAAmB,EACnB,aAAa,EACb,iBAAiB,EACjB,kBAAkB,GAClB,MAAM,oBAAoB,CAAC;AAC5B,YAAY,EAAE,cAAc,EAAE,QAAQ,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAEpF;;;;;;;;GAQG;AACH,wBAAgB,YAAY,CAAC,IAAI,EAAE,aAAa,EAAE,QAAQ,EAAE,eAAe,GAAG,SAAS,GAAG,IAAI,CA+C7F"}
|
package/dist/viewer/index.cjs
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const e = require("../viewer-
|
|
2
|
+
const e = require("../viewer-QVDbby6z.cjs");
|
|
3
3
|
exports.ChartRenderer = e.ChartRenderer_default, exports.ConnectorRenderer = e.ConnectorRenderer_default, exports.DEFAULT_CANVAS_HEIGHT = e.DEFAULT_CANVAS_HEIGHT, exports.DEFAULT_CANVAS_WIDTH = e.DEFAULT_CANVAS_WIDTH, exports.DEFAULT_FILL_COLOR = e.DEFAULT_FILL_COLOR, exports.DEFAULT_STROKE_COLOR = e.DEFAULT_STROKE_COLOR, exports.DEFAULT_TEXT_COLOR = e.DEFAULT_TEXT_COLOR, exports.ElementRenderer = e.ElementRenderer_default, exports.EquationRenderer = e.EquationRenderer_default, exports.InkRenderer = e.InkRenderer_default, exports.Model3DRenderer = e.Model3DRenderer_default, exports.OleRenderer = e.OleRenderer_default, exports.PowerPointViewer = e.PowerPointViewer_default, exports.SlideCanvas = e.SlideCanvas_default, exports.SlideStage = e.SlideStage_default, exports.SmartArtRenderer = e.SmartArtRenderer_default, exports.TableRenderer = e.TableRenderer_default, exports.WordArtText = e.WordArtText_default, exports.ZoomRenderer = e.ZoomRenderer_default, exports.buildInitialGuides = e.buildInitialGuides, exports.collectImagePaths = e.collectImagePaths, exports.collectMediaElements = e.collectMediaElements, exports.getContainerStyle = e.getContainerStyle, exports.getImageSrc = e.getImageSrc, exports.getResolvedShapeClipPath = e.getResolvedShapeClipPath, exports.getResolvedShapeClipPathFor = e.getResolvedShapeClipPathFor, exports.getShapeFillStrokeStyle = e.getShapeFillStrokeStyle, exports.getTextBlockStyle = e.getTextBlockStyle, exports.useEditorHistory = e.useEditorHistory, exports.useEditorOperations = e.useEditorOperations, exports.useLoadContent = e.useLoadContent;
|
package/dist/viewer/index.cjs.br
CHANGED
|
Binary file
|
package/dist/viewer/index.cjs.gz
CHANGED
|
Binary file
|
package/dist/viewer/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { A as a, D as s, E as e, I as r, L as n, M as d, O as o, T as t, _ as R, a as i, b as l, c as m, d as S, f as p, g as v, h as w, i as x, j as A, k as C, l as E, m as T, n as b, o as c, p as f, r as g, s as h, t as j, u as k, v as u, x as D, y as I } from "../viewer-
|
|
1
|
+
import { A as a, D as s, E as e, I as r, L as n, M as d, O as o, T as t, _ as R, a as i, b as l, c as m, d as S, f as p, g as v, h as w, i as x, j as A, k as C, l as E, m as T, n as b, o as c, p as f, r as g, s as h, t as j, u as k, v as u, x as D, y as I } from "../viewer-DOKNVF1b.js";
|
|
2
2
|
export { R as ChartRenderer, v as ConnectorRenderer, t as DEFAULT_CANVAS_HEIGHT, e as DEFAULT_CANVAS_WIDTH, s as DEFAULT_FILL_COLOR, o as DEFAULT_STROKE_COLOR, C as DEFAULT_TEXT_COLOR, h as ElementRenderer, w as EquationRenderer, T as InkRenderer, f as Model3DRenderer, p as OleRenderer, j as PowerPointViewer, i as SlideCanvas, c as SlideStage, S as SmartArtRenderer, k as TableRenderer, E as WordArtText, m as ZoomRenderer, a as buildInitialGuides, A as collectImagePaths, d as collectMediaElements, u as getContainerStyle, I as getImageSrc, r as getResolvedShapeClipPath, n as getResolvedShapeClipPathFor, l as getShapeFillStrokeStyle, D as getTextBlockStyle, x as useEditorHistory, g as useEditorOperations, b as useLoadContent };
|
package/dist/viewer/index.js.br
CHANGED
|
Binary file
|
package/dist/viewer/index.js.gz
CHANGED
|
Binary file
|