hzzt-kfb-slide 0.0.3 → 0.0.4
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/{annotateCdbWkykl.js → annotateC6KKIN-C.js} +1 -1
- package/dist/components/annotateCH4GAooA.js +1 -0
- package/dist/components/{annotateD0egGTin.js → annotateCriDzoRR.js} +37 -36
- package/dist/components/{annotateCtCMs-ef.js → annotateDrBDAiwJ.js} +1 -1
- package/dist/components/{arrowC9aIuvQe.js → arrowDPk76wAe.js} +1 -1
- package/dist/components/{arrowDownC6bqk-lY.js → arrowDownBdM08C-k.js} +1 -1
- package/dist/components/{arrowDownGmouwhLr.js → arrowDownDI6AMcyz.js} +1 -1
- package/dist/components/{arrowDG9uJA9k.js → arrowFPEB8W4f.js} +1 -1
- package/dist/components/{arrowLeftBOXSO3ql.js → arrowLeftCHTZ9DsM.js} +1 -1
- package/dist/components/{arrowLeftDtz6Sjds.js → arrowLeftM_OyaeGe.js} +1 -1
- package/dist/components/{arrowRightHppOESBK.js → arrowRightCxryh7mK.js} +1 -1
- package/dist/components/{arrowRightDSH6IzNE.js → arrowRightDjW4cZXc.js} +1 -1
- package/dist/components/{arrowUpCuroteRQ.js → arrowUpBBOMqRwJ.js} +1 -1
- package/dist/components/{arrowUpCHU6h7kZ.js → arrowUpDoHvHUV6.js} +1 -1
- package/dist/components/{channelNB37p_zP.js → channel0jNldMsg.js} +1 -1
- package/dist/components/{channelB8E2yoQ7.js → channelCsDQbKiD.js} +1 -1
- package/dist/components/{checkLEGWCAxP.js → check0Zxvds83.js} +1 -1
- package/dist/components/{checkseAngK1P.js → checkBWJi9_a6.js} +1 -1
- package/dist/components/{configDLPuCFH1.js → config6VhhjpQh.js} +1 -1
- package/dist/components/{configCCGG0UB4.js → configCQX8ZTs2.js} +1 -1
- package/dist/components/{customDo3qaJ1U.js → customDNzwsLNR.js} +1 -1
- package/dist/components/{customBbYfn41m.js → customs0nLjsaE.js} +1 -1
- package/dist/components/{deleteMXhIkgfB.js → deleteCgLqIVRl.js} +1 -1
- package/dist/components/{deleteD2WtxFlL.js → deleteDnKSpkZO.js} +1 -1
- package/dist/components/{dotDJRbd0BV.js → dotBeWq5BYs.js} +1 -1
- package/dist/components/dotBi2ivVYX.js +1 -0
- package/dist/components/{dotg0NvS9Ck.js → dotCi0WBjE9.js} +17 -16
- package/dist/components/{dotEN0Eh5Op.js → dotxBw0mBnq.js} +1 -1
- package/dist/components/{downloadD_Bmec44.js → downloadBnTQzA4j.js} +3 -3
- package/dist/components/{downloadGX-_YQez.js → downloadDF2_6Y-f.js} +1 -1
- package/dist/components/{downloadCaAoF5Or.js → downloadDNe3qbJ7.js} +1 -1
- package/dist/components/{downloadCaJyQTwU.js → downloadDeswf8ql.js} +1 -1
- package/dist/components/{flipBkZOXGJN.js → flipB4UaXh-c.js} +1 -1
- package/dist/components/{flipCC_nhFBO.js → flipDkEX3ZQH.js} +1 -1
- package/dist/components/{fullscreenDUzxAfXo.js → fullscreenBIXfsULV.js} +1 -1
- package/dist/components/{fullscreenDjH9QoF2.js → fullscreenC9wvJxvO.js} +2 -2
- package/dist/components/{fullscreenEVnYx--1.js → fullscreenCGx_0CaO.js} +1 -1
- package/dist/components/{fullscreenC380_EU3.js → fullscreenDbpR9B7w.js} +1 -1
- package/dist/components/{indexDdIv5EKS.js → indexBm-HXbj3.js} +4652 -4511
- package/dist/components/indexCa2d-Wjt.js +30 -0
- package/dist/components/{infoBFIavOPB.js → infoCjs_wSRJ.js} +1 -1
- package/dist/components/{infoCp5QUeZm.js → infogZMbfIdS.js} +1 -1
- package/dist/components/{levelZfTb2sPf.js → level9TdUqGzt.js} +1 -1
- package/dist/components/{levelC1Ud4D0B.js → levelCY1NlHIe.js} +1 -1
- package/dist/components/{microscopeXeEtWd1W.js → microscope4FIRB1UB.js} +1 -1
- package/dist/components/{microscopeCmqOpPc4.js → microscopeC2JZ0eI2.js} +3 -3
- package/dist/components/{microscopeBeixYxYI.js → microscopeDRt26GBO.js} +1 -1
- package/dist/components/{microscopeDZWMA8RW.js → microscopeDUGvuln-.js} +1 -1
- package/dist/components/{moveDwsVnmQi.js → moveBhV9kg6L.js} +1 -1
- package/dist/components/{moveBzePKtM6.js → moveCu3V3JqI.js} +1 -1
- package/dist/components/{moveBea2jbYH.js → moveD38V2VTD.js} +1 -1
- package/dist/components/{moveB1DiH4PI.js → movebkPadei-.js} +3 -3
- package/dist/components/{nextC52pb5sE.js → nextClAf7xMw.js} +1 -1
- package/dist/components/{nextDYmCUlzZ.js → nextCoqEdtnZ.js} +1 -1
- package/dist/components/{prevv0XqJ_iF.js → prevB3w5Xo5F.js} +1 -1
- package/dist/components/{prevT7x-zgKu.js → prevJkp-fUef.js} +1 -1
- package/dist/components/{processBiTw6vPV.js → processB578krhc.js} +1 -1
- package/dist/components/{processCmTYHlH3.js → processBS-P5qTF.js} +1 -1
- package/dist/components/{processDW13CjX-.js → process_4OLLR3I.js} +1 -1
- package/dist/components/{process0WK-TxPd.js → processdjntnqTL.js} +3 -3
- package/dist/components/{rotateCbkJvPFi.js → rotateBtBfaYlt.js} +1 -1
- package/dist/components/{rotateDlk_Qk4Y.js → rotateCGoD_DlO.js} +1 -1
- package/dist/components/{rotateLcm0V_kN.js → rotateDlOeZK_Y.js} +4 -4
- package/dist/components/{rotateBViLTXxd.js → rotateDzNJl50p.js} +1 -1
- package/dist/components/{settingCZkmIJSr.js → settingB87fba2e.js} +3 -3
- package/dist/components/{settingDyHmqPh3.js → settingCBl44H7B.js} +1 -1
- package/dist/components/{settingDVPXWTEf.js → settingCE2-cMN2.js} +1 -1
- package/dist/components/{setting3RU3dG2s.js → settingDKu9dgXl.js} +1 -1
- package/dist/components/{tailorBgKlGdZj.js → tailorIfjKVe1q.js} +1 -1
- package/dist/components/{tailorDHg9ZsXw.js → tailorrql5Z5dC.js} +1 -1
- package/dist/components/{useCommonB2St3W5r.js → useCommonCm7rhO60.js} +1 -1
- package/dist/components/{useCommonCwKio4Jh.js → useCommonDGun_T6i.js} +1 -1
- package/dist/components/{zoomBKsf5GkB.js → zoomDRHWcY_A.js} +1 -1
- package/dist/components/{zoomIn73PRBFpz.js → zoomInBtOl0w7G.js} +1 -1
- package/dist/components/{zoomInDWX2Osc6.js → zoomInDBLRbkSc.js} +1 -1
- package/dist/components/{zoomOutgHFV2sxE.js → zoomOutBii_59lh.js} +1 -1
- package/dist/components/{zoomOutD8Mlbb8q.js → zoomOutD6o_vR_h.js} +1 -1
- package/dist/components/{zoomCnS6EmhN.js → zoomrgQT7EYg.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 +1 -1
- package/types/components/KfbView/index.d.ts +5 -1
- package/types/components/KfbView/index.vue.d.ts +8 -4
- package/types/components/KfbView/useLabel.d.ts +90 -3
- package/types/components/KfbView/useVoice.d.ts +8 -0
- package/types/components/ai/useAi.d.ts +6 -2
- package/types/index.d.ts +18 -6
- package/types/instances.d.ts +1 -0
- package/dist/components/annotateBNqnmoMI.js +0 -1
- package/dist/components/dotBgHmd0mz.js +0 -1
- package/dist/components/indexD_phlegk.js +0 -30
|
@@ -9,9 +9,9 @@ declare function updateGrid(options: any): void;
|
|
|
9
9
|
declare function updateGraduation(options: any): void;
|
|
10
10
|
declare function updateNavigator(flag: any): void;
|
|
11
11
|
declare function zoomTo(zoom: any): void;
|
|
12
|
-
declare var
|
|
12
|
+
declare var __VLS_137: {};
|
|
13
13
|
type __VLS_Slots = {} & {
|
|
14
|
-
default?: (props: typeof
|
|
14
|
+
default?: (props: typeof __VLS_137) => any;
|
|
15
15
|
};
|
|
16
16
|
declare const __VLS_component: import("vue").DefineComponent<KfbProps, {
|
|
17
17
|
kfbView: Ref<{
|
|
@@ -33,6 +33,7 @@ declare const __VLS_component: import("vue").DefineComponent<KfbProps, {
|
|
|
33
33
|
clone?: (() => import("@/components/KfbView/index.ts").Point) | undefined;
|
|
34
34
|
}[] | undefined;
|
|
35
35
|
tool?: string | undefined;
|
|
36
|
+
subType?: string | undefined;
|
|
36
37
|
src?: string | undefined;
|
|
37
38
|
scale?: number | undefined;
|
|
38
39
|
region?: {
|
|
@@ -47,12 +48,13 @@ declare const __VLS_component: import("vue").DefineComponent<KfbProps, {
|
|
|
47
48
|
isClose?: boolean | undefined;
|
|
48
49
|
select?: boolean | undefined;
|
|
49
50
|
show?: boolean | undefined;
|
|
50
|
-
|
|
51
|
+
isAi?: boolean | undefined;
|
|
51
52
|
custom?: boolean | undefined;
|
|
52
53
|
cls?: string | undefined;
|
|
53
54
|
score?: number | undefined;
|
|
54
55
|
imageUrl?: string | undefined;
|
|
55
56
|
__other__: any;
|
|
57
|
+
__data__: any;
|
|
56
58
|
}[] | undefined;
|
|
57
59
|
viewer: {
|
|
58
60
|
viewport: {
|
|
@@ -143,6 +145,7 @@ declare const __VLS_component: import("vue").DefineComponent<KfbProps, {
|
|
|
143
145
|
clone?: (() => import("@/components/KfbView/index.ts").Point) | undefined;
|
|
144
146
|
}[] | undefined;
|
|
145
147
|
tool?: string | undefined;
|
|
148
|
+
subType?: string | undefined;
|
|
146
149
|
src?: string | undefined;
|
|
147
150
|
scale?: number | undefined;
|
|
148
151
|
region?: {
|
|
@@ -157,12 +160,13 @@ declare const __VLS_component: import("vue").DefineComponent<KfbProps, {
|
|
|
157
160
|
isClose?: boolean | undefined;
|
|
158
161
|
select?: boolean | undefined;
|
|
159
162
|
show?: boolean | undefined;
|
|
160
|
-
|
|
163
|
+
isAi?: boolean | undefined;
|
|
161
164
|
custom?: boolean | undefined;
|
|
162
165
|
cls?: string | undefined;
|
|
163
166
|
score?: number | undefined;
|
|
164
167
|
imageUrl?: string | undefined;
|
|
165
168
|
__other__: any;
|
|
169
|
+
__data__: any;
|
|
166
170
|
}[] | undefined;
|
|
167
171
|
viewer: {
|
|
168
172
|
viewport: {
|
|
@@ -19,6 +19,7 @@ export declare function useLabel(props: KfbProps, kfbView: Ref<KfbViewInterface>
|
|
|
19
19
|
clone?: (() => import("@/components/KfbView/index.ts").Point) | undefined;
|
|
20
20
|
}[] | undefined;
|
|
21
21
|
tool?: string | undefined;
|
|
22
|
+
subType?: string | undefined;
|
|
22
23
|
src?: string | undefined;
|
|
23
24
|
scale?: number | undefined;
|
|
24
25
|
region?: {
|
|
@@ -33,12 +34,13 @@ export declare function useLabel(props: KfbProps, kfbView: Ref<KfbViewInterface>
|
|
|
33
34
|
isClose?: boolean | undefined;
|
|
34
35
|
select?: boolean | undefined;
|
|
35
36
|
show?: boolean | undefined;
|
|
36
|
-
|
|
37
|
+
isAi?: boolean | undefined;
|
|
37
38
|
custom?: boolean | undefined;
|
|
38
39
|
cls?: string | undefined;
|
|
39
40
|
score?: number | undefined;
|
|
40
41
|
imageUrl?: string | undefined;
|
|
41
42
|
__other__: any;
|
|
43
|
+
__data__: any;
|
|
42
44
|
} | undefined, Label | {
|
|
43
45
|
id?: number | undefined;
|
|
44
46
|
parent_id?: number | undefined;
|
|
@@ -57,6 +59,7 @@ export declare function useLabel(props: KfbProps, kfbView: Ref<KfbViewInterface>
|
|
|
57
59
|
clone?: (() => import("@/components/KfbView/index.ts").Point) | undefined;
|
|
58
60
|
}[] | undefined;
|
|
59
61
|
tool?: string | undefined;
|
|
62
|
+
subType?: string | undefined;
|
|
60
63
|
src?: string | undefined;
|
|
61
64
|
scale?: number | undefined;
|
|
62
65
|
region?: {
|
|
@@ -71,15 +74,99 @@ export declare function useLabel(props: KfbProps, kfbView: Ref<KfbViewInterface>
|
|
|
71
74
|
isClose?: boolean | undefined;
|
|
72
75
|
select?: boolean | undefined;
|
|
73
76
|
show?: boolean | undefined;
|
|
74
|
-
|
|
77
|
+
isAi?: boolean | undefined;
|
|
75
78
|
custom?: boolean | undefined;
|
|
76
79
|
cls?: string | undefined;
|
|
77
80
|
score?: number | undefined;
|
|
78
81
|
imageUrl?: string | undefined;
|
|
79
82
|
__other__: any;
|
|
83
|
+
__data__: any;
|
|
84
|
+
} | undefined>;
|
|
85
|
+
voiceVisible: Ref<boolean, boolean>;
|
|
86
|
+
labelForm: Ref<{
|
|
87
|
+
id?: number | undefined;
|
|
88
|
+
parent_id?: number | undefined;
|
|
89
|
+
lineWidth?: number | undefined;
|
|
90
|
+
strokeStyle?: string | undefined;
|
|
91
|
+
fillStyle?: string | undefined;
|
|
92
|
+
fontSize?: number | undefined;
|
|
93
|
+
description?: string | undefined;
|
|
94
|
+
text?: string | undefined;
|
|
95
|
+
angle?: number | undefined;
|
|
96
|
+
measure?: boolean | undefined;
|
|
97
|
+
points?: {
|
|
98
|
+
x: number;
|
|
99
|
+
y: number;
|
|
100
|
+
minus?: ((point: import("@/components/KfbView/index.ts").Point) => import("@/components/KfbView/index.ts").Point) | undefined;
|
|
101
|
+
clone?: (() => import("@/components/KfbView/index.ts").Point) | undefined;
|
|
102
|
+
}[] | undefined;
|
|
103
|
+
tool?: string | undefined;
|
|
104
|
+
subType?: string | undefined;
|
|
105
|
+
src?: string | undefined;
|
|
106
|
+
scale?: number | undefined;
|
|
107
|
+
region?: {
|
|
108
|
+
x: number;
|
|
109
|
+
y: number;
|
|
110
|
+
width: number;
|
|
111
|
+
height: number;
|
|
112
|
+
} | undefined;
|
|
113
|
+
move?: boolean | undefined;
|
|
114
|
+
resize?: boolean | undefined;
|
|
115
|
+
isROI?: boolean | undefined;
|
|
116
|
+
isClose?: boolean | undefined;
|
|
117
|
+
select?: boolean | undefined;
|
|
118
|
+
show?: boolean | undefined;
|
|
119
|
+
isAi?: boolean | undefined;
|
|
120
|
+
custom?: boolean | undefined;
|
|
121
|
+
cls?: string | undefined;
|
|
122
|
+
score?: number | undefined;
|
|
123
|
+
imageUrl?: string | undefined;
|
|
124
|
+
__other__: any;
|
|
125
|
+
__data__: any;
|
|
126
|
+
} | undefined, Label | {
|
|
127
|
+
id?: number | undefined;
|
|
128
|
+
parent_id?: number | undefined;
|
|
129
|
+
lineWidth?: number | undefined;
|
|
130
|
+
strokeStyle?: string | undefined;
|
|
131
|
+
fillStyle?: string | undefined;
|
|
132
|
+
fontSize?: number | undefined;
|
|
133
|
+
description?: string | undefined;
|
|
134
|
+
text?: string | undefined;
|
|
135
|
+
angle?: number | undefined;
|
|
136
|
+
measure?: boolean | undefined;
|
|
137
|
+
points?: {
|
|
138
|
+
x: number;
|
|
139
|
+
y: number;
|
|
140
|
+
minus?: ((point: import("@/components/KfbView/index.ts").Point) => import("@/components/KfbView/index.ts").Point) | undefined;
|
|
141
|
+
clone?: (() => import("@/components/KfbView/index.ts").Point) | undefined;
|
|
142
|
+
}[] | undefined;
|
|
143
|
+
tool?: string | undefined;
|
|
144
|
+
subType?: string | undefined;
|
|
145
|
+
src?: string | undefined;
|
|
146
|
+
scale?: number | undefined;
|
|
147
|
+
region?: {
|
|
148
|
+
x: number;
|
|
149
|
+
y: number;
|
|
150
|
+
width: number;
|
|
151
|
+
height: number;
|
|
152
|
+
} | undefined;
|
|
153
|
+
move?: boolean | undefined;
|
|
154
|
+
resize?: boolean | undefined;
|
|
155
|
+
isROI?: boolean | undefined;
|
|
156
|
+
isClose?: boolean | undefined;
|
|
157
|
+
select?: boolean | undefined;
|
|
158
|
+
show?: boolean | undefined;
|
|
159
|
+
isAi?: boolean | undefined;
|
|
160
|
+
custom?: boolean | undefined;
|
|
161
|
+
cls?: string | undefined;
|
|
162
|
+
score?: number | undefined;
|
|
163
|
+
imageUrl?: string | undefined;
|
|
164
|
+
__other__: any;
|
|
165
|
+
__data__: any;
|
|
80
166
|
} | undefined>;
|
|
81
167
|
initLabel: () => void;
|
|
82
168
|
selectLabel: (label: Label) => void;
|
|
83
169
|
reloadLabelList: () => void;
|
|
84
|
-
eventHandel: (type: string) => (label?: Label) => Promise<void
|
|
170
|
+
eventHandel: (type: string) => (label?: Label) => Promise<void> | undefined;
|
|
171
|
+
addHandle: (label?: Label) => Promise<void>;
|
|
85
172
|
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { type Ref } from "vue";
|
|
2
|
+
import { KfbProps, Label } from "@/components/KfbView/index.ts";
|
|
3
|
+
export declare function useVoice(props: KfbProps, label: Ref<Label | undefined>): {
|
|
4
|
+
drawVoice: (ctx: CanvasRenderingContext2D, color: string) => void;
|
|
5
|
+
isRecording: Ref<boolean, boolean>;
|
|
6
|
+
startRecording: () => Promise<void>;
|
|
7
|
+
stopRecording: () => void;
|
|
8
|
+
};
|
|
@@ -21,6 +21,7 @@ export declare function useAi(props: Props, slide: Ref<DigitalSlide>): {
|
|
|
21
21
|
clone?: (() => import("@/components/KfbView/index.ts").Point) | undefined;
|
|
22
22
|
}[] | undefined;
|
|
23
23
|
tool?: string | undefined;
|
|
24
|
+
subType?: string | undefined;
|
|
24
25
|
src?: string | undefined;
|
|
25
26
|
scale?: number | undefined;
|
|
26
27
|
region?: {
|
|
@@ -35,12 +36,13 @@ export declare function useAi(props: Props, slide: Ref<DigitalSlide>): {
|
|
|
35
36
|
isClose?: boolean | undefined;
|
|
36
37
|
select?: boolean | undefined;
|
|
37
38
|
show?: boolean | undefined;
|
|
38
|
-
|
|
39
|
+
isAi?: boolean | undefined;
|
|
39
40
|
custom?: boolean | undefined;
|
|
40
41
|
cls?: string | undefined;
|
|
41
42
|
score?: number | undefined;
|
|
42
43
|
imageUrl?: string | undefined;
|
|
43
44
|
__other__: any;
|
|
45
|
+
__data__: any;
|
|
44
46
|
}[], Label[] | {
|
|
45
47
|
id?: number | undefined;
|
|
46
48
|
parent_id?: number | undefined;
|
|
@@ -59,6 +61,7 @@ export declare function useAi(props: Props, slide: Ref<DigitalSlide>): {
|
|
|
59
61
|
clone?: (() => import("@/components/KfbView/index.ts").Point) | undefined;
|
|
60
62
|
}[] | undefined;
|
|
61
63
|
tool?: string | undefined;
|
|
64
|
+
subType?: string | undefined;
|
|
62
65
|
src?: string | undefined;
|
|
63
66
|
scale?: number | undefined;
|
|
64
67
|
region?: {
|
|
@@ -73,12 +76,13 @@ export declare function useAi(props: Props, slide: Ref<DigitalSlide>): {
|
|
|
73
76
|
isClose?: boolean | undefined;
|
|
74
77
|
select?: boolean | undefined;
|
|
75
78
|
show?: boolean | undefined;
|
|
76
|
-
|
|
79
|
+
isAi?: boolean | undefined;
|
|
77
80
|
custom?: boolean | undefined;
|
|
78
81
|
cls?: string | undefined;
|
|
79
82
|
score?: number | undefined;
|
|
80
83
|
imageUrl?: string | undefined;
|
|
81
84
|
__other__: any;
|
|
85
|
+
__data__: any;
|
|
82
86
|
}[]>;
|
|
83
87
|
enableAi: Ref<boolean, boolean>;
|
|
84
88
|
enableIqc: Ref<boolean, boolean>;
|
package/types/index.d.ts
CHANGED
|
@@ -127,6 +127,7 @@ declare const _default: {
|
|
|
127
127
|
clone?: (() => import("./components/KfbView/index.ts").Point) | undefined;
|
|
128
128
|
}[] | undefined;
|
|
129
129
|
tool?: string | undefined;
|
|
130
|
+
subType?: string | undefined;
|
|
130
131
|
src?: string | undefined;
|
|
131
132
|
scale?: number | undefined;
|
|
132
133
|
region?: {
|
|
@@ -141,12 +142,13 @@ declare const _default: {
|
|
|
141
142
|
isClose?: boolean | undefined;
|
|
142
143
|
select?: boolean | undefined;
|
|
143
144
|
show?: boolean | undefined;
|
|
144
|
-
|
|
145
|
+
isAi?: boolean | undefined;
|
|
145
146
|
custom?: boolean | undefined;
|
|
146
147
|
cls?: string | undefined;
|
|
147
148
|
score?: number | undefined;
|
|
148
149
|
imageUrl?: string | undefined;
|
|
149
150
|
__other__: any;
|
|
151
|
+
__data__: any;
|
|
150
152
|
}[] | undefined;
|
|
151
153
|
viewer: {
|
|
152
154
|
viewport: {
|
|
@@ -237,6 +239,7 @@ declare const _default: {
|
|
|
237
239
|
clone?: (() => import("./components/KfbView/index.ts").Point) | undefined;
|
|
238
240
|
}[] | undefined;
|
|
239
241
|
tool?: string | undefined;
|
|
242
|
+
subType?: string | undefined;
|
|
240
243
|
src?: string | undefined;
|
|
241
244
|
scale?: number | undefined;
|
|
242
245
|
region?: {
|
|
@@ -251,12 +254,13 @@ declare const _default: {
|
|
|
251
254
|
isClose?: boolean | undefined;
|
|
252
255
|
select?: boolean | undefined;
|
|
253
256
|
show?: boolean | undefined;
|
|
254
|
-
|
|
257
|
+
isAi?: boolean | undefined;
|
|
255
258
|
custom?: boolean | undefined;
|
|
256
259
|
cls?: string | undefined;
|
|
257
260
|
score?: number | undefined;
|
|
258
261
|
imageUrl?: string | undefined;
|
|
259
262
|
__other__: any;
|
|
263
|
+
__data__: any;
|
|
260
264
|
}[] | undefined;
|
|
261
265
|
viewer: {
|
|
262
266
|
viewport: {
|
|
@@ -382,6 +386,7 @@ declare const _default: {
|
|
|
382
386
|
clone?: (() => import("./components/KfbView/index.ts").Point) | undefined;
|
|
383
387
|
}[] | undefined;
|
|
384
388
|
tool?: string | undefined;
|
|
389
|
+
subType?: string | undefined;
|
|
385
390
|
src?: string | undefined;
|
|
386
391
|
scale?: number | undefined;
|
|
387
392
|
region?: {
|
|
@@ -396,12 +401,13 @@ declare const _default: {
|
|
|
396
401
|
isClose?: boolean | undefined;
|
|
397
402
|
select?: boolean | undefined;
|
|
398
403
|
show?: boolean | undefined;
|
|
399
|
-
|
|
404
|
+
isAi?: boolean | undefined;
|
|
400
405
|
custom?: boolean | undefined;
|
|
401
406
|
cls?: string | undefined;
|
|
402
407
|
score?: number | undefined;
|
|
403
408
|
imageUrl?: string | undefined;
|
|
404
409
|
__other__: any;
|
|
410
|
+
__data__: any;
|
|
405
411
|
}[] | undefined;
|
|
406
412
|
viewer: {
|
|
407
413
|
viewport: {
|
|
@@ -492,6 +498,7 @@ declare const _default: {
|
|
|
492
498
|
clone?: (() => import("./components/KfbView/index.ts").Point) | undefined;
|
|
493
499
|
}[] | undefined;
|
|
494
500
|
tool?: string | undefined;
|
|
501
|
+
subType?: string | undefined;
|
|
495
502
|
src?: string | undefined;
|
|
496
503
|
scale?: number | undefined;
|
|
497
504
|
region?: {
|
|
@@ -506,12 +513,13 @@ declare const _default: {
|
|
|
506
513
|
isClose?: boolean | undefined;
|
|
507
514
|
select?: boolean | undefined;
|
|
508
515
|
show?: boolean | undefined;
|
|
509
|
-
|
|
516
|
+
isAi?: boolean | undefined;
|
|
510
517
|
custom?: boolean | undefined;
|
|
511
518
|
cls?: string | undefined;
|
|
512
519
|
score?: number | undefined;
|
|
513
520
|
imageUrl?: string | undefined;
|
|
514
521
|
__other__: any;
|
|
522
|
+
__data__: any;
|
|
515
523
|
}[] | undefined;
|
|
516
524
|
viewer: {
|
|
517
525
|
viewport: {
|
|
@@ -632,6 +640,7 @@ declare const _default: {
|
|
|
632
640
|
clone?: (() => import("./components/KfbView/index.ts").Point) | undefined;
|
|
633
641
|
}[] | undefined;
|
|
634
642
|
tool?: string | undefined;
|
|
643
|
+
subType?: string | undefined;
|
|
635
644
|
src?: string | undefined;
|
|
636
645
|
scale?: number | undefined;
|
|
637
646
|
region?: {
|
|
@@ -646,12 +655,13 @@ declare const _default: {
|
|
|
646
655
|
isClose?: boolean | undefined;
|
|
647
656
|
select?: boolean | undefined;
|
|
648
657
|
show?: boolean | undefined;
|
|
649
|
-
|
|
658
|
+
isAi?: boolean | undefined;
|
|
650
659
|
custom?: boolean | undefined;
|
|
651
660
|
cls?: string | undefined;
|
|
652
661
|
score?: number | undefined;
|
|
653
662
|
imageUrl?: string | undefined;
|
|
654
663
|
__other__: any;
|
|
664
|
+
__data__: any;
|
|
655
665
|
}[] | undefined;
|
|
656
666
|
viewer: {
|
|
657
667
|
viewport: {
|
|
@@ -742,6 +752,7 @@ declare const _default: {
|
|
|
742
752
|
clone?: (() => import("./components/KfbView/index.ts").Point) | undefined;
|
|
743
753
|
}[] | undefined;
|
|
744
754
|
tool?: string | undefined;
|
|
755
|
+
subType?: string | undefined;
|
|
745
756
|
src?: string | undefined;
|
|
746
757
|
scale?: number | undefined;
|
|
747
758
|
region?: {
|
|
@@ -756,12 +767,13 @@ declare const _default: {
|
|
|
756
767
|
isClose?: boolean | undefined;
|
|
757
768
|
select?: boolean | undefined;
|
|
758
769
|
show?: boolean | undefined;
|
|
759
|
-
|
|
770
|
+
isAi?: boolean | undefined;
|
|
760
771
|
custom?: boolean | undefined;
|
|
761
772
|
cls?: string | undefined;
|
|
762
773
|
score?: number | undefined;
|
|
763
774
|
imageUrl?: string | undefined;
|
|
764
775
|
__other__: any;
|
|
776
|
+
__data__: any;
|
|
765
777
|
}[] | undefined;
|
|
766
778
|
viewer: {
|
|
767
779
|
viewport: {
|
package/types/instances.d.ts
CHANGED
|
@@ -42,6 +42,7 @@ export interface Kfb {
|
|
|
42
42
|
navigatorHandle?: (type: string, slide: DigitalSlide, data?: any) => Promise<Label[]>;
|
|
43
43
|
tileHandle?: (params: TileParams) => string;
|
|
44
44
|
pathologyHandle: (slide: DigitalSlide) => Promise<boolean>;
|
|
45
|
+
uploadHandle?: (slide: DigitalSlide, label: Label, blob: Blob) => Promise<string>;
|
|
45
46
|
options?: Record<string, any>;
|
|
46
47
|
process?: Process;
|
|
47
48
|
microscope?: Microscope;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),t=require("./indexD_phlegk.js"),c=require("./useCommonB2St3W5r.js"),o=require("element-plus"),_=require("./annotateCtCMs-ef.js"),x=["onClick"],v=["src","alt"],C=e.defineComponent({name:"ToolAnnotate",__name:"annotate",props:e.mergeDefaults({size:{},text:{},name:{},component:{},isPrevent:{type:Boolean},callback:{type:Function}},c.defaultProps),emits:["tool"],setup(h,{emit:i}){const u=i,{t:l,textClass:d}=c.useCommon(),s={line:t.line,arrow:t.arrow,bilateral:t.bilateral,rectangle:t.rectangle,ellipse:t.ellipse,polygon:t.polygon,star:t.star,flag:t.flag,dot:t.dot,font:t.font},f=Object.keys(s).map(n=>({name:n,src:s[n]})),a=e.ref(!1);function p(n){a.value=!1,u("tool","annotate",{tool:n.substring(0,1).toLocaleUpperCase()+n.substring(1)})}function m(){a.value=!a.value}return(n,y)=>(e.openBlock(),e.createBlock(e.unref(o.ElPopover),{visible:a.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:m},[e.createVNode(e.unref(o.ElIcon),{size:n.size},{default:e.withCtx(()=>[e.createVNode(_.default)]),_:1},8,["size"]),e.createElementVNode("div",{class:e.normalizeClass(e.unref(d))},e.toDisplayString(e.unref(l)(n.text||"标注")),3)])]),default:e.withCtx(()=>[e.createVNode(e.unref(o.ElCard),{shadow:"never",header:e.unref(l)("标注工具"),"body-style":{padding:"8px"}},{default:e.withCtx(()=>[e.createElementVNode("div",null,[e.createVNode(e.unref(o.ElText),{type:"danger"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(l)("按ESC可退出标注模式")),1)]),_:1})]),e.createElementVNode("div",null,[e.createVNode(e.unref(o.ElText),{type:"danger"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(l)("点击标注按Delete键可删除标注")),1)]),_:1})]),e.createVNode(e.unref(o.ElRow),null,{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(f),(r,g)=>(e.openBlock(),e.createBlock(e.unref(o.ElCol),{key:g,class:"flex justify-content-center align-items-center",span:8},{default:e.withCtx(()=>[e.createElementVNode("div",{class:"hzzt-kfb-toolbox-annotate-img",onClick:E=>p(r.name)},[e.createElementVNode("img",{style:{width:"100%"},src:r.src,alt:r.name},null,8,v)],8,x)]),_:2},1024))),128))]),_:1})]),_:1},8,["header"])]),_:1},8,["visible"]))}}),b=t._export_sfc(C,[["__scopeId","data-v-9cfc89b6"]]);exports.default=b;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),d=require("./useCommonB2St3W5r.js"),p=require("./dotEN0Eh5Op.js"),h=require("./checkseAngK1P.js"),r=require("element-plus"),b=require("./indexD_phlegk.js"),C={class:"margin-b-1"},_={class:"flex align-items-center"},E=["onClick"],g=e.defineComponent({name:"ToolDot",__name:"dot",props:e.mergeDefaults({size:{},text:{},name:{},component:{},isPrevent:{type:Boolean},callback:{type:Function}},d.defaultProps),emits:["tool"],setup(y,{emit:f}){const i=f,{t:u,textClass:v}=d.useCommon(),n=e.ref(!1),c=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}]),s=e.inject("kfbViewRef");e.watch(()=>{var l,t;return(t=(l=s==null?void 0:s.value)==null?void 0:l.kfbView)==null?void 0:t.labelList},l=>{c.value.forEach(t=>{var o;t.value=(o=(l??[]).filter(a=>(a==null?void 0:a.custom)&&(a==null?void 0:a.strokeStyle)===t.label&&(a==null?void 0:a.tool)==="Dot"))==null?void 0:o.length})});function k(l){c.value.forEach(t=>{t.checked=!1}),l.checked=!0,i("tool","annotate",{strokeStyle:l.label,tool:"Dot",once:!1,custom:!0})}function m(){n.value=!n.value,n.value||c.value.forEach(l=>{l.checked=!1}),i("tool","endDraw")}return(l,t)=>(e.openBlock(),e.createBlock(e.unref(r.ElPopover),{visible:n.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:t[0]||(t[0]=o=>m())},[e.createVNode(e.unref(r.ElIcon),{size:l.size},{default:e.withCtx(()=>[e.createVNode(p.default)]),_:1},8,["size"]),e.createElementVNode("div",{class:e.normalizeClass(e.unref(v))},e.toDisplayString(e.unref(u)(l.text||"打点")),3)])]),default:e.withCtx(()=>[e.createVNode(e.unref(r.ElCard),{shadow:"never"},{default:e.withCtx(()=>[e.createElementVNode("div",null,[e.createElementVNode("p",C,e.toDisplayString(e.unref(u)("按下ESC键结束打点操作")),1),e.createElementVNode("div",_,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.value,o=>(e.openBlock(),e.createElementBlock("div",{key:o.label,class:"flex column align-items-center"},[e.createElementVNode("div",{style:e.normalizeStyle({"background-color":o.label}),class:"hzzt-kfb-toolbox-dot__box flex justify-content-center align-items-center",onClick:a=>k(o)},[e.createVNode(e.unref(r.ElIcon),{size:"16"},{default:e.withCtx(()=>[o.checked?(e.openBlock(),e.createBlock(h.default,{key:0})):e.createCommentVNode("",!0)]),_:2},1024)],12,E),e.createElementVNode("p",null,e.toDisplayString(o.value?o.value:" "),1)]))),128))])])]),_:1})]),_:1},8,["visible"]))}}),x=b._export_sfc(g,[["__scopeId","data-v-76430a1a"]]);exports.default=x;
|