hzzt-kfb-slide 0.0.6 → 0.0.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (115) hide show
  1. package/dist/components/{annotateCPG0T3zR.js → annotateFlT59Ud8.js} +1 -1
  2. package/dist/components/annotateJzE3toJV.js +1 -0
  3. package/dist/components/{annotateBZhYifBy.js → annotateR7c0LCw2.js} +1 -1
  4. package/dist/components/annotatemJxZMVPO.js +123 -0
  5. package/dist/components/{arrowDFlQxMKW.js → arrowDHcko1dw.js} +1 -1
  6. package/dist/components/{arrowBJ1_uQ_E.js → arrowDRio3eqx.js} +1 -1
  7. package/dist/components/{arrowDownUoENEig7.js → arrowDownByED8CSr.js} +1 -1
  8. package/dist/components/{arrowDownNi-pK4NR.js → arrowDownDRpTqVDK.js} +1 -1
  9. package/dist/components/{arrowLeftDNerwLPi.js → arrowLeftCl2XVnFB.js} +1 -1
  10. package/dist/components/{arrowLeftBjlKltMm.js → arrowLeftDjcuA_pb.js} +1 -1
  11. package/dist/components/{arrowRightMPKmxcZ8.js → arrowRightClSGs6Mb.js} +1 -1
  12. package/dist/components/{arrowRight44qqQj9S.js → arrowRightDSkHKM4y.js} +1 -1
  13. package/dist/components/{arrowUpDNv09R_q.js → arrowUpCgzq2L8A.js} +1 -1
  14. package/dist/components/{arrowUpu-KhVqDz.js → arrowUpQVIPK_NQ.js} +1 -1
  15. package/dist/components/{channelDTeDAbXs.js → channelCTQgwZV_.js} +1 -1
  16. package/dist/components/{channelCzSNjDqs.js → channelD-dojSaC.js} +1 -1
  17. package/dist/components/{checkDg1XwTUE.js → checkCBxyasVc.js} +1 -1
  18. package/dist/components/{checkD58Lt_t9.js → checkCqCYDYr4.js} +1 -1
  19. package/dist/components/{configFTiUKUAQ.js → configGeQGhW9C.js} +1 -1
  20. package/dist/components/{configDTj11Wdw.js → configP_8ZVyfi.js} +1 -1
  21. package/dist/components/customB1-3lgH0.js +1 -0
  22. package/dist/components/customBr26z068.js +39 -0
  23. package/dist/components/{deleteCeXlMQda.js → deleteBNIxfTCo.js} +1 -1
  24. package/dist/components/{deleteBIUy0hW2.js → deleteuibq0KAI.js} +1 -1
  25. package/dist/components/{dotBcz-OP0B.js → dotBJ-lSESE.js} +1 -1
  26. package/dist/components/dotBucEP5Z8.js +113 -0
  27. package/dist/components/dotDc-QmqaE.js +1 -0
  28. package/dist/components/{dotDpCmvPJC.js → dotDhjymv7s.js} +1 -1
  29. package/dist/components/{downloadBs4QK_IT.js → downloadB5STpOaR.js} +1 -1
  30. package/dist/components/{downloadnu9isJ53.js → downloadBrpaJY3x.js} +1 -1
  31. package/dist/components/downloadDh6wiado.js +1 -0
  32. package/dist/components/downloadDnWeuVMn.js +79 -0
  33. package/dist/components/{flipBwR2T8Rs.js → flipD7XBmACU.js} +1 -1
  34. package/dist/components/{flipvyz7dJPZ.js → flipDlTFW9pO.js} +1 -1
  35. package/dist/components/fullscreenBGej63GA.js +51 -0
  36. package/dist/components/{fullscreenCVgGTPtD.js → fullscreenCxtySrDu.js} +1 -1
  37. package/dist/components/fullscreenOKvUhCk1.js +1 -0
  38. package/dist/components/{fullscreenyNOuxxJv.js → fullscreenoNyXD8h3.js} +1 -1
  39. package/dist/components/indexB0v3MpmE.js +2937 -0
  40. package/dist/components/indexBkFttmTs.js +4 -0
  41. package/dist/components/{infoC4fRWu15.js → infoBjk0dOPE.js} +1 -1
  42. package/dist/components/{infoCDweeRWp.js → infoCA6EWNF3.js} +1 -1
  43. package/dist/components/{levelDjuyEKmz.js → levelCG93ncZs.js} +1 -1
  44. package/dist/components/{levelDjZ5vvyy.js → levelbRjS_tcK.js} +1 -1
  45. package/dist/components/{microscopeDCINdehp.js → microscopeD-EjOdf2.js} +1 -1
  46. package/dist/components/{microscopeDptxRPdj.js → microscopeD-FrVKRB.js} +1 -1
  47. package/dist/components/microscopeDd_Bl9hM.js +1 -0
  48. package/dist/components/microscopey8VfYeuX.js +132 -0
  49. package/dist/components/moveCCkgUb-0.js +74 -0
  50. package/dist/components/{moveB-QJFdLP.js → moveDYmvf7k8.js} +1 -1
  51. package/dist/components/moveQ5bEeY1C.js +1 -0
  52. package/dist/components/{moveCNc2f0wf.js → movebJvf1oPR.js} +1 -1
  53. package/dist/components/{next-o3fIifP.js → nextC6ATDCIW.js} +1 -1
  54. package/dist/components/{nextBX5bmT1e.js → nextDdiDIgB2.js} +1 -1
  55. package/dist/components/{prevDRvSbFTC.js → prevC43MjkJW.js} +1 -1
  56. package/dist/components/{prevkbxOICn5.js → prevD3zqAMQc.js} +1 -1
  57. package/dist/components/{processh0Wf3Q99.js → processCDMD34sa.js} +1 -1
  58. package/dist/components/processD1w3RPEQ.js +1 -0
  59. package/dist/components/{processBHqsEap8.js → processDR1VlciH.js} +65 -62
  60. package/dist/components/{processD06c6uax.js → processDq-wdwXj.js} +1 -1
  61. package/dist/components/{rotateCxZ7Z2pw.js → rotateB2TKrdOd.js} +1 -1
  62. package/dist/components/{rotateCm7bVQY_.js → rotateCVpCm-tK.js} +1 -1
  63. package/dist/components/rotateDEPrY9R8.js +1 -0
  64. package/dist/components/rotateD_vW_yY0.js +131 -0
  65. package/dist/components/{settingCzWjOOeH.js → settingB6ugQHJp.js} +1 -1
  66. package/dist/components/settingCqgEfv1i.js +147 -0
  67. package/dist/components/settingDCqhAo43.js +1 -0
  68. package/dist/components/{settinghh-xgIto.js → settingDgfjjrts.js} +1 -1
  69. package/dist/components/{tailorBalVOrgz.js → tailorCBjKU02K.js} +1 -1
  70. package/dist/components/{tailorCvZYsl2H.js → tailorDzvy19FE.js} +1 -1
  71. package/dist/components/{useCommonDs02MG_d.js → useCommonBD-xKHu3.js} +1 -1
  72. package/dist/components/{useCommonBBhfDvWF.js → useCommonBD90FQd0.js} +1 -1
  73. package/dist/components/zoomB5HF8Hai.js +63 -0
  74. package/dist/components/zoomBcO2XFbA.js +1 -0
  75. package/dist/components/{zoomIn8-tgvQFE.js → zoomInBrNwgimx.js} +1 -1
  76. package/dist/components/{zoomInBFjk_aLI.js → zoomInC3EAqFg-.js} +1 -1
  77. package/dist/components/{zoomOutC4Ami8gE.js → zoomOutDafuMDlQ.js} +1 -1
  78. package/dist/components/{zoomOutD3_PopeU.js → zoomOutGi1JWbc1.js} +1 -1
  79. package/dist/index.cjs.js +1 -1
  80. package/dist/index.css +1 -1
  81. package/dist/index.es.js +1 -1
  82. package/package.json +3 -4
  83. package/types/components/KfbSlideList.vue.d.ts +6 -3
  84. package/types/components/KfbView/index.d.ts +4 -1
  85. package/types/components/KfbView/index.vue.d.ts +5 -1
  86. package/types/components/KfbView/useLabel.d.ts +3 -84
  87. package/types/components/KfbView/useVoice.d.ts +88 -3
  88. package/types/components/toolbox/useCommon.d.ts +1 -1
  89. package/types/index.d.ts +41 -23
  90. package/types/index.vue.d.ts +15 -8
  91. package/types/instances.d.ts +3 -0
  92. package/types/plugins/i18n.d.ts +2 -2
  93. package/dist/components/annotateCqAOjkGt.js +0 -132
  94. package/dist/components/annotateDfW6BtgB.js +0 -1
  95. package/dist/components/customLw3nDjEr.js +0 -48
  96. package/dist/components/customSv562l99.js +0 -1
  97. package/dist/components/dotC4Q5qfQ3.js +0 -122
  98. package/dist/components/dotDO8OTl1O.js +0 -1
  99. package/dist/components/downloadCyOnwVa8.js +0 -1
  100. package/dist/components/downloadGCe-OpHT.js +0 -88
  101. package/dist/components/fullscreenBeGbvwYS.js +0 -1
  102. package/dist/components/fullscreenDvfoQFJX.js +0 -60
  103. package/dist/components/indexCBVjt8NT.js +0 -4
  104. package/dist/components/indexDOcglE90.js +0 -2948
  105. package/dist/components/microscopeB6hcfWtD.js +0 -1
  106. package/dist/components/microscopeD4o4Sywm.js +0 -129
  107. package/dist/components/moveBM4KQ8bE.js +0 -83
  108. package/dist/components/movemH2hKtp1.js +0 -1
  109. package/dist/components/processBqhO-55V.js +0 -1
  110. package/dist/components/rotateBdsvaWJ_.js +0 -140
  111. package/dist/components/rotateCyw4Ggca.js +0 -1
  112. package/dist/components/settingC3yidTns.js +0 -156
  113. package/dist/components/settingDDEEOrtI.js +0 -1
  114. package/dist/components/zoomCWKzKF3-.js +0 -1
  115. package/dist/components/zoomcWHR4OY6.js +0 -72
@@ -0,0 +1 @@
1
+ "use strict";var _=Object.defineProperty,h=Object.defineProperties;var b=Object.getOwnPropertyDescriptors;var p=Object.getOwnPropertySymbols;var w=Object.prototype.hasOwnProperty,S=Object.prototype.propertyIsEnumerable;var V=(s,o,r)=>o in s?_(s,o,{enumerable:!0,configurable:!0,writable:!0,value:r}):s[o]=r,i=(s,o)=>{for(var r in o||(o={}))w.call(o,r)&&V(s,r,o[r]);if(p)for(var r of p(o))S.call(o,r)&&V(s,r,o[r]);return s},C=(s,o)=>h(s,b(o));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),x=require("./useCommonBD90FQd0.js"),t=require("element-plus"),y=require("./processDq-wdwXj.js"),c=require("./indexBkFttmTs.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}},C(i({},x.defaultProps),{process:()=>i({},c.DEFAULT_PROCESS)})),emits:["tool"],setup(s,{emit:o}){const r=s,m=o,{t:d,textClass:E}=x.useCommon(),l=e.reactive(i(i({},c.DEFAULT_PROCESS),r.process));function u(){m("tool","process",l)}function N(){Object.assign(l,c.DEFAULT_PROCESS),u()}function g(){m("tool","save_process",l)}return(f,a)=>(e.openBlock(),e.createBlock(e.unref(t.ElPopover),{"popper-class":"el-popover-padding-0",placement:"bottom",width:"400px",trigger:"click"},{reference:e.withCtx(()=>[e.createElementVNode("div",T,[e.createVNode(e.unref(t.ElIcon),{size:f.size},{default:e.withCtx(()=>[e.createVNode(y.default)]),_:1},8,["size"]),e.createElementVNode("div",{class:e.normalizeClass(e.unref(E))},e.toDisplayString(e.unref(d)(f.text||"图像处理")),3)])]),default:e.withCtx(()=>[e.createVNode(e.unref(t.ElCard),{shadow:"never",header:e.unref(d)("图像处理")},{default:e.withCtx(()=>[e.createVNode(e.unref(t.ElForm),null,{default:e.withCtx(()=>[e.createVNode(e.unref(t.ElRow),null,{default:e.withCtx(()=>[e.createVNode(e.unref(t.ElCol),{span:24},{default:e.withCtx(()=>[e.createVNode(e.unref(t.ElFormItem),{label:e.unref(d)("红通道")},{default:e.withCtx(()=>[e.createVNode(e.unref(t.ElSlider),{modelValue:l.r,"onUpdate:modelValue":a[0]||(a[0]=n=>l.r=n),class:"flex-1",step:.1,min:-1,max:1,onChange:u},null,8,["modelValue"]),e.createElementVNode("span",D,e.toDisplayString(l.r*100)+"%",1)]),_:1},8,["label"])]),_:1}),e.createVNode(e.unref(t.ElCol),{span:24},{default:e.withCtx(()=>[e.createVNode(e.unref(t.ElFormItem),{label:e.unref(d)("绿通道")},{default:e.withCtx(()=>[e.createVNode(e.unref(t.ElSlider),{modelValue:l.g,"onUpdate:modelValue":a[1]||(a[1]=n=>l.g=n),class:"flex-1",step:.1,min:-1,max:1,onChange:u},null,8,["modelValue"]),e.createElementVNode("span",v,e.toDisplayString(l.g*100)+"%",1)]),_:1},8,["label"])]),_:1}),e.createVNode(e.unref(t.ElCol),{span:24},{default:e.withCtx(()=>[e.createVNode(e.unref(t.ElFormItem),{label:e.unref(d)("蓝通道")},{default:e.withCtx(()=>[e.createVNode(e.unref(t.ElSlider),{modelValue:l.b,"onUpdate:modelValue":a[2]||(a[2]=n=>l.b=n),class:"flex-1",step:.1,min:-1,max:1,onChange:u},null,8,["modelValue"]),e.createElementVNode("span",F,e.toDisplayString(l.b*100)+"%",1)]),_:1},8,["label"])]),_:1}),e.createVNode(e.unref(t.ElCol),{span:24},{default:e.withCtx(()=>[e.createVNode(e.unref(t.ElFormItem),{label:e.unref(d)("gamma值")},{default:e.withCtx(()=>[e.createVNode(e.unref(t.ElSlider),{modelValue:l.ga,"onUpdate:modelValue":a[3]||(a[3]=n=>l.ga=n),class:"flex-1",step:.01,min:-.05,max:2,onChange:u},null,8,["modelValue"]),e.createElementVNode("span",P,e.toDisplayString(l.ga),1)]),_:1},8,["label"])]),_:1}),e.createVNode(e.unref(t.ElCol),{span:24},{default:e.withCtx(()=>[e.createVNode(e.unref(t.ElFormItem),{label:e.unref(d)("对比度")},{default:e.withCtx(()=>[e.createVNode(e.unref(t.ElSlider),{modelValue:l.c,"onUpdate:modelValue":a[4]||(a[4]=n=>l.c=n),class:"flex-1",step:.1,min:-1,max:1,onChange:u},null,8,["modelValue"]),e.createElementVNode("span",U,e.toDisplayString(l.c*100)+"%",1)]),_:1},8,["label"])]),_:1}),e.createVNode(e.unref(t.ElCol),{span:24},{default:e.withCtx(()=>[e.createVNode(e.unref(t.ElFormItem),{label:e.unref(d)("饱和度")},{default:e.withCtx(()=>[e.createVNode(e.unref(t.ElSlider),{modelValue:l.s,"onUpdate:modelValue":a[5]||(a[5]=n=>l.s=n),class:"flex-1",step:.1,min:-1,max:1,onChange:u},null,8,["modelValue"]),e.createElementVNode("span",I,e.toDisplayString(l.s*100)+"%",1)]),_:1},8,["label"])]),_:1}),e.createVNode(e.unref(t.ElCol),{span:24},{default:e.withCtx(()=>[e.createVNode(e.unref(t.ElFormItem),{label:e.unref(d)("亮度")},{default:e.withCtx(()=>[e.createVNode(e.unref(t.ElSlider),{modelValue:l.l,"onUpdate:modelValue":a[6]||(a[6]=n=>l.l=n),class:"flex-1",step:.1,min:-1,max:1,onChange:u},null,8,["modelValue"]),e.createElementVNode("span",k,e.toDisplayString(l.l*100)+"%",1)]),_:1},8,["label"])]),_:1})]),_:1})]),_:1}),e.createElementVNode("div",z,[e.createVNode(e.unref(t.ElButton),{onClick:N},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(d)("重置")),1)]),_:1}),e.createVNode(e.unref(t.ElButton),{type:"primary",onClick:g},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(d)("保存")),1)]),_:1})])]),_:1},8,["header"])]),_:1}))}}),B=c._export_sfc(q,[["__scopeId","data-v-bdb018f5"]]);exports.default=B;
@@ -1,21 +1,24 @@
1
- import { defineComponent as U, mergeDefaults as z, reactive as j, createBlock as D, openBlock as S, unref as e, withCtx as o, createVNode as l, createElementVNode as m, toDisplayString as i, createTextVNode as v, normalizeClass as k } from "vue";
2
- import { u as I, d as B } from "./useCommonDs02MG_d.js";
3
- import { ElPopover as F, ElCard as N, ElForm as R, ElRow as T, ElCol as f, ElFormItem as c, ElSlider as _, ElButton as P, ElIcon as A } from "element-plus";
4
- import L from "./processh0Wf3Q99.js";
5
- import { D as b, _ as q } from "./indexDOcglE90.js";
6
- var G = Object.defineProperty, H = Object.defineProperties, J = Object.getOwnPropertyDescriptors, C = Object.getOwnPropertySymbols, K = Object.prototype.hasOwnProperty, M = Object.prototype.propertyIsEnumerable, E = (d, s, r) => s in d ? G(d, s, { enumerable: !0, configurable: !0, writable: !0, value: r }) : d[s] = r, g = (d, s) => {
7
- for (var r in s || (s = {}))
8
- K.call(s, r) && E(d, r, s[r]);
1
+ var y = Object.defineProperty, w = Object.defineProperties;
2
+ var B = Object.getOwnPropertyDescriptors;
3
+ var C = Object.getOwnPropertySymbols;
4
+ var D = Object.prototype.hasOwnProperty, F = Object.prototype.propertyIsEnumerable;
5
+ var E = (m, s, d) => s in m ? y(m, s, { enumerable: !0, configurable: !0, writable: !0, value: d }) : m[s] = d, g = (m, s) => {
6
+ for (var d in s || (s = {}))
7
+ D.call(s, d) && E(m, d, s[d]);
9
8
  if (C)
10
- for (var r of C(s))
11
- M.call(s, r) && E(d, r, s[r]);
12
- return d;
13
- }, O = (d, s) => H(d, J(s));
14
- 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__ */ U(O(g({}, {
15
- name: "ToolProcess"
16
- }), {
9
+ for (var d of C(s))
10
+ F.call(s, d) && E(m, d, s[d]);
11
+ return m;
12
+ }, v = (m, s) => w(m, B(s));
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 "./useCommonBD-xKHu3.js";
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 "./processCDMD34sa.js";
17
+ import { D as b, _ as M } from "./indexB0v3MpmE.js";
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
+ name: "ToolProcess",
17
20
  __name: "process",
18
- props: /* @__PURE__ */ z({
21
+ props: /* @__PURE__ */ I({
19
22
  process: {},
20
23
  size: {},
21
24
  text: {},
@@ -23,54 +26,54 @@ const Q = { class: "margin-l-4" }, W = { class: "margin-l-4" }, X = { class: "ma
23
26
  component: {},
24
27
  isPrevent: { type: Boolean },
25
28
  callback: { type: Function }
26
- }, O(g({}, B), {
29
+ }, v(g({}, A), {
27
30
  process: () => g({}, b)
28
31
  })),
29
32
  emits: ["tool"],
30
- setup(d, { emit: s }) {
31
- const r = d, V = s, { t: p, textClass: y } = I(), a = j(g(g({}, b), r.process));
32
- function u() {
33
+ setup(m, { emit: s }) {
34
+ const d = m, V = s, { t: r, textClass: k } = O(), a = N(g(g({}, b), d.process));
35
+ function i() {
33
36
  V("tool", "process", a);
34
37
  }
35
- function w() {
36
- Object.assign(a, b), u();
38
+ function z() {
39
+ Object.assign(a, b), i();
37
40
  }
38
- function h() {
41
+ function P() {
39
42
  V("tool", "save_process", a);
40
43
  }
41
- return (x, t) => (S(), D(e(F), {
44
+ return (x, t) => (T(), R(e(L), {
42
45
  "popper-class": "el-popover-padding-0",
43
46
  placement: "bottom",
44
47
  width: "400px",
45
48
  trigger: "click"
46
49
  }, {
47
50
  reference: o(() => [
48
- m("div", ae, [
49
- l(e(A), { size: x.size }, {
51
+ p("div", ae, [
52
+ l(e(J), { size: x.size }, {
50
53
  default: o(() => [
51
- l(L)
54
+ l(K)
52
55
  ]),
53
56
  _: 1
54
57
  }, 8, ["size"]),
55
- m("div", {
56
- class: k(e(y))
57
- }, i(e(p)(x.text || "图像处理")), 3)
58
+ p("div", {
59
+ class: j(e(k))
60
+ }, u(e(r)(x.text || "图像处理")), 3)
58
61
  ])
59
62
  ]),
60
63
  default: o(() => [
61
- l(e(N), {
64
+ l(e(q), {
62
65
  shadow: "never",
63
- header: e(p)("图像处理")
66
+ header: e(r)("图像处理")
64
67
  }, {
65
68
  default: o(() => [
66
- l(e(R), null, {
69
+ l(e(G), null, {
67
70
  default: o(() => [
68
- l(e(T), null, {
71
+ l(e(H), null, {
69
72
  default: o(() => [
70
73
  l(e(f), { span: 24 }, {
71
74
  default: o(() => [
72
75
  l(e(c), {
73
- label: e(p)("红通道")
76
+ label: e(r)("红通道")
74
77
  }, {
75
78
  default: o(() => [
76
79
  l(e(_), {
@@ -80,9 +83,9 @@ const Q = { class: "margin-l-4" }, W = { class: "margin-l-4" }, X = { class: "ma
80
83
  step: 0.1,
81
84
  min: -1,
82
85
  max: 1,
83
- onChange: u
86
+ onChange: i
84
87
  }, null, 8, ["modelValue"]),
85
- m("span", Q, i(a.r * 100) + "%", 1)
88
+ p("span", Q, u(a.r * 100) + "%", 1)
86
89
  ]),
87
90
  _: 1
88
91
  }, 8, ["label"])
@@ -92,7 +95,7 @@ const Q = { class: "margin-l-4" }, W = { class: "margin-l-4" }, X = { class: "ma
92
95
  l(e(f), { span: 24 }, {
93
96
  default: o(() => [
94
97
  l(e(c), {
95
- label: e(p)("绿通道")
98
+ label: e(r)("绿通道")
96
99
  }, {
97
100
  default: o(() => [
98
101
  l(e(_), {
@@ -102,9 +105,9 @@ const Q = { class: "margin-l-4" }, W = { class: "margin-l-4" }, X = { class: "ma
102
105
  step: 0.1,
103
106
  min: -1,
104
107
  max: 1,
105
- onChange: u
108
+ onChange: i
106
109
  }, null, 8, ["modelValue"]),
107
- m("span", W, i(a.g * 100) + "%", 1)
110
+ p("span", W, u(a.g * 100) + "%", 1)
108
111
  ]),
109
112
  _: 1
110
113
  }, 8, ["label"])
@@ -114,7 +117,7 @@ const Q = { class: "margin-l-4" }, W = { class: "margin-l-4" }, X = { class: "ma
114
117
  l(e(f), { span: 24 }, {
115
118
  default: o(() => [
116
119
  l(e(c), {
117
- label: e(p)("蓝通道")
120
+ label: e(r)("蓝通道")
118
121
  }, {
119
122
  default: o(() => [
120
123
  l(e(_), {
@@ -124,9 +127,9 @@ const Q = { class: "margin-l-4" }, W = { class: "margin-l-4" }, X = { class: "ma
124
127
  step: 0.1,
125
128
  min: -1,
126
129
  max: 1,
127
- onChange: u
130
+ onChange: i
128
131
  }, null, 8, ["modelValue"]),
129
- m("span", X, i(a.b * 100) + "%", 1)
132
+ p("span", X, u(a.b * 100) + "%", 1)
130
133
  ]),
131
134
  _: 1
132
135
  }, 8, ["label"])
@@ -136,7 +139,7 @@ const Q = { class: "margin-l-4" }, W = { class: "margin-l-4" }, X = { class: "ma
136
139
  l(e(f), { span: 24 }, {
137
140
  default: o(() => [
138
141
  l(e(c), {
139
- label: e(p)("gamma值")
142
+ label: e(r)("gamma值")
140
143
  }, {
141
144
  default: o(() => [
142
145
  l(e(_), {
@@ -146,9 +149,9 @@ const Q = { class: "margin-l-4" }, W = { class: "margin-l-4" }, X = { class: "ma
146
149
  step: 0.01,
147
150
  min: -0.05,
148
151
  max: 2,
149
- onChange: u
152
+ onChange: i
150
153
  }, null, 8, ["modelValue"]),
151
- m("span", Y, i(a.ga), 1)
154
+ p("span", Y, u(a.ga), 1)
152
155
  ]),
153
156
  _: 1
154
157
  }, 8, ["label"])
@@ -158,7 +161,7 @@ const Q = { class: "margin-l-4" }, W = { class: "margin-l-4" }, X = { class: "ma
158
161
  l(e(f), { span: 24 }, {
159
162
  default: o(() => [
160
163
  l(e(c), {
161
- label: e(p)("对比度")
164
+ label: e(r)("对比度")
162
165
  }, {
163
166
  default: o(() => [
164
167
  l(e(_), {
@@ -168,9 +171,9 @@ const Q = { class: "margin-l-4" }, W = { class: "margin-l-4" }, X = { class: "ma
168
171
  step: 0.1,
169
172
  min: -1,
170
173
  max: 1,
171
- onChange: u
174
+ onChange: i
172
175
  }, null, 8, ["modelValue"]),
173
- m("span", Z, i(a.c * 100) + "%", 1)
176
+ p("span", Z, u(a.c * 100) + "%", 1)
174
177
  ]),
175
178
  _: 1
176
179
  }, 8, ["label"])
@@ -180,7 +183,7 @@ const Q = { class: "margin-l-4" }, W = { class: "margin-l-4" }, X = { class: "ma
180
183
  l(e(f), { span: 24 }, {
181
184
  default: o(() => [
182
185
  l(e(c), {
183
- label: e(p)("饱和度")
186
+ label: e(r)("饱和度")
184
187
  }, {
185
188
  default: o(() => [
186
189
  l(e(_), {
@@ -190,9 +193,9 @@ const Q = { class: "margin-l-4" }, W = { class: "margin-l-4" }, X = { class: "ma
190
193
  step: 0.1,
191
194
  min: -1,
192
195
  max: 1,
193
- onChange: u
196
+ onChange: i
194
197
  }, null, 8, ["modelValue"]),
195
- m("span", $, i(a.s * 100) + "%", 1)
198
+ p("span", $, u(a.s * 100) + "%", 1)
196
199
  ]),
197
200
  _: 1
198
201
  }, 8, ["label"])
@@ -202,7 +205,7 @@ const Q = { class: "margin-l-4" }, W = { class: "margin-l-4" }, X = { class: "ma
202
205
  l(e(f), { span: 24 }, {
203
206
  default: o(() => [
204
207
  l(e(c), {
205
- label: e(p)("亮度")
208
+ label: e(r)("亮度")
206
209
  }, {
207
210
  default: o(() => [
208
211
  l(e(_), {
@@ -212,9 +215,9 @@ const Q = { class: "margin-l-4" }, W = { class: "margin-l-4" }, X = { class: "ma
212
215
  step: 0.1,
213
216
  min: -1,
214
217
  max: 1,
215
- onChange: u
218
+ onChange: i
216
219
  }, null, 8, ["modelValue"]),
217
- m("span", ee, i(a.l * 100) + "%", 1)
220
+ p("span", ee, u(a.l * 100) + "%", 1)
218
221
  ]),
219
222
  _: 1
220
223
  }, 8, ["label"])
@@ -227,19 +230,19 @@ const Q = { class: "margin-l-4" }, W = { class: "margin-l-4" }, X = { class: "ma
227
230
  ]),
228
231
  _: 1
229
232
  }),
230
- m("div", le, [
231
- l(e(P), { onClick: w }, {
233
+ p("div", le, [
234
+ l(e(U), { onClick: z }, {
232
235
  default: o(() => [
233
- v(i(e(p)("重置")), 1)
236
+ h(u(e(r)("重置")), 1)
234
237
  ]),
235
238
  _: 1
236
239
  }),
237
- l(e(P), {
240
+ l(e(U), {
238
241
  type: "primary",
239
- onClick: h
242
+ onClick: P
240
243
  }, {
241
244
  default: o(() => [
242
- v(i(e(p)("保存")), 1)
245
+ h(u(e(r)("保存")), 1)
243
246
  ]),
244
247
  _: 1
245
248
  })
@@ -251,7 +254,7 @@ const Q = { class: "margin-l-4" }, W = { class: "margin-l-4" }, X = { class: "ma
251
254
  _: 1
252
255
  }));
253
256
  }
254
- })), pe = /* @__PURE__ */ q(oe, [["__scopeId", "data-v-bdb018f5"]]);
257
+ }), pe = /* @__PURE__ */ M(oe, [["__scopeId", "data-v-bdb018f5"]]);
255
258
  export {
256
259
  pe as default
257
260
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),o=require("./indexCBVjt8NT.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("./indexBkFttmTs.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 "./indexDOcglE90.js";
2
+ import { _ as n } from "./indexB0v3MpmE.js";
3
3
  const c = {}, s = {
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("./indexCBVjt8NT.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("./indexBkFttmTs.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;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),x=require("kfb-view"),_=require("./useCommonBD90FQd0.js"),s=require("element-plus"),V=require("./rotateCVpCm-tK.js"),N=require("./arrowDHcko1dw.js"),E=require("./indexBkFttmTs.js"),k={class:"flex align-items-center"},C={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}},_.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"},{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",k,[e.createElementVNode("div",C,[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=E._export_sfc(q,[["__scopeId","data-v-0141cae6"]]);exports.default=M;
@@ -0,0 +1,131 @@
1
+ import { defineComponent as y, mergeDefaults as C, 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
+ import { isPointInEllipse as $, getAngle as F } from "kfb-view";
3
+ import { u as N, d as B } from "./useCommonBD-xKHu3.js";
4
+ import { ElPopover as D, ElCard as R, ElInputNumber as S, ElIcon as j } from "element-plus";
5
+ import A from "./rotateB2TKrdOd.js";
6
+ import q from "./arrowDRio3eqx.js";
7
+ import { _ as T } from "./indexB0v3MpmE.js";
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__ */ y({
9
+ name: "ToolRotate",
10
+ __name: "rotate",
11
+ props: /* @__PURE__ */ C({
12
+ size: {},
13
+ text: {},
14
+ name: {},
15
+ component: {},
16
+ isPrevent: { type: Boolean },
17
+ callback: { type: Function }
18
+ }, B),
19
+ setup(L) {
20
+ var v;
21
+ const { t: b, textClass: z } = N(), n = h("kfbViewRef"), u = g(!1), s = g(((v = n == null ? void 0 : n.value) == null ? void 0 : v.degrees) || 0);
22
+ w(() => {
23
+ var e;
24
+ return (e = n == null ? void 0 : n.value) == null ? void 0 : e.degrees;
25
+ }, (e) => {
26
+ s.value = e;
27
+ });
28
+ function a(e) {
29
+ var t;
30
+ s.value = parseFloat(e.toFixed(2)), (t = n == null ? void 0 : n.value) != null && t.kfbView && n.value.kfbView.viewer.viewport.setRotation(s.value);
31
+ }
32
+ function p(e) {
33
+ const t = document.querySelector(".hzzt-kfb-toolbox-rotate__container");
34
+ if (!t) return;
35
+ const l = t.getBoundingClientRect(), d = { x: 32, y: 32 }, _ = {
36
+ x: e.clientX - l.left,
37
+ y: e.clientY - l.top
38
+ };
39
+ if ($(_, d, 32, 32)) {
40
+ const x = F(d, { x: d.x, y: 0 }, _);
41
+ if (isNaN(x / Math.PI * 180)) return;
42
+ let m = parseFloat((x / Math.PI * 180).toFixed(2));
43
+ m < 0 && (m += 360), u.value = !0, a(m);
44
+ }
45
+ }
46
+ function k(e) {
47
+ u.value && p(e);
48
+ }
49
+ function f() {
50
+ u.value = !1;
51
+ }
52
+ return (e, t) => (P(), V(i(D), {
53
+ placement: "bottom",
54
+ width: "260px",
55
+ trigger: "click",
56
+ "popper-class": "el-popover-padding-0"
57
+ }, {
58
+ reference: c(() => [
59
+ o("div", J, [
60
+ r(i(j), { size: e.size }, {
61
+ default: c(() => [
62
+ r(A)
63
+ ]),
64
+ _: 1
65
+ }, 8, ["size"]),
66
+ o("div", {
67
+ class: I(i(z))
68
+ }, M(i(b)(e.text || "旋转")), 3)
69
+ ])
70
+ ]),
71
+ default: c(() => [
72
+ r(i(R), {
73
+ shadow: "never",
74
+ "body-style": { padding: "12px 12px 12px 0" }
75
+ }, {
76
+ default: c(() => [
77
+ o("div", U, [
78
+ o("div", X, [
79
+ o("div", {
80
+ class: "hzzt-kfb-toolbox-rotate__btn margin-b-1",
81
+ onClick: t[0] || (t[0] = (l) => a(0))
82
+ }),
83
+ o("div", Y, [
84
+ o("div", {
85
+ class: "hzzt-kfb-toolbox-rotate__btn margin-r-1",
86
+ onClick: t[1] || (t[1] = (l) => a(270))
87
+ }),
88
+ o("div", G, [
89
+ o("div", {
90
+ class: "hzzt-kfb-toolbox-rotate__img",
91
+ style: E({ transform: `rotate(${s.value}deg)` }),
92
+ onMousedown: p,
93
+ onMousemove: k,
94
+ onMouseup: f,
95
+ onMouseleave: f
96
+ }, [
97
+ r(q)
98
+ ], 36)
99
+ ]),
100
+ o("div", {
101
+ class: "hzzt-kfb-toolbox-rotate__btn margin-l-1",
102
+ onClick: t[2] || (t[2] = (l) => a(90))
103
+ })
104
+ ]),
105
+ o("div", {
106
+ class: "hzzt-kfb-toolbox-rotate__btn margin-t-1",
107
+ onClick: t[3] || (t[3] = (l) => a(180))
108
+ })
109
+ ]),
110
+ o("div", H, [
111
+ r(i(S), {
112
+ modelValue: s.value,
113
+ "onUpdate:modelValue": t[4] || (t[4] = (l) => s.value = l),
114
+ min: 0,
115
+ max: 360,
116
+ step: 5,
117
+ onChange: t[5] || (t[5] = (l) => a(s.value))
118
+ }, null, 8, ["modelValue"])
119
+ ])
120
+ ])
121
+ ]),
122
+ _: 1
123
+ })
124
+ ]),
125
+ _: 1
126
+ }));
127
+ }
128
+ }), nt = /* @__PURE__ */ T(K, [["__scopeId", "data-v-0141cae6"]]);
129
+ export {
130
+ nt as default
131
+ };
@@ -1,5 +1,5 @@
1
1
  import { createElementBlock as t, openBlock as o, createElementVNode as e } from "vue";
2
- import { _ as r } from "./indexDOcglE90.js";
2
+ import { _ as r } from "./indexB0v3MpmE.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,147 @@
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 "./useCommonBD-xKHu3.js";
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 "./settingB6ugQHJp.js";
5
+ import { _ as B } from "./indexB0v3MpmE.js";
6
+ const I = { class: "hzzt-kfb-toolbox__icon" }, P = /* @__PURE__ */ x({
7
+ name: "ToolSetting",
8
+ __name: "setting",
9
+ props: /* @__PURE__ */ f({
10
+ size: {},
11
+ text: {},
12
+ name: {},
13
+ component: {},
14
+ isPrevent: { type: Boolean },
15
+ callback: { type: Function }
16
+ }, w),
17
+ emits: ["tool"],
18
+ setup(D, { emit: p }) {
19
+ const v = p, { t: a, textClass: g } = E(), o = b({
20
+ all: !0,
21
+ grid: !1,
22
+ ruler: !1,
23
+ navigator: !0,
24
+ graduation: !0
25
+ });
26
+ function u(n, t) {
27
+ n === "grid" || n === "graduation" ? v("tool", n, {
28
+ show: t
29
+ }) : n === "ruler" ? v("tool", n, {
30
+ ruler: t
31
+ }) : n === "tool" && (o.value.grid = !!t, o.value.ruler = !!t, o.value.navigator = !!t, o.value.graduation = !!t), v("tool", n, t);
32
+ }
33
+ return (n, t) => (c(), V(e(k), {
34
+ placement: "bottom",
35
+ width: "230px",
36
+ trigger: "click",
37
+ "popper-class": "el-popover-padding-0"
38
+ }, {
39
+ reference: r(() => [
40
+ m("div", I, [
41
+ i(e(S), { size: n.size }, {
42
+ default: r(() => [
43
+ i(_)
44
+ ]),
45
+ _: 1
46
+ }, 8, ["size"]),
47
+ m("div", {
48
+ class: C(e(g))
49
+ }, z(e(a)(n.text || "工具")), 3)
50
+ ])
51
+ ]),
52
+ default: r(() => [
53
+ i(e(U), {
54
+ shadow: "never",
55
+ header: e(a)("工具"),
56
+ "body-style": { padding: 0 }
57
+ }, {
58
+ default: r(() => [
59
+ i(e(F), {
60
+ "label-width": "85px",
61
+ "label-position": "right"
62
+ }, {
63
+ default: r(() => [
64
+ i(e(d), {
65
+ label: e(a)("全部")
66
+ }, {
67
+ default: r(() => [
68
+ i(e(s), {
69
+ modelValue: o.value.all,
70
+ "onUpdate:modelValue": t[0] || (t[0] = (l) => o.value.all = l),
71
+ "active-text": e(a)("开"),
72
+ "inactive-text": e(a)("关"),
73
+ onChange: t[1] || (t[1] = (l) => u("tool", l))
74
+ }, null, 8, ["modelValue", "active-text", "inactive-text"])
75
+ ]),
76
+ _: 1
77
+ }, 8, ["label"]),
78
+ i(e(d), {
79
+ label: e(a)("自动网格")
80
+ }, {
81
+ default: r(() => [
82
+ i(e(s), {
83
+ modelValue: o.value.grid,
84
+ "onUpdate:modelValue": t[2] || (t[2] = (l) => o.value.grid = l),
85
+ "active-text": e(a)("开"),
86
+ "inactive-text": e(a)("关"),
87
+ onChange: t[3] || (t[3] = (l) => u("grid", l))
88
+ }, null, 8, ["modelValue", "active-text", "inactive-text"])
89
+ ]),
90
+ _: 1
91
+ }, 8, ["label"]),
92
+ i(e(d), {
93
+ label: e(a)("自动标尺")
94
+ }, {
95
+ default: r(() => [
96
+ i(e(s), {
97
+ modelValue: o.value.ruler,
98
+ "onUpdate:modelValue": t[4] || (t[4] = (l) => o.value.ruler = l),
99
+ "active-text": e(a)("开"),
100
+ "inactive-text": e(a)("关"),
101
+ onChange: t[5] || (t[5] = (l) => u("ruler", l))
102
+ }, null, 8, ["modelValue", "active-text", "inactive-text"])
103
+ ]),
104
+ _: 1
105
+ }, 8, ["label"]),
106
+ i(e(d), {
107
+ label: e(a)("导航图")
108
+ }, {
109
+ default: r(() => [
110
+ i(e(s), {
111
+ modelValue: o.value.navigator,
112
+ "onUpdate:modelValue": t[6] || (t[6] = (l) => o.value.navigator = l),
113
+ "active-text": e(a)("开"),
114
+ "inactive-text": e(a)("关"),
115
+ onChange: t[7] || (t[7] = (l) => u("navigator", l))
116
+ }, null, 8, ["modelValue", "active-text", "inactive-text"])
117
+ ]),
118
+ _: 1
119
+ }, 8, ["label"]),
120
+ i(e(d), {
121
+ label: e(a)("比例尺")
122
+ }, {
123
+ default: r(() => [
124
+ i(e(s), {
125
+ modelValue: o.value.graduation,
126
+ "onUpdate:modelValue": t[8] || (t[8] = (l) => o.value.graduation = l),
127
+ "active-text": e(a)("开"),
128
+ "inactive-text": e(a)("关"),
129
+ onChange: t[9] || (t[9] = (l) => u("graduation", l))
130
+ }, null, 8, ["modelValue", "active-text", "inactive-text"])
131
+ ]),
132
+ _: 1
133
+ }, 8, ["label"])
134
+ ]),
135
+ _: 1
136
+ })
137
+ ]),
138
+ _: 1
139
+ }, 8, ["header"])
140
+ ]),
141
+ _: 1
142
+ }));
143
+ }
144
+ }), G = /* @__PURE__ */ B(P, [["__scopeId", "data-v-3599775b"]]);
145
+ export {
146
+ G as default
147
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),d=require("./useCommonBD90FQd0.js"),r=require("element-plus"),m=require("./settingDgfjjrts.js"),v=require("./indexBkFttmTs.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}},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"},{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-3599775b"]]);exports.default=g;