hzzt-kfb-slide 0.1.5 → 0.1.7

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.
Files changed (120) hide show
  1. package/dist/components/{annotateGjNhIEUS.js → annotate49sBZsTN.js} +1 -1
  2. package/dist/components/{annotateYjhxwO-O.js → annotateBl0wovIH.js} +12 -11
  3. package/dist/components/annotateCIo__OqP.js +1 -0
  4. package/dist/components/{annotate8xj2A98v.js → annotateCjWLFBqD.js} +1 -1
  5. package/dist/components/{arrowCircleBZ0vbL6z.js → arrowCircle7NmwbGoq.js} +1 -1
  6. package/dist/components/{arrowCircleXFn4JVgy.js → arrowCircleCtoruF4U.js} +1 -1
  7. package/dist/components/{arrowBdlwBejD.js → arrowCl9QJSJj.js} +1 -1
  8. package/dist/components/{arrowV0p7H1Th.js → arrowCwovE-_Y.js} +1 -1
  9. package/dist/components/{arrowDownGCh2Lw0i.js → arrowDownBXGzGuuT.js} +1 -1
  10. package/dist/components/{arrowDowndnugSqYp.js → arrowDownDB2yvaaD.js} +1 -1
  11. package/dist/components/{arrowLeftBN2VngeB.js → arrowLeftBXNnT5m8.js} +1 -1
  12. package/dist/components/{arrowLeftCLCSoAuV.js → arrowLeftDvMUFF8m.js} +1 -1
  13. package/dist/components/{arrowRightDZoUCSB2.js → arrowRightB67m-kkE.js} +1 -1
  14. package/dist/components/{arrowRightB4PY6OXy.js → arrowRightCk6ld1no.js} +1 -1
  15. package/dist/components/{arrowUpB7IXtKtV.js → arrowUpB7Uvr3R3.js} +1 -1
  16. package/dist/components/{arrowUpBl2wvG3u.js → arrowUpNinTqfQn.js} +1 -1
  17. package/dist/components/{bilateralC5duFJ6A.js → bilateralCk-KBqyO.js} +1 -1
  18. package/dist/components/{bilateralCtvESpf-.js → bilateralDOwwtLaC.js} +1 -1
  19. package/dist/components/{channelD6H53g-b.js → channelC_7FoqpS.js} +1 -1
  20. package/dist/components/{channelCi_ZuzMe.js → channelDLxoZSck.js} +1 -1
  21. package/dist/components/{checkB83dSLjb.js → checkBf75347T.js} +1 -1
  22. package/dist/components/{checksjFeop3N.js → checkDHACKvpf.js} +1 -1
  23. package/dist/components/{configDWyEzXec.js → configBFhzQzSB.js} +1 -1
  24. package/dist/components/{configCxmsg_TF.js → configEppCf8vn.js} +1 -1
  25. package/dist/components/{customCO17GhdN.js → customBiBp4G-a.js} +1 -1
  26. package/dist/components/{customaXTfMDbt.js → customDOKaVCSP.js} +1 -1
  27. package/dist/components/{deleteBDC4kSvE.js → deleteBsNpbvks.js} +1 -1
  28. package/dist/components/{deleteBVulFGbi.js → deleteg7i46qXS.js} +1 -1
  29. package/dist/components/{dotCZ2rxmW0.js → dotBdYkwPjX.js} +1 -1
  30. package/dist/components/{dotyTt-N1iw.js → dotBo1YUnne.js} +12 -11
  31. package/dist/components/{dotBpUyBBJE.js → dotDCc4P8VK.js} +1 -1
  32. package/dist/components/{dotDoBayn0_.js → dotDHMTeCWy.js} +1 -1
  33. package/dist/components/dotDl1co4-R.js +1 -0
  34. package/dist/components/{dotDF7k_2D_.js → dotxqpjYIOg.js} +1 -1
  35. package/dist/components/{downloadDDTSRfzn.js → downloadBTOl5wLU.js} +1 -1
  36. package/dist/components/{downloadC8owamVT.js → downloadBWg9kSWm.js} +9 -8
  37. package/dist/components/downloadByFGTBBN.js +1 -0
  38. package/dist/components/{downloadAfgbfIZN.js → downloadRDk36nBB.js} +1 -1
  39. package/dist/components/{ellipseD9v7gVpA.js → ellipseCJcXMiqZ.js} +1 -1
  40. package/dist/components/{ellipse9BMWh0Bj.js → ellipseDlbHI1bF.js} +1 -1
  41. package/dist/components/{expandLeftCjQIyWNL.js → expandLeftDUZANt4r.js} +1 -1
  42. package/dist/components/{expandLeftC_My6RhM.js → expandLeftqGNGPcnT.js} +1 -1
  43. package/dist/components/{expandRightCVwFqDer.js → expandRightBgp3TM8W.js} +1 -1
  44. package/dist/components/{expandRightyLhjmSs7.js → expandRightZuTT2JzX.js} +1 -1
  45. package/dist/components/{flag15kRl4x5.js → flagBXkHSgl4.js} +1 -1
  46. package/dist/components/{flagBY3qY1Cr.js → flagDo8DOzCK.js} +1 -1
  47. package/dist/components/{flipCfugAhxY.js → flipBzljeFD3.js} +1 -1
  48. package/dist/components/{flipChRiWYFY.js → flipC6DUnkBc.js} +1 -1
  49. package/dist/components/{fontx_yMVStP.js → fontCQpNKMlS.js} +1 -1
  50. package/dist/components/{fontBzIblCy8.js → fontD6ZBPuPA.js} +1 -1
  51. package/dist/components/{fullscreenCpbm_UD_.js → fullscreenB2eP643y.js} +1 -1
  52. package/dist/components/{fullscreenemECN2cF.js → fullscreenBFNwWrlX.js} +1 -1
  53. package/dist/components/{fullscreenBwO3dffr.js → fullscreenBV4ER73M.js} +1 -1
  54. package/dist/components/{fullscreenC_m29bsh.js → fullscreenC0tDsxrL.js} +2 -2
  55. package/dist/components/{indexBTX88dQr.js → indexCE3et5Ds.js} +566 -562
  56. package/dist/components/indexDMPBpE5E.js +4 -0
  57. package/dist/components/{infoB5e2gbpo.js → infoDf7UtGa7.js} +1 -1
  58. package/dist/components/{infoBmWvR1i0.js → infoN-pmNAmQ.js} +1 -1
  59. package/dist/components/{levelBa86-BJQ.js → levelFM1mUgOC.js} +1 -1
  60. package/dist/components/{levelD0GGuJBL.js → levelXnWVI1Sf.js} +1 -1
  61. package/dist/components/{lineSLRRAaKq.js → lineC11ySKvp.js} +1 -1
  62. package/dist/components/{lineBnmpwqg1.js → lineCV1QeIV-.js} +1 -1
  63. package/dist/components/{microscopeDjEvEcUF.js → microscopeC7AAF-4i.js} +1 -1
  64. package/dist/components/microscopeDPBvnBTT.js +1 -0
  65. package/dist/components/{microscopeCYI-Rtzj.js → microscopeDREMD0aG.js} +19 -14
  66. package/dist/components/{microscopeDiHiWcGP.js → microscopeDy5_7IPr.js} +1 -1
  67. package/dist/components/{moveDKADB3N-.js → moveBBqduqb_.js} +1 -1
  68. package/dist/components/{moveCANGN5Jp.js → moveBbGj77c6.js} +1 -1
  69. package/dist/components/moveC3nOX-BZ.js +1 -0
  70. package/dist/components/{move1yvRyFTP.js → moveCxcLNPZF.js} +12 -11
  71. package/dist/components/{nextBON9HQRj.js → nextBZI_aP7l.js} +1 -1
  72. package/dist/components/{nextC3_M0jrY.js → nextCW5Nr0zb.js} +1 -1
  73. package/dist/components/{polygonv8E0s3De.js → polygonDfByxGAP.js} +1 -1
  74. package/dist/components/{polygonCtiCDAVU.js → polygonhwElczJV.js} +1 -1
  75. package/dist/components/{prevBf9uWlcK.js → prevBujNxx9W.js} +1 -1
  76. package/dist/components/{prevDK8jVCTd.js → prevD-Jb2BK5.js} +1 -1
  77. package/dist/components/{processCT3wpZqk.js → processBKw5BJun.js} +14 -13
  78. package/dist/components/processDIYQWbpe.js +1 -0
  79. package/dist/components/{processD4AqciTq.js → processITdbah9T.js} +1 -1
  80. package/dist/components/{processBy-mAYUa.js → processW2UX8zWN.js} +1 -1
  81. package/dist/components/{rectangleC0BitYF2.js → rectangleCD3zrJ4b.js} +1 -1
  82. package/dist/components/{rectangle3FWG4_9_.js → rectangleDINuKV3e.js} +1 -1
  83. package/dist/components/{rotateD5wo0iWz.js → rotateBK0g10v7.js} +7 -6
  84. package/dist/components/rotateCk4r5sz0.js +1 -0
  85. package/dist/components/{rotateLdmcAWDG.js → rotateDW3tCSd4.js} +1 -1
  86. package/dist/components/{rotateBsqpoRO8.js → rotateDaRh7p8x.js} +1 -1
  87. package/dist/components/{settingDGQ1ZYg0.js → settingBtYNTDMk.js} +6 -5
  88. package/dist/components/{settingDymV9b7E.js → settingCy068wtb.js} +1 -1
  89. package/dist/components/{settingCKE17BGk.js → settingCygsrWwb.js} +1 -1
  90. package/dist/components/settingjrS0Yyzz.js +1 -0
  91. package/dist/components/{starDj9m9qwI.js → starCRDtIUga.js} +1 -1
  92. package/dist/components/{star__kFQKd3.js → starDAzMV8hm.js} +1 -1
  93. package/dist/components/{tailorBfcbl4uu.js → tailorCMHyqgqY.js} +1 -1
  94. package/dist/components/{tailorClhtS8Zi.js → tailorCW1DpWxU.js} +1 -1
  95. package/dist/components/{useCommonJHuwZYYW.js → useCommonDwOO5Nl8.js} +1 -1
  96. package/dist/components/{useCommon2885p97b.js → useCommonDx4AkPn-.js} +1 -1
  97. package/dist/components/{voiceC8YYiyKw.js → voiceB3kLmI5d.js} +1 -1
  98. package/dist/components/{voiceDu262dkM.js → voiceClKUyNoj.js} +1 -1
  99. package/dist/components/{zoom5AmjJ_mM.js → zoom1wzOC8Jb.js} +1 -1
  100. package/dist/components/{zoomDqF3JH_w.js → zoomCvUZgCsd.js} +1 -1
  101. package/dist/components/{zoomInRtoVMmCo.js → zoomInBPFfWRlG.js} +1 -1
  102. package/dist/components/{zoomInBM87Htmo.js → zoomInNKDi_J_z.js} +1 -1
  103. package/dist/components/{zoomOutr16qPO8Z.js → zoomOutBzM3kBTI.js} +1 -1
  104. package/dist/components/{zoomOutDMMh7_1z.js → zoomOutC5HvL9tr.js} +1 -1
  105. package/dist/index.cjs.js +1 -1
  106. package/dist/index.css +1 -1
  107. package/dist/index.es.js +1 -1
  108. package/package.json +1 -1
  109. package/types/components/KfbView/KfbLabel.vue.d.ts +1 -0
  110. package/types/components/KfbView/index.d.ts +2 -1
  111. package/web-types.json +1 -1
  112. package/dist/components/annotateaT2ln47q.js +0 -1
  113. package/dist/components/dotCfiP1wpN.js +0 -1
  114. package/dist/components/downloadCSx0zqJh.js +0 -1
  115. package/dist/components/indexByL7ETN6.js +0 -4
  116. package/dist/components/microscopeBdB0ZoEZ.js +0 -1
  117. package/dist/components/moveC2TQrO_D.js +0 -1
  118. package/dist/components/processBo74-sQE.js +0 -1
  119. package/dist/components/rotateDrgb1BAd.js +0 -1
  120. package/dist/components/settingBY8j3KLr.js +0 -1
@@ -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 "./useCommon2885p97b.js";
14
+ import { u as O, d as A } from "./useCommonDx4AkPn-.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 "./processD4AqciTq.js";
17
- import { D as b, _ as M } from "./indexBTX88dQr.js";
16
+ import K from "./processITdbah9T.js";
17
+ import { D as V, _ as M } from "./indexCE3et5Ds.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",
@@ -28,29 +28,30 @@ const Q = { class: "margin-l-4" }, W = { class: "margin-l-4" }, X = { class: "ma
28
28
  callback: { type: Function },
29
29
  options: {}
30
30
  }, v(g({}, A), {
31
- process: () => g({}, b)
31
+ process: () => g({}, V)
32
32
  })),
33
33
  emits: ["tool"],
34
34
  setup(m, { emit: s }) {
35
- const d = m, V = s, { t: r, textClass: k } = O(), a = N(g(g({}, b), d.process));
35
+ const d = m, x = s, { t: r, textClass: k } = O(), a = N(g(g({}, V), d.process));
36
36
  function i() {
37
- V("tool", "process", a);
37
+ x("tool", "process", a);
38
38
  }
39
39
  function z() {
40
- Object.assign(a, b), i();
40
+ Object.assign(a, V), i();
41
41
  }
42
42
  function P() {
43
- V("tool", "save_process", a);
43
+ x("tool", "save_process", a);
44
44
  }
45
- return (x, t) => (T(), R(e(L), {
45
+ return (b, t) => (T(), R(e(L), {
46
46
  "popper-class": "el-popover-padding-0",
47
47
  placement: "bottom",
48
48
  width: "400px",
49
- trigger: "click"
49
+ trigger: "click",
50
+ teleported: !1
50
51
  }, {
51
52
  reference: o(() => [
52
53
  p("div", ae, [
53
- l(e(J), { size: x.size }, {
54
+ l(e(J), { size: b.size }, {
54
55
  default: o(() => [
55
56
  l(K)
56
57
  ]),
@@ -58,7 +59,7 @@ const Q = { class: "margin-l-4" }, W = { class: "margin-l-4" }, X = { class: "ma
58
59
  }, 8, ["size"]),
59
60
  p("div", {
60
61
  class: j(e(k))
61
- }, u(e(r)(x.text || "图像处理")), 3)
62
+ }, u(e(r)(b.text || "图像处理")), 3)
62
63
  ])
63
64
  ]),
64
65
  default: o(() => [
@@ -255,7 +256,7 @@ const Q = { class: "margin-l-4" }, W = { class: "margin-l-4" }, X = { class: "ma
255
256
  _: 1
256
257
  }));
257
258
  }
258
- }), pe = /* @__PURE__ */ M(oe, [["__scopeId", "data-v-bdb018f5"]]);
259
+ }), pe = /* @__PURE__ */ M(oe, [["__scopeId", "data-v-e6dfd14e"]]);
259
260
  export {
260
261
  pe as default
261
262
  };
@@ -0,0 +1 @@
1
+ "use strict";var _=Object.defineProperty,h=Object.defineProperties;var w=Object.getOwnPropertyDescriptors;var p=Object.getOwnPropertySymbols;var S=Object.prototype.hasOwnProperty,b=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={}))S.call(o,r)&&V(s,r,o[r]);if(p)for(var r of p(o))b.call(o,r)&&V(s,r,o[r]);return s},C=(s,o)=>h(s,w(o));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),x=require("./useCommonDwOO5Nl8.js"),t=require("element-plus"),y=require("./processW2UX8zWN.js"),c=require("./indexDMPBpE5E.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",teleported:!1},{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-e6dfd14e"]]);exports.default=B;
@@ -1,5 +1,5 @@
1
1
  import { createElementBlock as o, openBlock as C, createElementVNode as t } from "vue";
2
- import { _ as r } from "./indexBTX88dQr.js";
2
+ import { _ as r } from "./indexCE3et5Ds.js";
3
3
  const n = {}, c = {
4
4
  viewBox: "0 0 24 24",
5
5
  xmlns: "http://www.w3.org/2000/svg"
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),o=require("./indexByL7ETN6.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;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),o=require("./indexDMPBpE5E.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;
@@ -1,5 +1,5 @@
1
1
  import { createElementBlock as o, openBlock as r, createElementVNode as t } from "vue";
2
- import { _ as n } from "./indexBTX88dQr.js";
2
+ import { _ as n } from "./indexCE3et5Ds.js";
3
3
  const l = {}, c = {
4
4
  width: "24",
5
5
  height: "24",
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),n=require("./indexByL7ETN6.js"),r={},o={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",o,t[0]||(t[0]=[e.createElementVNode("g",null,[e.createElementVNode("path",{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",fill:"currentColor"})],-1)]))}const c=n._export_sfc(r,[["render",l]]);exports.default=c;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),n=require("./indexDMPBpE5E.js"),r={},o={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",o,t[0]||(t[0]=[e.createElementVNode("g",null,[e.createElementVNode("path",{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",fill:"currentColor"})],-1)]))}const c=n._export_sfc(r,[["render",l]]);exports.default=c;
@@ -1,10 +1,10 @@
1
1
  import { defineComponent as C, mergeDefaults as y, inject as h, ref as g, watch as w, createBlock as V, openBlock as P, unref as i, withCtx as c, createVNode as r, createElementVNode as o, normalizeStyle as E, normalizeClass as I, toDisplayString as M } from "vue";
2
2
  import { isPointInEllipse as $, getAngle as F } from "kfb-view";
3
- import { u as N, d as B } from "./useCommon2885p97b.js";
3
+ import { u as N, d as B } from "./useCommonDx4AkPn-.js";
4
4
  import { ElPopover as D, ElCard as R, ElInputNumber as S, ElIcon as j } from "element-plus";
5
- import A from "./rotateBsqpoRO8.js";
6
- import q from "./arrowCircleBZ0vbL6z.js";
7
- import { _ as T } from "./indexBTX88dQr.js";
5
+ import A from "./rotateDaRh7p8x.js";
6
+ import q from "./arrowCircle7NmwbGoq.js";
7
+ import { _ as T } from "./indexCE3et5Ds.js";
8
8
  const U = { class: "flex align-items-center" }, X = { class: "flex column align-items-center flex-1" }, Y = { class: "flex justify-content-center align-items-center" }, G = { class: "hzzt-kfb-toolbox-rotate__container" }, H = { class: "hzzt-kfb-toolbox-rotate__angle" }, J = { class: "hzzt-kfb-toolbox__icon" }, K = /* @__PURE__ */ C({
9
9
  name: "ToolRotate",
10
10
  __name: "rotate",
@@ -54,7 +54,8 @@ const U = { class: "flex align-items-center" }, X = { class: "flex column align-
54
54
  placement: "bottom",
55
55
  width: "260px",
56
56
  trigger: "click",
57
- "popper-class": "el-popover-padding-0"
57
+ "popper-class": "el-popover-padding-0",
58
+ teleported: !1
58
59
  }, {
59
60
  reference: c(() => [
60
61
  o("div", J, [
@@ -126,7 +127,7 @@ const U = { class: "flex align-items-center" }, X = { class: "flex column align-
126
127
  _: 1
127
128
  }));
128
129
  }
129
- }), nt = /* @__PURE__ */ T(K, [["__scopeId", "data-v-23fd8f31"]]);
130
+ }), nt = /* @__PURE__ */ T(K, [["__scopeId", "data-v-fa4e8516"]]);
130
131
  export {
131
132
  nt as default
132
133
  };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),x=require("kfb-view"),_=require("./useCommonDwOO5Nl8.js"),s=require("element-plus"),V=require("./rotateDW3tCSd4.js"),N=require("./arrowCircleCtoruF4U.js"),C=require("./indexDMPBpE5E.js"),E={class:"flex align-items-center"},k={class:"flex column align-items-center flex-1"},w={class:"flex justify-content-center align-items-center"},h={class:"hzzt-kfb-toolbox-rotate__container"},y={class:"hzzt-kfb-toolbox-rotate__angle"},P={class:"hzzt-kfb-toolbox__icon"},q=e.defineComponent({name:"ToolRotate",__name:"rotate",props:e.mergeDefaults({size:{},text:{},name:{},component:{},isPrevent:{type:Boolean},callback:{type:Function},options:{}},_.defaultProps),setup($){var f;const{t:g,textClass:b}=_.useCommon(),n=e.inject("kfbViewRef"),i=e.ref(!1),r=e.ref(((f=n==null?void 0:n.value)==null?void 0:f.degrees)||0);e.watch(()=>{var o;return(o=n==null?void 0:n.value)==null?void 0:o.degrees},o=>{r.value=o});function a(o){var t;r.value=parseFloat(o.toFixed(2)),(t=n==null?void 0:n.value)!=null&&t.kfbView&&n.value.kfbView.viewer.viewport.setRotation(r.value)}function d(o){const t=document.querySelector(".hzzt-kfb-toolbox-rotate__container");if(!t)return;const l=t.getBoundingClientRect(),c={x:32,y:32},v={x:o.clientX-l.left,y:o.clientY-l.top};if(x.isPointInEllipse(v,c,32,32)){const p=x.getAngle(c,{x:c.x,y:0},v);if(isNaN(p/Math.PI*180))return;let u=parseFloat((p/Math.PI*180).toFixed(2));u<0&&(u+=360),i.value=!0,a(u)}}function z(o){i.value&&d(o)}function m(){i.value=!1}return(o,t)=>(e.openBlock(),e.createBlock(e.unref(s.ElPopover),{placement:"bottom",width:"260px",trigger:"click","popper-class":"el-popover-padding-0",teleported:!1},{reference:e.withCtx(()=>[e.createElementVNode("div",P,[e.createVNode(e.unref(s.ElIcon),{size:o.size},{default:e.withCtx(()=>[e.createVNode(V.default)]),_:1},8,["size"]),e.createElementVNode("div",{class:e.normalizeClass(e.unref(b))},e.toDisplayString(e.unref(g)(o.text||"旋转")),3)])]),default:e.withCtx(()=>[e.createVNode(e.unref(s.ElCard),{shadow:"never","body-style":{padding:"12px 12px 12px 0"}},{default:e.withCtx(()=>[e.createElementVNode("div",E,[e.createElementVNode("div",k,[e.createElementVNode("div",{class:"hzzt-kfb-toolbox-rotate__btn margin-b-1",onClick:t[0]||(t[0]=l=>a(0))}),e.createElementVNode("div",w,[e.createElementVNode("div",{class:"hzzt-kfb-toolbox-rotate__btn margin-r-1",onClick:t[1]||(t[1]=l=>a(270))}),e.createElementVNode("div",h,[e.createElementVNode("div",{class:"hzzt-kfb-toolbox-rotate__img",style:e.normalizeStyle({transform:`rotate(${r.value}deg)`}),onMousedown:d,onMousemove:z,onMouseup:m,onMouseleave:m},[e.createVNode(N.default)],36)]),e.createElementVNode("div",{class:"hzzt-kfb-toolbox-rotate__btn margin-l-1",onClick:t[2]||(t[2]=l=>a(90))})]),e.createElementVNode("div",{class:"hzzt-kfb-toolbox-rotate__btn margin-t-1",onClick:t[3]||(t[3]=l=>a(180))})]),e.createElementVNode("div",y,[e.createVNode(e.unref(s.ElInputNumber),{modelValue:r.value,"onUpdate:modelValue":t[4]||(t[4]=l=>r.value=l),min:0,max:360,step:5,onChange:t[5]||(t[5]=l=>a(r.value))},null,8,["modelValue"])])])]),_:1})]),_:1}))}}),M=C._export_sfc(q,[["__scopeId","data-v-fa4e8516"]]);exports.default=M;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),o=require("./indexByL7ETN6.js"),n={},r={viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"};function c(i,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.875 1.5H15.375C18.0674 1.5 20.25 3.68262 20.25 6.375V9H22.3052C22.4723 9 22.5558 9.20203 22.4377 9.32016L18.671 13.0868C18.5618 13.196 18.375 13.1184 18.375 12.964V6.375C18.375 4.71816 17.0318 3.375 15.375 3.375H10.875C10.6679 3.375 10.5 3.20712 10.5 3V1.875C10.5 1.66788 10.6679 1.5 10.875 1.5ZM1.875 20.25H15.375C15.5822 20.25 15.75 20.0822 15.75 19.875V6.375C15.75 6.16781 15.5822 6 15.375 6H1.875C1.66781 6 1.5 6.16781 1.5 6.375V19.875C1.5 20.0822 1.66781 20.25 1.875 20.25Z"})],-1)]))}const s=o._export_sfc(n,[["render",c]]);exports.default=s;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),o=require("./indexDMPBpE5E.js"),n={},r={viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"};function c(i,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.875 1.5H15.375C18.0674 1.5 20.25 3.68262 20.25 6.375V9H22.3052C22.4723 9 22.5558 9.20203 22.4377 9.32016L18.671 13.0868C18.5618 13.196 18.375 13.1184 18.375 12.964V6.375C18.375 4.71816 17.0318 3.375 15.375 3.375H10.875C10.6679 3.375 10.5 3.20712 10.5 3V1.875C10.5 1.66788 10.6679 1.5 10.875 1.5ZM1.875 20.25H15.375C15.5822 20.25 15.75 20.0822 15.75 19.875V6.375C15.75 6.16781 15.5822 6 15.375 6H1.875C1.66781 6 1.5 6.16781 1.5 6.375V19.875C1.5 20.0822 1.66781 20.25 1.875 20.25Z"})],-1)]))}const s=o._export_sfc(n,[["render",c]]);exports.default=s;
@@ -1,5 +1,5 @@
1
1
  import { createElementBlock as o, openBlock as r, createElementVNode as t } from "vue";
2
- import { _ as n } from "./indexBTX88dQr.js";
2
+ import { _ as n } from "./indexCE3et5Ds.js";
3
3
  const c = {}, s = {
4
4
  viewBox: "0 0 24 24",
5
5
  xmlns: "http://www.w3.org/2000/svg"
@@ -1,8 +1,8 @@
1
1
  import { defineComponent as x, mergeDefaults as f, ref as b, createBlock as V, openBlock as c, unref as e, withCtx as r, createVNode as i, createElementVNode as m, normalizeClass as C, toDisplayString as z } from "vue";
2
- import { u as E, d as w } from "./useCommon2885p97b.js";
2
+ import { u as E, d as w } from "./useCommonDx4AkPn-.js";
3
3
  import { ElPopover as k, ElCard as U, ElForm as F, ElFormItem as d, ElSwitch as s, ElIcon as S } from "element-plus";
4
- import _ from "./settingCKE17BGk.js";
5
- import { _ as B } from "./indexBTX88dQr.js";
4
+ import _ from "./settingCygsrWwb.js";
5
+ import { _ as B } from "./indexCE3et5Ds.js";
6
6
  const I = { class: "hzzt-kfb-toolbox__icon" }, P = /* @__PURE__ */ x({
7
7
  name: "ToolSetting",
8
8
  __name: "setting",
@@ -35,7 +35,8 @@ const I = { class: "hzzt-kfb-toolbox__icon" }, P = /* @__PURE__ */ x({
35
35
  placement: "bottom",
36
36
  width: "230px",
37
37
  trigger: "click",
38
- "popper-class": "el-popover-padding-0"
38
+ "popper-class": "el-popover-padding-0",
39
+ teleported: !1
39
40
  }, {
40
41
  reference: r(() => [
41
42
  m("div", I, [
@@ -142,7 +143,7 @@ const I = { class: "hzzt-kfb-toolbox__icon" }, P = /* @__PURE__ */ x({
142
143
  _: 1
143
144
  }));
144
145
  }
145
- }), G = /* @__PURE__ */ B(P, [["__scopeId", "data-v-3599775b"]]);
146
+ }), G = /* @__PURE__ */ B(P, [["__scopeId", "data-v-3a6db7ab"]]);
146
147
  export {
147
148
  G as default
148
149
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const C=require("vue"),t=require("./indexByL7ETN6.js"),n={},o={viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"};function r(d,e){return C.openBlock(),C.createElementBlock("svg",o,e[0]||(e[0]=[C.createElementVNode("g",{id:"24*24/设置"},[C.createElementVNode("path",{id:"Subtract","fill-rule":"evenodd","clip-rule":"evenodd",d:"M21.8811 9.11141L21.9182 9.16079C21.9799 9.25956 22.017 9.38301 21.9923 9.50646V14.494C21.9923 14.6175 21.9676 14.7409 21.9058 14.8397L21.8688 14.8891C21.7453 15.0989 21.523 15.2347 21.2761 15.2347C21.202 15.2347 21.1155 15.2224 21.0414 15.1977C20.9179 15.1607 20.7945 15.136 20.6586 15.136C20.0782 15.136 19.4855 15.531 19.1398 16.1236C18.7076 16.8643 18.7816 17.7902 19.3003 18.2223C19.5596 18.4445 19.6337 18.8025 19.4608 19.0988L19.4114 19.1729C19.362 19.2717 19.2632 19.3581 19.1645 19.4198L14.8425 21.9136C14.7313 21.963 14.6202 22 14.4967 22H14.3609C14.0398 22 13.7681 21.7778 13.6941 21.4568C13.5582 20.8148 12.8297 20.3457 12.0023 20.3457C11.175 20.3457 10.4464 20.8272 10.3106 21.4568C10.2488 21.7778 9.9648 22 9.64374 22H9.5079C9.38442 22 9.26093 21.9753 9.16214 21.9136L4.82781 19.4322C4.72902 19.3828 4.64258 19.284 4.58084 19.1852L4.5191 19.0865C4.35857 18.8025 4.42031 18.4445 4.66728 18.2223C5.16122 17.8026 5.22297 16.926 4.80312 16.1977C4.46971 15.6051 3.88932 15.2224 3.33364 15.2224C3.21016 15.2224 3.08667 15.2471 2.97553 15.2841C2.90144 15.3088 2.82735 15.3211 2.75326 15.3211C2.50629 15.3211 2.28402 15.1853 2.16053 14.9755L2.08644 14.852C2.03705 14.7409 2 14.6298 2 14.5063V9.50646C2 9.38301 2.0247 9.25956 2.08644 9.16079L2.11114 9.08672C2.23462 8.87685 2.4569 8.74105 2.70387 8.74105C2.79031 8.74105 2.87675 8.76574 2.95084 8.79043C3.08667 8.83981 3.2225 8.8645 3.35834 8.8645C3.95107 8.8645 4.5438 8.4818 4.87721 7.88922C5.3094 7.13615 5.22297 6.23493 4.69198 5.7905C4.43266 5.56828 4.35857 5.21027 4.53145 4.91398L4.58084 4.82756C4.63024 4.7288 4.72902 4.64238 4.82781 4.58065L9.17449 2.08688C9.28563 2.0375 9.39677 2.00047 9.52025 2.00047H9.65609C9.97715 1.98812 10.2488 2.22268 10.3229 2.53132C10.4587 3.14859 11.1873 3.60537 12.0147 3.60537C12.842 3.60537 13.5706 3.13624 13.7064 2.53132C13.7681 2.22268 14.0522 2.00047 14.3732 2.00047H14.5091C14.6325 2.00047 14.756 2.02516 14.8548 2.08688L19.1768 4.58065C19.2756 4.64238 19.362 4.7288 19.4238 4.82756L19.4608 4.88929C19.6337 5.18558 19.572 5.55594 19.3126 5.76581C18.7569 6.22259 18.6829 7.14849 19.1151 7.90156C19.4485 8.49414 20.0535 8.87685 20.6339 8.87685C20.7821 8.87685 20.9179 8.85216 21.0538 8.80278C21.1279 8.77809 21.202 8.76574 21.2884 8.76574C21.5354 8.76574 21.7576 8.90154 21.8811 9.11141ZM7 12C7 14.76 9.24 17 12 17C14.76 17 17 14.76 17 12C17 9.24 14.76 7 12 7C9.24 7 7 9.24 7 12Z"})],-1)]))}const c=t._export_sfc(n,[["render",r]]);exports.default=c;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const C=require("vue"),t=require("./indexDMPBpE5E.js"),n={},o={viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"};function r(d,e){return C.openBlock(),C.createElementBlock("svg",o,e[0]||(e[0]=[C.createElementVNode("g",{id:"24*24/设置"},[C.createElementVNode("path",{id:"Subtract","fill-rule":"evenodd","clip-rule":"evenodd",d:"M21.8811 9.11141L21.9182 9.16079C21.9799 9.25956 22.017 9.38301 21.9923 9.50646V14.494C21.9923 14.6175 21.9676 14.7409 21.9058 14.8397L21.8688 14.8891C21.7453 15.0989 21.523 15.2347 21.2761 15.2347C21.202 15.2347 21.1155 15.2224 21.0414 15.1977C20.9179 15.1607 20.7945 15.136 20.6586 15.136C20.0782 15.136 19.4855 15.531 19.1398 16.1236C18.7076 16.8643 18.7816 17.7902 19.3003 18.2223C19.5596 18.4445 19.6337 18.8025 19.4608 19.0988L19.4114 19.1729C19.362 19.2717 19.2632 19.3581 19.1645 19.4198L14.8425 21.9136C14.7313 21.963 14.6202 22 14.4967 22H14.3609C14.0398 22 13.7681 21.7778 13.6941 21.4568C13.5582 20.8148 12.8297 20.3457 12.0023 20.3457C11.175 20.3457 10.4464 20.8272 10.3106 21.4568C10.2488 21.7778 9.9648 22 9.64374 22H9.5079C9.38442 22 9.26093 21.9753 9.16214 21.9136L4.82781 19.4322C4.72902 19.3828 4.64258 19.284 4.58084 19.1852L4.5191 19.0865C4.35857 18.8025 4.42031 18.4445 4.66728 18.2223C5.16122 17.8026 5.22297 16.926 4.80312 16.1977C4.46971 15.6051 3.88932 15.2224 3.33364 15.2224C3.21016 15.2224 3.08667 15.2471 2.97553 15.2841C2.90144 15.3088 2.82735 15.3211 2.75326 15.3211C2.50629 15.3211 2.28402 15.1853 2.16053 14.9755L2.08644 14.852C2.03705 14.7409 2 14.6298 2 14.5063V9.50646C2 9.38301 2.0247 9.25956 2.08644 9.16079L2.11114 9.08672C2.23462 8.87685 2.4569 8.74105 2.70387 8.74105C2.79031 8.74105 2.87675 8.76574 2.95084 8.79043C3.08667 8.83981 3.2225 8.8645 3.35834 8.8645C3.95107 8.8645 4.5438 8.4818 4.87721 7.88922C5.3094 7.13615 5.22297 6.23493 4.69198 5.7905C4.43266 5.56828 4.35857 5.21027 4.53145 4.91398L4.58084 4.82756C4.63024 4.7288 4.72902 4.64238 4.82781 4.58065L9.17449 2.08688C9.28563 2.0375 9.39677 2.00047 9.52025 2.00047H9.65609C9.97715 1.98812 10.2488 2.22268 10.3229 2.53132C10.4587 3.14859 11.1873 3.60537 12.0147 3.60537C12.842 3.60537 13.5706 3.13624 13.7064 2.53132C13.7681 2.22268 14.0522 2.00047 14.3732 2.00047H14.5091C14.6325 2.00047 14.756 2.02516 14.8548 2.08688L19.1768 4.58065C19.2756 4.64238 19.362 4.7288 19.4238 4.82756L19.4608 4.88929C19.6337 5.18558 19.572 5.55594 19.3126 5.76581C18.7569 6.22259 18.6829 7.14849 19.1151 7.90156C19.4485 8.49414 20.0535 8.87685 20.6339 8.87685C20.7821 8.87685 20.9179 8.85216 21.0538 8.80278C21.1279 8.77809 21.202 8.76574 21.2884 8.76574C21.5354 8.76574 21.7576 8.90154 21.8811 9.11141ZM7 12C7 14.76 9.24 17 12 17C14.76 17 17 14.76 17 12C17 9.24 14.76 7 12 7C9.24 7 7 9.24 7 12Z"})],-1)]))}const c=t._export_sfc(n,[["render",r]]);exports.default=c;
@@ -1,5 +1,5 @@
1
1
  import { createElementBlock as t, openBlock as o, createElementVNode as e } from "vue";
2
- import { _ as r } from "./indexBTX88dQr.js";
2
+ import { _ as r } from "./indexCE3et5Ds.js";
3
3
  const n = {}, c = {
4
4
  viewBox: "0 0 24 24",
5
5
  xmlns: "http://www.w3.org/2000/svg"
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),d=require("./useCommonDwOO5Nl8.js"),r=require("element-plus"),m=require("./settingCy068wtb.js"),v=require("./indexDMPBpE5E.js"),x={class:"hzzt-kfb-toolbox__icon"},c=e.defineComponent({name:"ToolSetting",__name:"setting",props:e.mergeDefaults({size:{},text:{},name:{},component:{},isPrevent:{type:Boolean},callback:{type:Function},options:{}},d.defaultProps),emits:["tool"],setup(V,{emit:s}){const i=s,{t:o,textClass:f}=d.useCommon(),a=e.ref({all:!0,grid:!1,ruler:!1,navigator:!0,graduation:!0});function u(n,t){n==="grid"||n==="graduation"?i("tool",n,{show:t}):n==="ruler"?i("tool",n,{ruler:t}):n==="tool"&&(a.value.grid=!!t,a.value.ruler=!!t,a.value.navigator=!!t,a.value.graduation=!!t),i("tool",n,t)}return(n,t)=>(e.openBlock(),e.createBlock(e.unref(r.ElPopover),{placement:"bottom",width:"230px",trigger:"click","popper-class":"el-popover-padding-0",teleported:!1},{reference:e.withCtx(()=>[e.createElementVNode("div",x,[e.createVNode(e.unref(r.ElIcon),{size:n.size},{default:e.withCtx(()=>[e.createVNode(m.default)]),_:1},8,["size"]),e.createElementVNode("div",{class:e.normalizeClass(e.unref(f))},e.toDisplayString(e.unref(o)(n.text||"工具")),3)])]),default:e.withCtx(()=>[e.createVNode(e.unref(r.ElCard),{shadow:"never",header:e.unref(o)("工具"),"body-style":{padding:0}},{default:e.withCtx(()=>[e.createVNode(e.unref(r.ElForm),{"label-width":"85px","label-position":"right"},{default:e.withCtx(()=>[e.createVNode(e.unref(r.ElFormItem),{label:e.unref(o)("全部")},{default:e.withCtx(()=>[e.createVNode(e.unref(r.ElSwitch),{modelValue:a.value.all,"onUpdate:modelValue":t[0]||(t[0]=l=>a.value.all=l),"active-text":e.unref(o)("开"),"inactive-text":e.unref(o)("关"),onChange:t[1]||(t[1]=l=>u("tool",l))},null,8,["modelValue","active-text","inactive-text"])]),_:1},8,["label"]),e.createVNode(e.unref(r.ElFormItem),{label:e.unref(o)("自动网格")},{default:e.withCtx(()=>[e.createVNode(e.unref(r.ElSwitch),{modelValue:a.value.grid,"onUpdate:modelValue":t[2]||(t[2]=l=>a.value.grid=l),"active-text":e.unref(o)("开"),"inactive-text":e.unref(o)("关"),onChange:t[3]||(t[3]=l=>u("grid",l))},null,8,["modelValue","active-text","inactive-text"])]),_:1},8,["label"]),e.createVNode(e.unref(r.ElFormItem),{label:e.unref(o)("自动标尺")},{default:e.withCtx(()=>[e.createVNode(e.unref(r.ElSwitch),{modelValue:a.value.ruler,"onUpdate:modelValue":t[4]||(t[4]=l=>a.value.ruler=l),"active-text":e.unref(o)("开"),"inactive-text":e.unref(o)("关"),onChange:t[5]||(t[5]=l=>u("ruler",l))},null,8,["modelValue","active-text","inactive-text"])]),_:1},8,["label"]),e.createVNode(e.unref(r.ElFormItem),{label:e.unref(o)("导航图")},{default:e.withCtx(()=>[e.createVNode(e.unref(r.ElSwitch),{modelValue:a.value.navigator,"onUpdate:modelValue":t[6]||(t[6]=l=>a.value.navigator=l),"active-text":e.unref(o)("开"),"inactive-text":e.unref(o)("关"),onChange:t[7]||(t[7]=l=>u("navigator",l))},null,8,["modelValue","active-text","inactive-text"])]),_:1},8,["label"]),e.createVNode(e.unref(r.ElFormItem),{label:e.unref(o)("比例尺")},{default:e.withCtx(()=>[e.createVNode(e.unref(r.ElSwitch),{modelValue:a.value.graduation,"onUpdate:modelValue":t[8]||(t[8]=l=>a.value.graduation=l),"active-text":e.unref(o)("开"),"inactive-text":e.unref(o)("关"),onChange:t[9]||(t[9]=l=>u("graduation",l))},null,8,["modelValue","active-text","inactive-text"])]),_:1},8,["label"])]),_:1})]),_:1},8,["header"])]),_:1}))}}),g=v._export_sfc(c,[["__scopeId","data-v-3a6db7ab"]]);exports.default=g;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),n=require("./indexByL7ETN6.js"),r={},o={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function l(L,t){return e.openBlock(),e.createElementBlock("svg",o,t[0]||(t[0]=[e.createElementVNode("g",null,[e.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M10.1529 4.44025C10.8361 2.79767 13.1631 2.79767 13.8463 4.44025L14.7047 6.50373C14.9927 7.19608 15.6447 7.66939 16.3922 7.72931L18.6197 7.90705C20.3929 8.04936 21.1114 10.2624 19.7603 11.4197L18.0631 12.8738C17.4936 13.3618 17.2455 14.1278 17.4195 14.8572L17.9381 17.0311C18.3505 18.7613 16.4679 20.1291 14.9498 19.202L13.0426 18.0369C12.4025 17.646 11.5976 17.646 10.9576 18.0369L9.05037 19.202C7.53225 20.1292 5.64957 18.7614 6.06209 17.0311L6.58065 14.8572C6.75466 14.1277 6.50569 13.3617 5.93611 12.8738L4.23885 11.4197C2.88828 10.2623 3.60732 8.04922 5.38045 7.90705L7.60799 7.72931C8.35551 7.66939 9.00744 7.19611 9.29549 6.50373L10.1529 4.44025ZM12.9234 5.21955C12.5817 4.39867 11.4185 4.3987 11.0767 5.21955L9.85408 8.15998C9.71 8.50601 9.38399 8.74233 9.01033 8.77228L5.83748 9.02717C4.95088 9.09824 4.59083 10.2043 5.26619 10.783L7.68416 12.8543C7.96892 13.0982 8.09339 13.4808 8.00643 13.8455L7.26815 16.9422C7.0618 17.8073 8.00228 18.4913 8.76131 18.0281L11.4791 16.368C11.7989 16.1728 12.2012 16.1728 12.5211 16.368L15.2379 18.0281C15.997 18.4918 16.9384 17.8074 16.732 16.9422L15.9937 13.8455C15.9068 13.4808 16.0312 13.0983 16.316 12.8543L18.734 10.783C19.4092 10.2043 19.0492 9.09824 18.1627 9.02717L14.9898 8.77228C14.6162 8.74233 14.2902 8.50598 14.1461 8.15998L12.9234 5.21955Z",fill:"currentColor"})],-1)]))}const C=n._export_sfc(r,[["render",l]]);exports.default=C;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),n=require("./indexDMPBpE5E.js"),r={},o={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function l(L,t){return e.openBlock(),e.createElementBlock("svg",o,t[0]||(t[0]=[e.createElementVNode("g",null,[e.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M10.1529 4.44025C10.8361 2.79767 13.1631 2.79767 13.8463 4.44025L14.7047 6.50373C14.9927 7.19608 15.6447 7.66939 16.3922 7.72931L18.6197 7.90705C20.3929 8.04936 21.1114 10.2624 19.7603 11.4197L18.0631 12.8738C17.4936 13.3618 17.2455 14.1278 17.4195 14.8572L17.9381 17.0311C18.3505 18.7613 16.4679 20.1291 14.9498 19.202L13.0426 18.0369C12.4025 17.646 11.5976 17.646 10.9576 18.0369L9.05037 19.202C7.53225 20.1292 5.64957 18.7614 6.06209 17.0311L6.58065 14.8572C6.75466 14.1277 6.50569 13.3617 5.93611 12.8738L4.23885 11.4197C2.88828 10.2623 3.60732 8.04922 5.38045 7.90705L7.60799 7.72931C8.35551 7.66939 9.00744 7.19611 9.29549 6.50373L10.1529 4.44025ZM12.9234 5.21955C12.5817 4.39867 11.4185 4.3987 11.0767 5.21955L9.85408 8.15998C9.71 8.50601 9.38399 8.74233 9.01033 8.77228L5.83748 9.02717C4.95088 9.09824 4.59083 10.2043 5.26619 10.783L7.68416 12.8543C7.96892 13.0982 8.09339 13.4808 8.00643 13.8455L7.26815 16.9422C7.0618 17.8073 8.00228 18.4913 8.76131 18.0281L11.4791 16.368C11.7989 16.1728 12.2012 16.1728 12.5211 16.368L15.2379 18.0281C15.997 18.4918 16.9384 17.8074 16.732 16.9422L15.9937 13.8455C15.9068 13.4808 16.0312 13.0983 16.316 12.8543L18.734 10.783C19.4092 10.2043 19.0492 9.09824 18.1627 9.02717L14.9898 8.77228C14.6162 8.74233 14.2902 8.50598 14.1461 8.15998L12.9234 5.21955Z",fill:"currentColor"})],-1)]))}const C=n._export_sfc(r,[["render",l]]);exports.default=C;
@@ -1,5 +1,5 @@
1
1
  import { createElementBlock as o, openBlock as r, createElementVNode as t } from "vue";
2
- import { _ as C } from "./indexBTX88dQr.js";
2
+ import { _ as C } from "./indexCE3et5Ds.js";
3
3
  const L = {}, n = {
4
4
  width: "24",
5
5
  height: "24",
@@ -1,5 +1,5 @@
1
1
  import { createElementBlock as e, openBlock as o, createElementVNode as V } from "vue";
2
- import { _ as H } from "./indexBTX88dQr.js";
2
+ import { _ as H } from "./indexCE3et5Ds.js";
3
3
  const r = {}, n = {
4
4
  viewBox: "0 0 24 24",
5
5
  xmlns: "http://www.w3.org/2000/svg"
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),V=require("./indexByL7ETN6.js"),o={},r={viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"};function n(c,t){return e.openBlock(),e.createElementBlock("svg",r,t[0]||(t[0]=[e.createElementVNode("g",{id:"24*24/框选"},[e.createElementVNode("path",{id:"Vector",d:"M6.00001 1.94995H7.95001V3.89995H6.00001V1.94995ZM1.95001 13.95H3.90001V15.9H1.95001V13.95ZM13.95 1.94995H15.9V3.89995H13.95V1.94995ZM1.95001 10.05H3.90001V12H1.95001V10.05ZM10.05 1.94995H12V3.89995H10.05V1.94995ZM21.9 21.3V17.4L19.95 18L21.9 21.3ZM1.95001 5.99995H3.90001V7.94995H1.95001V5.99995Z"}),e.createElementVNode("path",{id:"Vector_2",d:"M21.75 8.24995C21.6 8.09995 21.3 7.94995 21 7.94995H16.05V5.99995H13.95V7.94995H9.00001C8.70001 7.94995 8.55001 8.09995 8.25001 8.24995C8.10001 8.54995 7.95001 8.69995 7.95001 8.99995V13.95H6.00001V15.9H7.95001V21C7.95001 21.3 8.10001 21.45 8.25001 21.75C8.40001 21.9 8.70001 22.05 9.00001 22.05H20.1L18.3 18.9L16.05 21V12.9L22.05 16.35V8.99995C22.05 8.69995 21.9 8.54995 21.75 8.24995ZM1.95001 1.94995H3.90001V3.89995H1.95001V1.94995Z"})],-1)]))}const H=V._export_sfc(o,[["render",n]]);exports.default=H;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),V=require("./indexDMPBpE5E.js"),o={},r={viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"};function n(c,t){return e.openBlock(),e.createElementBlock("svg",r,t[0]||(t[0]=[e.createElementVNode("g",{id:"24*24/框选"},[e.createElementVNode("path",{id:"Vector",d:"M6.00001 1.94995H7.95001V3.89995H6.00001V1.94995ZM1.95001 13.95H3.90001V15.9H1.95001V13.95ZM13.95 1.94995H15.9V3.89995H13.95V1.94995ZM1.95001 10.05H3.90001V12H1.95001V10.05ZM10.05 1.94995H12V3.89995H10.05V1.94995ZM21.9 21.3V17.4L19.95 18L21.9 21.3ZM1.95001 5.99995H3.90001V7.94995H1.95001V5.99995Z"}),e.createElementVNode("path",{id:"Vector_2",d:"M21.75 8.24995C21.6 8.09995 21.3 7.94995 21 7.94995H16.05V5.99995H13.95V7.94995H9.00001C8.70001 7.94995 8.55001 8.09995 8.25001 8.24995C8.10001 8.54995 7.95001 8.69995 7.95001 8.99995V13.95H6.00001V15.9H7.95001V21C7.95001 21.3 8.10001 21.45 8.25001 21.75C8.40001 21.9 8.70001 22.05 9.00001 22.05H20.1L18.3 18.9L16.05 21V12.9L22.05 16.35V8.99995C22.05 8.69995 21.9 8.54995 21.75 8.24995ZM1.95001 1.94995H3.90001V3.89995H1.95001V1.94995Z"})],-1)]))}const H=V._export_sfc(o,[["render",n]]);exports.default=H;
@@ -1 +1 @@
1
- "use strict";const e=require("vue"),n=require("./indexByL7ETN6.js"),u={size:24,isPrevent:!1};function c(){const t=e.inject("show-menu-text",{value:!0}),{t:o}=n.useLocalI18n(),s=e.computed(()=>t.value?"hzzt-kfb-toolbox__text":"hzzt-kfb-toolbox__tooltip");return{showText:t,t:o,textClass:s}}exports.defaultProps=u;exports.useCommon=c;
1
+ "use strict";const e=require("vue"),n=require("./indexDMPBpE5E.js"),u={size:24,isPrevent:!1};function c(){const t=e.inject("show-menu-text",{value:!0}),{t:o}=n.useLocalI18n(),s=e.computed(()=>t.value?"hzzt-kfb-toolbox__text":"hzzt-kfb-toolbox__tooltip");return{showText:t,t:o,textClass:s}}exports.defaultProps=u;exports.useCommon=c;
@@ -1,5 +1,5 @@
1
1
  import { inject as s, computed as n } from "vue";
2
- import { u } from "./indexBTX88dQr.js";
2
+ import { u } from "./indexCE3et5Ds.js";
3
3
  const l = {
4
4
  size: 24,
5
5
  isPrevent: !1
@@ -1,5 +1,5 @@
1
1
  import { createElementBlock as o, openBlock as r, createElementVNode as t } from "vue";
2
- import { _ as c } from "./indexBTX88dQr.js";
2
+ import { _ as c } from "./indexCE3et5Ds.js";
3
3
  const n = {}, l = {
4
4
  viewBox: "0 0 1024 1024",
5
5
  version: "1.1",
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),r=require("./indexByL7ETN6.js"),o={},c={viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"200",height:"200"};function n(i,t){return e.openBlock(),e.createElementBlock("svg",c,t[0]||(t[0]=[e.createElementVNode("path",{d:"M515.041727 670.617766c91.584167 0 166.095647-74.504255 166.095647-166.095646V229.350568c0-91.584167-74.51148-166.095647-166.095647-166.095647-91.598617 0-166.102872 74.51148-166.102871 166.095647V504.52212c0 91.591392 74.504255 166.095647 166.102871 166.095646z",fill:"currentColor"},null,-1),e.createElementVNode("path",{d:"M801.643237 874.001665H558.391759v-45.423608c161.507768-21.313766 286.60151-159.788217 286.60151-327.01819a43.350032 43.350032 0 0 0-86.700064 0c0 134.124998-109.12648 243.251478-243.258703 243.251479-134.124998 0-243.244253-109.12648-243.244253-243.251479a43.350032 43.350032 0 0 0-86.700063 0c0 167.229972 125.100967 305.711649 286.601509 327.01819v45.423608H228.440217a43.350032 43.350032 0 0 0 0 86.700064h573.20302a43.350032 43.350032 0 0 0 0-86.700064z",fill:"currentColor"},null,-1)]))}const l=r._export_sfc(o,[["render",n]]);exports.default=l;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),r=require("./indexDMPBpE5E.js"),o={},c={viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"200",height:"200"};function n(i,t){return e.openBlock(),e.createElementBlock("svg",c,t[0]||(t[0]=[e.createElementVNode("path",{d:"M515.041727 670.617766c91.584167 0 166.095647-74.504255 166.095647-166.095646V229.350568c0-91.584167-74.51148-166.095647-166.095647-166.095647-91.598617 0-166.102872 74.51148-166.102871 166.095647V504.52212c0 91.591392 74.504255 166.095647 166.102871 166.095646z",fill:"currentColor"},null,-1),e.createElementVNode("path",{d:"M801.643237 874.001665H558.391759v-45.423608c161.507768-21.313766 286.60151-159.788217 286.60151-327.01819a43.350032 43.350032 0 0 0-86.700064 0c0 134.124998-109.12648 243.251478-243.258703 243.251479-134.124998 0-243.244253-109.12648-243.244253-243.251479a43.350032 43.350032 0 0 0-86.700063 0c0 167.229972 125.100967 305.711649 286.601509 327.01819v45.423608H228.440217a43.350032 43.350032 0 0 0 0 86.700064h573.20302a43.350032 43.350032 0 0 0 0-86.700064z",fill:"currentColor"},null,-1)]))}const l=r._export_sfc(o,[["render",n]]);exports.default=l;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),i=require("element-plus"),_=require("./indexByL7ETN6.js"),b={class:"hzzt-kfb-toolbox-zoom"},z=["data-index","onClick"],k={class:"hzzt-kfb-toolbox__text"},p={class:"hzzt-kfb-toolbox-zoom__button"},x=e.defineComponent({name:"ToolZoom",__name:"zoom",emits:["tool"],setup(v,{emit:r}){var c;const u=r,t=e.inject("kfbViewRef"),m=[{scaleNum:2,style:"background-color: rgba(0, 0, 0, 0.5)"},{scaleNum:4,style:"background-color: rgba(0, 0, 0, 0.6)"},{scaleNum:10,style:"background-color: rgba(0, 0, 0, 0.7)"},{scaleNum:20,style:"background-color: rgba(0, 0, 0, 0.8)"},{scaleNum:40,style:"background-color: rgba(0, 0, 0, 0.8)"}],n=e.ref(`${((c=t==null?void 0:t.value)==null?void 0:c.zoom)||"0x"}`);e.watch(()=>{var o;return(o=t==null?void 0:t.value)==null?void 0:o.zoom},o=>{n.value=`${o}x`});function s(o){u("tool","zoom",o)}return(o,a)=>(e.openBlock(),e.createElementBlock("div",b,[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(m,(l,d)=>e.createElementVNode("div",{key:d,class:"hzzt-kfb-toolbox__icon","data-index":l.scaleNum,onClick:N=>s(l.scaleNum)},[e.createElementVNode("span",k,e.toDisplayString(l.scaleNum)+"x",1)],8,z)),64)),e.createElementVNode("div",p,[e.createVNode(e.unref(i.ElInput),{modelValue:n.value,"onUpdate:modelValue":a[0]||(a[0]=l=>n.value=l),class:"hzzt-kfb-toolbox-zoom__input",onKeydown:a[1]||(a[1]=e.withKeys(l=>s(Number(n.value.replace("x",""))),["enter"]))},null,8,["modelValue"])])]))}}),g=_._export_sfc(x,[["__scopeId","data-v-af758f1f"]]);exports.default=g;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),i=require("element-plus"),_=require("./indexDMPBpE5E.js"),b={class:"hzzt-kfb-toolbox-zoom"},z=["data-index","onClick"],k={class:"hzzt-kfb-toolbox__text"},p={class:"hzzt-kfb-toolbox-zoom__button"},x=e.defineComponent({name:"ToolZoom",__name:"zoom",emits:["tool"],setup(v,{emit:r}){var c;const u=r,t=e.inject("kfbViewRef"),m=[{scaleNum:2,style:"background-color: rgba(0, 0, 0, 0.5)"},{scaleNum:4,style:"background-color: rgba(0, 0, 0, 0.6)"},{scaleNum:10,style:"background-color: rgba(0, 0, 0, 0.7)"},{scaleNum:20,style:"background-color: rgba(0, 0, 0, 0.8)"},{scaleNum:40,style:"background-color: rgba(0, 0, 0, 0.8)"}],n=e.ref(`${((c=t==null?void 0:t.value)==null?void 0:c.zoom)||"0x"}`);e.watch(()=>{var o;return(o=t==null?void 0:t.value)==null?void 0:o.zoom},o=>{n.value=`${o}x`});function s(o){u("tool","zoom",o)}return(o,a)=>(e.openBlock(),e.createElementBlock("div",b,[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(m,(l,d)=>e.createElementVNode("div",{key:d,class:"hzzt-kfb-toolbox__icon","data-index":l.scaleNum,onClick:N=>s(l.scaleNum)},[e.createElementVNode("span",k,e.toDisplayString(l.scaleNum)+"x",1)],8,z)),64)),e.createElementVNode("div",p,[e.createVNode(e.unref(i.ElInput),{modelValue:n.value,"onUpdate:modelValue":a[0]||(a[0]=l=>n.value=l),class:"hzzt-kfb-toolbox-zoom__input",onKeydown:a[1]||(a[1]=e.withKeys(l=>s(Number(n.value.replace("x",""))),["enter"]))},null,8,["modelValue"])])]))}}),g=_._export_sfc(x,[["__scopeId","data-v-af758f1f"]]);exports.default=g;
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as b, inject as z, ref as p, watch as x, createElementBlock as r, openBlock as m, createElementVNode as s, Fragment as f, renderList as k, toDisplayString as g, createVNode as v, unref as N, withKeys as y } from "vue";
2
2
  import { ElInput as h } from "element-plus";
3
- import { _ as V } from "./indexBTX88dQr.js";
3
+ import { _ as V } from "./indexCE3et5Ds.js";
4
4
  const w = { class: "hzzt-kfb-toolbox-zoom" }, $ = ["data-index", "onClick"], C = { class: "hzzt-kfb-toolbox__text" }, E = { class: "hzzt-kfb-toolbox-zoom__button" }, B = /* @__PURE__ */ b({
5
5
  name: "ToolZoom",
6
6
  __name: "zoom",
@@ -1,5 +1,5 @@
1
1
  import { createElementBlock as o, openBlock as n, createElementVNode as e } from "vue";
2
- import { _ as l } from "./indexBTX88dQr.js";
2
+ import { _ as l } from "./indexCE3et5Ds.js";
3
3
  const s = {}, r = {
4
4
  t: "1748500532947",
5
5
  class: "icon",
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),n=require("./indexByL7ETN6.js"),o={},l={t:"1748500532947",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"10927",width:"32",height:"32"};function r(i,t){return e.openBlock(),e.createElementBlock("svg",l,t[0]||(t[0]=[e.createElementVNode("path",{d:"M919.264 905.984l-138.912-138.912C851.808 692.32 896 591.328 896 480c0-229.376-186.624-416-416-416S64 250.624 64 480s186.624 416 416 416c95.008 0 182.432-32.384 252.544-86.208l141.44 141.44a31.904 31.904 0 0 0 45.248 0 32 32 0 0 0 0.032-45.248zM128 480C128 285.92 285.92 128 480 128s352 157.92 352 352-157.92 352-352 352S128 674.08 128 480z","p-id":"10928",fill:"#333333"},null,-1),e.createElementVNode("path",{d:"M625.792 448H336a32 32 0 0 0 0 64h289.792a32 32 0 1 0 0-64z","p-id":"10929",fill:"#333333"},null,-1)]))}const c=n._export_sfc(o,[["render",r]]);exports.default=c;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),n=require("./indexDMPBpE5E.js"),o={},l={t:"1748500532947",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"10927",width:"32",height:"32"};function r(i,t){return e.openBlock(),e.createElementBlock("svg",l,t[0]||(t[0]=[e.createElementVNode("path",{d:"M919.264 905.984l-138.912-138.912C851.808 692.32 896 591.328 896 480c0-229.376-186.624-416-416-416S64 250.624 64 480s186.624 416 416 416c95.008 0 182.432-32.384 252.544-86.208l141.44 141.44a31.904 31.904 0 0 0 45.248 0 32 32 0 0 0 0.032-45.248zM128 480C128 285.92 285.92 128 480 128s352 157.92 352 352-157.92 352-352 352S128 674.08 128 480z","p-id":"10928",fill:"#333333"},null,-1),e.createElementVNode("path",{d:"M625.792 448H336a32 32 0 0 0 0 64h289.792a32 32 0 1 0 0-64z","p-id":"10929",fill:"#333333"},null,-1)]))}const c=n._export_sfc(o,[["render",r]]);exports.default=c;
@@ -1,5 +1,5 @@
1
1
  import { createElementBlock as o, openBlock as s, createElementVNode as t } from "vue";
2
- import { _ as a } from "./indexBTX88dQr.js";
2
+ import { _ as a } from "./indexCE3et5Ds.js";
3
3
  const c = {}, l = {
4
4
  t: "1748500019773",
5
5
  class: "icon",
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),n=require("./indexByL7ETN6.js"),c={},o={t:"1748500019773",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"9740",width:"32",height:"32"};function s(i,t){return e.openBlock(),e.createElementBlock("svg",o,t[0]||(t[0]=[e.createElementVNode("path",{d:"M919.264 905.984l-138.912-138.912C851.808 692.32 896 591.328 896 480c0-229.376-186.624-416-416-416S64 250.624 64 480s186.624 416 416 416c95.008 0 182.432-32.384 252.544-86.208l141.44 141.44a31.904 31.904 0 0 0 45.248 0 32 32 0 0 0 0.032-45.248zM128 480C128 285.92 285.92 128 480 128s352 157.92 352 352-157.92 352-352 352S128 674.08 128 480z","p-id":"9741",fill:"#333333","data-spm-anchor-id":"a313x.search_index.0.i5.3c223a8142DgM6",class:"selected"},null,-1),e.createElementVNode("path",{d:"M625.792 448H512v-112a32 32 0 0 0-64 0V448h-112a32 32 0 0 0 0 64H448v112a32 32 0 1 0 64 0V512h113.792a32 32 0 1 0 0-64z","p-id":"9742",fill:"#333333"},null,-1)]))}const l=n._export_sfc(c,[["render",s]]);exports.default=l;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),n=require("./indexDMPBpE5E.js"),c={},o={t:"1748500019773",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"9740",width:"32",height:"32"};function s(i,t){return e.openBlock(),e.createElementBlock("svg",o,t[0]||(t[0]=[e.createElementVNode("path",{d:"M919.264 905.984l-138.912-138.912C851.808 692.32 896 591.328 896 480c0-229.376-186.624-416-416-416S64 250.624 64 480s186.624 416 416 416c95.008 0 182.432-32.384 252.544-86.208l141.44 141.44a31.904 31.904 0 0 0 45.248 0 32 32 0 0 0 0.032-45.248zM128 480C128 285.92 285.92 128 480 128s352 157.92 352 352-157.92 352-352 352S128 674.08 128 480z","p-id":"9741",fill:"#333333","data-spm-anchor-id":"a313x.search_index.0.i5.3c223a8142DgM6",class:"selected"},null,-1),e.createElementVNode("path",{d:"M625.792 448H512v-112a32 32 0 0 0-64 0V448h-112a32 32 0 0 0 0 64H448v112a32 32 0 1 0 64 0V512h113.792a32 32 0 1 0 0-64z","p-id":"9742",fill:"#333333"},null,-1)]))}const l=n._export_sfc(c,[["render",s]]);exports.default=l;
package/dist/index.cjs.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./components/indexByL7ETN6.js");exports.HzztKfbSlide=e._sfc_main$1;exports.HzztKfbToolbox=e._sfc_main$3;exports.HzztKfbView=e._sfc_main$2;exports.I18N_INJECT_KEY=e.I18N_INJECT_KEY;exports.default=e.index;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./components/indexDMPBpE5E.js");exports.HzztKfbSlide=e._sfc_main$1;exports.HzztKfbToolbox=e._sfc_main$3;exports.HzztKfbView=e._sfc_main$2;exports.I18N_INJECT_KEY=e.I18N_INJECT_KEY;exports.default=e.index;
package/dist/index.css CHANGED
@@ -1 +1 @@
1
- @charset "UTF-8";.hzzt-kfb-tool-config{--hzzt-kfb-tool-config-title-font-size: 20px;--hzzt-kfb-tool-config-title-color: #000000;--hzzt-kfb-tool-config-font-size: 14px;--hzzt-kfb-tool-config-color: #000000;--hzzt-kfb-tool-config-icon-color: #ffffff;--hzzt-kfb-tool-config-icon-background-color: #000000;--hzzt-kfb-tool-config-block-background-color: #ffffff;font-size:var(--hzzt-kfb-tool-config-font-size);color:var(--hzzt-kfb-tool-config-color)}.hzzt-kfb-tool-config__title{font-size:var(--hzzt-kfb-tool-config-title-font-size);color:var(--hzzt-kfb-tool-config-title-color)}.hzzt-kfb-tool-config__icon{width:48px;height:48px;border-radius:100%;color:var(--hzzt-kfb-tool-config-icon-color);background-color:var(--hzzt-kfb-tool-config-icon-background-color)}.hzzt-kfb-tool-config__block{width:240px;padding:8px;margin-bottom:8px;background-color:var(--hzzt-kfb-tool-config-block-background-color);border:var(--el-border)}.hzzt-kfb-toolbox{--hzzt-kfb-toolbox-padding: 8px 0;--hzzt-kfb-toolbox-font-size: 12px;--hzzt-kfb-toolbox-background-color: #fff;--hzzt-kfb-toolbox-icon-width: 40px;--hzzt-kfb-toolbox-icon-color: #000000;--hzzt-kfb-toolbox-icon-hover-color: #FFFFFF;--hzzt-kfb-toolbox-icon-hover-background-color: #424D68;--hzzt-kfb-toolbox-tooltip-color: #FFFFFF;--hzzt-kfb-toolbox-tooltip-background-color: #0655C3;--hzzt-kfb-toolbox-text-color: #000000;--hzzt-kfb-toolbox-text-hover-color: #FFFFFF;display:flex;align-items:center;justify-content:space-between;background-color:var(--hzzt-kfb-toolbox-background-color);padding:var(--hzzt-kfb-toolbox-padding);font-size:var(--hzzt-kfb-toolbox-font-size);position:relative;border-bottom:1px solid var(--hzzt-border-color, #DCDCDC);width:100%}.hzzt-kfb-toolbox__component{display:flex;flex:1;align-items:center;justify-content:center}.hzzt-kfb-toolbox__icon{min-width:var(--hzzt-kfb-toolbox-icon-width);color:var(--hzzt-kfb-toolbox-icon-color);display:flex;flex-direction:column;align-items:center;justify-content:center;cursor:pointer;position:relative;margin:0 4px}.hzzt-kfb-toolbox__icon:hover{color:var(--hzzt-kfb-toolbox-icon-hover-color);background:var(--hzzt-kfb-toolbox-icon-hover-background-color);border-radius:4px}.hzzt-kfb-toolbox__icon:hover .hzzt-kfb-toolbox__tooltip{display:flex}.hzzt-kfb-toolbox__icon:hover .hzzt-kfb-toolbox__text{color:var(--hzzt-kfb-toolbox-text-hover-color)}.hzzt-kfb-toolbox__tooltip{align-items:center;justify-content:center;background-color:var(--hzzt-kfb-toolbox-tooltip-background-color);position:absolute;color:var(--hzzt-kfb-toolbox-tooltip-color);padding:2px 4px;border-radius:4px;top:30px;display:none;white-space:nowrap;z-index:9999}.hzzt-kfb-toolbox__text{color:var(--hzzt-kfb-toolbox-text-color)}.hzzt-kfb-toolbox__line{--hzzt-kfb-toolbox-line-color: #A8ABB2;margin:0 8px;width:1px;height:20px;background:var(--hzzt-kfb-toolbox-line-color)}.hzzt-kfb-toolbox-rotate__angle .el-input-number{width:120PX}.hzzt-kfb-toolbox-rotate__btn{--hzzt-kfb-toolbox-rotate-btn-backgroud-color: #3B55BF;cursor:pointer;width:10px;height:10px;background:var(--hzzt-kfb-toolbox-rotate-btn-backgroud-color);z-index:2}.hzzt-kfb-toolbox-rotate__container{width:64px;height:64px}.hzzt-kfb-toolbox-rotate__img{cursor:pointer;user-select:none;width:100%;height:100%}.hzzt-kfb-toolbox-zoom{display:flex;--hzzt-kfb-toolbox-zoom-backgroud-color: #F3F3F4}.hzzt-kfb-toolbox-zoom__button{font-size:16px;line-height:16px;margin-left:2px;height:32px;background:var(--hzzt-kfb-toolbox-zoom-backgroud-color);border-radius:4px;border:1px solid #DCDDE1}.hzzt-kfb-toolbox-zoom__input{width:60px;height:30px;--el-input-bg-color: getCssVarNoName($B, "backgroud-color");--el-input-text-color: #000;--el-input-border: none}.hzzt-kfb-toolbox-zoom__input .el-input__wrapper{box-shadow:none}.hzzt-kfb-toolbox-zoom__input .el-input__wrapper .el-input__inner{font-size:16px;font-weight:600}.el-popover-padding-0{--el-popover-padding: 0 }.hzzt-kfb-menu[data-v-414722d0]{position:absolute;display:none;background:#fff;box-shadow:var(--el-box-shadow);border-radius:var(--el-border-radius-base);padding:8px 0;font-size:14px}.hzzt-kfb-menu .hzzt-kfb-menu-item[data-v-414722d0]{min-width:200px;display:flex;align-items:center;justify-content:space-between;padding:6px 16px;position:relative;cursor:pointer;line-height:1}.hzzt-kfb-menu .hzzt-kfb-menu-item[data-v-414722d0]:hover{background:var(--el-color-info-light-8)}.hzzt-kfb-menu .hzzt-kfb-menu-item:hover .hzzt-kfb-sub-menu[data-v-414722d0]{display:block}.hzzt-kfb-menu .hzzt-kfb-menu-item .hzzt-kfb-sub-menu[data-v-414722d0]{position:absolute;display:none;left:0;top:0;transform:translate(200px);box-shadow:var(--el-box-shadow);border-radius:var(--el-border-radius-base);padding:8px 0;background:#fff}.hzzt-kfb-menu .hzzt-kfb-menu-item .hzzt-kfb-sub-menu .hzzt-kfb-menu-item[data-v-414722d0],.hzzt-kfb-menu[data-v-414722d0] .el-cascader-menu{min-width:auto}.hzzt-kfb-menu[data-v-414722d0] .el-cascader-menu .el-cascader-node__label{display:flex;align-items:center;padding:0 16px 0 8px}.hzzt-kfb-menu[data-v-414722d0] .el-cascader-menu .el-cascader-menu__wrap.el-scrollbar__wrap{height:auto}.hzzt-kfb-microscope[data-v-e8b36101]{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);pointer-events:none}.hzzt-kfb-microscope .hzzt-kfb-microscope__container[data-v-e8b36101]{border:2px dashed red;border-radius:50%;min-width:24px;min-height:24px}.hzzt-kfb-microscope .hzzt-kfb-microscope__top[data-v-e8b36101]{width:18px;height:18px;position:absolute;top:-20px;left:50%;cursor:pointer;transform:translate(-50%);pointer-events:auto}.hzzt-kfb-microscope .hzzt-kfb-microscope__bottom[data-v-e8b36101]{width:18px;height:18px;position:absolute;bottom:-20px;left:50%;cursor:pointer;transform:translate(-50%);pointer-events:auto}.hzzt-kfb-microscope .hzzt-kfb-microscope__left[data-v-e8b36101]{width:18px;height:18px;position:absolute;left:-20px;top:50%;cursor:pointer;transform:translateY(-50%);pointer-events:auto}.hzzt-kfb-microscope .hzzt-kfb-microscope__right[data-v-e8b36101]{width:18px;height:18px;position:absolute;right:-20px;top:50%;cursor:pointer;transform:translateY(-50%);pointer-events:auto}.hzzt-kfb-label[data-v-7397de48]{position:absolute;top:0;left:0;background:#fff;color:#000}.hzzt-kfb-label .hzzt-kfb-label__title[data-v-7397de48]{font-size:12px;color:#000;padding:0 4px}.hzzt-kfb-label .hzzt-kfb-label__img[data-v-7397de48]{cursor:pointer;background:#0000004d}.hzzt-kfb-label .hzzt-kfb-label__img img[data-v-7397de48]{height:120px;width:120px}.hzzt-kfb-label .hzzt-kfb-label__pathology[data-v-7397de48]{--set-patholgy-height: 20px;height:var(--set-patholgy-height);font-size:12px;width:100%;display:flex;align-items:center;cursor:pointer;padding:2px 4px;border:1px solid var(--el-border-color)}.hzzt-kfb-label .hzzt-kfb-label__expend[data-v-7397de48]{position:absolute;--expand-button-width: 10px;width:var(--expand-button-width);height:40px;top:50%;transform:translateY(-50%);right:calc(-1 * var(--expand-button-width));background:#0006;border-radius:0 6px 6px 0;cursor:pointer;color:#fff}.hzzt-kfb-keyword[data-v-c8d940f0]{position:absolute;bottom:5px;left:50%;width:156px;margin-left:-78px}.hzzt-kfb-keyword .hzzt-kfb-keyword__code[data-v-c8d940f0]{margin:2px;width:48px;height:48px;background-color:#c8c8c880;color:#333;cursor:pointer}.hzzt-kfb-keyword .hzzt-kfb-keyword__code[data-v-c8d940f0]:hover{background-color:#bebebecc}.hzzt-kfb-level{position:absolute;right:50px;bottom:300px;height:200px;width:30px;border-radius:4px;background:#00000040}.hzzt-kfb-level .el-slider__runway{background-color:#00000080}.hzzt-kfb-level .el-slider__bar{background-color:unset}.hzzt-kfb-level .el-slider__stop{background-color:#e2e2e2}.hzzt-kfb-level--large{height:250px}.hzzt-kfb-channel{position:absolute;bottom:20px;right:50px;border:1px solid #000;border-radius:4px;background:#fff9}.hzzt-kfb-channel__box{min-width:48px;height:32px;margin:0 2px;border-radius:2px;cursor:pointer;text-align:center;line-height:32px;font-weight:700;border-left:1px solid #000;border-right:1px solid #000}.hzzt-kfb-channel__box--unactive{background:#fff!important;color:#000}.hzzt-kfb-channel__box:last-child{margin-right:0;border-right:unset}.hzzt-kfb-annotation[data-v-bfc56a3e]{position:absolute;top:4px;right:4px;background:#fffc;box-shadow:0 0 8px #dbdbdb33;border:1px solid rgba(255,255,255,.8);overflow:hidden;width:40px;height:40px;border-radius:50%;align-items:center;justify-content:center;transition:width .2s linear}.hzzt-kfb-annotation.hzzt-kfb-annotation--expand[data-v-bfc56a3e]{align-items:inherit;justify-content:inherit;height:auto;width:160px;bottom:20%;border-radius:8px;padding:8px 12px}.hzzt-kfb-title[data-v-bfc56a3e]{display:flex;align-items:center;font-size:14px;line-height:22px;font-weight:700}.hzzt-kfb-title[data-v-bfc56a3e]:before{display:block;content:" ";background:var(--el-color-primary);width:2px;height:12px;margin-right:4px}.hzzt-kfb-annotation__icon[data-v-bfc56a3e]{cursor:pointer}.hzzt-kfb-annotation__container[data-v-bfc56a3e]{display:flex;flex-direction:column;grid-column-gap:8px;overflow-y:auto}.hzzt-kfb-annotation__item[data-v-bfc56a3e]{display:flex;align-items:center;border-radius:6px;padding:4px;font-size:14px;line-height:22px;cursor:pointer}.hzzt-kfb-annotation__item.hzzt-kfb-annotation__item--active[data-v-bfc56a3e],.hzzt-kfb-annotation__item[data-v-bfc56a3e]:hover{background:var(--el-color-primary-light-7)}.hzzt-kfb-annotation__item .el-icon[data-v-bfc56a3e]{margin:0 4px}.hzzt-kfb-view{position:relative}.hzzt-kfb-view__main{width:100%;height:100%}.hzzt-kfb-view__filter{position:absolute}.hzzt-kfb-view__watermark{position:absolute;top:0;left:0;width:100%;height:100%;pointer-events:none;z-index:9999;background-repeat:repeat;background-image:var(--102f89ac)}.hzzt-kfb-view__hotmap{position:absolute;left:0;top:0;height:100%;width:2px;color:red;background:red;z-index:999}.hzzt-kfb-view__hotmap .icon-caret-left{position:absolute;top:50%;left:-22px;color:red;font-size:30px;transform:translateY(-50%);cursor:pointer;user-select:none}.hzzt-kfb-view__hotmap .icon-caret-right{position:absolute;top:50%;left:-7px;color:red;font-size:30px;transform:translateY(-50%);cursor:pointer;user-select:none}.hzzt-kfb-view__tag{position:absolute;right:8px;top:4px;z-index:999}.hzzt-kfb-img-triangle-left:after{content:"";position:absolute;left:-10px;top:50%;transform:translate(-50%);width:0;height:0;border:10px solid transparent;border-right-color:#000c}.hzzt-kfb-slides[data-v-35358d3a]{background-color:#fff;box-sizing:border-box;display:flex;flex-direction:column;height:100%;width:100%;overflow:auto;border-right:2px solid #DCDCDC}.hzzt-kfb-slides__row[data-v-35358d3a]{align-items:center;display:flex;flex:1;flex-direction:column;overflow:hidden;min-height:0;padding:0 8px;font-size:12px}.hzzt-kfb-slides__top[data-v-35358d3a]{align-items:center;display:flex;justify-content:space-between;overflow:hidden;width:100%;font-size:14px;margin:4px 0;color:#000}.hzzt-kfb-slides__top .text-primary[data-v-35358d3a]{color:var(--el-color-primary)}.hzzt-kfb-slides__box[data-v-35358d3a]{border:1px solid #DCDDE1;border-radius:5px;background-color:#f2f3ff;cursor:pointer;width:100%;padding:6px;margin-bottom:8px;position:relative;overflow:hidden}.hzzt-kfb-slides__box--active[data-v-35358d3a]{border:2px solid #366EF4}.hzzt-kfb-slides__gallery[data-v-35358d3a]{display:flex;position:relative;overflow:hidden;border-radius:4px}.hzzt-kfb-slides__img[data-v-35358d3a]{width:100px;max-height:100px}.hzzt-kfb-slides__img1[data-v-35358d3a]{max-height:100px}.hzzt-kfb-slides__read[data-v-35358d3a]{position:absolute;top:6px;z-index:2;left:6px;width:32px;height:16px;background:var(--el-color-danger);color:#fff;border-radius:999px;text-align:center;line-height:16px}.hzzt-kfb-slides__grade[data-v-35358d3a]{position:absolute;top:6px;z-index:2;right:6px;width:32px;height:16px;color:#fff;border-radius:999px;text-align:center;line-height:16px}.hzzt-kfb-slides__header[data-v-35358d3a]{display:flex;align-items:center;height:30px}.hzzt-kfb-slides__text[data-v-35358d3a]{width:100%}.hzzt-kfb-slides .w-10\%[data-v-35358d3a]{width:10%}.hzzt-kfb-slides .w-20\%[data-v-35358d3a]{width:20%}.hzzt-kfb-slides .w-30\%[data-v-35358d3a]{width:30%}.hzzt-kfb-slides .w-40\%[data-v-35358d3a]{width:40%}.hzzt-kfb-slides .text-center[data-v-35358d3a]{text-align:center}.hzzt-kfb-ai{--hzzt-kfb-ai-background-color: #fff;--hzzt-kfb-ai-font-size: 14px;--hzzt-kfb-ai-img-width: 100px;--hzzt-kfb-ai-height-width: 100px;background-color:var(--hzzt-kfb-ai-background-color);font-size:var(--hzzt-kfb-ai-font-size);box-sizing:border-box;display:flex;flex-direction:column;height:100%}.hzzt-kfb-ai__img{border:2px solid var(--el-border-color);border-radius:3px;cursor:pointer;margin-bottom:4px;margin-right:4px;width:calc(var(--hzzt-kfb-ai-img-width) + 4px)}.hzzt-kfb-ai__img--active{border-color:var(--el-color-primary)}.hzzt-kfb-ai__img img{display:block;height:var(--hzzt-kfb-ai-img-height);object-fit:contain;overflow:hidden;width:var(--hzzt-kfb-ai-img-width)}.label-sub-title{border-top:1px solid #eee;font-size:14px;font-weight:700}.hzzt-kfb-slide{width:100%;height:100%;display:flex;flex-direction:column}.hzzt-kfb-slide .hzzt-kfb-view{height:100%;width:100%;overflow:hidden}.hzzt-kfb-slide .hzzt-kfb-view-screen-active{box-shadow:0 4px 10px #00000080;border:2px solid var(--el-color-primary)!important}.el-card[data-v-3599775b],.el-card[data-v-23fd8f31],.el-card[data-v-ca4687d6]{border:none;--el-card-padding: 12px}.hzzt-kfb-toolbox-dot__box[data-v-ca4687d6]{width:24px;height:24px;border-radius:4px;margin:0 4px;cursor:pointer}.hzzt-kfb-toolbox-dot__box[data-v-ca4687d6]:hover{opacity:.8}.hzzt-kfb-toolbox-annotate-icon[data-v-c599cd1a]{cursor:pointer;display:flex;justify-content:center;align-items:center;padding:8px}.hzzt-kfb-toolbox-annotate-icon[data-v-c599cd1a]:hover{background:#84b5ff}.el-card[data-v-c599cd1a],.el-card[data-v-bdb018f5],.el-card[data-v-fe8098cc]{border:none;--el-card-padding: 12px}.el-card[data-v-aa10a89d]{border:none}.hzzt-kfb-toolbox__icon[data-v-af758f1f]{font-size:16px;font-weight:600;margin:0;line-height:1}.el-card[data-v-b1632013]{border:none;--el-card-padding: 12px}
1
+ @charset "UTF-8";.hzzt-kfb-tool-config{--hzzt-kfb-tool-config-title-font-size: 20px;--hzzt-kfb-tool-config-title-color: #000000;--hzzt-kfb-tool-config-font-size: 14px;--hzzt-kfb-tool-config-color: #000000;--hzzt-kfb-tool-config-icon-color: #ffffff;--hzzt-kfb-tool-config-icon-background-color: #000000;--hzzt-kfb-tool-config-block-background-color: #ffffff;font-size:var(--hzzt-kfb-tool-config-font-size);color:var(--hzzt-kfb-tool-config-color)}.hzzt-kfb-tool-config__title{font-size:var(--hzzt-kfb-tool-config-title-font-size);color:var(--hzzt-kfb-tool-config-title-color)}.hzzt-kfb-tool-config__icon{width:48px;height:48px;border-radius:100%;color:var(--hzzt-kfb-tool-config-icon-color);background-color:var(--hzzt-kfb-tool-config-icon-background-color)}.hzzt-kfb-tool-config__block{width:240px;padding:8px;margin-bottom:8px;background-color:var(--hzzt-kfb-tool-config-block-background-color);border:var(--el-border)}.hzzt-kfb-toolbox{--hzzt-kfb-toolbox-padding: 8px 0;--hzzt-kfb-toolbox-font-size: 12px;--hzzt-kfb-toolbox-background-color: #fff;--hzzt-kfb-toolbox-icon-width: 40px;--hzzt-kfb-toolbox-icon-color: #000000;--hzzt-kfb-toolbox-icon-hover-color: #FFFFFF;--hzzt-kfb-toolbox-icon-hover-background-color: #424D68;--hzzt-kfb-toolbox-tooltip-color: #FFFFFF;--hzzt-kfb-toolbox-tooltip-background-color: #0655C3;--hzzt-kfb-toolbox-text-color: #000000;--hzzt-kfb-toolbox-text-hover-color: #FFFFFF;display:flex;align-items:center;justify-content:space-between;background-color:var(--hzzt-kfb-toolbox-background-color);padding:var(--hzzt-kfb-toolbox-padding);font-size:var(--hzzt-kfb-toolbox-font-size);position:relative;border-bottom:1px solid var(--hzzt-border-color, #DCDCDC);width:100%}.hzzt-kfb-toolbox__component{display:flex;flex:1;align-items:center;justify-content:center}.hzzt-kfb-toolbox__icon{min-width:var(--hzzt-kfb-toolbox-icon-width);color:var(--hzzt-kfb-toolbox-icon-color);display:flex;flex-direction:column;align-items:center;justify-content:center;cursor:pointer;position:relative;margin:0 4px}.hzzt-kfb-toolbox__icon:hover{color:var(--hzzt-kfb-toolbox-icon-hover-color);background:var(--hzzt-kfb-toolbox-icon-hover-background-color);border-radius:4px}.hzzt-kfb-toolbox__icon:hover .hzzt-kfb-toolbox__tooltip{display:flex}.hzzt-kfb-toolbox__icon:hover .hzzt-kfb-toolbox__text{color:var(--hzzt-kfb-toolbox-text-hover-color)}.hzzt-kfb-toolbox__tooltip{align-items:center;justify-content:center;background-color:var(--hzzt-kfb-toolbox-tooltip-background-color);position:absolute;color:var(--hzzt-kfb-toolbox-tooltip-color);padding:2px 4px;border-radius:4px;top:30px;display:none;white-space:nowrap;z-index:9999}.hzzt-kfb-toolbox__text{color:var(--hzzt-kfb-toolbox-text-color)}.hzzt-kfb-toolbox__line{--hzzt-kfb-toolbox-line-color: #A8ABB2;margin:0 8px;width:1px;height:20px;background:var(--hzzt-kfb-toolbox-line-color)}.hzzt-kfb-toolbox-rotate__angle .el-input-number{width:120PX}.hzzt-kfb-toolbox-rotate__btn{--hzzt-kfb-toolbox-rotate-btn-backgroud-color: #3B55BF;cursor:pointer;width:10px;height:10px;background:var(--hzzt-kfb-toolbox-rotate-btn-backgroud-color);z-index:2}.hzzt-kfb-toolbox-rotate__container{width:64px;height:64px}.hzzt-kfb-toolbox-rotate__img{cursor:pointer;user-select:none;width:100%;height:100%}.hzzt-kfb-toolbox-zoom{display:flex;--hzzt-kfb-toolbox-zoom-backgroud-color: #F3F3F4}.hzzt-kfb-toolbox-zoom__button{font-size:16px;line-height:16px;margin-left:2px;height:32px;background:var(--hzzt-kfb-toolbox-zoom-backgroud-color);border-radius:4px;border:1px solid #DCDDE1}.hzzt-kfb-toolbox-zoom__input{width:60px;height:30px;--el-input-bg-color: getCssVarNoName($B, "backgroud-color");--el-input-text-color: #000;--el-input-border: none}.hzzt-kfb-toolbox-zoom__input .el-input__wrapper{box-shadow:none}.hzzt-kfb-toolbox-zoom__input .el-input__wrapper .el-input__inner{font-size:16px;font-weight:600}.el-popover-padding-0{--el-popover-padding: 0 }.hzzt-kfb-menu[data-v-414722d0]{position:absolute;display:none;background:#fff;box-shadow:var(--el-box-shadow);border-radius:var(--el-border-radius-base);padding:8px 0;font-size:14px}.hzzt-kfb-menu .hzzt-kfb-menu-item[data-v-414722d0]{min-width:200px;display:flex;align-items:center;justify-content:space-between;padding:6px 16px;position:relative;cursor:pointer;line-height:1}.hzzt-kfb-menu .hzzt-kfb-menu-item[data-v-414722d0]:hover{background:var(--el-color-info-light-8)}.hzzt-kfb-menu .hzzt-kfb-menu-item:hover .hzzt-kfb-sub-menu[data-v-414722d0]{display:block}.hzzt-kfb-menu .hzzt-kfb-menu-item .hzzt-kfb-sub-menu[data-v-414722d0]{position:absolute;display:none;left:0;top:0;transform:translate(200px);box-shadow:var(--el-box-shadow);border-radius:var(--el-border-radius-base);padding:8px 0;background:#fff}.hzzt-kfb-menu .hzzt-kfb-menu-item .hzzt-kfb-sub-menu .hzzt-kfb-menu-item[data-v-414722d0],.hzzt-kfb-menu[data-v-414722d0] .el-cascader-menu{min-width:auto}.hzzt-kfb-menu[data-v-414722d0] .el-cascader-menu .el-cascader-node__label{display:flex;align-items:center;padding:0 16px 0 8px}.hzzt-kfb-menu[data-v-414722d0] .el-cascader-menu .el-cascader-menu__wrap.el-scrollbar__wrap{height:auto}.hzzt-kfb-microscope[data-v-cf5949b8]{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);pointer-events:none}.hzzt-kfb-microscope .hzzt-kfb-microscope__container[data-v-cf5949b8]{border:2px dashed red;border-radius:50%;min-width:24px;min-height:24px}.hzzt-kfb-microscope .hzzt-kfb-microscope__top[data-v-cf5949b8]{width:24px;height:24px;position:absolute;top:-20px;left:50%;cursor:pointer;transform:translate(-50%);pointer-events:auto}.hzzt-kfb-microscope .hzzt-kfb-microscope__bottom[data-v-cf5949b8]{width:24px;height:24px;position:absolute;bottom:-20px;left:50%;cursor:pointer;transform:translate(-50%);pointer-events:auto}.hzzt-kfb-microscope .hzzt-kfb-microscope__left[data-v-cf5949b8]{width:24px;height:24px;position:absolute;left:-20px;top:50%;cursor:pointer;transform:translateY(-50%);pointer-events:auto}.hzzt-kfb-microscope .hzzt-kfb-microscope__right[data-v-cf5949b8]{width:24px;height:24px;position:absolute;right:-20px;top:50%;cursor:pointer;transform:translateY(-50%);pointer-events:auto}.hzzt-kfb-label[data-v-e1475ef3]{position:absolute;top:0;left:0;background:#fff;color:#000}.hzzt-kfb-label .hzzt-kfb-label__title[data-v-e1475ef3]{font-size:12px;color:#000;padding:0 4px}.hzzt-kfb-label .hzzt-kfb-label__img[data-v-e1475ef3]{cursor:pointer;background:#0000004d}.hzzt-kfb-label .hzzt-kfb-label__img img[data-v-e1475ef3]{height:120px;width:120px}.hzzt-kfb-label .hzzt-kfb-label__pathology[data-v-e1475ef3]{--set-patholgy-height: 20px;height:var(--set-patholgy-height);font-size:12px;width:100%;display:flex;align-items:center;cursor:pointer;padding:2px 4px;border:1px solid var(--el-border-color)}.hzzt-kfb-label .hzzt-kfb-label__expend[data-v-e1475ef3]{position:absolute;--expand-button-width: 10px;width:var(--expand-button-width);height:40px;top:50%;transform:translateY(-50%);right:calc(-1 * var(--expand-button-width));background:#0006;border-radius:0 6px 6px 0;cursor:pointer;color:#fff}.hzzt-kfb-keyword[data-v-c8d940f0]{position:absolute;bottom:5px;left:50%;width:156px;margin-left:-78px}.hzzt-kfb-keyword .hzzt-kfb-keyword__code[data-v-c8d940f0]{margin:2px;width:48px;height:48px;background-color:#c8c8c880;color:#333;cursor:pointer}.hzzt-kfb-keyword .hzzt-kfb-keyword__code[data-v-c8d940f0]:hover{background-color:#bebebecc}.hzzt-kfb-level{position:absolute;right:50px;bottom:300px;height:200px;width:30px;border-radius:4px;background:#00000040}.hzzt-kfb-level .el-slider__runway{background-color:#00000080}.hzzt-kfb-level .el-slider__bar{background-color:unset}.hzzt-kfb-level .el-slider__stop{background-color:#e2e2e2}.hzzt-kfb-level--large{height:250px}.hzzt-kfb-channel{position:absolute;bottom:20px;right:50px;border:1px solid #000;border-radius:4px;background:#fff9}.hzzt-kfb-channel__box{min-width:48px;height:32px;margin:0 2px;border-radius:2px;cursor:pointer;text-align:center;line-height:32px;font-weight:700;border-left:1px solid #000;border-right:1px solid #000}.hzzt-kfb-channel__box--unactive{background:#fff!important;color:#000}.hzzt-kfb-channel__box:last-child{margin-right:0;border-right:unset}.hzzt-kfb-annotation[data-v-bfc56a3e]{position:absolute;top:4px;right:4px;background:#fffc;box-shadow:0 0 8px #dbdbdb33;border:1px solid rgba(255,255,255,.8);overflow:hidden;width:40px;height:40px;border-radius:50%;align-items:center;justify-content:center;transition:width .2s linear}.hzzt-kfb-annotation.hzzt-kfb-annotation--expand[data-v-bfc56a3e]{align-items:inherit;justify-content:inherit;height:auto;width:160px;bottom:20%;border-radius:8px;padding:8px 12px}.hzzt-kfb-title[data-v-bfc56a3e]{display:flex;align-items:center;font-size:14px;line-height:22px;font-weight:700}.hzzt-kfb-title[data-v-bfc56a3e]:before{display:block;content:" ";background:var(--el-color-primary);width:2px;height:12px;margin-right:4px}.hzzt-kfb-annotation__icon[data-v-bfc56a3e]{cursor:pointer}.hzzt-kfb-annotation__container[data-v-bfc56a3e]{display:flex;flex-direction:column;grid-column-gap:8px;overflow-y:auto}.hzzt-kfb-annotation__item[data-v-bfc56a3e]{display:flex;align-items:center;border-radius:6px;padding:4px;font-size:14px;line-height:22px;cursor:pointer}.hzzt-kfb-annotation__item.hzzt-kfb-annotation__item--active[data-v-bfc56a3e],.hzzt-kfb-annotation__item[data-v-bfc56a3e]:hover{background:var(--el-color-primary-light-7)}.hzzt-kfb-annotation__item .el-icon[data-v-bfc56a3e]{margin:0 4px}.hzzt-kfb-view{position:relative}.hzzt-kfb-view__main{width:100%;height:100%}.hzzt-kfb-view__filter{position:absolute}.hzzt-kfb-view__watermark{position:absolute;top:0;left:0;width:100%;height:100%;pointer-events:none;z-index:9999;background-repeat:repeat;background-image:var(--e3fd940a)}.hzzt-kfb-view__hotmap{position:absolute;left:0;top:0;height:100%;width:2px;color:red;background:red;z-index:999}.hzzt-kfb-view__hotmap .icon-caret-left{position:absolute;top:50%;left:-22px;color:red;font-size:30px;transform:translateY(-50%);cursor:pointer;user-select:none}.hzzt-kfb-view__hotmap .icon-caret-right{position:absolute;top:50%;left:-7px;color:red;font-size:30px;transform:translateY(-50%);cursor:pointer;user-select:none}.hzzt-kfb-view__tag{position:absolute;right:8px;top:4px;z-index:999}.hzzt-kfb-img-triangle-left:after{content:"";position:absolute;left:-10px;top:50%;transform:translate(-50%);width:0;height:0;border:10px solid transparent;border-right-color:#000c}.hzzt-kfb-slides[data-v-35358d3a]{background-color:#fff;box-sizing:border-box;display:flex;flex-direction:column;height:100%;width:100%;overflow:auto;border-right:2px solid #DCDCDC}.hzzt-kfb-slides__row[data-v-35358d3a]{align-items:center;display:flex;flex:1;flex-direction:column;overflow:hidden;min-height:0;padding:0 8px;font-size:12px}.hzzt-kfb-slides__top[data-v-35358d3a]{align-items:center;display:flex;justify-content:space-between;overflow:hidden;width:100%;font-size:14px;margin:4px 0;color:#000}.hzzt-kfb-slides__top .text-primary[data-v-35358d3a]{color:var(--el-color-primary)}.hzzt-kfb-slides__box[data-v-35358d3a]{border:1px solid #DCDDE1;border-radius:5px;background-color:#f2f3ff;cursor:pointer;width:100%;padding:6px;margin-bottom:8px;position:relative;overflow:hidden}.hzzt-kfb-slides__box--active[data-v-35358d3a]{border:2px solid #366EF4}.hzzt-kfb-slides__gallery[data-v-35358d3a]{display:flex;position:relative;overflow:hidden;border-radius:4px}.hzzt-kfb-slides__img[data-v-35358d3a]{width:100px;max-height:100px}.hzzt-kfb-slides__img1[data-v-35358d3a]{max-height:100px}.hzzt-kfb-slides__read[data-v-35358d3a]{position:absolute;top:6px;z-index:2;left:6px;width:32px;height:16px;background:var(--el-color-danger);color:#fff;border-radius:999px;text-align:center;line-height:16px}.hzzt-kfb-slides__grade[data-v-35358d3a]{position:absolute;top:6px;z-index:2;right:6px;width:32px;height:16px;color:#fff;border-radius:999px;text-align:center;line-height:16px}.hzzt-kfb-slides__header[data-v-35358d3a]{display:flex;align-items:center;height:30px}.hzzt-kfb-slides__text[data-v-35358d3a]{width:100%}.hzzt-kfb-slides .w-10\%[data-v-35358d3a]{width:10%}.hzzt-kfb-slides .w-20\%[data-v-35358d3a]{width:20%}.hzzt-kfb-slides .w-30\%[data-v-35358d3a]{width:30%}.hzzt-kfb-slides .w-40\%[data-v-35358d3a]{width:40%}.hzzt-kfb-slides .text-center[data-v-35358d3a]{text-align:center}.hzzt-kfb-ai{--hzzt-kfb-ai-background-color: #fff;--hzzt-kfb-ai-font-size: 14px;--hzzt-kfb-ai-img-width: 100px;--hzzt-kfb-ai-height-width: 100px;background-color:var(--hzzt-kfb-ai-background-color);font-size:var(--hzzt-kfb-ai-font-size);box-sizing:border-box;display:flex;flex-direction:column;height:100%}.hzzt-kfb-ai__img{border:2px solid var(--el-border-color);border-radius:3px;cursor:pointer;margin-bottom:4px;margin-right:4px;width:calc(var(--hzzt-kfb-ai-img-width) + 4px)}.hzzt-kfb-ai__img--active{border-color:var(--el-color-primary)}.hzzt-kfb-ai__img img{display:block;height:var(--hzzt-kfb-ai-img-height);object-fit:contain;overflow:hidden;width:var(--hzzt-kfb-ai-img-width)}.label-sub-title{border-top:1px solid #eee;font-size:14px;font-weight:700}.hzzt-kfb-slide{width:100%;height:100%;display:flex;flex-direction:column}.hzzt-kfb-view{height:100%;width:100%;overflow:hidden}.hzzt-kfb-view-screen-active{box-shadow:0 4px 10px #00000080;border:2px solid var(--el-color-primary)!important}.el-card[data-v-3a6db7ab],.el-card[data-v-fa4e8516],.el-card[data-v-34de7854]{border:none;--el-card-padding: 12px}.hzzt-kfb-toolbox-dot__box[data-v-34de7854]{width:24px;height:24px;border-radius:4px;margin:0 4px;cursor:pointer}.hzzt-kfb-toolbox-dot__box[data-v-34de7854]:hover{opacity:.8}.hzzt-kfb-toolbox-annotate-icon[data-v-72aefbbd]{cursor:pointer;display:flex;justify-content:center;align-items:center;padding:8px}.hzzt-kfb-toolbox-annotate-icon[data-v-72aefbbd]:hover{background:#84b5ff}.el-card[data-v-72aefbbd],.el-card[data-v-e6dfd14e],.el-card[data-v-cd930366]{border:none;--el-card-padding: 12px}.el-card[data-v-f1aaa72c]{border:none}.hzzt-kfb-toolbox__icon[data-v-af758f1f]{font-size:16px;font-weight:600;margin:0;line-height:1}.el-card[data-v-39c71392]{border:none;--el-card-padding: 12px}
package/dist/index.es.js CHANGED
@@ -1,4 +1,4 @@
1
- import { c as e, e as f, d as o, I as s, i as t } from "./components/indexBTX88dQr.js";
1
+ import { c as e, e as f, d as o, I as s, i as t } from "./components/indexCE3et5Ds.js";
2
2
  export {
3
3
  e as HzztKfbSlide,
4
4
  f as HzztKfbToolbox,
package/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "style": "dist/index.css",
6
6
  "types": "types/index.d.ts",
7
7
  "license": "MIT",
8
- "version": "0.1.5",
8
+ "version": "0.1.7",
9
9
  "type": "module",
10
10
  "scripts": {
11
11
  "dev": "vite",
@@ -1,6 +1,7 @@
1
1
  import { DigitalSlide } from "@/instances.ts";
2
2
  import { FileInterface } from "@/components/KfbView/index.ts";
3
3
  type __VLS_Props = {
4
+ visible?: boolean;
4
5
  info: FileInterface;
5
6
  slide: DigitalSlide;
6
7
  pathologyHandle?: (slide: DigitalSlide) => Promise<boolean>;
@@ -198,7 +198,7 @@ export interface Watermark {
198
198
  export interface KfbProps {
199
199
  slide: DigitalSlide;
200
200
  fileHandle: (slide: DigitalSlide) => Promise<FileInterface>;
201
- labelHandle: (type: string, slide: DigitalSlide, data?: any) => Promise<Label[]>;
201
+ labelHandle: (type: string, slide: DigitalSlide, data?: any, labelList?: Label[]) => Promise<Label[]>;
202
202
  tileHandle: (params: TileParams) => string;
203
203
  navigatorHandle?: (type: string, slide: DigitalSlide, data?: any) => Promise<any>;
204
204
  pathologyHandle?: (slide: DigitalSlide) => Promise<boolean>;
@@ -214,6 +214,7 @@ export interface KfbProps {
214
214
  watermark?: Watermark;
215
215
  analysis?: Analysis;
216
216
  aiLabelList?: Label[];
217
+ showLabel?: boolean;
217
218
  }
218
219
  export interface Hotmap {
219
220
  url: string;
package/web-types.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "framework": "vue",
3
3
  "name": "hzzt-kfb-slide",
4
- "version": "0.1.5",
4
+ "version": "0.1.7",
5
5
  "contributions": {
6
6
  "html": {
7
7
  "description-markup": "markdown",
@@ -1 +0,0 @@
1
- "use strict";var h=Object.defineProperty;var c=Object.getOwnPropertySymbols;var V=Object.prototype.hasOwnProperty,b=Object.prototype.propertyIsEnumerable;var u=(n,t,o)=>t in n?h(n,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):n[t]=o,d=(n,t)=>{for(var o in t||(t={}))V.call(t,o)&&u(n,o,t[o]);if(c)for(var o of c(t))b.call(t,o)&&u(n,o,t[o]);return n};Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),f=require("./useCommonJHuwZYYW.js"),a=require("element-plus"),y=require("./annotateGjNhIEUS.js"),p=require("./indexByL7ETN6.js"),E=["onClick"],N=e.defineComponent({name:"ToolAnnotate",__name:"annotate",props:e.mergeDefaults({size:{},text:{},name:{},component:{},isPrevent:{type:Boolean},callback:{type:Function},options:{}},f.defaultProps),emits:["tool"],setup(n,{emit:t}){const o=n,m=t,{t:r,textClass:g}=f.useCommon(),v={line:"Line",arrow:"Arrow",bilateral:"Bilateral",rectangle:"Rectangle",ellipse:"Ellipse",polygon:"Polygon",star:"Star",flag:"Flag",dot:"Dot",font:"Font",voice:"Voice"},i=e.ref(!1);function x(l){i.value=!1,m("tool","annotate",d({tool:l.substring(0,1).toLocaleUpperCase()+l.substring(1),once:!0},o.options||{}))}function _(){i.value=!i.value}return(l,w)=>(e.openBlock(),e.createBlock(e.unref(a.ElPopover),{visible:i.value,"popper-class":"el-popover-padding-0",placement:"bottom",width:"220px",trigger:"click"},{reference:e.withCtx(()=>[e.createElementVNode("div",{class:"hzzt-kfb-toolbox__icon",onClick:_},[e.createVNode(e.unref(a.ElIcon),{size:l.size},{default:e.withCtx(()=>[e.createVNode(y.default)]),_:1},8,["size"]),e.createElementVNode("div",{class:e.normalizeClass(e.unref(g))},e.toDisplayString(e.unref(r)(l.text||"标注")),3)])]),default:e.withCtx(()=>[e.createVNode(e.unref(a.ElCard),{shadow:"never",header:e.unref(r)("标注工具"),"body-style":{padding:"8px"}},{default:e.withCtx(()=>[e.createElementVNode("div",null,[e.createVNode(e.unref(a.ElText),{type:"danger"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(r)("按ESC可退出标注模式")),1)]),_:1})]),e.createElementVNode("div",null,[e.createVNode(e.unref(a.ElText),{type:"danger"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(r)("点击标注按Delete键可删除标注")),1)]),_:1})]),e.createVNode(e.unref(a.ElRow),null,{default:e.withCtx(()=>[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(v,(s,C)=>e.createVNode(e.unref(a.ElCol),{key:C,class:"flex justify-content-center align-items-center",span:8},{default:e.withCtx(()=>[e.createElementVNode("div",{class:"hzzt-kfb-toolbox-annotate-icon",onClick:z=>x(s)},[e.createVNode(p._sfc_main,{size:"32",name:`mark${s}`},null,8,["name"])],8,E)]),_:2},1024)),64))]),_:1})]),_:1},8,["header"])]),_:1},8,["visible"]))}}),k=p._export_sfc(N,[["__scopeId","data-v-c599cd1a"]]);exports.default=k;
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),d=require("./useCommonJHuwZYYW.js"),m=require("./dotBpUyBBJE.js"),h=require("./checkB83dSLjb.js"),r=require("element-plus"),b=require("./indexByL7ETN6.js"),C={class:"margin-b-1"},_={class:"flex align-items-center"},E=["onClick"],g=e.defineComponent({name:"ToolDot",__name:"dot",props:e.mergeDefaults({size:{},text:{},name:{},component:{},isPrevent:{type:Boolean},callback:{type:Function},options:{}},d.defaultProps),emits:["tool"],setup(y,{emit:f}){const u=f,{t:i,textClass:v}=d.useCommon(),n=e.ref(!1),c=e.ref([{label:"#004BFF",value:0,checked:!1},{label:"#FF4B40",value:0,checked:!1},{label:"#FFAA00",value:0,checked:!1},{label:"#51C964",value:0,checked:!1},{label:"#00BEFF",value:0,checked:!1},{label:"#8C58CE",value:0,checked:!1},{label:"#F261A7",value:0,checked:!1}]),s=e.inject("kfbViewRef");e.watch(()=>{var l,t;return(t=(l=s==null?void 0:s.value)==null?void 0:l.kfbView)==null?void 0:t.labelList},l=>{c.value.forEach(t=>{var o;t.value=(o=(l||[]).filter(a=>(a==null?void 0:a.custom)&&(a==null?void 0:a.strokeStyle)===t.label&&(a==null?void 0:a.tool)==="Dot"))==null?void 0:o.length})});function k(l){c.value.forEach(t=>{t.checked=!1}),l.checked=!0,u("tool","annotate",{strokeStyle:l.label,tool:"Dot",once:!1,custom:!0,subType:"count"})}function p(){n.value=!n.value,n.value||c.value.forEach(l=>{l.checked=!1}),u("tool","endDraw")}return(l,t)=>(e.openBlock(),e.createBlock(e.unref(r.ElPopover),{visible:n.value,"popper-class":"el-popover-padding-0",placement:"bottom",width:"300px",trigger:"click"},{reference:e.withCtx(()=>[e.createElementVNode("div",{class:"hzzt-kfb-toolbox__icon",onClick:t[0]||(t[0]=o=>p())},[e.createVNode(e.unref(r.ElIcon),{size:l.size},{default:e.withCtx(()=>[e.createVNode(m.default)]),_:1},8,["size"]),e.createElementVNode("div",{class:e.normalizeClass(e.unref(v))},e.toDisplayString(e.unref(i)(l.text||"打点")),3)])]),default:e.withCtx(()=>[e.createVNode(e.unref(r.ElCard),{shadow:"never"},{default:e.withCtx(()=>[e.createElementVNode("div",null,[e.createElementVNode("p",C,e.toDisplayString(e.unref(i)("按下ESC键结束打点操作")),1),e.createElementVNode("div",_,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.value,o=>(e.openBlock(),e.createElementBlock("div",{key:o.label,class:"flex column align-items-center"},[e.createElementVNode("div",{style:e.normalizeStyle({"background-color":o.label}),class:"hzzt-kfb-toolbox-dot__box flex justify-content-center align-items-center",onClick:a=>k(o)},[e.createVNode(e.unref(r.ElIcon),{size:"16"},{default:e.withCtx(()=>[o.checked?(e.openBlock(),e.createBlock(h.default,{key:0})):e.createCommentVNode("",!0)]),_:2},1024)],12,E),e.createElementVNode("p",null,e.toDisplayString(o.value?o.value:" "),1)]))),128))])])]),_:1})]),_:1},8,["visible"]))}}),x=b._export_sfc(g,[["__scopeId","data-v-ca4687d6"]]);exports.default=x;
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),s=require("./useCommonJHuwZYYW.js"),o=require("element-plus"),f=require("./downloadDDTSRfzn.js"),p=require("./indexByL7ETN6.js"),m={class:"flex column align-items-center"},v=e.defineComponent({name:"ToolDownload",__name:"download",props:e.mergeDefaults({size:{},text:{},name:{},component:{},isPrevent:{type:Boolean},callback:{type:Function},options:{}},s.defaultProps),emits:["tool"],setup(x,{emit:d}){const u=d,{t:r,textClass:c}=s.useCommon(),n=e.ref(!1);function i(l){u("tool","download",l),n.value=!1}return(l,t)=>(e.openBlock(),e.createBlock(e.unref(o.ElPopover),{visible:n.value,"popper-class":"el-popover-padding-0",placement:"bottom",width:180,trigger:"click"},{reference:e.withCtx(()=>[e.createElementVNode("div",{class:"hzzt-kfb-toolbox__icon",onClick:t[2]||(t[2]=a=>n.value=!n.value)},[e.createVNode(e.unref(o.ElIcon),{size:l.size},{default:e.withCtx(()=>[e.createVNode(f.default)]),_:1},8,["size"]),e.createElementVNode("div",{class:e.normalizeClass(e.unref(c))},e.toDisplayString(e.unref(r)(l.text||"下载")),3)])]),default:e.withCtx(()=>[e.createVNode(e.unref(o.ElCard),{shadow:"never"},{default:e.withCtx(()=>[e.createElementVNode("div",m,[e.createVNode(e.unref(o.ElLink),{onClick:t[0]||(t[0]=a=>i("all"))},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(r)("下载全部切片")),1)]),_:1}),e.createVNode(e.unref(o.ElLink),{type:"primary",class:"margin-t-2",onClick:t[1]||(t[1]=a=>i("single"))},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(r)("下载当前切片")),1)]),_:1})])]),_:1})]),_:1},8,["visible"]))}}),C=p._export_sfc(v,[["__scopeId","data-v-b1632013"]]);exports.default=C;