hzzt-kfb-slide 1.0.0 → 1.0.2
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/{annotateC3OVdLbw.js → annotateBOHyE-BS.js} +12 -11
- package/dist/components/annotateBiwRHJDN.js +1 -0
- package/dist/components/{annotateBXULk5a3.js → annotateBzzswUfv.js} +1 -1
- package/dist/components/{annotatefXNCoYLu.js → annotateCK6hezNo.js} +1 -1
- package/dist/components/{arrowCirclev1KayThM.js → arrowCircleCWgZY2Gf.js} +1 -1
- package/dist/components/{arrowCircleDb7gdIQS.js → arrowCircleDJR-9OCD.js} +1 -1
- package/dist/components/{arrowDowncYTpkFcN.js → arrowDownBvce0u9c.js} +1 -1
- package/dist/components/{arrowDownCm-5KDAU.js → arrowDownWhFOaN2S.js} +1 -1
- package/dist/components/{arrowLeft9SPBOHcg.js → arrowLeftBfOo4tCy.js} +1 -1
- package/dist/components/{arrowLeftD65JAYbD.js → arrowLeftDdScm86H.js} +1 -1
- package/dist/components/{arrowRightpIgnyZh6.js → arrowRight7DRwBLb2.js} +1 -1
- package/dist/components/{arrowRightCIWfQMbL.js → arrowRightktODfALk.js} +1 -1
- package/dist/components/{arrowUpJpl1g1-G.js → arrowUpBFgKhHLD.js} +1 -1
- package/dist/components/{arrowUpCq7z0mry.js → arrowUpDuBQjmLC.js} +1 -1
- package/dist/components/{arrowD55SnzAO.js → arrowcQaNYOk_.js} +1 -1
- package/dist/components/{arrowBebrxyVJ.js → arrowxlJNC3Xd.js} +1 -1
- package/dist/components/{bilaterallYvfjpCQ.js → bilateralBx31Pt_f.js} +1 -1
- package/dist/components/{bilateralCyZAkzPD.js → bilateralCMUeHEqO.js} +1 -1
- package/dist/components/{channelB2Intm6x.js → channel4txfMGOK.js} +1 -1
- package/dist/components/{channellCmZ9Sjy.js → channelDykWApvs.js} +1 -1
- package/dist/components/{checkapiu6iX2.js → checkBXocVg_N.js} +1 -1
- package/dist/components/{checkCH14v3q4.js → checkCip_EEpj.js} +1 -1
- package/dist/components/{config6zfrNiYP.js → configChIS6jY0.js} +1 -1
- package/dist/components/{configCJrkE1Ba.js → configD5z_wcFp.js} +1 -1
- package/dist/components/{customC1eYwvra.js → customBkwNWgIG.js} +1 -1
- package/dist/components/{customBt3sPDiX.js → customDClB-7OW.js} +1 -1
- package/dist/components/{deleteBh2jjS8Q.js → deleteBql6MXmA.js} +1 -1
- package/dist/components/{deleteB4TBexlb.js → deleteDEV1CXd_.js} +1 -1
- package/dist/components/dotBKMhhwQJ.js +1 -0
- package/dist/components/{dotDywcPhQw.js → dotCkxO2y2_.js} +1 -1
- package/dist/components/dotD7t1uU2Y.js +124 -0
- package/dist/components/{dotDwG_BTC2.js → dotDFv5ULkE.js} +1 -1
- package/dist/components/{dotOFGGA5wO.js → dotDbRony31.js} +1 -1
- package/dist/components/{dotDASJOh6f.js → dotDsZ1hxaO.js} +1 -1
- package/dist/components/{downloadBO0s85Tq.js → download-j1kbLvu.js} +1 -1
- package/dist/components/{downloadBMzWastU.js → downloadB5Rtk_Ec.js} +3 -3
- package/dist/components/{downloadD2OeK4ct.js → downloadCE7-kbWE.js} +1 -1
- package/dist/components/{downloadB1Jo3FS4.js → downloadDyg64yHi.js} +1 -1
- package/dist/components/{ellipselcNlqp5Y.js → ellipseXLAly11X.js} +1 -1
- package/dist/components/{ellipseCBentgzl.js → ellipsez5glo58z.js} +1 -1
- package/dist/components/{expandLeftuIBH2ofC.js → expandLeftDZGxiOkV.js} +1 -1
- package/dist/components/{expandLeftCnZGNy5v.js → expandLeftDzbIVQMl.js} +1 -1
- package/dist/components/{expandRightCT0BIMZm.js → expandRightBcFL2opk.js} +1 -1
- package/dist/components/{expandRightBdoWM3Vs.js → expandRightDPL4kKOR.js} +1 -1
- package/dist/components/{flagJtLMNwHY.js → flagCEblUCIq.js} +1 -1
- package/dist/components/{flagGISC_b3y.js → flagDp5OHCjv.js} +1 -1
- package/dist/components/{flipB-qXP6Q9.js → flipBFbQcb03.js} +1 -1
- package/dist/components/{flipCZl2lxAO.js → flipBQ0Xod0L.js} +1 -1
- package/dist/components/{fontW5MHoBzB.js → fontB4y8mhGP.js} +1 -1
- package/dist/components/{font4igYIYsf.js → fontDl6_nSTg.js} +1 -1
- package/dist/components/{fullscreenBIdxrxXK.js → fullscreenCH9ZzQyZ.js} +1 -1
- package/dist/components/{fullscreenCm761DtW.js → fullscreenCZBMHIF7.js} +1 -1
- package/dist/components/{fullscreen2dVSJWVp.js → fullscreenD_TY5Nj-.js} +2 -2
- package/dist/components/{fullscreenC-tKkjV4.js → fullscreenw73vtLHZ.js} +1 -1
- package/dist/components/indexChPoAAH8.js +3558 -0
- package/dist/components/indexD0Afmk2w.js +4 -0
- package/dist/components/{infoDMVJP1Cd.js → infoCGV0Ckdj.js} +1 -1
- package/dist/components/{infoD2IMFQXk.js → infoCcN2ke9s.js} +1 -1
- package/dist/components/{levelCFVX6z4i.js → levelBoZTrlWY.js} +1 -1
- package/dist/components/{levelB_QTp4Xi.js → levelSLHseJUd.js} +1 -1
- package/dist/components/{lineBxZOdVfy.js → lineB4tlEhOz.js} +1 -1
- package/dist/components/{lineBycx0Mkw.js → lineai7PmGoN.js} +1 -1
- package/dist/components/measureBhI4DO7U.js +25 -0
- package/dist/components/measureP6lTvt_p.js +1 -0
- package/dist/components/{microscopeDUHq8JL3.js → microscopeBMbzVPf5.js} +1 -1
- package/dist/components/{microscopeDUesGOn_.js → microscopeBMmZiutB.js} +1 -1
- package/dist/components/{microscopeCZTM_ehn.js → microscopeBuHGpte5.js} +1 -1
- package/dist/components/{microscopeD8MUHQWQ.js → microscopeDlizQREt.js} +3 -3
- package/dist/components/{moveDwZgrTRP.js → moveBN48Eruo.js} +1 -1
- package/dist/components/{moveBUITB2ja.js → moveBORYuNEh.js} +3 -3
- package/dist/components/{movecYGcerAL.js → moveD5fPz3_o.js} +1 -1
- package/dist/components/{moveBIuTguMD.js → moveDMtTFV7a.js} +1 -1
- package/dist/components/{nextBQVQnvyy.js → nextBH47Byfp.js} +1 -1
- package/dist/components/{nextCeh2jgS4.js → nextCnqehpYc.js} +1 -1
- package/dist/components/{polygonC4iKaYgF.js → polygonCNoWnb2M.js} +1 -1
- package/dist/components/{polygonCamQnBtA.js → polygonvNsuSZr2.js} +1 -1
- package/dist/components/{prevCjZKY243.js → prevBX_D_1FN.js} +1 -1
- package/dist/components/{prevDDHoj_LV.js → previeYap8xB.js} +1 -1
- package/dist/components/{processCFBw9FJP.js → process7Wnp-DLW.js} +1 -1
- package/dist/components/{processDYjuD83F.js → processCN8_do68.js} +3 -3
- package/dist/components/{processOHQJqtQo.js → processDOlJ_YFV.js} +1 -1
- package/dist/components/{processChbrioTG.js → processDS-q-T9u.js} +1 -1
- package/dist/components/{rectangleXf-LTs1a.js → rectangleBZTD1YG5.js} +1 -1
- package/dist/components/{rectangleD5ywA0Ta.js → rectangleDD23CZRf.js} +1 -1
- package/dist/components/{rotateBsz3FJqm.js → rotateBGZgayTz.js} +1 -1
- package/dist/components/{rotatet8o3SDAN.js → rotateBR4JOMZq.js} +1 -1
- package/dist/components/{rotateDST5eMiU.js → rotateDQ7H7OQH.js} +1 -1
- package/dist/components/{rotateCrWxL6Ps.js → rotateDoqVfopB.js} +4 -4
- package/dist/components/{settingCV0rULKk.js → setting2e5gN6yv.js} +1 -1
- package/dist/components/{settingNVWoLUmP.js → settingB1Lh8oPl.js} +1 -1
- package/dist/components/{settingBmAPoxv1.js → settingB8WACAuV.js} +3 -3
- package/dist/components/{settingDYBf7fLa.js → settingDVLfrSX6.js} +1 -1
- package/dist/components/{starC15qlFU3.js → starB8Jj8B7G.js} +1 -1
- package/dist/components/{starjhiRCzFS.js → starBzvIjo3q.js} +1 -1
- package/dist/components/{tailorOTm6dE6E.js → tailorCg8ygNd0.js} +1 -1
- package/dist/components/{tailorDbgY1KsK.js → tailorLoKadwnW.js} +1 -1
- package/dist/components/useCommonBBvTTBdi.js +1 -0
- package/dist/components/useCommonCzBK1cvQ.js +22 -0
- package/dist/components/{voiceq0Td6sML.js → voiceBCkA6RrA.js} +1 -1
- package/dist/components/{voiceCtNb1pEe.js → voiceCKZjRzRM.js} +1 -1
- package/dist/components/zoomDImPX6s2.js +65 -0
- package/dist/components/{zoomInCkyk_ved.js → zoomInBltposUo.js} +1 -1
- package/dist/components/{zoomInCtgL2ac0.js → zoomInCy_C3q6n.js} +1 -1
- package/dist/components/{zoomOutBnHVu9RJ.js → zoomOutBSqsR8_b.js} +1 -1
- package/dist/components/{zoomOutDMP5lyit.js → zoomOutCRXlTIS0.js} +1 -1
- package/dist/components/zoomU5MDBf57.js +1 -0
- package/dist/index.cjs.js +1 -1
- package/dist/index.css +1 -1
- package/dist/index.es.js +1 -1
- package/package.json +3 -2
- package/types/components/HzztKfbSlide.vue.d.ts +8 -2
- package/types/components/KfbIcon.vue.d.ts +9 -0
- package/types/components/KfbSlideList.vue.d.ts +8 -6
- package/types/components/KfbToolbox.vue.d.ts +1 -0
- package/types/components/KfbView/KfbChannel.vue.d.ts +1 -1
- package/types/components/KfbView/index.d.ts +7 -2
- package/types/components/KfbView/index.vue.d.ts +87 -2
- package/types/components/KfbView/useLabel.d.ts +1 -1
- package/types/components/KfbView/useTailor.d.ts +4 -4
- package/types/components/ai/list.vue.d.ts +13 -1
- package/types/components/icon/mark/measure.vue.d.ts +2 -0
- package/types/instances.d.ts +24 -2
- package/web-types.json +162 -0
- package/dist/components/annotateBSSh0B_7.js +0 -1
- package/dist/components/dotD5koTegE.js +0 -115
- package/dist/components/dotDKdIht2m.js +0 -1
- package/dist/components/indexDiimdCX-.js +0 -4
- package/dist/components/indexmnZKfggK.js +0 -3142
- package/dist/components/useCommonQ8kVZUfg.js +0 -1
- package/dist/components/useCommonSGwHyBmU.js +0 -22
- package/dist/components/zoomBTmGL5gY.js +0 -1
- package/dist/components/zoomBcZDj6BA.js +0 -63
|
@@ -115,6 +115,7 @@ declare const __VLS_component: import("vue").DefineComponent<KfbProps, {
|
|
|
115
115
|
moveToLabel: (point: import("@/components/KfbView/index.ts").Point) => void;
|
|
116
116
|
getCenterPoint: (rect: Rect) => import("@/components/KfbView/index.ts").Point;
|
|
117
117
|
imageToViewerElementRectangle: (rect: Rect) => Rect;
|
|
118
|
+
imageToViewerElementCoordinates: (a: number, b: number) => import("@/components/KfbView/index.ts").Point;
|
|
118
119
|
} | undefined;
|
|
119
120
|
navigator?: {
|
|
120
121
|
element: HTMLElement;
|
|
@@ -128,6 +129,7 @@ declare const __VLS_component: import("vue").DefineComponent<KfbProps, {
|
|
|
128
129
|
width: number;
|
|
129
130
|
now?: boolean;
|
|
130
131
|
color?: string;
|
|
132
|
+
contents?: any[];
|
|
131
133
|
}, data?: unknown) => void;
|
|
132
134
|
};
|
|
133
135
|
}, KfbViewInterface | {
|
|
@@ -230,6 +232,7 @@ declare const __VLS_component: import("vue").DefineComponent<KfbProps, {
|
|
|
230
232
|
moveToLabel: (point: import("@/components/KfbView/index.ts").Point) => void;
|
|
231
233
|
getCenterPoint: (rect: Rect) => import("@/components/KfbView/index.ts").Point;
|
|
232
234
|
imageToViewerElementRectangle: (rect: Rect) => Rect;
|
|
235
|
+
imageToViewerElementCoordinates: (a: number, b: number) => import("@/components/KfbView/index.ts").Point;
|
|
233
236
|
} | undefined;
|
|
234
237
|
navigator?: {
|
|
235
238
|
element: HTMLElement;
|
|
@@ -243,16 +246,98 @@ declare const __VLS_component: import("vue").DefineComponent<KfbProps, {
|
|
|
243
246
|
width: number;
|
|
244
247
|
now?: boolean;
|
|
245
248
|
color?: string;
|
|
249
|
+
contents?: any[];
|
|
246
250
|
}, data?: unknown) => void;
|
|
247
251
|
};
|
|
248
252
|
}>;
|
|
249
253
|
degrees: Ref<number, number>;
|
|
250
254
|
zoom: Ref<number, number>;
|
|
255
|
+
localLabelList: Ref<{
|
|
256
|
+
id?: number | undefined;
|
|
257
|
+
parent_id?: number | undefined;
|
|
258
|
+
lineWidth?: number | undefined;
|
|
259
|
+
strokeStyle?: string | undefined;
|
|
260
|
+
fillStyle?: string | undefined;
|
|
261
|
+
fontSize?: number | undefined;
|
|
262
|
+
description?: string | undefined;
|
|
263
|
+
text?: string | undefined;
|
|
264
|
+
angle?: number | undefined;
|
|
265
|
+
measure?: boolean | undefined;
|
|
266
|
+
points?: {
|
|
267
|
+
x: number;
|
|
268
|
+
y: number;
|
|
269
|
+
minus?: ((point: import("@/components/KfbView/index.ts").Point) => import("@/components/KfbView/index.ts").Point) | undefined;
|
|
270
|
+
clone?: (() => import("@/components/KfbView/index.ts").Point) | undefined;
|
|
271
|
+
}[] | undefined;
|
|
272
|
+
tool?: string | undefined;
|
|
273
|
+
subType?: string | undefined;
|
|
274
|
+
src?: string | undefined;
|
|
275
|
+
scale?: number | undefined;
|
|
276
|
+
region?: {
|
|
277
|
+
x: number;
|
|
278
|
+
y: number;
|
|
279
|
+
width: number;
|
|
280
|
+
height: number;
|
|
281
|
+
} | undefined;
|
|
282
|
+
move?: boolean | undefined;
|
|
283
|
+
resize?: boolean | undefined;
|
|
284
|
+
isROI?: boolean | undefined;
|
|
285
|
+
isClose?: boolean | undefined;
|
|
286
|
+
select?: boolean | undefined;
|
|
287
|
+
show?: boolean | undefined;
|
|
288
|
+
isAi?: boolean | undefined;
|
|
289
|
+
custom?: boolean | undefined;
|
|
290
|
+
cls?: string | undefined;
|
|
291
|
+
score?: number | undefined;
|
|
292
|
+
imageUrl?: string | undefined;
|
|
293
|
+
__other__: any;
|
|
294
|
+
__data__: any;
|
|
295
|
+
}[], Label[] | {
|
|
296
|
+
id?: number | undefined;
|
|
297
|
+
parent_id?: number | undefined;
|
|
298
|
+
lineWidth?: number | undefined;
|
|
299
|
+
strokeStyle?: string | undefined;
|
|
300
|
+
fillStyle?: string | undefined;
|
|
301
|
+
fontSize?: number | undefined;
|
|
302
|
+
description?: string | undefined;
|
|
303
|
+
text?: string | undefined;
|
|
304
|
+
angle?: number | undefined;
|
|
305
|
+
measure?: boolean | undefined;
|
|
306
|
+
points?: {
|
|
307
|
+
x: number;
|
|
308
|
+
y: number;
|
|
309
|
+
minus?: ((point: import("@/components/KfbView/index.ts").Point) => import("@/components/KfbView/index.ts").Point) | undefined;
|
|
310
|
+
clone?: (() => import("@/components/KfbView/index.ts").Point) | undefined;
|
|
311
|
+
}[] | undefined;
|
|
312
|
+
tool?: string | undefined;
|
|
313
|
+
subType?: string | undefined;
|
|
314
|
+
src?: string | undefined;
|
|
315
|
+
scale?: number | undefined;
|
|
316
|
+
region?: {
|
|
317
|
+
x: number;
|
|
318
|
+
y: number;
|
|
319
|
+
width: number;
|
|
320
|
+
height: number;
|
|
321
|
+
} | undefined;
|
|
322
|
+
move?: boolean | undefined;
|
|
323
|
+
resize?: boolean | undefined;
|
|
324
|
+
isROI?: boolean | undefined;
|
|
325
|
+
isClose?: boolean | undefined;
|
|
326
|
+
select?: boolean | undefined;
|
|
327
|
+
show?: boolean | undefined;
|
|
328
|
+
isAi?: boolean | undefined;
|
|
329
|
+
custom?: boolean | undefined;
|
|
330
|
+
cls?: string | undefined;
|
|
331
|
+
score?: number | undefined;
|
|
332
|
+
imageUrl?: string | undefined;
|
|
333
|
+
__other__: any;
|
|
334
|
+
__data__: any;
|
|
335
|
+
}[]>;
|
|
251
336
|
forceRedraw: (process?: import("@/components/KfbView/index.ts").Process) => void;
|
|
252
337
|
toggleFlip: typeof toggleFlip;
|
|
253
338
|
startDraw: typeof startDraw;
|
|
254
339
|
endDraw: typeof endDraw;
|
|
255
|
-
shotScreen: (
|
|
340
|
+
shotScreen: (name: string, kfbViewRefs: Ref<any[]>) => void;
|
|
256
341
|
info: typeof info;
|
|
257
342
|
scopeChange: typeof scopeChange;
|
|
258
343
|
updateGrid: typeof updateGrid;
|
|
@@ -265,7 +350,7 @@ declare const __VLS_component: import("vue").DefineComponent<KfbProps, {
|
|
|
265
350
|
zoomTo: typeof zoomTo;
|
|
266
351
|
jumpToLabel: (label: Label, zoom?: number) => void;
|
|
267
352
|
jumpToPosition: typeof jumpToPosition;
|
|
268
|
-
reloadLabelList: () => void;
|
|
353
|
+
reloadLabelList: (list?: Label[]) => void;
|
|
269
354
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
270
355
|
tool: (action: string, value?: any) => any;
|
|
271
356
|
}, string, import("vue").PublicProps, Readonly<KfbProps> & Readonly<{
|
|
@@ -166,7 +166,7 @@ export declare function useLabel(props: KfbProps, emit: Emits, kfbView: Ref<KfbV
|
|
|
166
166
|
}[]>;
|
|
167
167
|
initLabel: () => void;
|
|
168
168
|
jumpToLabel: (label: Label, zoom?: number) => void;
|
|
169
|
-
reloadLabelList: () => void;
|
|
169
|
+
reloadLabelList: (list?: Label[]) => void;
|
|
170
170
|
eventHandel: (type: string) => (label?: Label) => Promise<void> | undefined;
|
|
171
171
|
addHandle: (label?: Label) => Promise<void>;
|
|
172
172
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { KfbViewInterface } from "@/components/KfbView/index.ts";
|
|
2
|
-
import
|
|
1
|
+
import { FileInterface, KfbViewInterface } from "@/components/KfbView/index.ts";
|
|
2
|
+
import { Ref } from "vue";
|
|
3
3
|
import { Emits } from "@/instances.ts";
|
|
4
|
-
export declare function useTailor(emit: Emits, kfbView: Ref<KfbViewInterface>): {
|
|
4
|
+
export declare function useTailor(emit: Emits, t: Function, kfbView: Ref<KfbViewInterface>, zoom: Ref<number>, kfbInfo: Ref<FileInterface>): {
|
|
5
5
|
tailorEvent: () => void;
|
|
6
|
-
shotScreen: (
|
|
6
|
+
shotScreen: (name: string, kfbViewRefs: Ref<any[]>) => void;
|
|
7
7
|
};
|
|
@@ -4,9 +4,21 @@ type __VLS_Props = {
|
|
|
4
4
|
data: Label[];
|
|
5
5
|
analysis?: Analysis;
|
|
6
6
|
};
|
|
7
|
-
declare
|
|
7
|
+
declare var __VLS_36: {
|
|
8
|
+
analysis: Analysis | undefined;
|
|
9
|
+
};
|
|
10
|
+
type __VLS_Slots = {} & {
|
|
11
|
+
default?: (props: typeof __VLS_36) => any;
|
|
12
|
+
};
|
|
13
|
+
declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {
|
|
8
14
|
labelList: import("vue").ComputedRef<Label[]>;
|
|
9
15
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
10
16
|
data: Label[];
|
|
11
17
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
18
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
12
19
|
export default _default;
|
|
20
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
21
|
+
new (): {
|
|
22
|
+
$slots: S;
|
|
23
|
+
};
|
|
24
|
+
};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
export default _default;
|
package/types/instances.d.ts
CHANGED
|
@@ -2,7 +2,12 @@ import type { VNode } from "vue";
|
|
|
2
2
|
import { FileInterface, KfbProps, Label, Menu, Microscope, Process, TileParams, Watermark } from "@/components/KfbView/index.ts";
|
|
3
3
|
export type ToolboxMenu = {
|
|
4
4
|
name: string;
|
|
5
|
-
props
|
|
5
|
+
props: {
|
|
6
|
+
name?: string;
|
|
7
|
+
text?: string;
|
|
8
|
+
component?: VNode | string | null | undefined;
|
|
9
|
+
process?: Process;
|
|
10
|
+
};
|
|
6
11
|
slots?: Record<string, (...args: any[]) => VNode | string | null | undefined>;
|
|
7
12
|
show?: boolean;
|
|
8
13
|
};
|
|
@@ -44,7 +49,7 @@ export interface Kfb {
|
|
|
44
49
|
fileHandle?: (slide: DigitalSlide) => Promise<FileInterface>;
|
|
45
50
|
labelHandle?: (type: string, slide: DigitalSlide, data?: any) => Promise<Label[]>;
|
|
46
51
|
navigatorHandle?: (type: string, slide: DigitalSlide, data?: any) => Promise<Label[]>;
|
|
47
|
-
tileHandle?: (params: TileParams) => string;
|
|
52
|
+
tileHandle?: (params: TileParams, slide: DigitalSlide) => string;
|
|
48
53
|
pathologyHandle: (slide: DigitalSlide) => Promise<boolean>;
|
|
49
54
|
uploadHandle?: (slide: DigitalSlide, label: Label, blob: Blob) => Promise<string>;
|
|
50
55
|
options?: Record<string, any>;
|
|
@@ -74,7 +79,24 @@ export interface Props {
|
|
|
74
79
|
showKeyboard?: boolean;
|
|
75
80
|
showMenuText?: boolean;
|
|
76
81
|
showWatermark?: boolean;
|
|
82
|
+
showZrender?: boolean;
|
|
83
|
+
editPathology?: boolean;
|
|
84
|
+
pathologyNumber?: string;
|
|
77
85
|
}
|
|
78
86
|
export interface Emits {
|
|
79
87
|
(e: 'tool', action: string, value?: any): void;
|
|
80
88
|
}
|
|
89
|
+
export interface MenuConfigOtherSetting {
|
|
90
|
+
screenshotLocally: boolean;
|
|
91
|
+
screenshotFormat: string;
|
|
92
|
+
screenshotWatermark: {
|
|
93
|
+
time: boolean;
|
|
94
|
+
mac: boolean;
|
|
95
|
+
scale: boolean;
|
|
96
|
+
ratio: boolean;
|
|
97
|
+
};
|
|
98
|
+
screenshotSize: {
|
|
99
|
+
w: number;
|
|
100
|
+
h: number;
|
|
101
|
+
};
|
|
102
|
+
}
|
package/web-types.json
ADDED
|
@@ -0,0 +1,162 @@
|
|
|
1
|
+
{
|
|
2
|
+
"framework": "vue",
|
|
3
|
+
"name": "hzzt-kfb-slide",
|
|
4
|
+
"version": "1.0.2",
|
|
5
|
+
"contributions": {
|
|
6
|
+
"html": {
|
|
7
|
+
"description-markup": "markdown",
|
|
8
|
+
"types-syntax": "typescript",
|
|
9
|
+
"tags": [
|
|
10
|
+
{
|
|
11
|
+
"name": "HzztKfbSlide",
|
|
12
|
+
"description": "",
|
|
13
|
+
"attributes": [
|
|
14
|
+
{
|
|
15
|
+
"name": "menus",
|
|
16
|
+
"required": true,
|
|
17
|
+
"value": {
|
|
18
|
+
"kind": "expression",
|
|
19
|
+
"type": "Array"
|
|
20
|
+
},
|
|
21
|
+
"default": "() => []"
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
"name": "kfb",
|
|
25
|
+
"required": true,
|
|
26
|
+
"value": {
|
|
27
|
+
"kind": "expression",
|
|
28
|
+
"type": "Kfb"
|
|
29
|
+
}
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
"name": "slides",
|
|
33
|
+
"required": true,
|
|
34
|
+
"value": {
|
|
35
|
+
"kind": "expression",
|
|
36
|
+
"type": "Array"
|
|
37
|
+
},
|
|
38
|
+
"default": "() => []"
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
"name": "ai",
|
|
42
|
+
"required": true,
|
|
43
|
+
"value": {
|
|
44
|
+
"kind": "expression",
|
|
45
|
+
"type": "{\n enable: boolean;\n default?: boolean;\n handle: (slide: DigitalSlide, analysis?: Analysis) => Promise<Label[]>;\n}"
|
|
46
|
+
}
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
"name": "teleport",
|
|
50
|
+
"required": false,
|
|
51
|
+
"value": {
|
|
52
|
+
"kind": "expression",
|
|
53
|
+
"type": "boolean"
|
|
54
|
+
},
|
|
55
|
+
"default": "false"
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
"name": "watermark",
|
|
59
|
+
"required": false,
|
|
60
|
+
"value": {
|
|
61
|
+
"kind": "expression",
|
|
62
|
+
"type": "Watermark"
|
|
63
|
+
}
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
"name": "process",
|
|
67
|
+
"required": false,
|
|
68
|
+
"value": {
|
|
69
|
+
"kind": "expression",
|
|
70
|
+
"type": "Process"
|
|
71
|
+
}
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
"name": "microscope",
|
|
75
|
+
"required": false,
|
|
76
|
+
"value": {
|
|
77
|
+
"kind": "expression",
|
|
78
|
+
"type": "Microscope"
|
|
79
|
+
}
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
"name": "showList",
|
|
83
|
+
"required": false,
|
|
84
|
+
"value": {
|
|
85
|
+
"kind": "expression",
|
|
86
|
+
"type": "boolean"
|
|
87
|
+
},
|
|
88
|
+
"default": "true"
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
"name": "showKfbLabel",
|
|
92
|
+
"required": false,
|
|
93
|
+
"value": {
|
|
94
|
+
"kind": "expression",
|
|
95
|
+
"type": "boolean"
|
|
96
|
+
},
|
|
97
|
+
"default": "true"
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
"name": "showKeyboard",
|
|
101
|
+
"required": false,
|
|
102
|
+
"value": {
|
|
103
|
+
"kind": "expression",
|
|
104
|
+
"type": "boolean"
|
|
105
|
+
},
|
|
106
|
+
"default": "false"
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
"name": "showMenuText",
|
|
110
|
+
"required": false,
|
|
111
|
+
"value": {
|
|
112
|
+
"kind": "expression",
|
|
113
|
+
"type": "boolean"
|
|
114
|
+
},
|
|
115
|
+
"default": "true"
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
"name": "showWatermark",
|
|
119
|
+
"required": false,
|
|
120
|
+
"value": {
|
|
121
|
+
"kind": "expression",
|
|
122
|
+
"type": "boolean"
|
|
123
|
+
},
|
|
124
|
+
"default": "false"
|
|
125
|
+
}
|
|
126
|
+
],
|
|
127
|
+
"events": [
|
|
128
|
+
{
|
|
129
|
+
"name": "tool"
|
|
130
|
+
}
|
|
131
|
+
],
|
|
132
|
+
"slots": [
|
|
133
|
+
{
|
|
134
|
+
"name": "left"
|
|
135
|
+
},
|
|
136
|
+
{
|
|
137
|
+
"name": "right"
|
|
138
|
+
},
|
|
139
|
+
{
|
|
140
|
+
"name": "list"
|
|
141
|
+
},
|
|
142
|
+
{
|
|
143
|
+
"name": "listFooter"
|
|
144
|
+
},
|
|
145
|
+
{
|
|
146
|
+
"name": "kfb"
|
|
147
|
+
},
|
|
148
|
+
{
|
|
149
|
+
"name": "analysis"
|
|
150
|
+
},
|
|
151
|
+
{
|
|
152
|
+
"name": "default"
|
|
153
|
+
}
|
|
154
|
+
],
|
|
155
|
+
"source": {
|
|
156
|
+
"symbol": "HzztKfbSlide"
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
]
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";var b=Object.defineProperty;var c=Object.getOwnPropertySymbols;var h=Object.prototype.hasOwnProperty,V=Object.prototype.propertyIsEnumerable;var u=(n,t,o)=>t in n?b(n,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):n[t]=o,d=(n,t)=>{for(var o in t||(t={}))h.call(t,o)&&u(n,o,t[o]);if(c)for(var o of c(t))V.call(t,o)&&u(n,o,t[o]);return n};Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),f=require("./useCommonQ8kVZUfg.js"),l=require("element-plus"),y=require("./annotateBXULk5a3.js"),p=require("./indexDiimdCX-.js"),E=["onClick"],N=e.defineComponent({name:"ToolAnnotate",__name:"annotate",props:e.mergeDefaults({size:{},text:{},name:{},component:{},isPrevent:{type:Boolean},callback:{type:Function},options:{}},f.defaultProps),emits:["tool"],setup(n,{emit:t}){const o=n,m=t,{t:r,textClass:g}=f.useCommon(),v={line:"Line",arrow:"Arrow",bilateral:"Bilateral",rectangle:"Rectangle",ellipse:"Ellipse",polygon:"Polygon",star:"Star",flag:"Flag",dot:"Dot",font:"Font",voice:"Voice"},i=e.ref(!1);function x(a){i.value=!1,m("tool","annotate",d({tool:a.substring(0,1).toLocaleUpperCase()+a.substring(1),once:!0},o.options||{}))}function _(){i.value=!i.value}return(a,w)=>(e.openBlock(),e.createBlock(e.unref(l.ElPopover),{visible:i.value,"popper-class":"el-popover-padding-0",placement:"bottom",width:"220px",trigger:"click",teleported:!1},{reference:e.withCtx(()=>[e.createElementVNode("div",{class:"hzzt-kfb-toolbox__icon",onClick:_},[e.createVNode(e.unref(l.ElIcon),{size:a.size},{default:e.withCtx(()=>[e.createVNode(y.default)]),_:1},8,["size"]),e.createElementVNode("div",{class:e.normalizeClass(e.unref(g))},e.toDisplayString(e.unref(r)(a.text||"标注")),3)])]),default:e.withCtx(()=>[e.createVNode(e.unref(l.ElCard),{shadow:"never",header:e.unref(r)("标注工具"),"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(r)("按ESC可退出标注模式")),1)]),_:1})]),e.createElementVNode("div",null,[e.createVNode(e.unref(l.ElText),{type:"danger"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(r)("点击标注按Delete键可删除标注")),1)]),_:1})]),e.createVNode(e.unref(l.ElRow),null,{default:e.withCtx(()=>[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(v,(s,C)=>e.createVNode(e.unref(l.ElCol),{key:C,class:"flex justify-content-center align-items-center",span:8},{default:e.withCtx(()=>[e.createElementVNode("div",{class:"hzzt-kfb-toolbox-annotate-icon",onClick:z=>x(s)},[e.createVNode(p._sfc_main,{size:"32",name:`mark${s}`},null,8,["name"])],8,E)]),_:2},1024)),64))]),_:1})]),_:1},8,["header"])]),_:1},8,["visible"]))}}),k=p._export_sfc(N,[["__scopeId","data-v-72aefbbd"]]);exports.default=k;
|
|
@@ -1,115 +0,0 @@
|
|
|
1
|
-
import { defineComponent as y, mergeDefaults as z, ref as m, inject as E, watch as F, createBlock as k, openBlock as i, unref as a, withCtx as s, createVNode as u, createElementVNode as c, toDisplayString as f, createElementBlock as b, Fragment as w, renderList as B, normalizeStyle as D, createCommentVNode as S, normalizeClass as V } from "vue";
|
|
2
|
-
import { u as A, d as L } from "./useCommonSGwHyBmU.js";
|
|
3
|
-
import N from "./dotDwG_BTC2.js";
|
|
4
|
-
import P from "./checkapiu6iX2.js";
|
|
5
|
-
import { ElPopover as j, ElCard as I, ElIcon as h } from "element-plus";
|
|
6
|
-
import { _ as T } from "./indexmnZKfggK.js";
|
|
7
|
-
const $ = { class: "margin-b-1" }, q = { class: "flex align-items-center" }, G = ["onClick"], H = /* @__PURE__ */ y({
|
|
8
|
-
name: "ToolDot",
|
|
9
|
-
__name: "dot",
|
|
10
|
-
props: /* @__PURE__ */ z({
|
|
11
|
-
size: {},
|
|
12
|
-
text: {},
|
|
13
|
-
name: {},
|
|
14
|
-
component: {},
|
|
15
|
-
isPrevent: { type: Boolean },
|
|
16
|
-
callback: { type: Function },
|
|
17
|
-
options: {}
|
|
18
|
-
}, L),
|
|
19
|
-
emits: ["tool"],
|
|
20
|
-
setup(J, { emit: _ }) {
|
|
21
|
-
const p = _, { t: v, textClass: C } = A(), n = m(!1), r = m([
|
|
22
|
-
{ label: "#004BFF", value: 0, checked: !1 },
|
|
23
|
-
{ label: "#FF4B40", value: 0, checked: !1 },
|
|
24
|
-
{ label: "#FFAA00", value: 0, checked: !1 },
|
|
25
|
-
{ label: "#51C964", value: 0, checked: !1 },
|
|
26
|
-
{ label: "#00BEFF", value: 0, checked: !1 },
|
|
27
|
-
{ label: "#8C58CE", value: 0, checked: !1 },
|
|
28
|
-
{ label: "#F261A7", value: 0, checked: !1 }
|
|
29
|
-
]), d = E("kfbViewRef");
|
|
30
|
-
F(() => {
|
|
31
|
-
var e, l;
|
|
32
|
-
return (l = (e = d == null ? void 0 : d.value) == null ? void 0 : e.kfbView) == null ? void 0 : l.labelList;
|
|
33
|
-
}, (e) => {
|
|
34
|
-
r.value.forEach((l) => {
|
|
35
|
-
var o;
|
|
36
|
-
l.value = (o = (e || []).filter((t) => (t == null ? void 0 : t.custom) && (t == null ? void 0 : t.strokeStyle) === l.label && (t == null ? void 0 : t.tool) === "Dot")) == null ? void 0 : o.length;
|
|
37
|
-
});
|
|
38
|
-
});
|
|
39
|
-
function g(e) {
|
|
40
|
-
r.value.forEach((l) => {
|
|
41
|
-
l.checked = !1;
|
|
42
|
-
}), e.checked = !0, p("tool", "annotate", {
|
|
43
|
-
strokeStyle: e.label,
|
|
44
|
-
tool: "Dot",
|
|
45
|
-
once: !1,
|
|
46
|
-
custom: !0,
|
|
47
|
-
subType: "count"
|
|
48
|
-
});
|
|
49
|
-
}
|
|
50
|
-
function x() {
|
|
51
|
-
n.value = !n.value, n.value || r.value.forEach((e) => {
|
|
52
|
-
e.checked = !1;
|
|
53
|
-
}), p("tool", "endDraw");
|
|
54
|
-
}
|
|
55
|
-
return (e, l) => (i(), k(a(j), {
|
|
56
|
-
visible: n.value,
|
|
57
|
-
"popper-class": "el-popover-padding-0",
|
|
58
|
-
placement: "bottom",
|
|
59
|
-
width: "300px",
|
|
60
|
-
trigger: "click",
|
|
61
|
-
teleported: !1
|
|
62
|
-
}, {
|
|
63
|
-
reference: s(() => [
|
|
64
|
-
c("div", {
|
|
65
|
-
class: "hzzt-kfb-toolbox__icon",
|
|
66
|
-
onClick: l[0] || (l[0] = (o) => x())
|
|
67
|
-
}, [
|
|
68
|
-
u(a(h), { size: e.size }, {
|
|
69
|
-
default: s(() => [
|
|
70
|
-
u(N)
|
|
71
|
-
]),
|
|
72
|
-
_: 1
|
|
73
|
-
}, 8, ["size"]),
|
|
74
|
-
c("div", {
|
|
75
|
-
class: V(a(C))
|
|
76
|
-
}, f(a(v)(e.text || "打点")), 3)
|
|
77
|
-
])
|
|
78
|
-
]),
|
|
79
|
-
default: s(() => [
|
|
80
|
-
u(a(I), { shadow: "never" }, {
|
|
81
|
-
default: s(() => [
|
|
82
|
-
c("div", null, [
|
|
83
|
-
c("p", $, f(a(v)("按下ESC键结束打点操作")), 1),
|
|
84
|
-
c("div", q, [
|
|
85
|
-
(i(!0), b(w, null, B(r.value, (o) => (i(), b("div", {
|
|
86
|
-
key: o.label,
|
|
87
|
-
class: "flex column align-items-center"
|
|
88
|
-
}, [
|
|
89
|
-
c("div", {
|
|
90
|
-
style: D({ "background-color": o.label }),
|
|
91
|
-
class: "hzzt-kfb-toolbox-dot__box flex justify-content-center align-items-center",
|
|
92
|
-
onClick: (t) => g(o)
|
|
93
|
-
}, [
|
|
94
|
-
u(a(h), { size: "16" }, {
|
|
95
|
-
default: s(() => [
|
|
96
|
-
o.checked ? (i(), k(P, { key: 0 })) : S("", !0)
|
|
97
|
-
]),
|
|
98
|
-
_: 2
|
|
99
|
-
}, 1024)
|
|
100
|
-
], 12, G),
|
|
101
|
-
c("p", null, f(o.value ? o.value : " "), 1)
|
|
102
|
-
]))), 128))
|
|
103
|
-
])
|
|
104
|
-
])
|
|
105
|
-
]),
|
|
106
|
-
_: 1
|
|
107
|
-
})
|
|
108
|
-
]),
|
|
109
|
-
_: 1
|
|
110
|
-
}, 8, ["visible"]));
|
|
111
|
-
}
|
|
112
|
-
}), W = /* @__PURE__ */ T(H, [["__scopeId", "data-v-34de7854"]]);
|
|
113
|
-
export {
|
|
114
|
-
W as default
|
|
115
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),d=require("./useCommonQ8kVZUfg.js"),m=require("./dotDASJOh6f.js"),h=require("./checkCH14v3q4.js"),r=require("element-plus"),b=require("./indexDiimdCX-.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},options:{}},d.defaultProps),emits:["tool"],setup(y,{emit:f}){const u=f,{t:i,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 p(l){c.value.forEach(t=>{t.checked=!1}),l.checked=!0,u("tool","annotate",{strokeStyle:l.label,tool:"Dot",once:!1,custom:!0,subType:"count"})}function k(){n.value=!n.value,n.value||c.value.forEach(l=>{l.checked=!1}),u("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",teleported:!1},{reference:e.withCtx(()=>[e.createElementVNode("div",{class:"hzzt-kfb-toolbox__icon",onClick:t[0]||(t[0]=o=>k())},[e.createVNode(e.unref(r.ElIcon),{size:l.size},{default:e.withCtx(()=>[e.createVNode(m.default)]),_:1},8,["size"]),e.createElementVNode("div",{class:e.normalizeClass(e.unref(v))},e.toDisplayString(e.unref(i)(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(i)("按下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=>p(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-34de7854"]]);exports.default=x;
|