hzzt-kfb-slide 0.1.7 → 0.1.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/{annotateCIo__OqP.js → annotateCsjd-8z3.js} +1 -1
- package/dist/components/{annotate49sBZsTN.js → annotateCuw9UNn2.js} +1 -1
- package/dist/components/{annotateBl0wovIH.js → annotateCwGjQKaP.js} +3 -3
- package/dist/components/{annotateCjWLFBqD.js → annotateDs5i2eNO.js} +1 -1
- package/dist/components/{arrowCl9QJSJj.js → arrowCBL9AzKr.js} +1 -1
- package/dist/components/{arrowCircleCtoruF4U.js → arrowCircleDwqggHev.js} +1 -1
- package/dist/components/{arrowCircle7NmwbGoq.js → arrowCirclelm3OXqGD.js} +1 -1
- package/dist/components/{arrowDownBXGzGuuT.js → arrowDownBAZ_RPEu.js} +1 -1
- package/dist/components/{arrowDownDB2yvaaD.js → arrowDownCdaul-Hd.js} +1 -1
- package/dist/components/{arrowLeftBXNnT5m8.js → arrowLeft8I3cz9ix.js} +1 -1
- package/dist/components/{arrowLeftDvMUFF8m.js → arrowLeftCY6O_JXa.js} +1 -1
- package/dist/components/{arrowCwovE-_Y.js → arrowM7YlD6Fp.js} +1 -1
- package/dist/components/{arrowRightB67m-kkE.js → arrowRightDNETqHjH.js} +1 -1
- package/dist/components/{arrowRightCk6ld1no.js → arrowRightN9DgBweY.js} +1 -1
- package/dist/components/{arrowUpNinTqfQn.js → arrowUp15GBTWCC.js} +1 -1
- package/dist/components/{arrowUpB7Uvr3R3.js → arrowUpCms_i80O.js} +1 -1
- package/dist/components/{bilateralDOwwtLaC.js → bilateralCgiGCORq.js} +1 -1
- package/dist/components/{bilateralCk-KBqyO.js → bilateralDRIzcahZ.js} +1 -1
- package/dist/components/{channelDLxoZSck.js → channel0c8ZxreJ.js} +1 -1
- package/dist/components/{channelC_7FoqpS.js → channel8wdsKWt0.js} +1 -1
- package/dist/components/{checkBf75347T.js → checkCvkYx5Zn.js} +1 -1
- package/dist/components/{checkDHACKvpf.js → checkDksrM1Ib.js} +1 -1
- package/dist/components/{configBFhzQzSB.js → configBQB-oghg.js} +1 -1
- package/dist/components/{configEppCf8vn.js → configD53ypjPd.js} +1 -1
- package/dist/components/{customBiBp4G-a.js → customAwznbb6Z.js} +1 -1
- package/dist/components/{customDOKaVCSP.js → customdA1G1T1y.js} +1 -1
- package/dist/components/{deleteBsNpbvks.js → deleteCdJCCQ6y.js} +1 -1
- package/dist/components/{deleteg7i46qXS.js → deleteChVtJN4n.js} +1 -1
- package/dist/components/{dotDCc4P8VK.js → dot16c1xNPD.js} +1 -1
- package/dist/components/{dotDHMTeCWy.js → dotBQNxsw3c.js} +1 -1
- package/dist/components/{dotBdYkwPjX.js → dotBjXKweg0.js} +1 -1
- package/dist/components/{dotBo1YUnne.js → dotC0CKM_hZ.js} +4 -4
- package/dist/components/{dotDl1co4-R.js → dotD0Gx7CRc.js} +1 -1
- package/dist/components/{dotxqpjYIOg.js → dotDJxvUSso.js} +1 -1
- package/dist/components/{downloadByFGTBBN.js → downloadBByB8lwE.js} +1 -1
- package/dist/components/{downloadBWg9kSWm.js → downloadNznR12xP.js} +3 -3
- package/dist/components/{downloadBTOl5wLU.js → downloadViyLOOrK.js} +1 -1
- package/dist/components/{downloadRDk36nBB.js → downloadZ2QzL5rO.js} +1 -1
- package/dist/components/{ellipseCJcXMiqZ.js → ellipseC2z02yg-.js} +1 -1
- package/dist/components/{ellipseDlbHI1bF.js → ellipseCBUG6Mh8.js} +1 -1
- package/dist/components/{expandLeftDUZANt4r.js → expandLeftDB8r1unh.js} +1 -1
- package/dist/components/{expandLeftqGNGPcnT.js → expandLeftDlJCG1r9.js} +1 -1
- package/dist/components/{expandRightZuTT2JzX.js → expandRightBhVI7kIo.js} +1 -1
- package/dist/components/{expandRightBgp3TM8W.js → expandRightrm3vKoq_.js} +1 -1
- package/dist/components/{flagBXkHSgl4.js → flagDLIm6S3D.js} +1 -1
- package/dist/components/{flagDo8DOzCK.js → flagDc9VAAUM.js} +1 -1
- package/dist/components/{flipC6DUnkBc.js → flipC95Pz5UL.js} +1 -1
- package/dist/components/{flipBzljeFD3.js → flipDFWc7R0p.js} +1 -1
- package/dist/components/{fontD6ZBPuPA.js → fontCZ3hGZBF.js} +1 -1
- package/dist/components/{fontCQpNKMlS.js → fontD27n3hS-.js} +1 -1
- package/dist/components/{fullscreenBFNwWrlX.js → fullscreenBrDmE4_A.js} +1 -1
- package/dist/components/{fullscreenB2eP643y.js → fullscreenCCAwhExm.js} +1 -1
- package/dist/components/{fullscreenBV4ER73M.js → fullscreenD26Fq3AJ.js} +1 -1
- package/dist/components/{fullscreenC0tDsxrL.js → fullscreenDF7FK-y9.js} +2 -2
- package/dist/components/indexBD-4Tc4b.js +4 -0
- package/dist/components/{indexCE3et5Ds.js → indexDRXmzSTr.js} +538 -535
- package/dist/components/{infoDf7UtGa7.js → infoD4ZTbsGp.js} +1 -1
- package/dist/components/{infoN-pmNAmQ.js → infoD_KSpt0x.js} +1 -1
- package/dist/components/{levelFM1mUgOC.js → levelBpo8OsbV.js} +1 -1
- package/dist/components/{levelXnWVI1Sf.js → levelDtDdq-Pg.js} +1 -1
- package/dist/components/{lineC11ySKvp.js → line2KgRRfGu.js} +1 -1
- package/dist/components/{lineCV1QeIV-.js → lineNu21t5gy.js} +1 -1
- package/dist/components/{microscopeDPBvnBTT.js → microscopeBLaPm6pb.js} +1 -1
- package/dist/components/{microscopeC7AAF-4i.js → microscopeCj4MZVX6.js} +1 -1
- package/dist/components/{microscopeDREMD0aG.js → microscopeD8c1neyn.js} +3 -3
- package/dist/components/{microscopeDy5_7IPr.js → microscopemDpbiPHg.js} +1 -1
- package/dist/components/{moveC3nOX-BZ.js → moveBONH7e1-.js} +1 -1
- package/dist/components/{moveBbGj77c6.js → moveCtlzWScv.js} +1 -1
- package/dist/components/{moveCxcLNPZF.js → moveDMF_aznf.js} +3 -3
- package/dist/components/{moveBBqduqb_.js → moveWhJ3O6uI.js} +1 -1
- package/dist/components/{nextCW5Nr0zb.js → nextBbF_v1SK.js} +1 -1
- package/dist/components/{nextBZI_aP7l.js → nextDQR6-RfD.js} +1 -1
- package/dist/components/{polygonDfByxGAP.js → polygonB1s-gscM.js} +1 -1
- package/dist/components/{polygonhwElczJV.js → polygonDLNm7Aiy.js} +1 -1
- package/dist/components/{prevBujNxx9W.js → prevBi3Jjzby.js} +1 -1
- package/dist/components/{prevD-Jb2BK5.js → prevDtGjAkiY.js} +1 -1
- package/dist/components/{processW2UX8zWN.js → processB_71-rt3.js} +1 -1
- package/dist/components/{processITdbah9T.js → processBaejbNIO.js} +1 -1
- package/dist/components/{processBKw5BJun.js → processOErCYmsz.js} +3 -3
- package/dist/components/{processDIYQWbpe.js → processZz2jg8Ii.js} +1 -1
- package/dist/components/{rectangleCD3zrJ4b.js → rectangleB_weH4OT.js} +1 -1
- package/dist/components/{rectangleDINuKV3e.js → rectangleCx7rw04r.js} +1 -1
- package/dist/components/{rotateCk4r5sz0.js → rotateC8INrLms.js} +1 -1
- package/dist/components/{rotateBK0g10v7.js → rotateCQ-njCPy.js} +4 -4
- package/dist/components/{rotateDW3tCSd4.js → rotateChAaWWwk.js} +1 -1
- package/dist/components/{rotateDaRh7p8x.js → rotateCn_yYR-9.js} +1 -1
- package/dist/components/{settingCygsrWwb.js → settingBuJ04L0g.js} +1 -1
- package/dist/components/{settingCy068wtb.js → settingDa4UFFpZ.js} +1 -1
- package/dist/components/{settingjrS0Yyzz.js → settingDc0THS-p.js} +1 -1
- package/dist/components/{settingBtYNTDMk.js → settingbBZdqUd4.js} +3 -3
- package/dist/components/{starDAzMV8hm.js → star4mf8YXXg.js} +1 -1
- package/dist/components/{starCRDtIUga.js → starCPNRqnqz.js} +1 -1
- package/dist/components/{tailorCW1DpWxU.js → tailorB7TqXg5T.js} +1 -1
- package/dist/components/{tailorCMHyqgqY.js → tailorfTcGg1n3.js} +1 -1
- package/dist/components/{useCommonDx4AkPn-.js → useCommonBcu2vBNt.js} +1 -1
- package/dist/components/{useCommonDwOO5Nl8.js → useCommonDV6XODnB.js} +1 -1
- package/dist/components/{voiceB3kLmI5d.js → voiceB8S4rKDI.js} +1 -1
- package/dist/components/{voiceClKUyNoj.js → voiceDU2Vni9x.js} +1 -1
- package/dist/components/{zoomCvUZgCsd.js → zoomBn1qhxqR.js} +1 -1
- package/dist/components/{zoomInNKDi_J_z.js → zoomInD_8Csh5g.js} +1 -1
- package/dist/components/{zoomInBPFfWRlG.js → zoomInDyv5nd6T.js} +1 -1
- package/dist/components/{zoomOutC5HvL9tr.js → zoomOutC0vB2rpg.js} +1 -1
- package/dist/components/{zoomOutBzM3kBTI.js → zoomOutDDZGVubB.js} +1 -1
- package/dist/components/{zoom1wzOC8Jb.js → zoomtmOdf1Vc.js} +1 -1
- package/dist/index.cjs.js +1 -1
- package/dist/index.es.js +1 -1
- package/package.json +2 -2
- package/types/components/KfbView/index.d.ts +3 -3
- package/types/components/KfbView/index.vue.d.ts +5 -5
- package/types/components/KfbView/useTailor.d.ts +1 -1
- package/dist/components/indexDMPBpE5E.js +0 -4
- package/web-types.json +0 -156
|
@@ -10,23 +10,23 @@ var Tt = (u, e, l) => e in u ? Xt(u, e, { enumerable: !0, configurable: !0, writ
|
|
|
10
10
|
tl.call(e, l) && Tt(u, l, e[l]);
|
|
11
11
|
return u;
|
|
12
12
|
}, we = (u, e) => Qt(u, Jt(e));
|
|
13
|
-
var $e = (u, e, l) => new Promise((t,
|
|
13
|
+
var $e = (u, e, l) => new Promise((t, w) => {
|
|
14
14
|
var v = (m) => {
|
|
15
15
|
try {
|
|
16
|
-
|
|
17
|
-
} catch (
|
|
18
|
-
|
|
16
|
+
i(l.next(m));
|
|
17
|
+
} catch (g) {
|
|
18
|
+
w(g);
|
|
19
19
|
}
|
|
20
20
|
}, r = (m) => {
|
|
21
21
|
try {
|
|
22
|
-
|
|
23
|
-
} catch (
|
|
24
|
-
|
|
22
|
+
i(l.throw(m));
|
|
23
|
+
} catch (g) {
|
|
24
|
+
w(g);
|
|
25
25
|
}
|
|
26
|
-
},
|
|
27
|
-
|
|
26
|
+
}, i = (m) => m.done ? t(m.value) : Promise.resolve(m.value).then(v, r);
|
|
27
|
+
i((l = l.apply(u, e)).next());
|
|
28
28
|
});
|
|
29
|
-
import { inject as Z, ref as T, markRaw as S, defineAsyncComponent as M, defineComponent as J, createBlock as H, openBlock as
|
|
29
|
+
import { inject as Z, ref as T, markRaw as S, defineAsyncComponent as M, defineComponent as J, createBlock as H, openBlock as _, unref as o, normalizeProps as ll, guardReactiveProps as ol, withCtx as L, resolveDynamicComponent as Ve, useModel as Be, computed as B, createElementBlock as x, createElementVNode as k, createVNode as C, toDisplayString as E, Fragment as oe, renderList as ae, isRef as pe, createTextVNode as K, watch as ee, h as al, renderSlot as fe, mergeProps as Oe, createCommentVNode as R, reactive as rt, onMounted as he, onBeforeUnmount as Ie, normalizeStyle as q, mergeDefaults as nl, withDirectives as xe, vShow as Ae, getCurrentInstance as sl, mergeModels as be, normalizeClass as ke, useCssVars as il, provide as de, Teleport as je, withModifiers as Fe } from "vue";
|
|
30
30
|
import { ElIcon as ze, ElRow as rl, ElCol as ul, ElSwitch as Ee, ElRadioGroup as ot, ElRadio as Te, ElDialog as Ge, ElForm as nt, ElFormItem as ie, ElInput as at, ElButton as _e, ElMessage as Lt, ElLoading as Et, ElSlider as cl, ElTag as Vt, ElCheckbox as We, ElTooltip as xt, ElPopover as dl, ElCheckboxGroup as vl, ElPagination as fl } from "element-plus";
|
|
31
31
|
import { KfbView as ve, OpenSeadragon as Le } from "kfb-view";
|
|
32
32
|
import ml from "v-lazy-image";
|
|
@@ -43,45 +43,45 @@ const pl = {
|
|
|
43
43
|
u.provide(It, e == null ? void 0 : e.global);
|
|
44
44
|
}
|
|
45
45
|
}, G = T({
|
|
46
|
-
annotate: S(M(() => import("./
|
|
47
|
-
arrowCircle: S(M(() => import("./
|
|
48
|
-
check: S(M(() => import("./
|
|
49
|
-
dot: S(M(() => import("./
|
|
50
|
-
flip: S(M(() => import("./
|
|
51
|
-
info: S(M(() => import("./
|
|
52
|
-
microscope: S(M(() => import("./
|
|
53
|
-
move: S(M(() => import("./
|
|
54
|
-
next: S(M(() => import("./
|
|
55
|
-
prev: S(M(() => import("./
|
|
56
|
-
process: S(M(() => import("./
|
|
57
|
-
rotate: S(M(() => import("./
|
|
58
|
-
fullscreen: S(M(() => import("./
|
|
59
|
-
setting: S(M(() => import("./
|
|
60
|
-
tailor: S(M(() => import("./
|
|
61
|
-
download: S(M(() => import("./
|
|
62
|
-
config: S(M(() => import("./
|
|
63
|
-
arrowDown: S(M(() => import("./
|
|
64
|
-
arrowUp: S(M(() => import("./
|
|
65
|
-
arrowLeft: S(M(() => import("./
|
|
66
|
-
arrowRight: S(M(() => import("./
|
|
67
|
-
zoomIn: S(M(() => import("./
|
|
68
|
-
zoomOut: S(M(() => import("./
|
|
69
|
-
level: S(M(() => import("./
|
|
70
|
-
channel: S(M(() => import("./
|
|
71
|
-
delete: S(M(() => import("./
|
|
72
|
-
expandLeft: S(M(() => import("./
|
|
73
|
-
expandRight: S(M(() => import("./
|
|
74
|
-
markLine: S(M(() => import("./
|
|
75
|
-
markArrow: S(M(() => import("./
|
|
76
|
-
markBilateral: S(M(() => import("./
|
|
77
|
-
markRectangle: S(M(() => import("./
|
|
78
|
-
markEllipse: S(M(() => import("./
|
|
79
|
-
markPolygon: S(M(() => import("./
|
|
80
|
-
markFlag: S(M(() => import("./
|
|
81
|
-
markStar: S(M(() => import("./
|
|
82
|
-
markDot: S(M(() => import("./
|
|
83
|
-
markFont: S(M(() => import("./
|
|
84
|
-
markVoice: S(M(() => import("./
|
|
46
|
+
annotate: S(M(() => import("./annotateDs5i2eNO.js"))),
|
|
47
|
+
arrowCircle: S(M(() => import("./arrowCirclelm3OXqGD.js"))),
|
|
48
|
+
check: S(M(() => import("./checkDksrM1Ib.js"))),
|
|
49
|
+
dot: S(M(() => import("./dotBjXKweg0.js"))),
|
|
50
|
+
flip: S(M(() => import("./flipDFWc7R0p.js"))),
|
|
51
|
+
info: S(M(() => import("./infoD4ZTbsGp.js"))),
|
|
52
|
+
microscope: S(M(() => import("./microscopeCj4MZVX6.js"))),
|
|
53
|
+
move: S(M(() => import("./moveCtlzWScv.js"))),
|
|
54
|
+
next: S(M(() => import("./nextBbF_v1SK.js"))),
|
|
55
|
+
prev: S(M(() => import("./prevBi3Jjzby.js"))),
|
|
56
|
+
process: S(M(() => import("./processBaejbNIO.js"))),
|
|
57
|
+
rotate: S(M(() => import("./rotateCn_yYR-9.js"))),
|
|
58
|
+
fullscreen: S(M(() => import("./fullscreenCCAwhExm.js"))),
|
|
59
|
+
setting: S(M(() => import("./settingBuJ04L0g.js"))),
|
|
60
|
+
tailor: S(M(() => import("./tailorfTcGg1n3.js"))),
|
|
61
|
+
download: S(M(() => import("./downloadZ2QzL5rO.js"))),
|
|
62
|
+
config: S(M(() => import("./configBQB-oghg.js"))),
|
|
63
|
+
arrowDown: S(M(() => import("./arrowDownBAZ_RPEu.js"))),
|
|
64
|
+
arrowUp: S(M(() => import("./arrowUpCms_i80O.js"))),
|
|
65
|
+
arrowLeft: S(M(() => import("./arrowLeft8I3cz9ix.js"))),
|
|
66
|
+
arrowRight: S(M(() => import("./arrowRightDNETqHjH.js"))),
|
|
67
|
+
zoomIn: S(M(() => import("./zoomInDyv5nd6T.js"))),
|
|
68
|
+
zoomOut: S(M(() => import("./zoomOutDDZGVubB.js"))),
|
|
69
|
+
level: S(M(() => import("./levelDtDdq-Pg.js"))),
|
|
70
|
+
channel: S(M(() => import("./channel8wdsKWt0.js"))),
|
|
71
|
+
delete: S(M(() => import("./deleteChVtJN4n.js"))),
|
|
72
|
+
expandLeft: S(M(() => import("./expandLeftDB8r1unh.js"))),
|
|
73
|
+
expandRight: S(M(() => import("./expandRightBhVI7kIo.js"))),
|
|
74
|
+
markLine: S(M(() => import("./lineNu21t5gy.js"))),
|
|
75
|
+
markArrow: S(M(() => import("./arrowCBL9AzKr.js"))),
|
|
76
|
+
markBilateral: S(M(() => import("./bilateralDRIzcahZ.js"))),
|
|
77
|
+
markRectangle: S(M(() => import("./rectangleB_weH4OT.js"))),
|
|
78
|
+
markEllipse: S(M(() => import("./ellipseC2z02yg-.js"))),
|
|
79
|
+
markPolygon: S(M(() => import("./polygonB1s-gscM.js"))),
|
|
80
|
+
markFlag: S(M(() => import("./flagDc9VAAUM.js"))),
|
|
81
|
+
markStar: S(M(() => import("./star4mf8YXXg.js"))),
|
|
82
|
+
markDot: S(M(() => import("./dotBQNxsw3c.js"))),
|
|
83
|
+
markFont: S(M(() => import("./fontD27n3hS-.js"))),
|
|
84
|
+
markVoice: S(M(() => import("./voiceB8S4rKDI.js")))
|
|
85
85
|
}), Q = /* @__PURE__ */ J({
|
|
86
86
|
__name: "KfbIcon",
|
|
87
87
|
props: {
|
|
@@ -91,9 +91,9 @@ const pl = {
|
|
|
91
91
|
}
|
|
92
92
|
},
|
|
93
93
|
setup(u) {
|
|
94
|
-
return (e, l) => (
|
|
94
|
+
return (e, l) => (_(), H(o(ze), ll(ol(e.$attrs)), {
|
|
95
95
|
default: L(() => [
|
|
96
|
-
(
|
|
96
|
+
(_(), H(Ve(o(G)[u.name])))
|
|
97
97
|
]),
|
|
98
98
|
_: 1
|
|
99
99
|
}, 16));
|
|
@@ -118,7 +118,7 @@ const pl = {
|
|
|
118
118
|
},
|
|
119
119
|
emits: ["update:menus"],
|
|
120
120
|
setup(u) {
|
|
121
|
-
const e = Be(u, "menus"), { t: l } = ue(), t =
|
|
121
|
+
const e = Be(u, "menus"), { t: l } = ue(), t = B(() => e.value.filter((h) => h.name !== "line" && h.name !== "config" && h.name !== "zoom")), w = {
|
|
122
122
|
fullscreen: l("全屏"),
|
|
123
123
|
next: l("上一张"),
|
|
124
124
|
prev: l("上一张"),
|
|
@@ -133,19 +133,19 @@ const pl = {
|
|
|
133
133
|
move: l("快速移动"),
|
|
134
134
|
info: l("信息"),
|
|
135
135
|
download: l("下载")
|
|
136
|
-
}, v = Z("show-keyboard", T(!1)), r = Z("show-watermark", T(!1)),
|
|
136
|
+
}, v = Z("show-keyboard", T(!1)), r = Z("show-watermark", T(!1)), i = Z("show-menu-text", T(!0));
|
|
137
137
|
function m(h) {
|
|
138
|
-
return h in
|
|
138
|
+
return h in w;
|
|
139
139
|
}
|
|
140
|
-
function
|
|
140
|
+
function g(h) {
|
|
141
141
|
var n;
|
|
142
|
-
return ((n = h.props) == null ? void 0 : n.text) || (m(h.name) ?
|
|
142
|
+
return ((n = h.props) == null ? void 0 : n.text) || (m(h.name) ? w[h.name] : "");
|
|
143
143
|
}
|
|
144
|
-
return (h, n) => (
|
|
144
|
+
return (h, n) => (_(), x("div", hl, [
|
|
145
145
|
k("h3", gl, E(o(l)("显示管理")), 1),
|
|
146
146
|
C(o(rl), { gutter: 10 }, {
|
|
147
147
|
default: L(() => [
|
|
148
|
-
(
|
|
148
|
+
(_(!0), x(oe, null, ae(t.value, (d) => (_(), H(o(ul), {
|
|
149
149
|
key: d.name,
|
|
150
150
|
span: 8
|
|
151
151
|
}, {
|
|
@@ -154,16 +154,16 @@ const pl = {
|
|
|
154
154
|
return [
|
|
155
155
|
k("div", yl, [
|
|
156
156
|
k("div", wl, [
|
|
157
|
-
(c = d.props) != null && c.component ? (
|
|
157
|
+
(c = d.props) != null && c.component ? (_(), H(Ve((a = d.props) == null ? void 0 : a.component), {
|
|
158
158
|
key: 1,
|
|
159
159
|
size: 24
|
|
160
|
-
})) : (
|
|
160
|
+
})) : (_(), H(Q, {
|
|
161
161
|
key: 0,
|
|
162
162
|
size: 24,
|
|
163
163
|
name: d.name
|
|
164
164
|
}, null, 8, ["name"]))
|
|
165
165
|
]),
|
|
166
|
-
k("p", _l, E(
|
|
166
|
+
k("p", _l, E(g(d)), 1),
|
|
167
167
|
C(o(Ee), {
|
|
168
168
|
modelValue: d.show,
|
|
169
169
|
"onUpdate:modelValue": (f) => d.show = f,
|
|
@@ -183,8 +183,8 @@ const pl = {
|
|
|
183
183
|
k("div", kl, [
|
|
184
184
|
k("p", zl, E(o(l)("工具列表显示切换")), 1),
|
|
185
185
|
C(o(ot), {
|
|
186
|
-
modelValue: o(
|
|
187
|
-
"onUpdate:modelValue": n[0] || (n[0] = (d) => pe(
|
|
186
|
+
modelValue: o(i),
|
|
187
|
+
"onUpdate:modelValue": n[0] || (n[0] = (d) => pe(i) ? i.value = d : null)
|
|
188
188
|
}, {
|
|
189
189
|
default: L(() => [
|
|
190
190
|
C(o(Te), { value: !0 }, {
|
|
@@ -263,28 +263,28 @@ const pl = {
|
|
|
263
263
|
},
|
|
264
264
|
emits: ["tool"],
|
|
265
265
|
setup(u, { emit: e }) {
|
|
266
|
-
const l = u, t = e, { t:
|
|
267
|
-
prev:
|
|
268
|
-
next:
|
|
269
|
-
config:
|
|
270
|
-
info:
|
|
271
|
-
flip:
|
|
272
|
-
tailor:
|
|
273
|
-
}, r = Z("kfbViewRef"),
|
|
274
|
-
fullscreen: M(() => import("./
|
|
266
|
+
const l = u, t = e, { t: w } = ue(), v = {
|
|
267
|
+
prev: w("上一张"),
|
|
268
|
+
next: w("下一张"),
|
|
269
|
+
config: w("配置"),
|
|
270
|
+
info: w("信息"),
|
|
271
|
+
flip: w("镜像"),
|
|
272
|
+
tailor: w("截图")
|
|
273
|
+
}, r = Z("kfbViewRef"), i = T(!1), m = T(n(l.menu)), g = {
|
|
274
|
+
fullscreen: M(() => import("./fullscreenDF7FK-y9.js")),
|
|
275
275
|
line: M(() => import("./lineBNwqZbqu.js")),
|
|
276
|
-
setting: M(() => import("./
|
|
277
|
-
rotate: M(() => import("./
|
|
278
|
-
dot: M(() => import("./
|
|
279
|
-
annotate: M(() => import("./
|
|
280
|
-
process: M(() => import("./
|
|
281
|
-
microscope: M(() => import("./
|
|
282
|
-
move: M(() => import("./
|
|
283
|
-
custom: M(() => import("./
|
|
284
|
-
zoom: M(() => import("./
|
|
285
|
-
download: M(() => import("./
|
|
286
|
-
}, h =
|
|
287
|
-
component:
|
|
276
|
+
setting: M(() => import("./settingbBZdqUd4.js")),
|
|
277
|
+
rotate: M(() => import("./rotateCQ-njCPy.js")),
|
|
278
|
+
dot: M(() => import("./dotC0CKM_hZ.js")),
|
|
279
|
+
annotate: M(() => import("./annotateCwGjQKaP.js")),
|
|
280
|
+
process: M(() => import("./processOErCYmsz.js")),
|
|
281
|
+
microscope: M(() => import("./microscopeD8c1neyn.js")),
|
|
282
|
+
move: M(() => import("./moveDMF_aznf.js")),
|
|
283
|
+
custom: M(() => import("./customAwznbb6Z.js")),
|
|
284
|
+
zoom: M(() => import("./zoomBn1qhxqR.js")),
|
|
285
|
+
download: M(() => import("./downloadNznR12xP.js"))
|
|
286
|
+
}, h = B(() => m.value.filter((c) => c.show !== !1).map((c) => ({
|
|
287
|
+
component: g[c.name],
|
|
288
288
|
props: c.props,
|
|
289
289
|
slots: c.slots
|
|
290
290
|
})));
|
|
@@ -342,7 +342,7 @@ const pl = {
|
|
|
342
342
|
info: () => r.value.info(),
|
|
343
343
|
zoom: () => r.value.zoomTo(a),
|
|
344
344
|
flip: () => r.value.toggleFlip(a),
|
|
345
|
-
config: () =>
|
|
345
|
+
config: () => i.value = !0,
|
|
346
346
|
grid: () => r.value.updateGrid(a),
|
|
347
347
|
ruler: () => r.value.updateGrid(a),
|
|
348
348
|
graduation: () => r.value.updateGraduation(a),
|
|
@@ -359,25 +359,25 @@ const pl = {
|
|
|
359
359
|
};
|
|
360
360
|
f[c] ? f[c]() : t("tool", c, a);
|
|
361
361
|
}
|
|
362
|
-
return (c, a) => (
|
|
362
|
+
return (c, a) => (_(), x("div", El, [
|
|
363
363
|
fe(c.$slots, "left"),
|
|
364
364
|
k("div", Vl, [
|
|
365
|
-
(
|
|
365
|
+
(_(!0), x(oe, null, ae(h.value, (f, b) => (_(), H(Ve(f.component), Oe({ ref_for: !0 }, f.props, {
|
|
366
366
|
key: b,
|
|
367
367
|
onTool: d
|
|
368
368
|
}), {
|
|
369
369
|
default: L(() => [
|
|
370
|
-
f.slots ? (
|
|
370
|
+
f.slots ? (_(!0), x(oe, { key: 0 }, ae(f.slots, (y) => (_(), H(Ve(y)))), 256)) : R("", !0)
|
|
371
371
|
]),
|
|
372
372
|
_: 2
|
|
373
373
|
}, 1040))), 128))
|
|
374
374
|
]),
|
|
375
375
|
fe(c.$slots, "right"),
|
|
376
376
|
C(o(Ge), {
|
|
377
|
-
modelValue:
|
|
378
|
-
"onUpdate:modelValue": a[1] || (a[1] = (f) =>
|
|
377
|
+
modelValue: i.value,
|
|
378
|
+
"onUpdate:modelValue": a[1] || (a[1] = (f) => i.value = f),
|
|
379
379
|
width: "800px",
|
|
380
|
-
title: o(
|
|
380
|
+
title: o(w)("阅片工具设置中心")
|
|
381
381
|
}, {
|
|
382
382
|
default: L(() => [
|
|
383
383
|
C(xl, {
|
|
@@ -406,9 +406,9 @@ const pl = {
|
|
|
406
406
|
function Il(u) {
|
|
407
407
|
const e = rt(W(W({}, Mt), u.process));
|
|
408
408
|
ee(() => u.process, (v) => {
|
|
409
|
-
|
|
409
|
+
w(v);
|
|
410
410
|
});
|
|
411
|
-
const l =
|
|
411
|
+
const l = B(() => {
|
|
412
412
|
const v = [
|
|
413
413
|
1 + e.r + e.l + 0.5 * e.c,
|
|
414
414
|
0,
|
|
@@ -421,7 +421,7 @@ function Il(u) {
|
|
|
421
421
|
0,
|
|
422
422
|
0,
|
|
423
423
|
-0.25 * e.c
|
|
424
|
-
],
|
|
424
|
+
], i = [
|
|
425
425
|
0,
|
|
426
426
|
0,
|
|
427
427
|
1 + e.b + e.l + 0.5 * e.c,
|
|
@@ -430,71 +430,74 @@ function Il(u) {
|
|
|
430
430
|
], m = [0, 0, 0, 1, 0];
|
|
431
431
|
return `${v.join(" ")}
|
|
432
432
|
${r.join(" ")}
|
|
433
|
-
${
|
|
433
|
+
${i.join(" ")}
|
|
434
434
|
${m.join(" ")}`;
|
|
435
|
-
}), t =
|
|
436
|
-
function
|
|
435
|
+
}), t = B(() => String(1 + e.s));
|
|
436
|
+
function w(v) {
|
|
437
437
|
v && Object.assign(e, v);
|
|
438
438
|
}
|
|
439
439
|
return {
|
|
440
440
|
imageProcess: e,
|
|
441
441
|
matrixValues: l,
|
|
442
442
|
saturateValues: t,
|
|
443
|
-
forceRedraw:
|
|
443
|
+
forceRedraw: w
|
|
444
444
|
};
|
|
445
445
|
}
|
|
446
446
|
function Ml(u, e) {
|
|
447
447
|
function l() {
|
|
448
448
|
e.value.$on(ve.events.EVENT_TAILORING_SCREENSHOT, t);
|
|
449
449
|
}
|
|
450
|
-
function t({ base64: r, region:
|
|
450
|
+
function t({ base64: r, region: i, custom: m }) {
|
|
451
451
|
if (window.ClipboardItem && (navigator != null && navigator.clipboard)) {
|
|
452
|
-
const
|
|
452
|
+
const g = w(r, "image/png");
|
|
453
453
|
navigator.clipboard.write([
|
|
454
454
|
new window.ClipboardItem({
|
|
455
|
-
[
|
|
455
|
+
[g.type]: g
|
|
456
456
|
})
|
|
457
457
|
]);
|
|
458
458
|
}
|
|
459
|
-
u("tool", "screen-shot", { base64: r, region:
|
|
459
|
+
u("tool", "screen-shot", { base64: r, region: i, custom: m });
|
|
460
460
|
}
|
|
461
|
-
function
|
|
461
|
+
function w(r, i) {
|
|
462
462
|
var d, c;
|
|
463
463
|
const m = r.split(",");
|
|
464
464
|
(c = (d = m[0]) == null ? void 0 : d.match(/:(.*?);/)) == null || c[1];
|
|
465
|
-
const
|
|
466
|
-
let h =
|
|
465
|
+
const g = atob(m == null ? void 0 : m[1]);
|
|
466
|
+
let h = g.length;
|
|
467
467
|
const n = new Uint8Array(h);
|
|
468
468
|
for (; h--; )
|
|
469
|
-
n[h] =
|
|
470
|
-
return new Blob([n], { type:
|
|
469
|
+
n[h] = g.charCodeAt(h);
|
|
470
|
+
return new Blob([n], { type: i });
|
|
471
471
|
}
|
|
472
|
-
function v(r) {
|
|
473
|
-
const { width:
|
|
474
|
-
r ?
|
|
472
|
+
function v(r, i) {
|
|
473
|
+
const { width: m, height: g } = e.value.$options;
|
|
474
|
+
r ? m > g ? e.value.tailoring.init(
|
|
475
475
|
{
|
|
476
|
-
left: (
|
|
476
|
+
left: (m - g) / 2,
|
|
477
477
|
top: 0,
|
|
478
|
-
height:
|
|
479
|
-
width:
|
|
478
|
+
height: g,
|
|
479
|
+
width: g,
|
|
480
480
|
now: !0
|
|
481
|
-
}
|
|
481
|
+
},
|
|
482
|
+
i
|
|
482
483
|
) : e.value.tailoring.init(
|
|
483
484
|
{
|
|
484
485
|
left: 0,
|
|
485
|
-
top: (
|
|
486
|
-
height:
|
|
487
|
-
width:
|
|
486
|
+
top: (g - m) / 2,
|
|
487
|
+
height: m,
|
|
488
|
+
width: m,
|
|
488
489
|
now: !0
|
|
489
|
-
}
|
|
490
|
+
},
|
|
491
|
+
i
|
|
490
492
|
) : e.value.tailoring.init(
|
|
491
493
|
{
|
|
492
|
-
left:
|
|
493
|
-
top:
|
|
494
|
+
left: m / 2 - 100,
|
|
495
|
+
top: g / 2 - 100,
|
|
494
496
|
height: 200,
|
|
495
497
|
width: 200,
|
|
496
498
|
color: "#ff0000"
|
|
497
|
-
}
|
|
499
|
+
},
|
|
500
|
+
i
|
|
498
501
|
);
|
|
499
502
|
}
|
|
500
503
|
return {
|
|
@@ -524,66 +527,66 @@ const Sl = ["onClick"], Hl = ["src"], Pl = {
|
|
|
524
527
|
top: "0",
|
|
525
528
|
left: "0",
|
|
526
529
|
display: "none"
|
|
527
|
-
}), t = Z("kfbView", T({})),
|
|
530
|
+
}), t = Z("kfbView", T({})), w = Z("currentLabel"), v = u, r = e, { t: i } = ue(), m = [
|
|
528
531
|
{
|
|
529
|
-
label:
|
|
532
|
+
label: i("直线"),
|
|
530
533
|
value: "line",
|
|
531
534
|
icon: G.value.markLine
|
|
532
535
|
},
|
|
533
536
|
{
|
|
534
|
-
label:
|
|
537
|
+
label: i("箭头"),
|
|
535
538
|
value: "arrow",
|
|
536
539
|
icon: G.value.markArrow
|
|
537
540
|
},
|
|
538
541
|
{
|
|
539
|
-
label:
|
|
542
|
+
label: i("双箭头"),
|
|
540
543
|
value: "bilateral",
|
|
541
544
|
icon: G.value.markBilateral
|
|
542
545
|
},
|
|
543
546
|
{
|
|
544
|
-
label:
|
|
547
|
+
label: i("矩形"),
|
|
545
548
|
value: "rectangle",
|
|
546
549
|
icon: G.value.markRectangle
|
|
547
550
|
},
|
|
548
551
|
{
|
|
549
|
-
label:
|
|
552
|
+
label: i("圆形"),
|
|
550
553
|
value: "ellipse",
|
|
551
554
|
icon: G.value.markEllipse
|
|
552
555
|
},
|
|
553
556
|
{
|
|
554
|
-
label:
|
|
557
|
+
label: i("曲线"),
|
|
555
558
|
value: "polygon",
|
|
556
559
|
icon: G.value.markPolygon
|
|
557
560
|
},
|
|
558
561
|
{
|
|
559
|
-
label:
|
|
562
|
+
label: i("星星"),
|
|
560
563
|
value: "star",
|
|
561
564
|
icon: G.value.markStar
|
|
562
565
|
},
|
|
563
566
|
{
|
|
564
|
-
label:
|
|
567
|
+
label: i("旗帜"),
|
|
565
568
|
value: "flag",
|
|
566
569
|
icon: G.value.markFlag
|
|
567
570
|
},
|
|
568
571
|
{
|
|
569
|
-
label:
|
|
572
|
+
label: i("点"),
|
|
570
573
|
value: "dot",
|
|
571
574
|
icon: G.value.markDot
|
|
572
575
|
},
|
|
573
576
|
{
|
|
574
|
-
label:
|
|
577
|
+
label: i("文字"),
|
|
575
578
|
value: "font",
|
|
576
579
|
icon: G.value.markFont
|
|
577
580
|
},
|
|
578
581
|
{
|
|
579
|
-
label:
|
|
582
|
+
label: i("语音"),
|
|
580
583
|
value: "voice",
|
|
581
584
|
icon: G.value.markVoice
|
|
582
585
|
}
|
|
583
|
-
],
|
|
586
|
+
], g = B(() => {
|
|
584
587
|
var a;
|
|
585
|
-
return
|
|
586
|
-
label:
|
|
588
|
+
return w != null && w.value ? [{
|
|
589
|
+
label: i("删除"),
|
|
587
590
|
value: "delete",
|
|
588
591
|
icon: G.value.delete
|
|
589
592
|
}] : (a = v.menus) != null && a.length ? v.menus.map((f) => f.value === "annotate" ? we(W({}, f), {
|
|
@@ -592,35 +595,35 @@ const Sl = ["onClick"], Hl = ["src"], Pl = {
|
|
|
592
595
|
icon: f.icon || G.value[f.value]
|
|
593
596
|
})) : [
|
|
594
597
|
{
|
|
595
|
-
label:
|
|
598
|
+
label: i("上一张"),
|
|
596
599
|
value: "prev"
|
|
597
600
|
},
|
|
598
601
|
{
|
|
599
|
-
label:
|
|
602
|
+
label: i("下一张"),
|
|
600
603
|
value: "next"
|
|
601
604
|
},
|
|
602
605
|
{
|
|
603
|
-
label:
|
|
606
|
+
label: i("标注"),
|
|
604
607
|
value: "annotate",
|
|
605
608
|
icon: G.value.annotate,
|
|
606
609
|
children: m
|
|
607
610
|
},
|
|
608
611
|
{
|
|
609
|
-
label:
|
|
612
|
+
label: i("一键截图"),
|
|
610
613
|
value: "tailor_now",
|
|
611
614
|
icon: G.value.tailor
|
|
612
615
|
},
|
|
613
616
|
{
|
|
614
|
-
label:
|
|
617
|
+
label: i("区域截图"),
|
|
615
618
|
value: "tailor"
|
|
616
619
|
},
|
|
617
620
|
{
|
|
618
|
-
label:
|
|
621
|
+
label: i("镜像翻转"),
|
|
619
622
|
value: "flip",
|
|
620
623
|
icon: G.value.flip
|
|
621
624
|
},
|
|
622
625
|
{
|
|
623
|
-
label:
|
|
626
|
+
label: i("切片信息"),
|
|
624
627
|
value: "info",
|
|
625
628
|
icon: G.value.info
|
|
626
629
|
}
|
|
@@ -654,63 +657,63 @@ const Sl = ["onClick"], Hl = ["src"], Pl = {
|
|
|
654
657
|
"render" in a || "setup" in a
|
|
655
658
|
);
|
|
656
659
|
}
|
|
657
|
-
return (a, f) => (
|
|
660
|
+
return (a, f) => (_(), x("div", {
|
|
658
661
|
class: "hzzt-kfb-menu",
|
|
659
662
|
style: q(l.value)
|
|
660
663
|
}, [
|
|
661
|
-
(
|
|
662
|
-
key:
|
|
664
|
+
(_(!0), x(oe, null, ae(g.value, (b, y) => (_(), x("div", {
|
|
665
|
+
key: y,
|
|
663
666
|
class: "hzzt-kfb-menu-item"
|
|
664
667
|
}, [
|
|
665
668
|
k("div", {
|
|
666
669
|
class: "flex align-items-center",
|
|
667
670
|
onClick: (p) => d(b)
|
|
668
671
|
}, [
|
|
669
|
-
c(b.icon) ? (
|
|
672
|
+
c(b.icon) ? (_(), H(o(ze), {
|
|
670
673
|
key: 0,
|
|
671
674
|
class: "margin-r-3",
|
|
672
675
|
size: 18
|
|
673
676
|
}, {
|
|
674
677
|
default: L(() => [
|
|
675
|
-
(
|
|
678
|
+
(_(), H(Ve(b.icon)))
|
|
676
679
|
]),
|
|
677
680
|
_: 2
|
|
678
|
-
}, 1024)) : b.icon ? (
|
|
681
|
+
}, 1024)) : b.icon ? (_(), x("img", {
|
|
679
682
|
key: 1,
|
|
680
683
|
style: { width: "18px" },
|
|
681
684
|
class: "margin-r-2",
|
|
682
685
|
src: b.icon
|
|
683
|
-
}, null, 8, Hl)) : (
|
|
686
|
+
}, null, 8, Hl)) : (_(), x("div", Pl)),
|
|
684
687
|
k("span", null, E(b.label), 1)
|
|
685
688
|
], 8, Sl),
|
|
686
|
-
b.children ? (
|
|
689
|
+
b.children ? (_(), H(Q, {
|
|
687
690
|
key: 0,
|
|
688
691
|
name: "arrowRight",
|
|
689
692
|
class: "margin-r-2",
|
|
690
693
|
size: 14
|
|
691
694
|
})) : R("", !0),
|
|
692
|
-
b.children ? (
|
|
693
|
-
(
|
|
694
|
-
key:
|
|
695
|
+
b.children ? (_(), x("div", Rl, [
|
|
696
|
+
(_(!0), x(oe, null, ae(b.children, (p, s) => (_(), x("div", {
|
|
697
|
+
key: s,
|
|
695
698
|
class: "hzzt-kfb-menu-item",
|
|
696
699
|
onClick: (I) => d(p, b)
|
|
697
700
|
}, [
|
|
698
701
|
k("div", Nl, [
|
|
699
|
-
c(p.icon) ? (
|
|
702
|
+
c(p.icon) ? (_(), H(o(ze), {
|
|
700
703
|
key: 0,
|
|
701
704
|
class: "margin-r-2",
|
|
702
705
|
size: 18
|
|
703
706
|
}, {
|
|
704
707
|
default: L(() => [
|
|
705
|
-
(
|
|
708
|
+
(_(), H(Ve(p.icon)))
|
|
706
709
|
]),
|
|
707
710
|
_: 2
|
|
708
|
-
}, 1024)) : p.icon ? (
|
|
711
|
+
}, 1024)) : p.icon ? (_(), x("img", {
|
|
709
712
|
key: 1,
|
|
710
713
|
style: { width: "18px" },
|
|
711
714
|
class: "margin-r-2",
|
|
712
715
|
src: p.icon
|
|
713
|
-
}, null, 8, Bl)) : (
|
|
716
|
+
}, null, 8, Bl)) : (_(), x("div", Dl)),
|
|
714
717
|
k("span", null, E(p.label), 1)
|
|
715
718
|
])
|
|
716
719
|
], 8, Al))), 128))
|
|
@@ -720,8 +723,8 @@ const Sl = ["onClick"], Hl = ["src"], Pl = {
|
|
|
720
723
|
}
|
|
721
724
|
}), ge = (u, e) => {
|
|
722
725
|
const l = u.__vccOpts || u;
|
|
723
|
-
for (const [t,
|
|
724
|
-
l[t] =
|
|
726
|
+
for (const [t, w] of e)
|
|
727
|
+
l[t] = w;
|
|
725
728
|
return l;
|
|
726
729
|
}, Fl = /* @__PURE__ */ ge(Ul, [["__scopeId", "data-v-414722d0"]]), Kl = {
|
|
727
730
|
key: 0,
|
|
@@ -739,37 +742,37 @@ const Sl = ["onClick"], Hl = ["src"], Pl = {
|
|
|
739
742
|
ee(() => l, (n) => {
|
|
740
743
|
h({ name: "change", value: n });
|
|
741
744
|
});
|
|
742
|
-
const
|
|
745
|
+
const w = T("200px"), v = T(!1), r = B(() => ({
|
|
743
746
|
borderRadius: t.shape,
|
|
744
747
|
borderColor: t.color,
|
|
745
748
|
borderWidth: t.borderWidth + "px",
|
|
746
|
-
width:
|
|
747
|
-
height:
|
|
748
|
-
})),
|
|
749
|
-
ee(() =>
|
|
749
|
+
width: w.value,
|
|
750
|
+
height: w.value
|
|
751
|
+
})), i = Z("kfbView", T({}));
|
|
752
|
+
ee(() => i.value, (n, d) => {
|
|
750
753
|
d != null && d.viewer && d.viewer.removeHandler("zoom", m), n != null && n.viewer && n.viewer.addHandler("zoom", m);
|
|
751
754
|
}), he(() => {
|
|
752
755
|
var n;
|
|
753
|
-
(n =
|
|
756
|
+
(n = i.value) != null && n.viewer && i.value.viewer.addHandler("zoom", m);
|
|
754
757
|
}), Ie(() => {
|
|
755
758
|
var n;
|
|
756
|
-
(n =
|
|
759
|
+
(n = i.value) != null && n.viewer && i.value.viewer.removeHandler("zoom", m);
|
|
757
760
|
});
|
|
758
761
|
function m() {
|
|
759
762
|
setTimeout(() => {
|
|
760
763
|
h({ name: "change", value: t });
|
|
761
764
|
}, 100);
|
|
762
765
|
}
|
|
763
|
-
function
|
|
764
|
-
let { x: d, y: c } =
|
|
765
|
-
n === "top" ? c -= 6e-3 : n === "bottom" ? c += 6e-3 : n === "left" ? d -= 6e-3 : n === "right" && (d += 6e-3),
|
|
766
|
+
function g(n) {
|
|
767
|
+
let { x: d, y: c } = i.value.viewer.viewport.getCenter(!0);
|
|
768
|
+
n === "top" ? c -= 6e-3 : n === "bottom" ? c += 6e-3 : n === "left" ? d -= 6e-3 : n === "right" && (d += 6e-3), i.value.area.moveToLabel({ x: d, y: c });
|
|
766
769
|
}
|
|
767
770
|
function h({ name: n, value: d }) {
|
|
768
771
|
var a, f;
|
|
769
|
-
const c = (f = (a =
|
|
772
|
+
const c = (f = (a = i.value.$options) == null ? void 0 : a.pxConversion) == null ? void 0 : f.imageCapRes;
|
|
770
773
|
if (n === "visible") {
|
|
771
774
|
if (v.value = d, d) {
|
|
772
|
-
const b =
|
|
775
|
+
const b = i.value.area.imageToViewerElementRectangle(
|
|
773
776
|
{
|
|
774
777
|
x: 0,
|
|
775
778
|
y: 0,
|
|
@@ -777,11 +780,11 @@ const Sl = ["onClick"], Hl = ["src"], Pl = {
|
|
|
777
780
|
height: t.width * 1e3 / c
|
|
778
781
|
}
|
|
779
782
|
);
|
|
780
|
-
|
|
783
|
+
w.value = b.width + "px";
|
|
781
784
|
}
|
|
782
785
|
} else if (n === "change") {
|
|
783
786
|
Object.assign(t, d);
|
|
784
|
-
const b =
|
|
787
|
+
const b = i.value.area.imageToViewerElementRectangle(
|
|
785
788
|
{
|
|
786
789
|
x: 0,
|
|
787
790
|
y: 0,
|
|
@@ -789,19 +792,19 @@ const Sl = ["onClick"], Hl = ["src"], Pl = {
|
|
|
789
792
|
height: t.width * 1e3 / c
|
|
790
793
|
}
|
|
791
794
|
);
|
|
792
|
-
|
|
795
|
+
w.value = b.width + "px";
|
|
793
796
|
}
|
|
794
797
|
}
|
|
795
798
|
return e({
|
|
796
799
|
scopeChange: h
|
|
797
|
-
}), (n, d) => v.value ? (
|
|
800
|
+
}), (n, d) => v.value ? (_(), x("div", Kl, [
|
|
798
801
|
k("div", {
|
|
799
802
|
class: "hzzt-kfb-microscope__container",
|
|
800
803
|
style: q(r.value)
|
|
801
804
|
}, null, 4),
|
|
802
805
|
k("div", {
|
|
803
806
|
class: "hzzt-kfb-microscope__top",
|
|
804
|
-
onClick: d[0] || (d[0] = (c) =>
|
|
807
|
+
onClick: d[0] || (d[0] = (c) => g("top"))
|
|
805
808
|
}, [
|
|
806
809
|
C(Q, {
|
|
807
810
|
size: "24",
|
|
@@ -810,7 +813,7 @@ const Sl = ["onClick"], Hl = ["src"], Pl = {
|
|
|
810
813
|
]),
|
|
811
814
|
k("div", {
|
|
812
815
|
class: "hzzt-kfb-microscope__bottom",
|
|
813
|
-
onClick: d[1] || (d[1] = (c) =>
|
|
816
|
+
onClick: d[1] || (d[1] = (c) => g("bottom"))
|
|
814
817
|
}, [
|
|
815
818
|
C(Q, {
|
|
816
819
|
size: "24",
|
|
@@ -819,7 +822,7 @@ const Sl = ["onClick"], Hl = ["src"], Pl = {
|
|
|
819
822
|
]),
|
|
820
823
|
k("div", {
|
|
821
824
|
class: "hzzt-kfb-microscope__left",
|
|
822
|
-
onClick: d[2] || (d[2] = (c) =>
|
|
825
|
+
onClick: d[2] || (d[2] = (c) => g("left"))
|
|
823
826
|
}, [
|
|
824
827
|
C(Q, {
|
|
825
828
|
size: "24",
|
|
@@ -828,7 +831,7 @@ const Sl = ["onClick"], Hl = ["src"], Pl = {
|
|
|
828
831
|
]),
|
|
829
832
|
k("div", {
|
|
830
833
|
class: "hzzt-kfb-microscope__right",
|
|
831
|
-
onClick: d[3] || (d[3] = (c) =>
|
|
834
|
+
onClick: d[3] || (d[3] = (c) => g("right"))
|
|
832
835
|
}, [
|
|
833
836
|
C(Q, {
|
|
834
837
|
size: "24",
|
|
@@ -854,11 +857,11 @@ const Sl = ["onClick"], Hl = ["src"], Pl = {
|
|
|
854
857
|
emits: ["tool"],
|
|
855
858
|
setup(u, { emit: e }) {
|
|
856
859
|
var n;
|
|
857
|
-
const { t: l } = ue(), t = u,
|
|
860
|
+
const { t: l } = ue(), t = u, w = e, v = T((n = t.visible) != null ? n : !0), r = T(!1), i = B(() => t.slide.pathology_id ? l("修改病理号") : l("绑定病理号"));
|
|
858
861
|
function m() {
|
|
859
|
-
t.slide.angle || (t.slide.angle = 0), t.slide.angle += 90, t.slide.angle > 360 && (t.slide.angle = t.slide.angle % 360),
|
|
862
|
+
t.slide.angle || (t.slide.angle = 0), t.slide.angle += 90, t.slide.angle > 360 && (t.slide.angle = t.slide.angle % 360), w("tool", "rotate", t.slide.angle);
|
|
860
863
|
}
|
|
861
|
-
function
|
|
864
|
+
function g() {
|
|
862
865
|
r.value = !0;
|
|
863
866
|
}
|
|
864
867
|
function h() {
|
|
@@ -866,7 +869,7 @@ const Sl = ["onClick"], Hl = ["src"], Pl = {
|
|
|
866
869
|
r.value = !1;
|
|
867
870
|
});
|
|
868
871
|
}
|
|
869
|
-
return (d, c) => (
|
|
872
|
+
return (d, c) => (_(), x("div", Gl, [
|
|
870
873
|
xe(k("div", { class: "hzzt-kfb-label__title" }, E(o(l)(`点击标签旋转${d.pathologyHandle ? ",点击病理号重绑" : ""}`)), 513), [
|
|
871
874
|
[Ae, v.value]
|
|
872
875
|
]),
|
|
@@ -879,10 +882,10 @@ const Sl = ["onClick"], Hl = ["src"], Pl = {
|
|
|
879
882
|
], 512), [
|
|
880
883
|
[Ae, v.value]
|
|
881
884
|
]),
|
|
882
|
-
d.pathologyHandle ? xe((
|
|
885
|
+
d.pathologyHandle ? xe((_(), x("div", {
|
|
883
886
|
key: 0,
|
|
884
887
|
class: "hzzt-kfb-label__pathology flex align-items-center justify-content-between",
|
|
885
|
-
onClick:
|
|
888
|
+
onClick: g
|
|
886
889
|
}, [
|
|
887
890
|
k("span", Zl, E(d.slide.pathology_number), 1),
|
|
888
891
|
C(Q, {
|
|
@@ -899,11 +902,11 @@ const Sl = ["onClick"], Hl = ["src"], Pl = {
|
|
|
899
902
|
}),
|
|
900
903
|
class: "hzzt-kfb-label__expend flex align-items-center justify-content-center"
|
|
901
904
|
}, [
|
|
902
|
-
v.value ? (
|
|
905
|
+
v.value ? (_(), H(Q, {
|
|
903
906
|
key: 0,
|
|
904
907
|
size: "10",
|
|
905
908
|
name: "arrowLeft"
|
|
906
|
-
})) : (
|
|
909
|
+
})) : (_(), H(Q, {
|
|
907
910
|
key: 1,
|
|
908
911
|
size: "10",
|
|
909
912
|
name: "arrowRight"
|
|
@@ -913,7 +916,7 @@ const Sl = ["onClick"], Hl = ["src"], Pl = {
|
|
|
913
916
|
modelValue: r.value,
|
|
914
917
|
"onUpdate:modelValue": c[5] || (c[5] = (a) => r.value = a),
|
|
915
918
|
"append-to-body": !0,
|
|
916
|
-
title:
|
|
919
|
+
title: i.value,
|
|
917
920
|
width: "450px"
|
|
918
921
|
}, {
|
|
919
922
|
footer: L(() => [
|
|
@@ -974,7 +977,7 @@ const Sl = ["onClick"], Hl = ["src"], Pl = {
|
|
|
974
977
|
]),
|
|
975
978
|
_: 1
|
|
976
979
|
}, 8, ["label"]),
|
|
977
|
-
d.slide.slide_id ? R("", !0) : (
|
|
980
|
+
d.slide.slide_id ? R("", !0) : (_(), H(o(ie), {
|
|
978
981
|
key: 0,
|
|
979
982
|
label: o(l)("试剂")
|
|
980
983
|
}, {
|
|
@@ -998,30 +1001,30 @@ const Sl = ["onClick"], Hl = ["src"], Pl = {
|
|
|
998
1001
|
}
|
|
999
1002
|
}), to = /* @__PURE__ */ ge(eo, [["__scopeId", "data-v-e1475ef3"]]);
|
|
1000
1003
|
function lo(u, e) {
|
|
1001
|
-
const l = T(1), t = T(null),
|
|
1004
|
+
const l = T(1), t = T(null), w = T(null);
|
|
1002
1005
|
function v() {
|
|
1003
|
-
u.value.viewer.addHandler("canvas-drag", (
|
|
1004
|
-
t.value || (t.value =
|
|
1005
|
-
}), u.value.viewer.addHandler("canvas-drag-end", (
|
|
1006
|
+
u.value.viewer.addHandler("canvas-drag", (i) => {
|
|
1007
|
+
t.value || (t.value = i.position);
|
|
1008
|
+
}), u.value.viewer.addHandler("canvas-drag-end", (i) => {
|
|
1006
1009
|
if (l.value !== 1) {
|
|
1007
|
-
|
|
1008
|
-
const m = u.value.viewer.viewport.containerSize.x,
|
|
1010
|
+
w.value = i.position;
|
|
1011
|
+
const m = u.value.viewer.viewport.containerSize.x, g = u.value.viewer.viewport.containerSize.y, h = (w.value.x - t.value.x) / (m * e.value) * (l.value - 1), n = (w.value.y - t.value.y) / (g * e.value) * (l.value - 1), d = u.value.viewer.viewport.getCenter(), c = new Le.Point(d.x - h, d.y - n);
|
|
1009
1012
|
u.value.viewer.viewport.panTo(c), t.value = null;
|
|
1010
1013
|
}
|
|
1011
1014
|
});
|
|
1012
1015
|
}
|
|
1013
|
-
function r({ name:
|
|
1014
|
-
|
|
1016
|
+
function r({ name: i, value: m }) {
|
|
1017
|
+
i === "ratio" && (l.value = m / 1);
|
|
1015
1018
|
}
|
|
1016
1019
|
return {
|
|
1017
1020
|
moveEvent: v,
|
|
1018
1021
|
fastMove: r
|
|
1019
1022
|
};
|
|
1020
1023
|
}
|
|
1021
|
-
function oo(u, e, l, t,
|
|
1024
|
+
function oo(u, e, l, t, w) {
|
|
1022
1025
|
const v = T(void 0), r = T([]);
|
|
1023
1026
|
ee(() => u.aiLabelList, h);
|
|
1024
|
-
function
|
|
1027
|
+
function i() {
|
|
1025
1028
|
l.value.$on(ve.events.EVENT_END_PAINTING, m("add")), l.value.$on(ve.events.EVENT_AREA_MOVE_END, m("move")), l.value.$on(ve.events.EVENT_ADD_POLYGON_POINT, m("add-point")), l.value.$on(ve.events.EVENT_DELETE_POLYGON_POINT, m("delete-point")), l.value.$on(ve.events.EVENT_DELETE_LABEL, m("delete")), l.value.$on(ve.events.EVENT_SELECT_LABEL, (a) => {
|
|
1026
1029
|
v.value = a, c(), e("tool", "select-label", v.value);
|
|
1027
1030
|
}), l.value.$on(ve.events.EVENT_CANCEL_SELECT_LABEL, () => {
|
|
@@ -1029,15 +1032,15 @@ function oo(u, e, l, t, y) {
|
|
|
1029
1032
|
}), m("list")();
|
|
1030
1033
|
}
|
|
1031
1034
|
function m(a) {
|
|
1032
|
-
return (f) =>
|
|
1035
|
+
return (f) => g(a, f);
|
|
1033
1036
|
}
|
|
1034
|
-
function
|
|
1037
|
+
function g(a, f) {
|
|
1035
1038
|
var b;
|
|
1036
1039
|
if (a === "add" && f && ((f == null ? void 0 : f.subType) || ((b = f == null ? void 0 : f.__data__) == null ? void 0 : b.subType)) === "voice")
|
|
1037
1040
|
t(f);
|
|
1038
1041
|
else
|
|
1039
|
-
return u.labelHandle(a, u.slide, f, r.value).then((
|
|
1040
|
-
r.value =
|
|
1042
|
+
return u.labelHandle(a, u.slide, f, r.value).then((y) => {
|
|
1043
|
+
r.value = y, h();
|
|
1041
1044
|
}).catch(() => {
|
|
1042
1045
|
h();
|
|
1043
1046
|
});
|
|
@@ -1047,21 +1050,21 @@ function oo(u, e, l, t, y) {
|
|
|
1047
1050
|
if ((a = l.value) != null && a.initLabelList) {
|
|
1048
1051
|
const f = [...r.value, ...u.aiLabelList || []];
|
|
1049
1052
|
f.find(({ id: b }) => {
|
|
1050
|
-
var
|
|
1051
|
-
return b === ((
|
|
1053
|
+
var y;
|
|
1054
|
+
return b === ((y = v.value) == null ? void 0 : y.id);
|
|
1052
1055
|
}) || (v.value = void 0), l.value.initLabelList(f);
|
|
1053
1056
|
}
|
|
1054
1057
|
}
|
|
1055
1058
|
function n(a, f) {
|
|
1056
|
-
var
|
|
1059
|
+
var y, p;
|
|
1057
1060
|
v.value && (v.value.select = !1, v.value = void 0);
|
|
1058
|
-
const b = (l.value.labelList || []).findIndex((
|
|
1061
|
+
const b = (l.value.labelList || []).findIndex((s) => s.id === a.id);
|
|
1059
1062
|
if (b > -1) {
|
|
1060
|
-
v.value = (
|
|
1061
|
-
const
|
|
1062
|
-
l.value.area.moveToLabel(
|
|
1063
|
+
v.value = (y = l.value.labelList) == null ? void 0 : y[b], v.value.select = !0;
|
|
1064
|
+
const s = l.value.area.getCenterPoint(a.region);
|
|
1065
|
+
l.value.area.moveToLabel(s), (p = l.value.viewer) != null && p.canvas && l.value.viewer.canvas.focus(), c();
|
|
1063
1066
|
}
|
|
1064
|
-
f &&
|
|
1067
|
+
f && w(f);
|
|
1065
1068
|
}
|
|
1066
1069
|
function d(a) {
|
|
1067
1070
|
return u.labelHandle("add", u.slide, a, r.value).then((f) => {
|
|
@@ -1071,13 +1074,13 @@ function oo(u, e, l, t, y) {
|
|
|
1071
1074
|
});
|
|
1072
1075
|
}
|
|
1073
1076
|
function c() {
|
|
1074
|
-
var f, b,
|
|
1075
|
-
(((f = v.value) == null ? void 0 : f.subType) || ((
|
|
1077
|
+
var f, b, y, p;
|
|
1078
|
+
(((f = v.value) == null ? void 0 : f.subType) || ((y = (b = v.value) == null ? void 0 : b.__data__) == null ? void 0 : y.subType)) === "voice" && ((p = v.value) != null && p.src) && new Audio(v.value.src).play();
|
|
1076
1079
|
}
|
|
1077
1080
|
return {
|
|
1078
1081
|
currentLabel: v,
|
|
1079
1082
|
localLabelList: r,
|
|
1080
|
-
initLabel:
|
|
1083
|
+
initLabel: i,
|
|
1081
1084
|
jumpToLabel: n,
|
|
1082
1085
|
reloadLabelList: h,
|
|
1083
1086
|
eventHandel: m,
|
|
@@ -1093,65 +1096,65 @@ function ao() {
|
|
|
1093
1096
|
};
|
|
1094
1097
|
}
|
|
1095
1098
|
function no(u, e) {
|
|
1096
|
-
const { t: l } = ue(), t = T(!1),
|
|
1099
|
+
const { t: l } = ue(), t = T(!1), w = T();
|
|
1097
1100
|
let v = null;
|
|
1098
|
-
const r = T(!1),
|
|
1101
|
+
const r = T(!1), i = T(0);
|
|
1099
1102
|
let m = 0;
|
|
1100
|
-
const
|
|
1103
|
+
const g = T([]), h = T(void 0);
|
|
1101
1104
|
let n = !1;
|
|
1102
|
-
function d(
|
|
1103
|
-
|
|
1105
|
+
function d(s, I) {
|
|
1106
|
+
s.save(), s.strokeStyle = "rgba(0,0,0,0)", s.miterLimit = 4, s.font = "15px ''", s.fillStyle = I, s.font = " 15px ''", s.scale(0.03125, 0.03125), s.save(), s.font = " 15px ''", s.beginPath(), s.moveTo(515.041727, 670.617766), s.bezierCurveTo(606.625894, 670.617766, 681.137374, 596.113511, 681.137374, 504.52212), s.lineTo(681.137374, 229.350568), s.bezierCurveTo(681.137374, 137.76640100000003, 606.625894, 63.254920999999996, 515.041727, 63.254920999999996), s.bezierCurveTo(423.44311000000005, 63.254920999999996, 348.93885500000005, 137.766401, 348.93885600000004, 229.350568), s.lineTo(348.93885600000004, 504.52212), s.bezierCurveTo(348.93885600000004, 596.113512, 423.44311100000004, 670.617767, 515.041727, 670.617766), s.closePath(), s.fill(), s.stroke(), s.restore(), s.save(), s.font = " 15px ''", s.beginPath(), s.moveTo(801.643237, 874.001665), s.lineTo(558.391759, 874.001665), s.lineTo(558.391759, 828.578057), s.bezierCurveTo(719.899527, 807.264291, 844.993269, 668.7898399999999, 844.993269, 501.55986699999994), s.translate(801.643237, 501.55986699999994), s.rotate(0), s.arc(0, 0, 43.350032, 0, 3.141592653589793, !0), s.rotate(0), s.translate(-801.643237, -501.55986699999994), s.bezierCurveTo(758.2932050000001, 635.684865, 649.166725, 744.811345, 515.0345020000001, 744.811346), s.bezierCurveTo(380.9095040000001, 744.811346, 271.79024900000013, 635.6848659999999, 271.79024900000013, 501.55986699999994), s.translate(228.44021750000013, 501.5664510740879), s.rotate(0), s.arc(0, 0, 43.350032, -15188164315591997e-20, -3.1414407719461273, !0), s.rotate(0), s.translate(-228.44021750000013, -501.5664510740879), s.bezierCurveTo(185.09018600000013, 668.7898389999999, 310.1911530000001, 807.271516, 471.69169500000015, 828.578057), s.lineTo(471.69169500000015, 874.001665), s.lineTo(228.440217, 874.001665), s.translate(228.440217, 917.3516970000001), s.rotate(0), s.arc(0, 0, 43.350032, -1.5707963267948966, 1.5707963267948966, !0), s.rotate(0), s.translate(-228.440217, -917.3516970000001), s.lineTo(801.643237, 960.701729), s.translate(801.643237, 917.3516970000001), s.rotate(0), s.arc(0, 0, 43.350032, 1.5707963267948966, 4.71238898038469, !0), s.rotate(0), s.translate(-801.643237, -917.3516970000001), s.closePath(), s.fill(), s.stroke(), s.restore(), s.restore();
|
|
1104
1107
|
}
|
|
1105
1108
|
function c() {
|
|
1106
1109
|
return $e(this, null, function* () {
|
|
1107
1110
|
try {
|
|
1108
|
-
|
|
1109
|
-
|
|
1111
|
+
w.value = yield navigator.mediaDevices.getUserMedia({ audio: !0 }), v = new MediaRecorder(w.value), g.value = [], v.addEventListener("dataavailable", (s) => {
|
|
1112
|
+
g.value.push(s.data);
|
|
1110
1113
|
}), v.addEventListener("stop", () => $e(this, null, function* () {
|
|
1111
1114
|
if (h.value) {
|
|
1112
|
-
const
|
|
1113
|
-
h.value.src = URL.createObjectURL(
|
|
1115
|
+
const s = new Blob(g.value, { type: u.audioType || "audio/wav" });
|
|
1116
|
+
h.value.src = URL.createObjectURL(s);
|
|
1114
1117
|
}
|
|
1115
1118
|
r.value = !1, n && (yield p());
|
|
1116
1119
|
})), v.start(), r.value = !0, m = window.setInterval(() => {
|
|
1117
|
-
|
|
1120
|
+
i.value++;
|
|
1118
1121
|
}, 1e3);
|
|
1119
|
-
} catch (
|
|
1122
|
+
} catch (s) {
|
|
1120
1123
|
Lt.error(l("麦克风启用失败,请确认是否开启麦克风权限"));
|
|
1121
1124
|
}
|
|
1122
1125
|
});
|
|
1123
1126
|
}
|
|
1124
1127
|
function a() {
|
|
1125
|
-
|
|
1128
|
+
w.value && v ? (v.stop(), w.value.getTracks().forEach((s) => s.stop()), v = null, w.value = void 0) : (v = null, w.value = void 0), r.value = !1, m && (clearInterval(m), m = 0), i.value = 0;
|
|
1126
1129
|
}
|
|
1127
|
-
function f(
|
|
1128
|
-
t.value = !0, h.value =
|
|
1130
|
+
function f(s) {
|
|
1131
|
+
t.value = !0, h.value = s, g.value = [], n = !1;
|
|
1129
1132
|
}
|
|
1130
1133
|
function b() {
|
|
1131
1134
|
r.value && a(), t.value = !1, r.value = !1, n = !1;
|
|
1132
1135
|
}
|
|
1133
|
-
function
|
|
1136
|
+
function y() {
|
|
1134
1137
|
return $e(this, null, function* () {
|
|
1135
|
-
if (!r.value && !
|
|
1138
|
+
if (!r.value && !g.value.length) {
|
|
1136
1139
|
Lt.error(l("请先录音"));
|
|
1137
1140
|
return;
|
|
1138
1141
|
}
|
|
1139
|
-
r.value && a(), r.value = !1, n = !0,
|
|
1142
|
+
r.value && a(), r.value = !1, n = !0, g.value.length && (yield p()), t.value = !1;
|
|
1140
1143
|
});
|
|
1141
1144
|
}
|
|
1142
1145
|
function p() {
|
|
1143
1146
|
return $e(this, null, function* () {
|
|
1144
1147
|
if (u.uploadHandle && h.value) {
|
|
1145
|
-
const
|
|
1148
|
+
const s = Et.service({
|
|
1146
1149
|
text: l("录音上传中")
|
|
1147
|
-
}), I = new Blob(
|
|
1148
|
-
|
|
1150
|
+
}), I = new Blob(g.value, { type: u.audioType || "audio/wav" });
|
|
1151
|
+
g.value = [];
|
|
1149
1152
|
try {
|
|
1150
|
-
yield u.uploadHandle(u.slide, h.value, I).then((
|
|
1151
|
-
h.value.src =
|
|
1152
|
-
}),
|
|
1153
|
-
} catch (
|
|
1154
|
-
|
|
1153
|
+
yield u.uploadHandle(u.slide, h.value, I).then((N) => {
|
|
1154
|
+
h.value.src = N;
|
|
1155
|
+
}), s.close(), e(h.value);
|
|
1156
|
+
} catch (N) {
|
|
1157
|
+
s.close();
|
|
1155
1158
|
}
|
|
1156
1159
|
}
|
|
1157
1160
|
});
|
|
@@ -1159,18 +1162,18 @@ function no(u, e) {
|
|
|
1159
1162
|
return {
|
|
1160
1163
|
voiceVisible: t,
|
|
1161
1164
|
voiceForm: h,
|
|
1162
|
-
recordTime:
|
|
1165
|
+
recordTime: i,
|
|
1163
1166
|
isRecording: r,
|
|
1164
1167
|
drawVoice: d,
|
|
1165
1168
|
startRecording: c,
|
|
1166
1169
|
stopRecording: a,
|
|
1167
1170
|
initVoice: f,
|
|
1168
1171
|
cancelRecord: b,
|
|
1169
|
-
confirmRecord:
|
|
1172
|
+
confirmRecord: y
|
|
1170
1173
|
};
|
|
1171
1174
|
}
|
|
1172
1175
|
function so(u, e, l) {
|
|
1173
|
-
const t = T([]),
|
|
1176
|
+
const t = T([]), w = T(0), v = T(!1);
|
|
1174
1177
|
let r = null;
|
|
1175
1178
|
ee(() => {
|
|
1176
1179
|
var c;
|
|
@@ -1178,9 +1181,9 @@ function so(u, e, l) {
|
|
|
1178
1181
|
}, (c) => {
|
|
1179
1182
|
var a, f, b;
|
|
1180
1183
|
if ((f = (a = e.value) == null ? void 0 : a.viewer) != null && f.world) {
|
|
1181
|
-
|
|
1182
|
-
const
|
|
1183
|
-
|
|
1184
|
+
w.value = 0;
|
|
1185
|
+
const y = e.value.viewer.world.getItemAt(0);
|
|
1186
|
+
y && (y.tilesMatrix = {}, y.draw());
|
|
1184
1187
|
}
|
|
1185
1188
|
c && ((b = u.analysis) != null && b.zoom_roi) && l({
|
|
1186
1189
|
x: u.analysis.zoom_roi.x,
|
|
@@ -1189,18 +1192,18 @@ function so(u, e, l) {
|
|
|
1189
1192
|
height: u.analysis.zoom_roi.h
|
|
1190
1193
|
}, 5);
|
|
1191
1194
|
}), he(() => {
|
|
1192
|
-
window.addEventListener("mousemove",
|
|
1195
|
+
window.addEventListener("mousemove", g), window.addEventListener("mouseup", n);
|
|
1193
1196
|
}), Ie(() => {
|
|
1194
|
-
window.removeEventListener("mousemove",
|
|
1197
|
+
window.removeEventListener("mousemove", g), window.removeEventListener("mouseup", n);
|
|
1195
1198
|
});
|
|
1196
|
-
function
|
|
1197
|
-
var
|
|
1199
|
+
function i(c, a, f) {
|
|
1200
|
+
var y, p, s, I;
|
|
1198
1201
|
const b = we(W({}, a), {
|
|
1199
|
-
file: (
|
|
1202
|
+
file: (y = u.analysis) == null ? void 0 : y.hotmap_path
|
|
1200
1203
|
});
|
|
1201
1204
|
if ((p = u.analysis) != null && p.hotmap_info) {
|
|
1202
1205
|
if (f[a.x + "_" + a.y + "_" + Number(a.scale)])
|
|
1203
|
-
if (((
|
|
1206
|
+
if (((s = u.analysis) == null ? void 0 : s.hotmap_type) === "drag")
|
|
1204
1207
|
m(c, b);
|
|
1205
1208
|
else
|
|
1206
1209
|
return u.tileHandle(b);
|
|
@@ -1225,8 +1228,8 @@ function so(u, e, l) {
|
|
|
1225
1228
|
}, f.img = b;
|
|
1226
1229
|
}
|
|
1227
1230
|
}
|
|
1228
|
-
function
|
|
1229
|
-
v.value && r && (
|
|
1231
|
+
function g(c) {
|
|
1232
|
+
v.value && r && (w.value += c.x - r.x, w.value < 0 ? w.value = 0 : w.value > e.value.$options.width && (w.value = e.value.$options.width, v.value = !1), e.value.viewer.forceRedraw()), r = { x: c.x, y: c.y };
|
|
1230
1233
|
}
|
|
1231
1234
|
function h(c) {
|
|
1232
1235
|
const { x: a, y: f } = c;
|
|
@@ -1240,95 +1243,95 @@ function so(u, e, l) {
|
|
|
1240
1243
|
context: a,
|
|
1241
1244
|
sourceWidth: f,
|
|
1242
1245
|
sourceHeight: b,
|
|
1243
|
-
position:
|
|
1246
|
+
position: y,
|
|
1244
1247
|
size: p,
|
|
1245
|
-
initRendered:
|
|
1248
|
+
initRendered: s,
|
|
1246
1249
|
tile: I,
|
|
1247
|
-
pixelDensityRatio:
|
|
1248
|
-
} = c, P = I.getUrl(), te =
|
|
1250
|
+
pixelDensityRatio: N
|
|
1251
|
+
} = c, P = I.getUrl(), te = w.value * N, ne = y.original.x;
|
|
1249
1252
|
if (ne < te && ne + p.x > te) {
|
|
1250
|
-
const j = te - ne, re = p.x - j, le = t.value.find((Se) => Se.url === P), Me = (le == null ? void 0 : le.load) === "success" ? le.img :
|
|
1253
|
+
const j = te - ne, re = p.x - j, le = t.value.find((Se) => Se.url === P), Me = (le == null ? void 0 : le.load) === "success" ? le.img : s.canvas;
|
|
1251
1254
|
a.drawImage(
|
|
1252
1255
|
Me,
|
|
1253
1256
|
0,
|
|
1254
1257
|
0,
|
|
1255
1258
|
f * j / p.x,
|
|
1256
1259
|
b,
|
|
1257
|
-
|
|
1258
|
-
|
|
1260
|
+
y.x,
|
|
1261
|
+
y.y,
|
|
1259
1262
|
j,
|
|
1260
1263
|
p.y
|
|
1261
1264
|
), a.drawImage(
|
|
1262
|
-
|
|
1265
|
+
s.canvas,
|
|
1263
1266
|
f * j / p.x,
|
|
1264
1267
|
0,
|
|
1265
1268
|
f * re / p.x,
|
|
1266
1269
|
b,
|
|
1267
|
-
|
|
1268
|
-
|
|
1270
|
+
y.x + j,
|
|
1271
|
+
y.y,
|
|
1269
1272
|
re,
|
|
1270
1273
|
p.y
|
|
1271
1274
|
);
|
|
1272
1275
|
} else if (ne + p.x <= te) {
|
|
1273
|
-
const j = t.value.find((le) => le.url === P), re = (j == null ? void 0 : j.load) === "success" ? j.img :
|
|
1276
|
+
const j = t.value.find((le) => le.url === P), re = (j == null ? void 0 : j.load) === "success" ? j.img : s.canvas;
|
|
1274
1277
|
a.drawImage(
|
|
1275
1278
|
re,
|
|
1276
1279
|
0,
|
|
1277
1280
|
0,
|
|
1278
1281
|
f,
|
|
1279
1282
|
b,
|
|
1280
|
-
|
|
1281
|
-
|
|
1283
|
+
y.x,
|
|
1284
|
+
y.y,
|
|
1282
1285
|
p.x,
|
|
1283
1286
|
p.y
|
|
1284
1287
|
);
|
|
1285
1288
|
} else ne >= te && a.drawImage(
|
|
1286
|
-
|
|
1289
|
+
s.canvas,
|
|
1287
1290
|
0,
|
|
1288
1291
|
0,
|
|
1289
1292
|
f,
|
|
1290
1293
|
b,
|
|
1291
|
-
|
|
1292
|
-
|
|
1294
|
+
y.x,
|
|
1295
|
+
y.y,
|
|
1293
1296
|
p.x,
|
|
1294
1297
|
p.y
|
|
1295
1298
|
);
|
|
1296
1299
|
}
|
|
1297
1300
|
return {
|
|
1298
|
-
getHotmapUrl:
|
|
1301
|
+
getHotmapUrl: i,
|
|
1299
1302
|
hotmapImgs: t,
|
|
1300
1303
|
handlerImage: d,
|
|
1301
|
-
hotmapLine:
|
|
1304
|
+
hotmapLine: w,
|
|
1302
1305
|
lineMouseDown: h
|
|
1303
1306
|
};
|
|
1304
1307
|
}
|
|
1305
1308
|
function io(u, e, l) {
|
|
1306
|
-
const t = sl(),
|
|
1309
|
+
const t = sl(), w = T(!1), v = new BroadcastChannel("sync_kfb_view");
|
|
1307
1310
|
v.onmessage = (n) => {
|
|
1308
1311
|
const d = n.data;
|
|
1309
|
-
|
|
1312
|
+
g(d);
|
|
1310
1313
|
}, he(() => {
|
|
1311
1314
|
var n, d, c;
|
|
1312
|
-
(n = l.value) == null || n.addEventListener("mouseenter", r), (d = l.value) == null || d.addEventListener("mousemove", r), (c = l.value) == null || c.addEventListener("mouseleave",
|
|
1315
|
+
(n = l.value) == null || n.addEventListener("mouseenter", r), (d = l.value) == null || d.addEventListener("mousemove", r), (c = l.value) == null || c.addEventListener("mouseleave", i);
|
|
1313
1316
|
}), Ie(() => {
|
|
1314
1317
|
var n, d, c;
|
|
1315
|
-
(n = l.value) == null || n.removeEventListener("mouseenter", r), (d = l.value) == null || d.removeEventListener("mousemove", r), (c = l.value) == null || c.removeEventListener("mouseleave",
|
|
1318
|
+
(n = l.value) == null || n.removeEventListener("mouseenter", r), (d = l.value) == null || d.removeEventListener("mousemove", r), (c = l.value) == null || c.removeEventListener("mouseleave", i), v.close();
|
|
1316
1319
|
});
|
|
1317
1320
|
function r() {
|
|
1318
|
-
|
|
1321
|
+
w.value = !0;
|
|
1319
1322
|
}
|
|
1320
|
-
function
|
|
1321
|
-
|
|
1323
|
+
function i() {
|
|
1324
|
+
w.value = !1;
|
|
1322
1325
|
}
|
|
1323
1326
|
function m() {
|
|
1324
1327
|
let n;
|
|
1325
1328
|
e.value.viewer.addHandler("pan", (d) => {
|
|
1326
|
-
var f, b,
|
|
1329
|
+
var f, b, y, p;
|
|
1327
1330
|
if (!n) {
|
|
1328
1331
|
n = (b = (f = d.center) == null ? void 0 : f.clone) == null ? void 0 : b.call(f);
|
|
1329
1332
|
return;
|
|
1330
1333
|
}
|
|
1331
|
-
const c = d.center, a = (
|
|
1334
|
+
const c = d.center, a = (y = c == null ? void 0 : c.minus) == null ? void 0 : y.call(c, n);
|
|
1332
1335
|
n = (p = c == null ? void 0 : c.clone) == null ? void 0 : p.call(c), u.syncPosition && h({
|
|
1333
1336
|
position: a,
|
|
1334
1337
|
type: "sync_position"
|
|
@@ -1352,12 +1355,12 @@ function io(u, e, l) {
|
|
|
1352
1355
|
});
|
|
1353
1356
|
});
|
|
1354
1357
|
}
|
|
1355
|
-
function
|
|
1358
|
+
function g(n) {
|
|
1356
1359
|
n.uuid && n.type === "sync_position" && n.uuid !== (t == null ? void 0 : t.uid) ? e.value && e.value.viewer.viewport.panBy(n.position, !0) : n.uuid && n.type === "sync_zoom" && n.uuid !== (t == null ? void 0 : t.uid) && e.value && e.value.viewer.viewport.zoomTo(n.zoom);
|
|
1357
1360
|
}
|
|
1358
1361
|
function h(n) {
|
|
1359
1362
|
var d;
|
|
1360
|
-
|
|
1363
|
+
w.value && v.postMessage(we(W({}, n), {
|
|
1361
1364
|
uuid: t == null ? void 0 : t.uid,
|
|
1362
1365
|
fileName: (d = u.slide) == null ? void 0 : d.file
|
|
1363
1366
|
}));
|
|
@@ -1378,9 +1381,9 @@ const ro = { class: "hzzt-kfb-keyword flex wrap" }, uo = ["onMouseenter"], co =
|
|
|
1378
1381
|
{ code: "D", icon: "arrowRight" }
|
|
1379
1382
|
]), l = Z("kfbView", T({}));
|
|
1380
1383
|
let t = null;
|
|
1381
|
-
function
|
|
1384
|
+
function w(r, i) {
|
|
1382
1385
|
r.preventDefault(), t && clearTimeout(t), t = setInterval(() => {
|
|
1383
|
-
|
|
1386
|
+
i === "E" && (l.value.viewer.viewport.zoomBy(1.1), l.value.viewer.viewport.applyConstraints()), i === "Q" && (l.value.viewer.viewport.zoomBy(0.9), l.value.viewer.viewport.applyConstraints()), i === "W" && (l.value.viewer.viewport.panBy(l.value.viewer.viewport.deltaPointsFromPixels(new Le.Point(0, -40))), l.value.viewer.viewport.applyConstraints()), i === "S" && (l.value.viewer.viewport.panBy(l.value.viewer.viewport.deltaPointsFromPixels(new Le.Point(0, 40))), l.value.viewer.viewport.applyConstraints()), i === "A" && (l.value.viewer.viewport.panBy(l.value.viewer.viewport.deltaPointsFromPixels(new Le.Point(-40, 0))), l.value.viewer.viewport.applyConstraints()), i === "D" && (l.value.viewer.viewport.panBy(l.value.viewer.viewport.deltaPointsFromPixels(new Le.Point(40, 0))), l.value.viewer.viewport.applyConstraints());
|
|
1384
1387
|
}, 120);
|
|
1385
1388
|
}
|
|
1386
1389
|
function v() {
|
|
@@ -1388,11 +1391,11 @@ const ro = { class: "hzzt-kfb-keyword flex wrap" }, uo = ["onMouseenter"], co =
|
|
|
1388
1391
|
}
|
|
1389
1392
|
return Ie(() => {
|
|
1390
1393
|
clearTimeout(t);
|
|
1391
|
-
}), (r,
|
|
1392
|
-
(
|
|
1394
|
+
}), (r, i) => (_(), x("div", ro, [
|
|
1395
|
+
(_(!0), x(oe, null, ae(e.value, (m) => (_(), x("div", {
|
|
1393
1396
|
key: m.code,
|
|
1394
1397
|
class: "hzzt-kfb-keyword__code flex column align-items-center justify-content-center",
|
|
1395
|
-
onMouseenter: (
|
|
1398
|
+
onMouseenter: (g) => w(g, m.code),
|
|
1396
1399
|
onMouseleave: v
|
|
1397
1400
|
}, [
|
|
1398
1401
|
k("p", null, E(m.code), 1),
|
|
@@ -1408,53 +1411,53 @@ function fo(u, e, l = {}) {
|
|
|
1408
1411
|
const {
|
|
1409
1412
|
panSensitivity: t = 0.2,
|
|
1410
1413
|
// 值越大,鼠标移动时图像移动越快
|
|
1411
|
-
zoomSensitivity:
|
|
1414
|
+
zoomSensitivity: w = 1.1,
|
|
1412
1415
|
// 值越大,滚轮缩放幅度越大
|
|
1413
1416
|
damping: v = 0.6,
|
|
1414
1417
|
// 值越大,惯性滑动时间越长
|
|
1415
1418
|
minThreshold: r = 0.05
|
|
1416
1419
|
// 值越小,停止移动时的精度越高
|
|
1417
1420
|
} = l;
|
|
1418
|
-
let
|
|
1421
|
+
let i = !1, m = null, g = 0, h = 0, n = !1;
|
|
1419
1422
|
const d = () => {
|
|
1420
|
-
|
|
1423
|
+
i = document.pointerLockElement === e.value, i || c();
|
|
1421
1424
|
}, c = () => {
|
|
1422
|
-
|
|
1423
|
-
}, a = (
|
|
1425
|
+
g = 0, h = 0, m && (cancelAnimationFrame(m), m = null), n = !1;
|
|
1426
|
+
}, a = (s) => $e(this, null, function* () {
|
|
1424
1427
|
try {
|
|
1425
|
-
|
|
1428
|
+
s.key === "l" && e.value && (document.pointerLockElement ? (document.exitPointerLock(), console.log("鼠标已解锁!")) : (yield e.value.requestPointerLock(), console.log("鼠标已锁定!")));
|
|
1426
1429
|
} catch (I) {
|
|
1427
1430
|
console.error("无法锁定鼠标:", I);
|
|
1428
1431
|
}
|
|
1429
|
-
}), f = (
|
|
1430
|
-
if (
|
|
1431
|
-
|
|
1432
|
-
const I = Math.pow(
|
|
1432
|
+
}), f = (s) => {
|
|
1433
|
+
if (i) {
|
|
1434
|
+
s.preventDefault();
|
|
1435
|
+
const I = Math.pow(w, Math.sign(s.deltaY) * -1);
|
|
1433
1436
|
u.value.viewer.viewport.zoomBy(I), u.value.viewer.viewport.applyConstraints();
|
|
1434
1437
|
}
|
|
1435
|
-
}, b = (
|
|
1436
|
-
|
|
1437
|
-
},
|
|
1438
|
-
const
|
|
1439
|
-
if (Math.abs(
|
|
1440
|
-
const I =
|
|
1441
|
-
new Le.Point(
|
|
1438
|
+
}, b = (s) => {
|
|
1439
|
+
i && (g += s.movementX * t, h += s.movementY * t, !n && (Math.abs(g) > 1 || Math.abs(h) > 1) && (n = !0, m = requestAnimationFrame(y)));
|
|
1440
|
+
}, y = () => {
|
|
1441
|
+
const s = u.value.viewer.viewport;
|
|
1442
|
+
if (Math.abs(g) > r || Math.abs(h) > r) {
|
|
1443
|
+
const I = s.deltaPointsFromPixels(
|
|
1444
|
+
new Le.Point(g, h)
|
|
1442
1445
|
);
|
|
1443
|
-
|
|
1446
|
+
s.panBy(I), s.applyConstraints();
|
|
1444
1447
|
}
|
|
1445
|
-
|
|
1448
|
+
g *= v, h *= v, Math.abs(g) > r || Math.abs(h) > r ? m = requestAnimationFrame(y) : c();
|
|
1446
1449
|
}, p = () => {
|
|
1447
|
-
|
|
1450
|
+
i && document.exitPointerLock();
|
|
1448
1451
|
};
|
|
1449
1452
|
return he(() => {
|
|
1450
|
-
var
|
|
1451
|
-
(
|
|
1453
|
+
var s;
|
|
1454
|
+
(s = e.value) == null || s.addEventListener("keydown", a), document.addEventListener("wheel", f, { passive: !1 }), document.addEventListener("click", p), document.addEventListener("mousemove", b), document.addEventListener("pointerlockchange", d);
|
|
1452
1455
|
}), Ie(() => {
|
|
1453
|
-
var
|
|
1454
|
-
(
|
|
1456
|
+
var s;
|
|
1457
|
+
(s = e.value) == null || s.removeEventListener("keydown", a), document.removeEventListener("click", p), document.removeEventListener("wheel", f), document.removeEventListener("mousemove", b), document.removeEventListener("pointerlockchange", d), c();
|
|
1455
1458
|
}), {
|
|
1456
|
-
setConfig: (
|
|
1457
|
-
Object.assign(l,
|
|
1459
|
+
setConfig: (s) => {
|
|
1460
|
+
Object.assign(l, s);
|
|
1458
1461
|
}
|
|
1459
1462
|
};
|
|
1460
1463
|
}
|
|
@@ -1470,14 +1473,14 @@ const mo = /* @__PURE__ */ J({
|
|
|
1470
1473
|
}),
|
|
1471
1474
|
emits: ["update:model-value"],
|
|
1472
1475
|
setup(u) {
|
|
1473
|
-
const e = u, l = Be(u, "model-value"), t = Z("kfbView", T({})),
|
|
1476
|
+
const e = u, l = Be(u, "model-value"), t = Z("kfbView", T({})), w = B(() => Array.from(new Array(e.slides.length + 1)).map((r, i) => i));
|
|
1474
1477
|
function v() {
|
|
1475
|
-
const r = t.value.viewer.world.getItemAt(0),
|
|
1476
|
-
|
|
1477
|
-
|
|
1478
|
+
const r = t.value.viewer.world.getItemAt(0), i = Object.keys(r.tilesMatrix);
|
|
1479
|
+
i.forEach((m, g) => {
|
|
1480
|
+
g > i.length - 4 && (r.tilesMatrix[m] = {});
|
|
1478
1481
|
}), r.draw();
|
|
1479
1482
|
}
|
|
1480
|
-
return (r,
|
|
1483
|
+
return (r, i) => (_(), x("div", {
|
|
1481
1484
|
class: ke(["hzzt-kfb-level flex column align-items-center", r.slides.length > 5 ? "hzzt-kfb-level--large" : ""])
|
|
1482
1485
|
}, [
|
|
1483
1486
|
C(Q, {
|
|
@@ -1487,11 +1490,11 @@ const mo = /* @__PURE__ */ J({
|
|
|
1487
1490
|
}),
|
|
1488
1491
|
C(o(cl), {
|
|
1489
1492
|
modelValue: l.value,
|
|
1490
|
-
"onUpdate:modelValue":
|
|
1493
|
+
"onUpdate:modelValue": i[0] || (i[0] = (m) => l.value = m),
|
|
1491
1494
|
vertical: "",
|
|
1492
|
-
min:
|
|
1495
|
+
min: w.value[0],
|
|
1493
1496
|
step: 1,
|
|
1494
|
-
max:
|
|
1497
|
+
max: w.value[w.value.length - 1],
|
|
1495
1498
|
"show-stops": "",
|
|
1496
1499
|
"show-tooltip": !0,
|
|
1497
1500
|
placement: "left",
|
|
@@ -1515,7 +1518,7 @@ const mo = /* @__PURE__ */ J({
|
|
|
1515
1518
|
}),
|
|
1516
1519
|
emits: /* @__PURE__ */ be(["load"], ["update:model-value"]),
|
|
1517
1520
|
setup(u, { emit: e }) {
|
|
1518
|
-
const l = u, t = e,
|
|
1521
|
+
const l = u, t = e, w = Be(u, "model-value"), v = [
|
|
1519
1522
|
{ key: "DAPI", color: "#4A6CF7" },
|
|
1520
1523
|
{ key: "480", color: "#00BFFF" },
|
|
1521
1524
|
{ key: "520", color: "#32CD32" },
|
|
@@ -1523,29 +1526,29 @@ const mo = /* @__PURE__ */ J({
|
|
|
1523
1526
|
{ key: "620", color: "#FF6347" },
|
|
1524
1527
|
{ key: "670", color: "#DC143C" },
|
|
1525
1528
|
{ key: "780", color: "#4B0082" }
|
|
1526
|
-
], r =
|
|
1529
|
+
], r = B(() => {
|
|
1527
1530
|
var m;
|
|
1528
|
-
return (((m = l.info) == null ? void 0 : m.channel) || []).map((
|
|
1529
|
-
const h = v.find((n) => n.key ===
|
|
1531
|
+
return (((m = l.info) == null ? void 0 : m.channel) || []).map((g) => {
|
|
1532
|
+
const h = v.find((n) => n.key === g.eqt_num);
|
|
1530
1533
|
return {
|
|
1531
|
-
label:
|
|
1532
|
-
color:
|
|
1534
|
+
label: g.eqt_num,
|
|
1535
|
+
color: g.r ? `rgb(${g.r}, ${g.g}, ${g.b})` : h == null ? void 0 : h.color
|
|
1533
1536
|
};
|
|
1534
1537
|
});
|
|
1535
1538
|
});
|
|
1536
|
-
function
|
|
1537
|
-
|
|
1539
|
+
function i(m) {
|
|
1540
|
+
w.value.includes(m) ? w.value = w.value.filter((g) => g !== m) : w.value.push(m), t("load");
|
|
1538
1541
|
}
|
|
1539
|
-
return (m,
|
|
1542
|
+
return (m, g) => r.value.length > 0 ? (_(), x("div", po, [
|
|
1540
1543
|
C(Q, {
|
|
1541
1544
|
name: "channel",
|
|
1542
1545
|
size: "32"
|
|
1543
1546
|
}),
|
|
1544
|
-
(
|
|
1547
|
+
(_(!0), x(oe, null, ae(r.value, (h) => (_(), x("div", {
|
|
1545
1548
|
key: h.label,
|
|
1546
1549
|
style: q({ background: h.color }),
|
|
1547
|
-
class: ke(["hzzt-kfb-channel__box",
|
|
1548
|
-
onClick: (n) =>
|
|
1550
|
+
class: ke(["hzzt-kfb-channel__box", w.value.includes(h.label) ? "" : "hzzt-kfb-channel__box--unactive"]),
|
|
1551
|
+
onClick: (n) => i(h.label)
|
|
1549
1552
|
}, E(h.label), 15, ho))), 128))
|
|
1550
1553
|
])) : R("", !0);
|
|
1551
1554
|
}
|
|
@@ -1560,42 +1563,42 @@ const mo = /* @__PURE__ */ J({
|
|
|
1560
1563
|
}),
|
|
1561
1564
|
emits: /* @__PURE__ */ be(["select"], ["update:expand"]),
|
|
1562
1565
|
setup(u, { emit: e }) {
|
|
1563
|
-
const l = Be(u, "expand"), t = e, { t:
|
|
1564
|
-
function v(
|
|
1565
|
-
const m =
|
|
1566
|
+
const l = Be(u, "expand"), t = e, { t: w } = ue();
|
|
1567
|
+
function v(i) {
|
|
1568
|
+
const m = i.subType || i.tool || "";
|
|
1566
1569
|
return `mark${m.substring(0, 1).toLocaleUpperCase()}${m.substring(1)}`;
|
|
1567
1570
|
}
|
|
1568
|
-
function r(
|
|
1569
|
-
t("select",
|
|
1571
|
+
function r(i) {
|
|
1572
|
+
t("select", i);
|
|
1570
1573
|
}
|
|
1571
|
-
return (
|
|
1574
|
+
return (i, m) => (_(), x("div", {
|
|
1572
1575
|
class: ke(["hzzt-kfb-annotation flex column", l.value ? "hzzt-kfb-annotation--expand" : ""])
|
|
1573
1576
|
}, [
|
|
1574
1577
|
k("div", yo, [
|
|
1575
1578
|
xe(k("div", wo, [
|
|
1576
|
-
k("span", null, E(o(
|
|
1579
|
+
k("span", null, E(o(w)("标注列表")), 1)
|
|
1577
1580
|
], 512), [
|
|
1578
1581
|
[Ae, l.value]
|
|
1579
1582
|
]),
|
|
1580
1583
|
C(Q, {
|
|
1581
1584
|
class: "hzzt-kfb-annotation__icon",
|
|
1582
1585
|
name: l.value ? "expandLeft" : "expandRight",
|
|
1583
|
-
onClick: m[0] || (m[0] = (
|
|
1586
|
+
onClick: m[0] || (m[0] = (g) => l.value = !l.value)
|
|
1584
1587
|
}, null, 8, ["name"])
|
|
1585
1588
|
]),
|
|
1586
1589
|
xe(k("div", _o, [
|
|
1587
|
-
(
|
|
1590
|
+
(_(!0), x(oe, null, ae(i.annotations, (g, h) => {
|
|
1588
1591
|
var n;
|
|
1589
|
-
return
|
|
1590
|
-
class: ke(["hzzt-kfb-annotation__item", ((n =
|
|
1592
|
+
return _(), x("div", {
|
|
1593
|
+
class: ke(["hzzt-kfb-annotation__item", ((n = i.annotation) == null ? void 0 : n.id) === g.id ? "hzzt-kfb-annotation__item--active" : ""]),
|
|
1591
1594
|
key: h,
|
|
1592
|
-
onClick: (d) => r(
|
|
1595
|
+
onClick: (d) => r(g)
|
|
1593
1596
|
}, [
|
|
1594
1597
|
C(Q, {
|
|
1595
1598
|
size: "16",
|
|
1596
|
-
name: v(
|
|
1599
|
+
name: v(g)
|
|
1597
1600
|
}, null, 8, ["name"]),
|
|
1598
|
-
k("span", null, E(o(
|
|
1601
|
+
k("span", null, E(o(w)("标注")) + E(h + 1), 1)
|
|
1599
1602
|
], 10, bo);
|
|
1600
1603
|
}), 128))
|
|
1601
1604
|
], 512), [
|
|
@@ -1606,9 +1609,9 @@ const mo = /* @__PURE__ */ J({
|
|
|
1606
1609
|
}), zo = /* @__PURE__ */ ge(ko, [["__scopeId", "data-v-bfc56a3e"]]);
|
|
1607
1610
|
function St(u) {
|
|
1608
1611
|
const { t: e } = ue();
|
|
1609
|
-
return
|
|
1610
|
-
var
|
|
1611
|
-
const t = ((
|
|
1612
|
+
return B(() => {
|
|
1613
|
+
var w;
|
|
1614
|
+
const t = ((w = u == null ? void 0 : u.analysis) == null ? void 0 : w.result) || "";
|
|
1612
1615
|
return t.indexOf("疑似阳性") > -1 ? {
|
|
1613
1616
|
type: "warning",
|
|
1614
1617
|
name: t
|
|
@@ -1672,14 +1675,14 @@ const Co = ["element-loading-text"], $o = {
|
|
|
1672
1675
|
il((z) => ({
|
|
1673
1676
|
e3fd940a: ne.value
|
|
1674
1677
|
}));
|
|
1675
|
-
const t = u,
|
|
1678
|
+
const t = u, w = l, { t: v, locale: r } = ue(), i = T(), m = T(), g = T(), h = T(!1), n = T({}), d = T(!1), c = T(0), a = T(0), f = T(0), b = T([]), y = T({
|
|
1676
1679
|
width: 0,
|
|
1677
1680
|
height: 0,
|
|
1678
1681
|
fileNum: 0,
|
|
1679
1682
|
scanScale: 1,
|
|
1680
1683
|
fileName: "",
|
|
1681
1684
|
ratiomap: {}
|
|
1682
|
-
}), p = Z("show-kfb-label", T(!0)),
|
|
1685
|
+
}), p = Z("show-kfb-label", T(!0)), s = Z("show-keyboard", T(!1)), I = Z("show-watermark", T(!1)), N = T(!1), P = Et.directive;
|
|
1683
1686
|
ee(() => {
|
|
1684
1687
|
var z;
|
|
1685
1688
|
return (z = t.slide) == null ? void 0 : z.file;
|
|
@@ -1690,7 +1693,7 @@ const Co = ["element-loading-text"], $o = {
|
|
|
1690
1693
|
}), he(() => {
|
|
1691
1694
|
ft();
|
|
1692
1695
|
});
|
|
1693
|
-
const te = St(t), ne =
|
|
1696
|
+
const te = St(t), ne = B(() => {
|
|
1694
1697
|
var z, V;
|
|
1695
1698
|
return `url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='150' height='100'><text x='30' y='80' font-family='Arial' font-size='16' fill='${((z = t.watermark) == null ? void 0 : z.color) || "rgba(0,0,0,0.2)"}' transform='rotate(-30)' text-anchor='middle'>${((V = t.watermark) == null ? void 0 : V.text) || "水印文字"}</text></svg>")`;
|
|
1696
1699
|
}), {
|
|
@@ -1701,11 +1704,11 @@ const Co = ["element-loading-text"], $o = {
|
|
|
1701
1704
|
} = Il(t), {
|
|
1702
1705
|
tailorEvent: Se,
|
|
1703
1706
|
shotScreen: ye
|
|
1704
|
-
} = Ml(
|
|
1707
|
+
} = Ml(w, n), {
|
|
1705
1708
|
moveEvent: De,
|
|
1706
1709
|
fastMove: Ye
|
|
1707
|
-
} = lo(n, a), { initSync: Xe } = io(t, n,
|
|
1708
|
-
fo(n,
|
|
1710
|
+
} = lo(n, a), { initSync: Xe } = io(t, n, i);
|
|
1711
|
+
fo(n, i);
|
|
1709
1712
|
const { drawDot: Qe } = ao(), {
|
|
1710
1713
|
voiceVisible: He,
|
|
1711
1714
|
voiceForm: Pe,
|
|
@@ -1725,7 +1728,7 @@ const Co = ["element-loading-text"], $o = {
|
|
|
1725
1728
|
reloadLabelList: At,
|
|
1726
1729
|
eventHandel: Nt,
|
|
1727
1730
|
addHandle: Bt
|
|
1728
|
-
} = oo(t,
|
|
1731
|
+
} = oo(t, w, n, ut, tt);
|
|
1729
1732
|
function Dt(z) {
|
|
1730
1733
|
Bt(z);
|
|
1731
1734
|
}
|
|
@@ -1740,14 +1743,14 @@ const Co = ["element-loading-text"], $o = {
|
|
|
1740
1743
|
var z;
|
|
1741
1744
|
(z = t.slide) != null && z.file && t.fileHandle && (d.value || (d.value = !0, t.fileHandle(t.slide).then((V) => {
|
|
1742
1745
|
var Y, se, me, O;
|
|
1743
|
-
|
|
1746
|
+
y.value = V, b.value = (((Y = y.value) == null ? void 0 : Y.channel) || []).map((U) => U.eqt_num), n.value = new ve(W({
|
|
1744
1747
|
el: m.value,
|
|
1745
1748
|
fileName: (se = t.slide) == null ? void 0 : se.file,
|
|
1746
|
-
scale:
|
|
1749
|
+
scale: y.value.scanScale,
|
|
1747
1750
|
lang: (r == null ? void 0 : r.value) === "en-US" ? "en" : r == null ? void 0 : r.value,
|
|
1748
1751
|
navigator: {
|
|
1749
1752
|
style: "left: 0;bottom: 0",
|
|
1750
|
-
thumbnail:
|
|
1753
|
+
thumbnail: y.value.thumbnailImg,
|
|
1751
1754
|
width: 200,
|
|
1752
1755
|
height: 180
|
|
1753
1756
|
},
|
|
@@ -1762,7 +1765,7 @@ const Co = ["element-loading-text"], $o = {
|
|
|
1762
1765
|
graduation: {
|
|
1763
1766
|
show: !0,
|
|
1764
1767
|
right: 120,
|
|
1765
|
-
bottom: (O = (me =
|
|
1768
|
+
bottom: (O = (me = y.value) == null ? void 0 : me.channel) != null && O.length ? 120 : 30,
|
|
1766
1769
|
tick: {
|
|
1767
1770
|
number: 3,
|
|
1768
1771
|
height: 8
|
|
@@ -1771,10 +1774,10 @@ const Co = ["element-loading-text"], $o = {
|
|
|
1771
1774
|
pxConversion: {
|
|
1772
1775
|
units: ["um", "mm"],
|
|
1773
1776
|
binary: 1e3,
|
|
1774
|
-
imageCapRes:
|
|
1777
|
+
imageCapRes: y.value.imageCapRes || y.value.scanResolution || 1
|
|
1775
1778
|
},
|
|
1776
1779
|
openSeadragonOptions: {
|
|
1777
|
-
maxZoomLevel:
|
|
1780
|
+
maxZoomLevel: y.value.scanScale * 20,
|
|
1778
1781
|
pixelsPerArrowPress: 200,
|
|
1779
1782
|
animationTime: 0,
|
|
1780
1783
|
tileSources: mt()
|
|
@@ -1825,17 +1828,17 @@ const Co = ["element-loading-text"], $o = {
|
|
|
1825
1828
|
}
|
|
1826
1829
|
function mt() {
|
|
1827
1830
|
var me, O;
|
|
1828
|
-
const z =
|
|
1831
|
+
const z = y.value.tileWidth || y.value.imageBlockLen || 256, V = y.value.tileHeight || y.value.imageBlockLen || 256, Y = {};
|
|
1829
1832
|
(me = t.analysis) != null && me.hotmap_path && (((O = t.analysis) == null ? void 0 : O.hotmap_info) || []).forEach((U) => {
|
|
1830
1833
|
Y[U[0] / z + "_" + U[1] / V + "_" + U[2]] = !0;
|
|
1831
1834
|
});
|
|
1832
1835
|
let se = 10;
|
|
1833
|
-
return Object.keys(
|
|
1834
|
-
const D =
|
|
1836
|
+
return Object.keys(y.value.ratiomap).forEach((U) => {
|
|
1837
|
+
const D = y.value.fileNum - Math.sqrt(y.value.scanScale / Number(U));
|
|
1835
1838
|
D > 0 && (se = se ? Math.min(se, D) : D);
|
|
1836
1839
|
}), {
|
|
1837
|
-
height:
|
|
1838
|
-
width:
|
|
1840
|
+
height: y.value.height,
|
|
1841
|
+
width: y.value.width,
|
|
1839
1842
|
tileWidth: z,
|
|
1840
1843
|
tileHeight: V,
|
|
1841
1844
|
minLevel: Math.floor(se || 8),
|
|
@@ -1849,7 +1852,7 @@ const Co = ["element-loading-text"], $o = {
|
|
|
1849
1852
|
level: U,
|
|
1850
1853
|
channel: JSON.stringify(b.value)
|
|
1851
1854
|
};
|
|
1852
|
-
|
|
1855
|
+
y.value.fileNum === U ? (U = y.value.scanScale, X.scale = U.toFixed(6)) : (U = y.value.scanScale / Math.pow(2, y.value.fileNum - U), X.scale = U.toFixed(6)), X.level = Ue, X.file = f.value === 0 ? X.file : ((zt = (kt = t.slide) == null ? void 0 : kt.children) == null ? void 0 : zt[f.value - 1]) || "";
|
|
1853
1856
|
const Re = t.tileHandle(X);
|
|
1854
1857
|
return (Ct = t.analysis) != null && Ct.hotmap_path ? Ut(Re, X, Y) : Re;
|
|
1855
1858
|
}
|
|
@@ -1872,7 +1875,7 @@ const Co = ["element-loading-text"], $o = {
|
|
|
1872
1875
|
}
|
|
1873
1876
|
function Wt() {
|
|
1874
1877
|
var z;
|
|
1875
|
-
(z = n.value) != null && z.destroy && (n.value.destroy(), n.value = {},
|
|
1878
|
+
(z = n.value) != null && z.destroy && (n.value.destroy(), n.value = {}, y.value = {
|
|
1876
1879
|
width: 0,
|
|
1877
1880
|
height: 0,
|
|
1878
1881
|
fileNum: 0,
|
|
@@ -1882,7 +1885,7 @@ const Co = ["element-loading-text"], $o = {
|
|
|
1882
1885
|
}, jt.value = [], b.value = [], a.value = 0, c.value = 0, f.value = 0);
|
|
1883
1886
|
}
|
|
1884
1887
|
function pt(z, V) {
|
|
1885
|
-
z === "annotate" ? ht(V) : z === "tailor" ? ye(V) : z === "info" ? h.value = !0 : z === "flip" ? gt() : z === "delete" ? Nt("delete")(et.value) :
|
|
1888
|
+
z === "annotate" ? ht(V) : z === "tailor" ? ye(V) : z === "info" ? h.value = !0 : z === "flip" ? gt() : z === "delete" ? Nt("delete")(et.value) : w("tool", z, V);
|
|
1886
1889
|
}
|
|
1887
1890
|
function ht(z) {
|
|
1888
1891
|
z.tool === "Voice" && (z.subType = "voice", z.tool = "Dot", z.custom = !0), n.value.board.startDraw(z);
|
|
@@ -1895,7 +1898,7 @@ const Co = ["element-loading-text"], $o = {
|
|
|
1895
1898
|
}
|
|
1896
1899
|
function Zt(z) {
|
|
1897
1900
|
var V, Y;
|
|
1898
|
-
(Y = (V =
|
|
1901
|
+
(Y = (V = g.value) == null ? void 0 : V.scopeChange) == null || Y.call(V, z);
|
|
1899
1902
|
}
|
|
1900
1903
|
function Yt() {
|
|
1901
1904
|
h.value = !0;
|
|
@@ -1943,12 +1946,12 @@ const Co = ["element-loading-text"], $o = {
|
|
|
1943
1946
|
reloadLabelList: At
|
|
1944
1947
|
}), (z, V) => {
|
|
1945
1948
|
var Y, se, me;
|
|
1946
|
-
return
|
|
1949
|
+
return _(), x("div", {
|
|
1947
1950
|
ref_key: "mainKfbViewRef",
|
|
1948
|
-
ref:
|
|
1951
|
+
ref: i,
|
|
1949
1952
|
class: "hzzt-kfb-view"
|
|
1950
1953
|
}, [
|
|
1951
|
-
z.slide.file ? xe((
|
|
1954
|
+
z.slide.file ? xe((_(), x("div", {
|
|
1952
1955
|
key: 0,
|
|
1953
1956
|
ref_key: "kfbViewMainRef",
|
|
1954
1957
|
ref: m,
|
|
@@ -1957,13 +1960,13 @@ const Co = ["element-loading-text"], $o = {
|
|
|
1957
1960
|
"element-loading-background": "rgba(0, 0, 0, 0.8)"
|
|
1958
1961
|
}, null, 8, Co)), [
|
|
1959
1962
|
[o(P), d.value]
|
|
1960
|
-
]) : (
|
|
1963
|
+
]) : (_(), x("div", $o, V[5] || (V[5] = [
|
|
1961
1964
|
k("img", {
|
|
1962
1965
|
style: { width: "50%" },
|
|
1963
1966
|
src: Ze
|
|
1964
1967
|
}, null, -1)
|
|
1965
1968
|
]))),
|
|
1966
|
-
z.analysis && z.analysis.result ? (
|
|
1969
|
+
z.analysis && z.analysis.result ? (_(), H(o(Vt), {
|
|
1967
1970
|
key: 2,
|
|
1968
1971
|
class: "hzzt-kfb-view__tag",
|
|
1969
1972
|
type: o(te).type
|
|
@@ -1973,7 +1976,7 @@ const Co = ["element-loading-text"], $o = {
|
|
|
1973
1976
|
]),
|
|
1974
1977
|
_: 1
|
|
1975
1978
|
}, 8, ["type"])) : R("", !0),
|
|
1976
|
-
(
|
|
1979
|
+
(_(), x("svg", To, [
|
|
1977
1980
|
k("filter", Lo, [
|
|
1978
1981
|
k("feColorMatrix", {
|
|
1979
1982
|
values: o(re),
|
|
@@ -2014,34 +2017,34 @@ const Co = ["element-loading-text"], $o = {
|
|
|
2014
2017
|
}, null, 8, ["menus"]),
|
|
2015
2018
|
C(Ol, Oe(z.microscope, {
|
|
2016
2019
|
ref_key: "microscopeRef",
|
|
2017
|
-
ref:
|
|
2020
|
+
ref: g
|
|
2018
2021
|
}), null, 16),
|
|
2019
|
-
o(p) && z.slide.file &&
|
|
2022
|
+
o(p) && z.slide.file && y.value.labelImg ? (_(), H(to, {
|
|
2020
2023
|
key: 3,
|
|
2021
2024
|
visible: z.showLabel,
|
|
2022
|
-
info:
|
|
2025
|
+
info: y.value,
|
|
2023
2026
|
slide: z.slide,
|
|
2024
2027
|
pathologyHandle: z.pathologyHandle,
|
|
2025
2028
|
onTool: pt
|
|
2026
2029
|
}, null, 8, ["visible", "info", "slide", "pathologyHandle"])) : R("", !0),
|
|
2027
|
-
o(
|
|
2028
|
-
(Y = z.slide.children) != null && Y.length ? (
|
|
2030
|
+
o(s) ? (_(), H(vo, { key: 4 })) : R("", !0),
|
|
2031
|
+
(Y = z.slide.children) != null && Y.length ? (_(), H(mo, {
|
|
2029
2032
|
key: 5,
|
|
2030
2033
|
modelValue: f.value,
|
|
2031
2034
|
"onUpdate:modelValue": V[0] || (V[0] = (O) => f.value = O),
|
|
2032
2035
|
slides: z.slide.children
|
|
2033
2036
|
}, null, 8, ["modelValue", "slides"])) : R("", !0),
|
|
2034
|
-
(me = (se =
|
|
2037
|
+
(me = (se = y.value) == null ? void 0 : se.channel) != null && me.length ? (_(), H(go, {
|
|
2035
2038
|
key: 6,
|
|
2036
2039
|
modelValue: b.value,
|
|
2037
2040
|
"onUpdate:modelValue": V[1] || (V[1] = (O) => b.value = O),
|
|
2038
|
-
info:
|
|
2041
|
+
info: y.value,
|
|
2039
2042
|
onLoad: Ot
|
|
2040
2043
|
}, null, 8, ["modelValue", "info"])) : R("", !0),
|
|
2041
|
-
o(ct).length ? (
|
|
2044
|
+
o(ct).length ? (_(), H(zo, {
|
|
2042
2045
|
key: 7,
|
|
2043
|
-
expand:
|
|
2044
|
-
"onUpdate:expand": V[2] || (V[2] = (O) =>
|
|
2046
|
+
expand: N.value,
|
|
2047
|
+
"onUpdate:expand": V[2] || (V[2] = (O) => N.value = O),
|
|
2045
2048
|
style: q({
|
|
2046
2049
|
top: z.analysis && z.analysis.result ? "24px" : "4px"
|
|
2047
2050
|
}),
|
|
@@ -2067,11 +2070,11 @@ const Co = ["element-loading-text"], $o = {
|
|
|
2067
2070
|
default: L(() => [
|
|
2068
2071
|
k("div", So, [
|
|
2069
2072
|
k("img", {
|
|
2070
|
-
src:
|
|
2073
|
+
src: y.value.labelImg,
|
|
2071
2074
|
style: { height: "180px" }
|
|
2072
2075
|
}, null, 8, Ho),
|
|
2073
2076
|
k("img", {
|
|
2074
|
-
src:
|
|
2077
|
+
src: y.value.previewImg,
|
|
2075
2078
|
style: { height: "180px" },
|
|
2076
2079
|
class: "flex-1"
|
|
2077
2080
|
}, null, 8, Po)
|
|
@@ -2083,7 +2086,7 @@ const Co = ["element-loading-text"], $o = {
|
|
|
2083
2086
|
label: o(v)("文件名")
|
|
2084
2087
|
}, {
|
|
2085
2088
|
default: L(() => [
|
|
2086
|
-
k("span", Ro, E(
|
|
2089
|
+
k("span", Ro, E(y.value.fileName), 1)
|
|
2087
2090
|
]),
|
|
2088
2091
|
_: 1
|
|
2089
2092
|
}, 8, ["label"]),
|
|
@@ -2091,7 +2094,7 @@ const Co = ["element-loading-text"], $o = {
|
|
|
2091
2094
|
label: o(v)("图像像素")
|
|
2092
2095
|
}, {
|
|
2093
2096
|
default: L(() => [
|
|
2094
|
-
k("span", Ao, E(
|
|
2097
|
+
k("span", Ao, E(y.value.width) + "Pixel - " + E(y.value.height) + "Pixel", 1)
|
|
2095
2098
|
]),
|
|
2096
2099
|
_: 1
|
|
2097
2100
|
}, 8, ["label"]),
|
|
@@ -2099,7 +2102,7 @@ const Co = ["element-loading-text"], $o = {
|
|
|
2099
2102
|
label: o(v)("扫描倍率")
|
|
2100
2103
|
}, {
|
|
2101
2104
|
default: L(() => [
|
|
2102
|
-
k("span", No, E(
|
|
2105
|
+
k("span", No, E(y.value.scanScale), 1)
|
|
2103
2106
|
]),
|
|
2104
2107
|
_: 1
|
|
2105
2108
|
}, 8, ["label"]),
|
|
@@ -2107,7 +2110,7 @@ const Co = ["element-loading-text"], $o = {
|
|
|
2107
2110
|
label: o(v)("扫描时刻")
|
|
2108
2111
|
}, {
|
|
2109
2112
|
default: L(() => [
|
|
2110
|
-
k("span", Bo, E(
|
|
2113
|
+
k("span", Bo, E(y.value.scanTime), 1)
|
|
2111
2114
|
]),
|
|
2112
2115
|
_: 1
|
|
2113
2116
|
}, 8, ["label"]),
|
|
@@ -2115,16 +2118,16 @@ const Co = ["element-loading-text"], $o = {
|
|
|
2115
2118
|
label: o(v)("扫描时间")
|
|
2116
2119
|
}, {
|
|
2117
2120
|
default: L(() => [
|
|
2118
|
-
k("span", Do, E(
|
|
2121
|
+
k("span", Do, E(y.value.scanDuration || 0) + "s", 1)
|
|
2119
2122
|
]),
|
|
2120
2123
|
_: 1
|
|
2121
2124
|
}, 8, ["label"]),
|
|
2122
|
-
|
|
2125
|
+
y.value.ext ? (_(), H(o(ie), {
|
|
2123
2126
|
key: 0,
|
|
2124
2127
|
label: o(v)("扫描设备")
|
|
2125
2128
|
}, {
|
|
2126
2129
|
default: L(() => [
|
|
2127
|
-
k("span", Uo, E(
|
|
2130
|
+
k("span", Uo, E(y.value.ext.machineNum || ""), 1)
|
|
2128
2131
|
]),
|
|
2129
2132
|
_: 1
|
|
2130
2133
|
}, 8, ["label"])) : R("", !0)
|
|
@@ -2168,7 +2171,7 @@ const Co = ["element-loading-text"], $o = {
|
|
|
2168
2171
|
default: L(() => {
|
|
2169
2172
|
var U;
|
|
2170
2173
|
return [
|
|
2171
|
-
(U = o(Pe)) != null && U.src ? (
|
|
2174
|
+
(U = o(Pe)) != null && U.src ? (_(), x("audio", {
|
|
2172
2175
|
key: 0,
|
|
2173
2176
|
class: "width-100%",
|
|
2174
2177
|
src: o(Pe).src,
|
|
@@ -2179,9 +2182,9 @@ const Co = ["element-loading-text"], $o = {
|
|
|
2179
2182
|
}),
|
|
2180
2183
|
_: 1
|
|
2181
2184
|
}),
|
|
2182
|
-
(O = o(Pe)) != null && O.src ? R("", !0) : (
|
|
2185
|
+
(O = o(Pe)) != null && O.src ? R("", !0) : (_(), H(o(ie), { key: 0 }, {
|
|
2183
2186
|
default: L(() => [
|
|
2184
|
-
o(A) ? (
|
|
2187
|
+
o(A) ? (_(), H(o(_e), {
|
|
2185
2188
|
key: 1,
|
|
2186
2189
|
type: "danger",
|
|
2187
2190
|
onClick: o(ce)
|
|
@@ -2190,7 +2193,7 @@ const Co = ["element-loading-text"], $o = {
|
|
|
2190
2193
|
K(E(o(v)("结束录音")), 1)
|
|
2191
2194
|
]),
|
|
2192
2195
|
_: 1
|
|
2193
|
-
}, 8, ["onClick"])) : (
|
|
2196
|
+
}, 8, ["onClick"])) : (_(), H(o(_e), {
|
|
2194
2197
|
key: 0,
|
|
2195
2198
|
type: "primary",
|
|
2196
2199
|
onClick: o(F)
|
|
@@ -2200,7 +2203,7 @@ const Co = ["element-loading-text"], $o = {
|
|
|
2200
2203
|
]),
|
|
2201
2204
|
_: 1
|
|
2202
2205
|
}, 8, ["onClick"])),
|
|
2203
|
-
o(A) ? (
|
|
2206
|
+
o(A) ? (_(), x("span", Ko, E(o(v)("录音时长")) + ":" + E(o($)) + "s", 1)) : R("", !0)
|
|
2204
2207
|
]),
|
|
2205
2208
|
_: 1
|
|
2206
2209
|
}))
|
|
@@ -2211,7 +2214,7 @@ const Co = ["element-loading-text"], $o = {
|
|
|
2211
2214
|
]),
|
|
2212
2215
|
_: 1
|
|
2213
2216
|
}, 8, ["modelValue", "title"]),
|
|
2214
|
-
z.analysis && z.analysis.hotmap_path && z.analysis.hotmap_type !== "switch" ? (
|
|
2217
|
+
z.analysis && z.analysis.hotmap_path && z.analysis.hotmap_type !== "switch" ? (_(), x("div", {
|
|
2215
2218
|
key: 8,
|
|
2216
2219
|
class: "hzzt-kfb-view__hotmap",
|
|
2217
2220
|
style: q({ left: o(Kt) + "px" })
|
|
@@ -2255,20 +2258,20 @@ const Co = ["element-loading-text"], $o = {
|
|
|
2255
2258
|
__: [7]
|
|
2256
2259
|
}, 8, ["onMousedown"])
|
|
2257
2260
|
], 4)) : R("", !0),
|
|
2258
|
-
o(I) ? (
|
|
2261
|
+
o(I) ? (_(), x("div", jo)) : R("", !0),
|
|
2259
2262
|
fe(z.$slots, "default")
|
|
2260
2263
|
], 512);
|
|
2261
2264
|
};
|
|
2262
2265
|
}
|
|
2263
2266
|
});
|
|
2264
2267
|
function Oo(u, e) {
|
|
2265
|
-
var b,
|
|
2266
|
-
const l = T(!!((b = u.ai) != null && b.default)), t = T(!!((
|
|
2268
|
+
var b, y;
|
|
2269
|
+
const l = T(!!((b = u.ai) != null && b.default)), t = T(!!((y = u.ai) != null && y.default)), w = T([]), v = B(
|
|
2267
2270
|
() => {
|
|
2268
|
-
var p,
|
|
2269
|
-
return (p = e.value) != null && p.analysis ? Object.prototype.toString.call((
|
|
2271
|
+
var p, s, I, N;
|
|
2272
|
+
return (p = e.value) != null && p.analysis ? Object.prototype.toString.call((s = e.value) == null ? void 0 : s.analysis) === "[object Array]" ? (I = e.value) == null ? void 0 : I.analysis : [(N = e.value) == null ? void 0 : N.analysis] : [];
|
|
2270
2273
|
}
|
|
2271
|
-
), r =
|
|
2274
|
+
), r = B(() => v.value.find((p) => (p == null ? void 0 : p.class) === "IQC")), i = B(() => !!r.value), m = B(() => v.value.find((p) => (p == null ? void 0 : p.class) !== "IQC")), g = B(() => !!m.value), h = B(() => l.value ? m.value : t.value ? r.value : void 0);
|
|
2272
2275
|
ee(() => {
|
|
2273
2276
|
var p;
|
|
2274
2277
|
return (p = u.ai) == null ? void 0 : p.default;
|
|
@@ -2278,23 +2281,23 @@ function Oo(u, e) {
|
|
|
2278
2281
|
var p;
|
|
2279
2282
|
return (p = e == null ? void 0 : e.value) == null ? void 0 : p.id;
|
|
2280
2283
|
}, () => {
|
|
2281
|
-
n(), d();
|
|
2284
|
+
n(!1), d();
|
|
2282
2285
|
}), he(() => {
|
|
2283
2286
|
n(), d();
|
|
2284
2287
|
});
|
|
2285
|
-
function n() {
|
|
2286
|
-
var
|
|
2287
|
-
l.value = !!((
|
|
2288
|
+
function n(p = !0) {
|
|
2289
|
+
var s, I, N;
|
|
2290
|
+
p && (l.value = !!((s = u.ai) != null && s.default), t.value = !!((I = u.ai) != null && I.default)), g.value && l.value && (t.value = !1), i.value && t.value && (l.value = !1), (N = e.value) != null && N.id && (g.value || (l.value = !1), i.value || (t.value = !1));
|
|
2288
2291
|
}
|
|
2289
2292
|
function d() {
|
|
2290
2293
|
var p;
|
|
2291
|
-
(p = e.value) != null && p.id && v.value.length ? l.value || t.value ? c() :
|
|
2294
|
+
(p = e.value) != null && p.id && v.value.length ? l.value || t.value ? c() : w.value = [] : w.value = [];
|
|
2292
2295
|
}
|
|
2293
2296
|
function c() {
|
|
2294
2297
|
u.ai.handle(e.value, h.value).then((p) => {
|
|
2295
|
-
|
|
2298
|
+
w.value = p;
|
|
2296
2299
|
}).catch(() => {
|
|
2297
|
-
|
|
2300
|
+
w.value = [];
|
|
2298
2301
|
});
|
|
2299
2302
|
}
|
|
2300
2303
|
function a() {
|
|
@@ -2304,10 +2307,10 @@ function Oo(u, e) {
|
|
|
2304
2307
|
l.value = !1, d();
|
|
2305
2308
|
}
|
|
2306
2309
|
return {
|
|
2307
|
-
hasAi:
|
|
2308
|
-
hasIqc:
|
|
2310
|
+
hasAi: g,
|
|
2311
|
+
hasIqc: i,
|
|
2309
2312
|
currentAnalysis: h,
|
|
2310
|
-
aiLabelList:
|
|
2313
|
+
aiLabelList: w,
|
|
2311
2314
|
enableAi: l,
|
|
2312
2315
|
enableIqc: t,
|
|
2313
2316
|
toggleIqc: f,
|
|
@@ -2344,12 +2347,12 @@ const Go = ["src", "fit"], Wo = ["src", "fit"], Ke = /* @__PURE__ */ J({
|
|
|
2344
2347
|
setup(u) {
|
|
2345
2348
|
const e = u;
|
|
2346
2349
|
let l = 0;
|
|
2347
|
-
const t = T(!1),
|
|
2350
|
+
const t = T(!1), w = rt({
|
|
2348
2351
|
x: 0,
|
|
2349
2352
|
y: 0
|
|
2350
|
-
}), v =
|
|
2351
|
-
top: `${
|
|
2352
|
-
left: `${
|
|
2353
|
+
}), v = B(() => ({
|
|
2354
|
+
top: `${w.y + 10}px`,
|
|
2355
|
+
left: `${w.x}px`,
|
|
2353
2356
|
transform: "translateY(-50%)",
|
|
2354
2357
|
width: `${4 * 300 / 3}px`,
|
|
2355
2358
|
height: "300px",
|
|
@@ -2360,16 +2363,16 @@ const Go = ["src", "fit"], Wo = ["src", "fit"], Ke = /* @__PURE__ */ J({
|
|
|
2360
2363
|
const n = h.target;
|
|
2361
2364
|
l < e.retryTimes ? (n.src = e.src, l++) : n.src = Ze;
|
|
2362
2365
|
}
|
|
2363
|
-
function
|
|
2366
|
+
function i(h) {
|
|
2364
2367
|
if (!e.hover) return;
|
|
2365
2368
|
if (h.target) {
|
|
2366
2369
|
const f = h.target, b = f.tagName;
|
|
2367
|
-
let
|
|
2368
|
-
if (f.tagName === "IMG" ?
|
|
2370
|
+
let y = "";
|
|
2371
|
+
if (f.tagName === "IMG" ? y = f.src || "" : b === "DIV" && (y = f.children[0].src || ""), y.indexOf(Ze) > -1)
|
|
2369
2372
|
return;
|
|
2370
2373
|
}
|
|
2371
2374
|
const { x: n, y: d } = m(h), c = 4 * 300 / 3, a = 300;
|
|
2372
|
-
|
|
2375
|
+
w.x = Math.min(Math.max(n, c / 2), window.innerWidth - c / 2), w.y = Math.min(Math.max(d, a / 2), window.innerHeight - a / 2), t.value = !0;
|
|
2373
2376
|
}
|
|
2374
2377
|
function m(h) {
|
|
2375
2378
|
const n = h.target, d = h.offsetX, c = h.offsetY, a = n.clientWidth, f = n.clientHeight;
|
|
@@ -2378,13 +2381,13 @@ const Go = ["src", "fit"], Wo = ["src", "fit"], Ke = /* @__PURE__ */ J({
|
|
|
2378
2381
|
y: h.clientY - c + f / 2
|
|
2379
2382
|
};
|
|
2380
2383
|
}
|
|
2381
|
-
function
|
|
2384
|
+
function g() {
|
|
2382
2385
|
t.value = !1;
|
|
2383
2386
|
}
|
|
2384
|
-
return (h, n) => (
|
|
2387
|
+
return (h, n) => (_(), x("div", {
|
|
2385
2388
|
class: "relative",
|
|
2386
|
-
onMouseenter:
|
|
2387
|
-
onMouseleave:
|
|
2389
|
+
onMouseenter: i,
|
|
2390
|
+
onMouseleave: g
|
|
2388
2391
|
}, [
|
|
2389
2392
|
k("img", {
|
|
2390
2393
|
src: u.src,
|
|
@@ -2395,8 +2398,8 @@ const Go = ["src", "fit"], Wo = ["src", "fit"], Ke = /* @__PURE__ */ J({
|
|
|
2395
2398
|
width: "100%"
|
|
2396
2399
|
}
|
|
2397
2400
|
}, null, 40, Go),
|
|
2398
|
-
(
|
|
2399
|
-
t.value ? (
|
|
2401
|
+
(_(), H(je, { to: "body" }, [
|
|
2402
|
+
t.value ? (_(), x("div", {
|
|
2400
2403
|
key: 0,
|
|
2401
2404
|
class: "fixed hzzt-kfb-img-triangle-left",
|
|
2402
2405
|
style: q(v.value)
|
|
@@ -2412,7 +2415,7 @@ const Go = ["src", "fit"], Wo = ["src", "fit"], Ke = /* @__PURE__ */ J({
|
|
|
2412
2415
|
onMouseenter: n[0] || (n[0] = () => {
|
|
2413
2416
|
t.value = !0;
|
|
2414
2417
|
}),
|
|
2415
|
-
onMouseleave:
|
|
2418
|
+
onMouseleave: g
|
|
2416
2419
|
}, null, 40, Wo)
|
|
2417
2420
|
], 4)) : R("", !0)
|
|
2418
2421
|
]))
|
|
@@ -2423,7 +2426,7 @@ const Go = ["src", "fit"], Wo = ["src", "fit"], Ke = /* @__PURE__ */ J({
|
|
|
2423
2426
|
viewBox: "0 0 1024 1024"
|
|
2424
2427
|
};
|
|
2425
2428
|
function Yo(u, e) {
|
|
2426
|
-
return
|
|
2429
|
+
return _(), x("svg", Zo, e[0] || (e[0] = [
|
|
2427
2430
|
k("path", {
|
|
2428
2431
|
fill: "currentColor",
|
|
2429
2432
|
d: "M160 448a32 32 0 0 1-32-32V160.064a32 32 0 0 1 32-32h256a32 32 0 0 1 32 32V416a32 32 0 0 1-32 32zm448 0a32 32 0 0 1-32-32V160.064a32 32 0 0 1 32-32h255.936a32 32 0 0 1 32 32V416a32 32 0 0 1-32 32zM160 896a32 32 0 0 1-32-32V608a32 32 0 0 1 32-32h256a32 32 0 0 1 32 32v256a32 32 0 0 1-32 32zm448 0a32 32 0 0 1-32-32V608a32 32 0 0 1 32-32h255.936a32 32 0 0 1 32 32v256a32 32 0 0 1-32 32z"
|
|
@@ -2438,7 +2441,7 @@ const Xo = /* @__PURE__ */ ge(qo, [["render", Yo]]), Qo = {}, Jo = {
|
|
|
2438
2441
|
xmlns: "http://www.w3.org/2000/svg"
|
|
2439
2442
|
};
|
|
2440
2443
|
function ea(u, e) {
|
|
2441
|
-
return
|
|
2444
|
+
return _(), x("svg", Jo, e[0] || (e[0] = [
|
|
2442
2445
|
k("g", { id: "Frame" }, [
|
|
2443
2446
|
k("path", {
|
|
2444
2447
|
id: "Vector",
|
|
@@ -2471,31 +2474,31 @@ const ta = /* @__PURE__ */ ge(Qo, [["render", ea]]), la = { class: "hzzt-kfb-sli
|
|
|
2471
2474
|
},
|
|
2472
2475
|
emits: ["select", "tool"],
|
|
2473
2476
|
setup(u, { expose: e, emit: l }) {
|
|
2474
|
-
const t = u,
|
|
2477
|
+
const t = u, w = l, v = Z("file-index", {
|
|
2475
2478
|
value: 0
|
|
2476
2479
|
}), r = Z("divide", {
|
|
2477
2480
|
value: !1
|
|
2478
|
-
}),
|
|
2481
|
+
}), i = Z("sync", {
|
|
2479
2482
|
value: !1
|
|
2480
|
-
}), m = T(!1),
|
|
2483
|
+
}), m = T(!1), g = T(), h = B(() => t.slides.filter(({ read: b }) => b)), n = B(() => t.slides.filter(({ check: b }) => b)), { t: d } = ue();
|
|
2481
2484
|
function c(b) {
|
|
2482
|
-
v.value = b,
|
|
2485
|
+
v.value = b, w("select", b);
|
|
2483
2486
|
}
|
|
2484
2487
|
function a(b) {
|
|
2485
2488
|
b.check = !b.check;
|
|
2486
2489
|
}
|
|
2487
2490
|
function f(b) {
|
|
2488
|
-
var p,
|
|
2489
|
-
const
|
|
2490
|
-
|
|
2491
|
+
var p, s, I;
|
|
2492
|
+
const y = ((I = (s = (p = g.value.querySelector('[data-index="0"]')) == null ? void 0 : p.getBoundingClientRect) == null ? void 0 : s.call(p)) == null ? void 0 : I.y) || 0;
|
|
2493
|
+
g.value.scrollTop = g.value.querySelector(`[data-index="${b}"]`).getBoundingClientRect().y - y;
|
|
2491
2494
|
}
|
|
2492
2495
|
return e({
|
|
2493
2496
|
jumpToSlide: f
|
|
2494
|
-
}), (b,
|
|
2497
|
+
}), (b, y) => (_(), x("div", la, [
|
|
2495
2498
|
k("div", oa, [
|
|
2496
2499
|
k("div", aa, [
|
|
2497
2500
|
k("span", null, [
|
|
2498
|
-
|
|
2501
|
+
y[4] || (y[4] = K("已读:")),
|
|
2499
2502
|
k("span", na, E(h.value.length), 1),
|
|
2500
2503
|
K("/" + E(b.slides.length), 1)
|
|
2501
2504
|
]),
|
|
@@ -2504,7 +2507,7 @@ const ta = /* @__PURE__ */ ge(Qo, [["render", ea]]), la = { class: "hzzt-kfb-sli
|
|
|
2504
2507
|
class: "margin-r-2 pointer",
|
|
2505
2508
|
size: "16",
|
|
2506
2509
|
color: m.value ? "#999" : "#000",
|
|
2507
|
-
onClick:
|
|
2510
|
+
onClick: y[0] || (y[0] = (p) => m.value = !m.value)
|
|
2508
2511
|
}, {
|
|
2509
2512
|
default: L(() => [
|
|
2510
2513
|
C(Xo)
|
|
@@ -2516,7 +2519,7 @@ const ta = /* @__PURE__ */ ge(Qo, [["render", ea]]), la = { class: "hzzt-kfb-sli
|
|
|
2516
2519
|
name: "cus-list",
|
|
2517
2520
|
size: "16",
|
|
2518
2521
|
color: m.value ? "#000" : "#999",
|
|
2519
|
-
onClick:
|
|
2522
|
+
onClick: y[1] || (y[1] = (p) => m.value = !m.value)
|
|
2520
2523
|
}, {
|
|
2521
2524
|
default: L(() => [
|
|
2522
2525
|
C(ta)
|
|
@@ -2529,23 +2532,23 @@ const ta = /* @__PURE__ */ ge(Qo, [["render", ea]]), la = { class: "hzzt-kfb-sli
|
|
|
2529
2532
|
class: "flex-1 overflow-auto",
|
|
2530
2533
|
style: { width: "100%" },
|
|
2531
2534
|
ref_key: "slidesRef",
|
|
2532
|
-
ref:
|
|
2535
|
+
ref: g
|
|
2533
2536
|
}, [
|
|
2534
|
-
m.value ? (
|
|
2537
|
+
m.value ? (_(), x("ul", fa, [
|
|
2535
2538
|
k("li", ma, [
|
|
2536
|
-
|
|
2539
|
+
y[5] || (y[5] = k("div", { class: "w-10%" }, null, -1)),
|
|
2537
2540
|
k("div", pa, E(o(d)("缩略图")), 1),
|
|
2538
2541
|
k("div", ha, E(o(d)("切片名")), 1),
|
|
2539
2542
|
k("div", ga, E(o(d)("评分")), 1)
|
|
2540
2543
|
]),
|
|
2541
|
-
(
|
|
2542
|
-
key:
|
|
2543
|
-
"data-index":
|
|
2544
|
+
(_(!0), x(oe, null, ae(b.slides, (p, s) => (_(), x("li", {
|
|
2545
|
+
key: s,
|
|
2546
|
+
"data-index": s,
|
|
2544
2547
|
class: "flex align-items-center overflow-hidden",
|
|
2545
2548
|
style: q({
|
|
2546
|
-
backgroundColor: o(v) ===
|
|
2549
|
+
backgroundColor: o(v) === s ? "rgba(6, 85, 195, 0.1)" : "#fff"
|
|
2547
2550
|
}),
|
|
2548
|
-
onClick: (I) => c(
|
|
2551
|
+
onClick: (I) => c(s)
|
|
2549
2552
|
}, [
|
|
2550
2553
|
k("div", {
|
|
2551
2554
|
class: "w-10% text-center",
|
|
@@ -2574,7 +2577,7 @@ const ta = /* @__PURE__ */ ge(Qo, [["render", ea]]), la = { class: "hzzt-kfb-sli
|
|
|
2574
2577
|
style: { height: "45px" },
|
|
2575
2578
|
class: "flex-1"
|
|
2576
2579
|
}, null, 8, ["src"]),
|
|
2577
|
-
p.read ? R("", !0) : (
|
|
2580
|
+
p.read ? R("", !0) : (_(), x("div", ba, E(o(d)("未读")), 1))
|
|
2578
2581
|
])
|
|
2579
2582
|
]),
|
|
2580
2583
|
k("div", ka, [
|
|
@@ -2599,15 +2602,15 @@ const ta = /* @__PURE__ */ ge(Qo, [["render", ea]]), la = { class: "hzzt-kfb-sli
|
|
|
2599
2602
|
style: q({
|
|
2600
2603
|
color: p.gradeColor
|
|
2601
2604
|
}),
|
|
2602
|
-
onClick: (I) =>
|
|
2605
|
+
onClick: (I) => w("tool", "grade", p)
|
|
2603
2606
|
}, E(p.grade), 13, Ca)
|
|
2604
2607
|
], 12, ya))), 128))
|
|
2605
|
-
])) : (
|
|
2606
|
-
(
|
|
2607
|
-
key:
|
|
2608
|
-
class: ke(["hzzt-kfb-slides__box", o(v) ===
|
|
2609
|
-
"data-index":
|
|
2610
|
-
onClick: (I) => c(
|
|
2608
|
+
])) : (_(), x("div", ia, [
|
|
2609
|
+
(_(!0), x(oe, null, ae(b.slides, (p, s) => (_(), x("div", {
|
|
2610
|
+
key: s,
|
|
2611
|
+
class: ke(["hzzt-kfb-slides__box", o(v) === s ? "hzzt-kfb-slides__box--active" : ""]),
|
|
2612
|
+
"data-index": s,
|
|
2613
|
+
onClick: (I) => c(s)
|
|
2611
2614
|
}, [
|
|
2612
2615
|
k("div", ua, [
|
|
2613
2616
|
C(Ke, {
|
|
@@ -2650,31 +2653,31 @@ const ta = /* @__PURE__ */ ge(Qo, [["render", ea]]), la = { class: "hzzt-kfb-sli
|
|
|
2650
2653
|
_: 2
|
|
2651
2654
|
}, 1032, ["content"])
|
|
2652
2655
|
]),
|
|
2653
|
-
p.read ? R("", !0) : (
|
|
2654
|
-
p.grade ? (
|
|
2656
|
+
p.read ? R("", !0) : (_(), x("div", da, E(o(d)("未读")), 1)),
|
|
2657
|
+
p.grade ? (_(), x("div", {
|
|
2655
2658
|
key: 1,
|
|
2656
2659
|
class: "hzzt-kfb-slides__grade",
|
|
2657
2660
|
style: q({
|
|
2658
2661
|
background: p.gradeColor
|
|
2659
2662
|
}),
|
|
2660
|
-
onClick: (I) =>
|
|
2663
|
+
onClick: (I) => w("tool", "grade", p)
|
|
2661
2664
|
}, E(p.grade), 13, va)) : R("", !0),
|
|
2662
2665
|
fe(b.$slots, "slide", { slide: p }, void 0, !0)
|
|
2663
2666
|
], 10, ra))), 128))
|
|
2664
2667
|
]))
|
|
2665
2668
|
], 512),
|
|
2666
|
-
n.value.length > 1 ? (
|
|
2669
|
+
n.value.length > 1 ? (_(), x("div", $a, [
|
|
2667
2670
|
k("div", Ta, [
|
|
2668
2671
|
k("span", La, E(o(d)("分屏")), 1),
|
|
2669
2672
|
C(o(Ee), {
|
|
2670
2673
|
modelValue: o(r),
|
|
2671
|
-
"onUpdate:modelValue":
|
|
2674
|
+
"onUpdate:modelValue": y[2] || (y[2] = (p) => pe(r) ? r.value = p : null)
|
|
2672
2675
|
}, null, 8, ["modelValue"]),
|
|
2673
|
-
o(r) ? (
|
|
2674
|
-
o(r) ? (
|
|
2676
|
+
o(r) ? (_(), x("span", xa, E(o(d)("同步")), 1)) : R("", !0),
|
|
2677
|
+
o(r) ? (_(), H(o(Ee), {
|
|
2675
2678
|
key: 1,
|
|
2676
|
-
modelValue: o(
|
|
2677
|
-
"onUpdate:modelValue":
|
|
2679
|
+
modelValue: o(i),
|
|
2680
|
+
"onUpdate:modelValue": y[3] || (y[3] = (p) => pe(i) ? i.value = p : null)
|
|
2678
2681
|
}, null, 8, ["modelValue"])) : R("", !0)
|
|
2679
2682
|
])
|
|
2680
2683
|
])) : R("", !0)
|
|
@@ -2692,38 +2695,38 @@ const ta = /* @__PURE__ */ ge(Qo, [["render", ea]]), la = { class: "hzzt-kfb-sli
|
|
|
2692
2695
|
analysis: {}
|
|
2693
2696
|
},
|
|
2694
2697
|
setup(u, { expose: e }) {
|
|
2695
|
-
const l = u, { t } = ue(),
|
|
2698
|
+
const l = u, { t } = ue(), w = Z("kfbViewRef"), v = T(-1), r = T(1), i = T(100), m = T(!0), g = T([]), h = B(() => l.data.filter((I) => g.value.includes(I.cls || ""))), n = B(() => h.value.slice((r.value - 1) * i.value, r.value * i.value)), d = B(() => {
|
|
2696
2699
|
const I = /* @__PURE__ */ new Set();
|
|
2697
|
-
return l.data.forEach((
|
|
2698
|
-
const P =
|
|
2700
|
+
return l.data.forEach((N) => {
|
|
2701
|
+
const P = N.cls || "";
|
|
2699
2702
|
P && !I.has(P) && I.add(P);
|
|
2700
2703
|
}), Array.from(I);
|
|
2701
|
-
}), c =
|
|
2704
|
+
}), c = B(() => g.value.length !== 0 && g.value.length !== d.value.length), a = St(l);
|
|
2702
2705
|
ee(() => d.value, (I) => {
|
|
2703
|
-
f(),
|
|
2706
|
+
f(), g.value = [...I];
|
|
2704
2707
|
}), he(() => {
|
|
2705
|
-
|
|
2708
|
+
g.value = [...d.value];
|
|
2706
2709
|
});
|
|
2707
2710
|
function f() {
|
|
2708
|
-
v.value = -1, r.value = 1,
|
|
2711
|
+
v.value = -1, r.value = 1, i.value = 100, m.value = !0;
|
|
2709
2712
|
}
|
|
2710
2713
|
function b(I) {
|
|
2711
|
-
const
|
|
2712
|
-
v.value =
|
|
2714
|
+
const N = h.value.findIndex((P) => P.id === I.id);
|
|
2715
|
+
v.value = N, w.value.jumpToLabel(I, 5);
|
|
2713
2716
|
}
|
|
2714
|
-
function
|
|
2715
|
-
const
|
|
2716
|
-
return
|
|
2717
|
+
function y(I) {
|
|
2718
|
+
const N = l.data.filter((P) => P.cls === I);
|
|
2719
|
+
return N.length ? `(${N.length})` : "";
|
|
2717
2720
|
}
|
|
2718
2721
|
function p() {
|
|
2719
|
-
v.value = -1, m.value =
|
|
2722
|
+
v.value = -1, m.value = g.value.length == d.value.length;
|
|
2720
2723
|
}
|
|
2721
|
-
function
|
|
2722
|
-
|
|
2724
|
+
function s(I) {
|
|
2725
|
+
g.value = I ? [...d.value] : [], v.value = -1;
|
|
2723
2726
|
}
|
|
2724
2727
|
return e({
|
|
2725
2728
|
labelList: h
|
|
2726
|
-
}), (I,
|
|
2729
|
+
}), (I, N) => (_(), x("div", Ia, [
|
|
2727
2730
|
k("div", Ma, [
|
|
2728
2731
|
C(o(dl), {
|
|
2729
2732
|
placement: "bottom",
|
|
@@ -2746,9 +2749,9 @@ const ta = /* @__PURE__ */ ge(Qo, [["render", ea]]), la = { class: "hzzt-kfb-sli
|
|
|
2746
2749
|
k("div", null, [
|
|
2747
2750
|
C(o(We), {
|
|
2748
2751
|
modelValue: m.value,
|
|
2749
|
-
"onUpdate:modelValue":
|
|
2752
|
+
"onUpdate:modelValue": N[0] || (N[0] = (P) => m.value = P),
|
|
2750
2753
|
indeterminate: c.value,
|
|
2751
|
-
onChange:
|
|
2754
|
+
onChange: s
|
|
2752
2755
|
}, {
|
|
2753
2756
|
default: L(() => [
|
|
2754
2757
|
K(E(o(t)("全选")), 1)
|
|
@@ -2756,19 +2759,19 @@ const ta = /* @__PURE__ */ ge(Qo, [["render", ea]]), la = { class: "hzzt-kfb-sli
|
|
|
2756
2759
|
_: 1
|
|
2757
2760
|
}, 8, ["modelValue", "indeterminate"]),
|
|
2758
2761
|
C(o(vl), {
|
|
2759
|
-
modelValue:
|
|
2760
|
-
"onUpdate:modelValue":
|
|
2762
|
+
modelValue: g.value,
|
|
2763
|
+
"onUpdate:modelValue": N[1] || (N[1] = (P) => g.value = P),
|
|
2761
2764
|
class: "flex column",
|
|
2762
2765
|
onChange: p
|
|
2763
2766
|
}, {
|
|
2764
2767
|
default: L(() => [
|
|
2765
|
-
(
|
|
2768
|
+
(_(!0), x(oe, null, ae(d.value, (P) => (_(), H(o(We), {
|
|
2766
2769
|
key: P,
|
|
2767
2770
|
value: P
|
|
2768
2771
|
}, {
|
|
2769
2772
|
default: L(() => [
|
|
2770
2773
|
K(E(P) + " ", 1),
|
|
2771
|
-
k("span", Sa, E(
|
|
2774
|
+
k("span", Sa, E(y(P)), 1)
|
|
2772
2775
|
]),
|
|
2773
2776
|
_: 2
|
|
2774
2777
|
}, 1032, ["value"]))), 128))
|
|
@@ -2790,9 +2793,9 @@ const ta = /* @__PURE__ */ ge(Qo, [["render", ea]]), la = { class: "hzzt-kfb-sli
|
|
|
2790
2793
|
}, 8, ["type"])
|
|
2791
2794
|
]),
|
|
2792
2795
|
k("div", Ha, [
|
|
2793
|
-
(
|
|
2794
|
-
key: te + (r.value - 1) *
|
|
2795
|
-
class: ke(`hzzt-kfb-ai__img ${v.value === te + (r.value - 1) *
|
|
2796
|
+
(_(!0), x(oe, null, ae(n.value, (P, te) => (_(), x("div", {
|
|
2797
|
+
key: te + (r.value - 1) * i.value,
|
|
2798
|
+
class: ke(`hzzt-kfb-ai__img ${v.value === te + (r.value - 1) * i.value ? "hzzt-kfb-ai__img--active" : ""}`),
|
|
2796
2799
|
onClick: (ne) => b(P)
|
|
2797
2800
|
}, [
|
|
2798
2801
|
C(o(ml), {
|
|
@@ -2805,16 +2808,16 @@ const ta = /* @__PURE__ */ ge(Qo, [["render", ea]]), la = { class: "hzzt-kfb-sli
|
|
|
2805
2808
|
class: "ellipsis"
|
|
2806
2809
|
}, [
|
|
2807
2810
|
K(E(P.cls) + " ", 1),
|
|
2808
|
-
P.score ? (
|
|
2811
|
+
P.score ? (_(), x("span", Ra, E(P.score), 1)) : R("", !0)
|
|
2809
2812
|
], 4)
|
|
2810
2813
|
], 10, Pa))), 128))
|
|
2811
2814
|
]),
|
|
2812
2815
|
C(o(fl), {
|
|
2813
2816
|
class: "wrap",
|
|
2814
2817
|
"current-page": r.value,
|
|
2815
|
-
"onUpdate:currentPage":
|
|
2816
|
-
"page-size":
|
|
2817
|
-
"onUpdate:pageSize":
|
|
2818
|
+
"onUpdate:currentPage": N[2] || (N[2] = (P) => r.value = P),
|
|
2819
|
+
"page-size": i.value,
|
|
2820
|
+
"onUpdate:pageSize": N[3] || (N[3] = (P) => i.value = P),
|
|
2818
2821
|
"page-sizes": [100, 200, 300, 400],
|
|
2819
2822
|
layout: "total, sizes, prev, pager, next",
|
|
2820
2823
|
total: h.value.length
|
|
@@ -2850,41 +2853,41 @@ const ta = /* @__PURE__ */ ge(Qo, [["render", ea]]), la = { class: "hzzt-kfb-sli
|
|
|
2850
2853
|
}),
|
|
2851
2854
|
emits: /* @__PURE__ */ be(["tool"], ["update:index"]),
|
|
2852
2855
|
setup(u, { expose: e, emit: l }) {
|
|
2853
|
-
const t = u,
|
|
2856
|
+
const t = u, w = l, v = Be(u, "index"), r = B(() => t.slides[v.value]), i = B(() => t.slides.filter(({ check: $ }) => $)), m = T(), g = T(), h = T(), n = T(), d = T(t.showKeyboard), c = T(t.showKfbLabel), a = T(t.showWatermark), f = T(t.showMenuText), b = T(!1), y = T(!1), { t: p } = ue(), s = B(() => {
|
|
2854
2857
|
var $;
|
|
2855
2858
|
if (b.value) {
|
|
2856
|
-
const A =
|
|
2859
|
+
const A = i.value.findIndex(({ id: F }) => {
|
|
2857
2860
|
var ce;
|
|
2858
2861
|
return F === ((ce = r.value) == null ? void 0 : ce.id);
|
|
2859
2862
|
});
|
|
2860
|
-
return (($ = h.value) == null ? void 0 : $[A]) ||
|
|
2863
|
+
return (($ = h.value) == null ? void 0 : $[A]) || g.value;
|
|
2861
2864
|
} else
|
|
2862
|
-
return
|
|
2863
|
-
}), I =
|
|
2865
|
+
return g.value;
|
|
2866
|
+
}), I = B(() => i.value.length <= 1 ? {
|
|
2864
2867
|
height: "100%",
|
|
2865
2868
|
width: "100%"
|
|
2866
|
-
} :
|
|
2869
|
+
} : i.value.length <= 2 ? {
|
|
2867
2870
|
height: "100%",
|
|
2868
2871
|
width: "calc((100% - 4px) / 2)"
|
|
2869
|
-
} :
|
|
2872
|
+
} : i.value.length <= 4 ? {
|
|
2870
2873
|
height: "calc((100% - 4px) / 2)",
|
|
2871
2874
|
width: "calc((100% - 4px) / 2)"
|
|
2872
|
-
} :
|
|
2875
|
+
} : i.value.length <= 6 ? {
|
|
2873
2876
|
height: "calc((100% - 4px) / 2)",
|
|
2874
2877
|
width: "calc((100% - 4px * 2) / 3)"
|
|
2875
|
-
} :
|
|
2878
|
+
} : i.value.length <= 9 ? {
|
|
2876
2879
|
height: "calc((100% - 4px * 2) / 3)",
|
|
2877
2880
|
width: "calc((100% - 4px * 2) / 3)"
|
|
2878
2881
|
} : {
|
|
2879
2882
|
height: "100%",
|
|
2880
2883
|
width: "100%"
|
|
2881
2884
|
});
|
|
2882
|
-
ee(() =>
|
|
2885
|
+
ee(() => i.value, ($) => {
|
|
2883
2886
|
b.value && $.length <= 1 && (b.value = !1);
|
|
2884
2887
|
}), ee(() => r.value, ($) => {
|
|
2885
2888
|
if ($) {
|
|
2886
2889
|
const A = $.read;
|
|
2887
|
-
$.read = !0,
|
|
2890
|
+
$.read = !0, w("tool", "choose", {
|
|
2888
2891
|
slide: $,
|
|
2889
2892
|
read: A
|
|
2890
2893
|
});
|
|
@@ -2896,7 +2899,7 @@ const ta = /* @__PURE__ */ ge(Qo, [["render", ea]]), la = { class: "hzzt-kfb-sli
|
|
|
2896
2899
|
menuText: f
|
|
2897
2900
|
}).forEach(([$, A]) => {
|
|
2898
2901
|
ee(() => A.value, (F) => {
|
|
2899
|
-
|
|
2902
|
+
w("tool", $, F);
|
|
2900
2903
|
});
|
|
2901
2904
|
});
|
|
2902
2905
|
const {
|
|
@@ -2910,7 +2913,7 @@ const ta = /* @__PURE__ */ ge(Qo, [["render", ea]]), la = { class: "hzzt-kfb-sli
|
|
|
2910
2913
|
toggleAi: Se
|
|
2911
2914
|
} = Oo(t, r);
|
|
2912
2915
|
function ye($, A) {
|
|
2913
|
-
$ === "next" && t.slides[v.value + 1] && v.value++, $ === "prev" && t.slides[v.value - 1] && v.value--, ($ === "label" || $ === "tool") && (c.value = A),
|
|
2916
|
+
$ === "next" && t.slides[v.value + 1] && v.value++, $ === "prev" && t.slides[v.value - 1] && v.value--, ($ === "label" || $ === "tool") && (c.value = A), w("tool", $, A);
|
|
2914
2917
|
}
|
|
2915
2918
|
function De($) {
|
|
2916
2919
|
var F, ce;
|
|
@@ -2920,8 +2923,8 @@ const ta = /* @__PURE__ */ ge(Qo, [["render", ea]]), la = { class: "hzzt-kfb-sli
|
|
|
2920
2923
|
microscope: t.microscope,
|
|
2921
2924
|
slide: $,
|
|
2922
2925
|
aiLabelList: r.value.id === $.id ? ((F = n.value) == null ? void 0 : F.labelList) || [] : [],
|
|
2923
|
-
syncPosition:
|
|
2924
|
-
syncZoom:
|
|
2926
|
+
syncPosition: y.value,
|
|
2927
|
+
syncZoom: y.value,
|
|
2925
2928
|
handle: void 0,
|
|
2926
2929
|
analysis: r.value.id === $.id ? ne.value : void 0
|
|
2927
2930
|
});
|
|
@@ -2935,7 +2938,7 @@ const ta = /* @__PURE__ */ ge(Qo, [["render", ea]]), la = { class: "hzzt-kfb-sli
|
|
|
2935
2938
|
}
|
|
2936
2939
|
function Qe() {
|
|
2937
2940
|
var $;
|
|
2938
|
-
($ = b.value ? h.value : [
|
|
2941
|
+
($ = b.value ? h.value : [g.value]) == null || $.forEach((A) => {
|
|
2939
2942
|
c.value || (A.updateGrid({
|
|
2940
2943
|
show: c.value,
|
|
2941
2944
|
ruler: c.value
|
|
@@ -2948,27 +2951,27 @@ const ta = /* @__PURE__ */ ge(Qo, [["render", ea]]), la = { class: "hzzt-kfb-sli
|
|
|
2948
2951
|
v.value = $, m.value && m.value.jumpToSlide($);
|
|
2949
2952
|
}
|
|
2950
2953
|
function Pe($, A) {
|
|
2951
|
-
|
|
2954
|
+
s.value && s.value.jumpToLabel($, A);
|
|
2952
2955
|
}
|
|
2953
2956
|
function Je($, A) {
|
|
2954
|
-
|
|
2957
|
+
s.value && s.value.jumpToPosition($, A);
|
|
2955
2958
|
}
|
|
2956
|
-
return de("kfbViewRef",
|
|
2959
|
+
return de("kfbViewRef", s), de("show-keyboard", d), de("show-kfb-label", c), de("show-menu-text", f), de("show-watermark", a), de("file-index", v), de("divide", b), de("sync", y), e({
|
|
2957
2960
|
divide: b,
|
|
2958
2961
|
slide: r,
|
|
2959
|
-
kfbViewRef:
|
|
2962
|
+
kfbViewRef: s,
|
|
2960
2963
|
jumpToSlide: He,
|
|
2961
2964
|
jumpToLabel: Pe,
|
|
2962
2965
|
jumpToPosition: Je,
|
|
2963
2966
|
analysis: ne,
|
|
2964
2967
|
enableAi: re,
|
|
2965
2968
|
enableIqc: le,
|
|
2966
|
-
showAiList:
|
|
2969
|
+
showAiList: B(() => {
|
|
2967
2970
|
var $;
|
|
2968
2971
|
return !!(($ = t.ai) != null && $.enable) && j.value.length;
|
|
2969
2972
|
})
|
|
2970
|
-
}), ($, A) => (
|
|
2971
|
-
$.menus.length ? (
|
|
2973
|
+
}), ($, A) => (_(), x("div", Na, [
|
|
2974
|
+
$.menus.length ? (_(), H(qe, {
|
|
2972
2975
|
key: 0,
|
|
2973
2976
|
menu: $.menus,
|
|
2974
2977
|
process: $.process,
|
|
@@ -2988,7 +2991,7 @@ const ta = /* @__PURE__ */ ge(Qo, [["render", ea]]), la = { class: "hzzt-kfb-sli
|
|
|
2988
2991
|
class: "margin-r-2",
|
|
2989
2992
|
onChange: Qe
|
|
2990
2993
|
}, null, 8, ["modelValue", "active-text"]),
|
|
2991
|
-
$.ai && $.ai.enable && o(te) ? (
|
|
2994
|
+
$.ai && $.ai.enable && o(te) ? (_(), H(o(Ee), {
|
|
2992
2995
|
key: 0,
|
|
2993
2996
|
modelValue: o(le),
|
|
2994
2997
|
"onUpdate:modelValue": A[1] || (A[1] = (F) => pe(le) ? le.value = F : null),
|
|
@@ -2996,7 +2999,7 @@ const ta = /* @__PURE__ */ ge(Qo, [["render", ea]]), la = { class: "hzzt-kfb-sli
|
|
|
2996
2999
|
class: "margin-r-2",
|
|
2997
3000
|
onChange: o(Me)
|
|
2998
3001
|
}, null, 8, ["modelValue", "active-text", "onChange"])) : R("", !0),
|
|
2999
|
-
$.ai && $.ai.enable && o(P) ? (
|
|
3002
|
+
$.ai && $.ai.enable && o(P) ? (_(), H(o(Ee), {
|
|
3000
3003
|
key: 1,
|
|
3001
3004
|
modelValue: o(re),
|
|
3002
3005
|
"onUpdate:modelValue": A[2] || (A[2] = (F) => pe(re) ? re.value = F : null),
|
|
@@ -3009,7 +3012,7 @@ const ta = /* @__PURE__ */ ge(Qo, [["render", ea]]), la = { class: "hzzt-kfb-sli
|
|
|
3009
3012
|
_: 3
|
|
3010
3013
|
}, 8, ["menu", "process", "microscope"])) : R("", !0),
|
|
3011
3014
|
k("div", Ba, [
|
|
3012
|
-
$.showList ? (
|
|
3015
|
+
$.showList ? (_(), H(je, {
|
|
3013
3016
|
key: 0,
|
|
3014
3017
|
defer: "",
|
|
3015
3018
|
to: "#kfb-slide-list",
|
|
@@ -3029,20 +3032,20 @@ const ta = /* @__PURE__ */ ge(Qo, [["render", ea]]), la = { class: "hzzt-kfb-sli
|
|
|
3029
3032
|
_: 3
|
|
3030
3033
|
}, 8, ["style", "slides"])
|
|
3031
3034
|
], 8, ["disabled"])) : R("", !0),
|
|
3032
|
-
(
|
|
3035
|
+
(_(), H(je, {
|
|
3033
3036
|
defer: "",
|
|
3034
3037
|
to: "#kfb-slide-view",
|
|
3035
3038
|
disabled: !$.teleport
|
|
3036
3039
|
}, [
|
|
3037
3040
|
k("div", Da, [
|
|
3038
|
-
|
|
3039
|
-
(
|
|
3041
|
+
i.value.length && b.value ? (_(), x("ul", Ua, [
|
|
3042
|
+
(_(!0), x(oe, null, ae(i.value, (F, ce) => (_(), x("li", {
|
|
3040
3043
|
key: ce,
|
|
3041
3044
|
style: q(I.value),
|
|
3042
3045
|
class: ke(r.value.id === F.id ? "hzzt-kfb-view-screen-active" : ""),
|
|
3043
3046
|
onClick: (ut) => Ye(F)
|
|
3044
3047
|
}, [
|
|
3045
|
-
(
|
|
3048
|
+
(_(), H(Ne, Oe({
|
|
3046
3049
|
ref_for: !0,
|
|
3047
3050
|
ref_key: "kfbViewRefs",
|
|
3048
3051
|
ref: h,
|
|
@@ -3054,10 +3057,10 @@ const ta = /* @__PURE__ */ ge(Qo, [["render", ea]]), la = { class: "hzzt-kfb-sli
|
|
|
3054
3057
|
_: 2
|
|
3055
3058
|
}, 1040))
|
|
3056
3059
|
], 14, Fa))), 128))
|
|
3057
|
-
])) : r.value ? (
|
|
3060
|
+
])) : r.value ? (_(), H(Ne, Oe({
|
|
3058
3061
|
key: 1,
|
|
3059
3062
|
ref_key: "kfbViewRef",
|
|
3060
|
-
ref:
|
|
3063
|
+
ref: g
|
|
3061
3064
|
}, De(r.value), { onTool: ye }), {
|
|
3062
3065
|
default: L(() => [
|
|
3063
3066
|
fe($.$slots, "kfb", { slide: r.value })
|
|
@@ -3066,7 +3069,7 @@ const ta = /* @__PURE__ */ ge(Qo, [["render", ea]]), la = { class: "hzzt-kfb-sli
|
|
|
3066
3069
|
}, 16)) : R("", !0)
|
|
3067
3070
|
])
|
|
3068
3071
|
], 8, ["disabled"])),
|
|
3069
|
-
$.ai && $.ai.enable && o(j).length ? (
|
|
3072
|
+
$.ai && $.ai.enable && o(j).length ? (_(), H(je, {
|
|
3070
3073
|
key: 1,
|
|
3071
3074
|
defer: "",
|
|
3072
3075
|
to: "#kfb-slide-ai",
|