pptx-vue-viewer 1.1.20 → 1.1.21
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/pptx-vue-viewer.css +11 -16
- package/dist/pptx-vue-viewer.css.br +0 -0
- package/dist/pptx-vue-viewer.css.gz +0 -0
- package/dist/viewer/PowerPointViewer.vue.d.ts.map +1 -1
- package/dist/viewer/components/EditorToolbar.vue.d.ts +6 -0
- package/dist/viewer/components/EditorToolbar.vue.d.ts.map +1 -1
- package/dist/viewer/components/ElementRenderer.vue.d.ts +7 -0
- package/dist/viewer/components/ElementRenderer.vue.d.ts.map +1 -1
- package/dist/viewer/components/InlineTextEditor.vue.d.ts +16 -0
- package/dist/viewer/components/InlineTextEditor.vue.d.ts.map +1 -0
- package/dist/viewer/components/MobileBottomBar.vue.d.ts +2 -0
- package/dist/viewer/components/MobileBottomBar.vue.d.ts.map +1 -1
- package/dist/viewer/components/NotesPanel.vue.d.ts.map +1 -1
- package/dist/viewer/components/SelectionOverlay.vue.d.ts +20 -0
- package/dist/viewer/components/SelectionOverlay.vue.d.ts.map +1 -1
- package/dist/viewer/components/SlideCanvas.vue.d.ts.map +1 -1
- package/dist/viewer/components/SlideStage.vue.d.ts +2 -0
- package/dist/viewer/components/SlideStage.vue.d.ts.map +1 -1
- package/dist/viewer/composables/format-painter.d.ts +12 -0
- package/dist/viewer/composables/format-painter.d.ts.map +1 -0
- package/dist/viewer/composables/remap-text.d.ts +10 -0
- package/dist/viewer/composables/remap-text.d.ts.map +1 -0
- package/dist/viewer/composables/shape-adjustment.d.ts +38 -0
- package/dist/viewer/composables/shape-adjustment.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-BsFcXVHv.js → viewer-B-6YBJU7.js} +2589 -2089
- package/dist/viewer-B-6YBJU7.js.br +0 -0
- package/dist/viewer-B-6YBJU7.js.gz +0 -0
- package/dist/{viewer-B_MKA5ks.cjs → viewer-CzhSZmAA.cjs} +2860 -2360
- package/dist/viewer-CzhSZmAA.cjs.br +0 -0
- package/dist/viewer-CzhSZmAA.cjs.gz +0 -0
- package/package.json +1 -1
- package/dist/viewer-B_MKA5ks.cjs.br +0 -0
- package/dist/viewer-B_MKA5ks.cjs.gz +0 -0
- package/dist/viewer-BsFcXVHv.js.br +0 -0
- package/dist/viewer-BsFcXVHv.js.gz +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-CzhSZmAA.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-B-6YBJU7.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
|
package/dist/pptx-vue-viewer.css
CHANGED
|
@@ -252,21 +252,15 @@
|
|
|
252
252
|
font-weight: 600;
|
|
253
253
|
}
|
|
254
254
|
|
|
255
|
-
/*
|
|
255
|
+
/*
|
|
256
|
+
* Hide the desktop slide-thumbnail rail (and the inline slides/transition
|
|
257
|
+
* controls it hosts) on phones — they don't fit a narrow viewport and would
|
|
258
|
+
* overflow the page horizontally, which mis-anchors the fixed bottom bar.
|
|
259
|
+
* Mobile navigation is handled by the bottom bar + the slide-sorter overlay
|
|
260
|
+
* (mirrors the React mobile chrome, which hides desktop chrome under 768px).
|
|
261
|
+
*/
|
|
256
262
|
.pptx-vue-thumbnails {
|
|
257
|
-
|
|
258
|
-
width: auto;
|
|
259
|
-
max-width: 100%;
|
|
260
|
-
overflow-x: auto;
|
|
261
|
-
overflow-y: hidden;
|
|
262
|
-
border-right: none;
|
|
263
|
-
border-bottom: 1px solid var(--pptx-border);
|
|
264
|
-
padding: 0.5rem;
|
|
265
|
-
}
|
|
266
|
-
|
|
267
|
-
.pptx-vue-thumbnails .pptx-vue-thumb {
|
|
268
|
-
flex: 0 0 4.5rem;
|
|
269
|
-
width: 4.5rem;
|
|
263
|
+
display: none;
|
|
270
264
|
}
|
|
271
265
|
|
|
272
266
|
/* Stack the body vertically so the canvas spans the full width. */
|
|
@@ -274,9 +268,10 @@
|
|
|
274
268
|
flex-direction: column;
|
|
275
269
|
}
|
|
276
270
|
|
|
277
|
-
/* Give the canvas the bulk of the vertical space. */
|
|
271
|
+
/* Give the canvas the bulk of the vertical space; leave room for the bar. */
|
|
278
272
|
.pptx-vue-main {
|
|
279
273
|
flex: 1 1 auto;
|
|
280
|
-
min-height:
|
|
274
|
+
min-height: 0;
|
|
275
|
+
padding-bottom: 56px;
|
|
281
276
|
}
|
|
282
277
|
}
|
|
Binary file
|
|
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":"AAw+DA,OAAO,KAAK,EACX,mBAAmB,EAEnB,sBAAsB,EACtB,qBAAqB,EACrB,MAAM,SAAS,CAAC;AAihGjB,QAAA,MAAM,YAAY;;;;;;;;;;;;;;;;6EAKhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
|
|
@@ -21,6 +21,10 @@ interface Props {
|
|
|
21
21
|
zoomPercent: number;
|
|
22
22
|
/** Whether one or more elements are selected (gates the selection actions). */
|
|
23
23
|
hasSelection: boolean;
|
|
24
|
+
/** Whether the format painter is currently armed. */
|
|
25
|
+
formatPainterActive?: boolean;
|
|
26
|
+
/** Whether the current selection exposes a copyable format (arms the painter). */
|
|
27
|
+
canActivateFormatPainter?: boolean;
|
|
24
28
|
}
|
|
25
29
|
declare const __VLS_export: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
26
30
|
"zoom-in": () => any;
|
|
@@ -34,6 +38,7 @@ declare const __VLS_export: import('vue').DefineComponent<Props, {}, {}, {}, {},
|
|
|
34
38
|
"duplicate-selected": () => any;
|
|
35
39
|
"bring-forward": () => any;
|
|
36
40
|
"send-backward": () => any;
|
|
41
|
+
"toggle-format-painter": () => any;
|
|
37
42
|
}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{
|
|
38
43
|
"onZoom-in"?: (() => any) | undefined;
|
|
39
44
|
"onZoom-out"?: (() => any) | undefined;
|
|
@@ -46,6 +51,7 @@ declare const __VLS_export: import('vue').DefineComponent<Props, {}, {}, {}, {},
|
|
|
46
51
|
"onDuplicate-selected"?: (() => any) | undefined;
|
|
47
52
|
"onBring-forward"?: (() => any) | undefined;
|
|
48
53
|
"onSend-backward"?: (() => any) | undefined;
|
|
54
|
+
"onToggle-format-painter"?: (() => any) | undefined;
|
|
49
55
|
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
50
56
|
declare const _default: typeof __VLS_export;
|
|
51
57
|
export default _default;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EditorToolbar.vue.d.ts","sourceRoot":"","sources":["../../../src/viewer/components/EditorToolbar.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"EditorToolbar.vue.d.ts","sourceRoot":"","sources":["../../../src/viewer/components/EditorToolbar.vue"],"names":[],"mappings":"AAwYA;;;;;;;;;;;GAWG;AAEH,iFAAiF;AACjF,MAAM,MAAM,WAAW,GAAG,MAAM,GAAG,SAAS,GAAG,WAAW,GAAG,UAAU,CAAC;AAExE,UAAU,KAAK;IACd,+EAA+E;IAC/E,OAAO,EAAE,OAAO,CAAC;IACjB,8EAA8E;IAC9E,OAAO,EAAE,OAAO,CAAC;IACjB,8DAA8D;IAC9D,WAAW,EAAE,MAAM,CAAC;IACpB,+EAA+E;IAC/E,YAAY,EAAE,OAAO,CAAC;IACtB,qDAAqD;IACrD,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B,kFAAkF;IAClF,wBAAwB,CAAC,EAAE,OAAO,CAAC;CACnC;AAscD,QAAA,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;kFAGhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
|
|
@@ -20,6 +20,13 @@ type __VLS_Props = {
|
|
|
20
20
|
element: PptxElement;
|
|
21
21
|
mediaDataUrls: Map<string, string>;
|
|
22
22
|
zIndex: number;
|
|
23
|
+
/**
|
|
24
|
+
* When true, emit the `data-pptx-element` test/interaction hook. Only the
|
|
25
|
+
* primary editable canvas sets this — thumbnails, the sorter, the export
|
|
26
|
+
* stage and presentation mode render the same elements without it, so the
|
|
27
|
+
* e2e selectors resolve to exactly the on-canvas elements.
|
|
28
|
+
*/
|
|
29
|
+
interactive?: boolean;
|
|
23
30
|
};
|
|
24
31
|
declare const __VLS_export: 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>;
|
|
25
32
|
declare const _default: typeof __VLS_export;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ElementRenderer.vue.d.ts","sourceRoot":"","sources":["../../../src/viewer/components/ElementRenderer.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ElementRenderer.vue.d.ts","sourceRoot":"","sources":["../../../src/viewer/components/ElementRenderer.vue"],"names":[],"mappings":"AAwVA,OAAO,KAAK,EAAE,WAAW,EAAe,MAAM,kBAAkB,CAAC;AAuBjE;;;;;;;;;;;;;;;;GAgBG;AACH,KAAK,WAAW,GAAG;IAClB,OAAO,EAAE,WAAW,CAAC;IACrB,aAAa,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACnC,MAAM,EAAE,MAAM,CAAC;IACf;;;;;OAKG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;CACtB,CAAC;AAidF,QAAA,MAAM,YAAY,kSAEhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { PptxElement } from 'pptx-viewer-core';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
element: PptxElement;
|
|
4
|
+
};
|
|
5
|
+
declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
6
|
+
cancel: () => any;
|
|
7
|
+
change: (text: string) => any;
|
|
8
|
+
commit: () => any;
|
|
9
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
10
|
+
onCancel?: (() => any) | undefined;
|
|
11
|
+
onChange?: ((text: string) => any) | undefined;
|
|
12
|
+
onCommit?: (() => any) | undefined;
|
|
13
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
14
|
+
declare const _default: typeof __VLS_export;
|
|
15
|
+
export default _default;
|
|
16
|
+
//# sourceMappingURL=InlineTextEditor.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"InlineTextEditor.vue.d.ts","sourceRoot":"","sources":["../../../src/viewer/components/InlineTextEditor.vue"],"names":[],"mappings":"AAAA,OAwIO,KAAK,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAIpD,KAAK,WAAW,GAAG;IAClB,OAAO,EAAE,WAAW,CAAC;CACrB,CAAC;AAkIF,QAAA,MAAM,YAAY;;;;;;;;kFAGhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
|
|
@@ -11,6 +11,7 @@ declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {
|
|
|
11
11
|
"zoom-out": () => any;
|
|
12
12
|
next: () => any;
|
|
13
13
|
menu: () => any;
|
|
14
|
+
notes: () => any;
|
|
14
15
|
prev: () => any;
|
|
15
16
|
present: () => any;
|
|
16
17
|
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
@@ -18,6 +19,7 @@ declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {
|
|
|
18
19
|
"onZoom-out"?: (() => any) | undefined;
|
|
19
20
|
onNext?: (() => any) | undefined;
|
|
20
21
|
onMenu?: (() => any) | undefined;
|
|
22
|
+
onNotes?: (() => any) | undefined;
|
|
21
23
|
onPrev?: (() => any) | undefined;
|
|
22
24
|
onPresent?: (() => any) | undefined;
|
|
23
25
|
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MobileBottomBar.vue.d.ts","sourceRoot":"","sources":["../../../src/viewer/components/MobileBottomBar.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"MobileBottomBar.vue.d.ts","sourceRoot":"","sources":["../../../src/viewer/components/MobileBottomBar.vue"],"names":[],"mappings":"AA6NA,KAAK,WAAW,GAAG;IAClB,4CAA4C;IAC5C,UAAU,EAAE,MAAM,CAAC;IACnB,0CAA0C;IAC1C,UAAU,EAAE,MAAM,CAAC;IACnB,mEAAmE;IACnE,WAAW,EAAE,MAAM,CAAC;CACpB,CAAC;AAwLF,QAAA,MAAM,YAAY;;;;;;;;;;;;;;;;kFAGhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NotesPanel.vue.d.ts","sourceRoot":"","sources":["../../../src/viewer/components/NotesPanel.vue"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"NotesPanel.vue.d.ts","sourceRoot":"","sources":["../../../src/viewer/components/NotesPanel.vue"],"names":[],"mappings":"AAAA,OAuKO,KAAK,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAGlD;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,KAAK,WAAW,GAAG;IAClB,KAAK,EAAE,SAAS,GAAG,SAAS,CAAC;CAC7B,CAAC;AA8HF,QAAA,MAAM,YAAY;;;;kFAGhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
|
|
@@ -12,18 +12,38 @@ export interface TransformPayload {
|
|
|
12
12
|
height: number;
|
|
13
13
|
rotation: number;
|
|
14
14
|
}
|
|
15
|
+
export interface AdjustPayload {
|
|
16
|
+
id: string;
|
|
17
|
+
value: number;
|
|
18
|
+
}
|
|
15
19
|
declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
16
20
|
transform: (payload: TransformPayload) => any;
|
|
17
21
|
transformStart: (payload: {
|
|
18
22
|
id: string;
|
|
19
23
|
}) => any;
|
|
20
24
|
transformEnd: (payload: TransformPayload) => any;
|
|
25
|
+
adjustStart: (payload: {
|
|
26
|
+
id: string;
|
|
27
|
+
}) => any;
|
|
28
|
+
adjust: (payload: AdjustPayload) => any;
|
|
29
|
+
adjustEnd: (payload: AdjustPayload) => any;
|
|
30
|
+
requestEdit: (payload: {
|
|
31
|
+
id: string;
|
|
32
|
+
}) => any;
|
|
21
33
|
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
22
34
|
onTransform?: ((payload: TransformPayload) => any) | undefined;
|
|
23
35
|
onTransformStart?: ((payload: {
|
|
24
36
|
id: string;
|
|
25
37
|
}) => any) | undefined;
|
|
26
38
|
onTransformEnd?: ((payload: TransformPayload) => any) | undefined;
|
|
39
|
+
onAdjustStart?: ((payload: {
|
|
40
|
+
id: string;
|
|
41
|
+
}) => any) | undefined;
|
|
42
|
+
onAdjust?: ((payload: AdjustPayload) => any) | undefined;
|
|
43
|
+
onAdjustEnd?: ((payload: AdjustPayload) => any) | undefined;
|
|
44
|
+
onRequestEdit?: ((payload: {
|
|
45
|
+
id: string;
|
|
46
|
+
}) => any) | undefined;
|
|
27
47
|
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
28
48
|
declare const _default: typeof __VLS_export;
|
|
29
49
|
export default _default;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SelectionOverlay.vue.d.ts","sourceRoot":"","sources":["../../../src/viewer/components/SelectionOverlay.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"SelectionOverlay.vue.d.ts","sourceRoot":"","sources":["../../../src/viewer/components/SelectionOverlay.vue"],"names":[],"mappings":"AA+jBA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAkBpD,KAAK,WAAW,GAAG;IAClB,QAAQ,EAAE,WAAW,EAAE,CAAC;IACxB,WAAW,EAAE,MAAM,EAAE,CAAC;IACtB,IAAI,EAAE,MAAM,CAAC;CACb,CAAC;AAGF,MAAM,WAAW,gBAAgB;IAChC,EAAE,EAAE,MAAM,CAAC;IACX,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;IACV,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,aAAa;IAC7B,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;CACd;AAodD,QAAA,MAAM,YAAY;;;YAjde,MAAM;;;;YAGT,MAAM;;;;;YAIN,MAAM;;;;;YAPH,MAAM;;;;YAGT,MAAM;;;;;YAIN,MAAM;;kFA6clC,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
|
|
@@ -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":"AA+GA,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;AAqHF,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"}
|
|
@@ -13,6 +13,8 @@ type __VLS_Props = {
|
|
|
13
13
|
canvasSize: CanvasSize;
|
|
14
14
|
mediaDataUrls: Map<string, string>;
|
|
15
15
|
scale?: number;
|
|
16
|
+
/** Mark elements with the `data-pptx-element` interaction hook (main canvas only). */
|
|
17
|
+
interactive?: boolean;
|
|
16
18
|
};
|
|
17
19
|
declare var __VLS_6: {};
|
|
18
20
|
type __VLS_Slots = {} & {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SlideStage.vue.d.ts","sourceRoot":"","sources":["../../../src/viewer/components/SlideStage.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"SlideStage.vue.d.ts","sourceRoot":"","sources":["../../../src/viewer/components/SlideStage.vue"],"names":[],"mappings":"AA6DA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAIlD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAG3C;;;;;;;GAOG;AACH,KAAK,WAAW,GAAG;IACjB,KAAK,EAAE,SAAS,GAAG,SAAS,CAAC;IAC7B,UAAU,EAAE,UAAU,CAAC;IACvB,aAAa,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACnC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,sFAAsF;IACtF,WAAW,CAAC,EAAE,OAAO,CAAC;CACtB,CAAC;AAmEH,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;WA7EN,MAAM;6EAgFd,CAAC;AACH,QAAA,MAAM,YAAY,EAAS,eAAe,CAAC,OAAO,UAAU,EAAE,WAAW,CAAC,CAAC;wBACtD,OAAO,YAAY;AAAxC,wBAAyC;AAWzC,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KACV,CAAA;CACD,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { PptxElement, ShapeStyle, TextStyle } from 'pptx-viewer-core';
|
|
2
|
+
export interface CopiedFormat {
|
|
3
|
+
shapeStyle?: Partial<ShapeStyle>;
|
|
4
|
+
textStyle?: Partial<TextStyle>;
|
|
5
|
+
}
|
|
6
|
+
/** Copy the paintable shape + text style off an element. */
|
|
7
|
+
export declare function copyFormatFromElement(element: PptxElement): CopiedFormat;
|
|
8
|
+
/** Merge a copied format onto a target element (only defined fields win). */
|
|
9
|
+
export declare function applyFormatToElement(element: PptxElement, format: CopiedFormat): PptxElement;
|
|
10
|
+
/** True when an element exposes formatting fields the painter can copy. */
|
|
11
|
+
export declare function hasCopyableFormat(element: PptxElement | null | undefined): boolean;
|
|
12
|
+
//# sourceMappingURL=format-painter.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"format-painter.d.ts","sourceRoot":"","sources":["../../../src/viewer/composables/format-painter.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,KAAK,EAAE,WAAW,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAG3E,MAAM,WAAW,YAAY;IAC5B,UAAU,CAAC,EAAE,OAAO,CAAC,UAAU,CAAC,CAAC;IACjC,SAAS,CAAC,EAAE,OAAO,CAAC,SAAS,CAAC,CAAC;CAC/B;AAED,4DAA4D;AAC5D,wBAAgB,qBAAqB,CAAC,OAAO,EAAE,WAAW,GAAG,YAAY,CAqDxE;AAYD,6EAA6E;AAC7E,wBAAgB,oBAAoB,CAAC,OAAO,EAAE,WAAW,EAAE,MAAM,EAAE,YAAY,GAAG,WAAW,CAwB5F;AAED,2EAA2E;AAC3E,wBAAgB,iBAAiB,CAAC,OAAO,EAAE,WAAW,GAAG,IAAI,GAAG,SAAS,GAAG,OAAO,CAKlF"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { TextSegment, TextStyle } from 'pptx-viewer-core';
|
|
2
|
+
/**
|
|
3
|
+
* Strategy:
|
|
4
|
+
* 1. Split both original segments and new text into paragraphs by "\n".
|
|
5
|
+
* 2. Distribute new characters proportionally across segments.
|
|
6
|
+
* 3. Extra chars go to last segment, extra paragraphs inherit last style.
|
|
7
|
+
* 4. Re-insert paragraph-break markers between paragraphs.
|
|
8
|
+
*/
|
|
9
|
+
export declare function remapTextToSegments(newText: string, originalSegments: TextSegment[] | undefined, elementTextStyle: TextStyle | undefined): TextSegment[];
|
|
10
|
+
//# sourceMappingURL=remap-text.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"remap-text.d.ts","sourceRoot":"","sources":["../../../src/viewer/composables/remap-text.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,OAAO,KAAK,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAE/D;;;;;;GAMG;AACH,wBAAgB,mBAAmB,CAClC,OAAO,EAAE,MAAM,EACf,gBAAgB,EAAE,WAAW,EAAE,GAAG,SAAS,EAC3C,gBAAgB,EAAE,SAAS,GAAG,SAAS,GACrC,WAAW,EAAE,CAuHf"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { PptxElement, PptxElementWithShapeStyle } from 'pptx-viewer-core';
|
|
2
|
+
export declare const SHAPE_ADJUSTMENT_MIN = 0;
|
|
3
|
+
export declare const SHAPE_ADJUSTMENT_MAX = 50000;
|
|
4
|
+
export declare const DEFAULT_ROUND_RECT_ADJUSTMENT = 16667;
|
|
5
|
+
/** Descriptor for the draggable adjustment handle (the amber diamond). */
|
|
6
|
+
export interface ShapeAdjustmentHandleDescriptor {
|
|
7
|
+
key: string;
|
|
8
|
+
/** Handle x offset in element-local px (origin = element top-left). */
|
|
9
|
+
left: number;
|
|
10
|
+
/** Handle y offset in element-local px. */
|
|
11
|
+
top: number;
|
|
12
|
+
/** Current adjustment value (0–50000). */
|
|
13
|
+
value: number;
|
|
14
|
+
cursor: string;
|
|
15
|
+
}
|
|
16
|
+
/** Live drag state captured when an adjustment gesture starts. */
|
|
17
|
+
export interface ShapeAdjustmentDragState {
|
|
18
|
+
elementId: string;
|
|
19
|
+
key: string;
|
|
20
|
+
shapeType: string;
|
|
21
|
+
startClientX: number;
|
|
22
|
+
startClientY: number;
|
|
23
|
+
startAdjustment: number;
|
|
24
|
+
startWidth: number;
|
|
25
|
+
startHeight: number;
|
|
26
|
+
moved: boolean;
|
|
27
|
+
}
|
|
28
|
+
export declare function clampShapeAdjustmentValue(value: number): number;
|
|
29
|
+
export declare function getRoundRectAdjustmentValue(element: PptxElementWithShapeStyle): number;
|
|
30
|
+
export declare function getRoundRectRadiusPx(element: PptxElementWithShapeStyle): number;
|
|
31
|
+
/**
|
|
32
|
+
* The adjustment handle descriptor for `element`, or `null` when the element
|
|
33
|
+
* type has no adjustable parameter (only round-rects are handled today).
|
|
34
|
+
*/
|
|
35
|
+
export declare function getShapeAdjustmentHandleDescriptor(element: PptxElement): ShapeAdjustmentHandleDescriptor | null;
|
|
36
|
+
/** New adjustment value for a drag delta (px) from the gesture start. */
|
|
37
|
+
export declare function getDraggedShapeAdjustmentValue(state: ShapeAdjustmentDragState, deltaX: number): number;
|
|
38
|
+
//# sourceMappingURL=shape-adjustment.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"shape-adjustment.d.ts","sourceRoot":"","sources":["../../../src/viewer/composables/shape-adjustment.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,KAAK,EAAE,WAAW,EAAE,yBAAyB,EAAE,MAAM,kBAAkB,CAAC;AAK/E,eAAO,MAAM,oBAAoB,IAAI,CAAC;AACtC,eAAO,MAAM,oBAAoB,QAAQ,CAAC;AAC1C,eAAO,MAAM,6BAA6B,QAAQ,CAAC;AAEnD,0EAA0E;AAC1E,MAAM,WAAW,+BAA+B;IAC/C,GAAG,EAAE,MAAM,CAAC;IACZ,uEAAuE;IACvE,IAAI,EAAE,MAAM,CAAC;IACb,2CAA2C;IAC3C,GAAG,EAAE,MAAM,CAAC;IACZ,0CAA0C;IAC1C,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;CACf;AAED,kEAAkE;AAClE,MAAM,WAAW,wBAAwB;IACxC,SAAS,EAAE,MAAM,CAAC;IAClB,GAAG,EAAE,MAAM,CAAC;IACZ,SAAS,EAAE,MAAM,CAAC;IAClB,YAAY,EAAE,MAAM,CAAC;IACrB,YAAY,EAAE,MAAM,CAAC;IACrB,eAAe,EAAE,MAAM,CAAC;IACxB,UAAU,EAAE,MAAM,CAAC;IACnB,WAAW,EAAE,MAAM,CAAC;IACpB,KAAK,EAAE,OAAO,CAAC;CACf;AAED,wBAAgB,yBAAyB,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAE/D;AAED,wBAAgB,2BAA2B,CAAC,OAAO,EAAE,yBAAyB,GAAG,MAAM,CAMtF;AAED,wBAAgB,oBAAoB,CAAC,OAAO,EAAE,yBAAyB,GAAG,MAAM,CAK/E;AAED;;;GAGG;AACH,wBAAgB,kCAAkC,CACjD,OAAO,EAAE,WAAW,GAClB,+BAA+B,GAAG,IAAI,CAsBxC;AAED,yEAAyE;AACzE,wBAAgB,8BAA8B,CAC7C,KAAK,EAAE,wBAAwB,EAC/B,MAAM,EAAE,MAAM,GACZ,MAAM,CAUR"}
|
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-CzhSZmAA.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-B-6YBJU7.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
|