pptx-vue-viewer 1.1.8 → 1.1.10

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-wQu55LlZ.cjs");
2
+ const e = require("./viewer-V0Mypr4J.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,7 +1,7 @@
1
- import { C as a, S as s, T as e, a as r, d as i, f as t, i as o, p as m, r as n, t as d, w as f } from "./viewer-DfpZaCMv.js";
2
- import { clsx as l } from "clsx";
3
- import { twMerge as p } from "tailwind-merge";
4
- function w(...a) {
5
- return p(l(a));
1
+ import { D as a, E as s, T as e, a as r, h as i, i as t, m as o, p as m, r as n, t as l, w as p } from "./viewer-DD_EBYcs.js";
2
+ import { clsx as w } from "clsx";
3
+ import { twMerge as d } from "tailwind-merge";
4
+ function f(...a) {
5
+ return d(w(a));
6
6
  }
7
- export { r as ElementRenderer, d as PowerPointViewer, n as SlideCanvas, o as SlideStage, w as cn, s as defaultCssVars, a as defaultRadius, f as defaultThemeColors, i as provideViewerTheme, e as themeToCssVars, t as useThemeStyle, m as useViewerTheme };
7
+ export { r as ElementRenderer, l as PowerPointViewer, n as SlideCanvas, t as SlideStage, f as cn, p as defaultCssVars, e as defaultRadius, s as defaultThemeColors, m as provideViewerTheme, a as themeToCssVars, o as useThemeStyle, i as useViewerTheme };
package/dist/index.js.br CHANGED
Binary file
package/dist/index.js.gz CHANGED
Binary file
@@ -1 +1 @@
1
- {"version":3,"file":"element-style.d.ts","sourceRoot":"","sources":["../../../src/viewer/composables/element-style.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAEpD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,KAAK,CAAC;AAsBzC;;;GAGG;AACH,wBAAgB,iBAAiB,CAAC,EAAE,EAAE,WAAW,EAAE,MAAM,EAAE,MAAM,GAAG,aAAa,CA+BhF;AAED;;;GAGG;AACH,wBAAgB,uBAAuB,CAAC,EAAE,EAAE,WAAW,GAAG,aAAa,CAiDtE;AAED;;;GAGG;AACH,wBAAgB,iBAAiB,CAAC,EAAE,EAAE,WAAW,GAAG,aAAa,CAsEhE;AAED,gFAAgF;AAChF,wBAAgB,WAAW,CAC1B,EAAE,EAAE,WAAW,EACf,aAAa,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,GAChC,MAAM,GAAG,SAAS,CAUpB"}
1
+ {"version":3,"file":"element-style.d.ts","sourceRoot":"","sources":["../../../src/viewer/composables/element-style.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAOpD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,KAAK,CAAC;AAkCzC;;;GAGG;AACH,wBAAgB,iBAAiB,CAAC,EAAE,EAAE,WAAW,EAAE,MAAM,EAAE,MAAM,GAAG,aAAa,CA+BhF;AAED;;;GAGG;AACH,wBAAgB,uBAAuB,CAAC,EAAE,EAAE,WAAW,GAAG,aAAa,CA+EtE;AAED;;;GAGG;AACH,wBAAgB,iBAAiB,CAAC,EAAE,EAAE,WAAW,GAAG,aAAa,CAsEhE;AAED,gFAAgF;AAChF,wBAAgB,WAAW,CAC1B,EAAE,EAAE,WAAW,EACf,aAAa,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,GAChC,MAAM,GAAG,SAAS,CAUpB"}
@@ -3,4 +3,5 @@ export type { UseLoadContentResult } from './useLoadContent';
3
3
  export { collectMediaElements, collectImagePaths, buildInitialGuides, } from './load-content-helpers';
4
4
  export type { GuideEntry, ImagePathElement } from './load-content-helpers';
5
5
  export { getContainerStyle, getShapeFillStrokeStyle, getTextBlockStyle, getImageSrc, } from './element-style';
6
+ export { getResolvedShapeClipPath, getResolvedShapeClipPathFor } from './shape-geometry';
6
7
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/viewer/composables/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,YAAY,EAAE,oBAAoB,EAAE,MAAM,kBAAkB,CAAC;AAC7D,OAAO,EACN,oBAAoB,EACpB,iBAAiB,EACjB,kBAAkB,GAClB,MAAM,wBAAwB,CAAC;AAChC,YAAY,EAAE,UAAU,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAC3E,OAAO,EACN,iBAAiB,EACjB,uBAAuB,EACvB,iBAAiB,EACjB,WAAW,GACX,MAAM,iBAAiB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/viewer/composables/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,YAAY,EAAE,oBAAoB,EAAE,MAAM,kBAAkB,CAAC;AAC7D,OAAO,EACN,oBAAoB,EACpB,iBAAiB,EACjB,kBAAkB,GAClB,MAAM,wBAAwB,CAAC;AAChC,YAAY,EAAE,UAAU,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAC3E,OAAO,EACN,iBAAiB,EACjB,uBAAuB,EACvB,iBAAiB,EACjB,WAAW,GACX,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,wBAAwB,EAAE,2BAA2B,EAAE,MAAM,kBAAkB,CAAC"}
@@ -0,0 +1,23 @@
1
+ import { PptxElement } from 'pptx-viewer-core';
2
+ /**
3
+ * Resolve the best available CSS `clip-path` value for a shape type at a given
4
+ * pixel size. Implements the priority cascade described in the module
5
+ * docstring. Returns `undefined` when the shape needs no clipping.
6
+ *
7
+ * @param shapeType The OOXML preset geometry name (case-insensitive).
8
+ * @param width Element width in pixels (must be > 0 for path output).
9
+ * @param height Element height in pixels (must be > 0 for path output).
10
+ * @param adjustments Optional `shapeAdjustments` record from the element.
11
+ */
12
+ export declare function getResolvedShapeClipPathFor(shapeType: string | undefined, width: number, height: number, adjustments?: Record<string, number>): string | undefined;
13
+ /**
14
+ * Element-level convenience wrapper. Pulls `shapeType`, `width`, `height`, and
15
+ * `shapeAdjustments` off a {@link PptxElement} and delegates to
16
+ * {@link getResolvedShapeClipPathFor}.
17
+ *
18
+ * @param element The PPTX element to resolve a clip-path for.
19
+ * @param width Optional width override (pixels). Defaults to `element.width`.
20
+ * @param height Optional height override (pixels). Defaults to `element.height`.
21
+ */
22
+ export declare function getResolvedShapeClipPath(element: PptxElement, width?: number, height?: number): string | undefined;
23
+ //# sourceMappingURL=shape-geometry.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"shape-geometry.d.ts","sourceRoot":"","sources":["../../../src/viewer/composables/shape-geometry.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAQpD;;;;;;;;;GASG;AACH,wBAAgB,2BAA2B,CAC1C,SAAS,EAAE,MAAM,GAAG,SAAS,EAC7B,KAAK,EAAE,MAAM,EACb,MAAM,EAAE,MAAM,EACd,WAAW,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAClC,MAAM,GAAG,SAAS,CAgCpB;AAED;;;;;;;;GAQG;AACH,wBAAgB,wBAAwB,CACvC,OAAO,EAAE,WAAW,EACpB,KAAK,CAAC,EAAE,MAAM,EACd,MAAM,CAAC,EAAE,MAAM,GACb,MAAM,GAAG,SAAS,CASpB"}
@@ -1,3 +1,3 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const e = require("../viewer-wQu55LlZ.cjs");
3
- 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.PowerPointViewer = e.PowerPointViewer_default, exports.SlideCanvas = e.SlideCanvas_default, exports.SlideStage = e.SlideStage_default, exports.buildInitialGuides = e.buildInitialGuides, exports.collectImagePaths = e.collectImagePaths, exports.collectMediaElements = e.collectMediaElements, exports.getContainerStyle = e.getContainerStyle, exports.getImageSrc = e.getImageSrc, exports.getShapeFillStrokeStyle = e.getShapeFillStrokeStyle, exports.getTextBlockStyle = e.getTextBlockStyle, exports.useLoadContent = e.useLoadContent;
2
+ const e = require("../viewer-V0Mypr4J.cjs");
3
+ 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.PowerPointViewer = e.PowerPointViewer_default, exports.SlideCanvas = e.SlideCanvas_default, exports.SlideStage = e.SlideStage_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.useLoadContent = e.useLoadContent;
Binary file
Binary file
@@ -1,2 +1,2 @@
1
- import { _ as a, a as s, b as e, c as r, g as n, h as o, i, l as t, m as d, n as l, o as m, r as v, s as w, t as S, u as c, v as g, x as p, y as x } from "../viewer-DfpZaCMv.js";
2
- export { m as ConnectorRenderer, d as DEFAULT_CANVAS_HEIGHT, o as DEFAULT_CANVAS_WIDTH, n as DEFAULT_FILL_COLOR, a as DEFAULT_STROKE_COLOR, g as DEFAULT_TEXT_COLOR, s as ElementRenderer, S as PowerPointViewer, v as SlideCanvas, i as SlideStage, x as buildInitialGuides, e as collectImagePaths, p as collectMediaElements, w as getContainerStyle, r as getImageSrc, t as getShapeFillStrokeStyle, c as getTextBlockStyle, l as useLoadContent };
1
+ import { C as a, S as s, _ as e, a as r, b as n, c as o, d as i, f as t, g as d, i as l, l as S, n as m, o as v, r as w, s as C, t as c, u as f, v as g, x as p, y as x } from "../viewer-DD_EBYcs.js";
2
+ export { v as ConnectorRenderer, d as DEFAULT_CANVAS_HEIGHT, e as DEFAULT_CANVAS_WIDTH, g as DEFAULT_FILL_COLOR, x as DEFAULT_STROKE_COLOR, n as DEFAULT_TEXT_COLOR, r as ElementRenderer, c as PowerPointViewer, w as SlideCanvas, l as SlideStage, p as buildInitialGuides, s as collectImagePaths, a as collectMediaElements, C as getContainerStyle, o as getImageSrc, i as getResolvedShapeClipPath, t as getResolvedShapeClipPathFor, S as getShapeFillStrokeStyle, f as getTextBlockStyle, m as useLoadContent };
Binary file
Binary file