pptx-vue-viewer 1.1.76 → 1.1.78
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/CHANGELOG.md +6 -0
- package/README.md +1 -1
- package/dist/{dist-CvCXjCMh.js → dist-ABxBuMU7.js} +54 -52
- package/dist/dist-ABxBuMU7.js.br +0 -0
- package/dist/{dist-CvCXjCMh.js.gz → dist-ABxBuMU7.js.gz} +0 -0
- package/dist/{dist-CKUdBsHT.cjs → dist-Dtt0UVyq.cjs} +98 -51
- package/dist/dist-Dtt0UVyq.cjs.br +0 -0
- package/dist/{dist-CKUdBsHT.cjs.gz → dist-Dtt0UVyq.cjs.gz} +0 -0
- package/dist/gif-encoder-DZLW3o_g.js +2 -0
- package/dist/gif-encoder-DZLW3o_g.js.br +3 -0
- package/dist/gif-encoder-DZLW3o_g.js.gz +0 -0
- package/dist/gif-encoder-m86u_ZK4.cjs +2 -0
- package/dist/gif-encoder-m86u_ZK4.cjs.br +0 -0
- package/dist/gif-encoder-m86u_ZK4.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 +2 -3
- package/dist/index.js.gz +0 -0
- package/dist/pptx-vue-viewer.css +1 -1
- 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/ActionButtonGlyphOverlay.vue.d.ts +20 -0
- package/dist/viewer/components/ActionButtonGlyphOverlay.vue.d.ts.map +1 -0
- package/dist/viewer/components/CommentMarkersOverlay.vue.d.ts +20 -0
- package/dist/viewer/components/CommentMarkersOverlay.vue.d.ts.map +1 -0
- package/dist/viewer/components/CommentsPanel.vue.d.ts +8 -0
- package/dist/viewer/components/CommentsPanel.vue.d.ts.map +1 -1
- package/dist/viewer/components/ElementRenderer.vue.d.ts.map +1 -1
- package/dist/viewer/components/FontEmbeddingPanel.vue.d.ts +22 -0
- package/dist/viewer/components/FontEmbeddingPanel.vue.d.ts.map +1 -0
- package/dist/viewer/components/HyperlinkDialog.vue.d.ts +13 -30
- package/dist/viewer/components/HyperlinkDialog.vue.d.ts.map +1 -1
- package/dist/viewer/components/InlineTextEditor.vue.d.ts +3 -1
- package/dist/viewer/components/InlineTextEditor.vue.d.ts.map +1 -1
- package/dist/viewer/components/KeepAnnotationsDialog.vue.d.ts +20 -0
- package/dist/viewer/components/KeepAnnotationsDialog.vue.d.ts.map +1 -0
- package/dist/viewer/components/LinkTooltip.vue.d.ts +18 -0
- package/dist/viewer/components/LinkTooltip.vue.d.ts.map +1 -0
- package/dist/viewer/components/PasswordProtectionDialog.vue.d.ts +22 -0
- package/dist/viewer/components/PasswordProtectionDialog.vue.d.ts.map +1 -0
- package/dist/viewer/components/PresentationMode.vue.d.ts +7 -2
- package/dist/viewer/components/PresentationMode.vue.d.ts.map +1 -1
- package/dist/viewer/components/SelectionPane.vue.d.ts +33 -0
- package/dist/viewer/components/SelectionPane.vue.d.ts.map +1 -0
- package/dist/viewer/components/SetUpSlideShowDialog.vue.d.ts +26 -0
- package/dist/viewer/components/SetUpSlideShowDialog.vue.d.ts.map +1 -0
- package/dist/viewer/components/ShowOptionsFieldset.vue.d.ts +18 -0
- package/dist/viewer/components/ShowOptionsFieldset.vue.d.ts.map +1 -0
- package/dist/viewer/components/ShowSlidesFieldset.vue.d.ts +21 -0
- package/dist/viewer/components/ShowSlidesFieldset.vue.d.ts.map +1 -0
- package/dist/viewer/components/SignatureStatusBadge.vue.d.ts +18 -0
- package/dist/viewer/components/SignatureStatusBadge.vue.d.ts.map +1 -0
- package/dist/viewer/components/SignatureStrippedDialog.vue.d.ts +20 -0
- package/dist/viewer/components/SignatureStrippedDialog.vue.d.ts.map +1 -0
- package/dist/viewer/components/SlideSorter.vue.d.ts +7 -0
- package/dist/viewer/components/SlideSorter.vue.d.ts.map +1 -1
- package/dist/viewer/components/TableRenderer.vue.d.ts +3 -2
- package/dist/viewer/components/TableRenderer.vue.d.ts.map +1 -1
- package/dist/viewer/components/TableResizeOverlay.vue.d.ts +36 -0
- package/dist/viewer/components/TableResizeOverlay.vue.d.ts.map +1 -0
- package/dist/viewer/components/inspector/ArtisticEffectsGallery.vue.d.ts +19 -0
- package/dist/viewer/components/inspector/ArtisticEffectsGallery.vue.d.ts.map +1 -0
- package/dist/viewer/components/inspector/ChartDataGrid.vue.d.ts +35 -0
- package/dist/viewer/components/inspector/ChartDataGrid.vue.d.ts.map +1 -0
- package/dist/viewer/components/inspector/ChartDataPointMarkerOptions.vue.d.ts +21 -0
- package/dist/viewer/components/inspector/ChartDataPointMarkerOptions.vue.d.ts.map +1 -0
- package/dist/viewer/components/inspector/ChartDataPointOptions.vue.d.ts +2 -0
- package/dist/viewer/components/inspector/ChartDataPointOptions.vue.d.ts.map +1 -1
- package/dist/viewer/components/inspector/ChartPanel.vue.d.ts.map +1 -1
- package/dist/viewer/components/inspector/ColorChangeSection.vue.d.ts +17 -0
- package/dist/viewer/components/inspector/ColorChangeSection.vue.d.ts.map +1 -0
- package/dist/viewer/components/inspector/ColorWashSection.vue.d.ts +17 -0
- package/dist/viewer/components/inspector/ColorWashSection.vue.d.ts.map +1 -0
- package/dist/viewer/components/inspector/DebouncedColorInput.vue.d.ts +19 -0
- package/dist/viewer/components/inspector/DebouncedColorInput.vue.d.ts.map +1 -0
- package/dist/viewer/components/inspector/DuotonePanel.vue.d.ts +17 -0
- package/dist/viewer/components/inspector/DuotonePanel.vue.d.ts.map +1 -0
- package/dist/viewer/components/inspector/EffectsPanel.vue.d.ts.map +1 -1
- package/dist/viewer/components/inspector/ImageAdjustmentsPanel.vue.d.ts +20 -0
- package/dist/viewer/components/inspector/ImageAdjustmentsPanel.vue.d.ts.map +1 -0
- package/dist/viewer/components/inspector/ImageCropSection.vue.d.ts +21 -0
- package/dist/viewer/components/inspector/ImageCropSection.vue.d.ts.map +1 -0
- package/dist/viewer/components/inspector/ImagePanel.vue.d.ts +7 -13
- package/dist/viewer/components/inspector/ImagePanel.vue.d.ts.map +1 -1
- package/dist/viewer/components/inspector/InspectorPane.vue.d.ts.map +1 -1
- package/dist/viewer/components/inspector/MediaBookmarks.vue.d.ts +16 -0
- package/dist/viewer/components/inspector/MediaBookmarks.vue.d.ts.map +1 -0
- package/dist/viewer/components/inspector/MediaPlaybackOptions.vue.d.ts +13 -0
- package/dist/viewer/components/inspector/MediaPlaybackOptions.vue.d.ts.map +1 -0
- package/dist/viewer/components/inspector/MediaPropertiesPanel.vue.d.ts +13 -0
- package/dist/viewer/components/inspector/MediaPropertiesPanel.vue.d.ts.map +1 -0
- package/dist/viewer/components/inspector/MediaTrimTimeline.vue.d.ts +25 -0
- package/dist/viewer/components/inspector/MediaTrimTimeline.vue.d.ts.map +1 -0
- package/dist/viewer/components/inspector/PresentationSettingsCard.vue.d.ts +22 -0
- package/dist/viewer/components/inspector/PresentationSettingsCard.vue.d.ts.map +1 -0
- package/dist/viewer/components/inspector/QuickStylesGallery.vue.d.ts +9 -0
- package/dist/viewer/components/inspector/QuickStylesGallery.vue.d.ts.map +1 -0
- package/dist/viewer/components/inspector/SlideInspector.vue.d.ts +4 -1
- package/dist/viewer/components/inspector/SlideInspector.vue.d.ts.map +1 -1
- package/dist/viewer/components/inspector/TableCellAdvancedFill.vue.d.ts +20 -0
- package/dist/viewer/components/inspector/TableCellAdvancedFill.vue.d.ts.map +1 -0
- package/dist/viewer/components/inspector/TableCellFormattingPanel.vue.d.ts +24 -0
- package/dist/viewer/components/inspector/TableCellFormattingPanel.vue.d.ts.map +1 -0
- package/dist/viewer/components/inspector/TablePanel.vue.d.ts +9 -24
- package/dist/viewer/components/inspector/TablePanel.vue.d.ts.map +1 -1
- package/dist/viewer/components/inspector/TableSizePanel.vue.d.ts +19 -0
- package/dist/viewer/components/inspector/TableSizePanel.vue.d.ts.map +1 -0
- package/dist/viewer/components/inspector/TableStyleOptions.vue.d.ts +19 -0
- package/dist/viewer/components/inspector/TableStyleOptions.vue.d.ts.map +1 -0
- package/dist/viewer/components/inspector/Text3DBevelSection.vue.d.ts +25 -0
- package/dist/viewer/components/inspector/Text3DBevelSection.vue.d.ts.map +1 -0
- package/dist/viewer/components/inspector/Text3DProperties.vue.d.ts +20 -0
- package/dist/viewer/components/inspector/Text3DProperties.vue.d.ts.map +1 -0
- package/dist/viewer/components/inspector/TextEffectsPanel.vue.d.ts +18 -0
- package/dist/viewer/components/inspector/TextEffectsPanel.vue.d.ts.map +1 -0
- package/dist/viewer/components/inspector/TextPanel.vue.d.ts.map +1 -1
- package/dist/viewer/components/inspector/TextWarpGallery.vue.d.ts +19 -0
- package/dist/viewer/components/inspector/TextWarpGallery.vue.d.ts.map +1 -0
- package/dist/viewer/composables/table-mutations.d.ts +26 -0
- package/dist/viewer/composables/table-mutations.d.ts.map +1 -0
- package/dist/viewer/composables/table-selection.d.ts +68 -0
- package/dist/viewer/composables/table-selection.d.ts.map +1 -0
- package/dist/viewer/composables/useChartEditing.d.ts +14 -1
- package/dist/viewer/composables/useChartEditing.d.ts.map +1 -1
- package/dist/viewer/composables/useComments.d.ts +8 -0
- package/dist/viewer/composables/useComments.d.ts.map +1 -1
- package/dist/viewer/composables/useDebouncedCallback.d.ts +16 -0
- package/dist/viewer/composables/useDebouncedCallback.d.ts.map +1 -0
- package/dist/viewer/composables/useImageEditing.d.ts +46 -0
- package/dist/viewer/composables/useImageEditing.d.ts.map +1 -0
- package/dist/viewer/composables/useLoadContent.d.ts +3 -1
- package/dist/viewer/composables/useLoadContent.d.ts.map +1 -1
- package/dist/viewer/composables/useMediaEditing.d.ts +34 -0
- package/dist/viewer/composables/useMediaEditing.d.ts.map +1 -0
- package/dist/viewer/composables/useTextEffects.d.ts +23 -0
- package/dist/viewer/composables/useTextEffects.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 +1 -2
- package/dist/viewer/index.js.gz +0 -0
- package/dist/{viewer-t-wza0VB.js → viewer-BUUM_Eul.js} +11887 -7714
- package/dist/viewer-BUUM_Eul.js.br +0 -0
- package/dist/viewer-BUUM_Eul.js.gz +0 -0
- package/dist/{viewer-BgiINZf1.cjs → viewer-DGYrL5xE.cjs} +9111 -4937
- package/dist/viewer-DGYrL5xE.cjs.br +0 -0
- package/dist/viewer-DGYrL5xE.cjs.gz +0 -0
- package/package.json +1 -1
- package/dist/dist-CKUdBsHT.cjs.br +0 -0
- package/dist/dist-CvCXjCMh.js.br +0 -0
- package/dist/gif-encoder-CYNnxL8D.cjs +0 -2
- package/dist/gif-encoder-CYNnxL8D.cjs.br +0 -0
- package/dist/gif-encoder-CYNnxL8D.cjs.gz +0 -0
- package/dist/gif-encoder-NTISOGYu.js +0 -2
- package/dist/gif-encoder-NTISOGYu.js.br +0 -3
- package/dist/gif-encoder-NTISOGYu.js.gz +0 -0
- package/dist/viewer-BgiINZf1.cjs.br +0 -0
- package/dist/viewer-BgiINZf1.cjs.gz +0 -0
- package/dist/viewer-t-wza0VB.js.br +0 -0
- package/dist/viewer-t-wza0VB.js.gz +0 -0
|
@@ -1,18 +1,12 @@
|
|
|
1
1
|
import { PptxElement } from 'pptx-viewer-core';
|
|
2
2
|
/**
|
|
3
|
-
* ImagePanel: inspector panel for image-like elements (`image` / `picture`)
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
* Controls mirror the real core fields exactly:
|
|
12
|
-
* - Alt text → `altText` (string) on `PptxImageProperties`.
|
|
13
|
-
* - Brightness / Contrast / Saturation → numeric fields on
|
|
14
|
-
* `PptxImageEffects` (`imageEffects`), each ranged -100..100.
|
|
15
|
-
* - Reset adjustments → clears the whole `imageEffects` container.
|
|
3
|
+
* ImagePanel: inspector panel for image-like elements (`image` / `picture`),
|
|
4
|
+
* at parity with React's ImagePropertiesPanel. This SFC stays thin: alt text +
|
|
5
|
+
* grayscale toggle + full Reset Picture live here, while every other concern is
|
|
6
|
+
* a focused sub-panel (adjustments, crop/replace, artistic effects, recolour,
|
|
7
|
+
* colour wash, duotone). Each sub-panel emits a shallow `Partial<PptxElement>`
|
|
8
|
+
* patch (nested `imageEffects` emitted whole) which this panel relays upward;
|
|
9
|
+
* the host merges it via `ops.updateElement(id, patch)`.
|
|
16
10
|
*/
|
|
17
11
|
type __VLS_Props = {
|
|
18
12
|
element: PptxElement;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ImagePanel.vue.d.ts","sourceRoot":"","sources":["../../../../src/viewer/components/inspector/ImagePanel.vue"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"ImagePanel.vue.d.ts","sourceRoot":"","sources":["../../../../src/viewer/components/inspector/ImagePanel.vue"],"names":[],"mappings":"AAAA,OAyIO,KAAK,EAAE,WAAW,EAAoB,MAAM,kBAAkB,CAAC;AAYtE;;;;;;;;GAQG;AACH,KAAK,WAAW,GAAG;IAClB,OAAO,EAAE,WAAW,CAAC;CACrB,CAAC;AAqRF,QAAA,MAAM,YAAY;;;;kFAGhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InspectorPane.vue.d.ts","sourceRoot":"","sources":["../../../../src/viewer/components/inspector/InspectorPane.vue"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"InspectorPane.vue.d.ts","sourceRoot":"","sources":["../../../../src/viewer/components/inspector/InspectorPane.vue"],"names":[],"mappings":"AAAA,OAyJO,KAAK,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAgBpD;;;;;;;;;;GAUG;AACH,KAAK,WAAW,GAAG;IAAE,OAAO,EAAE,WAAW,CAAC;IAAC,MAAM,CAAC,EAAE,OAAO,CAAC;IAAC,OAAO,CAAC,EAAE,OAAO,CAAA;CAAE,CAAC;AAwcjF,QAAA,MAAM,YAAY;;;;kFAGhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { MediaBookmark, PptxElement } from 'pptx-viewer-core';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
bookmarks: MediaBookmark[];
|
|
4
|
+
canEdit: boolean;
|
|
5
|
+
currentTime: number;
|
|
6
|
+
};
|
|
7
|
+
declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
8
|
+
update: (patch: Partial<PptxElement>) => any;
|
|
9
|
+
seek: (time: number) => any;
|
|
10
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
11
|
+
onUpdate?: ((patch: Partial<PptxElement>) => any) | undefined;
|
|
12
|
+
onSeek?: ((time: number) => any) | undefined;
|
|
13
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
14
|
+
declare const _default: typeof __VLS_export;
|
|
15
|
+
export default _default;
|
|
16
|
+
//# sourceMappingURL=MediaBookmarks.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MediaBookmarks.vue.d.ts","sourceRoot":"","sources":["../../../../src/viewer/components/inspector/MediaBookmarks.vue"],"names":[],"mappings":"AAwGA;;;;;;;;GAQG;AACH,OAAO,KAAK,EAAE,aAAa,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAKnE,KAAK,WAAW,GAAG;IAClB,SAAS,EAAE,aAAa,EAAE,CAAC;IAC3B,OAAO,EAAE,OAAO,CAAC;IACjB,WAAW,EAAE,MAAM,CAAC;CACpB,CAAC;AAsKF,QAAA,MAAM,YAAY;;;;;;kFAGhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { MediaPptxElement, PptxElement } from 'pptx-viewer-core';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
element: MediaPptxElement;
|
|
4
|
+
canEdit: boolean;
|
|
5
|
+
};
|
|
6
|
+
declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
7
|
+
update: (patch: Partial<PptxElement>) => any;
|
|
8
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
9
|
+
onUpdate?: ((patch: Partial<PptxElement>) => any) | undefined;
|
|
10
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
11
|
+
declare const _default: typeof __VLS_export;
|
|
12
|
+
export default _default;
|
|
13
|
+
//# sourceMappingURL=MediaPlaybackOptions.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MediaPlaybackOptions.vue.d.ts","sourceRoot":"","sources":["../../../../src/viewer/components/inspector/MediaPlaybackOptions.vue"],"names":[],"mappings":"AAoNA;;;;;;;;GAQG;AACH,OAAO,KAAK,EAAE,gBAAgB,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAGtE,KAAK,WAAW,GAAG;IAClB,OAAO,EAAE,gBAAgB,CAAC;IAC1B,OAAO,EAAE,OAAO,CAAC;CACjB,CAAC;AA4SF,QAAA,MAAM,YAAY;;;;kFAGhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { PptxElement } from 'pptx-viewer-core';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
element: PptxElement;
|
|
4
|
+
canEdit?: boolean;
|
|
5
|
+
};
|
|
6
|
+
declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
7
|
+
update: (patch: Partial<PptxElement>) => any;
|
|
8
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
9
|
+
onUpdate?: ((patch: Partial<PptxElement>) => any) | undefined;
|
|
10
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
11
|
+
declare const _default: typeof __VLS_export;
|
|
12
|
+
export default _default;
|
|
13
|
+
//# sourceMappingURL=MediaPropertiesPanel.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MediaPropertiesPanel.vue.d.ts","sourceRoot":"","sources":["../../../../src/viewer/components/inspector/MediaPropertiesPanel.vue"],"names":[],"mappings":"AAAA,OAyRO,KAAK,EAAoB,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAetE,KAAK,WAAW,GAAG;IAClB,OAAO,EAAE,WAAW,CAAC;IACrB,OAAO,CAAC,EAAE,OAAO,CAAC;CAClB,CAAC;AA8bF,QAAA,MAAM,YAAY;;;;kFAGhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { MediaBookmark } from 'pptx-viewer-core';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
duration: number;
|
|
4
|
+
trimStartMs: number;
|
|
5
|
+
trimEndMs: number;
|
|
6
|
+
currentTime: number;
|
|
7
|
+
bookmarks: MediaBookmark[];
|
|
8
|
+
canEdit: boolean;
|
|
9
|
+
};
|
|
10
|
+
declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
11
|
+
seek: (time: number) => any;
|
|
12
|
+
"trim-change": (payload: {
|
|
13
|
+
trimStartMs: number;
|
|
14
|
+
trimEndMs: number;
|
|
15
|
+
}) => any;
|
|
16
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
17
|
+
onSeek?: ((time: number) => any) | undefined;
|
|
18
|
+
"onTrim-change"?: ((payload: {
|
|
19
|
+
trimStartMs: number;
|
|
20
|
+
trimEndMs: number;
|
|
21
|
+
}) => any) | undefined;
|
|
22
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
23
|
+
declare const _default: typeof __VLS_export;
|
|
24
|
+
export default _default;
|
|
25
|
+
//# sourceMappingURL=MediaTrimTimeline.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MediaTrimTimeline.vue.d.ts","sourceRoot":"","sources":["../../../../src/viewer/components/inspector/MediaTrimTimeline.vue"],"names":[],"mappings":"AAoJA;;;;;;;;;GASG;AACH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAKtD,KAAK,WAAW,GAAG;IAClB,QAAQ,EAAE,MAAM,CAAC;IACjB,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,aAAa,EAAE,CAAC;IAC3B,OAAO,EAAE,OAAO,CAAC;CACjB,CAAC;AAqOF,QAAA,MAAM,YAAY;;;qBAjOuB,MAAM;mBAAa,MAAM;;;;;qBAAzB,MAAM;mBAAa,MAAM;;kFAoOhE,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { PptxPresentationProperties } from 'pptx-viewer-core';
|
|
2
|
+
/**
|
|
3
|
+
* PresentationSettingsCard: deck-wide slide-show / print settings, shown in the
|
|
4
|
+
* slide inspector. Vue port of the React `inspector/PresentationSettingsCards.tsx`
|
|
5
|
+
* (`PresentationSettingsCard`). The parent owns `presentationProperties` and
|
|
6
|
+
* commits each patch; the theme and slide-size cards from React are handled by
|
|
7
|
+
* dedicated Vue surfaces and are not duplicated here.
|
|
8
|
+
*/
|
|
9
|
+
type __VLS_Props = {
|
|
10
|
+
presentationProperties: PptxPresentationProperties;
|
|
11
|
+
canEdit?: boolean;
|
|
12
|
+
};
|
|
13
|
+
declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
14
|
+
update: (patch: Partial<PptxPresentationProperties>) => any;
|
|
15
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
16
|
+
onUpdate?: ((patch: Partial<PptxPresentationProperties>) => any) | undefined;
|
|
17
|
+
}>, {
|
|
18
|
+
canEdit: boolean;
|
|
19
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
20
|
+
declare const _default: typeof __VLS_export;
|
|
21
|
+
export default _default;
|
|
22
|
+
//# sourceMappingURL=PresentationSettingsCard.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PresentationSettingsCard.vue.d.ts","sourceRoot":"","sources":["../../../../src/viewer/components/inspector/PresentationSettingsCard.vue"],"names":[],"mappings":"AAAA,OA2GO,KAAK,EAAE,0BAA0B,EAAE,MAAM,kBAAkB,CAAC;AAEnE;;;;;;GAMG;AACH,KAAK,WAAW,GAAG;IACjB,sBAAsB,EAAE,0BAA0B,CAAC;IACnD,OAAO,CAAC,EAAE,OAAO,CAAC;CAClB,CAAC;AA8MH,QAAA,MAAM,YAAY;;;;;aA/MN,OAAO;6EAmNjB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ShapeStyle } from 'pptx-viewer-core';
|
|
2
|
+
declare const __VLS_export: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
3
|
+
select: (style: Partial<ShapeStyle>) => any;
|
|
4
|
+
}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{
|
|
5
|
+
onSelect?: ((style: Partial<ShapeStyle>) => any) | undefined;
|
|
6
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
7
|
+
declare const _default: typeof __VLS_export;
|
|
8
|
+
export default _default;
|
|
9
|
+
//# sourceMappingURL=QuickStylesGallery.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"QuickStylesGallery.vue.d.ts","sourceRoot":"","sources":["../../../../src/viewer/components/inspector/QuickStylesGallery.vue"],"names":[],"mappings":"AA8DA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AA8GnD,QAAA,MAAM,YAAY;;;;iFAEhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
|
|
@@ -1,16 +1,19 @@
|
|
|
1
|
-
import { PptxSlide, PptxSlideTransition, PptxTheme } from 'pptx-viewer-core';
|
|
1
|
+
import { PptxPresentationProperties, PptxSlide, PptxSlideTransition, PptxTheme } from 'pptx-viewer-core';
|
|
2
2
|
type __VLS_Props = {
|
|
3
3
|
slide: PptxSlide | undefined;
|
|
4
4
|
theme?: PptxTheme;
|
|
5
|
+
presentationProperties?: PptxPresentationProperties;
|
|
5
6
|
mobile?: boolean;
|
|
6
7
|
canEdit?: boolean;
|
|
7
8
|
};
|
|
8
9
|
declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
9
10
|
"transition-update": (transition: PptxSlideTransition | undefined) => any;
|
|
10
11
|
"slide-update": (patch: Partial<PptxSlide>) => any;
|
|
12
|
+
"presentation-update": (patch: Partial<PptxPresentationProperties>) => any;
|
|
11
13
|
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
12
14
|
"onTransition-update"?: ((transition: PptxSlideTransition | undefined) => any) | undefined;
|
|
13
15
|
"onSlide-update"?: ((patch: Partial<PptxSlide>) => any) | undefined;
|
|
16
|
+
"onPresentation-update"?: ((patch: Partial<PptxPresentationProperties>) => any) | undefined;
|
|
14
17
|
}>, {
|
|
15
18
|
canEdit: boolean;
|
|
16
19
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SlideInspector.vue.d.ts","sourceRoot":"","sources":["../../../../src/viewer/components/inspector/SlideInspector.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"SlideInspector.vue.d.ts","sourceRoot":"","sources":["../../../../src/viewer/components/inspector/SlideInspector.vue"],"names":[],"mappings":"AAuNA;;;;;;;;;;;GAWG;AACH,OAAO,KAAK,EACX,0BAA0B,EAC1B,SAAS,EACT,mBAAmB,EACnB,SAAS,EAET,MAAM,kBAAkB,CAAC;AAkB1B,KAAK,WAAW,GAAG;IACjB,KAAK,EAAE,SAAS,GAAG,SAAS,CAAC;IAC7B,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,sBAAsB,CAAC,EAAE,0BAA0B,CAAC;IACpD,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,OAAO,CAAC,EAAE,OAAO,CAAC;CAClB,CAAC;AAwXH,QAAA,MAAM,YAAY;;;;;;;;;aAzXN,OAAO;6EA6XjB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { PptxTableCellStyle } from 'pptx-viewer-core';
|
|
2
|
+
/**
|
|
3
|
+
* TableCellAdvancedFill: Vue port of React's inspector
|
|
4
|
+
* `TableCellAdvancedFill.tsx`. Advanced (gradient / pattern) cell fill controls
|
|
5
|
+
* plus cell margins. Fill-mode, gradient-type and pattern-preset option lists
|
|
6
|
+
* come from `pptx-viewer-shared` (`render/table-advanced-fill.ts`); the i18n
|
|
7
|
+
* keys are mapped to plain English labels to match the Vue viewer's copy.
|
|
8
|
+
*/
|
|
9
|
+
type __VLS_Props = {
|
|
10
|
+
cellStyle: PptxTableCellStyle;
|
|
11
|
+
canEdit: boolean;
|
|
12
|
+
};
|
|
13
|
+
declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
14
|
+
update: (patch: Partial<PptxTableCellStyle>) => any;
|
|
15
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
16
|
+
onUpdate?: ((patch: Partial<PptxTableCellStyle>) => any) | undefined;
|
|
17
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
18
|
+
declare const _default: typeof __VLS_export;
|
|
19
|
+
export default _default;
|
|
20
|
+
//# sourceMappingURL=TableCellAdvancedFill.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TableCellAdvancedFill.vue.d.ts","sourceRoot":"","sources":["../../../../src/viewer/components/inspector/TableCellAdvancedFill.vue"],"names":[],"mappings":"AAuOA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAI3D;;;;;;GAMG;AACH,KAAK,WAAW,GAAG;IAClB,SAAS,EAAE,kBAAkB,CAAC;IAC9B,OAAO,EAAE,OAAO,CAAC;CACjB,CAAC;AA2eF,QAAA,MAAM,YAAY;;;;kFAGhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { PptxTableData } from 'pptx-viewer-core';
|
|
2
|
+
/**
|
|
3
|
+
* TableCellFormattingPanel: Vue port of React's inspector
|
|
4
|
+
* `TableCellFormattingPanel.tsx`. Formats the currently-selected table cell:
|
|
5
|
+
* font size, text / background colour, bold / italic / underline, horizontal
|
|
6
|
+
* and vertical alignment, per-edge and diagonal borders, advanced fill
|
|
7
|
+
* (gradient / pattern) + margins, and cursor-anchored merge / split. All edits
|
|
8
|
+
* emit a full `Partial<PptxTableData>` (rows) patch that the parent forwards to
|
|
9
|
+
* the editor operations, so undo / redo and dirty-marking flow uniformly.
|
|
10
|
+
*/
|
|
11
|
+
type __VLS_Props = {
|
|
12
|
+
tableData: PptxTableData;
|
|
13
|
+
rowIndex: number;
|
|
14
|
+
columnIndex: number;
|
|
15
|
+
canEdit: boolean;
|
|
16
|
+
};
|
|
17
|
+
declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
18
|
+
update: (patch: Partial<PptxTableData>) => any;
|
|
19
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
20
|
+
onUpdate?: ((patch: Partial<PptxTableData>) => any) | undefined;
|
|
21
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
22
|
+
declare const _default: typeof __VLS_export;
|
|
23
|
+
export default _default;
|
|
24
|
+
//# sourceMappingURL=TableCellFormattingPanel.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TableCellFormattingPanel.vue.d.ts","sourceRoot":"","sources":["../../../../src/viewer/components/inspector/TableCellFormattingPanel.vue"],"names":[],"mappings":"AAwPA,OAAO,KAAK,EAAsB,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAO1E;;;;;;;;GAQG;AACH,KAAK,WAAW,GAAG;IAClB,SAAS,EAAE,aAAa,CAAC;IACzB,QAAQ,EAAE,MAAM,CAAC;IACjB,WAAW,EAAE,MAAM,CAAC;IACpB,OAAO,EAAE,OAAO,CAAC;CACjB,CAAC;AAgfF,QAAA,MAAM,YAAY;;;;kFAGhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
|
|
@@ -2,31 +2,16 @@ import { PptxElement } from 'pptx-viewer-core';
|
|
|
2
2
|
/**
|
|
3
3
|
* TablePanel: inspector panel for table elements (`element.type === 'table'`).
|
|
4
4
|
*
|
|
5
|
-
* Vue
|
|
6
|
-
* insert
|
|
5
|
+
* Vue port of React's inspector `TablePropertiesPanel` + `TableCellFormatting`.
|
|
6
|
+
* Structural operations (insert / delete row / column, merge selected cells) are
|
|
7
|
+
* merge-span aware and driven by `pptx-viewer-shared` transforms, keyed to the
|
|
8
|
+
* cell selected on the canvas (injected via the table selection context; falls
|
|
9
|
+
* back to the first cell when nothing is selected). Cell-level formatting, table
|
|
10
|
+
* style toggles / presets, and column-width / row-height controls are delegated
|
|
11
|
+
* to focused sub-components.
|
|
7
12
|
*
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
* - Emits `update` with a SHALLOW `Partial<PptxElement>` patch that the parent
|
|
11
|
-
* merges via `ops.updateElement(id, patch)`. For grid edits the FULL new
|
|
12
|
-
* `tableData` object is emitted under the real field name (`tableData`).
|
|
13
|
-
*
|
|
14
|
-
* Table model (mirrors `pptx-viewer-core` `PptxTableData`):
|
|
15
|
-
* - `tableData.rows: PptxTableRow[]`: each `{ height?, cells: PptxTableCell[] }`.
|
|
16
|
-
* - `tableData.columnWidths: number[]`: per-column proportion (sums to 1).
|
|
17
|
-
* - Cells: `PptxTableCell` `{ text, style?, gridSpan?, rowSpan?, vMerge?, hMerge? }`.
|
|
18
|
-
*
|
|
19
|
-
* The core row/column helpers (`addTableRow` / `removeTableRow` /
|
|
20
|
-
* `addTableColumn` / `removeTableColumn` in `core/runtime/`) are NOT part of
|
|
21
|
-
* the public `pptx-viewer-core` barrel, so this panel performs the array
|
|
22
|
-
* manipulation directly on a deep-cloned `tableData`, mirroring their logical
|
|
23
|
-
* behaviour (blank cells matching the cell shape, width re-normalisation).
|
|
24
|
-
*
|
|
25
|
-
* Active-cell choice: the inspector contract passes only `{ element }`; the
|
|
26
|
-
* table model does not track a selected/active cell here, so insert/delete
|
|
27
|
-
* operations act on the LAST row / LAST column (inserts can target above/below
|
|
28
|
-
* or left/right of that reference). Delete is disabled when only one row /
|
|
29
|
-
* column remains.
|
|
13
|
+
* Contract: emits `update` with a shallow `Partial<PptxElement>`; grid edits are
|
|
14
|
+
* emitted as the full new `tableData` object under the `tableData` field.
|
|
30
15
|
*/
|
|
31
16
|
type __VLS_Props = {
|
|
32
17
|
element: PptxElement;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TablePanel.vue.d.ts","sourceRoot":"","sources":["../../../../src/viewer/components/inspector/TablePanel.vue"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"TablePanel.vue.d.ts","sourceRoot":"","sources":["../../../../src/viewer/components/inspector/TablePanel.vue"],"names":[],"mappings":"AAAA,OA+NO,KAAK,EAAE,WAAW,EAAmC,MAAM,kBAAkB,CAAC;AAerF;;;;;;;;;;;;;GAaG;AACH,KAAK,WAAW,GAAG;IAClB,OAAO,EAAE,WAAW,CAAC;CACrB,CAAC;AA2ZF,QAAA,MAAM,YAAY;;;;kFAGhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { PptxTableData } from 'pptx-viewer-core';
|
|
2
|
+
/**
|
|
3
|
+
* TableSizePanel: Vue port of the column-width and row-height numeric controls
|
|
4
|
+
* from React's inspector `TablePropertiesPanel.tsx`. Column widths are edited as
|
|
5
|
+
* proportions (renormalised to sum to 1); row heights as pixels. Emits a
|
|
6
|
+
* `Partial<PptxTableData>` patch for the parent to merge.
|
|
7
|
+
*/
|
|
8
|
+
type __VLS_Props = {
|
|
9
|
+
tableData: PptxTableData;
|
|
10
|
+
canEdit: boolean;
|
|
11
|
+
};
|
|
12
|
+
declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
13
|
+
update: (patch: Partial<PptxTableData>) => any;
|
|
14
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
15
|
+
onUpdate?: ((patch: Partial<PptxTableData>) => any) | undefined;
|
|
16
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
17
|
+
declare const _default: typeof __VLS_export;
|
|
18
|
+
export default _default;
|
|
19
|
+
//# sourceMappingURL=TableSizePanel.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TableSizePanel.vue.d.ts","sourceRoot":"","sources":["../../../../src/viewer/components/inspector/TableSizePanel.vue"],"names":[],"mappings":"AA6HA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAEtD;;;;;GAKG;AACH,KAAK,WAAW,GAAG;IAClB,SAAS,EAAE,aAAa,CAAC;IACzB,OAAO,EAAE,OAAO,CAAC;CACjB,CAAC;AAoOF,QAAA,MAAM,YAAY;;;;kFAGhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { PptxTableData } from 'pptx-viewer-core';
|
|
2
|
+
/**
|
|
3
|
+
* TableStyleOptions: Vue port of the structure/style toggles + quick-style
|
|
4
|
+
* preset grid from React's inspector `TablePropertiesPanel.tsx`. Emits a
|
|
5
|
+
* `Partial<PptxTableData>` patch (banding flags, band cycle counts, or a full
|
|
6
|
+
* re-styled `rows` array) that the parent merges into the element's tableData.
|
|
7
|
+
*/
|
|
8
|
+
type __VLS_Props = {
|
|
9
|
+
tableData: PptxTableData;
|
|
10
|
+
canEdit: boolean;
|
|
11
|
+
};
|
|
12
|
+
declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
13
|
+
update: (patch: Partial<PptxTableData>) => any;
|
|
14
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
15
|
+
onUpdate?: ((patch: Partial<PptxTableData>) => any) | undefined;
|
|
16
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
17
|
+
declare const _default: typeof __VLS_export;
|
|
18
|
+
export default _default;
|
|
19
|
+
//# sourceMappingURL=TableStyleOptions.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TableStyleOptions.vue.d.ts","sourceRoot":"","sources":["../../../../src/viewer/components/inspector/TableStyleOptions.vue"],"names":[],"mappings":"AAoIA,OAAO,KAAK,EAAsB,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAG1E;;;;;GAKG;AACH,KAAK,WAAW,GAAG;IAClB,SAAS,EAAE,aAAa,CAAC;IACzB,OAAO,EAAE,OAAO,CAAC;CACjB,CAAC;AA8PF,QAAA,MAAM,YAAY;;;;kFAGhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { BevelPresetType } from 'pptx-viewer-core';
|
|
2
|
+
/**
|
|
3
|
+
* Text3DBevelSection: one bevel editor (type / width / height), reused for the
|
|
4
|
+
* top and bottom bevels of `Text3DProperties`. Widths and heights are shown in
|
|
5
|
+
* points and emitted in points; the parent converts to EMU. Mirrors the React
|
|
6
|
+
* `BevelSection` sub-component.
|
|
7
|
+
*/
|
|
8
|
+
type __VLS_Props = {
|
|
9
|
+
label: string;
|
|
10
|
+
bevelType: BevelPresetType | undefined;
|
|
11
|
+
bevelWidth: number | undefined;
|
|
12
|
+
bevelHeight: number | undefined;
|
|
13
|
+
};
|
|
14
|
+
declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
15
|
+
typeChange: (value: BevelPresetType) => any;
|
|
16
|
+
widthChange: (value: number) => any;
|
|
17
|
+
heightChange: (value: number) => any;
|
|
18
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
19
|
+
onTypeChange?: ((value: BevelPresetType) => any) | undefined;
|
|
20
|
+
onWidthChange?: ((value: number) => any) | undefined;
|
|
21
|
+
onHeightChange?: ((value: number) => any) | undefined;
|
|
22
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
23
|
+
declare const _default: typeof __VLS_export;
|
|
24
|
+
export default _default;
|
|
25
|
+
//# sourceMappingURL=Text3DBevelSection.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Text3DBevelSection.vue.d.ts","sourceRoot":"","sources":["../../../../src/viewer/components/inspector/Text3DBevelSection.vue"],"names":[],"mappings":"AAsFA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAKxD;;;;;GAKG;AACH,KAAK,WAAW,GAAG;IAClB,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,eAAe,GAAG,SAAS,CAAC;IACvC,UAAU,EAAE,MAAM,GAAG,SAAS,CAAC;IAC/B,WAAW,EAAE,MAAM,GAAG,SAAS,CAAC;CAChC,CAAC;AAwIF,QAAA,MAAM,YAAY;;;;;;;;kFAGhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { TextStyle } from 'pptx-viewer-core';
|
|
2
|
+
/**
|
|
3
|
+
* Text3DProperties: 3D-text (WordArt) authoring UI, mirroring the React
|
|
4
|
+
* `Text3DProperties`. Exposes an extrusion toggle with depth/colour, top and
|
|
5
|
+
* bottom bevels, and a surface material. Widths/heights use EMU<->pt conversion
|
|
6
|
+
* (1pt = 12700 EMU). Emits `update` with a PARTIAL `TextStyle` patch carrying
|
|
7
|
+
* the FULL merged `text3d` sub-object; the parent (`TextPanel`) merges into
|
|
8
|
+
* `textStyle`.
|
|
9
|
+
*/
|
|
10
|
+
type __VLS_Props = {
|
|
11
|
+
ts: TextStyle | undefined;
|
|
12
|
+
};
|
|
13
|
+
declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
14
|
+
update: (patch: Partial<TextStyle>) => any;
|
|
15
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
16
|
+
onUpdate?: ((patch: Partial<TextStyle>) => any) | undefined;
|
|
17
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
18
|
+
declare const _default: typeof __VLS_export;
|
|
19
|
+
export default _default;
|
|
20
|
+
//# sourceMappingURL=Text3DProperties.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Text3DProperties.vue.d.ts","sourceRoot":"","sources":["../../../../src/viewer/components/inspector/Text3DProperties.vue"],"names":[],"mappings":"AAmIA,OAAO,KAAK,EAAoD,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAOpG;;;;;;;GAOG;AACH,KAAK,WAAW,GAAG;IAClB,EAAE,EAAE,SAAS,GAAG,SAAS,CAAC;CAC1B,CAAC;AAmQF,QAAA,MAAM,YAAY;;;;kFAGhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { TextStyle } from 'pptx-viewer-core';
|
|
2
|
+
/**
|
|
3
|
+
* TextEffectsPanel: shadow / glow / reflection authoring controls for text
|
|
4
|
+
* runs, mirroring the React `TextEffectsPanel`. Each control emits an `update`
|
|
5
|
+
* carrying a PARTIAL `TextStyle` patch; the parent (`TextPanel`) merges it onto
|
|
6
|
+
* the current `textStyle` and forwards the full sub-object.
|
|
7
|
+
*/
|
|
8
|
+
type __VLS_Props = {
|
|
9
|
+
ts: TextStyle | undefined;
|
|
10
|
+
};
|
|
11
|
+
declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
12
|
+
update: (patch: Partial<TextStyle>) => any;
|
|
13
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
14
|
+
onUpdate?: ((patch: Partial<TextStyle>) => any) | undefined;
|
|
15
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
16
|
+
declare const _default: typeof __VLS_export;
|
|
17
|
+
export default _default;
|
|
18
|
+
//# sourceMappingURL=TextEffectsPanel.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TextEffectsPanel.vue.d.ts","sourceRoot":"","sources":["../../../../src/viewer/components/inspector/TextEffectsPanel.vue"],"names":[],"mappings":"AA4PA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAelD;;;;;GAKG;AACH,KAAK,WAAW,GAAG;IAClB,EAAE,EAAE,SAAS,GAAG,SAAS,CAAC;CAC1B,CAAC;AA8cF,QAAA,MAAM,YAAY;;;;kFAGhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TextPanel.vue.d.ts","sourceRoot":"","sources":["../../../../src/viewer/components/inspector/TextPanel.vue"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"TextPanel.vue.d.ts","sourceRoot":"","sources":["../../../../src/viewer/components/inspector/TextPanel.vue"],"names":[],"mappings":"AAAA,OAoPO,KAAK,EAAE,WAAW,EAAiC,MAAM,kBAAkB,CAAC;AAuBnF,KAAK,WAAW,GAAG;IAClB,OAAO,EAAE,WAAW,CAAC;CACrB,CAAC;AAsaF,QAAA,MAAM,YAAY;;;;kFAGhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { TextStyle } from 'pptx-viewer-core';
|
|
2
|
+
/**
|
|
3
|
+
* TextWarpGallery: collapsible gallery of text-warp presets, sourced from the
|
|
4
|
+
* shared `TEXT_WARP_PRESETS` catalogue with miniature SVG previews from
|
|
5
|
+
* `warpPreviewPath`. Selecting a preset emits `select` with the preset value,
|
|
6
|
+
* or `undefined` for the identity `textNoShape` preset. The parent
|
|
7
|
+
* (`TextPanel`) merges it into the full `textStyle` sub-object.
|
|
8
|
+
*/
|
|
9
|
+
type __VLS_Props = {
|
|
10
|
+
ts: TextStyle | undefined;
|
|
11
|
+
};
|
|
12
|
+
declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
13
|
+
select: (preset: string | undefined) => any;
|
|
14
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
15
|
+
onSelect?: ((preset: string | undefined) => any) | undefined;
|
|
16
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
17
|
+
declare const _default: typeof __VLS_export;
|
|
18
|
+
export default _default;
|
|
19
|
+
//# sourceMappingURL=TextWarpGallery.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TextWarpGallery.vue.d.ts","sourceRoot":"","sources":["../../../../src/viewer/components/inspector/TextWarpGallery.vue"],"names":[],"mappings":"AA+EA,OAAO,KAAK,EAAsB,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAItE;;;;;;GAMG;AACH,KAAK,WAAW,GAAG;IAClB,EAAE,EAAE,SAAS,GAAG,SAAS,CAAC;CAC1B,CAAC;AA8IF,QAAA,MAAM,YAAY;;;;kFAGhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { PptxTableData } from 'pptx-viewer-core';
|
|
2
|
+
import { CellCoord } from 'pptx-viewer-shared';
|
|
3
|
+
/**
|
|
4
|
+
* table-mutations: thin, pure wrappers over the framework-agnostic table
|
|
5
|
+
* transforms in `pptx-viewer-shared`, returning a new `PptxTableData` (or `null`
|
|
6
|
+
* for a no-op) so both the inspector `TablePanel` (emits an element patch) and
|
|
7
|
+
* the canvas context menu (applies via `useEditorOperations`) drive edits from
|
|
8
|
+
* one merge-aware implementation. Mirrors React's table operation handlers.
|
|
9
|
+
*/
|
|
10
|
+
/** Insert a blank row above/below `rowIndex` (merge span aware). */
|
|
11
|
+
export declare function applyInsertRow(td: PptxTableData, rowIndex: number, position: 'above' | 'below'): PptxTableData;
|
|
12
|
+
/** Delete the row at `rowIndex`; returns `null` when the delete is a no-op. */
|
|
13
|
+
export declare function applyDeleteRow(td: PptxTableData, rowIndex: number): PptxTableData | null;
|
|
14
|
+
/** Insert a blank column left/right of `colIndex` (merge span aware). */
|
|
15
|
+
export declare function applyInsertColumn(td: PptxTableData, colIndex: number, position: 'left' | 'right'): PptxTableData;
|
|
16
|
+
/** Delete the column at `colIndex`; returns `null` when the delete is a no-op. */
|
|
17
|
+
export declare function applyDeleteColumn(td: PptxTableData, colIndex: number): PptxTableData | null;
|
|
18
|
+
/** Merge the cursor cell with its right neighbour; `null` when not mergeable. */
|
|
19
|
+
export declare function applyMergeRight(td: PptxTableData, rowIndex: number, columnIndex: number): PptxTableData | null;
|
|
20
|
+
/** Merge the cursor cell with the cell below; `null` when not mergeable. */
|
|
21
|
+
export declare function applyMergeDown(td: PptxTableData, rowIndex: number, columnIndex: number): PptxTableData | null;
|
|
22
|
+
/** Split the merged cursor cell back into individual cells; `null` when not merged. */
|
|
23
|
+
export declare function applySplitCell(td: PptxTableData, rowIndex: number, columnIndex: number): PptxTableData | null;
|
|
24
|
+
/** Merge a rectangular multi-cell selection; `null` when the rect is not mergeable. */
|
|
25
|
+
export declare function applyMergeSelected(td: PptxTableData, cells: CellCoord[] | undefined): PptxTableData | null;
|
|
26
|
+
//# sourceMappingURL=table-mutations.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"table-mutations.d.ts","sourceRoot":"","sources":["../../../src/viewer/composables/table-mutations.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACtD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAapD;;;;;;GAMG;AAEH,oEAAoE;AACpE,wBAAgB,cAAc,CAC7B,EAAE,EAAE,aAAa,EACjB,QAAQ,EAAE,MAAM,EAChB,QAAQ,EAAE,OAAO,GAAG,OAAO,GACzB,aAAa,CAEf;AAED,+EAA+E;AAC/E,wBAAgB,cAAc,CAAC,EAAE,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,GAAG,aAAa,GAAG,IAAI,CAGxF;AAED,yEAAyE;AACzE,wBAAgB,iBAAiB,CAChC,EAAE,EAAE,aAAa,EACjB,QAAQ,EAAE,MAAM,EAChB,QAAQ,EAAE,MAAM,GAAG,OAAO,GACxB,aAAa,CAEf;AAED,kFAAkF;AAClF,wBAAgB,iBAAiB,CAAC,EAAE,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,GAAG,aAAa,GAAG,IAAI,CAG3F;AAED,iFAAiF;AACjF,wBAAgB,eAAe,CAC9B,EAAE,EAAE,aAAa,EACjB,QAAQ,EAAE,MAAM,EAChB,WAAW,EAAE,MAAM,GACjB,aAAa,GAAG,IAAI,CAGtB;AAED,4EAA4E;AAC5E,wBAAgB,cAAc,CAC7B,EAAE,EAAE,aAAa,EACjB,QAAQ,EAAE,MAAM,EAChB,WAAW,EAAE,MAAM,GACjB,aAAa,GAAG,IAAI,CAGtB;AAED,uFAAuF;AACvF,wBAAgB,cAAc,CAC7B,EAAE,EAAE,aAAa,EACjB,QAAQ,EAAE,MAAM,EAChB,WAAW,EAAE,MAAM,GACjB,aAAa,GAAG,IAAI,CAGtB;AAED,uFAAuF;AACvF,wBAAgB,kBAAkB,CACjC,EAAE,EAAE,aAAa,EACjB,KAAK,EAAE,SAAS,EAAE,GAAG,SAAS,GAC5B,aAAa,GAAG,IAAI,CAKtB"}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import { PptxTableData } from 'pptx-viewer-core';
|
|
2
|
+
import { CellCoord, CellRect } from 'pptx-viewer-shared';
|
|
3
|
+
import { ComputedRef, InjectionKey, Ref } from 'vue';
|
|
4
|
+
/**
|
|
5
|
+
* Table cell selection + resize context.
|
|
6
|
+
*
|
|
7
|
+
* Mirrors React's `tableEditorState` (`viewer/types-ui.ts`) but, following the
|
|
8
|
+
* Vue viewer's provide/inject convention (see `table-edit` / `table-theme`), the
|
|
9
|
+
* reactive selection is provided once at the viewer root and injected by both
|
|
10
|
+
* `TableRenderer` (writes selection from cell clicks, reads it for the highlight
|
|
11
|
+
* + drives resize) and the inspector `TablePanel` (reads the selected cell to
|
|
12
|
+
* key structural / merge / cell-style edits). Absent in a read-only viewer, in
|
|
13
|
+
* which case tables render without any selection affordance.
|
|
14
|
+
*/
|
|
15
|
+
export interface TableSelectionState {
|
|
16
|
+
/** The table element the selection belongs to. */
|
|
17
|
+
elementId: string;
|
|
18
|
+
/** Anchor cell row (original grid coords). */
|
|
19
|
+
rowIndex: number;
|
|
20
|
+
/** Anchor cell column (original grid coords). */
|
|
21
|
+
columnIndex: number;
|
|
22
|
+
/** Rectangular multi-cell selection (Shift+Click range), row-major. */
|
|
23
|
+
selectedCells?: CellCoord[];
|
|
24
|
+
}
|
|
25
|
+
export interface TableSelectionContext {
|
|
26
|
+
/** The current selection, or `null` when no cell is selected. */
|
|
27
|
+
selection: Ref<TableSelectionState | null>;
|
|
28
|
+
/** Replace (or clear) the current selection. */
|
|
29
|
+
select: (next: TableSelectionState | null) => void;
|
|
30
|
+
/** Commit new column widths (proportions summing to 1) for a table. */
|
|
31
|
+
resizeColumns: (elementId: string, widths: number[]) => void;
|
|
32
|
+
/** Commit a new pixel height for a single row of a table. */
|
|
33
|
+
resizeRow: (elementId: string, rowIndex: number, height: number) => void;
|
|
34
|
+
}
|
|
35
|
+
/** Typed injection key for the table selection context. */
|
|
36
|
+
export declare const TableSelectionKey: InjectionKey<TableSelectionContext>;
|
|
37
|
+
/** Provide the selection context at the viewer root. */
|
|
38
|
+
export declare function provideTableSelection(ctx: TableSelectionContext): void;
|
|
39
|
+
/** Resolve the injected selection context, if any (read-only viewers omit it). */
|
|
40
|
+
export declare function injectTableSelection(): TableSelectionContext | undefined;
|
|
41
|
+
/**
|
|
42
|
+
* Pure next-selection computation for a cell click. Shift+click within the same
|
|
43
|
+
* table (anchored at the previous selection) yields a rectangular multi-cell
|
|
44
|
+
* selection expanded across any merges it overlaps; any other click selects the
|
|
45
|
+
* single clicked cell. Mirrors React's `table-render` onClick branch.
|
|
46
|
+
*/
|
|
47
|
+
export declare function computeCellSelection(prev: TableSelectionState | null, elementId: string, rowIndex: number, columnIndex: number, shiftKey: boolean, tableData: PptxTableData): TableSelectionState;
|
|
48
|
+
export interface TableCellSelectionApi {
|
|
49
|
+
/** The selection restricted to this table element (else `null`). */
|
|
50
|
+
activeSelection: ComputedRef<TableSelectionState | null>;
|
|
51
|
+
/** The multi-cell bounding rect when >= 2 cells are selected. */
|
|
52
|
+
selectionRect: ComputedRef<CellRect | undefined>;
|
|
53
|
+
/** Whether `(row, col)` is the anchor (single) selected cell. */
|
|
54
|
+
isCellSelected: (rowIndex: number, columnIndex: number) => boolean;
|
|
55
|
+
/** Whether `(row, col)` falls inside the multi-cell selection rect. */
|
|
56
|
+
isCellInSelection: (rowIndex: number, columnIndex: number) => boolean;
|
|
57
|
+
/** Apply a click at `(row, col)` (single or Shift+range). */
|
|
58
|
+
selectCell: (rowIndex: number, columnIndex: number, shiftKey: boolean) => void;
|
|
59
|
+
/** Whether a selection context is available (edit-capable viewer). */
|
|
60
|
+
hasContext: boolean;
|
|
61
|
+
}
|
|
62
|
+
/**
|
|
63
|
+
* Cell-selection helpers for `TableRenderer`. Injects the shared selection
|
|
64
|
+
* context and derives per-cell highlight state plus the click handler, keeping
|
|
65
|
+
* the SFC script thin.
|
|
66
|
+
*/
|
|
67
|
+
export declare function useTableCellSelection(elementId: () => string, tableData: () => PptxTableData | undefined): TableCellSelectionApi;
|
|
68
|
+
//# sourceMappingURL=table-selection.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"table-selection.d.ts","sourceRoot":"","sources":["../../../src/viewer/composables/table-selection.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACtD,OAAO,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAE9D,OAAO,KAAK,EAAE,WAAW,EAAE,YAAY,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAG1D;;;;;;;;;;GAUG;AACH,MAAM,WAAW,mBAAmB;IACnC,kDAAkD;IAClD,SAAS,EAAE,MAAM,CAAC;IAClB,8CAA8C;IAC9C,QAAQ,EAAE,MAAM,CAAC;IACjB,iDAAiD;IACjD,WAAW,EAAE,MAAM,CAAC;IACpB,uEAAuE;IACvE,aAAa,CAAC,EAAE,SAAS,EAAE,CAAC;CAC5B;AAED,MAAM,WAAW,qBAAqB;IACrC,iEAAiE;IACjE,SAAS,EAAE,GAAG,CAAC,mBAAmB,GAAG,IAAI,CAAC,CAAC;IAC3C,gDAAgD;IAChD,MAAM,EAAE,CAAC,IAAI,EAAE,mBAAmB,GAAG,IAAI,KAAK,IAAI,CAAC;IACnD,uEAAuE;IACvE,aAAa,EAAE,CAAC,SAAS,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,KAAK,IAAI,CAAC;IAC7D,6DAA6D;IAC7D,SAAS,EAAE,CAAC,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;CACzE;AAED,2DAA2D;AAC3D,eAAO,MAAM,iBAAiB,EAAE,YAAY,CAAC,qBAAqB,CAEjE,CAAC;AAEF,wDAAwD;AACxD,wBAAgB,qBAAqB,CAAC,GAAG,EAAE,qBAAqB,GAAG,IAAI,CAEtE;AAED,kFAAkF;AAClF,wBAAgB,oBAAoB,IAAI,qBAAqB,GAAG,SAAS,CAExE;AAED;;;;;GAKG;AACH,wBAAgB,oBAAoB,CACnC,IAAI,EAAE,mBAAmB,GAAG,IAAI,EAChC,SAAS,EAAE,MAAM,EACjB,QAAQ,EAAE,MAAM,EAChB,WAAW,EAAE,MAAM,EACnB,QAAQ,EAAE,OAAO,EACjB,SAAS,EAAE,aAAa,GACtB,mBAAmB,CAiBrB;AAED,MAAM,WAAW,qBAAqB;IACrC,oEAAoE;IACpE,eAAe,EAAE,WAAW,CAAC,mBAAmB,GAAG,IAAI,CAAC,CAAC;IACzD,iEAAiE;IACjE,aAAa,EAAE,WAAW,CAAC,QAAQ,GAAG,SAAS,CAAC,CAAC;IACjD,iEAAiE;IACjE,cAAc,EAAE,CAAC,QAAQ,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,KAAK,OAAO,CAAC;IACnE,uEAAuE;IACvE,iBAAiB,EAAE,CAAC,QAAQ,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,KAAK,OAAO,CAAC;IACtE,6DAA6D;IAC7D,UAAU,EAAE,CAAC,QAAQ,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,EAAE,QAAQ,EAAE,OAAO,KAAK,IAAI,CAAC;IAC/E,sEAAsE;IACtE,UAAU,EAAE,OAAO,CAAC;CACpB;AAED;;;;GAIG;AACH,wBAAgB,qBAAqB,CACpC,SAAS,EAAE,MAAM,MAAM,EACvB,SAAS,EAAE,MAAM,aAAa,GAAG,SAAS,GACxC,qBAAqB,CA8CvB"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ChartPptxElement, PptxChartAxisFormatting, PptxChartData, PptxChartErrBars, PptxChartMarkerSymbol, PptxChartStyle, PptxChartTrendline, PptxChartType } from 'pptx-viewer-core';
|
|
1
|
+
import { ChartPptxElement, PptxChartAxisFormatting, PptxChartData, PptxChartErrBars, PptxChartMarkerSymbol, PptxChartSeries, PptxChartStyle, PptxChartTrendline, PptxChartType } from 'pptx-viewer-core';
|
|
2
2
|
import { ComputedRef } from 'vue';
|
|
3
3
|
/** Edit shape for axis-title font styling (matches the core op). */
|
|
4
4
|
export interface ChartAxisTitleStyleEdit {
|
|
@@ -37,6 +37,19 @@ export interface ChartEditing {
|
|
|
37
37
|
setSeriesType: (index: number, seriesType: PptxChartType | null) => void;
|
|
38
38
|
setPointFill: (seriesIndex: number, pointIndex: number, color: string | null) => void;
|
|
39
39
|
setPointExplosion: (seriesIndex: number, pointIndex: number, explosion: number | null) => void;
|
|
40
|
+
setPointMarker: (seriesIndex: number, pointIndex: number, marker: ChartMarkerEdit | null) => void;
|
|
41
|
+
setPointLabel: (seriesIndex: number, pointIndex: number, text: string | null) => void;
|
|
42
|
+
/** Patch a single series (e.g. rename) in place, preserving the rest. */
|
|
43
|
+
updateSeries: (index: number, patch: Partial<PptxChartSeries>) => void;
|
|
44
|
+
/** Rename one category label. */
|
|
45
|
+
updateCategoryLabel: (catIndex: number, value: string) => void;
|
|
46
|
+
/** Set one numeric value from a raw input string (ignored if not finite). */
|
|
47
|
+
updateValue: (seriesIndex: number, catIndex: number, raw: string) => void;
|
|
48
|
+
/** Append an empty series/category, or remove one by index. */
|
|
49
|
+
addSeries: () => void;
|
|
50
|
+
removeSeries: (seriesIndex: number) => void;
|
|
51
|
+
addCategory: () => void;
|
|
52
|
+
removeCategory: (catIndex: number) => void;
|
|
40
53
|
}
|
|
41
54
|
/**
|
|
42
55
|
* Build the chart-editing helper bundle.
|