hzzt-kfb-slide 0.0.6 → 0.0.8
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/components/{annotateCPG0T3zR.js → annotateFlT59Ud8.js} +1 -1
- package/dist/components/annotateJzE3toJV.js +1 -0
- package/dist/components/{annotateBZhYifBy.js → annotateR7c0LCw2.js} +1 -1
- package/dist/components/annotatemJxZMVPO.js +123 -0
- package/dist/components/{arrowDFlQxMKW.js → arrowDHcko1dw.js} +1 -1
- package/dist/components/{arrowBJ1_uQ_E.js → arrowDRio3eqx.js} +1 -1
- package/dist/components/{arrowDownUoENEig7.js → arrowDownByED8CSr.js} +1 -1
- package/dist/components/{arrowDownNi-pK4NR.js → arrowDownDRpTqVDK.js} +1 -1
- package/dist/components/{arrowLeftDNerwLPi.js → arrowLeftCl2XVnFB.js} +1 -1
- package/dist/components/{arrowLeftBjlKltMm.js → arrowLeftDjcuA_pb.js} +1 -1
- package/dist/components/{arrowRightMPKmxcZ8.js → arrowRightClSGs6Mb.js} +1 -1
- package/dist/components/{arrowRight44qqQj9S.js → arrowRightDSkHKM4y.js} +1 -1
- package/dist/components/{arrowUpDNv09R_q.js → arrowUpCgzq2L8A.js} +1 -1
- package/dist/components/{arrowUpu-KhVqDz.js → arrowUpQVIPK_NQ.js} +1 -1
- package/dist/components/{channelDTeDAbXs.js → channelCTQgwZV_.js} +1 -1
- package/dist/components/{channelCzSNjDqs.js → channelD-dojSaC.js} +1 -1
- package/dist/components/{checkDg1XwTUE.js → checkCBxyasVc.js} +1 -1
- package/dist/components/{checkD58Lt_t9.js → checkCqCYDYr4.js} +1 -1
- package/dist/components/{configFTiUKUAQ.js → configGeQGhW9C.js} +1 -1
- package/dist/components/{configDTj11Wdw.js → configP_8ZVyfi.js} +1 -1
- package/dist/components/customB1-3lgH0.js +1 -0
- package/dist/components/customBr26z068.js +39 -0
- package/dist/components/{deleteCeXlMQda.js → deleteBNIxfTCo.js} +1 -1
- package/dist/components/{deleteBIUy0hW2.js → deleteuibq0KAI.js} +1 -1
- package/dist/components/{dotBcz-OP0B.js → dotBJ-lSESE.js} +1 -1
- package/dist/components/dotBucEP5Z8.js +113 -0
- package/dist/components/dotDc-QmqaE.js +1 -0
- package/dist/components/{dotDpCmvPJC.js → dotDhjymv7s.js} +1 -1
- package/dist/components/{downloadBs4QK_IT.js → downloadB5STpOaR.js} +1 -1
- package/dist/components/{downloadnu9isJ53.js → downloadBrpaJY3x.js} +1 -1
- package/dist/components/downloadDh6wiado.js +1 -0
- package/dist/components/downloadDnWeuVMn.js +79 -0
- package/dist/components/{flipBwR2T8Rs.js → flipD7XBmACU.js} +1 -1
- package/dist/components/{flipvyz7dJPZ.js → flipDlTFW9pO.js} +1 -1
- package/dist/components/fullscreenBGej63GA.js +51 -0
- package/dist/components/{fullscreenCVgGTPtD.js → fullscreenCxtySrDu.js} +1 -1
- package/dist/components/fullscreenOKvUhCk1.js +1 -0
- package/dist/components/{fullscreenyNOuxxJv.js → fullscreenoNyXD8h3.js} +1 -1
- package/dist/components/indexB0v3MpmE.js +2937 -0
- package/dist/components/indexBkFttmTs.js +4 -0
- package/dist/components/{infoC4fRWu15.js → infoBjk0dOPE.js} +1 -1
- package/dist/components/{infoCDweeRWp.js → infoCA6EWNF3.js} +1 -1
- package/dist/components/{levelDjuyEKmz.js → levelCG93ncZs.js} +1 -1
- package/dist/components/{levelDjZ5vvyy.js → levelbRjS_tcK.js} +1 -1
- package/dist/components/{microscopeDCINdehp.js → microscopeD-EjOdf2.js} +1 -1
- package/dist/components/{microscopeDptxRPdj.js → microscopeD-FrVKRB.js} +1 -1
- package/dist/components/microscopeDd_Bl9hM.js +1 -0
- package/dist/components/microscopey8VfYeuX.js +132 -0
- package/dist/components/moveCCkgUb-0.js +74 -0
- package/dist/components/{moveB-QJFdLP.js → moveDYmvf7k8.js} +1 -1
- package/dist/components/moveQ5bEeY1C.js +1 -0
- package/dist/components/{moveCNc2f0wf.js → movebJvf1oPR.js} +1 -1
- package/dist/components/{next-o3fIifP.js → nextC6ATDCIW.js} +1 -1
- package/dist/components/{nextBX5bmT1e.js → nextDdiDIgB2.js} +1 -1
- package/dist/components/{prevDRvSbFTC.js → prevC43MjkJW.js} +1 -1
- package/dist/components/{prevkbxOICn5.js → prevD3zqAMQc.js} +1 -1
- package/dist/components/{processh0Wf3Q99.js → processCDMD34sa.js} +1 -1
- package/dist/components/processD1w3RPEQ.js +1 -0
- package/dist/components/{processBHqsEap8.js → processDR1VlciH.js} +65 -62
- package/dist/components/{processD06c6uax.js → processDq-wdwXj.js} +1 -1
- package/dist/components/{rotateCxZ7Z2pw.js → rotateB2TKrdOd.js} +1 -1
- package/dist/components/{rotateCm7bVQY_.js → rotateCVpCm-tK.js} +1 -1
- package/dist/components/rotateDEPrY9R8.js +1 -0
- package/dist/components/rotateD_vW_yY0.js +131 -0
- package/dist/components/{settingCzWjOOeH.js → settingB6ugQHJp.js} +1 -1
- package/dist/components/settingCqgEfv1i.js +147 -0
- package/dist/components/settingDCqhAo43.js +1 -0
- package/dist/components/{settinghh-xgIto.js → settingDgfjjrts.js} +1 -1
- package/dist/components/{tailorBalVOrgz.js → tailorCBjKU02K.js} +1 -1
- package/dist/components/{tailorCvZYsl2H.js → tailorDzvy19FE.js} +1 -1
- package/dist/components/{useCommonDs02MG_d.js → useCommonBD-xKHu3.js} +1 -1
- package/dist/components/{useCommonBBhfDvWF.js → useCommonBD90FQd0.js} +1 -1
- package/dist/components/zoomB5HF8Hai.js +63 -0
- package/dist/components/zoomBcO2XFbA.js +1 -0
- package/dist/components/{zoomIn8-tgvQFE.js → zoomInBrNwgimx.js} +1 -1
- package/dist/components/{zoomInBFjk_aLI.js → zoomInC3EAqFg-.js} +1 -1
- package/dist/components/{zoomOutC4Ami8gE.js → zoomOutDafuMDlQ.js} +1 -1
- package/dist/components/{zoomOutD3_PopeU.js → zoomOutGi1JWbc1.js} +1 -1
- package/dist/index.cjs.js +1 -1
- package/dist/index.css +1 -1
- package/dist/index.es.js +1 -1
- package/package.json +3 -4
- package/types/components/KfbSlideList.vue.d.ts +6 -3
- package/types/components/KfbView/index.d.ts +4 -1
- package/types/components/KfbView/index.vue.d.ts +5 -1
- package/types/components/KfbView/useLabel.d.ts +3 -84
- package/types/components/KfbView/useVoice.d.ts +88 -3
- package/types/components/toolbox/useCommon.d.ts +1 -1
- package/types/index.d.ts +41 -23
- package/types/index.vue.d.ts +15 -8
- package/types/instances.d.ts +3 -0
- package/types/plugins/i18n.d.ts +2 -2
- package/dist/components/annotateCqAOjkGt.js +0 -132
- package/dist/components/annotateDfW6BtgB.js +0 -1
- package/dist/components/customLw3nDjEr.js +0 -48
- package/dist/components/customSv562l99.js +0 -1
- package/dist/components/dotC4Q5qfQ3.js +0 -122
- package/dist/components/dotDO8OTl1O.js +0 -1
- package/dist/components/downloadCyOnwVa8.js +0 -1
- package/dist/components/downloadGCe-OpHT.js +0 -88
- package/dist/components/fullscreenBeGbvwYS.js +0 -1
- package/dist/components/fullscreenDvfoQFJX.js +0 -60
- package/dist/components/indexCBVjt8NT.js +0 -4
- package/dist/components/indexDOcglE90.js +0 -2948
- package/dist/components/microscopeB6hcfWtD.js +0 -1
- package/dist/components/microscopeD4o4Sywm.js +0 -129
- package/dist/components/moveBM4KQ8bE.js +0 -83
- package/dist/components/movemH2hKtp1.js +0 -1
- package/dist/components/processBqhO-55V.js +0 -1
- package/dist/components/rotateBdsvaWJ_.js +0 -140
- package/dist/components/rotateCyw4Ggca.js +0 -1
- package/dist/components/settingC3yidTns.js +0 -156
- package/dist/components/settingDDEEOrtI.js +0 -1
- package/dist/components/zoomCWKzKF3-.js +0 -1
- package/dist/components/zoomcWHR4OY6.js +0 -72
package/types/index.d.ts
CHANGED
|
@@ -1,24 +1,27 @@
|
|
|
1
1
|
import type { App } from 'vue';
|
|
2
|
-
import type { I18n, Composer } from 'vue-i18n';
|
|
3
2
|
import HzztKfbSlide from './index.vue';
|
|
4
3
|
import HzztKfbView from './components/KfbView/index.vue';
|
|
5
4
|
import HzztKfbToolbox from './components/KfbToolbox.vue';
|
|
5
|
+
import { HzztI18n } from "@/instances.ts";
|
|
6
6
|
export interface InstallOptions {
|
|
7
|
-
i18n?:
|
|
7
|
+
i18n?: HzztI18n;
|
|
8
8
|
}
|
|
9
9
|
export { HzztKfbSlide, HzztKfbView, HzztKfbToolbox, };
|
|
10
10
|
declare const _default: {
|
|
11
11
|
install: (app: App, options?: InstallOptions) => void;
|
|
12
12
|
HzztKfbSlide: {
|
|
13
|
-
new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<import("
|
|
13
|
+
new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<import("@/instances.ts").Props & {
|
|
14
14
|
index?: number;
|
|
15
15
|
}> & Readonly<{
|
|
16
16
|
onTool?: ((action: string, value?: any) => any) | undefined;
|
|
17
17
|
"onUpdate:index"?: ((value: number) => any) | undefined;
|
|
18
18
|
}>, {
|
|
19
19
|
divide: import("vue").Ref<boolean, boolean>;
|
|
20
|
-
slide: import("vue").ComputedRef<import("
|
|
20
|
+
slide: import("vue").ComputedRef<import("@/instances.ts").DigitalSlide>;
|
|
21
21
|
kfbViewRef: import("vue").ComputedRef<any>;
|
|
22
|
+
jumpToSlide: (index: number) => void;
|
|
23
|
+
jumpToLabel: (label: import("./components/KfbView/index.ts").Label, zoom?: number) => void;
|
|
24
|
+
jumpToPosition: (label: import("./components/KfbView/index.ts").Label, zoom?: any) => void;
|
|
22
25
|
enableAI: import("vue").ComputedRef<number | false>;
|
|
23
26
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
24
27
|
"update:index": (value: number) => any;
|
|
@@ -26,8 +29,8 @@ declare const _default: {
|
|
|
26
29
|
tool: (action: string, value?: any) => any;
|
|
27
30
|
}, import("vue").PublicProps, {
|
|
28
31
|
teleport: boolean;
|
|
29
|
-
slides: import("
|
|
30
|
-
menus: (string | import("
|
|
32
|
+
slides: import("@/instances.ts").DigitalSlide[];
|
|
33
|
+
menus: (string | import("@/instances.ts").ToolboxMenu)[];
|
|
31
34
|
showKeyboard: boolean;
|
|
32
35
|
showMenuText: boolean;
|
|
33
36
|
showKfbLabel: boolean;
|
|
@@ -39,20 +42,23 @@ declare const _default: {
|
|
|
39
42
|
C: {};
|
|
40
43
|
M: {};
|
|
41
44
|
Defaults: {};
|
|
42
|
-
}, Readonly<import("
|
|
45
|
+
}, Readonly<import("@/instances.ts").Props & {
|
|
43
46
|
index?: number;
|
|
44
47
|
}> & Readonly<{
|
|
45
48
|
onTool?: ((action: string, value?: any) => any) | undefined;
|
|
46
49
|
"onUpdate:index"?: ((value: number) => any) | undefined;
|
|
47
50
|
}>, {
|
|
48
51
|
divide: import("vue").Ref<boolean, boolean>;
|
|
49
|
-
slide: import("vue").ComputedRef<import("
|
|
52
|
+
slide: import("vue").ComputedRef<import("@/instances.ts").DigitalSlide>;
|
|
50
53
|
kfbViewRef: import("vue").ComputedRef<any>;
|
|
54
|
+
jumpToSlide: (index: number) => void;
|
|
55
|
+
jumpToLabel: (label: import("./components/KfbView/index.ts").Label, zoom?: number) => void;
|
|
56
|
+
jumpToPosition: (label: import("./components/KfbView/index.ts").Label, zoom?: any) => void;
|
|
51
57
|
enableAI: import("vue").ComputedRef<number | false>;
|
|
52
58
|
}, {}, {}, {}, {
|
|
53
59
|
teleport: boolean;
|
|
54
|
-
slides: import("
|
|
55
|
-
menus: (string | import("
|
|
60
|
+
slides: import("@/instances.ts").DigitalSlide[];
|
|
61
|
+
menus: (string | import("@/instances.ts").ToolboxMenu)[];
|
|
56
62
|
showKeyboard: boolean;
|
|
57
63
|
showMenuText: boolean;
|
|
58
64
|
showKfbLabel: boolean;
|
|
@@ -61,15 +67,18 @@ declare const _default: {
|
|
|
61
67
|
__isFragment?: never;
|
|
62
68
|
__isTeleport?: never;
|
|
63
69
|
__isSuspense?: never;
|
|
64
|
-
} & import("vue").ComponentOptionsBase<Readonly<import("
|
|
70
|
+
} & import("vue").ComponentOptionsBase<Readonly<import("@/instances.ts").Props & {
|
|
65
71
|
index?: number;
|
|
66
72
|
}> & Readonly<{
|
|
67
73
|
onTool?: ((action: string, value?: any) => any) | undefined;
|
|
68
74
|
"onUpdate:index"?: ((value: number) => any) | undefined;
|
|
69
75
|
}>, {
|
|
70
76
|
divide: import("vue").Ref<boolean, boolean>;
|
|
71
|
-
slide: import("vue").ComputedRef<import("
|
|
77
|
+
slide: import("vue").ComputedRef<import("@/instances.ts").DigitalSlide>;
|
|
72
78
|
kfbViewRef: import("vue").ComputedRef<any>;
|
|
79
|
+
jumpToSlide: (index: number) => void;
|
|
80
|
+
jumpToLabel: (label: import("./components/KfbView/index.ts").Label, zoom?: number) => void;
|
|
81
|
+
jumpToPosition: (label: import("./components/KfbView/index.ts").Label, zoom?: any) => void;
|
|
73
82
|
enableAI: import("vue").ComputedRef<number | false>;
|
|
74
83
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
75
84
|
"update:index": (value: number) => any;
|
|
@@ -77,8 +86,8 @@ declare const _default: {
|
|
|
77
86
|
tool: (action: string, value?: any) => any;
|
|
78
87
|
}, string, {
|
|
79
88
|
teleport: boolean;
|
|
80
|
-
slides: import("
|
|
81
|
-
menus: (string | import("
|
|
89
|
+
slides: import("@/instances.ts").DigitalSlide[];
|
|
90
|
+
menus: (string | import("@/instances.ts").ToolboxMenu)[];
|
|
82
91
|
showKeyboard: boolean;
|
|
83
92
|
showMenuText: boolean;
|
|
84
93
|
showKfbLabel: boolean;
|
|
@@ -90,15 +99,15 @@ declare const _default: {
|
|
|
90
99
|
right?: (props: {}) => any;
|
|
91
100
|
} & {
|
|
92
101
|
list?: (props: {
|
|
93
|
-
slide: import("
|
|
102
|
+
slide: import("@/instances.ts").DigitalSlide;
|
|
94
103
|
}) => any;
|
|
95
104
|
} & {
|
|
96
105
|
kfb?: (props: {
|
|
97
|
-
slide: import("
|
|
106
|
+
slide: import("@/instances.ts").DigitalSlide;
|
|
98
107
|
}) => any;
|
|
99
108
|
} & {
|
|
100
109
|
kfb?: (props: {
|
|
101
|
-
slide: import("
|
|
110
|
+
slide: import("@/instances.ts").DigitalSlide;
|
|
102
111
|
}) => any;
|
|
103
112
|
} & {
|
|
104
113
|
default?: (props: {}) => any;
|
|
@@ -158,6 +167,7 @@ declare const _default: {
|
|
|
158
167
|
panTo: (point: import("./components/KfbView/index.ts").Point) => void;
|
|
159
168
|
viewportToImageZoom: (zoom: number) => number;
|
|
160
169
|
imageToViewportZoom: (zoom: number) => number;
|
|
170
|
+
imageToViewportCoordinates: (x: number, y: number) => import("./components/KfbView/index.ts").Point;
|
|
161
171
|
zoomTo: (zoom: number) => void;
|
|
162
172
|
zoomBy: (zoom: number) => void;
|
|
163
173
|
applyConstraints: () => void;
|
|
@@ -270,6 +280,7 @@ declare const _default: {
|
|
|
270
280
|
panTo: (point: import("./components/KfbView/index.ts").Point) => void;
|
|
271
281
|
viewportToImageZoom: (zoom: number) => number;
|
|
272
282
|
imageToViewportZoom: (zoom: number) => number;
|
|
283
|
+
imageToViewportCoordinates: (x: number, y: number) => import("./components/KfbView/index.ts").Point;
|
|
273
284
|
zoomTo: (zoom: number) => void;
|
|
274
285
|
zoomBy: (zoom: number) => void;
|
|
275
286
|
applyConstraints: () => void;
|
|
@@ -350,7 +361,8 @@ declare const _default: {
|
|
|
350
361
|
value: any;
|
|
351
362
|
}) => void;
|
|
352
363
|
zoomTo: (zoom: any) => void;
|
|
353
|
-
|
|
364
|
+
jumpToLabel: (label: import("./components/KfbView/index.ts").Label, zoom?: number) => void;
|
|
365
|
+
jumpToPosition: (region: import("./components/KfbView/index.ts").Rect, zoom: any) => void;
|
|
354
366
|
reloadLabelList: () => void;
|
|
355
367
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
356
368
|
tool: (action: string, value?: any) => any;
|
|
@@ -417,6 +429,7 @@ declare const _default: {
|
|
|
417
429
|
panTo: (point: import("./components/KfbView/index.ts").Point) => void;
|
|
418
430
|
viewportToImageZoom: (zoom: number) => number;
|
|
419
431
|
imageToViewportZoom: (zoom: number) => number;
|
|
432
|
+
imageToViewportCoordinates: (x: number, y: number) => import("./components/KfbView/index.ts").Point;
|
|
420
433
|
zoomTo: (zoom: number) => void;
|
|
421
434
|
zoomBy: (zoom: number) => void;
|
|
422
435
|
applyConstraints: () => void;
|
|
@@ -529,6 +542,7 @@ declare const _default: {
|
|
|
529
542
|
panTo: (point: import("./components/KfbView/index.ts").Point) => void;
|
|
530
543
|
viewportToImageZoom: (zoom: number) => number;
|
|
531
544
|
imageToViewportZoom: (zoom: number) => number;
|
|
545
|
+
imageToViewportCoordinates: (x: number, y: number) => import("./components/KfbView/index.ts").Point;
|
|
532
546
|
zoomTo: (zoom: number) => void;
|
|
533
547
|
zoomBy: (zoom: number) => void;
|
|
534
548
|
applyConstraints: () => void;
|
|
@@ -609,7 +623,8 @@ declare const _default: {
|
|
|
609
623
|
value: any;
|
|
610
624
|
}) => void;
|
|
611
625
|
zoomTo: (zoom: any) => void;
|
|
612
|
-
|
|
626
|
+
jumpToLabel: (label: import("./components/KfbView/index.ts").Label, zoom?: number) => void;
|
|
627
|
+
jumpToPosition: (region: import("./components/KfbView/index.ts").Rect, zoom: any) => void;
|
|
613
628
|
reloadLabelList: () => void;
|
|
614
629
|
}, {}, {}, {}, {
|
|
615
630
|
microscope: import("./components/KfbView/index.ts").Microscope;
|
|
@@ -671,6 +686,7 @@ declare const _default: {
|
|
|
671
686
|
panTo: (point: import("./components/KfbView/index.ts").Point) => void;
|
|
672
687
|
viewportToImageZoom: (zoom: number) => number;
|
|
673
688
|
imageToViewportZoom: (zoom: number) => number;
|
|
689
|
+
imageToViewportCoordinates: (x: number, y: number) => import("./components/KfbView/index.ts").Point;
|
|
674
690
|
zoomTo: (zoom: number) => void;
|
|
675
691
|
zoomBy: (zoom: number) => void;
|
|
676
692
|
applyConstraints: () => void;
|
|
@@ -783,6 +799,7 @@ declare const _default: {
|
|
|
783
799
|
panTo: (point: import("./components/KfbView/index.ts").Point) => void;
|
|
784
800
|
viewportToImageZoom: (zoom: number) => number;
|
|
785
801
|
imageToViewportZoom: (zoom: number) => number;
|
|
802
|
+
imageToViewportCoordinates: (x: number, y: number) => import("./components/KfbView/index.ts").Point;
|
|
786
803
|
zoomTo: (zoom: number) => void;
|
|
787
804
|
zoomBy: (zoom: number) => void;
|
|
788
805
|
applyConstraints: () => void;
|
|
@@ -863,7 +880,8 @@ declare const _default: {
|
|
|
863
880
|
value: any;
|
|
864
881
|
}) => void;
|
|
865
882
|
zoomTo: (zoom: any) => void;
|
|
866
|
-
|
|
883
|
+
jumpToLabel: (label: import("./components/KfbView/index.ts").Label, zoom?: number) => void;
|
|
884
|
+
jumpToPosition: (region: import("./components/KfbView/index.ts").Rect, zoom: any) => void;
|
|
867
885
|
reloadLabelList: () => void;
|
|
868
886
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
869
887
|
tool: (action: string, value?: any) => any;
|
|
@@ -877,7 +895,7 @@ declare const _default: {
|
|
|
877
895
|
});
|
|
878
896
|
HzztKfbToolbox: {
|
|
879
897
|
new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<{
|
|
880
|
-
menu: (string | import("
|
|
898
|
+
menu: (string | import("@/instances.ts").ToolboxMenu)[];
|
|
881
899
|
process?: import("./components/KfbView/index.ts").Process;
|
|
882
900
|
microscope?: import("./components/KfbView/index.ts").Microscope;
|
|
883
901
|
showMenuText?: boolean;
|
|
@@ -893,7 +911,7 @@ declare const _default: {
|
|
|
893
911
|
M: {};
|
|
894
912
|
Defaults: {};
|
|
895
913
|
}, Readonly<{
|
|
896
|
-
menu: (string | import("
|
|
914
|
+
menu: (string | import("@/instances.ts").ToolboxMenu)[];
|
|
897
915
|
process?: import("./components/KfbView/index.ts").Process;
|
|
898
916
|
microscope?: import("./components/KfbView/index.ts").Microscope;
|
|
899
917
|
showMenuText?: boolean;
|
|
@@ -904,7 +922,7 @@ declare const _default: {
|
|
|
904
922
|
__isTeleport?: never;
|
|
905
923
|
__isSuspense?: never;
|
|
906
924
|
} & import("vue").ComponentOptionsBase<Readonly<{
|
|
907
|
-
menu: (string | import("
|
|
925
|
+
menu: (string | import("@/instances.ts").ToolboxMenu)[];
|
|
908
926
|
process?: import("./components/KfbView/index.ts").Process;
|
|
909
927
|
microscope?: import("./components/KfbView/index.ts").Microscope;
|
|
910
928
|
showMenuText?: boolean;
|
package/types/index.vue.d.ts
CHANGED
|
@@ -1,32 +1,39 @@
|
|
|
1
1
|
import { DigitalSlide, Props } from "@/instances.ts";
|
|
2
|
+
import { Label } from "@/components/KfbView/index.ts";
|
|
2
3
|
type __VLS_Props = Props;
|
|
4
|
+
declare function jumpToSlide(index: number): void;
|
|
5
|
+
declare function jumpToLabel(label: Label, zoom?: number): void;
|
|
6
|
+
declare function jumpToPosition(label: Label, zoom?: any): void;
|
|
3
7
|
type __VLS_PublicProps = __VLS_Props & {
|
|
4
8
|
'index'?: number;
|
|
5
9
|
};
|
|
6
|
-
declare var __VLS_8: {}, __VLS_34: {},
|
|
10
|
+
declare var __VLS_8: {}, __VLS_34: {}, __VLS_50: {
|
|
7
11
|
slide: DigitalSlide;
|
|
8
|
-
},
|
|
12
|
+
}, __VLS_65: {
|
|
9
13
|
slide: DigitalSlide;
|
|
10
|
-
},
|
|
14
|
+
}, __VLS_76: {
|
|
11
15
|
slide: DigitalSlide;
|
|
12
|
-
},
|
|
16
|
+
}, __VLS_87: {};
|
|
13
17
|
type __VLS_Slots = {} & {
|
|
14
18
|
left?: (props: typeof __VLS_8) => any;
|
|
15
19
|
} & {
|
|
16
20
|
right?: (props: typeof __VLS_34) => any;
|
|
17
21
|
} & {
|
|
18
|
-
list?: (props: typeof
|
|
22
|
+
list?: (props: typeof __VLS_50) => any;
|
|
19
23
|
} & {
|
|
20
|
-
kfb?: (props: typeof
|
|
24
|
+
kfb?: (props: typeof __VLS_65) => any;
|
|
21
25
|
} & {
|
|
22
|
-
kfb?: (props: typeof
|
|
26
|
+
kfb?: (props: typeof __VLS_76) => any;
|
|
23
27
|
} & {
|
|
24
|
-
default?: (props: typeof
|
|
28
|
+
default?: (props: typeof __VLS_87) => any;
|
|
25
29
|
};
|
|
26
30
|
declare const __VLS_component: import("vue").DefineComponent<__VLS_PublicProps, {
|
|
27
31
|
divide: import("vue").Ref<boolean, boolean>;
|
|
28
32
|
slide: import("vue").ComputedRef<DigitalSlide>;
|
|
29
33
|
kfbViewRef: import("vue").ComputedRef<any>;
|
|
34
|
+
jumpToSlide: typeof jumpToSlide;
|
|
35
|
+
jumpToLabel: typeof jumpToLabel;
|
|
36
|
+
jumpToPosition: typeof jumpToPosition;
|
|
30
37
|
enableAI: import("vue").ComputedRef<number | false>;
|
|
31
38
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
32
39
|
"update:index": (value: number) => any;
|
package/types/instances.d.ts
CHANGED
package/types/plugins/i18n.d.ts
CHANGED
|
@@ -1,132 +0,0 @@
|
|
|
1
|
-
import { defineComponent as x, mergeDefaults as C, ref as E, createBlock as u, openBlock as d, unref as t, withCtx as s, createVNode as n, createElementVNode as l, createTextVNode as m, toDisplayString as f, createElementBlock as k, Fragment as z, renderList as j, normalizeClass as B } from "vue";
|
|
2
|
-
import { v as D, f as I, d as N, a as S, s as V, p as T, e as F, r as L, b as A, c as R, l as U, _ as $ } from "./indexDOcglE90.js";
|
|
3
|
-
import { u as q, d as G } from "./useCommonDs02MG_d.js";
|
|
4
|
-
import { ElPopover as H, ElCard as J, ElText as v, ElRow as K, ElCol as M, ElIcon as Q } from "element-plus";
|
|
5
|
-
import W from "./annotateCPG0T3zR.js";
|
|
6
|
-
var X = Object.defineProperty, Y = Object.defineProperties, Z = Object.getOwnPropertyDescriptors, g = Object.getOwnPropertySymbols, ee = Object.prototype.hasOwnProperty, te = Object.prototype.propertyIsEnumerable, b = (r, e, o) => e in r ? X(r, e, { enumerable: !0, configurable: !0, writable: !0, value: o }) : r[e] = o, oe = (r, e) => {
|
|
7
|
-
for (var o in e || (e = {}))
|
|
8
|
-
ee.call(e, o) && b(r, o, e[o]);
|
|
9
|
-
if (g)
|
|
10
|
-
for (var o of g(e))
|
|
11
|
-
te.call(e, o) && b(r, o, e[o]);
|
|
12
|
-
return r;
|
|
13
|
-
}, re = (r, e) => Y(r, Z(e));
|
|
14
|
-
const ae = ["onClick"], se = ["src", "alt"], ne = /* @__PURE__ */ x(re(oe({}, {
|
|
15
|
-
name: "ToolAnnotate"
|
|
16
|
-
}), {
|
|
17
|
-
__name: "annotate",
|
|
18
|
-
props: /* @__PURE__ */ C({
|
|
19
|
-
size: {},
|
|
20
|
-
text: {},
|
|
21
|
-
name: {},
|
|
22
|
-
component: {},
|
|
23
|
-
isPrevent: { type: Boolean },
|
|
24
|
-
callback: { type: Function }
|
|
25
|
-
}, G),
|
|
26
|
-
emits: ["tool"],
|
|
27
|
-
setup(r, { emit: e }) {
|
|
28
|
-
const o = e, { t: i, textClass: y } = q(), _ = {
|
|
29
|
-
line: U,
|
|
30
|
-
arrow: R,
|
|
31
|
-
bilateral: A,
|
|
32
|
-
rectangle: L,
|
|
33
|
-
ellipse: F,
|
|
34
|
-
polygon: T,
|
|
35
|
-
star: V,
|
|
36
|
-
flag: S,
|
|
37
|
-
dot: N,
|
|
38
|
-
font: I,
|
|
39
|
-
voice: D
|
|
40
|
-
}, P = Object.keys(_).map((a) => ({
|
|
41
|
-
name: a,
|
|
42
|
-
src: _[a]
|
|
43
|
-
})), c = E(!1);
|
|
44
|
-
function h(a) {
|
|
45
|
-
c.value = !1, o("tool", "annotate", {
|
|
46
|
-
tool: a.substring(0, 1).toLocaleUpperCase() + a.substring(1)
|
|
47
|
-
});
|
|
48
|
-
}
|
|
49
|
-
function w() {
|
|
50
|
-
c.value = !c.value;
|
|
51
|
-
}
|
|
52
|
-
return (a, le) => (d(), u(t(H), {
|
|
53
|
-
visible: c.value,
|
|
54
|
-
"popper-class": "el-popover-padding-0",
|
|
55
|
-
placement: "bottom",
|
|
56
|
-
width: "220px",
|
|
57
|
-
trigger: "click"
|
|
58
|
-
}, {
|
|
59
|
-
reference: s(() => [
|
|
60
|
-
l("div", {
|
|
61
|
-
class: "hzzt-kfb-toolbox__icon",
|
|
62
|
-
onClick: w
|
|
63
|
-
}, [
|
|
64
|
-
n(t(Q), { size: a.size }, {
|
|
65
|
-
default: s(() => [
|
|
66
|
-
n(W)
|
|
67
|
-
]),
|
|
68
|
-
_: 1
|
|
69
|
-
}, 8, ["size"]),
|
|
70
|
-
l("div", {
|
|
71
|
-
class: B(t(y))
|
|
72
|
-
}, f(t(i)(a.text || "标注")), 3)
|
|
73
|
-
])
|
|
74
|
-
]),
|
|
75
|
-
default: s(() => [
|
|
76
|
-
n(t(J), {
|
|
77
|
-
shadow: "never",
|
|
78
|
-
header: t(i)("标注工具"),
|
|
79
|
-
"body-style": { padding: "8px" }
|
|
80
|
-
}, {
|
|
81
|
-
default: s(() => [
|
|
82
|
-
l("div", null, [
|
|
83
|
-
n(t(v), { type: "danger" }, {
|
|
84
|
-
default: s(() => [
|
|
85
|
-
m(f(t(i)("按ESC可退出标注模式")), 1)
|
|
86
|
-
]),
|
|
87
|
-
_: 1
|
|
88
|
-
})
|
|
89
|
-
]),
|
|
90
|
-
l("div", null, [
|
|
91
|
-
n(t(v), { type: "danger" }, {
|
|
92
|
-
default: s(() => [
|
|
93
|
-
m(f(t(i)("点击标注按Delete键可删除标注")), 1)
|
|
94
|
-
]),
|
|
95
|
-
_: 1
|
|
96
|
-
})
|
|
97
|
-
]),
|
|
98
|
-
n(t(K), null, {
|
|
99
|
-
default: s(() => [
|
|
100
|
-
(d(!0), k(z, null, j(t(P), (p, O) => (d(), u(t(M), {
|
|
101
|
-
key: O,
|
|
102
|
-
class: "flex justify-content-center align-items-center",
|
|
103
|
-
span: 8
|
|
104
|
-
}, {
|
|
105
|
-
default: s(() => [
|
|
106
|
-
l("div", {
|
|
107
|
-
class: "hzzt-kfb-toolbox-annotate-img",
|
|
108
|
-
onClick: (ie) => h(p.name)
|
|
109
|
-
}, [
|
|
110
|
-
l("img", {
|
|
111
|
-
style: { width: "100%" },
|
|
112
|
-
src: p.src,
|
|
113
|
-
alt: p.name
|
|
114
|
-
}, null, 8, se)
|
|
115
|
-
], 8, ae)
|
|
116
|
-
]),
|
|
117
|
-
_: 2
|
|
118
|
-
}, 1024))), 128))
|
|
119
|
-
]),
|
|
120
|
-
_: 1
|
|
121
|
-
})
|
|
122
|
-
]),
|
|
123
|
-
_: 1
|
|
124
|
-
}, 8, ["header"])
|
|
125
|
-
]),
|
|
126
|
-
_: 1
|
|
127
|
-
}, 8, ["visible"]));
|
|
128
|
-
}
|
|
129
|
-
})), ue = /* @__PURE__ */ $(ne, [["__scopeId", "data-v-71f2944f"]]);
|
|
130
|
-
export {
|
|
131
|
-
ue as default
|
|
132
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),o=require("./indexCBVjt8NT.js"),p=require("./useCommonBBhfDvWF.js"),l=require("element-plus"),b=require("./annotateBZhYifBy.js");var w=Object.defineProperty,x=Object.defineProperties,h=Object.getOwnPropertyDescriptors,d=Object.getOwnPropertySymbols,C=Object.prototype.hasOwnProperty,E=Object.prototype.propertyIsEnumerable,f=(n,t,r)=>t in n?w(n,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):n[t]=r,P=(n,t)=>{for(var r in t||(t={}))C.call(t,r)&&f(n,r,t[r]);if(d)for(var r of d(t))E.call(t,r)&&f(n,r,t[r]);return n},N=(n,t)=>x(n,h(t));const V=["onClick"],O=["src","alt"],k=e.defineComponent(N(P({},{name:"ToolAnnotate"}),{__name:"annotate",props:e.mergeDefaults({size:{},text:{},name:{},component:{},isPrevent:{type:Boolean},callback:{type:Function}},p.defaultProps),emits:["tool"],setup(n,{emit:t}){const r=t,{t:s,textClass:_}=p.useCommon(),u={line:o.line,arrow:o.arrow,bilateral:o.bilateral,rectangle:o.rectangle,ellipse:o.ellipse,polygon:o.polygon,star:o.star,flag:o.flag,dot:o.dot,font:o.font,voice:o.voice},m=Object.keys(u).map(a=>({name:a,src:u[a]})),c=e.ref(!1);function v(a){c.value=!1,r("tool","annotate",{tool:a.substring(0,1).toLocaleUpperCase()+a.substring(1)})}function g(){c.value=!c.value}return(a,B)=>(e.openBlock(),e.createBlock(e.unref(l.ElPopover),{visible:c.value,"popper-class":"el-popover-padding-0",placement:"bottom",width:"220px",trigger:"click"},{reference:e.withCtx(()=>[e.createElementVNode("div",{class:"hzzt-kfb-toolbox__icon",onClick:g},[e.createVNode(e.unref(l.ElIcon),{size:a.size},{default:e.withCtx(()=>[e.createVNode(b.default)]),_:1},8,["size"]),e.createElementVNode("div",{class:e.normalizeClass(e.unref(_))},e.toDisplayString(e.unref(s)(a.text||"标注")),3)])]),default:e.withCtx(()=>[e.createVNode(e.unref(l.ElCard),{shadow:"never",header:e.unref(s)("标注工具"),"body-style":{padding:"8px"}},{default:e.withCtx(()=>[e.createElementVNode("div",null,[e.createVNode(e.unref(l.ElText),{type:"danger"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(s)("按ESC可退出标注模式")),1)]),_:1})]),e.createElementVNode("div",null,[e.createVNode(e.unref(l.ElText),{type:"danger"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(s)("点击标注按Delete键可删除标注")),1)]),_:1})]),e.createVNode(e.unref(l.ElRow),null,{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(m),(i,y)=>(e.openBlock(),e.createBlock(e.unref(l.ElCol),{key:y,class:"flex justify-content-center align-items-center",span:8},{default:e.withCtx(()=>[e.createElementVNode("div",{class:"hzzt-kfb-toolbox-annotate-img",onClick:S=>v(i.name)},[e.createElementVNode("img",{style:{width:"100%"},src:i.src,alt:i.name},null,8,O)],8,V)]),_:2},1024))),128))]),_:1})]),_:1},8,["header"])]),_:1},8,["visible"]))}})),z=o._export_sfc(k,[["__scopeId","data-v-71f2944f"]]);exports.default=z;
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import { defineComponent as u, mergeDefaults as _, ref as d, createElementBlock as v, openBlock as s, createBlock as P, createElementVNode as y, resolveDynamicComponent as O, normalizeClass as b, unref as a, renderSlot as g, createTextVNode as w, toDisplayString as z } from "vue";
|
|
2
|
-
import { u as C, d as h } from "./useCommonDs02MG_d.js";
|
|
3
|
-
var k = Object.defineProperty, D = Object.defineProperties, j = Object.getOwnPropertyDescriptors, l = Object.getOwnPropertySymbols, B = Object.prototype.hasOwnProperty, E = Object.prototype.propertyIsEnumerable, p = (t, e, o) => e in t ? k(t, e, { enumerable: !0, configurable: !0, writable: !0, value: o }) : t[e] = o, S = (t, e) => {
|
|
4
|
-
for (var o in e || (e = {}))
|
|
5
|
-
B.call(e, o) && p(t, o, e[o]);
|
|
6
|
-
if (l)
|
|
7
|
-
for (var o of l(e))
|
|
8
|
-
E.call(e, o) && p(t, o, e[o]);
|
|
9
|
-
return t;
|
|
10
|
-
}, x = (t, e) => D(t, j(e));
|
|
11
|
-
const I = /* @__PURE__ */ u(x(S({}, {
|
|
12
|
-
name: "ToolCustom"
|
|
13
|
-
}), {
|
|
14
|
-
__name: "custom",
|
|
15
|
-
props: /* @__PURE__ */ _({
|
|
16
|
-
size: {},
|
|
17
|
-
text: {},
|
|
18
|
-
name: {},
|
|
19
|
-
component: {},
|
|
20
|
-
isPrevent: { type: Boolean },
|
|
21
|
-
callback: { type: Function }
|
|
22
|
-
}, h),
|
|
23
|
-
emits: ["tool"],
|
|
24
|
-
setup(t, { emit: e }) {
|
|
25
|
-
const o = t, c = e, { t: i, textClass: m } = C(), n = d();
|
|
26
|
-
function f() {
|
|
27
|
-
c("tool", o.name || "", n.value);
|
|
28
|
-
}
|
|
29
|
-
return (r, N) => (s(), v("div", {
|
|
30
|
-
ref_key: "toolRef",
|
|
31
|
-
ref: n,
|
|
32
|
-
class: "hzzt-kfb-toolbox__icon",
|
|
33
|
-
onClick: f
|
|
34
|
-
}, [
|
|
35
|
-
(s(), P(O(r.component), { size: r.size }, null, 8, ["size"])),
|
|
36
|
-
y("div", {
|
|
37
|
-
class: b(a(m))
|
|
38
|
-
}, [
|
|
39
|
-
g(r.$slots, "default", {}, () => [
|
|
40
|
-
w(z(a(i)(r.text || " ")), 1)
|
|
41
|
-
])
|
|
42
|
-
], 2)
|
|
43
|
-
], 512));
|
|
44
|
-
}
|
|
45
|
-
}));
|
|
46
|
-
export {
|
|
47
|
-
I as default
|
|
48
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("vue"),a=require("./useCommonBBhfDvWF.js");var f=Object.defineProperty,_=Object.defineProperties,d=Object.getOwnPropertyDescriptors,l=Object.getOwnPropertySymbols,v=Object.prototype.hasOwnProperty,P=Object.prototype.propertyIsEnumerable,c=(r,e,t)=>e in r?f(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t,y=(r,e)=>{for(var t in e||(e={}))v.call(e,t)&&c(r,t,e[t]);if(l)for(var t of l(e))P.call(e,t)&&c(r,t,e[t]);return r},O=(r,e)=>_(r,d(e));const b=o.defineComponent(O(y({},{name:"ToolCustom"}),{__name:"custom",props:o.mergeDefaults({size:{},text:{},name:{},component:{},isPrevent:{type:Boolean},callback:{type:Function}},a.defaultProps),emits:["tool"],setup(r,{emit:e}){const t=r,p=e,{t:i,textClass:u}=a.useCommon(),s=o.ref();function m(){p("tool",t.name||"",s.value)}return(n,g)=>(o.openBlock(),o.createElementBlock("div",{ref_key:"toolRef",ref:s,class:"hzzt-kfb-toolbox__icon",onClick:m},[(o.openBlock(),o.createBlock(o.resolveDynamicComponent(n.component),{size:n.size},null,8,["size"])),o.createElementVNode("div",{class:o.normalizeClass(o.unref(u))},[o.renderSlot(n.$slots,"default",{},()=>[o.createTextVNode(o.toDisplayString(o.unref(i)(n.text||" ")),1)])],2)],512))}}));exports.default=b;
|
|
@@ -1,122 +0,0 @@
|
|
|
1
|
-
import { defineComponent as x, mergeDefaults as O, ref as b, inject as z, watch as F, createBlock as h, openBlock as f, unref as s, withCtx as i, createVNode as p, createElementVNode as c, toDisplayString as v, createElementBlock as k, Fragment as D, renderList as B, normalizeStyle as S, createCommentVNode as j, normalizeClass as V } from "vue";
|
|
2
|
-
import { u as I, d as N } from "./useCommonDs02MG_d.js";
|
|
3
|
-
import A from "./dotBcz-OP0B.js";
|
|
4
|
-
import L from "./checkD58Lt_t9.js";
|
|
5
|
-
import { ElPopover as R, ElCard as T, ElIcon as g } from "element-plus";
|
|
6
|
-
import { _ as $ } from "./indexDOcglE90.js";
|
|
7
|
-
var q = Object.defineProperty, G = Object.defineProperties, H = Object.getOwnPropertyDescriptors, C = Object.getOwnPropertySymbols, J = Object.prototype.hasOwnProperty, K = Object.prototype.propertyIsEnumerable, y = (t, e, l) => e in t ? q(t, e, { enumerable: !0, configurable: !0, writable: !0, value: l }) : t[e] = l, M = (t, e) => {
|
|
8
|
-
for (var l in e || (e = {}))
|
|
9
|
-
J.call(e, l) && y(t, l, e[l]);
|
|
10
|
-
if (C)
|
|
11
|
-
for (var l of C(e))
|
|
12
|
-
K.call(e, l) && y(t, l, e[l]);
|
|
13
|
-
return t;
|
|
14
|
-
}, Q = (t, e) => G(t, H(e));
|
|
15
|
-
const U = { class: "margin-b-1" }, W = { class: "flex align-items-center" }, X = ["onClick"], Y = /* @__PURE__ */ x(Q(M({}, {
|
|
16
|
-
name: "ToolDot"
|
|
17
|
-
}), {
|
|
18
|
-
__name: "dot",
|
|
19
|
-
props: /* @__PURE__ */ O({
|
|
20
|
-
size: {},
|
|
21
|
-
text: {},
|
|
22
|
-
name: {},
|
|
23
|
-
component: {},
|
|
24
|
-
isPrevent: { type: Boolean },
|
|
25
|
-
callback: { type: Function }
|
|
26
|
-
}, N),
|
|
27
|
-
emits: ["tool"],
|
|
28
|
-
setup(t, { emit: e }) {
|
|
29
|
-
const l = e, { t: _, textClass: P } = I(), u = b(!1), d = b([
|
|
30
|
-
{ label: "#004BFF", value: 0, checked: !1 },
|
|
31
|
-
{ label: "#FF4B40", value: 0, checked: !1 },
|
|
32
|
-
{ label: "#FFAA00", value: 0, checked: !1 },
|
|
33
|
-
{ label: "#51C964", value: 0, checked: !1 },
|
|
34
|
-
{ label: "#00BEFF", value: 0, checked: !1 },
|
|
35
|
-
{ label: "#8C58CE", value: 0, checked: !1 },
|
|
36
|
-
{ label: "#F261A7", value: 0, checked: !1 }
|
|
37
|
-
]), m = z("kfbViewRef");
|
|
38
|
-
F(() => {
|
|
39
|
-
var o, a;
|
|
40
|
-
return (a = (o = m == null ? void 0 : m.value) == null ? void 0 : o.kfbView) == null ? void 0 : a.labelList;
|
|
41
|
-
}, (o) => {
|
|
42
|
-
d.value.forEach((a) => {
|
|
43
|
-
var r;
|
|
44
|
-
a.value = (r = (o || []).filter((n) => (n == null ? void 0 : n.custom) && (n == null ? void 0 : n.strokeStyle) === a.label && (n == null ? void 0 : n.tool) === "Dot")) == null ? void 0 : r.length;
|
|
45
|
-
});
|
|
46
|
-
});
|
|
47
|
-
function w(o) {
|
|
48
|
-
d.value.forEach((a) => {
|
|
49
|
-
a.checked = !1;
|
|
50
|
-
}), o.checked = !0, l("tool", "annotate", {
|
|
51
|
-
strokeStyle: o.label,
|
|
52
|
-
tool: "Dot",
|
|
53
|
-
once: !1,
|
|
54
|
-
custom: !0,
|
|
55
|
-
subType: "count"
|
|
56
|
-
});
|
|
57
|
-
}
|
|
58
|
-
function E() {
|
|
59
|
-
u.value = !u.value, u.value || d.value.forEach((o) => {
|
|
60
|
-
o.checked = !1;
|
|
61
|
-
}), l("tool", "endDraw");
|
|
62
|
-
}
|
|
63
|
-
return (o, a) => (f(), h(s(R), {
|
|
64
|
-
visible: u.value,
|
|
65
|
-
"popper-class": "el-popover-padding-0",
|
|
66
|
-
placement: "bottom",
|
|
67
|
-
width: "300px",
|
|
68
|
-
trigger: "click"
|
|
69
|
-
}, {
|
|
70
|
-
reference: i(() => [
|
|
71
|
-
c("div", {
|
|
72
|
-
class: "hzzt-kfb-toolbox__icon",
|
|
73
|
-
onClick: a[0] || (a[0] = (r) => E())
|
|
74
|
-
}, [
|
|
75
|
-
p(s(g), { size: o.size }, {
|
|
76
|
-
default: i(() => [
|
|
77
|
-
p(A)
|
|
78
|
-
]),
|
|
79
|
-
_: 1
|
|
80
|
-
}, 8, ["size"]),
|
|
81
|
-
c("div", {
|
|
82
|
-
class: V(s(P))
|
|
83
|
-
}, v(s(_)(o.text || "打点")), 3)
|
|
84
|
-
])
|
|
85
|
-
]),
|
|
86
|
-
default: i(() => [
|
|
87
|
-
p(s(T), { shadow: "never" }, {
|
|
88
|
-
default: i(() => [
|
|
89
|
-
c("div", null, [
|
|
90
|
-
c("p", U, v(s(_)("按下ESC键结束打点操作")), 1),
|
|
91
|
-
c("div", W, [
|
|
92
|
-
(f(!0), k(D, null, B(d.value, (r) => (f(), k("div", {
|
|
93
|
-
key: r.label,
|
|
94
|
-
class: "flex column align-items-center"
|
|
95
|
-
}, [
|
|
96
|
-
c("div", {
|
|
97
|
-
style: S({ "background-color": r.label }),
|
|
98
|
-
class: "hzzt-kfb-toolbox-dot__box flex justify-content-center align-items-center",
|
|
99
|
-
onClick: (n) => w(r)
|
|
100
|
-
}, [
|
|
101
|
-
p(s(g), { size: "16" }, {
|
|
102
|
-
default: i(() => [
|
|
103
|
-
r.checked ? (f(), h(L, { key: 0 })) : j("", !0)
|
|
104
|
-
]),
|
|
105
|
-
_: 2
|
|
106
|
-
}, 1024)
|
|
107
|
-
], 12, X),
|
|
108
|
-
c("p", null, v(r.value ? r.value : " "), 1)
|
|
109
|
-
]))), 128))
|
|
110
|
-
])
|
|
111
|
-
])
|
|
112
|
-
]),
|
|
113
|
-
_: 1
|
|
114
|
-
})
|
|
115
|
-
]),
|
|
116
|
-
_: 1
|
|
117
|
-
}, 8, ["visible"]));
|
|
118
|
-
}
|
|
119
|
-
})), re = /* @__PURE__ */ $(Y, [["__scopeId", "data-v-ca4687d6"]]);
|
|
120
|
-
export {
|
|
121
|
-
re as default
|
|
122
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),v=require("./useCommonBBhfDvWF.js"),h=require("./dotDpCmvPJC.js"),C=require("./checkDg1XwTUE.js"),u=require("element-plus"),g=require("./indexCBVjt8NT.js");var y=Object.defineProperty,E=Object.defineProperties,w=Object.getOwnPropertyDescriptors,p=Object.getOwnPropertySymbols,P=Object.prototype.hasOwnProperty,x=Object.prototype.propertyIsEnumerable,_=(r,t,l)=>t in r?y(r,t,{enumerable:!0,configurable:!0,writable:!0,value:l}):r[t]=l,V=(r,t)=>{for(var l in t||(t={}))P.call(t,l)&&_(r,l,t[l]);if(p)for(var l of p(t))x.call(t,l)&&_(r,l,t[l]);return r},N=(r,t)=>E(r,w(t));const O={class:"margin-b-1"},B={class:"flex align-items-center"},z=["onClick"],F=e.defineComponent(N(V({},{name:"ToolDot"}),{__name:"dot",props:e.mergeDefaults({size:{},text:{},name:{},component:{},isPrevent:{type:Boolean},callback:{type:Function}},v.defaultProps),emits:["tool"],setup(r,{emit:t}){const l=t,{t:d,textClass:m}=v.useCommon(),s=e.ref(!1),i=e.ref([{label:"#004BFF",value:0,checked:!1},{label:"#FF4B40",value:0,checked:!1},{label:"#FFAA00",value:0,checked:!1},{label:"#51C964",value:0,checked:!1},{label:"#00BEFF",value:0,checked:!1},{label:"#8C58CE",value:0,checked:!1},{label:"#F261A7",value:0,checked:!1}]),f=e.inject("kfbViewRef");e.watch(()=>{var o,a;return(a=(o=f==null?void 0:f.value)==null?void 0:o.kfbView)==null?void 0:a.labelList},o=>{i.value.forEach(a=>{var n;a.value=(n=(o||[]).filter(c=>(c==null?void 0:c.custom)&&(c==null?void 0:c.strokeStyle)===a.label&&(c==null?void 0:c.tool)==="Dot"))==null?void 0:n.length})});function b(o){i.value.forEach(a=>{a.checked=!1}),o.checked=!0,l("tool","annotate",{strokeStyle:o.label,tool:"Dot",once:!1,custom:!0,subType:"count"})}function k(){s.value=!s.value,s.value||i.value.forEach(o=>{o.checked=!1}),l("tool","endDraw")}return(o,a)=>(e.openBlock(),e.createBlock(e.unref(u.ElPopover),{visible:s.value,"popper-class":"el-popover-padding-0",placement:"bottom",width:"300px",trigger:"click"},{reference:e.withCtx(()=>[e.createElementVNode("div",{class:"hzzt-kfb-toolbox__icon",onClick:a[0]||(a[0]=n=>k())},[e.createVNode(e.unref(u.ElIcon),{size:o.size},{default:e.withCtx(()=>[e.createVNode(h.default)]),_:1},8,["size"]),e.createElementVNode("div",{class:e.normalizeClass(e.unref(m))},e.toDisplayString(e.unref(d)(o.text||"打点")),3)])]),default:e.withCtx(()=>[e.createVNode(e.unref(u.ElCard),{shadow:"never"},{default:e.withCtx(()=>[e.createElementVNode("div",null,[e.createElementVNode("p",O,e.toDisplayString(e.unref(d)("按下ESC键结束打点操作")),1),e.createElementVNode("div",B,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.value,n=>(e.openBlock(),e.createElementBlock("div",{key:n.label,class:"flex column align-items-center"},[e.createElementVNode("div",{style:e.normalizeStyle({"background-color":n.label}),class:"hzzt-kfb-toolbox-dot__box flex justify-content-center align-items-center",onClick:c=>b(n)},[e.createVNode(e.unref(u.ElIcon),{size:"16"},{default:e.withCtx(()=>[n.checked?(e.openBlock(),e.createBlock(C.default,{key:0})):e.createCommentVNode("",!0)]),_:2},1024)],12,z),e.createElementVNode("p",null,e.toDisplayString(n.value?n.value:" "),1)]))),128))])])]),_:1})]),_:1},8,["visible"]))}})),S=g._export_sfc(F,[["__scopeId","data-v-ca4687d6"]]);exports.default=S;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),p=require("./useCommonBBhfDvWF.js"),l=require("element-plus"),_=require("./downloadnu9isJ53.js"),v=require("./indexCBVjt8NT.js");var w=Object.defineProperty,g=Object.defineProperties,P=Object.getOwnPropertyDescriptors,u=Object.getOwnPropertySymbols,y=Object.prototype.hasOwnProperty,C=Object.prototype.propertyIsEnumerable,f=(o,t,r)=>t in o?w(o,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):o[t]=r,b=(o,t)=>{for(var r in t||(t={}))y.call(t,r)&&f(o,r,t[r]);if(u)for(var r of u(t))C.call(t,r)&&f(o,r,t[r]);return o},x=(o,t)=>g(o,P(t));const O={class:"flex column align-items-center"},N=e.defineComponent(x(b({},{name:"ToolDownload"}),{__name:"download",props:e.mergeDefaults({size:{},text:{},name:{},component:{},isPrevent:{type:Boolean},callback:{type:Function}},p.defaultProps),emits:["tool"],setup(o,{emit:t}){const r=t,{t:i,textClass:m}=p.useCommon(),a=e.ref(!1);function c(s){r("tool","download",s),a.value=!1}return(s,n)=>(e.openBlock(),e.createBlock(e.unref(l.ElPopover),{visible:a.value,"popper-class":"el-popover-padding-0",placement:"bottom",width:180,trigger:"click"},{reference:e.withCtx(()=>[e.createElementVNode("div",{class:"hzzt-kfb-toolbox__icon",onClick:n[2]||(n[2]=d=>a.value=!a.value)},[e.createVNode(e.unref(l.ElIcon),{size:s.size},{default:e.withCtx(()=>[e.createVNode(_.default)]),_:1},8,["size"]),e.createElementVNode("div",{class:e.normalizeClass(e.unref(m))},e.toDisplayString(e.unref(i)(s.text||"下载")),3)])]),default:e.withCtx(()=>[e.createVNode(e.unref(l.ElCard),{shadow:"never"},{default:e.withCtx(()=>[e.createElementVNode("div",O,[e.createVNode(e.unref(l.ElLink),{onClick:n[0]||(n[0]=d=>c("all"))},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(i)("下载全部切片")),1)]),_:1}),e.createVNode(e.unref(l.ElLink),{type:"primary",class:"margin-t-2",onClick:n[1]||(n[1]=d=>c("single"))},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(i)("下载当前切片")),1)]),_:1})])]),_:1})]),_:1},8,["visible"]))}})),V=v._export_sfc(N,[["__scopeId","data-v-b1632013"]]);exports.default=V;
|