hzzt-kfb-slide 0.0.8 → 0.0.9
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/{annotateR7c0LCw2.js → annotateBSN_N98d.js} +1 -1
- package/dist/components/annotateCskNt8uV.js +132 -0
- package/dist/components/{annotateFlT59Ud8.js → annotateDQQc3oYO.js} +1 -1
- package/dist/components/annotateWlJ-PlkO.js +1 -0
- package/dist/components/{arrowDHcko1dw.js → arrowCircleCLHjzy7J.js} +1 -1
- package/dist/components/{arrowDRio3eqx.js → arrowCircleDN2Qevn_.js} +9 -9
- package/dist/components/{arrowDownDRpTqVDK.js → arrowDownB5PEMVYP.js} +1 -1
- package/dist/components/{arrowDownByED8CSr.js → arrowDownztxcPDK2.js} +1 -1
- package/dist/components/{arrowLeftCl2XVnFB.js → arrowLeftBTScpoSq.js} +1 -1
- package/dist/components/{arrowLeftDjcuA_pb.js → arrowLeftC_h3QrNf.js} +1 -1
- package/dist/components/{arrowRightDSkHKM4y.js → arrowRightBAEhIIeD.js} +1 -1
- package/dist/components/{arrowRightClSGs6Mb.js → arrowRightDaLk5ye2.js} +1 -1
- package/dist/components/{arrowUpCgzq2L8A.js → arrowUpB_mDEoVE.js} +1 -1
- package/dist/components/{arrowUpQVIPK_NQ.js → arrowUpBuwILzVM.js} +1 -1
- package/dist/components/arrowq3GgyGtl.js +23 -0
- package/dist/components/arrowqeUXLexE.js +1 -0
- package/dist/components/bilateralC8BCqacM.js +1 -0
- package/dist/components/bilateralsYVc46ez.js +27 -0
- package/dist/components/{channelD-dojSaC.js → channelCm6WfZhE.js} +1 -1
- package/dist/components/{channelCTQgwZV_.js → channelCxhiBqFa.js} +1 -1
- package/dist/components/{checkCqCYDYr4.js → checkgqabT7oF.js} +1 -1
- package/dist/components/{checkCBxyasVc.js → checklhwJw6ij.js} +1 -1
- package/dist/components/{configGeQGhW9C.js → config8wBzwVWe.js} +1 -1
- package/dist/components/{configP_8ZVyfi.js → configCo2pzSSl.js} +1 -1
- package/dist/components/customDdRy3S9S.js +1 -0
- package/dist/components/{customBr26z068.js → customoXQbJYSP.js} +3 -2
- package/dist/components/{deleteBNIxfTCo.js → deleteDFVCacNy.js} +1 -1
- package/dist/components/{deleteuibq0KAI.js → deletegLcmbyGU.js} +1 -1
- package/dist/components/{dotBucEP5Z8.js → dotB2b_Bc58.js} +10 -9
- package/dist/components/dotBOQVdiVZ.js +1 -0
- package/dist/components/{dotDhjymv7s.js → dotBdyZ6Zs_.js} +1 -1
- package/dist/components/dotBjtFccSw.js +1 -0
- package/dist/components/{dotBJ-lSESE.js → dotBx_U-TRs.js} +1 -1
- package/dist/components/dotDVIxo3b0.js +25 -0
- package/dist/components/{downloadB5STpOaR.js → downloadCO9Cz6dr.js} +1 -1
- package/dist/components/downloadCq-yv4BU.js +1 -0
- package/dist/components/{downloadDnWeuVMn.js → downloadDYN6iKOq.js} +11 -10
- package/dist/components/{downloadBrpaJY3x.js → downloadDfTBHJ7d.js} +1 -1
- package/dist/components/ellipseDPdtULn7.js +23 -0
- package/dist/components/ellipseDxOwmrP-.js +1 -0
- package/dist/components/expandLeftBmr3uw-F.js +21 -0
- package/dist/components/expandLeftDgZEeCXR.js +1 -0
- package/dist/components/expandRightBPDxAHAT.js +21 -0
- package/dist/components/expandRightBvHDRlw9.js +1 -0
- package/dist/components/flagC_HXmW12.js +29 -0
- package/dist/components/flagDCxIuLfr.js +1 -0
- package/dist/components/{flipD7XBmACU.js → flipCNkGkJFc.js} +1 -1
- package/dist/components/{flipDlTFW9pO.js → flipK09gW4-M.js} +1 -1
- package/dist/components/fontBIHY17oy.js +1 -0
- package/dist/components/fontDXUcdfsw.js +23 -0
- package/dist/components/{fullscreenBGej63GA.js → fullscreenCEFKqV7l.js} +4 -3
- package/dist/components/{fullscreenoNyXD8h3.js → fullscreenDPi8Xahs.js} +1 -1
- package/dist/components/{fullscreenCxtySrDu.js → fullscreenDZYz-sfk.js} +1 -1
- package/dist/components/fullscreenDd3GiUQ4.js +1 -0
- package/dist/components/indexBMt2qfwG.js +3006 -0
- package/dist/components/indexCIVMES3X.js +4 -0
- package/dist/components/{infoBjk0dOPE.js → infoBWvCO9_7.js} +1 -1
- package/dist/components/{infoCA6EWNF3.js → infolJ1oViok.js} +1 -1
- package/dist/components/{levelbRjS_tcK.js → level3wMXDN6Y.js} +1 -1
- package/dist/components/{levelCG93ncZs.js → levelBeCwZgz9.js} +1 -1
- package/dist/components/lineBYCqffsD.js +1 -0
- package/dist/components/linerKZy_PBV.js +23 -0
- package/dist/components/{microscopeD-FrVKRB.js → microscopeB6_xwHWr.js} +1 -1
- package/dist/components/{microscopey8VfYeuX.js → microscopeB9wC5wRM.js} +5 -4
- package/dist/components/microscopeBm3v4wJv.js +1 -0
- package/dist/components/{microscopeD-EjOdf2.js → microscopeDsuJ4oWc.js} +1 -1
- package/dist/components/{moveCCkgUb-0.js → moveCCEIbSgO.js} +11 -10
- package/dist/components/{moveDYmvf7k8.js → moveDB4RR4wM.js} +1 -1
- package/dist/components/moveDU5gi3Hs.js +1 -0
- package/dist/components/{movebJvf1oPR.js → movel8WgST25.js} +1 -1
- package/dist/components/{nextC6ATDCIW.js → nextCU-KJqvj.js} +1 -1
- package/dist/components/{nextDdiDIgB2.js → next_hDHaXI8.js} +1 -1
- package/dist/components/polygonI_Zz93ii.js +23 -0
- package/dist/components/polygonidXC3FDF.js +1 -0
- package/dist/components/{prevC43MjkJW.js → prevBeyGPDD3.js} +1 -1
- package/dist/components/{prevD3zqAMQc.js → prevDVlS4e4B.js} +1 -1
- package/dist/components/{processDR1VlciH.js → processBUT2dQY5.js} +5 -4
- package/dist/components/{processCDMD34sa.js → processD0b1s4d4.js} +1 -1
- package/dist/components/{processDq-wdwXj.js → processDAd-rsJz.js} +1 -1
- package/dist/components/processpK6pP0DH.js +1 -0
- package/dist/components/rectangleD4mKwQvO.js +23 -0
- package/dist/components/rectangleD7n6Vvt6.js +1 -0
- package/dist/components/{rotateCVpCm-tK.js → rotateBgGcEeK6.js} +1 -1
- package/dist/components/{rotateB2TKrdOd.js → rotateDZ2LcDRk.js} +1 -1
- package/dist/components/rotateDh6-tIqc.js +1 -0
- package/dist/components/{rotateD_vW_yY0.js → rotatePTOj7NOR.js} +10 -9
- package/dist/components/{settingCqgEfv1i.js → settingB_4RabuF.js} +5 -4
- package/dist/components/{settingB6ugQHJp.js → settingDCw5DNWc.js} +1 -1
- package/dist/components/{settingDgfjjrts.js → settingDx9NClvs.js} +1 -1
- package/dist/components/settingsSpWOZGB.js +1 -0
- package/dist/components/starDBBLg7cl.js +1 -0
- package/dist/components/starZ-R1XM0P.js +25 -0
- package/dist/components/{tailorCBjKU02K.js → tailorBIcgkHyw.js} +1 -1
- package/dist/components/{tailorDzvy19FE.js → tailorvV9idwBq.js} +1 -1
- package/dist/components/{useCommonBD90FQd0.js → useCommonDOhNsd5o.js} +1 -1
- package/dist/components/{useCommonBD-xKHu3.js → useCommonSF_YB4y_.js} +1 -1
- package/dist/components/voice0zCcCgj_.js +25 -0
- package/dist/components/voiceoSSHyjHA.js +1 -0
- package/dist/components/{zoomB5HF8Hai.js → zoomDQAi2Vcg.js} +1 -1
- package/dist/components/{zoomInBrNwgimx.js → zoomInBW6dNl06.js} +1 -1
- package/dist/components/{zoomInC3EAqFg-.js → zoomInDtlrDlNR.js} +1 -1
- package/dist/components/{zoomOutDafuMDlQ.js → zoomOutBKc239cL.js} +1 -1
- package/dist/components/{zoomOutGi1JWbc1.js → zoomOut_jWy0Idj.js} +1 -1
- package/dist/components/{zoomBcO2XFbA.js → zoomluz7C-Dr.js} +1 -1
- package/dist/index.cjs.js +1 -1
- package/dist/index.css +1 -1
- package/dist/index.es.js +5 -5
- package/package.json +1 -1
- package/types/components/KfbView/KfbAnnotation.vue.d.ts +17 -0
- package/types/components/KfbView/index.vue.d.ts +2 -2
- package/types/components/KfbView/useLabel.d.ts +81 -0
- package/types/components/icon/expandLeft.vue.d.ts +2 -0
- package/types/components/icon/expandRight.vue.d.ts +2 -0
- package/types/components/icon/mark/arrow.vue.d.ts +2 -0
- package/types/components/icon/mark/bilateral.vue.d.ts +2 -0
- package/types/components/icon/mark/dot.vue.d.ts +2 -0
- package/types/components/icon/mark/ellipse.vue.d.ts +2 -0
- package/types/components/icon/mark/flag.vue.d.ts +2 -0
- package/types/components/icon/mark/font.vue.d.ts +2 -0
- package/types/components/icon/mark/line.vue.d.ts +2 -0
- package/types/components/icon/mark/polygon.vue.d.ts +2 -0
- package/types/components/icon/mark/rectangle.vue.d.ts +2 -0
- package/types/components/icon/mark/star.vue.d.ts +2 -0
- package/types/components/icon/mark/voice.vue.d.ts +2 -0
- package/types/components/toolbox/instances.d.ts +1 -0
- package/dist/components/annotateJzE3toJV.js +0 -1
- package/dist/components/annotatemJxZMVPO.js +0 -123
- package/dist/components/customB1-3lgH0.js +0 -1
- package/dist/components/dotDc-QmqaE.js +0 -1
- package/dist/components/downloadDh6wiado.js +0 -1
- package/dist/components/fullscreenOKvUhCk1.js +0 -1
- package/dist/components/indexB0v3MpmE.js +0 -2937
- package/dist/components/indexBkFttmTs.js +0 -4
- package/dist/components/microscopeDd_Bl9hM.js +0 -1
- package/dist/components/moveQ5bEeY1C.js +0 -1
- package/dist/components/processD1w3RPEQ.js +0 -1
- package/dist/components/rotateDEPrY9R8.js +0 -1
- package/dist/components/settingDCqhAo43.js +0 -1
- /package/types/components/icon/{arrow.vue.d.ts → arrowCircle.vue.d.ts} +0 -0
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
"use strict";var Je=Object.defineProperty,et=Object.defineProperties;var tt=Object.getOwnPropertyDescriptors;var Se=Object.getOwnPropertySymbols;var ot=Object.prototype.hasOwnProperty,nt=Object.prototype.propertyIsEnumerable;var Le=(u,t,l)=>t in u?Je(u,t,{enumerable:!0,configurable:!0,writable:!0,value:l}):u[t]=l,$=(u,t)=>{for(var l in t||(t={}))ot.call(t,l)&&Le(u,l,t[l]);if(Se)for(var l of Se(t))nt.call(t,l)&&Le(u,l,t[l]);return u},W=(u,t)=>et(u,tt(t));var J=(u,t,l)=>new Promise((o,y)=>{var f=v=>{try{i(l.next(v))}catch(g){y(g)}},c=v=>{try{i(l.throw(v))}catch(g){y(g)}},i=v=>v.done?o(v.value):Promise.resolve(v.value).then(f,c);i((l=l.apply(u,t)).next())});const e=require("vue"),C=require("element-plus"),A=require("kfb-view"),lt=require("v-lazy-image");function K(){const u=e.inject("i18n"),t=l=>l;return{locale:u==null?void 0:u.locale,t:(u==null?void 0:u.t)||t}}const at={install(u,t){u.provide("i18n",t==null?void 0:t.global)}},P=e.ref({annotate:e.markRaw(e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./annotateBSN_N98d.js")))),arrowCircle:e.markRaw(e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./arrowCircleCLHjzy7J.js")))),check:e.markRaw(e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./checklhwJw6ij.js")))),dot:e.markRaw(e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./dotBdyZ6Zs_.js")))),flip:e.markRaw(e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./flipK09gW4-M.js")))),info:e.markRaw(e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./infolJ1oViok.js")))),microscope:e.markRaw(e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./microscopeDsuJ4oWc.js")))),move:e.markRaw(e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./moveDB4RR4wM.js")))),next:e.markRaw(e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./nextCU-KJqvj.js")))),prev:e.markRaw(e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./prevDVlS4e4B.js")))),process:e.markRaw(e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./processDAd-rsJz.js")))),rotate:e.markRaw(e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./rotateBgGcEeK6.js")))),fullscreen:e.markRaw(e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./fullscreenDPi8Xahs.js")))),setting:e.markRaw(e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./settingDx9NClvs.js")))),tailor:e.markRaw(e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./tailorBIcgkHyw.js")))),download:e.markRaw(e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./downloadDfTBHJ7d.js")))),config:e.markRaw(e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./configCo2pzSSl.js")))),arrowDown:e.markRaw(e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./arrowDownztxcPDK2.js")))),arrowUp:e.markRaw(e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./arrowUpBuwILzVM.js")))),arrowLeft:e.markRaw(e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./arrowLeftBTScpoSq.js")))),arrowRight:e.markRaw(e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./arrowRightDaLk5ye2.js")))),zoomIn:e.markRaw(e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./zoomInBW6dNl06.js")))),zoomOut:e.markRaw(e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./zoomOutBKc239cL.js")))),level:e.markRaw(e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./level3wMXDN6Y.js")))),channel:e.markRaw(e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./channelCm6WfZhE.js")))),delete:e.markRaw(e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./deletegLcmbyGU.js")))),expandLeft:e.markRaw(e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./expandLeftDgZEeCXR.js")))),expandRight:e.markRaw(e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./expandRightBvHDRlw9.js")))),markLine:e.markRaw(e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./lineBYCqffsD.js")))),markArrow:e.markRaw(e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./arrowqeUXLexE.js")))),markBilateral:e.markRaw(e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./bilateralC8BCqacM.js")))),markRectangle:e.markRaw(e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./rectangleD7n6Vvt6.js")))),markEllipse:e.markRaw(e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./ellipseDxOwmrP-.js")))),markPolygon:e.markRaw(e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./polygonidXC3FDF.js")))),markFlag:e.markRaw(e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./flagDCxIuLfr.js")))),markStar:e.markRaw(e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./starDBBLg7cl.js")))),markDot:e.markRaw(e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./dotBOQVdiVZ.js")))),markFont:e.markRaw(e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./fontBIHY17oy.js")))),markVoice:e.markRaw(e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./voiceoSSHyjHA.js"))))}),R=e.defineComponent({__name:"KfbIcon",props:{name:{type:[String,Number],required:!0}},setup(u){return(t,l)=>(e.openBlock(),e.createBlock(e.unref(C.ElIcon),e.normalizeProps(e.guardReactiveProps(t.$attrs)),{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(P)[u.name])))]),_:1},16))}}),rt={class:"hzzt-kfb-tool-config"},it={class:"hzzt-kfb-tool-config__title margin-b-2"},st={class:"hzzt-kfb-tool-config__block flex align-items-center"},ct={class:"hzzt-kfb-tool-config__icon flex align-items-center justify-content-center"},ut={class:"margin-l-4 flex-1"},dt={class:"hzzt-kfb-tool-config__title"},ft={class:"flex align-items-center"},mt={class:"margin-t-2 margin-b-2",style:{width:"160px"}},vt={class:"flex align-items-center"},pt={class:"margin-t-2 margin-b-2",style:{width:"160px"}},ht=e.defineComponent({name:"KfbToolConfig",__name:"KfbToolConfig",props:{menus:{default:()=>[]},menusModifiers:{},showText:{type:Boolean},showTextModifiers:{}},emits:["update:menus","update:showText"],setup(u){const t=e.useModel(u,"menus"),l=e.useModel(u,"showText"),{t:o}=K(),y=e.computed(()=>t.value.filter(g=>g.name!=="line"&&g.name!=="config"&&g.name!=="zoom")),f={fullscreen:o("全屏"),next:o("上一张"),prev:o("上一张"),flip:o("镜像翻转"),setting:o("工具"),rotate:o("旋转"),dot:o("打点"),annotate:o("标注"),tailor:o("截图"),process:o("图像处理"),microscope:o("镜下"),move:o("快速移动"),info:o("信息"),download:o("下载")},c=e.inject("show-keyboard",e.ref(!1));function i(g){return g in f}function v(g){var h;return((h=g.props)==null?void 0:h.text)||(i(g.name)?f[g.name]:"")}return(g,h)=>(e.openBlock(),e.createElementBlock("div",rt,[e.createElementVNode("h3",it,e.toDisplayString(e.unref(o)("显示管理")),1),e.createVNode(e.unref(C.ElRow),{gutter:10},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(y.value,n=>(e.openBlock(),e.createBlock(e.unref(C.ElCol),{key:n.name,span:8},{default:e.withCtx(()=>{var a,d;return[e.createElementVNode("div",st,[e.createElementVNode("div",ct,[(a=n.props)!=null&&a.component?(e.openBlock(),e.createBlock(e.resolveDynamicComponent((d=n.props)==null?void 0:d.component),{key:1,size:24})):(e.openBlock(),e.createBlock(R,{key:0,size:24,name:n.name},null,8,["name"]))]),e.createElementVNode("p",ut,e.toDisplayString(v(n)),1),e.createVNode(e.unref(C.ElSwitch),{modelValue:n.show,"onUpdate:modelValue":r=>n.show=r,"active-text":"","inactive-text":""},null,8,["modelValue","onUpdate:modelValue"])])]}),_:2},1024))),128))]),_:1}),e.createElementVNode("div",null,[e.createElementVNode("h3",dt,e.toDisplayString(e.unref(o)("其他设置")),1),e.createElementVNode("div",ft,[e.createElementVNode("p",mt,e.toDisplayString(e.unref(o)("工具列表显示切换")),1),e.createVNode(e.unref(C.ElRadioGroup),{modelValue:l.value,"onUpdate:modelValue":h[0]||(h[0]=n=>l.value=n)},{default:e.withCtx(()=>[e.createVNode(e.unref(C.ElRadio),{value:!0},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(o)("显示工具名称")),1)]),_:1}),e.createVNode(e.unref(C.ElRadio),{value:!1},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(o)("隐藏工具名称")),1)]),_:1})]),_:1},8,["modelValue"])]),e.createElementVNode("div",vt,[e.createElementVNode("p",pt,e.toDisplayString(e.unref(o)("小键盘显示切换")),1),e.createVNode(e.unref(C.ElRadioGroup),{modelValue:e.unref(c),"onUpdate:modelValue":h[1]||(h[1]=n=>e.isRef(c)?c.value=n:null)},{default:e.withCtx(()=>[e.createVNode(e.unref(C.ElRadio),{value:!0},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(o)("显示小键盘")),1)]),_:1}),e.createVNode(e.unref(C.ElRadio),{value:!1},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(o)("隐藏小键盘")),1)]),_:1})]),_:1},8,["modelValue"])])])]))}}),gt={class:"hzzt-kfb-toolbox"},wt={class:"hzzt-kfb-toolbox__component"},ee=e.defineComponent({name:"KfbToolbox",__name:"KfbToolbox",props:{menu:{},process:{},microscope:{},showMenuText:{type:Boolean}},emits:["tool"],setup(u,{emit:t}){const l=u,o=t,{t:y}=K(),f={prev:y("上一张"),next:y("下一张"),config:y("配置"),info:y("信息"),flip:y("镜像"),tailor:y("截图")},c=e.inject("kfbViewRef"),i=e.ref(!1),v=e.ref(l.showMenuText),g=e.ref(a(l.menu)),h={fullscreen:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./fullscreenDd3GiUQ4.js"))),line:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./lineCzuS7Giu.js"))),setting:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./settingsSpWOZGB.js"))),rotate:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./rotateDh6-tIqc.js"))),dot:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./dotBjtFccSw.js"))),annotate:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./annotateWlJ-PlkO.js"))),process:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./processpK6pP0DH.js"))),microscope:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./microscopeBm3v4wJv.js"))),move:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./moveDU5gi3Hs.js"))),custom:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./customDdRy3S9S.js"))),zoom:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./zoomluz7C-Dr.js"))),download:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./downloadCq-yv4BU.js")))},n=e.computed(()=>g.value.filter(r=>r.show!==!1).map(r=>({component:h[r.name],props:r.props,slots:r.slots})));e.watch(()=>l.menu,r=>{g.value=a(r)});function a(r){return r.map(s=>{const p=typeof s=="string"?s:s.name;return f[p]?{name:"custom",show:typeof s=="string"?!0:s.show!==!1,props:W($({text:f[p]},typeof s=="string"?{}:s.props),{name:p,component:e.h(R,{name:p})})}:p==="process"?{name:p,props:typeof s=="string"?{process:l.process}:$({process:l.process},s.props),slots:typeof s=="string"?void 0:s.slots,show:typeof s=="string"?!0:s.show!==!1}:p==="microscope"?{name:p,props:typeof s=="string"?{process:l.process}:$({microscope:l.microscope},s.props),slots:typeof s=="string"?void 0:s.slots,show:typeof s=="string"?!0:s.show!==!1}:{name:p,props:typeof s=="string"?{}:s.props,slots:typeof s=="string"?void 0:s.slots,show:typeof s=="string"?!0:s.show!==!1}})}function d(r,s){const p={annotate:()=>c.value.startDraw(s),tailor:()=>c.value.shotScreen(s),process:()=>c.value.forceRedraw(s),microscope:()=>c.value.scopeChange(s),move:()=>c.value.fastMove(s),endDraw:()=>c.value.endDraw(),info:()=>c.value.info(),zoom:()=>c.value.zoomTo(s),flip:()=>c.value.toggleFlip(s),config:()=>i.value=!0,grid:()=>c.value.updateGrid(s),ruler:()=>c.value.updateGrid(s),graduation:()=>c.value.updateGraduation(s),navigator:()=>c.value.updateNavigator(s),tool:()=>{c.value.updateGrid({show:s}),c.value.updateGraduation({show:s}),c.value.updateGrid({ruler:s}),c.value.updateNavigator(s)}};p[r]?p[r]():o("tool",r,s)}return e.provide("show-text",v),(r,s)=>(e.openBlock(),e.createElementBlock("div",gt,[e.renderSlot(r.$slots,"left"),e.createElementVNode("div",wt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.value,(p,w)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(p.component),e.mergeProps({ref_for:!0},p.props,{key:w,onTool:d}),{default:e.withCtx(()=>[p.slots?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(p.slots,k=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(k)))),256)):e.createCommentVNode("",!0)]),_:2},1040))),128))]),e.renderSlot(r.$slots,"right"),e.createVNode(e.unref(C.ElDialog),{modelValue:i.value,"onUpdate:modelValue":s[2]||(s[2]=p=>i.value=p),width:"800px",title:e.unref(y)("阅片工具设置中心")},{default:e.withCtx(()=>[e.createVNode(ht,{menus:g.value,"onUpdate:menus":s[0]||(s[0]=p=>g.value=p),showText:v.value,"onUpdate:showText":s[1]||(s[1]=p=>v.value=p)},null,8,["menus","showText"])]),_:1},8,["modelValue","title"])]))}}),ie="data:image/svg+xml,%3csvg%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20width='32'%20height='32'%3e%3cpath%20d='M556.45%20126.8H904.7c31.31%200%2056.26%2025.47%2057.3%2056.78v656.85c-0.68%2031.26-26.03%2056.35-57.3%2056.72H617.28l74.32-291.24-77.38-56.14%2032.3-27.32c8.28-6.66%2015.51-11.46%2025.7-11.46%209.96%200.24%2019.33%204.77%2025.7%2012.45h-0.06l198.87%20214.09-0.58-522.46c-0.75-13.7-12.21-24.35-25.93-24.08H542.45l14-64.19z%20m-118.47%200l-14.01%2064.24H152.41c-13.6%200-24.31%209.84-26.22%2023.44v522.63l242.33-292.28-13.08%2060.14%20204.6%20148.46-62.22%20243.77H118.15a56.398%2056.398%200%200%201-39.86-16.73A56.35%2056.35%200%200%201%2062%20840.43V183.57c0-31.25%2024.89-56.72%2056.14-56.72h319.83v-0.05z%20m203.67%20224.68c-0.86-34.98%2017.31-67.68%2047.47-85.42%2030.16-17.74%2067.56-17.74%2097.73%200%2030.16%2017.74%2048.33%2050.44%2047.47%2085.42%200%2053.22-43.15%2096.37-96.37%2096.37-53.22%200-96.37-43.14-96.37-96.37h0.07z%20m0%200'%20fill='%23ffffff'%3e%3c/path%3e%3c/svg%3e",se={shape:"50%",width:.3,color:"#FA0404",borderWidth:5},pe={r:0,g:0,b:0,c:0,s:0,l:0,ga:1};function yt(u){const t=e.reactive($($({},pe),u.process));e.watch(()=>u.process,f=>{y(f)});const l=e.computed(()=>{const f=[1+t.r+t.l+.5*t.c,0,0,0,-.25*t.c],c=[0,1+t.g+t.l+.5*t.c,0,0,-.25*t.c],i=[0,0,1+t.b+t.l+.5*t.c,0,-.25*t.c],v=[0,0,0,1,0];return`${f.join(" ")}
|
|
2
|
+
${c.join(" ")}
|
|
3
|
+
${i.join(" ")}
|
|
4
|
+
${v.join(" ")}`}),o=e.computed(()=>String(1+t.s));function y(f){f&&Object.assign(t,f)}return{imageProcess:t,matrixValues:l,saturateValues:o,forceRedraw:y}}function kt(u,t){function l(){t.value.$on(A.KfbView.events.EVENT_TAILORING_SCREENSHOT,o)}function o({base64:c,region:i}){if(window.ClipboardItem&&(navigator!=null&&navigator.clipboard)){const v=y(c,"image/png");navigator.clipboard.write([new window.ClipboardItem({[v.type]:v})])}u("tool","screen-shot",{base64:c,region:i})}function y(c,i){var a,d;const v=c.split(",");(d=(a=v[0])==null?void 0:a.match(/:(.*?);/))==null||d[1];const g=atob(v==null?void 0:v[1]);let h=g.length;const n=new Uint8Array(h);for(;h--;)n[h]=g.charCodeAt(h);return new Blob([n],{type:i})}function f(c){const{width:i,height:v}=t.value.$options;c?i>v?t.value.tailoring.init({left:(i-v)/2,top:0,height:v,width:v,now:!0}):t.value.tailoring.init({left:0,top:(v-i)/2,height:i,width:i,now:!0}):t.value.tailoring.init({left:i/2-100,top:v/2-100,height:200,width:200,color:"#ff0000"})}return{tailorEvent:l,shotScreen:f}}const bt=["onClick"],_t=["src"],Ct={key:2,style:{width:"18px"},class:"margin-r-3"},Vt={key:1,class:"hzzt-kfb-sub-menu"},Et=["onClick"],zt={class:"flex align-items-center"},Nt=["src"],Bt={key:2,style:{width:"18px"},class:"margin-r-2"},xt=e.defineComponent({__name:"KfbMenu",props:{menus:{}},emits:["tool"],setup(u,{emit:t}){const l=e.ref({top:"0",left:"0",display:"none"}),o=e.inject("kfbView",e.ref({})),y=e.inject("currentLabel"),f=u,c=t,{t:i}=K(),v=[{label:i("直线"),value:"line",icon:P.value.markLine},{label:i("箭头"),value:"arrow",icon:P.value.markArrow},{label:i("双箭头"),value:"bilateral",icon:P.value.markBilateral},{label:i("矩形"),value:"rectangle",icon:P.value.markRectangle},{label:i("圆形"),value:"ellipse",icon:P.value.markEllipse},{label:i("曲线"),value:"polygon",icon:P.value.markPolygon},{label:i("星星"),value:"star",icon:P.value.markStar},{label:i("旗帜"),value:"flag",icon:P.value.markFlag},{label:i("点"),value:"dot",icon:P.value.markDot},{label:i("文字"),value:"font",icon:P.value.markFont},{label:i("语音"),value:"voice",icon:P.value.markVoice}],g=e.computed(()=>{var r;return y!=null&&y.value?[{label:i("删除"),value:"delete",icon:P.value.delete}]:(r=f.menus)!=null&&r.length?f.menus.map(s=>s.value==="annotate"?W($({},s),{children:v}):W($({},s),{icon:s.icon||P.value[s.value]})):[{label:i("上一张"),value:"prev"},{label:i("下一张"),value:"next"},{label:i("标注"),value:"annotate",icon:P.value.annotate,children:v},{label:i("一键截图"),value:"tailor_now",icon:P.value.tailor},{label:i("区域截图"),value:"tailor"},{label:i("镜像翻转"),value:"flip",icon:P.value.flip},{label:i("切片信息"),value:"info",icon:P.value.info}]});e.watch(()=>o.value,(r,s)=>{s!=null&&s.viewer&&(s.viewer.removeHandler("canvas-contextmenu",h),s.viewer.removeHandler("canvas-click",n)),r!=null&&r.viewer&&(r.viewer.addHandler("canvas-contextmenu",h),r.viewer.addHandler("canvas-click",n))}),e.onMounted(()=>{var r;(r=o.value)!=null&&r.viewer&&(o.value.viewer.addHandler("canvas-contextmenu",h),o.value.viewer.addHandler("canvas-click",n)),document.body.addEventListener("click",n)}),e.onBeforeUnmount(()=>{var r;(r=o.value)!=null&&r.viewer&&(o.value.viewer.removeHandler("canvas-contextmenu",h),o.value.viewer.removeHandler("canvas-click",n)),document.body.removeEventListener("click",n)});function h(r){r.preventDefault=!0,l.value.top=`${r.position.y}px`,l.value.left=`${r.position.x}px`,l.value.display==="block"?l.value.display="none":l.value.display="block"}function n(){l.value.display="none"}function a(r,s){r.children||((s==null?void 0:s.value)==="annotate"?c("tool","annotate",{tool:r.value.substring(0,1).toLocaleUpperCase()+r.value.substring(1),once:!0}):r.value==="tailor_now"?c("tool","tailor",!0):c("tool",r.value),n())}function d(r){return r==null||typeof r!="object"&&typeof r!="function"?!1:typeof r=="function"||"render"in r||"setup"in r}return(r,s)=>(e.openBlock(),e.createElementBlock("div",{class:"hzzt-kfb-menu",style:e.normalizeStyle(l.value)},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(g.value,(p,w)=>(e.openBlock(),e.createElementBlock("div",{key:w,class:"hzzt-kfb-menu-item"},[e.createElementVNode("div",{class:"flex align-items-center",onClick:k=>a(p)},[d(p.icon)?(e.openBlock(),e.createBlock(e.unref(C.ElIcon),{key:0,class:"margin-r-3",size:18},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(p.icon)))]),_:2},1024)):p.icon?(e.openBlock(),e.createElementBlock("img",{key:1,style:{width:"18px"},class:"margin-r-2",src:p.icon},null,8,_t)):(e.openBlock(),e.createElementBlock("div",Ct)),e.createElementVNode("span",null,e.toDisplayString(p.label),1)],8,bt),p.children?(e.openBlock(),e.createBlock(R,{key:0,name:"arrowRight",class:"margin-r-2",size:14})):e.createCommentVNode("",!0),p.children?(e.openBlock(),e.createElementBlock("div",Vt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(p.children,(k,m)=>(e.openBlock(),e.createElementBlock("div",{key:m,class:"hzzt-kfb-menu-item",onClick:V=>a(k,p)},[e.createElementVNode("div",zt,[d(k.icon)?(e.openBlock(),e.createBlock(e.unref(C.ElIcon),{key:0,class:"margin-r-2",size:18},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(k.icon)))]),_:2},1024)):k.icon?(e.openBlock(),e.createElementBlock("img",{key:1,style:{width:"18px"},class:"margin-r-2",src:k.icon},null,8,Nt)):(e.openBlock(),e.createElementBlock("div",Bt)),e.createElementVNode("span",null,e.toDisplayString(k.label),1)])],8,Et))),128))])):e.createCommentVNode("",!0)]))),128))],4))}}),j=(u,t)=>{const l=u.__vccOpts||u;for(const[o,y]of t)l[o]=y;return l},Tt=j(xt,[["__scopeId","data-v-414722d0"]]),St={key:0,class:"hzzt-kfb-microscope"},Lt=e.defineComponent({__name:"KfbMicroscope",props:e.mergeDefaults({shape:{},width:{},color:{},borderWidth:{}},$({},se)),setup(u,{expose:t}){const l=u,o=e.reactive($($({},se),l));e.watch(()=>l,n=>{h({name:"change",value:n})});const y=e.ref("200px"),f=e.ref(!1),c=e.computed(()=>({borderRadius:o.shape,borderColor:o.color,borderWidth:o.borderWidth+"px",width:y.value,height:y.value})),i=e.inject("kfbView",e.ref({}));e.watch(()=>i.value,(n,a)=>{a!=null&&a.viewer&&a.viewer.removeHandler("zoom",v),n!=null&&n.viewer&&n.viewer.addHandler("zoom",v)}),e.onMounted(()=>{var n;(n=i.value)!=null&&n.viewer&&i.value.viewer.addHandler("zoom",v)}),e.onBeforeUnmount(()=>{var n;(n=i.value)!=null&&n.viewer&&i.value.viewer.removeHandler("zoom",v)});function v(){setTimeout(()=>{h({name:"change",value:o})},100)}function g(n){let{x:a,y:d}=i.value.viewer.viewport.getCenter(!0);n==="top"?d-=.006:n==="bottom"?d+=.006:n==="left"?a-=.006:n==="right"&&(a+=.006),i.value.area.moveToLabel({x:a,y:d})}function h({name:n,value:a}){var r,s;const d=(s=(r=i.value.$options)==null?void 0:r.pxConversion)==null?void 0:s.imageCapRes;if(n==="visible"){if(f.value=a,a){const p=i.value.area.imageToViewerElementRectangle({x:0,y:0,width:o.width*1e3/d,height:o.width*1e3/d});y.value=p.width+"px"}}else if(n==="change"){Object.assign(o,a);const p=i.value.area.imageToViewerElementRectangle({x:0,y:0,width:o.width*1e3/d,height:o.width*1e3/d});y.value=p.width+"px"}}return t({scopeChange:h}),(n,a)=>f.value?(e.openBlock(),e.createElementBlock("div",St,[e.createElementVNode("div",{class:"hzzt-kfb-microscope__container",style:e.normalizeStyle(c.value)},null,4),e.createElementVNode("div",{class:"hzzt-kfb-microscope__top",onClick:a[0]||(a[0]=d=>g("top"))},[e.createVNode(R,{size:"24",name:"arrowUp"})]),e.createElementVNode("div",{class:"hzzt-kfb-microscope__bottom",onClick:a[1]||(a[1]=d=>g("bottom"))},[e.createVNode(R,{size:"24",name:"arrowDown"})]),e.createElementVNode("div",{class:"hzzt-kfb-microscope__left",onClick:a[2]||(a[2]=d=>g("left"))},[e.createVNode(R,{size:"24",name:"arrowLeft"})]),e.createElementVNode("div",{class:"hzzt-kfb-microscope__right",onClick:a[3]||(a[3]=d=>g("right"))},[e.createVNode(R,{size:"24",name:"arrowRight"})])])):e.createCommentVNode("",!0)}}),$t=j(Lt,[["__scopeId","data-v-e8b36101"]]),Pt={class:"hzzt-kfb-label flex column"},Rt={class:"hzzt-kfb-label__img flex justify-content-center"},Mt=["src"],Dt={class:"ellipsis flex-1"},It={class:"flex margin-b-4",style:{width:"100%"}},At={class:"flex margin overflow-hidden",style:{height:"132px"}},Ht=["src"],Ft=["src"],qt=e.defineComponent({__name:"KfbLabel",props:{info:{},slide:{},pathologyHandle:{type:Function}},emits:["tool"],setup(u,{emit:t}){const{t:l}=K(),o=u,y=t,f=e.ref(!0),c=e.ref(!1),i=e.computed(()=>o.slide.pathology_id?l("修改病理号"):l("绑定病理号"));function v(){o.slide.angle||(o.slide.angle=0),o.slide.angle+=90,o.slide.angle>360&&(o.slide.angle=o.slide.angle%360),y("tool","rotate",o.slide.angle)}function g(){c.value=!0}function h(){o.pathologyHandle&&o.pathologyHandle(o.slide).then(()=>{c.value=!1})}return(n,a)=>(e.openBlock(),e.createElementBlock("div",Pt,[e.withDirectives(e.createElementVNode("div",{class:"hzzt-kfb-label__title"},e.toDisplayString(e.unref(l)(`点击标签旋转${n.pathologyHandle?",点击病理号重绑":""}`)),513),[[e.vShow,f.value]]),e.withDirectives(e.createElementVNode("div",Rt,[e.createElementVNode("img",{src:n.info.labelImg,style:e.normalizeStyle({transform:`rotate(${n.slide.angle}deg)`}),onClick:v},null,12,Mt)],512),[[e.vShow,f.value]]),n.pathologyHandle?e.withDirectives((e.openBlock(),e.createElementBlock("div",{key:0,class:"hzzt-kfb-label__pathology flex align-items-center justify-content-between",onClick:g},[e.createElementVNode("span",Dt,e.toDisplayString(n.slide.pathology_number),1),e.createVNode(R,{size:"14",name:"annotate"})],512)),[[e.vShow,f.value]]):e.createCommentVNode("",!0),e.createElementVNode("span",{onClick:a[0]||(a[0]=d=>f.value=!f.value),style:e.normalizeStyle({transform:`translateY(${f.value?"-50%":0})`}),class:"hzzt-kfb-label__expend flex align-items-center justify-content-center"},[f.value?(e.openBlock(),e.createBlock(R,{key:0,size:"10",name:"arrowLeft"})):(e.openBlock(),e.createBlock(R,{key:1,size:"10",name:"arrowRight"}))],4),e.createVNode(e.unref(C.ElDialog),{modelValue:c.value,"onUpdate:modelValue":a[5]||(a[5]=d=>c.value=d),"append-to-body":!0,title:i.value,width:"450px"},{footer:e.withCtx(()=>[e.createVNode(e.unref(C.ElButton),{onClick:a[4]||(a[4]=d=>c.value=!1)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(l)("取消")),1)]),_:1}),e.createVNode(e.unref(C.ElButton),{type:"primary",onClick:h},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(l)("确认")),1)]),_:1})]),default:e.withCtx(()=>[e.createElementVNode("div",It,[e.createElementVNode("div",At,[e.createElementVNode("img",{src:n.slide.labelImg},null,8,Ht),e.createElementVNode("img",{src:n.slide.previewImg},null,8,Ft)])]),e.createVNode(e.unref(C.ElForm),{class:"margin-t-2"},{default:e.withCtx(()=>[e.createVNode(e.unref(C.ElFormItem),{label:e.unref(l)("病理号")},{default:e.withCtx(()=>[e.createVNode(e.unref(C.ElInput),{modelValue:n.slide.pathology_number,"onUpdate:modelValue":a[1]||(a[1]=d=>n.slide.pathology_number=d),placeholder:e.unref(l)("输入病理号"),clearable:""},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),e.createVNode(e.unref(C.ElFormItem),{label:e.unref(l)("蜡块号")},{default:e.withCtx(()=>[e.createVNode(e.unref(C.ElInput),{modelValue:n.slide.paraffin_block_number,"onUpdate:modelValue":a[2]||(a[2]=d=>n.slide.paraffin_block_number=d),placeholder:e.unref(l)("输入蜡块号"),clearable:""},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),n.slide.slide_id?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(e.unref(C.ElFormItem),{key:0,label:e.unref(l)("试剂")},{default:e.withCtx(()=>[e.createVNode(e.unref(C.ElInput),{modelValue:n.slide.reagent,"onUpdate:modelValue":a[3]||(a[3]=d=>n.slide.reagent=d),placeholder:e.unref(l)("输入试剂"),clearable:""},null,8,["modelValue","placeholder"])]),_:1},8,["label"]))]),_:1})]),_:1},8,["modelValue","title"])]))}}),Ut=j(qt,[["__scopeId","data-v-7397de48"]]);function Kt(u,t){const l=e.ref(1),o=e.ref(null),y=e.ref(null);function f(){u.value.viewer.addHandler("canvas-drag",i=>{o.value||(o.value=i.position)}),u.value.viewer.addHandler("canvas-drag-end",i=>{if(l.value!==1){y.value=i.position;const v=u.value.viewer.viewport.containerSize.x,g=u.value.viewer.viewport.containerSize.y,h=(y.value.x-o.value.x)/(v*t.value)*(l.value-1),n=(y.value.y-o.value.y)/(g*t.value)*(l.value-1),a=u.value.viewer.viewport.getCenter(),d=new A.OpenSeadragon.Point(a.x-h,a.y-n);u.value.viewer.viewport.panTo(d),o.value=null}})}function c({name:i,value:v}){i==="ratio"&&(l.value=v/1)}return{moveEvent:f,fastMove:c}}function jt(u,t,l,o,y){const f=e.ref(void 0),c=e.ref([]);e.watch(()=>u.aiLabelList,h);function i(){l.value.$on(A.KfbView.events.EVENT_END_PAINTING,v("add")),l.value.$on(A.KfbView.events.EVENT_AREA_MOVE_END,v("move")),l.value.$on(A.KfbView.events.EVENT_ADD_POLYGON_POINT,v("add-point")),l.value.$on(A.KfbView.events.EVENT_DELETE_POLYGON_POINT,v("delete-point")),l.value.$on(A.KfbView.events.EVENT_DELETE_LABEL,v("delete")),l.value.$on(A.KfbView.events.EVENT_SELECT_LABEL,d=>{var s,p,w,k;f.value=d,(((s=f.value)==null?void 0:s.subType)||((w=(p=f.value)==null?void 0:p.__data__)==null?void 0:w.subType))==="voice"&&((k=f.value)!=null&&k.src)&&new Audio(f.value.src).play(),t("tool","select-label",f.value)}),l.value.$on(A.KfbView.events.EVENT_CANCEL_SELECT_LABEL,()=>{f.value=void 0,t("tool","cancel-select-label",f.value)}),v("list")()}function v(d){return r=>g(d,r)}function g(d,r){var s;if(d==="add"&&r&&((r==null?void 0:r.subType)||((s=r==null?void 0:r.__data__)==null?void 0:s.subType))==="voice")o(r);else return u.labelHandle(d,u.slide,r).then(p=>{c.value=p,h()}).catch(()=>{h()})}function h(){var d;if((d=l.value)!=null&&d.initLabelList){const r=[...c.value,...u.aiLabelList||[]];r.find(({id:s})=>{var p;return s===((p=f.value)==null?void 0:p.id)})||(f.value=void 0),l.value.initLabelList(r)}}function n(d,r){var p;f.value&&(f.value.select=!1,f.value=void 0);const s=(l.value.labelList||[]).findIndex(w=>w.id===d.id);if(s>-1){f.value=(p=l.value.labelList)==null?void 0:p[s],f.value.select=!0;const w=l.value.area.getCenterPoint(d.region);l.value.area.moveToLabel(w)}r&&y(r)}function a(d){return u.labelHandle("add",u.slide,d).then(r=>{c.value=r,h()}).catch(()=>{h()})}return{currentLabel:f,localLabelList:c,initLabel:i,jumpToLabel:n,reloadLabelList:h,eventHandel:v,addHandle:a}}function Ot(){function u(t,l){t.save(),t.strokeStyle="rgba(0,0,0,0)",t.miterLimit=4,t.font="15px",t.fillStyle=l,t.font="15px",t.scale(.02734375,.02734375),t.save(),t.font="15px",t.beginPath(),t.moveTo(512,427.023),t.moveTo(422,427.023),t.translate(512,427.023),t.rotate(0),t.arc(0,0,90,3.141592653589793,6.283185307179586,!0),t.rotate(0),t.translate(-512,-427.023),t.translate(512,427.023),t.rotate(0),t.arc(0,0,90,0,3.141592653589793,!0),t.rotate(0),t.translate(-512,-427.023),t.fill(),t.stroke(),t.restore(),t.save(),t.font="15px",t.beginPath(),t.moveTo(512,910.402),t.bezierCurveTo(492.86,910.402,474.51800000000003,904.548,458.95799999999997,893.4730000000001),t.bezierCurveTo(444.895,883.4630000000001,434.032,869.8770000000001,427.36899999999997,854.013),t.lineTo(255.043,585.177),t.lineTo(254.889,584.927),t.bezierCurveTo(225.522,537.209,210,482.605,210,427.021),t.bezierCurveTo(210,346.35400000000004,241.414,270.515,298.454,213.47500000000002),t.bezierCurveTo(355.494,156.43500000000006,431.333,125.021,512,125.021),t.bezierCurveTo(592.6669999999999,125.021,668.506,156.435,725.546,213.475),t.bezierCurveTo(782.587,270.515,814,346.354,814,427.021),t.bezierCurveTo(814,482.87,798.345,537.692,768.726,585.56),t.lineTo(768.462,585.9789999999999),t.lineTo(596.381,854.6949999999999),t.bezierCurveTo(589.626,870.4209999999999,578.721,883.871,564.677,893.7499999999999),t.bezierCurveTo(549.192,904.6449999999999,530.977,910.4019999999999,512,910.4019999999999),t.closePath(),t.moveTo(309.246,551.141),t.lineTo(484.74,824.9209999999999),t.lineTo(485.934,828.1179999999999),t.bezierCurveTo(490.083,839.2249999999999,500.31500000000005,846.4019999999999,512,846.4019999999999),t.bezierCurveTo(523.584,846.4019999999999,533.791,839.3309999999999,538.004,828.387),t.lineTo(539.169,825.3589999999999),t.lineTo(714.43,551.678),t.bezierCurveTo(737.701,513.983,750,470.884,750,427.021),t.bezierCurveTo(750,363.449,725.244,303.682,680.2909999999999,258.72900000000004),t.bezierCurveTo(635.3389999999999,213.77800000000005,575.5719999999999,189.02100000000004,511.99999999999994,189.02100000000004),t.bezierCurveTo(448.428,189.02100000000004,388.66099999999994,213.77700000000004,343.70799999999997,258.72900000000004),t.bezierCurveTo(298.755,303.68100000000004,274,363.449,274,427.021),t.bezierCurveTo(274,470.661,286.186,513.573,309.246,551.1410000000001),t.closePath(),t.fill(),t.stroke(),t.restore(),t.restore()}return{drawDot:u}}function Gt(u,t){const{t:l}=K(),o=e.ref(!1),y=e.ref();let f=null;const c=e.ref(!1),i=e.ref(0);let v=0;const g=e.ref([]),h=e.ref(void 0);let n=!1;function a(m,V){m.save(),m.strokeStyle="rgba(0,0,0,0)",m.miterLimit=4,m.font="15px ''",m.fillStyle=V,m.font=" 15px ''",m.scale(.03125,.03125),m.save(),m.font=" 15px ''",m.beginPath(),m.moveTo(515.041727,670.617766),m.bezierCurveTo(606.625894,670.617766,681.137374,596.113511,681.137374,504.52212),m.lineTo(681.137374,229.350568),m.bezierCurveTo(681.137374,137.76640100000003,606.625894,63.254920999999996,515.041727,63.254920999999996),m.bezierCurveTo(423.44311000000005,63.254920999999996,348.93885500000005,137.766401,348.93885600000004,229.350568),m.lineTo(348.93885600000004,504.52212),m.bezierCurveTo(348.93885600000004,596.113512,423.44311100000004,670.617767,515.041727,670.617766),m.closePath(),m.fill(),m.stroke(),m.restore(),m.save(),m.font=" 15px ''",m.beginPath(),m.moveTo(801.643237,874.001665),m.lineTo(558.391759,874.001665),m.lineTo(558.391759,828.578057),m.bezierCurveTo(719.899527,807.264291,844.993269,668.7898399999999,844.993269,501.55986699999994),m.translate(801.643237,501.55986699999994),m.rotate(0),m.arc(0,0,43.350032,0,3.141592653589793,!0),m.rotate(0),m.translate(-801.643237,-501.55986699999994),m.bezierCurveTo(758.2932050000001,635.684865,649.166725,744.811345,515.0345020000001,744.811346),m.bezierCurveTo(380.9095040000001,744.811346,271.79024900000013,635.6848659999999,271.79024900000013,501.55986699999994),m.translate(228.44021750000013,501.5664510740879),m.rotate(0),m.arc(0,0,43.350032,-.00015188164315591997,-3.1414407719461273,!0),m.rotate(0),m.translate(-228.44021750000013,-501.5664510740879),m.bezierCurveTo(185.09018600000013,668.7898389999999,310.1911530000001,807.271516,471.69169500000015,828.578057),m.lineTo(471.69169500000015,874.001665),m.lineTo(228.440217,874.001665),m.translate(228.440217,917.3516970000001),m.rotate(0),m.arc(0,0,43.350032,-1.5707963267948966,1.5707963267948966,!0),m.rotate(0),m.translate(-228.440217,-917.3516970000001),m.lineTo(801.643237,960.701729),m.translate(801.643237,917.3516970000001),m.rotate(0),m.arc(0,0,43.350032,1.5707963267948966,4.71238898038469,!0),m.rotate(0),m.translate(-801.643237,-917.3516970000001),m.closePath(),m.fill(),m.stroke(),m.restore(),m.restore()}function d(){return J(this,null,function*(){try{y.value=yield navigator.mediaDevices.getUserMedia({audio:!0}),f=new MediaRecorder(y.value),g.value=[],f.addEventListener("dataavailable",m=>{g.value.push(m.data)}),f.addEventListener("stop",()=>J(this,null,function*(){if(h.value){const m=new Blob(g.value,{type:u.audioType||"audio/wav"});h.value.src=URL.createObjectURL(m)}c.value=!1,n&&(yield k())})),f.start(),c.value=!0,v=window.setInterval(()=>{i.value++},1e3)}catch(m){C.ElMessage.error(l("麦克风启用失败,请确认是否开启麦克风权限"))}})}function r(){y.value&&f?(f.stop(),y.value.getTracks().forEach(m=>m.stop()),f=null,y.value=void 0):(f=null,y.value=void 0),c.value=!1,v&&(clearInterval(v),v=0),i.value=0}function s(m){o.value=!0,h.value=m,g.value=[],n=!1}function p(){c.value&&r(),o.value=!1,c.value=!1,n=!1}function w(){return J(this,null,function*(){if(!c.value&&!g.value.length){C.ElMessage.error(l("请先录音"));return}c.value&&r(),c.value=!1,n=!0,g.value.length&&(yield k()),o.value=!1})}function k(){return J(this,null,function*(){if(u.uploadHandle&&h.value){const m=C.ElLoading.service({text:l("录音上传中")}),V=new Blob(g.value,{type:u.audioType||"audio/wav"});g.value=[];try{yield u.uploadHandle(u.slide,h.value,V).then(N=>{h.value.src=N}),m.close(),t(h.value)}catch(N){m.close()}}})}return{voiceVisible:o,voiceForm:h,recordTime:i,isRecording:c,drawVoice:a,startRecording:d,stopRecording:r,initVoice:s,cancelRecord:p,confirmRecord:w}}function Wt(u,t){const l=e.ref([]),o=e.ref(0),y=e.ref(!1);let f=null;e.watch(()=>{var a;return(a=u.hotmap)==null?void 0:a.enable},()=>{var a,d;if((d=(a=t.value)==null?void 0:a.viewer)!=null&&d.world){o.value=0;const r=t.value.viewer.world.getItemAt(0);r&&(r.tilesMatrix={},r.draw())}}),e.onMounted(()=>{window.addEventListener("mousemove",v),window.addEventListener("mouseup",h)}),e.onBeforeUnmount(()=>{window.removeEventListener("mousemove",v),window.removeEventListener("mouseup",h)});function c(a,d,r){var p,w,k,m,V,N;const s=W($({},d),{file:(p=u.hotmap)==null?void 0:p.file});if((w=u.hotmap)!=null&&w.info){if(r[d.x+"_"+d.y+"_"+Number(d.scale)]){if(((k=u.hotmap)==null?void 0:k.type)==="switch")return u.tileHandle(s);if(((m=u.hotmap)==null?void 0:m.type)==="drag")return i(a,s),a}}else return((V=u.hotmap)==null?void 0:V.type)==="switch"?u.tileHandle(s):(((N=u.hotmap)==null?void 0:N.type)==="drag"&&i(a,s),a)}function i(a,d){const r=l.value.find(s=>s.url===a)||{url:a,x:d.x,y:d.y,img:void 0,load:""};if(!(r!=null&&r.img)&&(l.value.push(r),r.load!=="success")){const s=new Image;s.src=u.tileHandle(d),s.onload=()=>{r.load="success"},r.img=s}}function v(a){y.value&&f&&(o.value+=a.x-f.x,o.value<0?o.value=0:o.value>t.value.$options.width&&(o.value=t.value.$options.width,y.value=!1),t.value.viewer.forceRedraw()),f={x:a.x,y:a.y}}function g(a){const{x:d,y:r}=a;y.value=!0,f={x:d,y:r}}function h(){y.value=!1,f=null}function n(a){const{context:d,sourceWidth:r,sourceHeight:s,position:p,size:w,initRendered:k,tile:m,pixelDensityRatio:V}=a,N=m.getUrl(),E=o.value*V,M=p.original.x;if(M<E&&M+w.x>E){const H=E-M,O=w.x-H,F=l.value.find(X=>X.url===N),Y=(F==null?void 0:F.load)==="success"?F.img:k.canvas;d.drawImage(Y,0,0,r*H/w.x,s,p.x,p.y,H,w.y),d.drawImage(k.canvas,r*H/w.x,0,r*O/w.x,s,p.x+H,p.y,O,w.y)}else if(M+w.x<=E){const H=l.value.find(F=>F.url===N),O=(H==null?void 0:H.load)==="success"?H.img:k.canvas;d.drawImage(O,0,0,r,s,p.x,p.y,w.x,w.y)}else M>=E&&d.drawImage(k.canvas,0,0,r,s,p.x,p.y,w.x,w.y)}return{getHotmapUrl:c,hotmapImgs:l,handlerImage:n,hotmapLine:o,lineMouseDown:g}}function Zt(u,t,l){const o=e.getCurrentInstance(),y=e.ref(!1),f=new BroadcastChannel("sync_kfb_view");f.onmessage=n=>{const a=n.data;g(a)},e.onMounted(()=>{var n,a,d;(n=l.value)==null||n.addEventListener("mouseenter",c),(a=l.value)==null||a.addEventListener("mousemove",c),(d=l.value)==null||d.addEventListener("mouseleave",i)}),e.onBeforeUnmount(()=>{var n,a,d;(n=l.value)==null||n.removeEventListener("mouseenter",c),(a=l.value)==null||a.removeEventListener("mousemove",c),(d=l.value)==null||d.removeEventListener("mouseleave",i),f.close()});function c(){y.value=!0}function i(){y.value=!1}function v(){let n;t.value.viewer.addHandler("pan",a=>{var s,p,w,k;if(!n){n=(p=(s=a.center)==null?void 0:s.clone)==null?void 0:p.call(s);return}const d=a.center,r=(w=d==null?void 0:d.minus)==null?void 0:w.call(d,n);n=(k=d==null?void 0:d.clone)==null?void 0:k.call(d),u.syncPosition&&h({position:r,type:"sync_position"})}),t.value.viewer.addHandler("zoom",a=>{u.syncZoom&&h({zoom:a.zoom,type:"sync_zoom"})}),t.value.viewer.addHandler("animation-finish",()=>{var r;if(u.syncZoom&&h({zoom:t.value.viewer.viewport.getZoom(!0),type:"sync_zoom"}),!n)return;const a=t.value.viewer.viewport.getCenter(!0),d=(r=a==null?void 0:a.minus)==null?void 0:r.call(a,n);n=void 0,u.syncPosition&&h({position:d,type:"sync_position"})})}function g(n){n.uuid&&n.type==="sync_position"&&n.uuid!==(o==null?void 0:o.uid)?t.value&&t.value.viewer.viewport.panBy(n.position,!0):n.uuid&&n.type==="sync_zoom"&&n.uuid!==(o==null?void 0:o.uid)&&t.value&&t.value.viewer.viewport.zoomTo(n.zoom)}function h(n){var a;y.value&&f.postMessage(W($({},n),{uuid:o==null?void 0:o.uid,fileName:(a=u.slide)==null?void 0:a.file}))}return{initSync:v}}const Yt={class:"hzzt-kfb-keyword flex wrap"},Xt=["onMouseenter"],Qt=e.defineComponent({__name:"KfbKeyword",setup(u){const t=e.ref([{code:"Q",icon:"zoomIn"},{code:"W",icon:"arrowUp"},{code:"E",icon:"zoomOut"},{code:"A",icon:"arrowLeft"},{code:"S",icon:"arrowDown"},{code:"D",icon:"arrowRight"}]),l=e.inject("kfbView",e.ref({}));let o=null;function y(c,i){c.preventDefault(),o&&clearTimeout(o),o=setInterval(()=>{i==="E"&&(l.value.viewer.viewport.zoomBy(1.1),l.value.viewer.viewport.applyConstraints()),i==="Q"&&(l.value.viewer.viewport.zoomBy(.9),l.value.viewer.viewport.applyConstraints()),i==="W"&&(l.value.viewer.viewport.panBy(l.value.viewer.viewport.deltaPointsFromPixels(new A.OpenSeadragon.Point(0,-40))),l.value.viewer.viewport.applyConstraints()),i==="S"&&(l.value.viewer.viewport.panBy(l.value.viewer.viewport.deltaPointsFromPixels(new A.OpenSeadragon.Point(0,40))),l.value.viewer.viewport.applyConstraints()),i==="A"&&(l.value.viewer.viewport.panBy(l.value.viewer.viewport.deltaPointsFromPixels(new A.OpenSeadragon.Point(-40,0))),l.value.viewer.viewport.applyConstraints()),i==="D"&&(l.value.viewer.viewport.panBy(l.value.viewer.viewport.deltaPointsFromPixels(new A.OpenSeadragon.Point(40,0))),l.value.viewer.viewport.applyConstraints())},120)}function f(){o&&(clearInterval(o),o=null)}return e.onBeforeUnmount(()=>{clearTimeout(o)}),(c,i)=>(e.openBlock(),e.createElementBlock("div",Yt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.value,v=>(e.openBlock(),e.createElementBlock("div",{key:v.code,class:"hzzt-kfb-keyword__code flex column align-items-center justify-content-center",onMouseenter:g=>y(g,v.code),onMouseleave:f},[e.createElementVNode("p",null,e.toDisplayString(v.code),1),e.createVNode(R,{size:"14",name:v.icon},null,8,["name"])],40,Xt))),128))]))}}),Jt=j(Qt,[["__scopeId","data-v-c8d940f0"]]);function eo(u,t,l={}){const{panSensitivity:o=.2,zoomSensitivity:y=1.1,damping:f=.6,minThreshold:c=.05}=l;let i=!1,v=null,g=0,h=0,n=!1;const a=()=>{i=document.pointerLockElement===t.value,i||d()},d=()=>{g=0,h=0,v&&(cancelAnimationFrame(v),v=null),n=!1},r=m=>J(this,null,function*(){try{m.key==="l"&&t.value&&(document.pointerLockElement?(document.exitPointerLock(),console.log("鼠标已解锁!")):(yield t.value.requestPointerLock(),console.log("鼠标已锁定!")))}catch(V){console.error("无法锁定鼠标:",V)}}),s=m=>{if(i){m.preventDefault();const V=Math.pow(y,Math.sign(m.deltaY)*-1);u.value.viewer.viewport.zoomBy(V),u.value.viewer.viewport.applyConstraints()}},p=m=>{i&&(g+=m.movementX*o,h+=m.movementY*o,!n&&(Math.abs(g)>1||Math.abs(h)>1)&&(n=!0,v=requestAnimationFrame(w)))},w=()=>{const m=u.value.viewer.viewport;if(Math.abs(g)>c||Math.abs(h)>c){const V=m.deltaPointsFromPixels(new A.OpenSeadragon.Point(g,h));m.panBy(V),m.applyConstraints()}g*=f,h*=f,Math.abs(g)>c||Math.abs(h)>c?v=requestAnimationFrame(w):d()},k=()=>{i&&document.exitPointerLock()};return e.onMounted(()=>{var m;(m=t.value)==null||m.addEventListener("keydown",r),document.addEventListener("wheel",s,{passive:!1}),document.addEventListener("click",k),document.addEventListener("mousemove",p),document.addEventListener("pointerlockchange",a)}),e.onBeforeUnmount(()=>{var m;(m=t.value)==null||m.removeEventListener("keydown",r),document.removeEventListener("click",k),document.removeEventListener("wheel",s),document.removeEventListener("mousemove",p),document.removeEventListener("pointerlockchange",a),d()}),{setConfig:m=>{Object.assign(l,m)}}}const to=e.defineComponent({__name:"KfbLevel",props:e.mergeModels({slides:{default:()=>[]}},{"model-value":{default:0},"model-valueModifiers":{}}),emits:["update:model-value"],setup(u){const t=u,l=e.useModel(u,"model-value"),o=e.inject("kfbView",e.ref({})),y=e.computed(()=>Array.from(new Array(t.slides.length+1)).map((c,i)=>i));function f(){const c=o.value.viewer.world.getItemAt(0),i=Object.keys(c.tilesMatrix);i.forEach((v,g)=>{g>i.length-4&&(c.tilesMatrix[v]={})}),c.draw()}return(c,i)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["hzzt-kfb-level flex column align-items-center",c.slides.length>5?"hzzt-kfb-level--large":""])},[e.createVNode(R,{name:"level",size:"24",class:"margin-b-4 margin-t-2"}),e.createVNode(e.unref(C.ElSlider),{modelValue:l.value,"onUpdate:modelValue":i[0]||(i[0]=v=>l.value=v),vertical:"",min:y.value[0],step:1,max:y.value[y.value.length-1],"show-stops":"","show-tooltip":!0,placement:"left",height:c.slides.length>5?"180px":"130px",onInput:f},null,8,["modelValue","min","max","height"])],2))}}),oo={key:0,class:"flex hzzt-kfb-channel"},no=["onClick"],lo=e.defineComponent({__name:"KfbChannel",props:e.mergeModels({info:{}},{"model-value":{default:()=>[]},"model-valueModifiers":{}}),emits:e.mergeModels(["load"],["update:model-value"]),setup(u,{emit:t}){const l=u,o=t,y=e.useModel(u,"model-value"),f=[{key:"DAPI",color:"#4A6CF7"},{key:"480",color:"#00BFFF"},{key:"520",color:"#32CD32"},{key:"570",color:"#FFAA33"},{key:"620",color:"#FF6347"},{key:"670",color:"#DC143C"},{key:"780",color:"#4B0082"}],c=e.computed(()=>{var v;return(((v=l.info)==null?void 0:v.channel)||[]).map(g=>{const h=f.find(n=>n.key===g.eqt_num);return{label:g.eqt_num,color:g.r?`rgb(${g.r}, ${g.g}, ${g.b})`:h==null?void 0:h.color}})});function i(v){y.value.includes(v)?y.value=y.value.filter(g=>g!==v):y.value.push(v),o("load")}return(v,g)=>c.value.length>0?(e.openBlock(),e.createElementBlock("div",oo,[e.createVNode(R,{name:"channel",size:"32"}),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.value,h=>(e.openBlock(),e.createElementBlock("div",{key:h.label,style:e.normalizeStyle({background:h.color}),class:e.normalizeClass(["hzzt-kfb-channel__box",y.value.includes(h.label)?"":"hzzt-kfb-channel__box--unactive"]),onClick:n=>i(h.label)},e.toDisplayString(h.label),15,no))),128))])):e.createCommentVNode("",!0)}}),ao={class:"flex align-items-center justify-content-between"},ro={class:"hzzt-kfb-title"},io={class:"hzzt-kfb-annotation__container flex-1"},so=["onClick"],co=e.defineComponent({__name:"KfbAnnotation",props:e.mergeModels({annotation:{},annotations:{}},{expand:{type:Boolean},expandModifiers:{}}),emits:e.mergeModels(["select"],["update:expand"]),setup(u,{emit:t}){const l=e.useModel(u,"expand"),o=t,{t:y}=K();function f(i){const v=i.subType||i.tool||"";return`mark${v.substring(0,1).toLocaleUpperCase()}${v.substring(1)}`}function c(i){o("select",i)}return(i,v)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["hzzt-kfb-annotation flex column",l.value?"hzzt-kfb-annotation--expand":""])},[e.createElementVNode("div",ao,[e.withDirectives(e.createElementVNode("div",ro,[e.createElementVNode("span",null,e.toDisplayString(e.unref(y)("标注列表")),1)],512),[[e.vShow,l.value]]),e.createVNode(R,{class:"hzzt-kfb-annotation__icon",name:l.value?"expandLeft":"expandRight",onClick:v[0]||(v[0]=g=>l.value=!l.value)},null,8,["name"])]),e.withDirectives(e.createElementVNode("div",io,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.annotations,(g,h)=>{var n;return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["hzzt-kfb-annotation__item",((n=i.annotation)==null?void 0:n.id)===g.id?"hzzt-kfb-annotation__item--active":""]),key:h,onClick:a=>c(g)},[e.createVNode(R,{size:"16",name:f(g)},null,8,["name"]),e.createElementVNode("span",null,e.toDisplayString(e.unref(y)("标注"))+e.toDisplayString(h+1),1)],10,so)}),128))],512),[[e.vShow,l.value]])],2))}}),uo=j(co,[["__scopeId","data-v-bfc56a3e"]]),fo=["element-loading-text"],mo={key:1,class:"hzzt-kfb-view__main flex align-items-center justify-content-center"},vo={class:"hzzt-kfb-view__filter",height:"0",width:"0"},po={id:"colorMatrixFilter"},ho=["values"],go=["values"],wo=["exponent"],yo=["exponent"],ko=["exponent"],bo={class:"flex nowrap justify-content-center overflow-hidden"},_o=["src"],Co=["src"],Vo={class:"flex-1"},Eo={class:"flex-1"},zo={class:"flex-1"},No={class:"flex-1"},Bo={class:"flex-1"},xo={class:"flex-1"},To=["src"],So={key:2,class:"margin-l-2"},Z=e.defineComponent({name:"HzztKfbView",__name:"index",props:{slide:{},fileHandle:{},labelHandle:{},tileHandle:{},navigatorHandle:{},pathologyHandle:{},uploadHandle:{},options:{},labelDrawing:{},process:{default:()=>$({},pe)},microscope:{default:()=>$({},se)},menus:{},aiLabelList:{},hotmap:{},syncPosition:{type:Boolean},syncZoom:{type:Boolean},audioType:{}},emits:["tool"],setup(u,{expose:t,emit:l}){const o=u,y=l,{t:f,locale:c}=K(),i=e.ref(),v=e.ref(),g=e.ref(),h=e.ref(!1),n=e.ref({}),a=e.ref(!1),d=e.ref(0),r=e.ref(0),s=e.ref(0),p=e.ref([]),w=e.ref({width:0,height:0,fileNum:0,scanScale:1,fileName:"",ratiomap:{}}),k=e.inject("show-kfb-label",e.ref(!0)),m=e.inject("show-keyboard",e.ref(!1)),V=e.inject("hidden-all-label",e.ref(!1)),N=e.ref(!1),E=C.ElLoading.directive;e.watch(()=>{var b;return(b=o.slide)==null?void 0:b.file},()=>{We(),setTimeout(()=>{ye()},100)}),e.onMounted(()=>{ye()});const{imageProcess:M,matrixValues:H,saturateValues:O,forceRedraw:F}=yt(o),{tailorEvent:Y,shotScreen:X}=kt(y,n),{moveEvent:ce,fastMove:ue}=Kt(n,r),{initSync:de}=Zt(o,n,i);eo(n,i);const{drawDot:fe}=Ot(),{voiceVisible:te,voiceForm:_,drawVoice:B,recordTime:S,isRecording:U,startRecording:oe,stopRecording:$e,initVoice:Pe,cancelRecord:Re,confirmRecord:Me}=Gt(o,Fe),{currentLabel:me,localLabelList:he,initLabel:De,jumpToLabel:ge,reloadLabelList:Ie,eventHandel:Ae,addHandle:He}=jt(o,y,n,Pe,ve);function Fe(b){He(b)}const{getHotmapUrl:qe,handlerImage:Ue,hotmapLine:Ke,lineMouseDown:we,hotmapImgs:je}=Wt(o,n);function ye(){var b;(b=o.slide)!=null&&b.file&&o.fileHandle&&(a.value||(a.value=!0,o.fileHandle(o.slide).then(z=>{var D,q,G,L;w.value=z,p.value=(((D=w.value)==null?void 0:D.channel)||[]).map(T=>T.eqt_num),n.value=new A.KfbView($({el:v.value,fileName:(q=o.slide)==null?void 0:q.file,scale:w.value.scanScale,lang:(c==null?void 0:c.value)==="en-US"?"en":c==null?void 0:c.value,navigator:{style:"left: 0;bottom: 0",thumbnail:w.value.thumbnailImg,width:200,height:180},grid:{show:!1,ruler:!1,pxConversion:!0},thumb:{bgColor:"rgba(0,0,0,0)"},graduation:{show:!0,right:120,bottom:(L=(G=w.value)==null?void 0:G.channel)!=null&&L.length?120:30,tick:{number:3,height:8}},pxConversion:{units:["um","mm"],binary:1e3,imageCapRes:w.value.imageCapRes||w.value.scanResolution||1},openSeadragonOptions:{maxZoomLevel:w.value.scanScale*20,pixelsPerArrowPress:200,animationTime:0,tileSources:ke()},tileDrawing:Ue,label:{drawing:(T,x,Q)=>{var ae;if(x!=null&&x.custom){const I=T.getContext("2d");I.save(),I.beginPath();const ne=(x==null?void 0:x.subType)||((ae=x==null?void 0:x.__data__)==null?void 0:ae.subType);ne==="count"?(I.translate(Q.x-14,Q.y-22),fe(I,(x==null?void 0:x.strokeStyle)||"")):ne==="voice"?(I.translate(Q.x-16,Q.y-18),B(I,(x==null?void 0:x.strokeStyle)||"")):o.labelDrawing&&o.labelDrawing(I,x),I.restore()}}}},o.options||{})),n.value.viewer.drawer.canvas.style.filter="url(#colorMatrixFilter)",De(),Ge(),de()}).finally(()=>{a.value=!1,V.value&&(Ve({show:!1,ruler:!1}),Ee({show:!1}),setTimeout(()=>{ze(!1)},100))})))}function Oe(){const b=n.value.viewer;if(b.world){const z=b.world.getItemAt(0),D=b.viewport.getZoom(),q=b.viewport.getCenter();b.world.removeItem(z),b.addTiledImage({tileSource:ke(),success:function(){b.viewport.zoomTo(D),b.viewport.panTo(q)}})}}function ke(){var G,L;const b=w.value.tileWidth||w.value.imageBlockLen||256,z=w.value.tileHeight||w.value.imageBlockLen||256,D={};(G=o.hotmap)!=null&&G.enable&&(((L=o.hotmap)==null?void 0:L.info)||[]).forEach(T=>{D[T[0]/b+"_"+T[1]/z+"_"+T[2]]=!0});let q=10;return Object.keys(w.value.ratiomap).forEach(T=>{const x=w.value.fileNum-Math.sqrt(w.value.scanScale/Number(T));x>0&&(q=q?Math.min(q,x):x)}),{height:w.value.height,width:w.value.width,tileWidth:b,tileHeight:z,minLevel:Math.floor(q||8),getTileUrl:(T,x,Q)=>{var Ne,Be,xe,Te;const ae=T,I={file:((Ne=o.slide)==null?void 0:Ne.file)||"",x,y:Q,scale:"0",level:T,channel:JSON.stringify(p.value)};w.value.fileNum===T?(T=w.value.scanScale,I.scale=T.toFixed(6)):(T=w.value.scanScale/Math.pow(2,w.value.fileNum-T),I.scale=T.toFixed(6)),I.level=ae,I.file=s.value===0?I.file:((xe=(Be=o.slide)==null?void 0:Be.children)==null?void 0:xe[s.value-1])||"";const ne=o.tileHandle(I);return(Te=o.hotmap)!=null&&Te.enable?qe(ne,I,D):ne}}}function Ge(){n.value.viewer.addHandler("rotate",b=>{d.value=b.degrees||0}),n.value.viewer.addHandler("zoom",b=>{const z=n.value.viewer.viewport.viewportToImageZoom(b.zoom||0)*Number(n.value.$options.scale);r.value=Number(z.toFixed(2))}),n.value.$on(A.KfbView.events.EVENT_NAVIGATOR_VESTIGE,b=>{o.navigatorHandle&&o.navigatorHandle("add",o.slide,b)}),o.navigatorHandle&&o.navigatorHandle("list",o.slide).then(b=>{var z,D;(D=(z=n.value.navigator)==null?void 0:z.drawPointList)==null||D.call(z,b)}),Y(),ce()}function We(){var b;(b=n.value)!=null&&b.destroy&&(n.value.destroy(),n.value={},w.value={width:0,height:0,fileNum:0,scanScale:1,fileName:"",ratiomap:{}},je.value=[],p.value=[],r.value=0,d.value=0,s.value=0)}function be(b,z){b==="annotate"?_e(z):b==="tailor"?X(z):b==="info"?h.value=!0:b==="flip"?Ce():b==="delete"?Ae("delete")(me.value):y("tool",b,z)}function _e(b){b.tool==="Voice"&&(b.subType="voice",b.tool="Dot",b.custom=!0),n.value.board.startDraw(b)}function Ze(){n.value.board.endDraw()}function Ce(){n.value.viewer.viewport.toggleFlip()}function Ye(b){var z,D;(D=(z=g.value)==null?void 0:z.scopeChange)==null||D.call(z,b)}function Xe(){h.value=!0}function Ve(b){n.value.grid.updated(b)}function Ee(b){n.value.graduation.updated(b)}function ze(b){n.value.navigator.element.style.display=b?"flex":"none"}function ve(b){const z=n.value.viewer.viewport.imageToViewportZoom(Number(b/n.value.$options.scale));n.value.viewer.viewport.zoomTo(z)}function Qe(b,z){n.value.area&&(n.value.area.moveToLabel(n.value.viewer.viewport.imageToViewportCoordinates(b.x+b.width/2,b.y+b.height/2)),ve(z))}return e.provide("kfbView",n),e.provide("currentLabel",me),t({kfbView:n,degrees:d,zoom:r,forceRedraw:F,toggleFlip:Ce,startDraw:_e,endDraw:Ze,shotScreen:X,info:Xe,scopeChange:Ye,updateGrid:Ve,updateGraduation:Ee,updateNavigator:ze,fastMove:ue,zoomTo:ve,jumpToLabel:ge,jumpToPosition:Qe,reloadLabelList:Ie}),(b,z)=>{var D,q,G;return e.openBlock(),e.createElementBlock("div",{ref_key:"mainKfbViewRef",ref:i,class:"hzzt-kfb-view"},[b.slide.file?e.withDirectives((e.openBlock(),e.createElementBlock("div",{key:0,ref_key:"kfbViewMainRef",ref:v,class:"hzzt-kfb-view__main","element-loading-text":e.unref(f)("加载中"),"element-loading-background":"rgba(0, 0, 0, 0.8)"},null,8,fo)),[[e.unref(E),a.value]]):(e.openBlock(),e.createElementBlock("div",mo,z[5]||(z[5]=[e.createElementVNode("img",{style:{width:"50%"},src:ie},null,-1)]))),b.slide.analysis&&b.slide.analysis.result?(e.openBlock(),e.createBlock(e.unref(C.ElTag),{key:2,class:"hzzt-kfb-view__tag"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(b.slide.analysis.result),1)]),_:1})):e.createCommentVNode("",!0),(e.openBlock(),e.createElementBlock("svg",vo,[e.createElementVNode("filter",po,[e.createElementVNode("feColorMatrix",{values:e.unref(H),type:"matrix"},null,8,ho),e.createElementVNode("feColorMatrix",{values:e.unref(O),type:"saturate"},null,8,go),e.createElementVNode("feComponentTransfer",null,[e.createElementVNode("feFuncR",{id:"feFuncR",type:"gamma",exponent:e.unref(M).ga,amplitude:"1",offset:"0"},null,8,wo),e.createElementVNode("feFuncG",{id:"feFuncG",type:"gamma",exponent:e.unref(M).ga,amplitude:"1",offset:"0"},null,8,yo),e.createElementVNode("feFuncB",{id:"feFuncB",type:"gamma",exponent:e.unref(M).ga,amplitude:"1",offset:"0"},null,8,ko)])])])),e.createVNode(Tt,{menus:b.menus,onTool:be},null,8,["menus"]),e.createVNode($t,e.mergeProps(b.microscope,{ref_key:"microscopeRef",ref:g}),null,16),e.unref(k)&&b.slide.file?(e.openBlock(),e.createBlock(Ut,{key:3,info:w.value,slide:b.slide,pathologyHandle:b.pathologyHandle,onTool:be},null,8,["info","slide","pathologyHandle"])):e.createCommentVNode("",!0),e.unref(m)?(e.openBlock(),e.createBlock(Jt,{key:4})):e.createCommentVNode("",!0),(D=b.slide.children)!=null&&D.length?(e.openBlock(),e.createBlock(to,{key:5,modelValue:s.value,"onUpdate:modelValue":z[0]||(z[0]=L=>s.value=L),slides:b.slide.children},null,8,["modelValue","slides"])):e.createCommentVNode("",!0),(G=(q=w.value)==null?void 0:q.channel)!=null&&G.length?(e.openBlock(),e.createBlock(lo,{key:6,modelValue:p.value,"onUpdate:modelValue":z[1]||(z[1]=L=>p.value=L),info:w.value,onLoad:Oe},null,8,["modelValue","info"])):e.createCommentVNode("",!0),e.unref(he).length?(e.openBlock(),e.createBlock(uo,{key:7,expand:N.value,"onUpdate:expand":z[2]||(z[2]=L=>N.value=L),style:e.normalizeStyle({top:b.slide.analysis&&b.slide.analysis.result?"24px":"4px;"}),annotation:e.unref(me),annotations:e.unref(he),onSelect:e.unref(ge)},null,8,["expand","style","annotation","annotations","onSelect"])):e.createCommentVNode("",!0),e.createVNode(e.unref(C.ElDialog),{modelValue:h.value,"onUpdate:modelValue":z[3]||(z[3]=L=>h.value=L),"append-to-body":!0,title:e.unref(f)("图像信息"),width:"700px",top:"5vh"},{default:e.withCtx(()=>[e.createVNode(e.unref(C.ElForm),{"label-position":"left"},{default:e.withCtx(()=>[e.createVNode(e.unref(C.ElFormItem),{class:"flex","label-width":"0px"},{default:e.withCtx(()=>[e.createElementVNode("div",bo,[e.createElementVNode("img",{src:w.value.labelImg,style:{height:"180px"}},null,8,_o),e.createElementVNode("img",{src:w.value.previewImg,style:{height:"180px"},class:"flex-1"},null,8,Co)])]),_:1}),e.createVNode(e.unref(C.ElFormItem),{label:e.unref(f)("文件名")},{default:e.withCtx(()=>[e.createElementVNode("span",Vo,e.toDisplayString(w.value.fileName),1)]),_:1},8,["label"]),e.createVNode(e.unref(C.ElFormItem),{label:e.unref(f)("图像像素")},{default:e.withCtx(()=>[e.createElementVNode("span",Eo,e.toDisplayString(w.value.width)+"Pixel - "+e.toDisplayString(w.value.height)+"Pixel",1)]),_:1},8,["label"]),e.createVNode(e.unref(C.ElFormItem),{label:e.unref(f)("扫描倍率")},{default:e.withCtx(()=>[e.createElementVNode("span",zo,e.toDisplayString(w.value.scanScale),1)]),_:1},8,["label"]),e.createVNode(e.unref(C.ElFormItem),{label:e.unref(f)("扫描时刻")},{default:e.withCtx(()=>[e.createElementVNode("span",No,e.toDisplayString(w.value.scanTime),1)]),_:1},8,["label"]),e.createVNode(e.unref(C.ElFormItem),{label:e.unref(f)("扫描时间")},{default:e.withCtx(()=>[e.createElementVNode("span",Bo,e.toDisplayString(w.value.scanDuration||0)+"s",1)]),_:1},8,["label"]),w.value.ext?(e.openBlock(),e.createBlock(e.unref(C.ElFormItem),{key:0,label:e.unref(f)("扫描设备")},{default:e.withCtx(()=>[e.createElementVNode("span",xo,e.toDisplayString(w.value.ext.machineNum||""),1)]),_:1},8,["label"])):e.createCommentVNode("",!0)]),_:1})]),_:1},8,["modelValue","title"]),e.createVNode(e.unref(C.ElDialog),{modelValue:e.unref(te),"onUpdate:modelValue":z[4]||(z[4]=L=>e.isRef(te)?te.value=L:null),"append-to-body":!0,title:e.unref(f)("语音输入"),width:"500px",top:"5vh"},{footer:e.withCtx(()=>[e.createVNode(e.unref(C.ElButton),{onClick:e.unref(Re)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(f)("取消")),1)]),_:1},8,["onClick"]),e.createVNode(e.unref(C.ElButton),{type:"primary",onClick:e.unref(Me)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(f)("确定")),1)]),_:1},8,["onClick"])]),default:e.withCtx(()=>[e.createVNode(e.unref(C.ElForm),{"label-position":"left"},{default:e.withCtx(()=>{var L;return[e.createVNode(e.unref(C.ElFormItem),null,{default:e.withCtx(()=>{var T;return[(T=e.unref(_))!=null&&T.src?(e.openBlock(),e.createElementBlock("audio",{key:0,class:"width-100%",src:e.unref(_).src,controls:"",preload:"auto"},null,8,To)):e.createCommentVNode("",!0)]}),_:1}),(L=e.unref(_))!=null&&L.src?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(e.unref(C.ElFormItem),{key:0},{default:e.withCtx(()=>[e.unref(U)?(e.openBlock(),e.createBlock(e.unref(C.ElButton),{key:1,type:"danger",onClick:e.unref($e)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(f)("结束录音")),1)]),_:1},8,["onClick"])):(e.openBlock(),e.createBlock(e.unref(C.ElButton),{key:0,type:"primary",onClick:e.unref(oe)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(f)("开始录音")),1)]),_:1},8,["onClick"])),e.unref(U)?(e.openBlock(),e.createElementBlock("span",So,e.toDisplayString(e.unref(f)("录音时长"))+":"+e.toDisplayString(e.unref(S))+"s",1)):e.createCommentVNode("",!0)]),_:1}))]}),_:1})]),_:1},8,["modelValue","title"]),b.hotmap&&b.hotmap.enable&&b.hotmap.type!=="switch"?(e.openBlock(),e.createElementBlock("div",{key:8,class:"hzzt-kfb-view__hotmap",style:e.normalizeStyle({left:e.unref(Ke)+"px"})},[e.createVNode(e.unref(C.ElIcon),{class:"icon-caret-left",size:"30",onMousedown:e.unref(we)},{default:e.withCtx(()=>z[6]||(z[6]=[e.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[e.createElementVNode("path",{fill:"currentColor",d:"M672 192 288 511.936 672 832z"})],-1)])),_:1,__:[6]},8,["onMousedown"]),e.createVNode(e.unref(C.ElIcon),{class:"icon-caret-right",size:"30",onMousedown:e.unref(we)},{default:e.withCtx(()=>z[7]||(z[7]=[e.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[e.createElementVNode("path",{fill:"currentColor",d:"M384 192v640l384-320.064z"})],-1)])),_:1,__:[7]},8,["onMousedown"])],4)):e.createCommentVNode("",!0),e.renderSlot(b.$slots,"default")],512)}}});function Lo(u,t){var h,n;const l=e.ref(!!((h=u.ai)!=null&&h.default)),o=e.ref(!!((n=u.ai)!=null&&n.default)),y=e.ref([]),f=e.computed(()=>{var a,d,r,s;return(d=(a=t.value)==null?void 0:a.analysis)!=null&&d.id?((s=(r=t.value)==null?void 0:r.analysis)==null?void 0:s.class)||"auto":""});e.watch(()=>{var a;return(a=u.ai)==null?void 0:a.default},a=>{l.value=!!a,o.value=!!a}),e.watch(()=>{var a;return(a=t==null?void 0:t.value)==null?void 0:a.id},c),e.onMounted(()=>{var a,d;l.value=!!((a=u.ai)!=null&&a.default),o.value=!!((d=u.ai)!=null&&d.default),c()});function c(){var a;(a=t.value)!=null&&a.id&&f.value?l.value||o.value?i():y.value=[]:y.value=[]}function i(){u.ai.handle(f.value,t.value).then(a=>{y.value=a}).catch(()=>{y.value=[],f.value==="IQC"?o.value=!1:l.value=!1})}function v(){o.value=!1,c()}function g(){l.value=!1,c()}return{analysisClass:f,aiLabelList:y,enableAi:l,enableIqc:o,toggleIqc:g,toggleAi:v}}const $o=["src","fit"],Po=["src","fit"],re=e.defineComponent({name:"KfbImage",__name:"KfbImage",props:{src:{type:String,required:!0,default:""},fit:{type:String,validator:u=>["","contain","cover","fill","none","scale-down"].includes(u),default:""},retryTimes:{type:Number,default:0},load:{type:Function,default:()=>({})}},setup(u){const t=u;let l=0;const o=e.ref(!1),y=e.reactive({x:0,y:0}),f=e.computed(()=>({top:`${y.y+10}px`,left:`${y.x}px`,transform:"translateY(-50%)",width:`${4*300/3}px`,height:"300px",background:"rgba(0,0,0,0.8)",zIndex:"10000"}));function c(h){const n=h.target;l<t.retryTimes?(n.src=t.src,l++):n.src=ie}function i(h){if(h.target){const s=h.target,p=s.tagName;let w="";if(s.tagName==="IMG"?w=s.src||"":p==="DIV"&&(w=s.children[0].src||""),w.indexOf(ie)>-1)return}const{x:n,y:a}=v(h),d=4*300/3,r=300;y.x=Math.min(Math.max(n,d/2),window.innerWidth-d/2),y.y=Math.min(Math.max(a,r/2),window.innerHeight-r/2),o.value=!0}function v(h){const n=h.target,a=h.offsetX,d=h.offsetY,r=n.clientWidth,s=n.clientHeight;return{x:h.clientX+r-a,y:h.clientY-d+s/2}}function g(){o.value=!1}return(h,n)=>(e.openBlock(),e.createElementBlock("div",{class:"relative",onMouseenter:i,onMouseleave:g},[e.createElementVNode("img",{src:u.src,fit:u.fit,onError:c,style:{height:"100%",width:"100%"}},null,40,$o),(e.openBlock(),e.createBlock(e.Teleport,{to:"body"},[o.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:"fixed hzzt-kfb-img-triangle-left",style:e.normalizeStyle(f.value)},[e.createElementVNode("img",{src:u.src,fit:u.fit,style:{objectFit:"contain",height:"100%",width:"100%"},onMouseenter:n[0]||(n[0]=()=>{o.value=!0}),onMouseleave:g},null,40,Po)],4)):e.createCommentVNode("",!0)]))],32))}}),Ro={},Mo={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"};function Do(u,t){return e.openBlock(),e.createElementBlock("svg",Mo,t[0]||(t[0]=[e.createElementVNode("path",{fill:"currentColor",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"},null,-1)]))}const Io=j(Ro,[["render",Do]]),Ao={},Ho={width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Fo(u,t){return e.openBlock(),e.createElementBlock("svg",Ho,t[0]||(t[0]=[e.createElementVNode("g",{id:"Frame"},[e.createElementVNode("path",{id:"Vector",d:"M5.33333 2.66659H14V3.99992H5.33333V2.66659ZM2 2.33325H4V4.33325H2V2.33325ZM2 6.99992H4V8.99992H2V6.99992ZM2 11.6666H4V13.6666H2V11.6666ZM5.33333 7.33325H14V8.66659H5.33333V7.33325ZM5.33333 11.9999H14V13.3333H5.33333V11.9999Z",fill:"currentColor","fill-opacity":"0.9"})],-1)]))}const qo=j(Ao,[["render",Fo]]),Uo={class:"hzzt-kfb-slides"},Ko={class:"hzzt-kfb-slides__row"},jo={class:"hzzt-kfb-slides__top"},Oo={class:"text-primary"},Go={class:"flex align-items-center"},Wo={key:0},Zo=["data-index","onClick"],Yo={class:"hzzt-kfb-slides__gallery"},Xo=["onClick"],Qo={key:0,class:"hzzt-kfb-slides__read"},Jo=["onClick"],en={key:1,class:"flex column"},tn={class:"hzzt-kfb-slides__header"},on={class:"w-30%"},nn={class:"w-40%"},ln={class:"w-20%"},an=["data-index","onClick"],rn={class:"w-30% flex"},sn={class:"hzzt-kfb-slides__gallery"},cn={key:0,class:"hzzt-kfb-slides__read"},un={class:"w-40% flex"},dn=["onClick"],fn=["onClick"],mn={key:0,class:"flex column py-2"},vn={class:"flex align-items-center justify-content-center"},pn={class:"margin-r-1"},hn={key:0,class:"margin-r-1 margin-l-2"},gn=e.defineComponent({__name:"KfbSlideList",props:{slides:{}},emits:["select","tool"],setup(u,{expose:t,emit:l}){const o=u,y=l,f=e.inject("file-index",{value:0}),c=e.inject("divide",{value:!1}),i=e.inject("sync",{value:!1}),v=e.ref(!1),g=e.ref(),h=e.computed(()=>o.slides.filter(({read:p})=>p)),n=e.computed(()=>o.slides.filter(({check:p})=>p)),{t:a}=K();function d(p){f.value=p,y("select",p)}function r(p){p.check=!p.check}function s(p){var k,m,V;const w=((V=(m=(k=g.value.querySelector('[data-index="0"]'))==null?void 0:k.getBoundingClientRect)==null?void 0:m.call(k))==null?void 0:V.y)||0;g.value.scrollTop=g.value.querySelector(`[data-index="${p}"]`).getBoundingClientRect().y-w}return t({jumpToSlide:s}),(p,w)=>(e.openBlock(),e.createElementBlock("div",Uo,[e.createElementVNode("div",Ko,[e.createElementVNode("div",jo,[e.createElementVNode("span",null,[w[4]||(w[4]=e.createTextVNode("已读:")),e.createElementVNode("span",Oo,e.toDisplayString(h.value.length),1),e.createTextVNode("/"+e.toDisplayString(p.slides.length),1)]),e.createElementVNode("div",Go,[e.createVNode(e.unref(C.ElIcon),{class:"margin-r-2 pointer",size:"16",color:v.value?"#999":"#000",onClick:w[0]||(w[0]=k=>v.value=!v.value)},{default:e.withCtx(()=>[e.createVNode(Io)]),_:1},8,["color"]),e.createVNode(e.unref(C.ElIcon),{class:"pointer",name:"cus-list",size:"16",color:v.value?"#000":"#999",onClick:w[1]||(w[1]=k=>v.value=!v.value)},{default:e.withCtx(()=>[e.createVNode(qo)]),_:1},8,["color"])])]),e.createElementVNode("div",{class:"flex-1 overflow-auto",style:{width:"100%"},ref_key:"slidesRef",ref:g},[v.value?(e.openBlock(),e.createElementBlock("ul",en,[e.createElementVNode("li",tn,[w[5]||(w[5]=e.createElementVNode("div",{class:"w-10%"},null,-1)),e.createElementVNode("div",on,e.toDisplayString(e.unref(a)("缩略图")),1),e.createElementVNode("div",nn,e.toDisplayString(e.unref(a)("切片名")),1),e.createElementVNode("div",ln,e.toDisplayString(e.unref(a)("评分")),1)]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(p.slides,(k,m)=>(e.openBlock(),e.createElementBlock("li",{key:m,"data-index":m,class:"flex align-items-center overflow-hidden",style:e.normalizeStyle({backgroundColor:e.unref(f)===m?"rgba(6, 85, 195, 0.1)":"#fff"}),onClick:V=>d(m)},[e.createElementVNode("div",{class:"w-10% text-center",onClick:e.withModifiers(()=>{},["stop"])},[e.createVNode(e.unref(C.ElCheckbox),{modelValue:k.check,"onUpdate:modelValue":V=>k.check=V,style:{width:"14px",height:"16px"}},null,8,["modelValue","onUpdate:modelValue"])]),e.createElementVNode("div",rn,[e.createElementVNode("div",sn,[e.createVNode(re,{style:e.normalizeStyle([{transform:`rotate(${k.angle}deg)`},{height:"45px"}]),"retry-times":1,src:k.labelImg,fit:"cover",class:"flex-1"},null,8,["style","src"]),e.createVNode(re,{"retry-times":1,fit:"cover",src:k.previewImg,style:{height:"45px"},class:"flex-1"},null,8,["src"]),k.read?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",cn,e.toDisplayString(e.unref(a)("未读")),1))])]),e.createElementVNode("div",un,[e.createVNode(e.unref(C.ElTooltip),{effect:"dark",placement:"bottom",content:`${k.name}`},{default:e.withCtx(()=>[e.createElementVNode("span",{style:{"line-height":"16px"},class:"margin-l-1 ellipsis hzzt-kfb-slides__text",dir:"rtl",onClick:e.withModifiers(V=>r(k),["stop"])},e.toDisplayString(k.name),9,dn)]),_:2},1032,["content"])]),e.createElementVNode("div",{class:"w-20% flex text-center pointer",style:e.normalizeStyle({color:k.gradeColor}),onClick:V=>y("tool","grade",k)},e.toDisplayString(k.grade),13,fn)],12,an))),128))])):(e.openBlock(),e.createElementBlock("div",Wo,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(p.slides,(k,m)=>(e.openBlock(),e.createElementBlock("div",{key:m,class:e.normalizeClass(["hzzt-kfb-slides__box",e.unref(f)===m?"hzzt-kfb-slides__box--active":""]),"data-index":m,onClick:V=>d(m)},[e.createElementVNode("div",Yo,[e.createVNode(re,{style:e.normalizeStyle({transform:`rotate(${k.angle}deg)`}),"retry-times":1,src:k.labelImg,class:"hzzt-kfb-slides__img",fit:"cover"},null,8,["style","src"]),e.createVNode(re,{"retry-times":1,src:k.previewImg,class:"flex-1 hzzt-kfb-slides__img1",fit:"cover"},null,8,["src"])]),e.createElementVNode("div",{class:"flex justify-content-between align-items-center",onClick:e.withModifiers(()=>{},["stop"])},[e.createVNode(e.unref(C.ElCheckbox),{modelValue:k.check,"onUpdate:modelValue":V=>k.check=V,style:{width:"14px",height:"16px"}},null,8,["modelValue","onUpdate:modelValue"]),e.createVNode(e.unref(C.ElTooltip),{effect:"dark",placement:"bottom",content:`${k.name}`},{default:e.withCtx(()=>[e.createElementVNode("span",{style:{"line-height":"16px","text-align":"center",width:"calc(100% - 14px)"},class:"margin-l-1 ellipsis",onClick:e.withModifiers(V=>r(k),["stop"])},e.toDisplayString(k.name),9,Xo)]),_:2},1032,["content"])]),k.read?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",Qo,e.toDisplayString(e.unref(a)("未读")),1)),k.grade?(e.openBlock(),e.createElementBlock("div",{key:1,class:"hzzt-kfb-slides__grade",style:e.normalizeStyle({background:k.gradeColor}),onClick:V=>y("tool","grade",k)},e.toDisplayString(k.grade),13,Jo)):e.createCommentVNode("",!0),e.renderSlot(p.$slots,"slide",{slide:k},void 0,!0)],10,Zo))),128))]))],512),n.value.length>1?(e.openBlock(),e.createElementBlock("div",mn,[e.createElementVNode("div",vn,[e.createElementVNode("span",pn,e.toDisplayString(e.unref(a)("分屏")),1),e.createVNode(e.unref(C.ElSwitch),{modelValue:e.unref(c),"onUpdate:modelValue":w[2]||(w[2]=k=>e.isRef(c)?c.value=k:null)},null,8,["modelValue"]),e.unref(c)?(e.openBlock(),e.createElementBlock("span",hn,e.toDisplayString(e.unref(a)("同步")),1)):e.createCommentVNode("",!0),e.unref(c)?(e.openBlock(),e.createBlock(e.unref(C.ElSwitch),{key:1,modelValue:e.unref(i),"onUpdate:modelValue":w[3]||(w[3]=k=>e.isRef(i)?i.value=k:null)},null,8,["modelValue"])):e.createCommentVNode("",!0)])])):e.createCommentVNode("",!0)])]))}}),wn=j(gn,[["__scopeId","data-v-d3cde57c"]]),yn={class:"hzzt-kfb-ai overflow-hidden"},kn={class:"flex align-items-center margin-t-1"},bn={style:{color:"var(--el-color-success)"}},_n={class:"flex-1 flex overflow-auto wrap margin-t-1"},Cn=["onClick"],Vn={key:0,style:{"margin-left":"2px"}},En=e.defineComponent({name:"KfbAiList",__name:"list",props:{data:{default:()=>[]},slide:{default:()=>({})}},setup(u,{expose:t}){const l=u,{t:o}=K(),y=e.inject("kfbViewRef"),f=e.ref(-1),c=e.ref(1),i=e.ref(100),v=e.ref(!0),g=e.ref([]),h=e.computed(()=>l.data.filter(V=>g.value.includes(V.cls||""))),n=e.computed(()=>h.value.slice((c.value-1)*i.value,c.value*i.value)),a=e.computed(()=>{var N,E;const V=((E=(N=l.slide)==null?void 0:N.analysis)==null?void 0:E.result)||"";return V.indexOf("疑似阳性")>-1?{type:"warning",name:V}:V.indexOf("阳性")>-1?{type:"danger",name:V}:V.indexOf("阴性")>-1?{type:"success",name:V}:{type:"info",name:V||o("未知")}}),d=e.computed(()=>{const V=new Set;return l.data.forEach(N=>{const E=N.cls||"";E&&!V.has(E)&&V.add(E)}),Array.from(V)}),r=e.computed(()=>g.value.length!==0&&g.value.length!==d.value.length);e.watch(()=>d.value,V=>{s(),g.value=[...V]}),e.onMounted(()=>{g.value=[...d.value]});function s(){f.value=-1,c.value=1,i.value=100,v.value=!0}function p(V){const N=h.value.findIndex(E=>E.id===V.id);f.value=N,y.value.jumpToLabel(V,5)}function w(V){const N=l.data.filter(E=>E.cls===V);return N.length?`(${N.length})`:""}function k(){f.value=-1,v.value=g.value.length==d.value.length}function m(V){g.value=V?[...d.value]:[],f.value=-1}return t({labelList:h}),(V,N)=>(e.openBlock(),e.createElementBlock("div",yn,[e.createElementVNode("div",kn,[e.createVNode(e.unref(C.ElPopover),{placement:"bottom",trigger:"click",width:"160"},{reference:e.withCtx(()=>[e.createVNode(e.unref(C.ElButton),{class:"margin-r-1",type:"primary"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(o)("分类"))+" ",1),e.createVNode(R,{name:"arrowDown"})]),_:1})]),default:e.withCtx(()=>[e.createElementVNode("div",null,[e.createVNode(e.unref(C.ElCheckbox),{modelValue:v.value,"onUpdate:modelValue":N[0]||(N[0]=E=>v.value=E),indeterminate:r.value,onChange:m},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(o)("全选")),1)]),_:1},8,["modelValue","indeterminate"]),e.createVNode(e.unref(C.ElCheckboxGroup),{modelValue:g.value,"onUpdate:modelValue":N[1]||(N[1]=E=>g.value=E),class:"flex column",onChange:k},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(d.value,E=>(e.openBlock(),e.createBlock(e.unref(C.ElCheckbox),{key:E,value:E},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(E)+" ",1),e.createElementVNode("span",bn,e.toDisplayString(w(E)),1)]),_:2},1032,["value"]))),128))]),_:1},8,["modelValue"])])]),_:1}),e.createVNode(e.unref(C.ElTag),{type:a.value.type,class:"margin-l-1"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(a.value.name),1)]),_:1},8,["type"])]),e.createElementVNode("div",_n,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.value,(E,M)=>(e.openBlock(),e.createElementBlock("div",{key:M+(c.value-1)*i.value,class:e.normalizeClass(`hzzt-kfb-ai__img ${f.value===M+(c.value-1)*i.value?"hzzt-kfb-ai__img--active":""}`),onClick:H=>p(E)},[e.createVNode(e.unref(lt),{"retry-times":1,src:E.imageUrl,"error-src":e.unref(ie)},null,8,["src","error-src"]),e.createElementVNode("div",{style:e.normalizeStyle({color:E.strokeStyle}),class:"ellipsis"},[e.createTextVNode(e.toDisplayString(E.cls)+" ",1),E.score?(e.openBlock(),e.createElementBlock("span",Vn,e.toDisplayString(E.score),1)):e.createCommentVNode("",!0)],4)],10,Cn))),128))]),e.createVNode(e.unref(C.ElPagination),{class:"wrap","current-page":c.value,"onUpdate:currentPage":N[2]||(N[2]=E=>c.value=E),"page-size":i.value,"onUpdate:pageSize":N[3]||(N[3]=E=>i.value=E),"page-sizes":[100,200,300,400],layout:"total, sizes, prev, pager, next",total:h.value.length},null,8,["current-page","page-size","total"])]))}}),zn={class:"hzzt-kfb-slide"},Nn={class:"flex flex-1 overflow-hidden"},Bn={class:"flex flex-1"},xn={key:0,style:{height:"100%",width:"100%"},class:"flex wrap"},Tn=["onClick"],le=e.defineComponent({name:"HzztKfbSlide",__name:"index",props:e.mergeModels({menus:{default:()=>[]},kfb:{},slides:{default:()=>[]},ai:{},teleport:{type:Boolean,default:!1},process:{},microscope:{},showList:{type:Boolean,default:!0},showKfbLabel:{type:Boolean,default:!0},showKeyboard:{type:Boolean,default:!1},showMenuText:{type:Boolean,default:!0}},{index:{default:0},indexModifiers:{}}),emits:e.mergeModels(["tool"],["update:index"]),setup(u,{expose:t,emit:l}){const o=u,y=l,f=e.useModel(u,"index"),c=e.computed(()=>o.slides[f.value]),i=e.computed(()=>o.slides.filter(({check:_})=>_)),v=e.ref(),g=e.ref(),h=e.ref(),n=e.ref(),a=e.ref(o.showKeyboard),d=e.ref(o.showKfbLabel),r=e.ref(!1),s=e.ref(!1),p=e.ref(!1),{t:w}=K(),k=e.computed(()=>{var _;if(r.value){const B=i.value.findIndex(({id:S})=>{var U;return S===((U=c.value)==null?void 0:U.id)});return((_=h.value)==null?void 0:_[B])||g.value}else return g.value}),m=e.computed(()=>i.value.length<=1?{height:"100%",width:"100%"}:i.value.length<=2?{height:"100%",width:"calc((100% - 4px) / 2)"}:i.value.length<=4?{height:"calc((100% - 4px) / 2)",width:"calc((100% - 4px) / 2)"}:i.value.length<=6?{height:"calc((100% - 4px) / 2)",width:"calc((100% - 4px * 2) / 3)"}:i.value.length<=9?{height:"calc((100% - 4px * 2) / 3)",width:"calc((100% - 4px * 2) / 3)"}:{height:"100%",width:"100%"});e.watch(()=>i.value,_=>{r.value&&_.length<=1&&(r.value=!1)}),e.watch(()=>c.value,_=>{if(_){const B=_.read;_.read=!0,y("tool","choose",{slide:_,read:B})}});const{analysisClass:V,aiLabelList:N,enableAi:E,enableIqc:M,toggleIqc:H,toggleAi:O}=Lo(o,c);function F(_,B){_==="next"&&o.slides[f.value+1]&&f.value++,_==="prev"&&o.slides[f.value-1]&&f.value--,(_==="label"||_==="tool")&&(d.value=B),y("tool",_,B)}function Y(_){var S,U,oe;const B=W($({},o.kfb),{process:o.process,microscope:o.microscope,slide:_,aiLabelList:c.value.id===_.id?((S=n.value)==null?void 0:S.labelList)||[]:[],hotmap:(U=_==null?void 0:_.hotmap)!=null&&U.file?W($({},(_==null?void 0:_.hotmap)||{}),{enable:E.value}):void 0,syncPosition:s.value,syncZoom:s.value,handle:void 0});return(oe=o.kfb)!=null&&oe.handle?o.kfb.handle(_,B):B}function X(_){f.value=o.slides.findIndex(B=>B.id===_.id)}function ce(_){r.value&&(o.slides[_].check=!0)}function ue(){var _;d.value=!p.value,(_=r.value?h.value:[g.value])==null||_.forEach(B=>{p.value&&(B.updateGrid({show:!p.value,ruler:!p.value}),a.value=!p.value),B.updateGraduation({show:!p.value}),B.updateNavigator(!p.value)})}function de(_){f.value=_,v.value&&v.value.jumpToSlide(_)}function fe(_,B){k.value&&k.value.jumpToLabel(_,B)}function te(_,B){k.value&&k.value.jumpToPosition(_,B)}return e.provide("kfbViewRef",k),e.provide("show-keyboard",a),e.provide("show-kfb-label",d),e.provide("hidden-all-label",p),e.provide("file-index",f),e.provide("divide",r),e.provide("sync",s),t({divide:r,slide:c,kfbViewRef:k,jumpToSlide:de,jumpToLabel:fe,jumpToPosition:te,enableAI:e.computed(()=>{var _;return((_=o.ai)==null?void 0:_.enable)&&N.value.length})}),(_,B)=>(e.openBlock(),e.createElementBlock("div",zn,[_.menus.length?(e.openBlock(),e.createBlock(ee,{key:0,menu:_.menus,"show-menu-text":_.showMenuText,process:_.process,microscope:_.microscope,onTool:F},{left:e.withCtx(()=>[e.renderSlot(_.$slots,"left")]),right:e.withCtx(()=>[e.createVNode(e.unref(C.ElSwitch),{modelValue:p.value,"onUpdate:modelValue":B[0]||(B[0]=S=>p.value=S),"active-text":e.unref(w)("隐藏标签"),class:"margin-r-2",onChange:ue},null,8,["modelValue","active-text"]),_.ai&&_.ai.enable&&e.unref(V)==="IQC"?(e.openBlock(),e.createBlock(e.unref(C.ElSwitch),{key:0,modelValue:e.unref(M),"onUpdate:modelValue":B[1]||(B[1]=S=>e.isRef(M)?M.value=S:null),"active-text":e.unref(w)("AI质控"),class:"margin-r-2",onChange:e.unref(H)},null,8,["modelValue","active-text","onChange"])):_.ai&&_.ai.enable&&e.unref(V)?(e.openBlock(),e.createBlock(e.unref(C.ElSwitch),{key:1,modelValue:e.unref(E),"onUpdate:modelValue":B[2]||(B[2]=S=>e.isRef(E)?E.value=S:null),"active-text":e.unref(w)("AI分析"),class:"margin-r-2",onChange:e.unref(O)},null,8,["modelValue","active-text","onChange"])):e.createCommentVNode("",!0),e.renderSlot(_.$slots,"right")]),_:3},8,["menu","show-menu-text","process","microscope"])):e.createCommentVNode("",!0),e.createElementVNode("div",Nn,[_.showList?(e.openBlock(),e.createBlock(e.Teleport,{key:0,defer:"",to:"#kfb-slide-list",disabled:!_.teleport},[e.createVNode(wn,{ref_key:"slidesRef",ref:v,style:e.normalizeStyle(_.teleport?"":"width: 250px"),slides:_.slides,onSelect:ce,onTool:F},{slide:e.withCtx(({slide:S})=>[e.renderSlot(_.$slots,"list",{slide:S})]),_:3},8,["style","slides"])],8,["disabled"])):e.createCommentVNode("",!0),(e.openBlock(),e.createBlock(e.Teleport,{defer:"",to:"#kfb-slide-view",disabled:!_.teleport},[e.createElementVNode("div",Bn,[i.value.length&&r.value?(e.openBlock(),e.createElementBlock("ul",xn,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.value,(S,U)=>(e.openBlock(),e.createElementBlock("li",{key:U,style:e.normalizeStyle(m.value),class:e.normalizeClass(c.value.id===S.id?"hzzt-kfb-view-screen-active":""),onClick:oe=>X(S)},[(e.openBlock(),e.createBlock(Z,e.mergeProps({ref_for:!0,ref_key:"kfbViewRefs",ref:h,key:`kfb-${U}`},{ref_for:!0},Y(S),{onTool:F}),{default:e.withCtx(()=>[e.renderSlot(_.$slots,"kfb",{slide:S})]),_:2},1040))],14,Tn))),128))])):c.value?(e.openBlock(),e.createBlock(Z,e.mergeProps({key:1,ref_key:"kfbViewRef",ref:g},Y(c.value),{onTool:F}),{default:e.withCtx(()=>[e.renderSlot(_.$slots,"kfb",{slide:c.value})]),_:3},16)):e.createCommentVNode("",!0)])],8,["disabled"])),_.ai&&_.ai.enable&&e.unref(N).length?(e.openBlock(),e.createBlock(e.Teleport,{key:1,defer:"",to:"#kfb-slide-ai",disabled:!_.teleport},[e.createVNode(En,{style:e.normalizeStyle(_.teleport?"":"width: 350px"),ref_key:"kfbAiRef",ref:n,data:e.unref(N),slide:c.value},null,8,["style","data","slide"])],8,["disabled"])):e.createCommentVNode("",!0),e.renderSlot(_.$slots,"default")])]))}});le.name="HzztKfbSlide";Z.name="HzztKfbView";ee.name="HzztKfbToolbox";const Sn=(u,t)=>{u.use(at,t==null?void 0:t.i18n),u.component(le.name,le),u.component(Z.name,Z),u.component(ee.name,ee)},Ln={install:Sn,HzztKfbSlide:le,HzztKfbView:Z,HzztKfbToolbox:ee};exports.DEFAULT_MICROSCOPE=se;exports.DEFAULT_PROCESS=pe;exports._export_sfc=j;exports._sfc_main=R;exports._sfc_main$1=le;exports._sfc_main$2=Z;exports._sfc_main$3=ee;exports.index=Ln;exports.useLocalI18n=K;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),n=require("./
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),n=require("./indexCIVMES3X.js"),o={},r={viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"};function c(C,t){return e.openBlock(),e.createElementBlock("svg",r,t[0]||(t[0]=[e.createElementVNode("g",{id:"24*24/æç¤º"},[e.createElementVNode("path",{id:"Subtract","fill-rule":"evenodd","clip-rule":"evenodd",d:"M2 12C2 6.48013 6.47433 2 12 2C17.5201 2 22 6.48013 22 12C22 17.5257 17.5201 22 12 22C6.47991 22 2 17.5257 2 12ZM12.168 15.2761C11.8141 16.152 12.2581 17.082 13.1461 17.352C14.0339 17.6222 14.0161 18.03 13.1102 18.2517L12.4083 18.4256C11.4963 18.6534 10.2302 18.6295 9.60024 18.3776C8.97024 18.1256 8.74219 17.2017 9.09024 16.3317L10.6622 12.4137C11.0161 11.5378 10.5602 10.6198 9.65414 10.3678L9.35414 10.2839C8.44805 10.032 8.4661 9.70195 9.3961 9.55195L10.2961 9.40804C11.22 9.25805 12.4981 9.34219 13.128 9.59414C13.7641 9.84609 13.992 10.77 13.6381 11.64L12.168 15.2761ZM11.52 7.05C11.52 6.36586 12.0722 5.8139 12.7561 5.8139C13.44 5.8139 13.9981 6.36609 13.9922 7.05C13.9922 7.73414 13.44 8.28609 12.7561 8.28609C12.072 8.28609 11.52 7.7339 11.52 7.05Z"})],-1)]))}const d=n._export_sfc(o,[["render",c]]);exports.default=d;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),c=require("./
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),c=require("./indexCIVMES3X.js"),f={},l={t:"1751700110518",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"1574",width:"32",height:"32"};function n(i,t){return e.openBlock(),e.createElementBlock("svg",l,t[0]||(t[0]=[e.createElementVNode("path",{d:"M979.776 260.032c-2.496-2.816-4.992-5.696-7.808-8.064-7.488-6.272-15.488-11.712-24.384-16.064-130.816-64.192-261.504-128.64-392.32-192.832C544 37.632 532.096 33.6 519.552 32h-12.16c-30.4 5.568-56.512 21.696-83.584 34.88-118.592 57.472-236.992 115.136-355.2 173.376-18.304 9.088-32.576 23.488-35.904 45.504-0.128 0.768-0.448 1.472-0.704 2.176v9.344c1.92 10.048 5.12 19.584 11.904 27.584 2.368 2.688 4.608 5.568 7.36 7.808 7.232 5.824 14.528 11.456 22.976 15.616 131.776 64.704 263.36 129.664 395.264 194.176 11.136 5.504 22.592 10.88 35.456 12.032 13.056 1.216 25.28-1.024 36.8-6.656a771854.477 771854.477 0 0 0 399.936-195.712c4.48-2.24 9.152-4.096 13.376-6.72 12.48-7.488 24.192-16.128 30.784-29.632 2.816-5.76 4.096-12.288 6.144-18.496v-9.344c-2.048-10.176-5.312-19.904-12.224-27.904z","p-id":"1575",fill:"#ffffff"},null,-1),e.createElementVNode("path",{d:"M934.848 454.976c-14.336-2.496-28.352-1.088-41.536 5.44-25.344 12.608-50.496 25.728-76.032 38.016-100.224 48.128-200.64 96-300.928 144.064-2.88 1.344-5.184 1.536-8.192 0.128-122.88-59.584-245.696-119.04-368.512-178.56-20.608-9.984-42.432-12.992-64.704-8.832-22.848 4.352-38.72 23.232-41.92 47.232-0.192 1.28-0.704 2.624-1.024 3.904v12.16c1.92 9.856 5.12 19.2 11.584 27.2 6.144 7.552 13.312 13.76 21.952 17.984 134.976 66.944 270.016 133.952 405.184 200.512 10.816 5.312 22.016 10.56 34.624 11.584 12.672 1.024 24.704-1.088 35.968-6.464 138.816-66.432 277.632-132.8 416.256-199.552 18.624-8.96 29.184-24.832 33.408-44.864 0.384-1.472 0.704-3.008 1.088-4.48v-11.264c-1.28-4.096-2.112-8.448-3.776-12.352-9.792-24.128-28.288-37.376-53.44-41.856z","p-id":"1576",fill:"#ffffff"},null,-1),e.createElementVNode("path",{d:"M934.784 670.656c-14.272-2.496-28.352-1.088-41.536 5.44-25.664 12.736-51.136 25.984-76.928 38.464-99.776 47.872-199.552 95.424-299.328 143.296-3.648 1.664-6.464 1.6-9.92-0.128C384.96 798.464 262.784 739.328 140.608 680c-18.88-9.152-38.72-11.84-59.2-10.24-23.808 1.792-42.176 19.136-47.36 43.264-0.704 3.008-1.408 5.952-2.048 8.96v12.16c1.92 9.664 4.992 18.88 11.264 26.816 6.272 7.872 13.696 14.208 22.656 18.624C200.704 846.4 335.552 913.28 470.528 979.776c11.52 5.696 23.616 10.944 36.8 12.16h9.344c10.816-1.728 20.992-5.12 30.848-10.112 12.672-6.4 26.048-11.52 38.848-17.664 123.2-59.2 246.336-118.528 369.344-177.792 19.52-9.408 30.848-25.28 35.2-46.272 0.32-1.344 0.64-2.688 1.024-4.032V724.8c-1.28-4.096-2.112-8.448-3.776-12.352-9.664-24.128-28.224-37.376-53.376-41.792z","p-id":"1577",fill:"#ffffff"},null,-1)]))}const o=c._export_sfc(f,[["render",n]]);exports.default=o;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),n=require("./indexCIVMES3X.js"),o={},r={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function l(i,t){return e.openBlock(),e.createElementBlock("svg",r,t[0]||(t[0]=[e.createElementVNode("g",null,[e.createElementVNode("path",{d:"M19.875 10.125C19.5106 10.1257 19.1543 10.2324 18.8496 10.4322C18.5449 10.632 18.3049 10.9161 18.159 11.25H5.091C4.945 10.9162 4.70501 10.6321 4.40031 10.4323C4.0956 10.2325 3.73935 10.1258 3.375 10.125C2.8779 10.1256 2.40133 10.3233 2.04983 10.6748C1.69833 11.0263 1.5006 11.5029 1.5 12C1.5 13.0342 2.3415 13.875 3.375 13.875C3.73941 13.8745 4.09579 13.7679 4.40055 13.5681C4.7053 13.3683 4.94524 13.084 5.091 12.75H18.1583C18.304 13.084 18.5439 13.3683 18.8487 13.5681C19.1535 13.7679 19.5098 13.8745 19.8743 13.875C20.9085 13.875 21.7493 13.0342 21.7493 12C21.7491 11.5029 21.5515 11.0262 21.2001 10.6747C20.8487 10.3231 20.3721 10.1254 19.875 10.125Z",fill:"currentColor"})],-1)]))}const c=n._export_sfc(o,[["render",l]]);exports.default=c;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { createElementBlock as o, openBlock as n, createElementVNode as t } from "vue";
|
|
2
|
+
import { _ as r } from "./indexBMt2qfwG.js";
|
|
3
|
+
const C = {}, l = {
|
|
4
|
+
width: "24",
|
|
5
|
+
height: "24",
|
|
6
|
+
viewBox: "0 0 24 24",
|
|
7
|
+
fill: "none",
|
|
8
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
9
|
+
};
|
|
10
|
+
function s(c, e) {
|
|
11
|
+
return n(), o("svg", l, e[0] || (e[0] = [
|
|
12
|
+
t("g", null, [
|
|
13
|
+
t("path", {
|
|
14
|
+
d: "M19.875 10.125C19.5106 10.1257 19.1543 10.2324 18.8496 10.4322C18.5449 10.632 18.3049 10.9161 18.159 11.25H5.091C4.945 10.9162 4.70501 10.6321 4.40031 10.4323C4.0956 10.2325 3.73935 10.1258 3.375 10.125C2.8779 10.1256 2.40133 10.3233 2.04983 10.6748C1.69833 11.0263 1.5006 11.5029 1.5 12C1.5 13.0342 2.3415 13.875 3.375 13.875C3.73941 13.8745 4.09579 13.7679 4.40055 13.5681C4.7053 13.3683 4.94524 13.084 5.091 12.75H18.1583C18.304 13.084 18.5439 13.3683 18.8487 13.5681C19.1535 13.7679 19.5098 13.8745 19.8743 13.875C20.9085 13.875 21.7493 13.0342 21.7493 12C21.7491 11.5029 21.5515 11.0262 21.2001 10.6747C20.8487 10.3231 20.3721 10.1254 19.875 10.125Z",
|
|
15
|
+
fill: "currentColor"
|
|
16
|
+
})
|
|
17
|
+
], -1)
|
|
18
|
+
]));
|
|
19
|
+
}
|
|
20
|
+
const _ = /* @__PURE__ */ r(C, [["render", s]]);
|
|
21
|
+
export {
|
|
22
|
+
_ as default
|
|
23
|
+
};
|
|
@@ -11,10 +11,10 @@ var x = (i, l, t) => l in i ? w(i, l, { enumerable: !0, configurable: !0, writab
|
|
|
11
11
|
return i;
|
|
12
12
|
}, V = (i, l) => k(i, z(l));
|
|
13
13
|
import { defineComponent as U, mergeDefaults as $, reactive as y, watch as B, ref as D, createBlock as N, openBlock as O, unref as o, withCtx as v, createVNode as a, createElementVNode as r, toDisplayString as f, normalizeClass as R } from "vue";
|
|
14
|
-
import F from "./
|
|
14
|
+
import F from "./microscopeB6_xwHWr.js";
|
|
15
15
|
import { ElPopover as M, ElCard as S, ElRadioGroup as T, ElRadio as h, ElInputNumber as C, ElColorPicker as W, ElIcon as j } from "element-plus";
|
|
16
|
-
import { u as A, d as G } from "./
|
|
17
|
-
import {
|
|
16
|
+
import { u as A, d as G } from "./useCommonSF_YB4y_.js";
|
|
17
|
+
import { b as E, _ as L } from "./indexBMt2qfwG.js";
|
|
18
18
|
const q = { class: "flex align-items-center margin-t-2" }, H = { style: { "min-width": "120px" } }, J = { class: "flex align-items-center margin-t-2" }, K = { style: { "min-width": "120px" } }, Q = { class: "flex align-items-center margin-t-2" }, X = { style: { "min-width": "120px" } }, Y = /* @__PURE__ */ U({
|
|
19
19
|
name: "ToolMicroscope",
|
|
20
20
|
__name: "microscope",
|
|
@@ -25,7 +25,8 @@ const q = { class: "flex align-items-center margin-t-2" }, H = { style: { "min-w
|
|
|
25
25
|
name: {},
|
|
26
26
|
component: {},
|
|
27
27
|
isPrevent: { type: Boolean },
|
|
28
|
-
callback: { type: Function }
|
|
28
|
+
callback: { type: Function },
|
|
29
|
+
options: {}
|
|
29
30
|
}, V(c({}, G), {
|
|
30
31
|
scope: () => c({}, E)
|
|
31
32
|
})),
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var x=Object.defineProperty,N=Object.defineProperties;var C=Object.getOwnPropertyDescriptors;var v=Object.getOwnPropertySymbols;var h=Object.prototype.hasOwnProperty,w=Object.prototype.propertyIsEnumerable;var V=(i,o,l)=>o in i?x(i,o,{enumerable:!0,configurable:!0,writable:!0,value:l}):i[o]=l,m=(i,o)=>{for(var l in o||(o={}))h.call(o,l)&&V(i,l,o[l]);if(v)for(var l of v(o))w.call(o,l)&&V(i,l,o[l]);return i},g=(i,o)=>N(i,C(o));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),_=require("./microscopeDsuJ4oWc.js"),s=require("element-plus"),E=require("./useCommonDOhNsd5o.js"),p=require("./indexCIVMES3X.js"),y={class:"flex align-items-center margin-t-2"},I={style:{"min-width":"120px"}},P={class:"flex align-items-center margin-t-2"},S={style:{"min-width":"120px"}},k={class:"flex align-items-center margin-t-2"},z={style:{"min-width":"120px"}},D=e.defineComponent({name:"ToolMicroscope",__name:"microscope",props:e.mergeDefaults({scope:{},size:{},text:{},name:{},component:{},isPrevent:{type:Boolean},callback:{type:Function},options:{}},g(m({},E.defaultProps),{scope:()=>m({},p.DEFAULT_MICROSCOPE)})),emits:["tool"],setup(i,{emit:o}){const l=i,n=e.reactive(m(m({},p.DEFAULT_MICROSCOPE),l.scope));e.watch(()=>l.scope,a=>{Object.assign(n,a)});const f=o,{t:d,textClass:b}=E.useCommon(),u=e.ref(!1);function c(a,t){a==="visible"?(u.value=!u.value,f("tool","microscope",{name:a,value:u.value})):f("tool","microscope",{name:a,value:t})}return(a,t)=>(e.openBlock(),e.createBlock(e.unref(s.ElPopover),{visible:u.value,"popper-class":"el-popover-padding-0",placement:"bottom",width:"300px",trigger:"click"},{reference:e.withCtx(()=>[e.createElementVNode("div",{class:"hzzt-kfb-toolbox__icon",onClick:t[8]||(t[8]=r=>c("visible",u.value))},[e.createVNode(e.unref(s.ElIcon),{size:a.size},{default:e.withCtx(()=>[e.createVNode(_.default)]),_:1},8,["size"]),e.createElementVNode("div",{class:e.normalizeClass(e.unref(b))},e.toDisplayString(e.unref(d)(a.text||"镜下")),3)])]),default:e.withCtx(()=>[e.createVNode(e.unref(s.ElCard),{shadow:"never",header:e.unref(d)("镜下视野")},{default:e.withCtx(()=>[e.createElementVNode("div",null,[e.createVNode(e.unref(s.ElRadioGroup),{modelValue:n.shape,"onUpdate:modelValue":t[0]||(t[0]=r=>n.shape=r),onChange:t[1]||(t[1]=r=>c("change",n))},{default:e.withCtx(()=>[e.createVNode(e.unref(s.ElRadio),{value:"50%",label:e.unref(d)("圆形")},null,8,["label"]),e.createVNode(e.unref(s.ElRadio),{value:"0",label:e.unref(d)("矩形")},null,8,["label"])]),_:1},8,["modelValue"]),e.createElementVNode("div",y,[e.createElementVNode("p",I,e.toDisplayString(e.unref(d)("视野直径(mm)"))+": ",1),e.createVNode(e.unref(s.ElInputNumber),{class:"flex-1",modelValue:n.width,"onUpdate:modelValue":t[2]||(t[2]=r=>n.width=r),onInput:t[3]||(t[3]=r=>c("change",n))},null,8,["modelValue"])]),e.createElementVNode("div",P,[e.createElementVNode("p",S,e.toDisplayString(e.unref(d)("边框宽度"))+"(px): ",1),e.createVNode(e.unref(s.ElInputNumber),{class:"flex-1",modelValue:n.borderWidth,"onUpdate:modelValue":t[4]||(t[4]=r=>n.borderWidth=r),onInput:t[5]||(t[5]=r=>c("change",n))},null,8,["modelValue"])]),e.createElementVNode("div",k,[e.createElementVNode("p",z,e.toDisplayString(e.unref(d)("边框颜色"))+": ",1),e.createVNode(e.unref(s.ElColorPicker),{modelValue:n.color,"onUpdate:modelValue":t[6]||(t[6]=r=>n.color=r),onChange:t[7]||(t[7]=r=>c("change",n))},null,8,["modelValue"])])])]),_:1},8,["header"])]),_:1},8,["visible"]))}}),O=p._export_sfc(D,[["__scopeId","data-v-fe8098cc"]]);exports.default=O;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),o=require("./
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),o=require("./indexCIVMES3X.js"),n={},r={viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"};function c(s,t){return e.openBlock(),e.createElementBlock("svg",r,t[0]||(t[0]=[e.createElementVNode("g",{id:"24*24/显微镜"},[e.createElementVNode("path",{id:"Vector",d:"M10.3277 17.3171C10.7838 17.3171 11.1554 16.9691 11.1554 16.5419C11.1554 16.1148 10.7838 15.7667 10.3277 15.7667H4.5C4.04392 15.7667 3.6723 16.1148 3.6723 16.5419C3.6723 16.9691 4.04392 17.3171 4.5 17.3171H5.3277V18.8834H2.8277C2.37162 18.8834 2 19.2314 2 19.6586V21.2248C2 21.652 2.37162 22 2.8277 22H21.1723C21.6284 22 22 21.652 22 21.2248V19.6586C22 19.2314 21.6284 18.8834 21.1723 18.8834H18.8074C20.0912 14.5644 19.4493 10.8624 16.8818 7.84069L15.5135 10.0714C17.152 12.4761 17.3885 15.387 16.2061 18.8834H9.51689V17.3171H10.3277ZM10.3615 3.58498L7.43919 8.3153L7.08446 8.12546C6.47635 7.80905 5.71622 7.99889 5.37838 8.56843C5.04054 9.12214 5.24324 9.83407 5.83446 10.1505L12.3209 13.6626C12.9122 13.9948 13.6892 13.805 14.027 13.2513C14.3818 12.6976 14.1791 11.9698 13.5878 11.6534H13.5709L13.2162 11.4636L16.1385 6.70161C17.0676 5.21449 16.5439 3.30022 14.9561 2.43009C13.3682 1.55996 11.3243 2.0504 10.3953 3.53752C10.3784 3.55334 10.3615 3.56916 10.3615 3.58498Z"})],-1)]))}const C=o._export_sfc(n,[["render",c]]);exports.default=C;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { defineComponent as b, mergeDefaults as _, ref as u, createBlock as C, openBlock as g, unref as o, withCtx as s, createVNode as i, createElementVNode as r, toDisplayString as v, normalizeClass as x } from "vue";
|
|
2
|
-
import { u as z, d as k } from "./
|
|
3
|
-
import E from "./
|
|
2
|
+
import { u as z, d as k } from "./useCommonSF_YB4y_.js";
|
|
3
|
+
import E from "./movel8WgST25.js";
|
|
4
4
|
import { ElPopover as V, ElCard as I, ElInputNumber as w, ElIcon as B } from "element-plus";
|
|
5
|
-
import { _ as M } from "./
|
|
5
|
+
import { _ as M } from "./indexBMt2qfwG.js";
|
|
6
6
|
const N = { class: "margin-b-1" }, P = /* @__PURE__ */ b({
|
|
7
7
|
name: "ToolMove",
|
|
8
8
|
__name: "move",
|
|
@@ -12,11 +12,12 @@ const N = { class: "margin-b-1" }, P = /* @__PURE__ */ b({
|
|
|
12
12
|
name: {},
|
|
13
13
|
component: {},
|
|
14
14
|
isPrevent: { type: Boolean },
|
|
15
|
-
callback: { type: Function }
|
|
15
|
+
callback: { type: Function },
|
|
16
|
+
options: {}
|
|
16
17
|
}, k),
|
|
17
18
|
emits: ["tool"],
|
|
18
19
|
setup($, { emit: d }) {
|
|
19
|
-
const f = d, { t: p, textClass: c } = z(), l = u(!1),
|
|
20
|
+
const f = d, { t: p, textClass: c } = z(), l = u(!1), n = u(1);
|
|
20
21
|
function m(t, e) {
|
|
21
22
|
t === "visible" ? l.value = !l.value : f("tool", "move", {
|
|
22
23
|
name: t,
|
|
@@ -33,7 +34,7 @@ const N = { class: "margin-b-1" }, P = /* @__PURE__ */ b({
|
|
|
33
34
|
reference: s(() => [
|
|
34
35
|
r("div", {
|
|
35
36
|
class: "hzzt-kfb-toolbox__icon",
|
|
36
|
-
onClick: e[3] || (e[3] = (
|
|
37
|
+
onClick: e[3] || (e[3] = (a) => m("visible", l.value))
|
|
37
38
|
}, [
|
|
38
39
|
i(o(B), { size: t.size }, {
|
|
39
40
|
default: s(() => [
|
|
@@ -52,13 +53,13 @@ const N = { class: "margin-b-1" }, P = /* @__PURE__ */ b({
|
|
|
52
53
|
r("div", null, [
|
|
53
54
|
r("p", N, v(o(p)("图像移动倍率")) + ":", 1),
|
|
54
55
|
i(o(w), {
|
|
55
|
-
modelValue:
|
|
56
|
-
"onUpdate:modelValue": e[0] || (e[0] = (
|
|
56
|
+
modelValue: n.value,
|
|
57
|
+
"onUpdate:modelValue": e[0] || (e[0] = (a) => n.value = a),
|
|
57
58
|
step: 0.2,
|
|
58
59
|
min: 1,
|
|
59
60
|
max: 10,
|
|
60
|
-
onChange: e[1] || (e[1] = (
|
|
61
|
-
onInput: e[2] || (e[2] = (
|
|
61
|
+
onChange: e[1] || (e[1] = (a) => m("ratio", n.value)),
|
|
62
|
+
onInput: e[2] || (e[2] = (a) => m("ratio", n.value))
|
|
62
63
|
}, null, 8, ["modelValue"])
|
|
63
64
|
])
|
|
64
65
|
]),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),n=require("./
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),n=require("./indexCIVMES3X.js"),o={},r={t:"1716452230517",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"5203",width:"128",height:"128"};function c(s,t){return e.openBlock(),e.createElementBlock("svg",r,t[0]||(t[0]=[e.createElementVNode("path",{d:"M682.666667 341.333333V170.666667l341.333333 341.333333-341.333333 341.333333v-170.666666h-213.333334V341.333333h213.333334zM384 341.333333H298.666667v341.333334h85.333333V341.333333zM212.736 341.333333H128v341.333334h84.736V341.333333zM42.666667 341.333333H0v341.333334h42.666667V341.333333z","p-id":"5204"},null,-1)]))}const i=n._export_sfc(o,[["render",c]]);exports.default=i;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),u=require("./useCommonDOhNsd5o.js"),p=require("./moveDB4RR4wM.js"),r=require("element-plus"),c=require("./indexCIVMES3X.js"),f={class:"margin-b-1"},b=e.defineComponent({name:"ToolMove",__name:"move",props:e.mergeDefaults({size:{},text:{},name:{},component:{},isPrevent:{type:Boolean},callback:{type:Function},options:{}},u.defaultProps),emits:["tool"],setup(g,{emit:m}){const d=m,{t:i,textClass:v}=u.useCommon(),n=e.ref(!1),l=e.ref(1);function s(o,t){o==="visible"?n.value=!n.value:d("tool","move",{name:o,value:t})}return(o,t)=>(e.openBlock(),e.createBlock(e.unref(r.ElPopover),{visible:n.value,"popper-class":"el-popover-padding-0",placement:"bottom",width:"200px",trigger:"click"},{reference:e.withCtx(()=>[e.createElementVNode("div",{class:"hzzt-kfb-toolbox__icon",onClick:t[3]||(t[3]=a=>s("visible",n.value))},[e.createVNode(e.unref(r.ElIcon),{size:o.size},{default:e.withCtx(()=>[e.createVNode(p.default)]),_:1},8,["size"]),e.createElementVNode("div",{class:e.normalizeClass(e.unref(v))},e.toDisplayString(e.unref(i)(o.text||"快速移动")),3)])]),default:e.withCtx(()=>[e.createVNode(e.unref(r.ElCard),{shadow:"never"},{default:e.withCtx(()=>[e.createElementVNode("div",null,[e.createElementVNode("p",f,e.toDisplayString(e.unref(i)("图像移动倍率"))+":",1),e.createVNode(e.unref(r.ElInputNumber),{modelValue:l.value,"onUpdate:modelValue":t[0]||(t[0]=a=>l.value=a),step:.2,min:1,max:10,onChange:t[1]||(t[1]=a=>s("ratio",l.value)),onInput:t[2]||(t[2]=a=>s("ratio",l.value))},null,8,["modelValue"])])]),_:1})]),_:1},8,["visible"]))}}),C=c._export_sfc(b,[["__scopeId","data-v-aa10a89d"]]);exports.default=C;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),C=require("./
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),C=require("./indexCIVMES3X.js"),r={},o={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function n(c,t){return e.openBlock(),e.createElementBlock("svg",o,t[0]||(t[0]=[e.createElementVNode("g",{id:"上一例"},[e.createElementVNode("path",{id:"Subtract",d:"M12.9012 6.09942C13.2648 5.91152 13.6903 6.0067 14.0204 6.24493C16.6043 8.10984 18.3663 10.1237 19.2186 11.2049C19.5935 11.6804 19.5935 12.3192 19.2186 12.7947C18.3663 13.8759 16.6043 15.8897 14.0204 17.7547C13.6903 17.9929 13.2648 18.0881 12.9012 17.9002C12.6792 17.7854 12.4124 17.6134 12.1327 17.3553C11.9272 17.1657 11.7725 16.9887 11.6561 16.8328C11.3717 16.4518 11.5019 15.9679 11.8377 15.6277C13.3236 14.1225 14.8063 12.6746 15.3153 12.1795C15.3392 12.1562 15.3579 12.1282 15.3709 12.0975C15.384 12.0666 15.3905 12.0333 15.3905 11.9998C15.3905 11.9663 15.384 11.933 15.3709 11.9022C15.3579 11.8714 15.3392 11.8434 15.3153 11.8201C14.8063 11.325 13.3237 9.87706 11.8377 8.37188C11.5019 8.03166 11.3717 7.5478 11.6561 7.1668C11.7725 7.01089 11.9272 6.83394 12.1327 6.64434C12.4125 6.38625 12.6792 6.21425 12.9012 6.09942Z",fill:"currentColor","fill-opacity":"0.9"}),e.createElementVNode("path",{id:"Subtract_2",d:"M6.40122 6.09942C6.76477 5.91152 7.1903 6.0067 7.52036 6.24493C10.1043 8.10984 11.8663 10.1237 12.7186 11.2049C13.0935 11.6804 13.0935 12.3192 12.7186 12.7947C11.8663 13.8759 10.1043 15.8897 7.52036 17.7547C7.19029 17.9929 6.76478 18.0881 6.40122 17.9002C6.17924 17.7854 5.91243 17.6134 5.63266 17.3553C5.42717 17.1657 5.27248 16.9887 5.1561 16.8328C4.87166 16.4518 5.00188 15.9679 5.33774 15.6277C6.82361 14.1225 8.30629 12.6746 8.81528 12.1795C8.83919 12.1562 8.85793 12.1282 8.87094 12.0975C8.88399 12.0666 8.89047 12.0333 8.89047 11.9998C8.89047 11.9663 8.88399 11.933 8.87094 11.9022C8.85793 11.8714 8.83919 11.8434 8.81528 11.8201C8.30629 11.325 6.82371 9.87706 5.33774 8.37188C5.00193 8.03166 4.87171 7.5478 5.1561 7.1668C5.27252 7.01089 5.42718 6.83394 5.63266 6.64434C5.91247 6.38625 6.17924 6.21425 6.40122 6.09942Z",fill:"currentColor","fill-opacity":"0.9"})],-1)]))}const l=C._export_sfc(r,[["render",n]]);exports.default=l;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { createElementBlock as o, openBlock as t, createElementVNode as e } from "vue";
|
|
2
|
+
import { _ as n } from "./indexBMt2qfwG.js";
|
|
3
|
+
const r = {}, l = {
|
|
4
|
+
width: "24",
|
|
5
|
+
height: "24",
|
|
6
|
+
viewBox: "0 0 24 24",
|
|
7
|
+
fill: "none",
|
|
8
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
9
|
+
};
|
|
10
|
+
function s(c, C) {
|
|
11
|
+
return t(), o("svg", l, C[0] || (C[0] = [
|
|
12
|
+
e("g", null, [
|
|
13
|
+
e("path", {
|
|
14
|
+
d: "M21 18.7882V5.21175C21.855 5.03775 22.5 4.28025 22.5 3.375C22.5 2.3415 21.6592 1.5 20.625 1.5C19.719 1.5 18.9622 2.145 18.7882 3L7.21175 5C7.12493 4.57681 6.89482 4.19651 6.56022 3.92325C6.22561 3.65 5.807 3.50051 5.375 3.5C4.8779 3.5006 4.40133 3.69833 4.04983 4.04983C3.69833 4.40133 3.5006 4.8779 3.5 5.375C3.5 6.28025 4.145 7.03775 5 7.21175L3 18.7875C2.145 18.9615 1.5 19.719 1.5 20.6243C1.5004 21.1215 1.69804 21.5982 2.04957 21.9499C2.40109 22.3016 2.87777 22.4994 3.375 22.5C4.28025 22.5 5.03775 21.855 5.21175 21H18.7875C18.9615 21.855 19.719 22.5 20.6242 22.5C20.8811 22.5527 21.1462 22.5509 21.4024 22.4948C21.6586 22.4387 21.9001 22.3294 22.1114 22.1741C22.3227 22.0188 22.4991 21.8209 22.6292 21.5932C22.7592 21.3655 22.8401 21.113 22.8665 20.8521C22.8929 20.5912 22.8643 20.3276 22.7825 20.0785C22.7007 19.8293 22.5676 19.6001 22.3917 19.4056C22.2158 19.2111 22.001 19.0556 21.7613 18.9493C21.5216 18.843 21.2622 18.7881 21 18.7882ZM4.5 19.1348L6.5 6.86525C6.638 6.761 6.761 6.638 6.86525 6.5L19.134 4.5C19.239 4.638 19.3612 4.761 19.4992 4.86525V19.134C19.3605 19.239 19.2382 19.3612 19.1332 19.5H4.86525C4.76115 19.3618 4.63821 19.2388 4.5 19.1348Z",
|
|
15
|
+
fill: "currentColor"
|
|
16
|
+
})
|
|
17
|
+
], -1)
|
|
18
|
+
]));
|
|
19
|
+
}
|
|
20
|
+
const _ = /* @__PURE__ */ n(r, [["render", s]]);
|
|
21
|
+
export {
|
|
22
|
+
_ as default
|
|
23
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),C=require("./indexCIVMES3X.js"),n={},o={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function r(c,t){return e.openBlock(),e.createElementBlock("svg",o,t[0]||(t[0]=[e.createElementVNode("g",null,[e.createElementVNode("path",{d:"M21 18.7882V5.21175C21.855 5.03775 22.5 4.28025 22.5 3.375C22.5 2.3415 21.6592 1.5 20.625 1.5C19.719 1.5 18.9622 2.145 18.7882 3L7.21175 5C7.12493 4.57681 6.89482 4.19651 6.56022 3.92325C6.22561 3.65 5.807 3.50051 5.375 3.5C4.8779 3.5006 4.40133 3.69833 4.04983 4.04983C3.69833 4.40133 3.5006 4.8779 3.5 5.375C3.5 6.28025 4.145 7.03775 5 7.21175L3 18.7875C2.145 18.9615 1.5 19.719 1.5 20.6243C1.5004 21.1215 1.69804 21.5982 2.04957 21.9499C2.40109 22.3016 2.87777 22.4994 3.375 22.5C4.28025 22.5 5.03775 21.855 5.21175 21H18.7875C18.9615 21.855 19.719 22.5 20.6242 22.5C20.8811 22.5527 21.1462 22.5509 21.4024 22.4948C21.6586 22.4387 21.9001 22.3294 22.1114 22.1741C22.3227 22.0188 22.4991 21.8209 22.6292 21.5932C22.7592 21.3655 22.8401 21.113 22.8665 20.8521C22.8929 20.5912 22.8643 20.3276 22.7825 20.0785C22.7007 19.8293 22.5676 19.6001 22.3917 19.4056C22.2158 19.2111 22.001 19.0556 21.7613 18.9493C21.5216 18.843 21.2622 18.7881 21 18.7882ZM4.5 19.1348L6.5 6.86525C6.638 6.761 6.761 6.638 6.86525 6.5L19.134 4.5C19.239 4.638 19.3612 4.761 19.4992 4.86525V19.134C19.3605 19.239 19.2382 19.3612 19.1332 19.5H4.86525C4.76115 19.3618 4.63821 19.2388 4.5 19.1348Z",fill:"currentColor"})],-1)]))}const l=C._export_sfc(n,[["render",r]]);exports.default=l;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),C=require("./
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),C=require("./indexCIVMES3X.js"),r={},o={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function n(c,t){return e.openBlock(),e.createElementBlock("svg",o,t[0]||(t[0]=[e.createElementVNode("g",{id:"上一例"},[e.createElementVNode("path",{id:"Subtract",d:"M11.0988 6.09942C10.7352 5.91152 10.3097 6.0067 9.97964 6.24493C7.39574 8.10984 5.63367 10.1237 4.7814 11.2049C4.40654 11.6804 4.40654 12.3192 4.7814 12.7947C5.63366 13.8759 7.39572 15.8897 9.97964 17.7547C10.3097 17.9929 10.7352 18.0881 11.0988 17.9002C11.3208 17.7854 11.5876 17.6134 11.8673 17.3553C12.0728 17.1657 12.2275 16.9887 12.3439 16.8328C12.6283 16.4518 12.4981 15.9679 12.1623 15.6277C10.6764 14.1225 9.19371 12.6746 8.68472 12.1795C8.66081 12.1562 8.64207 12.1282 8.62906 12.0975C8.61601 12.0666 8.60953 12.0333 8.60953 11.9998C8.60953 11.9663 8.61601 11.933 8.62906 11.9022C8.64207 11.8714 8.66081 11.8434 8.68472 11.8201C9.19371 11.325 10.6763 9.87706 12.1623 8.37188C12.4981 8.03166 12.6283 7.5478 12.3439 7.1668C12.2275 7.01089 12.0728 6.83394 11.8673 6.64434C11.5875 6.38625 11.3208 6.21425 11.0988 6.09942Z",fill:"currentColor","fill-opacity":"0.9"}),e.createElementVNode("path",{id:"Subtract_2",d:"M17.5988 6.09942C17.2352 5.91152 16.8097 6.0067 16.4796 6.24493C13.8957 8.10984 12.1337 10.1237 11.2814 11.2049C10.9065 11.6804 10.9065 12.3192 11.2814 12.7947C12.1337 13.8759 13.8957 15.8897 16.4796 17.7547C16.8097 17.9929 17.2352 18.0881 17.5988 17.9002C17.8208 17.7854 18.0876 17.6134 18.3673 17.3553C18.5728 17.1657 18.7275 16.9887 18.8439 16.8328C19.1283 16.4518 18.9981 15.9679 18.6623 15.6277C17.1764 14.1225 15.6937 12.6746 15.1847 12.1795C15.1608 12.1562 15.1421 12.1282 15.1291 12.0975C15.116 12.0666 15.1095 12.0333 15.1095 11.9998C15.1095 11.9663 15.116 11.933 15.1291 11.9022C15.1421 11.8714 15.1608 11.8434 15.1847 11.8201C15.6937 11.325 17.1763 9.87706 18.6623 8.37188C18.9981 8.03166 19.1283 7.5478 18.8439 7.1668C18.7275 7.01089 18.5728 6.83394 18.3673 6.64434C18.0875 6.38625 17.8208 6.21425 17.5988 6.09942Z",fill:"currentColor","fill-opacity":"0.9"})],-1)]))}const l=C._export_sfc(r,[["render",n]]);exports.default=l;
|
|
@@ -11,10 +11,10 @@ var E = (m, s, d) => s in m ? y(m, s, { enumerable: !0, configurable: !0, writab
|
|
|
11
11
|
return m;
|
|
12
12
|
}, v = (m, s) => w(m, B(s));
|
|
13
13
|
import { defineComponent as S, mergeDefaults as I, reactive as N, createBlock as R, openBlock as T, unref as e, withCtx as o, createVNode as l, createElementVNode as p, toDisplayString as u, createTextVNode as h, normalizeClass as j } from "vue";
|
|
14
|
-
import { u as O, d as A } from "./
|
|
14
|
+
import { u as O, d as A } from "./useCommonSF_YB4y_.js";
|
|
15
15
|
import { ElPopover as L, ElCard as q, ElForm as G, ElRow as H, ElCol as f, ElFormItem as c, ElSlider as _, ElButton as U, ElIcon as J } from "element-plus";
|
|
16
|
-
import K from "./
|
|
17
|
-
import { D as b, _ as M } from "./
|
|
16
|
+
import K from "./processD0b1s4d4.js";
|
|
17
|
+
import { D as b, _ as M } from "./indexBMt2qfwG.js";
|
|
18
18
|
const Q = { class: "margin-l-4" }, W = { class: "margin-l-4" }, X = { class: "margin-l-4" }, Y = { class: "margin-l-4" }, Z = { class: "margin-l-4" }, $ = { class: "margin-l-4" }, ee = { class: "margin-l-4" }, le = { class: "flex justify-content-end" }, ae = { class: "hzzt-kfb-toolbox__icon" }, oe = /* @__PURE__ */ S({
|
|
19
19
|
name: "ToolProcess",
|
|
20
20
|
__name: "process",
|
|
@@ -25,7 +25,8 @@ const Q = { class: "margin-l-4" }, W = { class: "margin-l-4" }, X = { class: "ma
|
|
|
25
25
|
name: {},
|
|
26
26
|
component: {},
|
|
27
27
|
isPrevent: { type: Boolean },
|
|
28
|
-
callback: { type: Function }
|
|
28
|
+
callback: { type: Function },
|
|
29
|
+
options: {}
|
|
29
30
|
}, v(g({}, A), {
|
|
30
31
|
process: () => g({}, b)
|
|
31
32
|
})),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),o=require("./
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),o=require("./indexCIVMES3X.js"),r={},n={viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"};function c(d,t){return e.openBlock(),e.createElementBlock("svg",n,t[0]||(t[0]=[e.createElementVNode("g",{id:"24*24/图片"},[e.createElementVNode("path",{id:"Vector",d:"M20 4H4C2.9 4 2 4.9 2 6V18C2 19.1 2.9 20 4 20H20C21.1 20 22 19.1 22 18V6C22 4.9 21.1 4 20 4ZM4 7C4 6.45 4.45 6 5 6H19C19.55 6 20 6.45 20 7V17C20 17.15 19.95 17.25 19.95 17.35L16.35 11.4C16.2 11.15 15.8 11.05 15.6 11.3L13.5 13.1C13.25 13.3 12.9 13.25 12.7 12.95L10.45 8.75C10.25 8.4 9.8 8.4 9.55 8.7L4.05 17.35C4.05 17.25 4 17.1 4 17V7Z"}),e.createElementVNode("path",{id:"Vector_2",d:"M16 8.5C16 8.89782 16.158 9.27936 16.4393 9.56066C16.7206 9.84197 17.1022 10 17.5 10C17.8978 10 18.2794 9.84197 18.5607 9.56066C18.842 9.27936 19 8.89782 19 8.5C19 8.10218 18.842 7.72064 18.5607 7.43934C18.2794 7.15804 17.8978 7 17.5 7C17.1022 7 16.7206 7.15804 16.4393 7.43934C16.158 7.72064 16 8.10218 16 8.5Z"})],-1)]))}const C=o._export_sfc(r,[["render",c]]);exports.default=C;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var _=Object.defineProperty,h=Object.defineProperties;var b=Object.getOwnPropertyDescriptors;var p=Object.getOwnPropertySymbols;var w=Object.prototype.hasOwnProperty,S=Object.prototype.propertyIsEnumerable;var V=(s,o,r)=>o in s?_(s,o,{enumerable:!0,configurable:!0,writable:!0,value:r}):s[o]=r,i=(s,o)=>{for(var r in o||(o={}))w.call(o,r)&&V(s,r,o[r]);if(p)for(var r of p(o))S.call(o,r)&&V(s,r,o[r]);return s},C=(s,o)=>h(s,b(o));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),x=require("./useCommonDOhNsd5o.js"),t=require("element-plus"),y=require("./processDAd-rsJz.js"),c=require("./indexCIVMES3X.js"),D={class:"margin-l-4"},v={class:"margin-l-4"},F={class:"margin-l-4"},P={class:"margin-l-4"},U={class:"margin-l-4"},I={class:"margin-l-4"},k={class:"margin-l-4"},z={class:"flex justify-content-end"},T={class:"hzzt-kfb-toolbox__icon"},q=e.defineComponent({name:"ToolProcess",__name:"process",props:e.mergeDefaults({process:{},size:{},text:{},name:{},component:{},isPrevent:{type:Boolean},callback:{type:Function},options:{}},C(i({},x.defaultProps),{process:()=>i({},c.DEFAULT_PROCESS)})),emits:["tool"],setup(s,{emit:o}){const r=s,m=o,{t:d,textClass:E}=x.useCommon(),l=e.reactive(i(i({},c.DEFAULT_PROCESS),r.process));function u(){m("tool","process",l)}function N(){Object.assign(l,c.DEFAULT_PROCESS),u()}function g(){m("tool","save_process",l)}return(f,a)=>(e.openBlock(),e.createBlock(e.unref(t.ElPopover),{"popper-class":"el-popover-padding-0",placement:"bottom",width:"400px",trigger:"click"},{reference:e.withCtx(()=>[e.createElementVNode("div",T,[e.createVNode(e.unref(t.ElIcon),{size:f.size},{default:e.withCtx(()=>[e.createVNode(y.default)]),_:1},8,["size"]),e.createElementVNode("div",{class:e.normalizeClass(e.unref(E))},e.toDisplayString(e.unref(d)(f.text||"图像处理")),3)])]),default:e.withCtx(()=>[e.createVNode(e.unref(t.ElCard),{shadow:"never",header:e.unref(d)("图像处理")},{default:e.withCtx(()=>[e.createVNode(e.unref(t.ElForm),null,{default:e.withCtx(()=>[e.createVNode(e.unref(t.ElRow),null,{default:e.withCtx(()=>[e.createVNode(e.unref(t.ElCol),{span:24},{default:e.withCtx(()=>[e.createVNode(e.unref(t.ElFormItem),{label:e.unref(d)("红通道")},{default:e.withCtx(()=>[e.createVNode(e.unref(t.ElSlider),{modelValue:l.r,"onUpdate:modelValue":a[0]||(a[0]=n=>l.r=n),class:"flex-1",step:.1,min:-1,max:1,onChange:u},null,8,["modelValue"]),e.createElementVNode("span",D,e.toDisplayString(l.r*100)+"%",1)]),_:1},8,["label"])]),_:1}),e.createVNode(e.unref(t.ElCol),{span:24},{default:e.withCtx(()=>[e.createVNode(e.unref(t.ElFormItem),{label:e.unref(d)("绿通道")},{default:e.withCtx(()=>[e.createVNode(e.unref(t.ElSlider),{modelValue:l.g,"onUpdate:modelValue":a[1]||(a[1]=n=>l.g=n),class:"flex-1",step:.1,min:-1,max:1,onChange:u},null,8,["modelValue"]),e.createElementVNode("span",v,e.toDisplayString(l.g*100)+"%",1)]),_:1},8,["label"])]),_:1}),e.createVNode(e.unref(t.ElCol),{span:24},{default:e.withCtx(()=>[e.createVNode(e.unref(t.ElFormItem),{label:e.unref(d)("蓝通道")},{default:e.withCtx(()=>[e.createVNode(e.unref(t.ElSlider),{modelValue:l.b,"onUpdate:modelValue":a[2]||(a[2]=n=>l.b=n),class:"flex-1",step:.1,min:-1,max:1,onChange:u},null,8,["modelValue"]),e.createElementVNode("span",F,e.toDisplayString(l.b*100)+"%",1)]),_:1},8,["label"])]),_:1}),e.createVNode(e.unref(t.ElCol),{span:24},{default:e.withCtx(()=>[e.createVNode(e.unref(t.ElFormItem),{label:e.unref(d)("gamma值")},{default:e.withCtx(()=>[e.createVNode(e.unref(t.ElSlider),{modelValue:l.ga,"onUpdate:modelValue":a[3]||(a[3]=n=>l.ga=n),class:"flex-1",step:.01,min:-.05,max:2,onChange:u},null,8,["modelValue"]),e.createElementVNode("span",P,e.toDisplayString(l.ga),1)]),_:1},8,["label"])]),_:1}),e.createVNode(e.unref(t.ElCol),{span:24},{default:e.withCtx(()=>[e.createVNode(e.unref(t.ElFormItem),{label:e.unref(d)("对比度")},{default:e.withCtx(()=>[e.createVNode(e.unref(t.ElSlider),{modelValue:l.c,"onUpdate:modelValue":a[4]||(a[4]=n=>l.c=n),class:"flex-1",step:.1,min:-1,max:1,onChange:u},null,8,["modelValue"]),e.createElementVNode("span",U,e.toDisplayString(l.c*100)+"%",1)]),_:1},8,["label"])]),_:1}),e.createVNode(e.unref(t.ElCol),{span:24},{default:e.withCtx(()=>[e.createVNode(e.unref(t.ElFormItem),{label:e.unref(d)("饱和度")},{default:e.withCtx(()=>[e.createVNode(e.unref(t.ElSlider),{modelValue:l.s,"onUpdate:modelValue":a[5]||(a[5]=n=>l.s=n),class:"flex-1",step:.1,min:-1,max:1,onChange:u},null,8,["modelValue"]),e.createElementVNode("span",I,e.toDisplayString(l.s*100)+"%",1)]),_:1},8,["label"])]),_:1}),e.createVNode(e.unref(t.ElCol),{span:24},{default:e.withCtx(()=>[e.createVNode(e.unref(t.ElFormItem),{label:e.unref(d)("亮度")},{default:e.withCtx(()=>[e.createVNode(e.unref(t.ElSlider),{modelValue:l.l,"onUpdate:modelValue":a[6]||(a[6]=n=>l.l=n),class:"flex-1",step:.1,min:-1,max:1,onChange:u},null,8,["modelValue"]),e.createElementVNode("span",k,e.toDisplayString(l.l*100)+"%",1)]),_:1},8,["label"])]),_:1})]),_:1})]),_:1}),e.createElementVNode("div",z,[e.createVNode(e.unref(t.ElButton),{onClick:N},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(d)("重置")),1)]),_:1}),e.createVNode(e.unref(t.ElButton),{type:"primary",onClick:g},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(d)("保存")),1)]),_:1})])]),_:1},8,["header"])]),_:1}))}}),B=c._export_sfc(q,[["__scopeId","data-v-bdb018f5"]]);exports.default=B;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { createElementBlock as o, openBlock as r, createElementVNode as t } from "vue";
|
|
2
|
+
import { _ as n } from "./indexBMt2qfwG.js";
|
|
3
|
+
const l = {}, c = {
|
|
4
|
+
width: "24",
|
|
5
|
+
height: "24",
|
|
6
|
+
viewBox: "0 0 24 24",
|
|
7
|
+
fill: "none",
|
|
8
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
9
|
+
};
|
|
10
|
+
function s(i, e) {
|
|
11
|
+
return r(), o("svg", c, e[0] || (e[0] = [
|
|
12
|
+
t("g", null, [
|
|
13
|
+
t("path", {
|
|
14
|
+
d: "M20.25 21H3.75C3.55109 21 3.36032 20.921 3.21967 20.7803C3.07902 20.6397 3 20.4489 3 20.25V3.75C3 3.55109 3.07902 3.36032 3.21967 3.21967C3.36032 3.07902 3.55109 3 3.75 3H20.25C20.4489 3 20.6397 3.07902 20.7803 3.21967C20.921 3.36032 21 3.55109 21 3.75V20.25C21 20.4489 20.921 20.6397 20.7803 20.7803C20.6397 20.921 20.4489 21 20.25 21ZM4.5 19.5H19.5V4.5H4.5V19.5Z",
|
|
15
|
+
fill: "currentColor"
|
|
16
|
+
})
|
|
17
|
+
], -1)
|
|
18
|
+
]));
|
|
19
|
+
}
|
|
20
|
+
const _ = /* @__PURE__ */ n(l, [["render", s]]);
|
|
21
|
+
export {
|
|
22
|
+
_ as default
|
|
23
|
+
};
|