pptx-vue-viewer 1.1.46 → 1.1.48
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/{dist-IXKWaie5.cjs → dist-9JM202b6.cjs} +5 -0
- package/dist/dist-9JM202b6.cjs.br +0 -0
- package/dist/{dist-IXKWaie5.cjs.gz → dist-9JM202b6.cjs.gz} +0 -0
- package/dist/{dist-BIyUlAgi.js → dist-BiVeys3m.js} +1 -1
- package/dist/dist-BiVeys3m.js.br +0 -0
- package/dist/{dist-BIyUlAgi.js.gz → dist-BiVeys3m.js.gz} +0 -0
- package/dist/gif-encoder-BFrHi5XY.js +2 -0
- package/dist/gif-encoder-BFrHi5XY.js.br +3 -0
- package/dist/gif-encoder-BFrHi5XY.js.gz +0 -0
- package/dist/gif-encoder-C3zfRgU9.cjs +2 -0
- package/dist/gif-encoder-C3zfRgU9.cjs.br +0 -0
- package/dist/gif-encoder-C3zfRgU9.cjs.gz +0 -0
- 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/components/ElementImageBox.vue.d.ts.map +1 -1
- package/dist/viewer/components/Model3DRenderer.vue.d.ts +11 -5
- package/dist/viewer/components/Model3DRenderer.vue.d.ts.map +1 -1
- package/dist/viewer/composables/use-color-change-image.d.ts +23 -0
- package/dist/viewer/composables/use-color-change-image.d.ts.map +1 -0
- package/dist/viewer/composables/useModel3dScene.d.ts +25 -0
- package/dist/viewer/composables/useModel3dScene.d.ts.map +1 -0
- 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-_o98cJrz.cjs → viewer-C9NTZjEc.cjs} +2894 -2666
- package/dist/viewer-C9NTZjEc.cjs.br +0 -0
- package/dist/viewer-C9NTZjEc.cjs.gz +0 -0
- package/dist/{viewer-DU4-Z5N8.js → viewer-CBdZSAv8.js} +4838 -4611
- package/dist/viewer-CBdZSAv8.js.br +0 -0
- package/dist/viewer-CBdZSAv8.js.gz +0 -0
- package/package.json +1 -1
- package/dist/dist-BIyUlAgi.js.br +0 -0
- package/dist/dist-IXKWaie5.cjs.br +0 -0
- package/dist/gif-encoder-B3uU07lh.cjs +0 -2
- package/dist/gif-encoder-B3uU07lh.cjs.br +0 -0
- package/dist/gif-encoder-B3uU07lh.cjs.gz +0 -0
- package/dist/gif-encoder-ykym968Z.js +0 -2
- package/dist/gif-encoder-ykym968Z.js.br +0 -3
- package/dist/gif-encoder-ykym968Z.js.gz +0 -0
- package/dist/viewer-DU4-Z5N8.js.br +0 -0
- package/dist/viewer-DU4-Z5N8.js.gz +0 -0
- package/dist/viewer-_o98cJrz.cjs.br +0 -0
- package/dist/viewer-_o98cJrz.cjs.gz +0 -0
|
@@ -50495,6 +50495,11 @@ Object.defineProperty(exports, "EMPHASIS_PRESETS", {
|
|
|
50495
50495
|
get: function() {
|
|
50496
50496
|
return Ji;
|
|
50497
50497
|
}
|
|
50498
|
+
}), Object.defineProperty(exports, "parseDataUrlToBytes", {
|
|
50499
|
+
enumerable: !0,
|
|
50500
|
+
get: function() {
|
|
50501
|
+
return Il;
|
|
50502
|
+
}
|
|
50498
50503
|
}), Object.defineProperty(exports, "parseSignatureXml", {
|
|
50499
50504
|
enumerable: !0,
|
|
50500
50505
|
get: function() {
|
|
Binary file
|
|
Binary file
|
|
@@ -50219,4 +50219,4 @@ var fT = class t {
|
|
|
50219
50219
|
return r;
|
|
50220
50220
|
}
|
|
50221
50221
|
};
|
|
50222
|
-
export {
|
|
50222
|
+
export { kl as $, _a as A, Vx as B, Me as C, Te as D, Ce as E, Op as F, oi as G, Hx as H, Wx as I, bn as J, Vt as K, Kx as L, YS as M, ul as N, gc as O, Gx as P, Vi as Q, ll as R, el as S, Ie as T, Xx as U, zx as V, bh as W, Gt as X, zt as Y, Wt as Z, fp as _, kn as a, gv as at, pp as b, Yt as c, wv as ct, yc as d, db as dt, sa as et, wn as f, Md as ft, mp as g, gp as h, kc as i, xv as it, jt as j, Ta as k, qt as l, Sv as lt, Cd as m, Bp as n, pc as nt, Wg as o, yv as ot, Qh as p, uc as pt, Ht as q, Rp as r, mc as rt, Pd as s, Tv as st, Np as t, fc as tt, hc as u, bv as ut, up as v, dl as w, tl as x, hp as y, nh as z };
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/dist/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-C9NTZjEc.cjs");
|
|
3
3
|
exports.ElementRenderer = e.ElementRenderer_default, exports.PowerPointViewer = e.PowerPointViewer_default, exports.SlideCanvas = e.SlideCanvas_default, exports.SlideStage = e.SlideStage_default, exports.cn = e.cn, exports.defaultCssVars = e.defaultCssVars, exports.defaultRadius = e.defaultRadius, exports.defaultThemeColors = e.defaultThemeColors, exports.provideViewerTheme = e.provideViewerTheme, exports.themeToCssVars = e.themeToCssVars, exports.useThemeStyle = e.useThemeStyle, exports.useViewerTheme = e.useViewerTheme;
|
package/dist/index.cjs.br
CHANGED
|
Binary file
|
package/dist/index.cjs.gz
CHANGED
|
Binary file
|
package/dist/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { A as a, B as s, F as e, I as r, O as i, P as o, a as t, c as n, k as d, o as l, s as m, t as w } from "./viewer-
|
|
1
|
+
import { A as a, B as s, F as e, I as r, O as i, P as o, a as t, c as n, k as d, o as l, s as m, t as w } from "./viewer-CBdZSAv8.js";
|
|
2
2
|
export { n as ElementRenderer, w as PowerPointViewer, t as SlideCanvas, m as SlideStage, l as cn, o as defaultCssVars, e as defaultRadius, r as defaultThemeColors, i as provideViewerTheme, s as themeToCssVars, d as useThemeStyle, a as useViewerTheme };
|
package/dist/index.js.br
CHANGED
|
Binary file
|
package/dist/index.js.gz
CHANGED
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ElementImageBox.vue.d.ts","sourceRoot":"","sources":["../../../src/viewer/components/ElementImageBox.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ElementImageBox.vue.d.ts","sourceRoot":"","sources":["../../../src/viewer/components/ElementImageBox.vue"],"names":[],"mappings":"AA8EA;;;;GAIG;AACH,OAAO,KAAK,EAAE,WAAW,EAAoB,MAAM,kBAAkB,CAAC;AAStE,KAAK,WAAW,GAAG;IAClB,OAAO,EAAE,WAAW,CAAC;IACrB,aAAa,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACnC,MAAM,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,OAAO,CAAC;CACtB,CAAC;AAoFF,QAAA,MAAM,YAAY,kSAEhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
|
|
@@ -1,12 +1,18 @@
|
|
|
1
1
|
import { PptxElement } from 'pptx-viewer-core';
|
|
2
2
|
/**
|
|
3
3
|
* Model3DRenderer - Vue port of the React `Model3DRenderer` / `PosterFallback`
|
|
4
|
-
* (in `Model3DRenderer.tsx`)
|
|
4
|
+
* (in `Model3DRenderer.tsx`).
|
|
5
5
|
*
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
* (`
|
|
9
|
-
*
|
|
6
|
+
* When the element carries a 3D model (`modelData`) and the optional `three`
|
|
7
|
+
* peer dependency is installed, this mounts the shared, framework-agnostic
|
|
8
|
+
* vanilla-three controller (`mountModel3D` from `pptx-viewer-shared`) into a
|
|
9
|
+
* container div for interactive rotate/zoom. The blob-URL lifecycle and
|
|
10
|
+
* three.js availability are handled by {@link useModel3dScene}; this SFC stays
|
|
11
|
+
* thin presentation.
|
|
12
|
+
*
|
|
13
|
+
* It falls back to the poster/preview image (`posterImage`, then `imageData`)
|
|
14
|
+
* when there is no model data or three.js is unavailable, drawing a labelled
|
|
15
|
+
* "3D model" placeholder when no poster exists - exactly like React.
|
|
10
16
|
*/
|
|
11
17
|
type __VLS_Props = {
|
|
12
18
|
element: PptxElement;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Model3DRenderer.vue.d.ts","sourceRoot":"","sources":["../../../src/viewer/components/Model3DRenderer.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Model3DRenderer.vue.d.ts","sourceRoot":"","sources":["../../../src/viewer/components/Model3DRenderer.vue"],"names":[],"mappings":"AAqJA,OAAO,KAAK,EAAsB,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAOxE;;;;;;;;;;;;;;GAcG;AACH,KAAK,WAAW,GAAG;IAClB,OAAO,EAAE,WAAW,CAAC;IACrB,aAAa,CAAC,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACpC,MAAM,EAAE,MAAM,CAAC;CACf,CAAC;AA+HF,QAAA,MAAM,YAAY,kSAEhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { PptxImageEffects } from 'pptx-viewer-core';
|
|
2
|
+
import { ComputedRef, Ref } from 'vue';
|
|
3
|
+
/** Parsed `clrChange` effect, as carried on `PptxImageEffects`. */
|
|
4
|
+
export type ClrChangeEffect = NonNullable<PptxImageEffects['clrChange']>;
|
|
5
|
+
/** Reactive inputs accepted by {@link useColorChangeImage}. */
|
|
6
|
+
export interface UseColorChangeImageOptions {
|
|
7
|
+
/** Original image source (data-URL or blob URL); may be `undefined`. */
|
|
8
|
+
src: Ref<string | undefined> | ComputedRef<string | undefined>;
|
|
9
|
+
/** The parsed clrChange effect, or `undefined` when the effect is absent. */
|
|
10
|
+
clrChange: Ref<ClrChangeEffect | undefined> | ComputedRef<ClrChangeEffect | undefined>;
|
|
11
|
+
/** Optional tolerance override (0-100); falls back to the shared default. */
|
|
12
|
+
tolerancePct?: Ref<number | undefined> | ComputedRef<number | undefined>;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Compute the recoloured image source for a clrChange effect.
|
|
16
|
+
*
|
|
17
|
+
* @returns `displaySrc` - the processed data-URL once ready, otherwise the
|
|
18
|
+
* original `src` (so the image is always visible during/after processing).
|
|
19
|
+
*/
|
|
20
|
+
export declare function useColorChangeImage(options: UseColorChangeImageOptions): {
|
|
21
|
+
displaySrc: ComputedRef<string | undefined>;
|
|
22
|
+
};
|
|
23
|
+
//# sourceMappingURL=use-color-change-image.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-color-change-image.d.ts","sourceRoot":"","sources":["../../../src/viewer/composables/use-color-change-image.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AACH,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AAQzD,OAAO,KAAK,EAAE,WAAW,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAG5C,mEAAmE;AACnE,MAAM,MAAM,eAAe,GAAG,WAAW,CAAC,gBAAgB,CAAC,WAAW,CAAC,CAAC,CAAC;AAEzE,+DAA+D;AAC/D,MAAM,WAAW,0BAA0B;IAC1C,wEAAwE;IACxE,GAAG,EAAE,GAAG,CAAC,MAAM,GAAG,SAAS,CAAC,GAAG,WAAW,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IAC/D,6EAA6E;IAC7E,SAAS,EAAE,GAAG,CAAC,eAAe,GAAG,SAAS,CAAC,GAAG,WAAW,CAAC,eAAe,GAAG,SAAS,CAAC,CAAC;IACvF,6EAA6E;IAC7E,YAAY,CAAC,EAAE,GAAG,CAAC,MAAM,GAAG,SAAS,CAAC,GAAG,WAAW,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;CACzE;AAOD;;;;;GAKG;AACH,wBAAgB,mBAAmB,CAAC,OAAO,EAAE,0BAA0B,GAAG;IACzE,UAAU,EAAE,WAAW,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;CAC5C,CAmFA"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { Model3DPptxElement } from 'pptx-viewer-core';
|
|
2
|
+
import { Ref } from 'vue';
|
|
3
|
+
/** Reactive inputs to {@link useModel3dScene}. */
|
|
4
|
+
export interface UseModel3dSceneOptions {
|
|
5
|
+
/** Container the scene's canvas is appended into; may be null pre-mount. */
|
|
6
|
+
container: Ref<HTMLElement | null>;
|
|
7
|
+
/** The 3D model element (or undefined when the element is not a model3d). */
|
|
8
|
+
element: Ref<Model3DPptxElement | undefined>;
|
|
9
|
+
/** CSS-pixel view width. */
|
|
10
|
+
width: Ref<number>;
|
|
11
|
+
/** CSS-pixel view height. */
|
|
12
|
+
height: Ref<number>;
|
|
13
|
+
/** Enable orbit controls (rotate + zoom). Default true. */
|
|
14
|
+
interactive: Ref<boolean>;
|
|
15
|
+
}
|
|
16
|
+
/** Result of {@link useModel3dScene}. */
|
|
17
|
+
export interface UseModel3dSceneResult {
|
|
18
|
+
/** True once an interactive scene has actually mounted (three available). */
|
|
19
|
+
mounted: Ref<boolean>;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Mount and manage the shared 3D scene for a model element. See module doc.
|
|
23
|
+
*/
|
|
24
|
+
export declare function useModel3dScene(options: UseModel3dSceneOptions): UseModel3dSceneResult;
|
|
25
|
+
//# sourceMappingURL=useModel3dScene.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useModel3dScene.d.ts","sourceRoot":"","sources":["../../../src/viewer/composables/useModel3dScene.ts"],"names":[],"mappings":"AAoBA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAI3D,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAE/B,kDAAkD;AAClD,MAAM,WAAW,sBAAsB;IACtC,4EAA4E;IAC5E,SAAS,EAAE,GAAG,CAAC,WAAW,GAAG,IAAI,CAAC,CAAC;IACnC,6EAA6E;IAC7E,OAAO,EAAE,GAAG,CAAC,kBAAkB,GAAG,SAAS,CAAC,CAAC;IAC7C,4BAA4B;IAC5B,KAAK,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC;IACnB,6BAA6B;IAC7B,MAAM,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC;IACpB,2DAA2D;IAC3D,WAAW,EAAE,GAAG,CAAC,OAAO,CAAC,CAAC;CAC1B;AAED,yCAAyC;AACzC,MAAM,WAAW,qBAAqB;IACrC,6EAA6E;IAC7E,OAAO,EAAE,GAAG,CAAC,OAAO,CAAC,CAAC;CACtB;AA4BD;;GAEG;AACH,wBAAgB,eAAe,CAAC,OAAO,EAAE,sBAAsB,GAAG,qBAAqB,CAyEtF"}
|
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-C9NTZjEc.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 { C as a, D as s, E as e, M as r, N as n, R as d, S as t, T as o, _ as R, a as i, b as l, c as m, d as S, f as w, g as C, h as p, i as v, j as x, l as E, m as T, n as b, p as c, r as f, s as g, t as h, u as j, v as u, w as A, x as D, y as M, z as P } from "../viewer-
|
|
1
|
+
import { C as a, D as s, E as e, M as r, N as n, R as d, S as t, T as o, _ as R, a as i, b as l, c as m, d as S, f as w, g as C, h as p, i as v, j as x, l as E, m as T, n as b, p as c, r as f, s as g, t as h, u as j, v as u, w as A, x as D, y as M, z as P } from "../viewer-CBdZSAv8.js";
|
|
2
2
|
export { u as ChartRenderer, R as ConnectorRenderer, a as DEFAULT_CANVAS_HEIGHT, A as DEFAULT_CANVAS_WIDTH, o as DEFAULT_FILL_COLOR, e as DEFAULT_STROKE_COLOR, s as DEFAULT_TEXT_COLOR, m as ElementRenderer, C as EquationRenderer, p as InkRenderer, T as Model3DRenderer, c as OleRenderer, h as PowerPointViewer, i as SlideCanvas, g as SlideStage, w as SmartArtRenderer, S as TableRenderer, j as WordArtText, E as ZoomRenderer, x as buildInitialGuides, r as collectImagePaths, n as collectMediaElements, M as getContainerStyle, l as getImageSrc, d as getResolvedShapeClipPath, P as getResolvedShapeClipPathFor, D as getShapeFillStrokeStyle, t as getTextBlockStyle, v as useEditorHistory, f as useEditorOperations, b as useLoadContent };
|
package/dist/viewer/index.js.br
CHANGED
|
Binary file
|
package/dist/viewer/index.js.gz
CHANGED
|
Binary file
|