hzzt-kfb-slide 0.1.6 → 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/{annotateDO5M9JWn.js → annotateCsjd-8z3.js} +1 -1
- package/dist/components/{annotatetAUvSoEJ.js → annotateCuw9UNn2.js} +1 -1
- package/dist/components/{annotateCl71xIPH.js → annotateCwGjQKaP.js} +3 -3
- package/dist/components/{annotateCdSQFwCj.js → annotateDs5i2eNO.js} +1 -1
- package/dist/components/{arrowDgJclFBQ.js → arrowCBL9AzKr.js} +1 -1
- package/dist/components/{arrowCircleC0Vg8mp7.js → arrowCircleDwqggHev.js} +1 -1
- package/dist/components/{arrowCircleCReazPnY.js → arrowCirclelm3OXqGD.js} +1 -1
- package/dist/components/{arrowDownnqDRPbBd.js → arrowDownBAZ_RPEu.js} +1 -1
- package/dist/components/{arrowDownBQKVy4bt.js → arrowDownCdaul-Hd.js} +1 -1
- package/dist/components/{arrowLeftDj6Itp4F.js → arrowLeft8I3cz9ix.js} +1 -1
- package/dist/components/{arrowLeftB2U1F2qZ.js → arrowLeftCY6O_JXa.js} +1 -1
- package/dist/components/{arrowBPWE_Tj8.js → arrowM7YlD6Fp.js} +1 -1
- package/dist/components/{arrowRightDCr2AlGZ.js → arrowRightDNETqHjH.js} +1 -1
- package/dist/components/{arrowRightCSwKUrhN.js → arrowRightN9DgBweY.js} +1 -1
- package/dist/components/{arrowUpDgrtjFV6.js → arrowUp15GBTWCC.js} +1 -1
- package/dist/components/{arrowUpCpYvRfVO.js → arrowUpCms_i80O.js} +1 -1
- package/dist/components/{bilateralDVJhO31-.js → bilateralCgiGCORq.js} +1 -1
- package/dist/components/{bilateralBUw2SoJf.js → bilateralDRIzcahZ.js} +1 -1
- package/dist/components/{channelCs6ZE8um.js → channel0c8ZxreJ.js} +1 -1
- package/dist/components/{channelCJCVpuLF.js → channel8wdsKWt0.js} +1 -1
- package/dist/components/{checkCfXktCml.js → checkCvkYx5Zn.js} +1 -1
- package/dist/components/{check8TJn3_jJ.js → checkDksrM1Ib.js} +1 -1
- package/dist/components/{configBe8-dLRN.js → configBQB-oghg.js} +1 -1
- package/dist/components/{configqcWqLkt4.js → configD53ypjPd.js} +1 -1
- package/dist/components/{customCQCfV-gG.js → customAwznbb6Z.js} +1 -1
- package/dist/components/{customBrybVHZv.js → customdA1G1T1y.js} +1 -1
- package/dist/components/{deleteCmIU67QE.js → deleteCdJCCQ6y.js} +1 -1
- package/dist/components/{deleteBU0GP7Yy.js → deleteChVtJN4n.js} +1 -1
- package/dist/components/{dotCvH1RlzH.js → dot16c1xNPD.js} +1 -1
- package/dist/components/{dotBh_s1V_P.js → dotBQNxsw3c.js} +1 -1
- package/dist/components/{dotCphUYVyB.js → dotBjXKweg0.js} +1 -1
- package/dist/components/{dotBcJiiYty.js → dotC0CKM_hZ.js} +4 -4
- package/dist/components/{dotBQOp_rwi.js → dotD0Gx7CRc.js} +1 -1
- package/dist/components/{doteFPFBfAW.js → dotDJxvUSso.js} +1 -1
- package/dist/components/{downloadXGx0oGdp.js → downloadBByB8lwE.js} +1 -1
- package/dist/components/{downloadBI_yUCk3.js → downloadNznR12xP.js} +3 -3
- package/dist/components/{downloadcEXbNygZ.js → downloadViyLOOrK.js} +1 -1
- package/dist/components/{downloadCHx2b2_B.js → downloadZ2QzL5rO.js} +1 -1
- package/dist/components/{ellipseDyv6_gDz.js → ellipseC2z02yg-.js} +1 -1
- package/dist/components/{ellipseDe7HHOXa.js → ellipseCBUG6Mh8.js} +1 -1
- package/dist/components/{expandLeftDg3adQ4T.js → expandLeftDB8r1unh.js} +1 -1
- package/dist/components/{expandLeftBgJbKplZ.js → expandLeftDlJCG1r9.js} +1 -1
- package/dist/components/{expandRightdxRBWwRm.js → expandRightBhVI7kIo.js} +1 -1
- package/dist/components/{expandRightqFe_W3sR.js → expandRightrm3vKoq_.js} +1 -1
- package/dist/components/{flagCU6uqzPN.js → flagDLIm6S3D.js} +1 -1
- package/dist/components/{flagDRe0SWi3.js → flagDc9VAAUM.js} +1 -1
- package/dist/components/{flipCDCxOt9y.js → flipC95Pz5UL.js} +1 -1
- package/dist/components/{flip9lYVaLpe.js → flipDFWc7R0p.js} +1 -1
- package/dist/components/{fontDkvAgbCM.js → fontCZ3hGZBF.js} +1 -1
- package/dist/components/{fontd7EzPpXH.js → fontD27n3hS-.js} +1 -1
- package/dist/components/{fullscreenTdRK3tdy.js → fullscreenBrDmE4_A.js} +1 -1
- package/dist/components/{fullscreenDy4Qm4ZR.js → fullscreenCCAwhExm.js} +1 -1
- package/dist/components/{fullscreenCZwukv-0.js → fullscreenD26Fq3AJ.js} +1 -1
- package/dist/components/{fullscreencCCYQmz_.js → fullscreenDF7FK-y9.js} +2 -2
- package/dist/components/indexBD-4Tc4b.js +4 -0
- package/dist/components/{indexDsZFgGo3.js → indexDRXmzSTr.js} +914 -907
- package/dist/components/{infoC1BWzO7n.js → infoD4ZTbsGp.js} +1 -1
- package/dist/components/{infoCiA71kXk.js → infoD_KSpt0x.js} +1 -1
- package/dist/components/{levelOdW6h7X2.js → levelBpo8OsbV.js} +1 -1
- package/dist/components/{levelDSTSikX9.js → levelDtDdq-Pg.js} +1 -1
- package/dist/components/{lineBSHtlWxM.js → line2KgRRfGu.js} +1 -1
- package/dist/components/{lineBkNX_3iO.js → lineNu21t5gy.js} +1 -1
- package/dist/components/{microscopeBxdGVcdh.js → microscopeBLaPm6pb.js} +1 -1
- package/dist/components/{microscopeBrBArxoj.js → microscopeCj4MZVX6.js} +1 -1
- package/dist/components/{microscopeCE4DFA5Y.js → microscopeD8c1neyn.js} +3 -3
- package/dist/components/{microscopeCxL3T7-N.js → microscopemDpbiPHg.js} +1 -1
- package/dist/components/{movefwH4M5H0.js → moveBONH7e1-.js} +1 -1
- package/dist/components/{moveDummawTk.js → moveCtlzWScv.js} +1 -1
- package/dist/components/{moveD15Zgiom.js → moveDMF_aznf.js} +3 -3
- package/dist/components/{moveBRvr2sY1.js → moveWhJ3O6uI.js} +1 -1
- package/dist/components/{nextBDggmoQ_.js → nextBbF_v1SK.js} +1 -1
- package/dist/components/{nextChP2Vlnb.js → nextDQR6-RfD.js} +1 -1
- package/dist/components/{polygonDo1Cbrt6.js → polygonB1s-gscM.js} +1 -1
- package/dist/components/{polygonCmzlG1iP.js → polygonDLNm7Aiy.js} +1 -1
- package/dist/components/{prevbRAbQ3BR.js → prevBi3Jjzby.js} +1 -1
- package/dist/components/{prevmE7bILKU.js → prevDtGjAkiY.js} +1 -1
- package/dist/components/{processCVbgqqwQ.js → processB_71-rt3.js} +1 -1
- package/dist/components/{processD9HeCeP-.js → processBaejbNIO.js} +1 -1
- package/dist/components/{processDzM4HfLm.js → processOErCYmsz.js} +3 -3
- package/dist/components/{processBUGF5YEC.js → processZz2jg8Ii.js} +1 -1
- package/dist/components/{rectangleDOV_C_Ja.js → rectangleB_weH4OT.js} +1 -1
- package/dist/components/{rectangleBK-f_GHa.js → rectangleCx7rw04r.js} +1 -1
- package/dist/components/{rotateBcLjWjrA.js → rotateC8INrLms.js} +1 -1
- package/dist/components/{rotateB_h0GOmZ.js → rotateCQ-njCPy.js} +4 -4
- package/dist/components/{rotateCmFZEZx8.js → rotateChAaWWwk.js} +1 -1
- package/dist/components/{rotateT_e50-cB.js → rotateCn_yYR-9.js} +1 -1
- package/dist/components/{settingCVD1ckI-.js → settingBuJ04L0g.js} +1 -1
- package/dist/components/{settingBfLQ5p0p.js → settingDa4UFFpZ.js} +1 -1
- package/dist/components/{setting8hsjZ-e4.js → settingDc0THS-p.js} +1 -1
- package/dist/components/{settingjTUOI6Mm.js → settingbBZdqUd4.js} +3 -3
- package/dist/components/{starBYNGaEpq.js → star4mf8YXXg.js} +1 -1
- package/dist/components/{starDlznUFWe.js → starCPNRqnqz.js} +1 -1
- package/dist/components/{tailorIp9ltUDh.js → tailorB7TqXg5T.js} +1 -1
- package/dist/components/{tailorDNalOD3B.js → tailorfTcGg1n3.js} +1 -1
- package/dist/components/{useCommonIatIQYgz.js → useCommonBcu2vBNt.js} +1 -1
- package/dist/components/{useCommonQuWXQYVy.js → useCommonDV6XODnB.js} +1 -1
- package/dist/components/{voiceDLOYP8uT.js → voiceB8S4rKDI.js} +1 -1
- package/dist/components/{voiceCEHlUUHi.js → voiceDU2Vni9x.js} +1 -1
- package/dist/components/{zoomCfjxf2fA.js → zoomBn1qhxqR.js} +1 -1
- package/dist/components/{zoomInfc0fWGjY.js → zoomInD_8Csh5g.js} +1 -1
- package/dist/components/{zoomInCT6fL7B4.js → zoomInDyv5nd6T.js} +1 -1
- package/dist/components/{zoomOutCHMkqZ20.js → zoomOutC0vB2rpg.js} +1 -1
- package/dist/components/{zoomOutCCyBnDpt.js → zoomOutDDZGVubB.js} +1 -1
- package/dist/components/{zoomDDgUA7UY.js → zoomtmOdf1Vc.js} +1 -1
- package/dist/index.cjs.js +1 -1
- package/dist/index.css +1 -1
- package/dist/index.es.js +1 -1
- package/package.json +2 -2
- package/types/components/KfbView/KfbLabel.vue.d.ts +1 -0
- package/types/components/KfbView/index.d.ts +4 -3
- package/types/components/KfbView/index.vue.d.ts +5 -5
- package/types/components/KfbView/useTailor.d.ts +1 -1
- package/dist/components/indexBT0pDXGv.js +0 -4
- package/web-types.json +0 -156
|
@@ -10,25 +10,25 @@ 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
|
|
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
|
|
31
|
-
import { KfbView as ve, OpenSeadragon 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
|
+
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
|
+
import { KfbView as ve, OpenSeadragon as Le } from "kfb-view";
|
|
32
32
|
import ml from "v-lazy-image";
|
|
33
33
|
const It = Symbol("I18N_INJECT_KEY");
|
|
34
34
|
function ue() {
|
|
@@ -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) => (
|
|
95
|
-
default:
|
|
96
|
-
(
|
|
94
|
+
return (e, l) => (_(), H(o(ze), ll(ol(e.$attrs)), {
|
|
95
|
+
default: L(() => [
|
|
96
|
+
(_(), H(Ve(o(G)[u.name])))
|
|
97
97
|
]),
|
|
98
98
|
_: 1
|
|
99
99
|
}, 16));
|
|
@@ -104,10 +104,10 @@ const pl = {
|
|
|
104
104
|
}, Cl = { class: "flex align-items-center" }, $l = {
|
|
105
105
|
class: "margin-t-2 margin-b-2",
|
|
106
106
|
style: { width: "160px" }
|
|
107
|
-
}, Tl = { class: "flex align-items-center" },
|
|
107
|
+
}, Tl = { class: "flex align-items-center" }, Ll = {
|
|
108
108
|
class: "margin-t-2 margin-b-2",
|
|
109
109
|
style: { width: "160px" }
|
|
110
|
-
},
|
|
110
|
+
}, xl = /* @__PURE__ */ J({
|
|
111
111
|
name: "KfbToolConfig",
|
|
112
112
|
__name: "KfbToolConfig",
|
|
113
113
|
props: {
|
|
@@ -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,38 +133,38 @@ 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
|
|
141
|
-
var
|
|
142
|
-
return ((
|
|
140
|
+
function g(h) {
|
|
141
|
+
var n;
|
|
142
|
+
return ((n = h.props) == null ? void 0 : n.text) || (m(h.name) ? w[h.name] : "");
|
|
143
143
|
}
|
|
144
|
-
return (h,
|
|
145
|
-
k("h3", gl, E(
|
|
146
|
-
C(
|
|
147
|
-
default:
|
|
148
|
-
(
|
|
144
|
+
return (h, n) => (_(), x("div", hl, [
|
|
145
|
+
k("h3", gl, E(o(l)("显示管理")), 1),
|
|
146
|
+
C(o(rl), { gutter: 10 }, {
|
|
147
|
+
default: L(() => [
|
|
148
|
+
(_(!0), x(oe, null, ae(t.value, (d) => (_(), H(o(ul), {
|
|
149
149
|
key: d.name,
|
|
150
150
|
span: 8
|
|
151
151
|
}, {
|
|
152
|
-
default:
|
|
153
|
-
var c,
|
|
152
|
+
default: L(() => {
|
|
153
|
+
var c, a;
|
|
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(
|
|
167
|
-
C(
|
|
166
|
+
k("p", _l, E(g(d)), 1),
|
|
167
|
+
C(o(Ee), {
|
|
168
168
|
modelValue: d.show,
|
|
169
169
|
"onUpdate:modelValue": (f) => d.show = f,
|
|
170
170
|
"active-text": "",
|
|
@@ -179,23 +179,23 @@ const pl = {
|
|
|
179
179
|
_: 1
|
|
180
180
|
}),
|
|
181
181
|
k("div", null, [
|
|
182
|
-
k("h3", bl, E(
|
|
182
|
+
k("h3", bl, E(o(l)("其他设置")), 1),
|
|
183
183
|
k("div", kl, [
|
|
184
|
-
k("p", zl, E(
|
|
185
|
-
C(
|
|
186
|
-
modelValue:
|
|
187
|
-
"onUpdate:modelValue":
|
|
184
|
+
k("p", zl, E(o(l)("工具列表显示切换")), 1),
|
|
185
|
+
C(o(ot), {
|
|
186
|
+
modelValue: o(i),
|
|
187
|
+
"onUpdate:modelValue": n[0] || (n[0] = (d) => pe(i) ? i.value = d : null)
|
|
188
188
|
}, {
|
|
189
|
-
default:
|
|
190
|
-
C(
|
|
191
|
-
default:
|
|
192
|
-
K(E(
|
|
189
|
+
default: L(() => [
|
|
190
|
+
C(o(Te), { value: !0 }, {
|
|
191
|
+
default: L(() => [
|
|
192
|
+
K(E(o(l)("显示工具名称")), 1)
|
|
193
193
|
]),
|
|
194
194
|
_: 1
|
|
195
195
|
}),
|
|
196
|
-
C(
|
|
197
|
-
default:
|
|
198
|
-
K(E(
|
|
196
|
+
C(o(Te), { value: !1 }, {
|
|
197
|
+
default: L(() => [
|
|
198
|
+
K(E(o(l)("隐藏工具名称")), 1)
|
|
199
199
|
]),
|
|
200
200
|
_: 1
|
|
201
201
|
})
|
|
@@ -204,21 +204,21 @@ const pl = {
|
|
|
204
204
|
}, 8, ["modelValue"])
|
|
205
205
|
]),
|
|
206
206
|
k("div", Cl, [
|
|
207
|
-
k("p", $l, E(
|
|
208
|
-
C(
|
|
209
|
-
modelValue:
|
|
210
|
-
"onUpdate:modelValue":
|
|
207
|
+
k("p", $l, E(o(l)("小键盘显示切换")), 1),
|
|
208
|
+
C(o(ot), {
|
|
209
|
+
modelValue: o(v),
|
|
210
|
+
"onUpdate:modelValue": n[1] || (n[1] = (d) => pe(v) ? v.value = d : null)
|
|
211
211
|
}, {
|
|
212
|
-
default:
|
|
213
|
-
C(
|
|
214
|
-
default:
|
|
215
|
-
K(E(
|
|
212
|
+
default: L(() => [
|
|
213
|
+
C(o(Te), { value: !0 }, {
|
|
214
|
+
default: L(() => [
|
|
215
|
+
K(E(o(l)("显示小键盘")), 1)
|
|
216
216
|
]),
|
|
217
217
|
_: 1
|
|
218
218
|
}),
|
|
219
|
-
C(
|
|
220
|
-
default:
|
|
221
|
-
K(E(
|
|
219
|
+
C(o(Te), { value: !1 }, {
|
|
220
|
+
default: L(() => [
|
|
221
|
+
K(E(o(l)("隐藏小键盘")), 1)
|
|
222
222
|
]),
|
|
223
223
|
_: 1
|
|
224
224
|
})
|
|
@@ -227,21 +227,21 @@ const pl = {
|
|
|
227
227
|
}, 8, ["modelValue"])
|
|
228
228
|
]),
|
|
229
229
|
k("div", Tl, [
|
|
230
|
-
k("p",
|
|
231
|
-
C(
|
|
232
|
-
modelValue:
|
|
233
|
-
"onUpdate:modelValue":
|
|
230
|
+
k("p", Ll, E(o(l)("水印文字")), 1),
|
|
231
|
+
C(o(ot), {
|
|
232
|
+
modelValue: o(r),
|
|
233
|
+
"onUpdate:modelValue": n[2] || (n[2] = (d) => pe(r) ? r.value = d : null)
|
|
234
234
|
}, {
|
|
235
|
-
default:
|
|
236
|
-
C(
|
|
237
|
-
default:
|
|
238
|
-
K(E(
|
|
235
|
+
default: L(() => [
|
|
236
|
+
C(o(Te), { value: !0 }, {
|
|
237
|
+
default: L(() => [
|
|
238
|
+
K(E(o(l)("启用")), 1)
|
|
239
239
|
]),
|
|
240
240
|
_: 1
|
|
241
241
|
}),
|
|
242
|
-
C(
|
|
243
|
-
default:
|
|
244
|
-
K(E(
|
|
242
|
+
C(o(Te), { value: !1 }, {
|
|
243
|
+
default: L(() => [
|
|
244
|
+
K(E(o(l)("禁用")), 1)
|
|
245
245
|
]),
|
|
246
246
|
_: 1
|
|
247
247
|
})
|
|
@@ -263,126 +263,126 @@ 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
|
})));
|
|
291
291
|
ee(() => l.menu, (c) => {
|
|
292
|
-
m.value =
|
|
292
|
+
m.value = n(c);
|
|
293
293
|
});
|
|
294
|
-
function
|
|
295
|
-
return c.map((
|
|
296
|
-
const f = typeof
|
|
294
|
+
function n(c) {
|
|
295
|
+
return c.map((a) => {
|
|
296
|
+
const f = typeof a == "string" ? a : a.name;
|
|
297
297
|
return v[f] ? {
|
|
298
298
|
name: "custom",
|
|
299
|
-
show: typeof
|
|
299
|
+
show: typeof a == "string" ? !0 : a.show !== !1,
|
|
300
300
|
props: we(W({
|
|
301
301
|
text: v[f],
|
|
302
302
|
component: al(Q, {
|
|
303
303
|
name: f
|
|
304
304
|
})
|
|
305
|
-
}, typeof
|
|
305
|
+
}, typeof a == "string" ? {} : a.props), {
|
|
306
306
|
name: f
|
|
307
307
|
})
|
|
308
308
|
} : f === "process" ? {
|
|
309
309
|
name: f,
|
|
310
|
-
props: typeof
|
|
310
|
+
props: typeof a == "string" ? {
|
|
311
311
|
process: l.process
|
|
312
312
|
} : W({
|
|
313
313
|
process: l.process
|
|
314
|
-
},
|
|
315
|
-
slots: typeof
|
|
316
|
-
show: typeof
|
|
314
|
+
}, a.props),
|
|
315
|
+
slots: typeof a == "string" ? void 0 : a.slots,
|
|
316
|
+
show: typeof a == "string" ? !0 : a.show !== !1
|
|
317
317
|
} : f === "microscope" ? {
|
|
318
318
|
name: f,
|
|
319
|
-
props: typeof
|
|
319
|
+
props: typeof a == "string" ? {
|
|
320
320
|
process: l.process
|
|
321
321
|
} : W({
|
|
322
322
|
microscope: l.microscope
|
|
323
|
-
},
|
|
324
|
-
slots: typeof
|
|
325
|
-
show: typeof
|
|
323
|
+
}, a.props),
|
|
324
|
+
slots: typeof a == "string" ? void 0 : a.slots,
|
|
325
|
+
show: typeof a == "string" ? !0 : a.show !== !1
|
|
326
326
|
} : {
|
|
327
327
|
name: f,
|
|
328
|
-
props: typeof
|
|
329
|
-
slots: typeof
|
|
330
|
-
show: typeof
|
|
328
|
+
props: typeof a == "string" ? {} : a.props,
|
|
329
|
+
slots: typeof a == "string" ? void 0 : a.slots,
|
|
330
|
+
show: typeof a == "string" ? !0 : a.show !== !1
|
|
331
331
|
};
|
|
332
332
|
});
|
|
333
333
|
}
|
|
334
|
-
function d(c,
|
|
334
|
+
function d(c, a) {
|
|
335
335
|
const f = {
|
|
336
|
-
annotate: () => r.value.startDraw(
|
|
337
|
-
tailor: () => r.value.shotScreen(
|
|
338
|
-
process: () => r.value.forceRedraw(
|
|
339
|
-
microscope: () => r.value.scopeChange(
|
|
340
|
-
move: () => r.value.fastMove(
|
|
336
|
+
annotate: () => r.value.startDraw(a),
|
|
337
|
+
tailor: () => r.value.shotScreen(a),
|
|
338
|
+
process: () => r.value.forceRedraw(a),
|
|
339
|
+
microscope: () => r.value.scopeChange(a),
|
|
340
|
+
move: () => r.value.fastMove(a),
|
|
341
341
|
endDraw: () => r.value.endDraw(),
|
|
342
342
|
info: () => r.value.info(),
|
|
343
|
-
zoom: () => r.value.zoomTo(
|
|
344
|
-
flip: () => r.value.toggleFlip(
|
|
345
|
-
config: () =>
|
|
346
|
-
grid: () => r.value.updateGrid(
|
|
347
|
-
ruler: () => r.value.updateGrid(
|
|
348
|
-
graduation: () => r.value.updateGraduation(
|
|
349
|
-
navigator: () => r.value.updateNavigator(
|
|
343
|
+
zoom: () => r.value.zoomTo(a),
|
|
344
|
+
flip: () => r.value.toggleFlip(a),
|
|
345
|
+
config: () => i.value = !0,
|
|
346
|
+
grid: () => r.value.updateGrid(a),
|
|
347
|
+
ruler: () => r.value.updateGrid(a),
|
|
348
|
+
graduation: () => r.value.updateGraduation(a),
|
|
349
|
+
navigator: () => r.value.updateNavigator(a),
|
|
350
350
|
tool: () => {
|
|
351
351
|
r.value.updateGrid({
|
|
352
|
-
show:
|
|
352
|
+
show: a
|
|
353
353
|
}), r.value.updateGraduation({
|
|
354
|
-
show:
|
|
354
|
+
show: a
|
|
355
355
|
}), r.value.updateGrid({
|
|
356
|
-
ruler:
|
|
357
|
-
}), r.value.updateNavigator(
|
|
356
|
+
ruler: a
|
|
357
|
+
}), r.value.updateNavigator(a);
|
|
358
358
|
}
|
|
359
359
|
};
|
|
360
|
-
f[c] ? f[c]() : t("tool", c,
|
|
360
|
+
f[c] ? f[c]() : t("tool", c, a);
|
|
361
361
|
}
|
|
362
|
-
return (c,
|
|
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
|
-
default:
|
|
370
|
-
f.slots ? (
|
|
369
|
+
default: L(() => [
|
|
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
|
-
C(
|
|
377
|
-
modelValue:
|
|
378
|
-
"onUpdate:modelValue":
|
|
376
|
+
C(o(Ge), {
|
|
377
|
+
modelValue: i.value,
|
|
378
|
+
"onUpdate:modelValue": a[1] || (a[1] = (f) => i.value = f),
|
|
379
379
|
width: "800px",
|
|
380
|
-
title:
|
|
380
|
+
title: o(w)("阅片工具设置中心")
|
|
381
381
|
}, {
|
|
382
|
-
default:
|
|
383
|
-
C(
|
|
382
|
+
default: L(() => [
|
|
383
|
+
C(xl, {
|
|
384
384
|
menus: m.value,
|
|
385
|
-
"onUpdate:menus":
|
|
385
|
+
"onUpdate:menus": a[0] || (a[0] = (f) => m.value = f)
|
|
386
386
|
}, null, 8, ["menus"])
|
|
387
387
|
]),
|
|
388
388
|
_: 1
|
|
@@ -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 =
|
|
467
|
-
const
|
|
465
|
+
const g = atob(m == null ? void 0 : m[1]);
|
|
466
|
+
let h = g.length;
|
|
467
|
+
const n = new Uint8Array(h);
|
|
468
468
|
for (; h--; )
|
|
469
|
-
|
|
470
|
-
return new Blob([
|
|
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,193 +527,193 @@ 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
|
-
],
|
|
584
|
-
var
|
|
585
|
-
return
|
|
586
|
-
label:
|
|
586
|
+
], g = B(() => {
|
|
587
|
+
var a;
|
|
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), {
|
|
590
593
|
children: m
|
|
591
594
|
}) : we(W({}, f), {
|
|
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
|
}
|
|
627
630
|
];
|
|
628
631
|
});
|
|
629
|
-
ee(() => t.value, (
|
|
630
|
-
f != null && f.viewer && (f.viewer.removeHandler("canvas-contextmenu", h), f.viewer.removeHandler("canvas-click",
|
|
632
|
+
ee(() => t.value, (a, f) => {
|
|
633
|
+
f != null && f.viewer && (f.viewer.removeHandler("canvas-contextmenu", h), f.viewer.removeHandler("canvas-click", n)), a != null && a.viewer && (a.viewer.addHandler("canvas-contextmenu", h), a.viewer.addHandler("canvas-click", n));
|
|
631
634
|
}), he(() => {
|
|
632
|
-
var
|
|
633
|
-
(
|
|
635
|
+
var a;
|
|
636
|
+
(a = t.value) != null && a.viewer && (t.value.viewer.addHandler("canvas-contextmenu", h), t.value.viewer.addHandler("canvas-click", n)), document.body.addEventListener("click", n);
|
|
634
637
|
}), Ie(() => {
|
|
635
|
-
var
|
|
636
|
-
(
|
|
638
|
+
var a;
|
|
639
|
+
(a = t.value) != null && a.viewer && (t.value.viewer.removeHandler("canvas-contextmenu", h), t.value.viewer.removeHandler("canvas-click", n)), document.body.removeEventListener("click", n);
|
|
637
640
|
});
|
|
638
|
-
function h(
|
|
639
|
-
|
|
641
|
+
function h(a) {
|
|
642
|
+
a.preventDefault = !0, l.value.top = `${a.position.y}px`, l.value.left = `${a.position.x}px`, l.value.display === "block" ? l.value.display = "none" : l.value.display = "block";
|
|
640
643
|
}
|
|
641
|
-
function
|
|
644
|
+
function n() {
|
|
642
645
|
l.value.display = "none";
|
|
643
646
|
}
|
|
644
|
-
function d(
|
|
645
|
-
|
|
646
|
-
tool:
|
|
647
|
+
function d(a, f) {
|
|
648
|
+
a.children || ((f == null ? void 0 : f.value) === "annotate" ? r("tool", "annotate", {
|
|
649
|
+
tool: a.value.substring(0, 1).toLocaleUpperCase() + a.value.substring(1),
|
|
647
650
|
once: !0
|
|
648
|
-
}) :
|
|
651
|
+
}) : a.value === "tailor_now" ? r("tool", "tailor", !0) : r("tool", a.value), n());
|
|
649
652
|
}
|
|
650
|
-
function c(
|
|
651
|
-
return
|
|
653
|
+
function c(a) {
|
|
654
|
+
return a == null || typeof a != "object" && typeof a != "function" ? !1 : (
|
|
652
655
|
// 函数式组件
|
|
653
|
-
typeof
|
|
654
|
-
"render" in
|
|
656
|
+
typeof a == "function" || // 对象式组件
|
|
657
|
+
"render" in a || "setup" in a
|
|
655
658
|
);
|
|
656
659
|
}
|
|
657
|
-
return (
|
|
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
|
-
default:
|
|
675
|
-
(
|
|
677
|
+
default: L(() => [
|
|
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
|
-
default:
|
|
705
|
-
(
|
|
707
|
+
default: L(() => [
|
|
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,
|
|
@@ -736,40 +739,40 @@ const Sl = ["onClick"], Hl = ["src"], Pl = {
|
|
|
736
739
|
}, W({}, st)),
|
|
737
740
|
setup(u, { expose: e }) {
|
|
738
741
|
const l = u, t = rt(W(W({}, st), l));
|
|
739
|
-
ee(() => l, (
|
|
740
|
-
h({ name: "change", value:
|
|
742
|
+
ee(() => l, (n) => {
|
|
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(() =>
|
|
750
|
-
d != null && d.viewer && d.viewer.removeHandler("zoom", m),
|
|
749
|
+
width: w.value,
|
|
750
|
+
height: w.value
|
|
751
|
+
})), i = Z("kfbView", T({}));
|
|
752
|
+
ee(() => i.value, (n, d) => {
|
|
753
|
+
d != null && d.viewer && d.viewer.removeHandler("zoom", m), n != null && n.viewer && n.viewer.addHandler("zoom", m);
|
|
751
754
|
}), he(() => {
|
|
752
|
-
var
|
|
753
|
-
(
|
|
755
|
+
var n;
|
|
756
|
+
(n = i.value) != null && n.viewer && i.value.viewer.addHandler("zoom", m);
|
|
754
757
|
}), Ie(() => {
|
|
755
|
-
var
|
|
756
|
-
(
|
|
758
|
+
var 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
|
-
|
|
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
|
-
function h({ name:
|
|
768
|
-
var
|
|
769
|
-
const c = (f = (
|
|
770
|
-
if (
|
|
770
|
+
function h({ name: n, value: d }) {
|
|
771
|
+
var a, f;
|
|
772
|
+
const c = (f = (a = i.value.$options) == null ? void 0 : a.pxConversion) == null ? void 0 : f.imageCapRes;
|
|
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
|
-
} else if (
|
|
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
|
-
}), (
|
|
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",
|
|
@@ -846,17 +849,19 @@ const Sl = ["onClick"], Hl = ["src"], Pl = {
|
|
|
846
849
|
}, Ql = ["src"], Jl = ["src"], eo = /* @__PURE__ */ J({
|
|
847
850
|
__name: "KfbLabel",
|
|
848
851
|
props: {
|
|
852
|
+
visible: { type: Boolean },
|
|
849
853
|
info: {},
|
|
850
854
|
slide: {},
|
|
851
855
|
pathologyHandle: { type: Function }
|
|
852
856
|
},
|
|
853
857
|
emits: ["tool"],
|
|
854
858
|
setup(u, { emit: e }) {
|
|
855
|
-
|
|
859
|
+
var n;
|
|
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("绑定病理号"));
|
|
856
861
|
function m() {
|
|
857
|
-
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);
|
|
858
863
|
}
|
|
859
|
-
function
|
|
864
|
+
function g() {
|
|
860
865
|
r.value = !0;
|
|
861
866
|
}
|
|
862
867
|
function h() {
|
|
@@ -864,25 +869,25 @@ const Sl = ["onClick"], Hl = ["src"], Pl = {
|
|
|
864
869
|
r.value = !1;
|
|
865
870
|
});
|
|
866
871
|
}
|
|
867
|
-
return (
|
|
868
|
-
|
|
872
|
+
return (d, c) => (_(), x("div", Gl, [
|
|
873
|
+
xe(k("div", { class: "hzzt-kfb-label__title" }, E(o(l)(`点击标签旋转${d.pathologyHandle ? ",点击病理号重绑" : ""}`)), 513), [
|
|
869
874
|
[Ae, v.value]
|
|
870
875
|
]),
|
|
871
|
-
|
|
876
|
+
xe(k("div", Wl, [
|
|
872
877
|
k("img", {
|
|
873
|
-
src:
|
|
874
|
-
style: q({ transform: `rotate(${
|
|
878
|
+
src: d.info.labelImg,
|
|
879
|
+
style: q({ transform: `rotate(${d.slide.angle}deg)` }),
|
|
875
880
|
onClick: m
|
|
876
881
|
}, null, 12, ql)
|
|
877
882
|
], 512), [
|
|
878
883
|
[Ae, v.value]
|
|
879
884
|
]),
|
|
880
|
-
|
|
885
|
+
d.pathologyHandle ? xe((_(), x("div", {
|
|
881
886
|
key: 0,
|
|
882
887
|
class: "hzzt-kfb-label__pathology flex align-items-center justify-content-between",
|
|
883
|
-
onClick:
|
|
888
|
+
onClick: g
|
|
884
889
|
}, [
|
|
885
|
-
k("span", Zl, E(
|
|
890
|
+
k("span", Zl, E(d.slide.pathology_number), 1),
|
|
886
891
|
C(Q, {
|
|
887
892
|
size: "14",
|
|
888
893
|
name: "annotate"
|
|
@@ -891,96 +896,96 @@ const Sl = ["onClick"], Hl = ["src"], Pl = {
|
|
|
891
896
|
[Ae, v.value]
|
|
892
897
|
]) : R("", !0),
|
|
893
898
|
k("span", {
|
|
894
|
-
onClick:
|
|
899
|
+
onClick: c[0] || (c[0] = (a) => v.value = !v.value),
|
|
895
900
|
style: q({
|
|
896
901
|
transform: `translateY(${v.value ? "-50%" : 0})`
|
|
897
902
|
}),
|
|
898
903
|
class: "hzzt-kfb-label__expend flex align-items-center justify-content-center"
|
|
899
904
|
}, [
|
|
900
|
-
v.value ? (
|
|
905
|
+
v.value ? (_(), H(Q, {
|
|
901
906
|
key: 0,
|
|
902
907
|
size: "10",
|
|
903
908
|
name: "arrowLeft"
|
|
904
|
-
})) : (
|
|
909
|
+
})) : (_(), H(Q, {
|
|
905
910
|
key: 1,
|
|
906
911
|
size: "10",
|
|
907
912
|
name: "arrowRight"
|
|
908
913
|
}))
|
|
909
914
|
], 4),
|
|
910
|
-
C(
|
|
915
|
+
C(o(Ge), {
|
|
911
916
|
modelValue: r.value,
|
|
912
|
-
"onUpdate:modelValue":
|
|
917
|
+
"onUpdate:modelValue": c[5] || (c[5] = (a) => r.value = a),
|
|
913
918
|
"append-to-body": !0,
|
|
914
|
-
title:
|
|
919
|
+
title: i.value,
|
|
915
920
|
width: "450px"
|
|
916
921
|
}, {
|
|
917
|
-
footer:
|
|
918
|
-
C(
|
|
919
|
-
onClick:
|
|
922
|
+
footer: L(() => [
|
|
923
|
+
C(o(_e), {
|
|
924
|
+
onClick: c[4] || (c[4] = (a) => r.value = !1)
|
|
920
925
|
}, {
|
|
921
|
-
default:
|
|
922
|
-
K(E(
|
|
926
|
+
default: L(() => [
|
|
927
|
+
K(E(o(l)("取消")), 1)
|
|
923
928
|
]),
|
|
924
929
|
_: 1
|
|
925
930
|
}),
|
|
926
|
-
C(
|
|
931
|
+
C(o(_e), {
|
|
927
932
|
type: "primary",
|
|
928
933
|
onClick: h
|
|
929
934
|
}, {
|
|
930
|
-
default:
|
|
931
|
-
K(E(
|
|
935
|
+
default: L(() => [
|
|
936
|
+
K(E(o(l)("确认")), 1)
|
|
932
937
|
]),
|
|
933
938
|
_: 1
|
|
934
939
|
})
|
|
935
940
|
]),
|
|
936
|
-
default:
|
|
941
|
+
default: L(() => [
|
|
937
942
|
k("div", Yl, [
|
|
938
943
|
k("div", Xl, [
|
|
939
944
|
k("img", {
|
|
940
|
-
src:
|
|
945
|
+
src: d.slide.labelImg
|
|
941
946
|
}, null, 8, Ql),
|
|
942
947
|
k("img", {
|
|
943
|
-
src:
|
|
948
|
+
src: d.slide.previewImg
|
|
944
949
|
}, null, 8, Jl)
|
|
945
950
|
])
|
|
946
951
|
]),
|
|
947
|
-
C(
|
|
948
|
-
default:
|
|
949
|
-
C(
|
|
950
|
-
label:
|
|
952
|
+
C(o(nt), { class: "margin-t-2" }, {
|
|
953
|
+
default: L(() => [
|
|
954
|
+
C(o(ie), {
|
|
955
|
+
label: o(l)("病理号")
|
|
951
956
|
}, {
|
|
952
|
-
default:
|
|
953
|
-
C(
|
|
954
|
-
modelValue:
|
|
955
|
-
"onUpdate:modelValue":
|
|
956
|
-
placeholder:
|
|
957
|
+
default: L(() => [
|
|
958
|
+
C(o(at), {
|
|
959
|
+
modelValue: d.slide.pathology_number,
|
|
960
|
+
"onUpdate:modelValue": c[1] || (c[1] = (a) => d.slide.pathology_number = a),
|
|
961
|
+
placeholder: o(l)("输入病理号"),
|
|
957
962
|
clearable: ""
|
|
958
963
|
}, null, 8, ["modelValue", "placeholder"])
|
|
959
964
|
]),
|
|
960
965
|
_: 1
|
|
961
966
|
}, 8, ["label"]),
|
|
962
|
-
C(
|
|
963
|
-
label:
|
|
967
|
+
C(o(ie), {
|
|
968
|
+
label: o(l)("蜡块号")
|
|
964
969
|
}, {
|
|
965
|
-
default:
|
|
966
|
-
C(
|
|
967
|
-
modelValue:
|
|
968
|
-
"onUpdate:modelValue":
|
|
969
|
-
placeholder:
|
|
970
|
+
default: L(() => [
|
|
971
|
+
C(o(at), {
|
|
972
|
+
modelValue: d.slide.paraffin_block_number,
|
|
973
|
+
"onUpdate:modelValue": c[2] || (c[2] = (a) => d.slide.paraffin_block_number = a),
|
|
974
|
+
placeholder: o(l)("输入蜡块号"),
|
|
970
975
|
clearable: ""
|
|
971
976
|
}, null, 8, ["modelValue", "placeholder"])
|
|
972
977
|
]),
|
|
973
978
|
_: 1
|
|
974
979
|
}, 8, ["label"]),
|
|
975
|
-
|
|
980
|
+
d.slide.slide_id ? R("", !0) : (_(), H(o(ie), {
|
|
976
981
|
key: 0,
|
|
977
|
-
label:
|
|
982
|
+
label: o(l)("试剂")
|
|
978
983
|
}, {
|
|
979
|
-
default:
|
|
980
|
-
C(
|
|
981
|
-
modelValue:
|
|
982
|
-
"onUpdate:modelValue":
|
|
983
|
-
placeholder:
|
|
984
|
+
default: L(() => [
|
|
985
|
+
C(o(at), {
|
|
986
|
+
modelValue: d.slide.reagent,
|
|
987
|
+
"onUpdate:modelValue": c[3] || (c[3] = (a) => d.slide.reagent = a),
|
|
988
|
+
placeholder: o(l)("输入试剂"),
|
|
984
989
|
clearable: ""
|
|
985
990
|
}, null, 8, ["modelValue", "placeholder"])
|
|
986
991
|
]),
|
|
@@ -994,89 +999,89 @@ const Sl = ["onClick"], Hl = ["src"], Pl = {
|
|
|
994
999
|
}, 8, ["modelValue", "title"])
|
|
995
1000
|
]));
|
|
996
1001
|
}
|
|
997
|
-
}), to = /* @__PURE__ */ ge(eo, [["__scopeId", "data-v-
|
|
1002
|
+
}), to = /* @__PURE__ */ ge(eo, [["__scopeId", "data-v-e1475ef3"]]);
|
|
998
1003
|
function lo(u, e) {
|
|
999
|
-
const l = T(1), t = T(null),
|
|
1004
|
+
const l = T(1), t = T(null), w = T(null);
|
|
1000
1005
|
function v() {
|
|
1001
|
-
u.value.viewer.addHandler("canvas-drag", (
|
|
1002
|
-
t.value || (t.value =
|
|
1003
|
-
}), 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) => {
|
|
1004
1009
|
if (l.value !== 1) {
|
|
1005
|
-
|
|
1006
|
-
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);
|
|
1007
1012
|
u.value.viewer.viewport.panTo(c), t.value = null;
|
|
1008
1013
|
}
|
|
1009
1014
|
});
|
|
1010
1015
|
}
|
|
1011
|
-
function r({ name:
|
|
1012
|
-
|
|
1016
|
+
function r({ name: i, value: m }) {
|
|
1017
|
+
i === "ratio" && (l.value = m / 1);
|
|
1013
1018
|
}
|
|
1014
1019
|
return {
|
|
1015
1020
|
moveEvent: v,
|
|
1016
1021
|
fastMove: r
|
|
1017
1022
|
};
|
|
1018
1023
|
}
|
|
1019
|
-
function oo(u, e, l, t,
|
|
1024
|
+
function oo(u, e, l, t, w) {
|
|
1020
1025
|
const v = T(void 0), r = T([]);
|
|
1021
1026
|
ee(() => u.aiLabelList, h);
|
|
1022
|
-
function
|
|
1023
|
-
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, (
|
|
1024
|
-
v.value =
|
|
1027
|
+
function i() {
|
|
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) => {
|
|
1029
|
+
v.value = a, c(), e("tool", "select-label", v.value);
|
|
1025
1030
|
}), l.value.$on(ve.events.EVENT_CANCEL_SELECT_LABEL, () => {
|
|
1026
1031
|
v.value = void 0, e("tool", "cancel-select-label", v.value);
|
|
1027
1032
|
}), m("list")();
|
|
1028
1033
|
}
|
|
1029
|
-
function m(
|
|
1030
|
-
return (f) =>
|
|
1034
|
+
function m(a) {
|
|
1035
|
+
return (f) => g(a, f);
|
|
1031
1036
|
}
|
|
1032
|
-
function
|
|
1037
|
+
function g(a, f) {
|
|
1033
1038
|
var b;
|
|
1034
|
-
if (
|
|
1039
|
+
if (a === "add" && f && ((f == null ? void 0 : f.subType) || ((b = f == null ? void 0 : f.__data__) == null ? void 0 : b.subType)) === "voice")
|
|
1035
1040
|
t(f);
|
|
1036
1041
|
else
|
|
1037
|
-
return u.labelHandle(
|
|
1038
|
-
r.value =
|
|
1042
|
+
return u.labelHandle(a, u.slide, f, r.value).then((y) => {
|
|
1043
|
+
r.value = y, h();
|
|
1039
1044
|
}).catch(() => {
|
|
1040
1045
|
h();
|
|
1041
1046
|
});
|
|
1042
1047
|
}
|
|
1043
1048
|
function h() {
|
|
1044
|
-
var
|
|
1045
|
-
if ((
|
|
1049
|
+
var a;
|
|
1050
|
+
if ((a = l.value) != null && a.initLabelList) {
|
|
1046
1051
|
const f = [...r.value, ...u.aiLabelList || []];
|
|
1047
1052
|
f.find(({ id: b }) => {
|
|
1048
|
-
var
|
|
1049
|
-
return b === ((
|
|
1053
|
+
var y;
|
|
1054
|
+
return b === ((y = v.value) == null ? void 0 : y.id);
|
|
1050
1055
|
}) || (v.value = void 0), l.value.initLabelList(f);
|
|
1051
1056
|
}
|
|
1052
1057
|
}
|
|
1053
|
-
function
|
|
1054
|
-
var
|
|
1058
|
+
function n(a, f) {
|
|
1059
|
+
var y, p;
|
|
1055
1060
|
v.value && (v.value.select = !1, v.value = void 0);
|
|
1056
|
-
const b = (l.value.labelList || []).findIndex((
|
|
1061
|
+
const b = (l.value.labelList || []).findIndex((s) => s.id === a.id);
|
|
1057
1062
|
if (b > -1) {
|
|
1058
|
-
v.value = (
|
|
1059
|
-
const
|
|
1060
|
-
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();
|
|
1061
1066
|
}
|
|
1062
|
-
f &&
|
|
1067
|
+
f && w(f);
|
|
1063
1068
|
}
|
|
1064
|
-
function d(
|
|
1065
|
-
return u.labelHandle("add", u.slide,
|
|
1069
|
+
function d(a) {
|
|
1070
|
+
return u.labelHandle("add", u.slide, a, r.value).then((f) => {
|
|
1066
1071
|
r.value = f, h();
|
|
1067
1072
|
}).catch(() => {
|
|
1068
1073
|
h();
|
|
1069
1074
|
});
|
|
1070
1075
|
}
|
|
1071
1076
|
function c() {
|
|
1072
|
-
var f, b,
|
|
1073
|
-
(((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();
|
|
1074
1079
|
}
|
|
1075
1080
|
return {
|
|
1076
1081
|
currentLabel: v,
|
|
1077
1082
|
localLabelList: r,
|
|
1078
|
-
initLabel:
|
|
1079
|
-
jumpToLabel:
|
|
1083
|
+
initLabel: i,
|
|
1084
|
+
jumpToLabel: n,
|
|
1080
1085
|
reloadLabelList: h,
|
|
1081
1086
|
eventHandel: m,
|
|
1082
1087
|
addHandle: d
|
|
@@ -1091,65 +1096,65 @@ function ao() {
|
|
|
1091
1096
|
};
|
|
1092
1097
|
}
|
|
1093
1098
|
function no(u, e) {
|
|
1094
|
-
const { t: l } = ue(), t = T(!1),
|
|
1099
|
+
const { t: l } = ue(), t = T(!1), w = T();
|
|
1095
1100
|
let v = null;
|
|
1096
|
-
const r = T(!1),
|
|
1101
|
+
const r = T(!1), i = T(0);
|
|
1097
1102
|
let m = 0;
|
|
1098
|
-
const
|
|
1099
|
-
let
|
|
1100
|
-
function d(
|
|
1101
|
-
|
|
1103
|
+
const g = T([]), h = T(void 0);
|
|
1104
|
+
let n = !1;
|
|
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();
|
|
1102
1107
|
}
|
|
1103
1108
|
function c() {
|
|
1104
1109
|
return $e(this, null, function* () {
|
|
1105
1110
|
try {
|
|
1106
|
-
|
|
1107
|
-
|
|
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);
|
|
1108
1113
|
}), v.addEventListener("stop", () => $e(this, null, function* () {
|
|
1109
1114
|
if (h.value) {
|
|
1110
|
-
const
|
|
1111
|
-
h.value.src = URL.createObjectURL(
|
|
1115
|
+
const s = new Blob(g.value, { type: u.audioType || "audio/wav" });
|
|
1116
|
+
h.value.src = URL.createObjectURL(s);
|
|
1112
1117
|
}
|
|
1113
|
-
r.value = !1,
|
|
1118
|
+
r.value = !1, n && (yield p());
|
|
1114
1119
|
})), v.start(), r.value = !0, m = window.setInterval(() => {
|
|
1115
|
-
|
|
1120
|
+
i.value++;
|
|
1116
1121
|
}, 1e3);
|
|
1117
|
-
} catch (
|
|
1118
|
-
|
|
1122
|
+
} catch (s) {
|
|
1123
|
+
Lt.error(l("麦克风启用失败,请确认是否开启麦克风权限"));
|
|
1119
1124
|
}
|
|
1120
1125
|
});
|
|
1121
1126
|
}
|
|
1122
|
-
function
|
|
1123
|
-
|
|
1127
|
+
function a() {
|
|
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;
|
|
1124
1129
|
}
|
|
1125
|
-
function f(
|
|
1126
|
-
t.value = !0, h.value =
|
|
1130
|
+
function f(s) {
|
|
1131
|
+
t.value = !0, h.value = s, g.value = [], n = !1;
|
|
1127
1132
|
}
|
|
1128
1133
|
function b() {
|
|
1129
|
-
r.value &&
|
|
1134
|
+
r.value && a(), t.value = !1, r.value = !1, n = !1;
|
|
1130
1135
|
}
|
|
1131
|
-
function
|
|
1136
|
+
function y() {
|
|
1132
1137
|
return $e(this, null, function* () {
|
|
1133
|
-
if (!r.value && !
|
|
1134
|
-
|
|
1138
|
+
if (!r.value && !g.value.length) {
|
|
1139
|
+
Lt.error(l("请先录音"));
|
|
1135
1140
|
return;
|
|
1136
1141
|
}
|
|
1137
|
-
r.value &&
|
|
1142
|
+
r.value && a(), r.value = !1, n = !0, g.value.length && (yield p()), t.value = !1;
|
|
1138
1143
|
});
|
|
1139
1144
|
}
|
|
1140
1145
|
function p() {
|
|
1141
1146
|
return $e(this, null, function* () {
|
|
1142
1147
|
if (u.uploadHandle && h.value) {
|
|
1143
|
-
const
|
|
1148
|
+
const s = Et.service({
|
|
1144
1149
|
text: l("录音上传中")
|
|
1145
|
-
}), I = new Blob(
|
|
1146
|
-
|
|
1150
|
+
}), I = new Blob(g.value, { type: u.audioType || "audio/wav" });
|
|
1151
|
+
g.value = [];
|
|
1147
1152
|
try {
|
|
1148
|
-
yield u.uploadHandle(u.slide, h.value, I).then((
|
|
1149
|
-
h.value.src =
|
|
1150
|
-
}),
|
|
1151
|
-
} catch (
|
|
1152
|
-
|
|
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();
|
|
1153
1158
|
}
|
|
1154
1159
|
}
|
|
1155
1160
|
});
|
|
@@ -1157,28 +1162,28 @@ function no(u, e) {
|
|
|
1157
1162
|
return {
|
|
1158
1163
|
voiceVisible: t,
|
|
1159
1164
|
voiceForm: h,
|
|
1160
|
-
recordTime:
|
|
1165
|
+
recordTime: i,
|
|
1161
1166
|
isRecording: r,
|
|
1162
1167
|
drawVoice: d,
|
|
1163
1168
|
startRecording: c,
|
|
1164
|
-
stopRecording:
|
|
1169
|
+
stopRecording: a,
|
|
1165
1170
|
initVoice: f,
|
|
1166
1171
|
cancelRecord: b,
|
|
1167
|
-
confirmRecord:
|
|
1172
|
+
confirmRecord: y
|
|
1168
1173
|
};
|
|
1169
1174
|
}
|
|
1170
1175
|
function so(u, e, l) {
|
|
1171
|
-
const t = T([]),
|
|
1176
|
+
const t = T([]), w = T(0), v = T(!1);
|
|
1172
1177
|
let r = null;
|
|
1173
1178
|
ee(() => {
|
|
1174
1179
|
var c;
|
|
1175
1180
|
return (c = u.analysis) == null ? void 0 : c.hotmap_path;
|
|
1176
1181
|
}, (c) => {
|
|
1177
|
-
var
|
|
1178
|
-
if ((f = (
|
|
1179
|
-
|
|
1180
|
-
const
|
|
1181
|
-
|
|
1182
|
+
var a, f, b;
|
|
1183
|
+
if ((f = (a = e.value) == null ? void 0 : a.viewer) != null && f.world) {
|
|
1184
|
+
w.value = 0;
|
|
1185
|
+
const y = e.value.viewer.world.getItemAt(0);
|
|
1186
|
+
y && (y.tilesMatrix = {}, y.draw());
|
|
1182
1187
|
}
|
|
1183
1188
|
c && ((b = u.analysis) != null && b.zoom_roi) && l({
|
|
1184
1189
|
x: u.analysis.zoom_roi.x,
|
|
@@ -1187,18 +1192,18 @@ function so(u, e, l) {
|
|
|
1187
1192
|
height: u.analysis.zoom_roi.h
|
|
1188
1193
|
}, 5);
|
|
1189
1194
|
}), he(() => {
|
|
1190
|
-
window.addEventListener("mousemove",
|
|
1195
|
+
window.addEventListener("mousemove", g), window.addEventListener("mouseup", n);
|
|
1191
1196
|
}), Ie(() => {
|
|
1192
|
-
window.removeEventListener("mousemove",
|
|
1197
|
+
window.removeEventListener("mousemove", g), window.removeEventListener("mouseup", n);
|
|
1193
1198
|
});
|
|
1194
|
-
function
|
|
1195
|
-
var
|
|
1196
|
-
const b = we(W({},
|
|
1197
|
-
file: (
|
|
1199
|
+
function i(c, a, f) {
|
|
1200
|
+
var y, p, s, I;
|
|
1201
|
+
const b = we(W({}, a), {
|
|
1202
|
+
file: (y = u.analysis) == null ? void 0 : y.hotmap_path
|
|
1198
1203
|
});
|
|
1199
1204
|
if ((p = u.analysis) != null && p.hotmap_info) {
|
|
1200
|
-
if (f[
|
|
1201
|
-
if (((
|
|
1205
|
+
if (f[a.x + "_" + a.y + "_" + Number(a.scale)])
|
|
1206
|
+
if (((s = u.analysis) == null ? void 0 : s.hotmap_type) === "drag")
|
|
1202
1207
|
m(c, b);
|
|
1203
1208
|
else
|
|
1204
1209
|
return u.tileHandle(b);
|
|
@@ -1208,127 +1213,127 @@ function so(u, e, l) {
|
|
|
1208
1213
|
return u.tileHandle(b);
|
|
1209
1214
|
return c;
|
|
1210
1215
|
}
|
|
1211
|
-
function m(c,
|
|
1216
|
+
function m(c, a) {
|
|
1212
1217
|
const f = t.value.find((b) => b.url === c) || {
|
|
1213
1218
|
url: c,
|
|
1214
|
-
x:
|
|
1215
|
-
y:
|
|
1219
|
+
x: a.x,
|
|
1220
|
+
y: a.y,
|
|
1216
1221
|
img: void 0,
|
|
1217
1222
|
load: ""
|
|
1218
1223
|
};
|
|
1219
1224
|
if (!(f != null && f.img) && (t.value.push(f), f.load !== "success")) {
|
|
1220
1225
|
const b = new Image();
|
|
1221
|
-
b.src = u.tileHandle(
|
|
1226
|
+
b.src = u.tileHandle(a), b.onload = () => {
|
|
1222
1227
|
f.load = "success";
|
|
1223
1228
|
}, f.img = b;
|
|
1224
1229
|
}
|
|
1225
1230
|
}
|
|
1226
|
-
function
|
|
1227
|
-
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 };
|
|
1228
1233
|
}
|
|
1229
1234
|
function h(c) {
|
|
1230
|
-
const { x:
|
|
1231
|
-
v.value = !0, r = { x:
|
|
1235
|
+
const { x: a, y: f } = c;
|
|
1236
|
+
v.value = !0, r = { x: a, y: f };
|
|
1232
1237
|
}
|
|
1233
|
-
function
|
|
1238
|
+
function n() {
|
|
1234
1239
|
v.value = !1, r = null;
|
|
1235
1240
|
}
|
|
1236
1241
|
function d(c) {
|
|
1237
1242
|
const {
|
|
1238
|
-
context:
|
|
1243
|
+
context: a,
|
|
1239
1244
|
sourceWidth: f,
|
|
1240
1245
|
sourceHeight: b,
|
|
1241
|
-
position:
|
|
1246
|
+
position: y,
|
|
1242
1247
|
size: p,
|
|
1243
|
-
initRendered:
|
|
1248
|
+
initRendered: s,
|
|
1244
1249
|
tile: I,
|
|
1245
|
-
pixelDensityRatio:
|
|
1246
|
-
} = c, P = I.getUrl(), te =
|
|
1250
|
+
pixelDensityRatio: N
|
|
1251
|
+
} = c, P = I.getUrl(), te = w.value * N, ne = y.original.x;
|
|
1247
1252
|
if (ne < te && ne + p.x > te) {
|
|
1248
|
-
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 :
|
|
1249
|
-
|
|
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;
|
|
1254
|
+
a.drawImage(
|
|
1250
1255
|
Me,
|
|
1251
1256
|
0,
|
|
1252
1257
|
0,
|
|
1253
1258
|
f * j / p.x,
|
|
1254
1259
|
b,
|
|
1255
|
-
|
|
1256
|
-
|
|
1260
|
+
y.x,
|
|
1261
|
+
y.y,
|
|
1257
1262
|
j,
|
|
1258
1263
|
p.y
|
|
1259
|
-
),
|
|
1260
|
-
|
|
1264
|
+
), a.drawImage(
|
|
1265
|
+
s.canvas,
|
|
1261
1266
|
f * j / p.x,
|
|
1262
1267
|
0,
|
|
1263
1268
|
f * re / p.x,
|
|
1264
1269
|
b,
|
|
1265
|
-
|
|
1266
|
-
|
|
1270
|
+
y.x + j,
|
|
1271
|
+
y.y,
|
|
1267
1272
|
re,
|
|
1268
1273
|
p.y
|
|
1269
1274
|
);
|
|
1270
1275
|
} else if (ne + p.x <= te) {
|
|
1271
|
-
const j = t.value.find((le) => le.url === P), re = (j == null ? void 0 : j.load) === "success" ? j.img :
|
|
1272
|
-
|
|
1276
|
+
const j = t.value.find((le) => le.url === P), re = (j == null ? void 0 : j.load) === "success" ? j.img : s.canvas;
|
|
1277
|
+
a.drawImage(
|
|
1273
1278
|
re,
|
|
1274
1279
|
0,
|
|
1275
1280
|
0,
|
|
1276
1281
|
f,
|
|
1277
1282
|
b,
|
|
1278
|
-
|
|
1279
|
-
|
|
1283
|
+
y.x,
|
|
1284
|
+
y.y,
|
|
1280
1285
|
p.x,
|
|
1281
1286
|
p.y
|
|
1282
1287
|
);
|
|
1283
|
-
} else ne >= te &&
|
|
1284
|
-
|
|
1288
|
+
} else ne >= te && a.drawImage(
|
|
1289
|
+
s.canvas,
|
|
1285
1290
|
0,
|
|
1286
1291
|
0,
|
|
1287
1292
|
f,
|
|
1288
1293
|
b,
|
|
1289
|
-
|
|
1290
|
-
|
|
1294
|
+
y.x,
|
|
1295
|
+
y.y,
|
|
1291
1296
|
p.x,
|
|
1292
1297
|
p.y
|
|
1293
1298
|
);
|
|
1294
1299
|
}
|
|
1295
1300
|
return {
|
|
1296
|
-
getHotmapUrl:
|
|
1301
|
+
getHotmapUrl: i,
|
|
1297
1302
|
hotmapImgs: t,
|
|
1298
1303
|
handlerImage: d,
|
|
1299
|
-
hotmapLine:
|
|
1304
|
+
hotmapLine: w,
|
|
1300
1305
|
lineMouseDown: h
|
|
1301
1306
|
};
|
|
1302
1307
|
}
|
|
1303
1308
|
function io(u, e, l) {
|
|
1304
|
-
const t = sl(),
|
|
1305
|
-
v.onmessage = (
|
|
1306
|
-
const d =
|
|
1307
|
-
|
|
1309
|
+
const t = sl(), w = T(!1), v = new BroadcastChannel("sync_kfb_view");
|
|
1310
|
+
v.onmessage = (n) => {
|
|
1311
|
+
const d = n.data;
|
|
1312
|
+
g(d);
|
|
1308
1313
|
}, he(() => {
|
|
1309
|
-
var
|
|
1310
|
-
(
|
|
1314
|
+
var n, d, c;
|
|
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);
|
|
1311
1316
|
}), Ie(() => {
|
|
1312
|
-
var
|
|
1313
|
-
(
|
|
1317
|
+
var n, d, c;
|
|
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();
|
|
1314
1319
|
});
|
|
1315
1320
|
function r() {
|
|
1316
|
-
|
|
1321
|
+
w.value = !0;
|
|
1317
1322
|
}
|
|
1318
|
-
function
|
|
1319
|
-
|
|
1323
|
+
function i() {
|
|
1324
|
+
w.value = !1;
|
|
1320
1325
|
}
|
|
1321
1326
|
function m() {
|
|
1322
|
-
let
|
|
1327
|
+
let n;
|
|
1323
1328
|
e.value.viewer.addHandler("pan", (d) => {
|
|
1324
|
-
var f, b,
|
|
1325
|
-
if (!
|
|
1326
|
-
|
|
1329
|
+
var f, b, y, p;
|
|
1330
|
+
if (!n) {
|
|
1331
|
+
n = (b = (f = d.center) == null ? void 0 : f.clone) == null ? void 0 : b.call(f);
|
|
1327
1332
|
return;
|
|
1328
1333
|
}
|
|
1329
|
-
const c = d.center,
|
|
1330
|
-
|
|
1331
|
-
position:
|
|
1334
|
+
const c = d.center, a = (y = c == null ? void 0 : c.minus) == null ? void 0 : y.call(c, n);
|
|
1335
|
+
n = (p = c == null ? void 0 : c.clone) == null ? void 0 : p.call(c), u.syncPosition && h({
|
|
1336
|
+
position: a,
|
|
1332
1337
|
type: "sync_position"
|
|
1333
1338
|
});
|
|
1334
1339
|
}), e.value.viewer.addHandler("zoom", (d) => {
|
|
@@ -1337,25 +1342,25 @@ function io(u, e, l) {
|
|
|
1337
1342
|
type: "sync_zoom"
|
|
1338
1343
|
});
|
|
1339
1344
|
}), e.value.viewer.addHandler("animation-finish", () => {
|
|
1340
|
-
var
|
|
1345
|
+
var a;
|
|
1341
1346
|
if (u.syncZoom && h({
|
|
1342
1347
|
zoom: e.value.viewer.viewport.getZoom(!0),
|
|
1343
1348
|
type: "sync_zoom"
|
|
1344
|
-
}), !
|
|
1349
|
+
}), !n)
|
|
1345
1350
|
return;
|
|
1346
|
-
const d = e.value.viewer.viewport.getCenter(!0), c = (
|
|
1347
|
-
|
|
1351
|
+
const d = e.value.viewer.viewport.getCenter(!0), c = (a = d == null ? void 0 : d.minus) == null ? void 0 : a.call(d, n);
|
|
1352
|
+
n = void 0, u.syncPosition && h({
|
|
1348
1353
|
position: c,
|
|
1349
1354
|
type: "sync_position"
|
|
1350
1355
|
});
|
|
1351
1356
|
});
|
|
1352
1357
|
}
|
|
1353
|
-
function
|
|
1354
|
-
|
|
1358
|
+
function g(n) {
|
|
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);
|
|
1355
1360
|
}
|
|
1356
|
-
function h(
|
|
1361
|
+
function h(n) {
|
|
1357
1362
|
var d;
|
|
1358
|
-
|
|
1363
|
+
w.value && v.postMessage(we(W({}, n), {
|
|
1359
1364
|
uuid: t == null ? void 0 : t.uid,
|
|
1360
1365
|
fileName: (d = u.slide) == null ? void 0 : d.file
|
|
1361
1366
|
}));
|
|
@@ -1376,9 +1381,9 @@ const ro = { class: "hzzt-kfb-keyword flex wrap" }, uo = ["onMouseenter"], co =
|
|
|
1376
1381
|
{ code: "D", icon: "arrowRight" }
|
|
1377
1382
|
]), l = Z("kfbView", T({}));
|
|
1378
1383
|
let t = null;
|
|
1379
|
-
function
|
|
1384
|
+
function w(r, i) {
|
|
1380
1385
|
r.preventDefault(), t && clearTimeout(t), t = setInterval(() => {
|
|
1381
|
-
|
|
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());
|
|
1382
1387
|
}, 120);
|
|
1383
1388
|
}
|
|
1384
1389
|
function v() {
|
|
@@ -1386,11 +1391,11 @@ const ro = { class: "hzzt-kfb-keyword flex wrap" }, uo = ["onMouseenter"], co =
|
|
|
1386
1391
|
}
|
|
1387
1392
|
return Ie(() => {
|
|
1388
1393
|
clearTimeout(t);
|
|
1389
|
-
}), (r,
|
|
1390
|
-
(
|
|
1394
|
+
}), (r, i) => (_(), x("div", ro, [
|
|
1395
|
+
(_(!0), x(oe, null, ae(e.value, (m) => (_(), x("div", {
|
|
1391
1396
|
key: m.code,
|
|
1392
1397
|
class: "hzzt-kfb-keyword__code flex column align-items-center justify-content-center",
|
|
1393
|
-
onMouseenter: (
|
|
1398
|
+
onMouseenter: (g) => w(g, m.code),
|
|
1394
1399
|
onMouseleave: v
|
|
1395
1400
|
}, [
|
|
1396
1401
|
k("p", null, E(m.code), 1),
|
|
@@ -1406,53 +1411,53 @@ function fo(u, e, l = {}) {
|
|
|
1406
1411
|
const {
|
|
1407
1412
|
panSensitivity: t = 0.2,
|
|
1408
1413
|
// 值越大,鼠标移动时图像移动越快
|
|
1409
|
-
zoomSensitivity:
|
|
1414
|
+
zoomSensitivity: w = 1.1,
|
|
1410
1415
|
// 值越大,滚轮缩放幅度越大
|
|
1411
1416
|
damping: v = 0.6,
|
|
1412
1417
|
// 值越大,惯性滑动时间越长
|
|
1413
1418
|
minThreshold: r = 0.05
|
|
1414
1419
|
// 值越小,停止移动时的精度越高
|
|
1415
1420
|
} = l;
|
|
1416
|
-
let
|
|
1421
|
+
let i = !1, m = null, g = 0, h = 0, n = !1;
|
|
1417
1422
|
const d = () => {
|
|
1418
|
-
|
|
1423
|
+
i = document.pointerLockElement === e.value, i || c();
|
|
1419
1424
|
}, c = () => {
|
|
1420
|
-
|
|
1421
|
-
},
|
|
1425
|
+
g = 0, h = 0, m && (cancelAnimationFrame(m), m = null), n = !1;
|
|
1426
|
+
}, a = (s) => $e(this, null, function* () {
|
|
1422
1427
|
try {
|
|
1423
|
-
|
|
1428
|
+
s.key === "l" && e.value && (document.pointerLockElement ? (document.exitPointerLock(), console.log("鼠标已解锁!")) : (yield e.value.requestPointerLock(), console.log("鼠标已锁定!")));
|
|
1424
1429
|
} catch (I) {
|
|
1425
1430
|
console.error("无法锁定鼠标:", I);
|
|
1426
1431
|
}
|
|
1427
|
-
}), f = (
|
|
1428
|
-
if (
|
|
1429
|
-
|
|
1430
|
-
const I = Math.pow(
|
|
1432
|
+
}), f = (s) => {
|
|
1433
|
+
if (i) {
|
|
1434
|
+
s.preventDefault();
|
|
1435
|
+
const I = Math.pow(w, Math.sign(s.deltaY) * -1);
|
|
1431
1436
|
u.value.viewer.viewport.zoomBy(I), u.value.viewer.viewport.applyConstraints();
|
|
1432
1437
|
}
|
|
1433
|
-
}, b = (
|
|
1434
|
-
|
|
1435
|
-
},
|
|
1436
|
-
const
|
|
1437
|
-
if (Math.abs(
|
|
1438
|
-
const I =
|
|
1439
|
-
new
|
|
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)
|
|
1440
1445
|
);
|
|
1441
|
-
|
|
1446
|
+
s.panBy(I), s.applyConstraints();
|
|
1442
1447
|
}
|
|
1443
|
-
|
|
1448
|
+
g *= v, h *= v, Math.abs(g) > r || Math.abs(h) > r ? m = requestAnimationFrame(y) : c();
|
|
1444
1449
|
}, p = () => {
|
|
1445
|
-
|
|
1450
|
+
i && document.exitPointerLock();
|
|
1446
1451
|
};
|
|
1447
1452
|
return he(() => {
|
|
1448
|
-
var
|
|
1449
|
-
(
|
|
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);
|
|
1450
1455
|
}), Ie(() => {
|
|
1451
|
-
var
|
|
1452
|
-
(
|
|
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();
|
|
1453
1458
|
}), {
|
|
1454
|
-
setConfig: (
|
|
1455
|
-
Object.assign(l,
|
|
1459
|
+
setConfig: (s) => {
|
|
1460
|
+
Object.assign(l, s);
|
|
1456
1461
|
}
|
|
1457
1462
|
};
|
|
1458
1463
|
}
|
|
@@ -1468,14 +1473,14 @@ const mo = /* @__PURE__ */ J({
|
|
|
1468
1473
|
}),
|
|
1469
1474
|
emits: ["update:model-value"],
|
|
1470
1475
|
setup(u) {
|
|
1471
|
-
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));
|
|
1472
1477
|
function v() {
|
|
1473
|
-
const r = t.value.viewer.world.getItemAt(0),
|
|
1474
|
-
|
|
1475
|
-
|
|
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] = {});
|
|
1476
1481
|
}), r.draw();
|
|
1477
1482
|
}
|
|
1478
|
-
return (r,
|
|
1483
|
+
return (r, i) => (_(), x("div", {
|
|
1479
1484
|
class: ke(["hzzt-kfb-level flex column align-items-center", r.slides.length > 5 ? "hzzt-kfb-level--large" : ""])
|
|
1480
1485
|
}, [
|
|
1481
1486
|
C(Q, {
|
|
@@ -1483,13 +1488,13 @@ const mo = /* @__PURE__ */ J({
|
|
|
1483
1488
|
size: "24",
|
|
1484
1489
|
class: "margin-b-4 margin-t-2"
|
|
1485
1490
|
}),
|
|
1486
|
-
C(
|
|
1491
|
+
C(o(cl), {
|
|
1487
1492
|
modelValue: l.value,
|
|
1488
|
-
"onUpdate:modelValue":
|
|
1493
|
+
"onUpdate:modelValue": i[0] || (i[0] = (m) => l.value = m),
|
|
1489
1494
|
vertical: "",
|
|
1490
|
-
min:
|
|
1495
|
+
min: w.value[0],
|
|
1491
1496
|
step: 1,
|
|
1492
|
-
max:
|
|
1497
|
+
max: w.value[w.value.length - 1],
|
|
1493
1498
|
"show-stops": "",
|
|
1494
1499
|
"show-tooltip": !0,
|
|
1495
1500
|
placement: "left",
|
|
@@ -1513,7 +1518,7 @@ const mo = /* @__PURE__ */ J({
|
|
|
1513
1518
|
}),
|
|
1514
1519
|
emits: /* @__PURE__ */ be(["load"], ["update:model-value"]),
|
|
1515
1520
|
setup(u, { emit: e }) {
|
|
1516
|
-
const l = u, t = e,
|
|
1521
|
+
const l = u, t = e, w = Be(u, "model-value"), v = [
|
|
1517
1522
|
{ key: "DAPI", color: "#4A6CF7" },
|
|
1518
1523
|
{ key: "480", color: "#00BFFF" },
|
|
1519
1524
|
{ key: "520", color: "#32CD32" },
|
|
@@ -1521,29 +1526,29 @@ const mo = /* @__PURE__ */ J({
|
|
|
1521
1526
|
{ key: "620", color: "#FF6347" },
|
|
1522
1527
|
{ key: "670", color: "#DC143C" },
|
|
1523
1528
|
{ key: "780", color: "#4B0082" }
|
|
1524
|
-
], r =
|
|
1529
|
+
], r = B(() => {
|
|
1525
1530
|
var m;
|
|
1526
|
-
return (((m = l.info) == null ? void 0 : m.channel) || []).map((
|
|
1527
|
-
const h = v.find((
|
|
1531
|
+
return (((m = l.info) == null ? void 0 : m.channel) || []).map((g) => {
|
|
1532
|
+
const h = v.find((n) => n.key === g.eqt_num);
|
|
1528
1533
|
return {
|
|
1529
|
-
label:
|
|
1530
|
-
color:
|
|
1534
|
+
label: g.eqt_num,
|
|
1535
|
+
color: g.r ? `rgb(${g.r}, ${g.g}, ${g.b})` : h == null ? void 0 : h.color
|
|
1531
1536
|
};
|
|
1532
1537
|
});
|
|
1533
1538
|
});
|
|
1534
|
-
function
|
|
1535
|
-
|
|
1539
|
+
function i(m) {
|
|
1540
|
+
w.value.includes(m) ? w.value = w.value.filter((g) => g !== m) : w.value.push(m), t("load");
|
|
1536
1541
|
}
|
|
1537
|
-
return (m,
|
|
1542
|
+
return (m, g) => r.value.length > 0 ? (_(), x("div", po, [
|
|
1538
1543
|
C(Q, {
|
|
1539
1544
|
name: "channel",
|
|
1540
1545
|
size: "32"
|
|
1541
1546
|
}),
|
|
1542
|
-
(
|
|
1547
|
+
(_(!0), x(oe, null, ae(r.value, (h) => (_(), x("div", {
|
|
1543
1548
|
key: h.label,
|
|
1544
1549
|
style: q({ background: h.color }),
|
|
1545
|
-
class: ke(["hzzt-kfb-channel__box",
|
|
1546
|
-
onClick: (
|
|
1550
|
+
class: ke(["hzzt-kfb-channel__box", w.value.includes(h.label) ? "" : "hzzt-kfb-channel__box--unactive"]),
|
|
1551
|
+
onClick: (n) => i(h.label)
|
|
1547
1552
|
}, E(h.label), 15, ho))), 128))
|
|
1548
1553
|
])) : R("", !0);
|
|
1549
1554
|
}
|
|
@@ -1558,42 +1563,42 @@ const mo = /* @__PURE__ */ J({
|
|
|
1558
1563
|
}),
|
|
1559
1564
|
emits: /* @__PURE__ */ be(["select"], ["update:expand"]),
|
|
1560
1565
|
setup(u, { emit: e }) {
|
|
1561
|
-
const l = Be(u, "expand"), t = e, { t:
|
|
1562
|
-
function v(
|
|
1563
|
-
const m =
|
|
1566
|
+
const l = Be(u, "expand"), t = e, { t: w } = ue();
|
|
1567
|
+
function v(i) {
|
|
1568
|
+
const m = i.subType || i.tool || "";
|
|
1564
1569
|
return `mark${m.substring(0, 1).toLocaleUpperCase()}${m.substring(1)}`;
|
|
1565
1570
|
}
|
|
1566
|
-
function r(
|
|
1567
|
-
t("select",
|
|
1571
|
+
function r(i) {
|
|
1572
|
+
t("select", i);
|
|
1568
1573
|
}
|
|
1569
|
-
return (
|
|
1574
|
+
return (i, m) => (_(), x("div", {
|
|
1570
1575
|
class: ke(["hzzt-kfb-annotation flex column", l.value ? "hzzt-kfb-annotation--expand" : ""])
|
|
1571
1576
|
}, [
|
|
1572
1577
|
k("div", yo, [
|
|
1573
|
-
|
|
1574
|
-
k("span", null, E(
|
|
1578
|
+
xe(k("div", wo, [
|
|
1579
|
+
k("span", null, E(o(w)("标注列表")), 1)
|
|
1575
1580
|
], 512), [
|
|
1576
1581
|
[Ae, l.value]
|
|
1577
1582
|
]),
|
|
1578
1583
|
C(Q, {
|
|
1579
1584
|
class: "hzzt-kfb-annotation__icon",
|
|
1580
1585
|
name: l.value ? "expandLeft" : "expandRight",
|
|
1581
|
-
onClick: m[0] || (m[0] = (
|
|
1586
|
+
onClick: m[0] || (m[0] = (g) => l.value = !l.value)
|
|
1582
1587
|
}, null, 8, ["name"])
|
|
1583
1588
|
]),
|
|
1584
|
-
|
|
1585
|
-
(
|
|
1586
|
-
var
|
|
1587
|
-
return
|
|
1588
|
-
class: ke(["hzzt-kfb-annotation__item", ((
|
|
1589
|
+
xe(k("div", _o, [
|
|
1590
|
+
(_(!0), x(oe, null, ae(i.annotations, (g, h) => {
|
|
1591
|
+
var 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" : ""]),
|
|
1589
1594
|
key: h,
|
|
1590
|
-
onClick: (d) => r(
|
|
1595
|
+
onClick: (d) => r(g)
|
|
1591
1596
|
}, [
|
|
1592
1597
|
C(Q, {
|
|
1593
1598
|
size: "16",
|
|
1594
|
-
name: v(
|
|
1599
|
+
name: v(g)
|
|
1595
1600
|
}, null, 8, ["name"]),
|
|
1596
|
-
k("span", null, E(
|
|
1601
|
+
k("span", null, E(o(w)("标注")) + E(h + 1), 1)
|
|
1597
1602
|
], 10, bo);
|
|
1598
1603
|
}), 128))
|
|
1599
1604
|
], 512), [
|
|
@@ -1604,9 +1609,9 @@ const mo = /* @__PURE__ */ J({
|
|
|
1604
1609
|
}), zo = /* @__PURE__ */ ge(ko, [["__scopeId", "data-v-bfc56a3e"]]);
|
|
1605
1610
|
function St(u) {
|
|
1606
1611
|
const { t: e } = ue();
|
|
1607
|
-
return
|
|
1608
|
-
var
|
|
1609
|
-
const t = ((
|
|
1612
|
+
return B(() => {
|
|
1613
|
+
var w;
|
|
1614
|
+
const t = ((w = u == null ? void 0 : u.analysis) == null ? void 0 : w.result) || "";
|
|
1610
1615
|
return t.indexOf("疑似阳性") > -1 ? {
|
|
1611
1616
|
type: "warning",
|
|
1612
1617
|
name: t
|
|
@@ -1635,7 +1640,7 @@ const Co = ["element-loading-text"], $o = {
|
|
|
1635
1640
|
class: "hzzt-kfb-view__filter",
|
|
1636
1641
|
height: "0",
|
|
1637
1642
|
width: "0"
|
|
1638
|
-
},
|
|
1643
|
+
}, Lo = { id: "colorMatrixFilter" }, xo = ["values"], Eo = ["values"], Vo = ["exponent"], Io = ["exponent"], Mo = ["exponent"], So = { class: "flex nowrap justify-content-center overflow-hidden" }, Ho = ["src"], Po = ["src"], Ro = { class: "flex-1" }, Ao = { class: "flex-1" }, No = { class: "flex-1" }, Bo = { class: "flex-1" }, Do = { class: "flex-1" }, Uo = { class: "flex-1" }, Fo = ["src"], Ko = {
|
|
1639
1644
|
key: 2,
|
|
1640
1645
|
class: "margin-l-2"
|
|
1641
1646
|
}, jo = {
|
|
@@ -1662,21 +1667,22 @@ const Co = ["element-loading-text"], $o = {
|
|
|
1662
1667
|
audioType: {},
|
|
1663
1668
|
watermark: {},
|
|
1664
1669
|
analysis: {},
|
|
1665
|
-
aiLabelList: {}
|
|
1670
|
+
aiLabelList: {},
|
|
1671
|
+
showLabel: { type: Boolean }
|
|
1666
1672
|
},
|
|
1667
1673
|
emits: ["tool"],
|
|
1668
1674
|
setup(u, { expose: e, emit: l }) {
|
|
1669
1675
|
il((z) => ({
|
|
1670
|
-
|
|
1676
|
+
e3fd940a: ne.value
|
|
1671
1677
|
}));
|
|
1672
|
-
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({
|
|
1673
1679
|
width: 0,
|
|
1674
1680
|
height: 0,
|
|
1675
1681
|
fileNum: 0,
|
|
1676
1682
|
scanScale: 1,
|
|
1677
1683
|
fileName: "",
|
|
1678
1684
|
ratiomap: {}
|
|
1679
|
-
}), 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;
|
|
1680
1686
|
ee(() => {
|
|
1681
1687
|
var z;
|
|
1682
1688
|
return (z = t.slide) == null ? void 0 : z.file;
|
|
@@ -1687,7 +1693,7 @@ const Co = ["element-loading-text"], $o = {
|
|
|
1687
1693
|
}), he(() => {
|
|
1688
1694
|
ft();
|
|
1689
1695
|
});
|
|
1690
|
-
const te = St(t), ne =
|
|
1696
|
+
const te = St(t), ne = B(() => {
|
|
1691
1697
|
var z, V;
|
|
1692
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>")`;
|
|
1693
1699
|
}), {
|
|
@@ -1698,11 +1704,11 @@ const Co = ["element-loading-text"], $o = {
|
|
|
1698
1704
|
} = Il(t), {
|
|
1699
1705
|
tailorEvent: Se,
|
|
1700
1706
|
shotScreen: ye
|
|
1701
|
-
} = Ml(
|
|
1707
|
+
} = Ml(w, n), {
|
|
1702
1708
|
moveEvent: De,
|
|
1703
1709
|
fastMove: Ye
|
|
1704
|
-
} = lo(
|
|
1705
|
-
fo(
|
|
1710
|
+
} = lo(n, a), { initSync: Xe } = io(t, n, i);
|
|
1711
|
+
fo(n, i);
|
|
1706
1712
|
const { drawDot: Qe } = ao(), {
|
|
1707
1713
|
voiceVisible: He,
|
|
1708
1714
|
voiceForm: Pe,
|
|
@@ -1722,7 +1728,7 @@ const Co = ["element-loading-text"], $o = {
|
|
|
1722
1728
|
reloadLabelList: At,
|
|
1723
1729
|
eventHandel: Nt,
|
|
1724
1730
|
addHandle: Bt
|
|
1725
|
-
} = oo(t,
|
|
1731
|
+
} = oo(t, w, n, ut, tt);
|
|
1726
1732
|
function Dt(z) {
|
|
1727
1733
|
Bt(z);
|
|
1728
1734
|
}
|
|
@@ -1732,19 +1738,19 @@ const Co = ["element-loading-text"], $o = {
|
|
|
1732
1738
|
hotmapLine: Kt,
|
|
1733
1739
|
lineMouseDown: vt,
|
|
1734
1740
|
hotmapImgs: jt
|
|
1735
|
-
} = so(t,
|
|
1741
|
+
} = so(t, n, lt);
|
|
1736
1742
|
function ft() {
|
|
1737
1743
|
var z;
|
|
1738
1744
|
(z = t.slide) != null && z.file && t.fileHandle && (d.value || (d.value = !0, t.fileHandle(t.slide).then((V) => {
|
|
1739
1745
|
var Y, se, me, O;
|
|
1740
|
-
|
|
1746
|
+
y.value = V, b.value = (((Y = y.value) == null ? void 0 : Y.channel) || []).map((U) => U.eqt_num), n.value = new ve(W({
|
|
1741
1747
|
el: m.value,
|
|
1742
1748
|
fileName: (se = t.slide) == null ? void 0 : se.file,
|
|
1743
|
-
scale:
|
|
1749
|
+
scale: y.value.scanScale,
|
|
1744
1750
|
lang: (r == null ? void 0 : r.value) === "en-US" ? "en" : r == null ? void 0 : r.value,
|
|
1745
1751
|
navigator: {
|
|
1746
1752
|
style: "left: 0;bottom: 0",
|
|
1747
|
-
thumbnail:
|
|
1753
|
+
thumbnail: y.value.thumbnailImg,
|
|
1748
1754
|
width: 200,
|
|
1749
1755
|
height: 180
|
|
1750
1756
|
},
|
|
@@ -1759,7 +1765,7 @@ const Co = ["element-loading-text"], $o = {
|
|
|
1759
1765
|
graduation: {
|
|
1760
1766
|
show: !0,
|
|
1761
1767
|
right: 120,
|
|
1762
|
-
bottom: (O = (me =
|
|
1768
|
+
bottom: (O = (me = y.value) == null ? void 0 : me.channel) != null && O.length ? 120 : 30,
|
|
1763
1769
|
tick: {
|
|
1764
1770
|
number: 3,
|
|
1765
1771
|
height: 8
|
|
@@ -1768,10 +1774,10 @@ const Co = ["element-loading-text"], $o = {
|
|
|
1768
1774
|
pxConversion: {
|
|
1769
1775
|
units: ["um", "mm"],
|
|
1770
1776
|
binary: 1e3,
|
|
1771
|
-
imageCapRes:
|
|
1777
|
+
imageCapRes: y.value.imageCapRes || y.value.scanResolution || 1
|
|
1772
1778
|
},
|
|
1773
1779
|
openSeadragonOptions: {
|
|
1774
|
-
maxZoomLevel:
|
|
1780
|
+
maxZoomLevel: y.value.scanScale * 20,
|
|
1775
1781
|
pixelsPerArrowPress: 200,
|
|
1776
1782
|
animationTime: 0,
|
|
1777
1783
|
tileSources: mt()
|
|
@@ -1788,7 +1794,7 @@ const Co = ["element-loading-text"], $o = {
|
|
|
1788
1794
|
}
|
|
1789
1795
|
}
|
|
1790
1796
|
}
|
|
1791
|
-
}, t.options || {})),
|
|
1797
|
+
}, t.options || {})), n.value.viewer.drawer.canvas.style.filter = "url(#colorMatrixFilter)", Rt(), Gt(), Xe(), setTimeout(() => {
|
|
1792
1798
|
var U, D;
|
|
1793
1799
|
(U = t.analysis) != null && U.hotmap_path && ((D = t.analysis) != null && D.zoom_roi) && lt({
|
|
1794
1800
|
x: t.analysis.zoom_roi.x,
|
|
@@ -1809,7 +1815,7 @@ const Co = ["element-loading-text"], $o = {
|
|
|
1809
1815
|
})));
|
|
1810
1816
|
}
|
|
1811
1817
|
function Ot() {
|
|
1812
|
-
const z =
|
|
1818
|
+
const z = n.value.viewer;
|
|
1813
1819
|
if (z.world) {
|
|
1814
1820
|
const V = z.world.getItemAt(0), Y = z.viewport.getZoom(), se = z.viewport.getCenter();
|
|
1815
1821
|
z.world.removeItem(V), z.addTiledImage({
|
|
@@ -1822,17 +1828,17 @@ const Co = ["element-loading-text"], $o = {
|
|
|
1822
1828
|
}
|
|
1823
1829
|
function mt() {
|
|
1824
1830
|
var me, O;
|
|
1825
|
-
const z =
|
|
1831
|
+
const z = y.value.tileWidth || y.value.imageBlockLen || 256, V = y.value.tileHeight || y.value.imageBlockLen || 256, Y = {};
|
|
1826
1832
|
(me = t.analysis) != null && me.hotmap_path && (((O = t.analysis) == null ? void 0 : O.hotmap_info) || []).forEach((U) => {
|
|
1827
1833
|
Y[U[0] / z + "_" + U[1] / V + "_" + U[2]] = !0;
|
|
1828
1834
|
});
|
|
1829
1835
|
let se = 10;
|
|
1830
|
-
return Object.keys(
|
|
1831
|
-
const D =
|
|
1836
|
+
return Object.keys(y.value.ratiomap).forEach((U) => {
|
|
1837
|
+
const D = y.value.fileNum - Math.sqrt(y.value.scanScale / Number(U));
|
|
1832
1838
|
D > 0 && (se = se ? Math.min(se, D) : D);
|
|
1833
1839
|
}), {
|
|
1834
|
-
height:
|
|
1835
|
-
width:
|
|
1840
|
+
height: y.value.height,
|
|
1841
|
+
width: y.value.width,
|
|
1836
1842
|
tileWidth: z,
|
|
1837
1843
|
tileHeight: V,
|
|
1838
1844
|
minLevel: Math.floor(se || 8),
|
|
@@ -1846,83 +1852,83 @@ const Co = ["element-loading-text"], $o = {
|
|
|
1846
1852
|
level: U,
|
|
1847
1853
|
channel: JSON.stringify(b.value)
|
|
1848
1854
|
};
|
|
1849
|
-
|
|
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]) || "";
|
|
1850
1856
|
const Re = t.tileHandle(X);
|
|
1851
1857
|
return (Ct = t.analysis) != null && Ct.hotmap_path ? Ut(Re, X, Y) : Re;
|
|
1852
1858
|
}
|
|
1853
1859
|
};
|
|
1854
1860
|
}
|
|
1855
1861
|
function Gt() {
|
|
1856
|
-
|
|
1862
|
+
n.value.viewer.addHandler("rotate", (z) => {
|
|
1857
1863
|
c.value = z.degrees || 0;
|
|
1858
|
-
}),
|
|
1859
|
-
const V =
|
|
1864
|
+
}), n.value.viewer.addHandler("zoom", (z) => {
|
|
1865
|
+
const V = n.value.viewer.viewport.viewportToImageZoom(
|
|
1860
1866
|
z.zoom || 0
|
|
1861
|
-
) * Number(
|
|
1862
|
-
|
|
1863
|
-
}),
|
|
1867
|
+
) * Number(n.value.$options.scale);
|
|
1868
|
+
a.value = Number(V.toFixed(2));
|
|
1869
|
+
}), n.value.$on(ve.events.EVENT_NAVIGATOR_VESTIGE, (z) => {
|
|
1864
1870
|
t.navigatorHandle && t.navigatorHandle("add", t.slide, z);
|
|
1865
1871
|
}), t.navigatorHandle && t.navigatorHandle("list", t.slide).then((z) => {
|
|
1866
1872
|
var V, Y;
|
|
1867
|
-
(Y = (V =
|
|
1873
|
+
(Y = (V = n.value.navigator) == null ? void 0 : V.drawPointList) == null || Y.call(V, z);
|
|
1868
1874
|
}), Se(), De();
|
|
1869
1875
|
}
|
|
1870
1876
|
function Wt() {
|
|
1871
1877
|
var z;
|
|
1872
|
-
(z =
|
|
1878
|
+
(z = n.value) != null && z.destroy && (n.value.destroy(), n.value = {}, y.value = {
|
|
1873
1879
|
width: 0,
|
|
1874
1880
|
height: 0,
|
|
1875
1881
|
fileNum: 0,
|
|
1876
1882
|
scanScale: 1,
|
|
1877
1883
|
fileName: "",
|
|
1878
1884
|
ratiomap: {}
|
|
1879
|
-
}, jt.value = [], b.value = [],
|
|
1885
|
+
}, jt.value = [], b.value = [], a.value = 0, c.value = 0, f.value = 0);
|
|
1880
1886
|
}
|
|
1881
1887
|
function pt(z, V) {
|
|
1882
|
-
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);
|
|
1883
1889
|
}
|
|
1884
1890
|
function ht(z) {
|
|
1885
|
-
z.tool === "Voice" && (z.subType = "voice", z.tool = "Dot", z.custom = !0),
|
|
1891
|
+
z.tool === "Voice" && (z.subType = "voice", z.tool = "Dot", z.custom = !0), n.value.board.startDraw(z);
|
|
1886
1892
|
}
|
|
1887
1893
|
function qt() {
|
|
1888
|
-
|
|
1894
|
+
n.value.board.endDraw();
|
|
1889
1895
|
}
|
|
1890
1896
|
function gt() {
|
|
1891
|
-
|
|
1897
|
+
n.value.viewer.viewport.toggleFlip();
|
|
1892
1898
|
}
|
|
1893
1899
|
function Zt(z) {
|
|
1894
1900
|
var V, Y;
|
|
1895
|
-
(Y = (V =
|
|
1901
|
+
(Y = (V = g.value) == null ? void 0 : V.scopeChange) == null || Y.call(V, z);
|
|
1896
1902
|
}
|
|
1897
1903
|
function Yt() {
|
|
1898
1904
|
h.value = !0;
|
|
1899
1905
|
}
|
|
1900
1906
|
function yt(z) {
|
|
1901
1907
|
var V;
|
|
1902
|
-
(V =
|
|
1908
|
+
(V = n.value) != null && V.grid && n.value.grid.updated(z);
|
|
1903
1909
|
}
|
|
1904
1910
|
function wt(z) {
|
|
1905
1911
|
var V;
|
|
1906
|
-
(V =
|
|
1912
|
+
(V = n.value) != null && V.graduation && n.value.graduation.updated(z);
|
|
1907
1913
|
}
|
|
1908
1914
|
function _t(z) {
|
|
1909
1915
|
var V;
|
|
1910
|
-
(V =
|
|
1916
|
+
(V = n.value) != null && V.navigator && (n.value.navigator.element.style.display = z ? "flex" : "none");
|
|
1911
1917
|
}
|
|
1912
1918
|
function tt(z) {
|
|
1913
|
-
const V =
|
|
1914
|
-
|
|
1919
|
+
const V = n.value.viewer.viewport.imageToViewportZoom(Number(z / n.value.$options.scale));
|
|
1920
|
+
n.value.viewer.viewport.zoomTo(V);
|
|
1915
1921
|
}
|
|
1916
1922
|
function lt(z, V) {
|
|
1917
|
-
|
|
1923
|
+
n.value.area && (n.value.area.moveToLabel(n.value.viewer.viewport.imageToViewportCoordinates(
|
|
1918
1924
|
z.x + z.width / 2,
|
|
1919
1925
|
z.y + z.height / 2
|
|
1920
1926
|
)), tt(V));
|
|
1921
1927
|
}
|
|
1922
|
-
return de("kfbView",
|
|
1923
|
-
kfbView:
|
|
1928
|
+
return de("kfbView", n), de("currentLabel", et), e({
|
|
1929
|
+
kfbView: n,
|
|
1924
1930
|
degrees: c,
|
|
1925
|
-
zoom:
|
|
1931
|
+
zoom: a,
|
|
1926
1932
|
forceRedraw: Me,
|
|
1927
1933
|
toggleFlip: gt,
|
|
1928
1934
|
startDraw: ht,
|
|
@@ -1940,65 +1946,65 @@ const Co = ["element-loading-text"], $o = {
|
|
|
1940
1946
|
reloadLabelList: At
|
|
1941
1947
|
}), (z, V) => {
|
|
1942
1948
|
var Y, se, me;
|
|
1943
|
-
return
|
|
1949
|
+
return _(), x("div", {
|
|
1944
1950
|
ref_key: "mainKfbViewRef",
|
|
1945
|
-
ref:
|
|
1951
|
+
ref: i,
|
|
1946
1952
|
class: "hzzt-kfb-view"
|
|
1947
1953
|
}, [
|
|
1948
|
-
z.slide.file ?
|
|
1954
|
+
z.slide.file ? xe((_(), x("div", {
|
|
1949
1955
|
key: 0,
|
|
1950
1956
|
ref_key: "kfbViewMainRef",
|
|
1951
1957
|
ref: m,
|
|
1952
1958
|
class: "hzzt-kfb-view__main",
|
|
1953
|
-
"element-loading-text":
|
|
1959
|
+
"element-loading-text": o(v)("加载中"),
|
|
1954
1960
|
"element-loading-background": "rgba(0, 0, 0, 0.8)"
|
|
1955
1961
|
}, null, 8, Co)), [
|
|
1956
|
-
[
|
|
1957
|
-
]) : (
|
|
1962
|
+
[o(P), d.value]
|
|
1963
|
+
]) : (_(), x("div", $o, V[5] || (V[5] = [
|
|
1958
1964
|
k("img", {
|
|
1959
1965
|
style: { width: "50%" },
|
|
1960
1966
|
src: Ze
|
|
1961
1967
|
}, null, -1)
|
|
1962
1968
|
]))),
|
|
1963
|
-
z.analysis && z.analysis.result ? (
|
|
1969
|
+
z.analysis && z.analysis.result ? (_(), H(o(Vt), {
|
|
1964
1970
|
key: 2,
|
|
1965
1971
|
class: "hzzt-kfb-view__tag",
|
|
1966
|
-
type:
|
|
1972
|
+
type: o(te).type
|
|
1967
1973
|
}, {
|
|
1968
|
-
default:
|
|
1969
|
-
K(E(
|
|
1974
|
+
default: L(() => [
|
|
1975
|
+
K(E(o(te).name), 1)
|
|
1970
1976
|
]),
|
|
1971
1977
|
_: 1
|
|
1972
1978
|
}, 8, ["type"])) : R("", !0),
|
|
1973
|
-
(
|
|
1974
|
-
k("filter",
|
|
1979
|
+
(_(), x("svg", To, [
|
|
1980
|
+
k("filter", Lo, [
|
|
1975
1981
|
k("feColorMatrix", {
|
|
1976
|
-
values:
|
|
1982
|
+
values: o(re),
|
|
1977
1983
|
type: "matrix"
|
|
1978
|
-
}, null, 8,
|
|
1984
|
+
}, null, 8, xo),
|
|
1979
1985
|
k("feColorMatrix", {
|
|
1980
|
-
values:
|
|
1986
|
+
values: o(le),
|
|
1981
1987
|
type: "saturate"
|
|
1982
1988
|
}, null, 8, Eo),
|
|
1983
1989
|
k("feComponentTransfer", null, [
|
|
1984
1990
|
k("feFuncR", {
|
|
1985
1991
|
id: "feFuncR",
|
|
1986
1992
|
type: "gamma",
|
|
1987
|
-
exponent:
|
|
1993
|
+
exponent: o(j).ga,
|
|
1988
1994
|
amplitude: "1",
|
|
1989
1995
|
offset: "0"
|
|
1990
1996
|
}, null, 8, Vo),
|
|
1991
1997
|
k("feFuncG", {
|
|
1992
1998
|
id: "feFuncG",
|
|
1993
1999
|
type: "gamma",
|
|
1994
|
-
exponent:
|
|
2000
|
+
exponent: o(j).ga,
|
|
1995
2001
|
amplitude: "1",
|
|
1996
2002
|
offset: "0"
|
|
1997
2003
|
}, null, 8, Io),
|
|
1998
2004
|
k("feFuncB", {
|
|
1999
2005
|
id: "feFuncB",
|
|
2000
2006
|
type: "gamma",
|
|
2001
|
-
exponent:
|
|
2007
|
+
exponent: o(j).ga,
|
|
2002
2008
|
amplitude: "1",
|
|
2003
2009
|
offset: "0"
|
|
2004
2010
|
}, null, 8, Mo)
|
|
@@ -2011,63 +2017,64 @@ const Co = ["element-loading-text"], $o = {
|
|
|
2011
2017
|
}, null, 8, ["menus"]),
|
|
2012
2018
|
C(Ol, Oe(z.microscope, {
|
|
2013
2019
|
ref_key: "microscopeRef",
|
|
2014
|
-
ref:
|
|
2020
|
+
ref: g
|
|
2015
2021
|
}), null, 16),
|
|
2016
|
-
|
|
2022
|
+
o(p) && z.slide.file && y.value.labelImg ? (_(), H(to, {
|
|
2017
2023
|
key: 3,
|
|
2018
|
-
|
|
2024
|
+
visible: z.showLabel,
|
|
2025
|
+
info: y.value,
|
|
2019
2026
|
slide: z.slide,
|
|
2020
2027
|
pathologyHandle: z.pathologyHandle,
|
|
2021
2028
|
onTool: pt
|
|
2022
|
-
}, null, 8, ["info", "slide", "pathologyHandle"])) : R("", !0),
|
|
2023
|
-
|
|
2024
|
-
(Y = z.slide.children) != null && Y.length ? (
|
|
2029
|
+
}, null, 8, ["visible", "info", "slide", "pathologyHandle"])) : R("", !0),
|
|
2030
|
+
o(s) ? (_(), H(vo, { key: 4 })) : R("", !0),
|
|
2031
|
+
(Y = z.slide.children) != null && Y.length ? (_(), H(mo, {
|
|
2025
2032
|
key: 5,
|
|
2026
2033
|
modelValue: f.value,
|
|
2027
2034
|
"onUpdate:modelValue": V[0] || (V[0] = (O) => f.value = O),
|
|
2028
2035
|
slides: z.slide.children
|
|
2029
2036
|
}, null, 8, ["modelValue", "slides"])) : R("", !0),
|
|
2030
|
-
(me = (se =
|
|
2037
|
+
(me = (se = y.value) == null ? void 0 : se.channel) != null && me.length ? (_(), H(go, {
|
|
2031
2038
|
key: 6,
|
|
2032
2039
|
modelValue: b.value,
|
|
2033
2040
|
"onUpdate:modelValue": V[1] || (V[1] = (O) => b.value = O),
|
|
2034
|
-
info:
|
|
2041
|
+
info: y.value,
|
|
2035
2042
|
onLoad: Ot
|
|
2036
2043
|
}, null, 8, ["modelValue", "info"])) : R("", !0),
|
|
2037
|
-
|
|
2044
|
+
o(ct).length ? (_(), H(zo, {
|
|
2038
2045
|
key: 7,
|
|
2039
|
-
expand:
|
|
2040
|
-
"onUpdate:expand": V[2] || (V[2] = (O) =>
|
|
2046
|
+
expand: N.value,
|
|
2047
|
+
"onUpdate:expand": V[2] || (V[2] = (O) => N.value = O),
|
|
2041
2048
|
style: q({
|
|
2042
2049
|
top: z.analysis && z.analysis.result ? "24px" : "4px"
|
|
2043
2050
|
}),
|
|
2044
|
-
annotation:
|
|
2045
|
-
annotations:
|
|
2046
|
-
onSelect:
|
|
2051
|
+
annotation: o(et),
|
|
2052
|
+
annotations: o(ct),
|
|
2053
|
+
onSelect: o(dt)
|
|
2047
2054
|
}, null, 8, ["expand", "style", "annotation", "annotations", "onSelect"])) : R("", !0),
|
|
2048
|
-
C(
|
|
2055
|
+
C(o(Ge), {
|
|
2049
2056
|
modelValue: h.value,
|
|
2050
2057
|
"onUpdate:modelValue": V[3] || (V[3] = (O) => h.value = O),
|
|
2051
2058
|
"append-to-body": !0,
|
|
2052
|
-
title:
|
|
2059
|
+
title: o(v)("图像信息"),
|
|
2053
2060
|
width: "700px",
|
|
2054
2061
|
top: "5vh"
|
|
2055
2062
|
}, {
|
|
2056
|
-
default:
|
|
2057
|
-
C(
|
|
2058
|
-
default:
|
|
2059
|
-
C(
|
|
2063
|
+
default: L(() => [
|
|
2064
|
+
C(o(nt), { "label-position": "left" }, {
|
|
2065
|
+
default: L(() => [
|
|
2066
|
+
C(o(ie), {
|
|
2060
2067
|
class: "flex",
|
|
2061
2068
|
"label-width": "0px"
|
|
2062
2069
|
}, {
|
|
2063
|
-
default:
|
|
2070
|
+
default: L(() => [
|
|
2064
2071
|
k("div", So, [
|
|
2065
2072
|
k("img", {
|
|
2066
|
-
src:
|
|
2073
|
+
src: y.value.labelImg,
|
|
2067
2074
|
style: { height: "180px" }
|
|
2068
2075
|
}, null, 8, Ho),
|
|
2069
2076
|
k("img", {
|
|
2070
|
-
src:
|
|
2077
|
+
src: y.value.previewImg,
|
|
2071
2078
|
style: { height: "180px" },
|
|
2072
2079
|
class: "flex-1"
|
|
2073
2080
|
}, null, 8, Po)
|
|
@@ -2075,52 +2082,52 @@ const Co = ["element-loading-text"], $o = {
|
|
|
2075
2082
|
]),
|
|
2076
2083
|
_: 1
|
|
2077
2084
|
}),
|
|
2078
|
-
C(
|
|
2079
|
-
label:
|
|
2085
|
+
C(o(ie), {
|
|
2086
|
+
label: o(v)("文件名")
|
|
2080
2087
|
}, {
|
|
2081
|
-
default:
|
|
2082
|
-
k("span", Ro, E(
|
|
2088
|
+
default: L(() => [
|
|
2089
|
+
k("span", Ro, E(y.value.fileName), 1)
|
|
2083
2090
|
]),
|
|
2084
2091
|
_: 1
|
|
2085
2092
|
}, 8, ["label"]),
|
|
2086
|
-
C(
|
|
2087
|
-
label:
|
|
2093
|
+
C(o(ie), {
|
|
2094
|
+
label: o(v)("图像像素")
|
|
2088
2095
|
}, {
|
|
2089
|
-
default:
|
|
2090
|
-
k("span", Ao, E(
|
|
2096
|
+
default: L(() => [
|
|
2097
|
+
k("span", Ao, E(y.value.width) + "Pixel - " + E(y.value.height) + "Pixel", 1)
|
|
2091
2098
|
]),
|
|
2092
2099
|
_: 1
|
|
2093
2100
|
}, 8, ["label"]),
|
|
2094
|
-
C(
|
|
2095
|
-
label:
|
|
2101
|
+
C(o(ie), {
|
|
2102
|
+
label: o(v)("扫描倍率")
|
|
2096
2103
|
}, {
|
|
2097
|
-
default:
|
|
2098
|
-
k("span", No, E(
|
|
2104
|
+
default: L(() => [
|
|
2105
|
+
k("span", No, E(y.value.scanScale), 1)
|
|
2099
2106
|
]),
|
|
2100
2107
|
_: 1
|
|
2101
2108
|
}, 8, ["label"]),
|
|
2102
|
-
C(
|
|
2103
|
-
label:
|
|
2109
|
+
C(o(ie), {
|
|
2110
|
+
label: o(v)("扫描时刻")
|
|
2104
2111
|
}, {
|
|
2105
|
-
default:
|
|
2106
|
-
k("span", Bo, E(
|
|
2112
|
+
default: L(() => [
|
|
2113
|
+
k("span", Bo, E(y.value.scanTime), 1)
|
|
2107
2114
|
]),
|
|
2108
2115
|
_: 1
|
|
2109
2116
|
}, 8, ["label"]),
|
|
2110
|
-
C(
|
|
2111
|
-
label:
|
|
2117
|
+
C(o(ie), {
|
|
2118
|
+
label: o(v)("扫描时间")
|
|
2112
2119
|
}, {
|
|
2113
|
-
default:
|
|
2114
|
-
k("span", Do, E(
|
|
2120
|
+
default: L(() => [
|
|
2121
|
+
k("span", Do, E(y.value.scanDuration || 0) + "s", 1)
|
|
2115
2122
|
]),
|
|
2116
2123
|
_: 1
|
|
2117
2124
|
}, 8, ["label"]),
|
|
2118
|
-
|
|
2125
|
+
y.value.ext ? (_(), H(o(ie), {
|
|
2119
2126
|
key: 0,
|
|
2120
|
-
label:
|
|
2127
|
+
label: o(v)("扫描设备")
|
|
2121
2128
|
}, {
|
|
2122
|
-
default:
|
|
2123
|
-
k("span", Uo, E(
|
|
2129
|
+
default: L(() => [
|
|
2130
|
+
k("span", Uo, E(y.value.ext.machineNum || ""), 1)
|
|
2124
2131
|
]),
|
|
2125
2132
|
_: 1
|
|
2126
2133
|
}, 8, ["label"])) : R("", !0)
|
|
@@ -2130,44 +2137,44 @@ const Co = ["element-loading-text"], $o = {
|
|
|
2130
2137
|
]),
|
|
2131
2138
|
_: 1
|
|
2132
2139
|
}, 8, ["modelValue", "title"]),
|
|
2133
|
-
C(
|
|
2134
|
-
modelValue:
|
|
2140
|
+
C(o(Ge), {
|
|
2141
|
+
modelValue: o(He),
|
|
2135
2142
|
"onUpdate:modelValue": V[4] || (V[4] = (O) => pe(He) ? He.value = O : null),
|
|
2136
2143
|
"append-to-body": !0,
|
|
2137
|
-
title:
|
|
2144
|
+
title: o(v)("语音输入"),
|
|
2138
2145
|
width: "500px",
|
|
2139
2146
|
top: "5vh"
|
|
2140
2147
|
}, {
|
|
2141
|
-
footer:
|
|
2142
|
-
C(
|
|
2143
|
-
default:
|
|
2144
|
-
K(E(
|
|
2148
|
+
footer: L(() => [
|
|
2149
|
+
C(o(_e), { onClick: o(Ht) }, {
|
|
2150
|
+
default: L(() => [
|
|
2151
|
+
K(E(o(v)("取消")), 1)
|
|
2145
2152
|
]),
|
|
2146
2153
|
_: 1
|
|
2147
2154
|
}, 8, ["onClick"]),
|
|
2148
|
-
C(
|
|
2155
|
+
C(o(_e), {
|
|
2149
2156
|
type: "primary",
|
|
2150
|
-
onClick:
|
|
2157
|
+
onClick: o(Pt)
|
|
2151
2158
|
}, {
|
|
2152
|
-
default:
|
|
2153
|
-
K(E(
|
|
2159
|
+
default: L(() => [
|
|
2160
|
+
K(E(o(v)("确定")), 1)
|
|
2154
2161
|
]),
|
|
2155
2162
|
_: 1
|
|
2156
2163
|
}, 8, ["onClick"])
|
|
2157
2164
|
]),
|
|
2158
|
-
default:
|
|
2159
|
-
C(
|
|
2160
|
-
default:
|
|
2165
|
+
default: L(() => [
|
|
2166
|
+
C(o(nt), { "label-position": "left" }, {
|
|
2167
|
+
default: L(() => {
|
|
2161
2168
|
var O;
|
|
2162
2169
|
return [
|
|
2163
|
-
C(
|
|
2164
|
-
default:
|
|
2170
|
+
C(o(ie), null, {
|
|
2171
|
+
default: L(() => {
|
|
2165
2172
|
var U;
|
|
2166
2173
|
return [
|
|
2167
|
-
(U =
|
|
2174
|
+
(U = o(Pe)) != null && U.src ? (_(), x("audio", {
|
|
2168
2175
|
key: 0,
|
|
2169
2176
|
class: "width-100%",
|
|
2170
|
-
src:
|
|
2177
|
+
src: o(Pe).src,
|
|
2171
2178
|
controls: "",
|
|
2172
2179
|
preload: "auto"
|
|
2173
2180
|
}, null, 8, Fo)) : R("", !0)
|
|
@@ -2175,28 +2182,28 @@ const Co = ["element-loading-text"], $o = {
|
|
|
2175
2182
|
}),
|
|
2176
2183
|
_: 1
|
|
2177
2184
|
}),
|
|
2178
|
-
(O =
|
|
2179
|
-
default:
|
|
2180
|
-
|
|
2185
|
+
(O = o(Pe)) != null && O.src ? R("", !0) : (_(), H(o(ie), { key: 0 }, {
|
|
2186
|
+
default: L(() => [
|
|
2187
|
+
o(A) ? (_(), H(o(_e), {
|
|
2181
2188
|
key: 1,
|
|
2182
2189
|
type: "danger",
|
|
2183
|
-
onClick:
|
|
2190
|
+
onClick: o(ce)
|
|
2184
2191
|
}, {
|
|
2185
|
-
default:
|
|
2186
|
-
K(E(
|
|
2192
|
+
default: L(() => [
|
|
2193
|
+
K(E(o(v)("结束录音")), 1)
|
|
2187
2194
|
]),
|
|
2188
2195
|
_: 1
|
|
2189
|
-
}, 8, ["onClick"])) : (
|
|
2196
|
+
}, 8, ["onClick"])) : (_(), H(o(_e), {
|
|
2190
2197
|
key: 0,
|
|
2191
2198
|
type: "primary",
|
|
2192
|
-
onClick:
|
|
2199
|
+
onClick: o(F)
|
|
2193
2200
|
}, {
|
|
2194
|
-
default:
|
|
2195
|
-
K(E(
|
|
2201
|
+
default: L(() => [
|
|
2202
|
+
K(E(o(v)("开始录音")), 1)
|
|
2196
2203
|
]),
|
|
2197
2204
|
_: 1
|
|
2198
2205
|
}, 8, ["onClick"])),
|
|
2199
|
-
|
|
2206
|
+
o(A) ? (_(), x("span", Ko, E(o(v)("录音时长")) + ":" + E(o($)) + "s", 1)) : R("", !0)
|
|
2200
2207
|
]),
|
|
2201
2208
|
_: 1
|
|
2202
2209
|
}))
|
|
@@ -2207,17 +2214,17 @@ const Co = ["element-loading-text"], $o = {
|
|
|
2207
2214
|
]),
|
|
2208
2215
|
_: 1
|
|
2209
2216
|
}, 8, ["modelValue", "title"]),
|
|
2210
|
-
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", {
|
|
2211
2218
|
key: 8,
|
|
2212
2219
|
class: "hzzt-kfb-view__hotmap",
|
|
2213
|
-
style: q({ left:
|
|
2220
|
+
style: q({ left: o(Kt) + "px" })
|
|
2214
2221
|
}, [
|
|
2215
|
-
C(
|
|
2222
|
+
C(o(ze), {
|
|
2216
2223
|
class: "icon-caret-left",
|
|
2217
2224
|
size: "30",
|
|
2218
|
-
onMousedown:
|
|
2225
|
+
onMousedown: o(vt)
|
|
2219
2226
|
}, {
|
|
2220
|
-
default:
|
|
2227
|
+
default: L(() => V[6] || (V[6] = [
|
|
2221
2228
|
k("svg", {
|
|
2222
2229
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2223
2230
|
viewBox: "0 0 1024 1024"
|
|
@@ -2231,12 +2238,12 @@ const Co = ["element-loading-text"], $o = {
|
|
|
2231
2238
|
_: 1,
|
|
2232
2239
|
__: [6]
|
|
2233
2240
|
}, 8, ["onMousedown"]),
|
|
2234
|
-
C(
|
|
2241
|
+
C(o(ze), {
|
|
2235
2242
|
class: "icon-caret-right",
|
|
2236
2243
|
size: "30",
|
|
2237
|
-
onMousedown:
|
|
2244
|
+
onMousedown: o(vt)
|
|
2238
2245
|
}, {
|
|
2239
|
-
default:
|
|
2246
|
+
default: L(() => V[7] || (V[7] = [
|
|
2240
2247
|
k("svg", {
|
|
2241
2248
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2242
2249
|
viewBox: "0 0 1024 1024"
|
|
@@ -2251,63 +2258,63 @@ const Co = ["element-loading-text"], $o = {
|
|
|
2251
2258
|
__: [7]
|
|
2252
2259
|
}, 8, ["onMousedown"])
|
|
2253
2260
|
], 4)) : R("", !0),
|
|
2254
|
-
|
|
2261
|
+
o(I) ? (_(), x("div", jo)) : R("", !0),
|
|
2255
2262
|
fe(z.$slots, "default")
|
|
2256
2263
|
], 512);
|
|
2257
2264
|
};
|
|
2258
2265
|
}
|
|
2259
2266
|
});
|
|
2260
2267
|
function Oo(u, e) {
|
|
2261
|
-
var b,
|
|
2262
|
-
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(
|
|
2263
2270
|
() => {
|
|
2264
|
-
var p,
|
|
2265
|
-
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] : [];
|
|
2266
2273
|
}
|
|
2267
|
-
), 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);
|
|
2268
2275
|
ee(() => {
|
|
2269
2276
|
var p;
|
|
2270
2277
|
return (p = u.ai) == null ? void 0 : p.default;
|
|
2271
2278
|
}, () => {
|
|
2272
|
-
|
|
2279
|
+
n();
|
|
2273
2280
|
}), ee(() => {
|
|
2274
2281
|
var p;
|
|
2275
2282
|
return (p = e == null ? void 0 : e.value) == null ? void 0 : p.id;
|
|
2276
2283
|
}, () => {
|
|
2277
|
-
|
|
2284
|
+
n(!1), d();
|
|
2278
2285
|
}), he(() => {
|
|
2279
|
-
|
|
2286
|
+
n(), d();
|
|
2280
2287
|
});
|
|
2281
|
-
function
|
|
2282
|
-
var
|
|
2283
|
-
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));
|
|
2284
2291
|
}
|
|
2285
2292
|
function d() {
|
|
2286
2293
|
var p;
|
|
2287
|
-
(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 = [];
|
|
2288
2295
|
}
|
|
2289
2296
|
function c() {
|
|
2290
2297
|
u.ai.handle(e.value, h.value).then((p) => {
|
|
2291
|
-
|
|
2298
|
+
w.value = p;
|
|
2292
2299
|
}).catch(() => {
|
|
2293
|
-
|
|
2300
|
+
w.value = [];
|
|
2294
2301
|
});
|
|
2295
2302
|
}
|
|
2296
|
-
function
|
|
2303
|
+
function a() {
|
|
2297
2304
|
t.value = !1, d();
|
|
2298
2305
|
}
|
|
2299
2306
|
function f() {
|
|
2300
2307
|
l.value = !1, d();
|
|
2301
2308
|
}
|
|
2302
2309
|
return {
|
|
2303
|
-
hasAi:
|
|
2304
|
-
hasIqc:
|
|
2310
|
+
hasAi: g,
|
|
2311
|
+
hasIqc: i,
|
|
2305
2312
|
currentAnalysis: h,
|
|
2306
|
-
aiLabelList:
|
|
2313
|
+
aiLabelList: w,
|
|
2307
2314
|
enableAi: l,
|
|
2308
2315
|
enableIqc: t,
|
|
2309
2316
|
toggleIqc: f,
|
|
2310
|
-
toggleAi:
|
|
2317
|
+
toggleAi: a
|
|
2311
2318
|
};
|
|
2312
2319
|
}
|
|
2313
2320
|
const Go = ["src", "fit"], Wo = ["src", "fit"], Ke = /* @__PURE__ */ J({
|
|
@@ -2340,12 +2347,12 @@ const Go = ["src", "fit"], Wo = ["src", "fit"], Ke = /* @__PURE__ */ J({
|
|
|
2340
2347
|
setup(u) {
|
|
2341
2348
|
const e = u;
|
|
2342
2349
|
let l = 0;
|
|
2343
|
-
const t = T(!1),
|
|
2350
|
+
const t = T(!1), w = rt({
|
|
2344
2351
|
x: 0,
|
|
2345
2352
|
y: 0
|
|
2346
|
-
}), v =
|
|
2347
|
-
top: `${
|
|
2348
|
-
left: `${
|
|
2353
|
+
}), v = B(() => ({
|
|
2354
|
+
top: `${w.y + 10}px`,
|
|
2355
|
+
left: `${w.x}px`,
|
|
2349
2356
|
transform: "translateY(-50%)",
|
|
2350
2357
|
width: `${4 * 300 / 3}px`,
|
|
2351
2358
|
height: "300px",
|
|
@@ -2353,34 +2360,34 @@ const Go = ["src", "fit"], Wo = ["src", "fit"], Ke = /* @__PURE__ */ J({
|
|
|
2353
2360
|
zIndex: "10000"
|
|
2354
2361
|
}));
|
|
2355
2362
|
function r(h) {
|
|
2356
|
-
const
|
|
2357
|
-
l < e.retryTimes ? (
|
|
2363
|
+
const n = h.target;
|
|
2364
|
+
l < e.retryTimes ? (n.src = e.src, l++) : n.src = Ze;
|
|
2358
2365
|
}
|
|
2359
|
-
function
|
|
2366
|
+
function i(h) {
|
|
2360
2367
|
if (!e.hover) return;
|
|
2361
2368
|
if (h.target) {
|
|
2362
2369
|
const f = h.target, b = f.tagName;
|
|
2363
|
-
let
|
|
2364
|
-
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)
|
|
2365
2372
|
return;
|
|
2366
2373
|
}
|
|
2367
|
-
const { x:
|
|
2368
|
-
|
|
2374
|
+
const { x: n, y: d } = m(h), c = 4 * 300 / 3, a = 300;
|
|
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;
|
|
2369
2376
|
}
|
|
2370
2377
|
function m(h) {
|
|
2371
|
-
const
|
|
2378
|
+
const n = h.target, d = h.offsetX, c = h.offsetY, a = n.clientWidth, f = n.clientHeight;
|
|
2372
2379
|
return {
|
|
2373
|
-
x: h.clientX +
|
|
2380
|
+
x: h.clientX + a - d,
|
|
2374
2381
|
y: h.clientY - c + f / 2
|
|
2375
2382
|
};
|
|
2376
2383
|
}
|
|
2377
|
-
function
|
|
2384
|
+
function g() {
|
|
2378
2385
|
t.value = !1;
|
|
2379
2386
|
}
|
|
2380
|
-
return (h,
|
|
2387
|
+
return (h, n) => (_(), x("div", {
|
|
2381
2388
|
class: "relative",
|
|
2382
|
-
onMouseenter:
|
|
2383
|
-
onMouseleave:
|
|
2389
|
+
onMouseenter: i,
|
|
2390
|
+
onMouseleave: g
|
|
2384
2391
|
}, [
|
|
2385
2392
|
k("img", {
|
|
2386
2393
|
src: u.src,
|
|
@@ -2391,8 +2398,8 @@ const Go = ["src", "fit"], Wo = ["src", "fit"], Ke = /* @__PURE__ */ J({
|
|
|
2391
2398
|
width: "100%"
|
|
2392
2399
|
}
|
|
2393
2400
|
}, null, 40, Go),
|
|
2394
|
-
(
|
|
2395
|
-
t.value ? (
|
|
2401
|
+
(_(), H(je, { to: "body" }, [
|
|
2402
|
+
t.value ? (_(), x("div", {
|
|
2396
2403
|
key: 0,
|
|
2397
2404
|
class: "fixed hzzt-kfb-img-triangle-left",
|
|
2398
2405
|
style: q(v.value)
|
|
@@ -2405,10 +2412,10 @@ const Go = ["src", "fit"], Wo = ["src", "fit"], Ke = /* @__PURE__ */ J({
|
|
|
2405
2412
|
height: "100%",
|
|
2406
2413
|
width: "100%"
|
|
2407
2414
|
},
|
|
2408
|
-
onMouseenter:
|
|
2415
|
+
onMouseenter: n[0] || (n[0] = () => {
|
|
2409
2416
|
t.value = !0;
|
|
2410
2417
|
}),
|
|
2411
|
-
onMouseleave:
|
|
2418
|
+
onMouseleave: g
|
|
2412
2419
|
}, null, 40, Wo)
|
|
2413
2420
|
], 4)) : R("", !0)
|
|
2414
2421
|
]))
|
|
@@ -2419,7 +2426,7 @@ const Go = ["src", "fit"], Wo = ["src", "fit"], Ke = /* @__PURE__ */ J({
|
|
|
2419
2426
|
viewBox: "0 0 1024 1024"
|
|
2420
2427
|
};
|
|
2421
2428
|
function Yo(u, e) {
|
|
2422
|
-
return
|
|
2429
|
+
return _(), x("svg", Zo, e[0] || (e[0] = [
|
|
2423
2430
|
k("path", {
|
|
2424
2431
|
fill: "currentColor",
|
|
2425
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"
|
|
@@ -2434,7 +2441,7 @@ const Xo = /* @__PURE__ */ ge(qo, [["render", Yo]]), Qo = {}, Jo = {
|
|
|
2434
2441
|
xmlns: "http://www.w3.org/2000/svg"
|
|
2435
2442
|
};
|
|
2436
2443
|
function ea(u, e) {
|
|
2437
|
-
return
|
|
2444
|
+
return _(), x("svg", Jo, e[0] || (e[0] = [
|
|
2438
2445
|
k("g", { id: "Frame" }, [
|
|
2439
2446
|
k("path", {
|
|
2440
2447
|
id: "Vector",
|
|
@@ -2457,7 +2464,7 @@ const ta = /* @__PURE__ */ ge(Qo, [["render", ea]]), la = { class: "hzzt-kfb-sli
|
|
|
2457
2464
|
}, ka = { class: "w-40% flex" }, za = ["onClick"], Ca = ["onClick"], $a = {
|
|
2458
2465
|
key: 0,
|
|
2459
2466
|
class: "flex column py-2"
|
|
2460
|
-
}, Ta = { class: "flex align-items-center justify-content-center" },
|
|
2467
|
+
}, Ta = { class: "flex align-items-center justify-content-center" }, La = { class: "margin-r-1" }, xa = {
|
|
2461
2468
|
key: 0,
|
|
2462
2469
|
class: "margin-r-1 margin-l-2"
|
|
2463
2470
|
}, Ea = /* @__PURE__ */ J({
|
|
@@ -2467,54 +2474,54 @@ const ta = /* @__PURE__ */ ge(Qo, [["render", ea]]), la = { class: "hzzt-kfb-sli
|
|
|
2467
2474
|
},
|
|
2468
2475
|
emits: ["select", "tool"],
|
|
2469
2476
|
setup(u, { expose: e, emit: l }) {
|
|
2470
|
-
const t = u,
|
|
2477
|
+
const t = u, w = l, v = Z("file-index", {
|
|
2471
2478
|
value: 0
|
|
2472
2479
|
}), r = Z("divide", {
|
|
2473
2480
|
value: !1
|
|
2474
|
-
}),
|
|
2481
|
+
}), i = Z("sync", {
|
|
2475
2482
|
value: !1
|
|
2476
|
-
}), 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();
|
|
2477
2484
|
function c(b) {
|
|
2478
|
-
v.value = b,
|
|
2485
|
+
v.value = b, w("select", b);
|
|
2479
2486
|
}
|
|
2480
|
-
function
|
|
2487
|
+
function a(b) {
|
|
2481
2488
|
b.check = !b.check;
|
|
2482
2489
|
}
|
|
2483
2490
|
function f(b) {
|
|
2484
|
-
var p,
|
|
2485
|
-
const
|
|
2486
|
-
|
|
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;
|
|
2487
2494
|
}
|
|
2488
2495
|
return e({
|
|
2489
2496
|
jumpToSlide: f
|
|
2490
|
-
}), (b,
|
|
2497
|
+
}), (b, y) => (_(), x("div", la, [
|
|
2491
2498
|
k("div", oa, [
|
|
2492
2499
|
k("div", aa, [
|
|
2493
2500
|
k("span", null, [
|
|
2494
|
-
|
|
2501
|
+
y[4] || (y[4] = K("已读:")),
|
|
2495
2502
|
k("span", na, E(h.value.length), 1),
|
|
2496
2503
|
K("/" + E(b.slides.length), 1)
|
|
2497
2504
|
]),
|
|
2498
2505
|
k("div", sa, [
|
|
2499
|
-
C(
|
|
2506
|
+
C(o(ze), {
|
|
2500
2507
|
class: "margin-r-2 pointer",
|
|
2501
2508
|
size: "16",
|
|
2502
2509
|
color: m.value ? "#999" : "#000",
|
|
2503
|
-
onClick:
|
|
2510
|
+
onClick: y[0] || (y[0] = (p) => m.value = !m.value)
|
|
2504
2511
|
}, {
|
|
2505
|
-
default:
|
|
2512
|
+
default: L(() => [
|
|
2506
2513
|
C(Xo)
|
|
2507
2514
|
]),
|
|
2508
2515
|
_: 1
|
|
2509
2516
|
}, 8, ["color"]),
|
|
2510
|
-
C(
|
|
2517
|
+
C(o(ze), {
|
|
2511
2518
|
class: "pointer",
|
|
2512
2519
|
name: "cus-list",
|
|
2513
2520
|
size: "16",
|
|
2514
2521
|
color: m.value ? "#000" : "#999",
|
|
2515
|
-
onClick:
|
|
2522
|
+
onClick: y[1] || (y[1] = (p) => m.value = !m.value)
|
|
2516
2523
|
}, {
|
|
2517
|
-
default:
|
|
2524
|
+
default: L(() => [
|
|
2518
2525
|
C(ta)
|
|
2519
2526
|
]),
|
|
2520
2527
|
_: 1
|
|
@@ -2525,30 +2532,30 @@ const ta = /* @__PURE__ */ ge(Qo, [["render", ea]]), la = { class: "hzzt-kfb-sli
|
|
|
2525
2532
|
class: "flex-1 overflow-auto",
|
|
2526
2533
|
style: { width: "100%" },
|
|
2527
2534
|
ref_key: "slidesRef",
|
|
2528
|
-
ref:
|
|
2535
|
+
ref: g
|
|
2529
2536
|
}, [
|
|
2530
|
-
m.value ? (
|
|
2537
|
+
m.value ? (_(), x("ul", fa, [
|
|
2531
2538
|
k("li", ma, [
|
|
2532
|
-
|
|
2533
|
-
k("div", pa, E(
|
|
2534
|
-
k("div", ha, E(
|
|
2535
|
-
k("div", ga, E(
|
|
2539
|
+
y[5] || (y[5] = k("div", { class: "w-10%" }, null, -1)),
|
|
2540
|
+
k("div", pa, E(o(d)("缩略图")), 1),
|
|
2541
|
+
k("div", ha, E(o(d)("切片名")), 1),
|
|
2542
|
+
k("div", ga, E(o(d)("评分")), 1)
|
|
2536
2543
|
]),
|
|
2537
|
-
(
|
|
2538
|
-
key:
|
|
2539
|
-
"data-index":
|
|
2544
|
+
(_(!0), x(oe, null, ae(b.slides, (p, s) => (_(), x("li", {
|
|
2545
|
+
key: s,
|
|
2546
|
+
"data-index": s,
|
|
2540
2547
|
class: "flex align-items-center overflow-hidden",
|
|
2541
2548
|
style: q({
|
|
2542
|
-
backgroundColor:
|
|
2549
|
+
backgroundColor: o(v) === s ? "rgba(6, 85, 195, 0.1)" : "#fff"
|
|
2543
2550
|
}),
|
|
2544
|
-
onClick: (I) => c(
|
|
2551
|
+
onClick: (I) => c(s)
|
|
2545
2552
|
}, [
|
|
2546
2553
|
k("div", {
|
|
2547
2554
|
class: "w-10% text-center",
|
|
2548
2555
|
onClick: Fe(() => {
|
|
2549
2556
|
}, ["stop"])
|
|
2550
2557
|
}, [
|
|
2551
|
-
C(
|
|
2558
|
+
C(o(We), {
|
|
2552
2559
|
modelValue: p.check,
|
|
2553
2560
|
"onUpdate:modelValue": (I) => p.check = I,
|
|
2554
2561
|
style: { width: "14px", height: "16px" }
|
|
@@ -2570,21 +2577,21 @@ const ta = /* @__PURE__ */ ge(Qo, [["render", ea]]), la = { class: "hzzt-kfb-sli
|
|
|
2570
2577
|
style: { height: "45px" },
|
|
2571
2578
|
class: "flex-1"
|
|
2572
2579
|
}, null, 8, ["src"]),
|
|
2573
|
-
p.read ? R("", !0) : (
|
|
2580
|
+
p.read ? R("", !0) : (_(), x("div", ba, E(o(d)("未读")), 1))
|
|
2574
2581
|
])
|
|
2575
2582
|
]),
|
|
2576
2583
|
k("div", ka, [
|
|
2577
|
-
C(
|
|
2584
|
+
C(o(xt), {
|
|
2578
2585
|
effect: "dark",
|
|
2579
2586
|
placement: "bottom",
|
|
2580
2587
|
content: `${p.name}`
|
|
2581
2588
|
}, {
|
|
2582
|
-
default:
|
|
2589
|
+
default: L(() => [
|
|
2583
2590
|
k("span", {
|
|
2584
2591
|
style: { "line-height": "16px" },
|
|
2585
2592
|
class: "margin-l-1 ellipsis hzzt-kfb-slides__text",
|
|
2586
2593
|
dir: "rtl",
|
|
2587
|
-
onClick: Fe((I) =>
|
|
2594
|
+
onClick: Fe((I) => a(p), ["stop"])
|
|
2588
2595
|
}, E(p.name), 9, za)
|
|
2589
2596
|
]),
|
|
2590
2597
|
_: 2
|
|
@@ -2595,15 +2602,15 @@ const ta = /* @__PURE__ */ ge(Qo, [["render", ea]]), la = { class: "hzzt-kfb-sli
|
|
|
2595
2602
|
style: q({
|
|
2596
2603
|
color: p.gradeColor
|
|
2597
2604
|
}),
|
|
2598
|
-
onClick: (I) =>
|
|
2605
|
+
onClick: (I) => w("tool", "grade", p)
|
|
2599
2606
|
}, E(p.grade), 13, Ca)
|
|
2600
2607
|
], 12, ya))), 128))
|
|
2601
|
-
])) : (
|
|
2602
|
-
(
|
|
2603
|
-
key:
|
|
2604
|
-
class: ke(["hzzt-kfb-slides__box",
|
|
2605
|
-
"data-index":
|
|
2606
|
-
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)
|
|
2607
2614
|
}, [
|
|
2608
2615
|
k("div", ua, [
|
|
2609
2616
|
C(Ke, {
|
|
@@ -2626,51 +2633,51 @@ const ta = /* @__PURE__ */ ge(Qo, [["render", ea]]), la = { class: "hzzt-kfb-sli
|
|
|
2626
2633
|
onClick: Fe(() => {
|
|
2627
2634
|
}, ["stop"])
|
|
2628
2635
|
}, [
|
|
2629
|
-
C(
|
|
2636
|
+
C(o(We), {
|
|
2630
2637
|
modelValue: p.check,
|
|
2631
2638
|
"onUpdate:modelValue": (I) => p.check = I,
|
|
2632
2639
|
style: { width: "14px", height: "16px" }
|
|
2633
2640
|
}, null, 8, ["modelValue", "onUpdate:modelValue"]),
|
|
2634
|
-
C(
|
|
2641
|
+
C(o(xt), {
|
|
2635
2642
|
effect: "dark",
|
|
2636
2643
|
placement: "bottom",
|
|
2637
2644
|
content: `${p.name}`
|
|
2638
2645
|
}, {
|
|
2639
|
-
default:
|
|
2646
|
+
default: L(() => [
|
|
2640
2647
|
k("span", {
|
|
2641
2648
|
style: { "line-height": "16px", "text-align": "center", width: "calc(100% - 14px)" },
|
|
2642
2649
|
class: "margin-l-1 ellipsis",
|
|
2643
|
-
onClick: Fe((I) =>
|
|
2650
|
+
onClick: Fe((I) => a(p), ["stop"])
|
|
2644
2651
|
}, E(p.name), 9, ca)
|
|
2645
2652
|
]),
|
|
2646
2653
|
_: 2
|
|
2647
2654
|
}, 1032, ["content"])
|
|
2648
2655
|
]),
|
|
2649
|
-
p.read ? R("", !0) : (
|
|
2650
|
-
p.grade ? (
|
|
2656
|
+
p.read ? R("", !0) : (_(), x("div", da, E(o(d)("未读")), 1)),
|
|
2657
|
+
p.grade ? (_(), x("div", {
|
|
2651
2658
|
key: 1,
|
|
2652
2659
|
class: "hzzt-kfb-slides__grade",
|
|
2653
2660
|
style: q({
|
|
2654
2661
|
background: p.gradeColor
|
|
2655
2662
|
}),
|
|
2656
|
-
onClick: (I) =>
|
|
2663
|
+
onClick: (I) => w("tool", "grade", p)
|
|
2657
2664
|
}, E(p.grade), 13, va)) : R("", !0),
|
|
2658
2665
|
fe(b.$slots, "slide", { slide: p }, void 0, !0)
|
|
2659
2666
|
], 10, ra))), 128))
|
|
2660
2667
|
]))
|
|
2661
2668
|
], 512),
|
|
2662
|
-
|
|
2669
|
+
n.value.length > 1 ? (_(), x("div", $a, [
|
|
2663
2670
|
k("div", Ta, [
|
|
2664
|
-
k("span",
|
|
2665
|
-
C(
|
|
2666
|
-
modelValue:
|
|
2667
|
-
"onUpdate:modelValue":
|
|
2671
|
+
k("span", La, E(o(d)("分屏")), 1),
|
|
2672
|
+
C(o(Ee), {
|
|
2673
|
+
modelValue: o(r),
|
|
2674
|
+
"onUpdate:modelValue": y[2] || (y[2] = (p) => pe(r) ? r.value = p : null)
|
|
2668
2675
|
}, null, 8, ["modelValue"]),
|
|
2669
|
-
|
|
2670
|
-
|
|
2676
|
+
o(r) ? (_(), x("span", xa, E(o(d)("同步")), 1)) : R("", !0),
|
|
2677
|
+
o(r) ? (_(), H(o(Ee), {
|
|
2671
2678
|
key: 1,
|
|
2672
|
-
modelValue:
|
|
2673
|
-
"onUpdate:modelValue":
|
|
2679
|
+
modelValue: o(i),
|
|
2680
|
+
"onUpdate:modelValue": y[3] || (y[3] = (p) => pe(i) ? i.value = p : null)
|
|
2674
2681
|
}, null, 8, ["modelValue"])) : R("", !0)
|
|
2675
2682
|
])
|
|
2676
2683
|
])) : R("", !0)
|
|
@@ -2688,83 +2695,83 @@ const ta = /* @__PURE__ */ ge(Qo, [["render", ea]]), la = { class: "hzzt-kfb-sli
|
|
|
2688
2695
|
analysis: {}
|
|
2689
2696
|
},
|
|
2690
2697
|
setup(u, { expose: e }) {
|
|
2691
|
-
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(() => {
|
|
2692
2699
|
const I = /* @__PURE__ */ new Set();
|
|
2693
|
-
return l.data.forEach((
|
|
2694
|
-
const P =
|
|
2700
|
+
return l.data.forEach((N) => {
|
|
2701
|
+
const P = N.cls || "";
|
|
2695
2702
|
P && !I.has(P) && I.add(P);
|
|
2696
2703
|
}), Array.from(I);
|
|
2697
|
-
}), c =
|
|
2704
|
+
}), c = B(() => g.value.length !== 0 && g.value.length !== d.value.length), a = St(l);
|
|
2698
2705
|
ee(() => d.value, (I) => {
|
|
2699
|
-
f(),
|
|
2706
|
+
f(), g.value = [...I];
|
|
2700
2707
|
}), he(() => {
|
|
2701
|
-
|
|
2708
|
+
g.value = [...d.value];
|
|
2702
2709
|
});
|
|
2703
2710
|
function f() {
|
|
2704
|
-
v.value = -1, r.value = 1,
|
|
2711
|
+
v.value = -1, r.value = 1, i.value = 100, m.value = !0;
|
|
2705
2712
|
}
|
|
2706
2713
|
function b(I) {
|
|
2707
|
-
const
|
|
2708
|
-
v.value =
|
|
2714
|
+
const N = h.value.findIndex((P) => P.id === I.id);
|
|
2715
|
+
v.value = N, w.value.jumpToLabel(I, 5);
|
|
2709
2716
|
}
|
|
2710
|
-
function
|
|
2711
|
-
const
|
|
2712
|
-
return
|
|
2717
|
+
function y(I) {
|
|
2718
|
+
const N = l.data.filter((P) => P.cls === I);
|
|
2719
|
+
return N.length ? `(${N.length})` : "";
|
|
2713
2720
|
}
|
|
2714
2721
|
function p() {
|
|
2715
|
-
v.value = -1, m.value =
|
|
2722
|
+
v.value = -1, m.value = g.value.length == d.value.length;
|
|
2716
2723
|
}
|
|
2717
|
-
function
|
|
2718
|
-
|
|
2724
|
+
function s(I) {
|
|
2725
|
+
g.value = I ? [...d.value] : [], v.value = -1;
|
|
2719
2726
|
}
|
|
2720
2727
|
return e({
|
|
2721
2728
|
labelList: h
|
|
2722
|
-
}), (I,
|
|
2729
|
+
}), (I, N) => (_(), x("div", Ia, [
|
|
2723
2730
|
k("div", Ma, [
|
|
2724
|
-
C(
|
|
2731
|
+
C(o(dl), {
|
|
2725
2732
|
placement: "bottom",
|
|
2726
2733
|
trigger: "click",
|
|
2727
2734
|
width: "160"
|
|
2728
2735
|
}, {
|
|
2729
|
-
reference:
|
|
2730
|
-
C(
|
|
2736
|
+
reference: L(() => [
|
|
2737
|
+
C(o(_e), {
|
|
2731
2738
|
class: "margin-r-1",
|
|
2732
2739
|
type: "primary"
|
|
2733
2740
|
}, {
|
|
2734
|
-
default:
|
|
2735
|
-
K(E(
|
|
2741
|
+
default: L(() => [
|
|
2742
|
+
K(E(o(t)("分类")) + " ", 1),
|
|
2736
2743
|
C(Q, { name: "arrowDown" })
|
|
2737
2744
|
]),
|
|
2738
2745
|
_: 1
|
|
2739
2746
|
})
|
|
2740
2747
|
]),
|
|
2741
|
-
default:
|
|
2748
|
+
default: L(() => [
|
|
2742
2749
|
k("div", null, [
|
|
2743
|
-
C(
|
|
2750
|
+
C(o(We), {
|
|
2744
2751
|
modelValue: m.value,
|
|
2745
|
-
"onUpdate:modelValue":
|
|
2752
|
+
"onUpdate:modelValue": N[0] || (N[0] = (P) => m.value = P),
|
|
2746
2753
|
indeterminate: c.value,
|
|
2747
|
-
onChange:
|
|
2754
|
+
onChange: s
|
|
2748
2755
|
}, {
|
|
2749
|
-
default:
|
|
2750
|
-
K(E(
|
|
2756
|
+
default: L(() => [
|
|
2757
|
+
K(E(o(t)("全选")), 1)
|
|
2751
2758
|
]),
|
|
2752
2759
|
_: 1
|
|
2753
2760
|
}, 8, ["modelValue", "indeterminate"]),
|
|
2754
|
-
C(
|
|
2755
|
-
modelValue:
|
|
2756
|
-
"onUpdate:modelValue":
|
|
2761
|
+
C(o(vl), {
|
|
2762
|
+
modelValue: g.value,
|
|
2763
|
+
"onUpdate:modelValue": N[1] || (N[1] = (P) => g.value = P),
|
|
2757
2764
|
class: "flex column",
|
|
2758
2765
|
onChange: p
|
|
2759
2766
|
}, {
|
|
2760
|
-
default:
|
|
2761
|
-
(
|
|
2767
|
+
default: L(() => [
|
|
2768
|
+
(_(!0), x(oe, null, ae(d.value, (P) => (_(), H(o(We), {
|
|
2762
2769
|
key: P,
|
|
2763
2770
|
value: P
|
|
2764
2771
|
}, {
|
|
2765
|
-
default:
|
|
2772
|
+
default: L(() => [
|
|
2766
2773
|
K(E(P) + " ", 1),
|
|
2767
|
-
k("span", Sa, E(
|
|
2774
|
+
k("span", Sa, E(y(P)), 1)
|
|
2768
2775
|
]),
|
|
2769
2776
|
_: 2
|
|
2770
2777
|
}, 1032, ["value"]))), 128))
|
|
@@ -2775,42 +2782,42 @@ const ta = /* @__PURE__ */ ge(Qo, [["render", ea]]), la = { class: "hzzt-kfb-sli
|
|
|
2775
2782
|
]),
|
|
2776
2783
|
_: 1
|
|
2777
2784
|
}),
|
|
2778
|
-
C(
|
|
2779
|
-
type: a
|
|
2785
|
+
C(o(Vt), {
|
|
2786
|
+
type: o(a).type,
|
|
2780
2787
|
class: "margin-l-1"
|
|
2781
2788
|
}, {
|
|
2782
|
-
default:
|
|
2783
|
-
K(E(a
|
|
2789
|
+
default: L(() => [
|
|
2790
|
+
K(E(o(a).name), 1)
|
|
2784
2791
|
]),
|
|
2785
2792
|
_: 1
|
|
2786
2793
|
}, 8, ["type"])
|
|
2787
2794
|
]),
|
|
2788
2795
|
k("div", Ha, [
|
|
2789
|
-
(
|
|
2790
|
-
key: te + (r.value - 1) *
|
|
2791
|
-
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" : ""}`),
|
|
2792
2799
|
onClick: (ne) => b(P)
|
|
2793
2800
|
}, [
|
|
2794
|
-
C(
|
|
2801
|
+
C(o(ml), {
|
|
2795
2802
|
"retry-times": 1,
|
|
2796
2803
|
src: P.imageUrl,
|
|
2797
|
-
"error-src":
|
|
2804
|
+
"error-src": o(Ze)
|
|
2798
2805
|
}, null, 8, ["src", "error-src"]),
|
|
2799
2806
|
k("div", {
|
|
2800
2807
|
style: q({ color: P.strokeStyle }),
|
|
2801
2808
|
class: "ellipsis"
|
|
2802
2809
|
}, [
|
|
2803
2810
|
K(E(P.cls) + " ", 1),
|
|
2804
|
-
P.score ? (
|
|
2811
|
+
P.score ? (_(), x("span", Ra, E(P.score), 1)) : R("", !0)
|
|
2805
2812
|
], 4)
|
|
2806
2813
|
], 10, Pa))), 128))
|
|
2807
2814
|
]),
|
|
2808
|
-
C(
|
|
2815
|
+
C(o(fl), {
|
|
2809
2816
|
class: "wrap",
|
|
2810
2817
|
"current-page": r.value,
|
|
2811
|
-
"onUpdate:currentPage":
|
|
2812
|
-
"page-size":
|
|
2813
|
-
"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),
|
|
2814
2821
|
"page-sizes": [100, 200, 300, 400],
|
|
2815
2822
|
layout: "total, sizes, prev, pager, next",
|
|
2816
2823
|
total: h.value.length
|
|
@@ -2846,41 +2853,41 @@ const ta = /* @__PURE__ */ ge(Qo, [["render", ea]]), la = { class: "hzzt-kfb-sli
|
|
|
2846
2853
|
}),
|
|
2847
2854
|
emits: /* @__PURE__ */ be(["tool"], ["update:index"]),
|
|
2848
2855
|
setup(u, { expose: e, emit: l }) {
|
|
2849
|
-
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(() => {
|
|
2850
2857
|
var $;
|
|
2851
2858
|
if (b.value) {
|
|
2852
|
-
const A =
|
|
2859
|
+
const A = i.value.findIndex(({ id: F }) => {
|
|
2853
2860
|
var ce;
|
|
2854
2861
|
return F === ((ce = r.value) == null ? void 0 : ce.id);
|
|
2855
2862
|
});
|
|
2856
|
-
return (($ = h.value) == null ? void 0 : $[A]) ||
|
|
2863
|
+
return (($ = h.value) == null ? void 0 : $[A]) || g.value;
|
|
2857
2864
|
} else
|
|
2858
|
-
return
|
|
2859
|
-
}), I =
|
|
2865
|
+
return g.value;
|
|
2866
|
+
}), I = B(() => i.value.length <= 1 ? {
|
|
2860
2867
|
height: "100%",
|
|
2861
2868
|
width: "100%"
|
|
2862
|
-
} :
|
|
2869
|
+
} : i.value.length <= 2 ? {
|
|
2863
2870
|
height: "100%",
|
|
2864
2871
|
width: "calc((100% - 4px) / 2)"
|
|
2865
|
-
} :
|
|
2872
|
+
} : i.value.length <= 4 ? {
|
|
2866
2873
|
height: "calc((100% - 4px) / 2)",
|
|
2867
2874
|
width: "calc((100% - 4px) / 2)"
|
|
2868
|
-
} :
|
|
2875
|
+
} : i.value.length <= 6 ? {
|
|
2869
2876
|
height: "calc((100% - 4px) / 2)",
|
|
2870
2877
|
width: "calc((100% - 4px * 2) / 3)"
|
|
2871
|
-
} :
|
|
2878
|
+
} : i.value.length <= 9 ? {
|
|
2872
2879
|
height: "calc((100% - 4px * 2) / 3)",
|
|
2873
2880
|
width: "calc((100% - 4px * 2) / 3)"
|
|
2874
2881
|
} : {
|
|
2875
2882
|
height: "100%",
|
|
2876
2883
|
width: "100%"
|
|
2877
2884
|
});
|
|
2878
|
-
ee(() =>
|
|
2885
|
+
ee(() => i.value, ($) => {
|
|
2879
2886
|
b.value && $.length <= 1 && (b.value = !1);
|
|
2880
2887
|
}), ee(() => r.value, ($) => {
|
|
2881
2888
|
if ($) {
|
|
2882
2889
|
const A = $.read;
|
|
2883
|
-
$.read = !0,
|
|
2890
|
+
$.read = !0, w("tool", "choose", {
|
|
2884
2891
|
slide: $,
|
|
2885
2892
|
read: A
|
|
2886
2893
|
});
|
|
@@ -2888,11 +2895,11 @@ const ta = /* @__PURE__ */ ge(Qo, [["render", ea]]), la = { class: "hzzt-kfb-sli
|
|
|
2888
2895
|
}), Object.entries({
|
|
2889
2896
|
keyboard: d,
|
|
2890
2897
|
kfbLabel: c,
|
|
2891
|
-
watermark:
|
|
2898
|
+
watermark: a,
|
|
2892
2899
|
menuText: f
|
|
2893
2900
|
}).forEach(([$, A]) => {
|
|
2894
2901
|
ee(() => A.value, (F) => {
|
|
2895
|
-
|
|
2902
|
+
w("tool", $, F);
|
|
2896
2903
|
});
|
|
2897
2904
|
});
|
|
2898
2905
|
const {
|
|
@@ -2906,7 +2913,7 @@ const ta = /* @__PURE__ */ ge(Qo, [["render", ea]]), la = { class: "hzzt-kfb-sli
|
|
|
2906
2913
|
toggleAi: Se
|
|
2907
2914
|
} = Oo(t, r);
|
|
2908
2915
|
function ye($, A) {
|
|
2909
|
-
$ === "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);
|
|
2910
2917
|
}
|
|
2911
2918
|
function De($) {
|
|
2912
2919
|
var F, ce;
|
|
@@ -2915,9 +2922,9 @@ const ta = /* @__PURE__ */ ge(Qo, [["render", ea]]), la = { class: "hzzt-kfb-sli
|
|
|
2915
2922
|
process: t.process,
|
|
2916
2923
|
microscope: t.microscope,
|
|
2917
2924
|
slide: $,
|
|
2918
|
-
aiLabelList: r.value.id === $.id ? ((F =
|
|
2919
|
-
syncPosition:
|
|
2920
|
-
syncZoom:
|
|
2925
|
+
aiLabelList: r.value.id === $.id ? ((F = n.value) == null ? void 0 : F.labelList) || [] : [],
|
|
2926
|
+
syncPosition: y.value,
|
|
2927
|
+
syncZoom: y.value,
|
|
2921
2928
|
handle: void 0,
|
|
2922
2929
|
analysis: r.value.id === $.id ? ne.value : void 0
|
|
2923
2930
|
});
|
|
@@ -2931,7 +2938,7 @@ const ta = /* @__PURE__ */ ge(Qo, [["render", ea]]), la = { class: "hzzt-kfb-sli
|
|
|
2931
2938
|
}
|
|
2932
2939
|
function Qe() {
|
|
2933
2940
|
var $;
|
|
2934
|
-
($ = b.value ? h.value : [
|
|
2941
|
+
($ = b.value ? h.value : [g.value]) == null || $.forEach((A) => {
|
|
2935
2942
|
c.value || (A.updateGrid({
|
|
2936
2943
|
show: c.value,
|
|
2937
2944
|
ruler: c.value
|
|
@@ -2944,68 +2951,68 @@ const ta = /* @__PURE__ */ ge(Qo, [["render", ea]]), la = { class: "hzzt-kfb-sli
|
|
|
2944
2951
|
v.value = $, m.value && m.value.jumpToSlide($);
|
|
2945
2952
|
}
|
|
2946
2953
|
function Pe($, A) {
|
|
2947
|
-
|
|
2954
|
+
s.value && s.value.jumpToLabel($, A);
|
|
2948
2955
|
}
|
|
2949
2956
|
function Je($, A) {
|
|
2950
|
-
|
|
2957
|
+
s.value && s.value.jumpToPosition($, A);
|
|
2951
2958
|
}
|
|
2952
|
-
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({
|
|
2953
2960
|
divide: b,
|
|
2954
2961
|
slide: r,
|
|
2955
|
-
kfbViewRef:
|
|
2962
|
+
kfbViewRef: s,
|
|
2956
2963
|
jumpToSlide: He,
|
|
2957
2964
|
jumpToLabel: Pe,
|
|
2958
2965
|
jumpToPosition: Je,
|
|
2959
2966
|
analysis: ne,
|
|
2960
2967
|
enableAi: re,
|
|
2961
2968
|
enableIqc: le,
|
|
2962
|
-
showAiList:
|
|
2969
|
+
showAiList: B(() => {
|
|
2963
2970
|
var $;
|
|
2964
2971
|
return !!(($ = t.ai) != null && $.enable) && j.value.length;
|
|
2965
2972
|
})
|
|
2966
|
-
}), ($, A) => (
|
|
2967
|
-
$.menus.length ? (
|
|
2973
|
+
}), ($, A) => (_(), x("div", Na, [
|
|
2974
|
+
$.menus.length ? (_(), H(qe, {
|
|
2968
2975
|
key: 0,
|
|
2969
2976
|
menu: $.menus,
|
|
2970
2977
|
process: $.process,
|
|
2971
2978
|
microscope: $.microscope,
|
|
2972
2979
|
onTool: ye
|
|
2973
2980
|
}, {
|
|
2974
|
-
left:
|
|
2981
|
+
left: L(() => [
|
|
2975
2982
|
fe($.$slots, "left")
|
|
2976
2983
|
]),
|
|
2977
|
-
right:
|
|
2978
|
-
C(
|
|
2984
|
+
right: L(() => [
|
|
2985
|
+
C(o(Ee), {
|
|
2979
2986
|
modelValue: c.value,
|
|
2980
2987
|
"onUpdate:modelValue": A[0] || (A[0] = (F) => c.value = F),
|
|
2981
|
-
"active-text":
|
|
2988
|
+
"active-text": o(p)("隐藏标签"),
|
|
2982
2989
|
"active-value": !1,
|
|
2983
2990
|
"inactive-value": !0,
|
|
2984
2991
|
class: "margin-r-2",
|
|
2985
2992
|
onChange: Qe
|
|
2986
2993
|
}, null, 8, ["modelValue", "active-text"]),
|
|
2987
|
-
$.ai && $.ai.enable &&
|
|
2994
|
+
$.ai && $.ai.enable && o(te) ? (_(), H(o(Ee), {
|
|
2988
2995
|
key: 0,
|
|
2989
|
-
modelValue:
|
|
2996
|
+
modelValue: o(le),
|
|
2990
2997
|
"onUpdate:modelValue": A[1] || (A[1] = (F) => pe(le) ? le.value = F : null),
|
|
2991
|
-
"active-text":
|
|
2998
|
+
"active-text": o(p)("AI质控"),
|
|
2992
2999
|
class: "margin-r-2",
|
|
2993
|
-
onChange:
|
|
3000
|
+
onChange: o(Me)
|
|
2994
3001
|
}, null, 8, ["modelValue", "active-text", "onChange"])) : R("", !0),
|
|
2995
|
-
$.ai && $.ai.enable &&
|
|
3002
|
+
$.ai && $.ai.enable && o(P) ? (_(), H(o(Ee), {
|
|
2996
3003
|
key: 1,
|
|
2997
|
-
modelValue:
|
|
3004
|
+
modelValue: o(re),
|
|
2998
3005
|
"onUpdate:modelValue": A[2] || (A[2] = (F) => pe(re) ? re.value = F : null),
|
|
2999
|
-
"active-text":
|
|
3006
|
+
"active-text": o(p)("AI分析"),
|
|
3000
3007
|
class: "margin-r-2",
|
|
3001
|
-
onChange:
|
|
3008
|
+
onChange: o(Se)
|
|
3002
3009
|
}, null, 8, ["modelValue", "active-text", "onChange"])) : R("", !0),
|
|
3003
3010
|
fe($.$slots, "right")
|
|
3004
3011
|
]),
|
|
3005
3012
|
_: 3
|
|
3006
3013
|
}, 8, ["menu", "process", "microscope"])) : R("", !0),
|
|
3007
3014
|
k("div", Ba, [
|
|
3008
|
-
$.showList ? (
|
|
3015
|
+
$.showList ? (_(), H(je, {
|
|
3009
3016
|
key: 0,
|
|
3010
3017
|
defer: "",
|
|
3011
3018
|
to: "#kfb-slide-list",
|
|
@@ -3019,50 +3026,50 @@ const ta = /* @__PURE__ */ ge(Qo, [["render", ea]]), la = { class: "hzzt-kfb-sli
|
|
|
3019
3026
|
onSelect: Xe,
|
|
3020
3027
|
onTool: ye
|
|
3021
3028
|
}, {
|
|
3022
|
-
slide:
|
|
3029
|
+
slide: L(({ slide: F }) => [
|
|
3023
3030
|
fe($.$slots, "list", { slide: F })
|
|
3024
3031
|
]),
|
|
3025
3032
|
_: 3
|
|
3026
3033
|
}, 8, ["style", "slides"])
|
|
3027
3034
|
], 8, ["disabled"])) : R("", !0),
|
|
3028
|
-
(
|
|
3035
|
+
(_(), H(je, {
|
|
3029
3036
|
defer: "",
|
|
3030
3037
|
to: "#kfb-slide-view",
|
|
3031
3038
|
disabled: !$.teleport
|
|
3032
3039
|
}, [
|
|
3033
3040
|
k("div", Da, [
|
|
3034
|
-
|
|
3035
|
-
(
|
|
3041
|
+
i.value.length && b.value ? (_(), x("ul", Ua, [
|
|
3042
|
+
(_(!0), x(oe, null, ae(i.value, (F, ce) => (_(), x("li", {
|
|
3036
3043
|
key: ce,
|
|
3037
3044
|
style: q(I.value),
|
|
3038
3045
|
class: ke(r.value.id === F.id ? "hzzt-kfb-view-screen-active" : ""),
|
|
3039
3046
|
onClick: (ut) => Ye(F)
|
|
3040
3047
|
}, [
|
|
3041
|
-
(
|
|
3048
|
+
(_(), H(Ne, Oe({
|
|
3042
3049
|
ref_for: !0,
|
|
3043
3050
|
ref_key: "kfbViewRefs",
|
|
3044
3051
|
ref: h,
|
|
3045
3052
|
key: `kfb-${ce}`
|
|
3046
3053
|
}, { ref_for: !0 }, De(F), { onTool: ye }), {
|
|
3047
|
-
default:
|
|
3054
|
+
default: L(() => [
|
|
3048
3055
|
fe($.$slots, "kfb", { slide: F })
|
|
3049
3056
|
]),
|
|
3050
3057
|
_: 2
|
|
3051
3058
|
}, 1040))
|
|
3052
3059
|
], 14, Fa))), 128))
|
|
3053
|
-
])) : r.value ? (
|
|
3060
|
+
])) : r.value ? (_(), H(Ne, Oe({
|
|
3054
3061
|
key: 1,
|
|
3055
3062
|
ref_key: "kfbViewRef",
|
|
3056
|
-
ref:
|
|
3063
|
+
ref: g
|
|
3057
3064
|
}, De(r.value), { onTool: ye }), {
|
|
3058
|
-
default:
|
|
3065
|
+
default: L(() => [
|
|
3059
3066
|
fe($.$slots, "kfb", { slide: r.value })
|
|
3060
3067
|
]),
|
|
3061
3068
|
_: 3
|
|
3062
3069
|
}, 16)) : R("", !0)
|
|
3063
3070
|
])
|
|
3064
3071
|
], 8, ["disabled"])),
|
|
3065
|
-
$.ai && $.ai.enable &&
|
|
3072
|
+
$.ai && $.ai.enable && o(j).length ? (_(), H(je, {
|
|
3066
3073
|
key: 1,
|
|
3067
3074
|
defer: "",
|
|
3068
3075
|
to: "#kfb-slide-ai",
|
|
@@ -3071,10 +3078,10 @@ const ta = /* @__PURE__ */ ge(Qo, [["render", ea]]), la = { class: "hzzt-kfb-sli
|
|
|
3071
3078
|
C(Aa, {
|
|
3072
3079
|
style: q($.teleport ? "" : "width: 350px"),
|
|
3073
3080
|
ref_key: "kfbAiRef",
|
|
3074
|
-
ref:
|
|
3075
|
-
data:
|
|
3081
|
+
ref: n,
|
|
3082
|
+
data: o(j),
|
|
3076
3083
|
slide: r.value,
|
|
3077
|
-
analysis:
|
|
3084
|
+
analysis: o(ne)
|
|
3078
3085
|
}, null, 8, ["style", "data", "slide", "analysis"])
|
|
3079
3086
|
], 8, ["disabled"])) : R("", !0),
|
|
3080
3087
|
fe($.$slots, "default")
|