pptx-vue-viewer 1.1.12 → 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 CHANGED
@@ -1,5 +1,5 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const e = require("./viewer-CuMsRAEv.cjs");
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-hGgMcu9l.js";
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":"AAswCA,OAAO,KAAK,EACX,mBAAmB,EAEnB,sBAAsB,EACtB,qBAAqB,EACrB,MAAM,SAAS,CAAC;AAm7DjB,QAAA,MAAM,YAAY;;;;;;;;;;;;;;;;6EAKhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
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, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
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":"AAmDA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAIlD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAG3C;;;;;;;GAOG;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,IAAI,CAAC,EAAE,MAAM,CAAC;CACd,CAAC;AA6DF,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;AAK/C,QAAA,MAAM,UAAU,kSAEd,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
+ {"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,3 +1,3 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const e = require("../viewer-CuMsRAEv.cjs");
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;
Binary file
Binary file
@@ -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-hGgMcu9l.js";
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 };
Binary file
Binary file