hzzt-kfb-slide 0.0.3 → 0.0.5

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 (179) hide show
  1. package/README.md +5 -0
  2. package/dist/{components/annotateCtCMs-ef.js → dist/components/annotateBZhYifBy.js} +1 -1
  3. package/dist/{components/annotateCdbWkykl.js → dist/components/annotateCPG0T3zR.js} +1 -1
  4. package/dist/dist/components/annotateCqAOjkGt.js +132 -0
  5. package/dist/dist/components/annotateDfW6BtgB.js +1 -0
  6. package/dist/{components/arrowDG9uJA9k.js → dist/components/arrowBJ1_uQ_E.js} +1 -1
  7. package/dist/{components/arrowC9aIuvQe.js → dist/components/arrowDFlQxMKW.js} +1 -1
  8. package/dist/{components/arrowDownGmouwhLr.js → dist/components/arrowDownNi-pK4NR.js} +1 -1
  9. package/dist/{components/arrowDownC6bqk-lY.js → dist/components/arrowDownUoENEig7.js} +1 -1
  10. package/dist/{components/arrowLeftDtz6Sjds.js → dist/components/arrowLeftBjlKltMm.js} +1 -1
  11. package/dist/{components/arrowLeftBOXSO3ql.js → dist/components/arrowLeftDNerwLPi.js} +1 -1
  12. package/dist/{components/arrowRightDSH6IzNE.js → dist/components/arrowRight44qqQj9S.js} +1 -1
  13. package/dist/{components/arrowRightHppOESBK.js → dist/components/arrowRightMPKmxcZ8.js} +1 -1
  14. package/dist/{components/arrowUpCHU6h7kZ.js → dist/components/arrowUpDNv09R_q.js} +1 -1
  15. package/dist/{components/arrowUpCuroteRQ.js → dist/components/arrowUpu-KhVqDz.js} +1 -1
  16. package/dist/{components/channelNB37p_zP.js → dist/components/channelCzSNjDqs.js} +1 -1
  17. package/dist/{components/channelB8E2yoQ7.js → dist/components/channelDTeDAbXs.js} +1 -1
  18. package/dist/{components/checkLEGWCAxP.js → dist/components/checkD58Lt_t9.js} +1 -1
  19. package/dist/{components/checkseAngK1P.js → dist/components/checkDg1XwTUE.js} +1 -1
  20. package/dist/{components/configDLPuCFH1.js → dist/components/configDTj11Wdw.js} +1 -1
  21. package/dist/{components/configCCGG0UB4.js → dist/components/configFTiUKUAQ.js} +1 -1
  22. package/dist/dist/components/customLw3nDjEr.js +48 -0
  23. package/dist/dist/components/customSv562l99.js +1 -0
  24. package/dist/{components/deleteD2WtxFlL.js → dist/components/deleteBIUy0hW2.js} +1 -1
  25. package/dist/{components/deleteMXhIkgfB.js → dist/components/deleteCeXlMQda.js} +1 -1
  26. package/dist/{components/dotDJRbd0BV.js → dist/components/dotBcz-OP0B.js} +1 -1
  27. package/dist/dist/components/dotC4Q5qfQ3.js +122 -0
  28. package/dist/dist/components/dotDO8OTl1O.js +1 -0
  29. package/dist/{components/dotEN0Eh5Op.js → dist/components/dotDpCmvPJC.js} +1 -1
  30. package/dist/{components/downloadCaAoF5Or.js → dist/components/downloadBs4QK_IT.js} +1 -1
  31. package/dist/dist/components/downloadCyOnwVa8.js +1 -0
  32. package/dist/dist/components/downloadGCe-OpHT.js +88 -0
  33. package/dist/{components/downloadCaJyQTwU.js → dist/components/downloadnu9isJ53.js} +1 -1
  34. package/dist/{components/flipBkZOXGJN.js → dist/components/flipBwR2T8Rs.js} +1 -1
  35. package/dist/{components/flipCC_nhFBO.js → dist/components/flipvyz7dJPZ.js} +1 -1
  36. package/dist/dist/components/fullscreenBeGbvwYS.js +1 -0
  37. package/dist/{components/fullscreenEVnYx--1.js → dist/components/fullscreenCVgGTPtD.js} +1 -1
  38. package/dist/dist/components/fullscreenDvfoQFJX.js +60 -0
  39. package/dist/{components/fullscreenC380_EU3.js → dist/components/fullscreenyNOuxxJv.js} +1 -1
  40. package/dist/dist/components/indexCBVjt8NT.js +4 -0
  41. package/dist/dist/components/indexDOcglE90.js +2948 -0
  42. package/dist/{components/infoBFIavOPB.js → dist/components/infoC4fRWu15.js} +1 -1
  43. package/dist/{components/infoCp5QUeZm.js → dist/components/infoCDweeRWp.js} +1 -1
  44. package/dist/{components/levelZfTb2sPf.js → dist/components/levelDjZ5vvyy.js} +1 -1
  45. package/dist/{components/levelC1Ud4D0B.js → dist/components/levelDjuyEKmz.js} +1 -1
  46. package/dist/dist/components/microscopeB6hcfWtD.js +1 -0
  47. package/dist/dist/components/microscopeD4o4Sywm.js +129 -0
  48. package/dist/{components/microscopeDZWMA8RW.js → dist/components/microscopeDCINdehp.js} +1 -1
  49. package/dist/{components/microscopeXeEtWd1W.js → dist/components/microscopeDptxRPdj.js} +1 -1
  50. package/dist/{components/moveBea2jbYH.js → dist/components/moveB-QJFdLP.js} +1 -1
  51. package/dist/dist/components/moveBM4KQ8bE.js +83 -0
  52. package/dist/{components/moveDwsVnmQi.js → dist/components/moveCNc2f0wf.js} +1 -1
  53. package/dist/dist/components/movemH2hKtp1.js +1 -0
  54. package/dist/{components/nextC52pb5sE.js → dist/components/next-o3fIifP.js} +1 -1
  55. package/dist/{components/nextDYmCUlzZ.js → dist/components/nextBX5bmT1e.js} +1 -1
  56. package/dist/{components/prevv0XqJ_iF.js → dist/components/prevDRvSbFTC.js} +1 -1
  57. package/dist/{components/prevT7x-zgKu.js → dist/components/prevkbxOICn5.js} +1 -1
  58. package/dist/{components/process0WK-TxPd.js → dist/components/processBHqsEap8.js} +94 -89
  59. package/dist/dist/components/processBqhO-55V.js +1 -0
  60. package/dist/{components/processDW13CjX-.js → dist/components/processD06c6uax.js} +1 -1
  61. package/dist/{components/processBiTw6vPV.js → dist/components/processh0Wf3Q99.js} +1 -1
  62. package/dist/dist/components/rotateBdsvaWJ_.js +140 -0
  63. package/dist/{components/rotateDlk_Qk4Y.js → dist/components/rotateCm7bVQY_.js} +1 -1
  64. package/dist/{components/rotateCbkJvPFi.js → dist/components/rotateCxZ7Z2pw.js} +1 -1
  65. package/dist/dist/components/rotateCyw4Ggca.js +1 -0
  66. package/dist/dist/components/settingC3yidTns.js +156 -0
  67. package/dist/{components/settingDyHmqPh3.js → dist/components/settingCzWjOOeH.js} +1 -1
  68. package/dist/dist/components/settingDDEEOrtI.js +1 -0
  69. package/dist/{components/settingDVPXWTEf.js → dist/components/settinghh-xgIto.js} +1 -1
  70. package/dist/{components/tailorDHg9ZsXw.js → dist/components/tailorBalVOrgz.js} +1 -1
  71. package/dist/{components/tailorBgKlGdZj.js → dist/components/tailorCvZYsl2H.js} +1 -1
  72. package/dist/{components/useCommonB2St3W5r.js → dist/components/useCommonBBhfDvWF.js} +1 -1
  73. package/dist/{components/useCommonCwKio4Jh.js → dist/components/useCommonDs02MG_d.js} +1 -1
  74. package/dist/dist/components/zoomCWKzKF3-.js +1 -0
  75. package/dist/{components/zoomIn73PRBFpz.js → dist/components/zoomIn8-tgvQFE.js} +1 -1
  76. package/dist/{components/zoomInDWX2Osc6.js → dist/components/zoomInBFjk_aLI.js} +1 -1
  77. package/dist/{components/zoomOutD8Mlbb8q.js → dist/components/zoomOutC4Ami8gE.js} +1 -1
  78. package/dist/{components/zoomOutgHFV2sxE.js → dist/components/zoomOutD3_PopeU.js} +1 -1
  79. package/dist/dist/components/zoomcWHR4OY6.js +72 -0
  80. package/dist/{index.cjs.js → dist/index.cjs.js} +1 -1
  81. package/dist/{index.css → dist/index.css} +1 -1
  82. package/dist/{index.es.js → dist/index.es.js} +1 -1
  83. package/dist/package.json +39 -0
  84. package/{types → dist/types}/components/KfbView/index.d.ts +5 -1
  85. package/{types → dist/types}/components/KfbView/index.vue.d.ts +8 -4
  86. package/dist/types/components/KfbView/useLabel.d.ts +172 -0
  87. package/dist/types/components/KfbView/useVoice.d.ts +8 -0
  88. package/{types → dist/types}/components/ai/useAi.d.ts +6 -2
  89. package/{types → dist/types}/index.d.ts +18 -6
  90. package/{types → dist/types}/instances.d.ts +1 -0
  91. package/package.json +4 -6
  92. package/dist/components/annotateBNqnmoMI.js +0 -1
  93. package/dist/components/annotateD0egGTin.js +0 -122
  94. package/dist/components/customBbYfn41m.js +0 -1
  95. package/dist/components/customDo3qaJ1U.js +0 -39
  96. package/dist/components/dotBgHmd0mz.js +0 -1
  97. package/dist/components/dotg0NvS9Ck.js +0 -112
  98. package/dist/components/downloadD_Bmec44.js +0 -79
  99. package/dist/components/downloadGX-_YQez.js +0 -1
  100. package/dist/components/fullscreenDUzxAfXo.js +0 -1
  101. package/dist/components/fullscreenDjH9QoF2.js +0 -51
  102. package/dist/components/indexD_phlegk.js +0 -30
  103. package/dist/components/indexDdIv5EKS.js +0 -11179
  104. package/dist/components/microscopeBeixYxYI.js +0 -1
  105. package/dist/components/microscopeCmqOpPc4.js +0 -124
  106. package/dist/components/moveB1DiH4PI.js +0 -74
  107. package/dist/components/moveBzePKtM6.js +0 -1
  108. package/dist/components/processCmTYHlH3.js +0 -1
  109. package/dist/components/rotateBViLTXxd.js +0 -1
  110. package/dist/components/rotateLcm0V_kN.js +0 -130
  111. package/dist/components/setting3RU3dG2s.js +0 -1
  112. package/dist/components/settingCZkmIJSr.js +0 -147
  113. package/dist/components/zoomBKsf5GkB.js +0 -1
  114. package/dist/components/zoomCnS6EmhN.js +0 -63
  115. package/types/components/KfbView/useLabel.d.ts +0 -85
  116. /package/dist/{components → dist/components}/lineBIoJpzbf.js +0 -0
  117. /package/dist/{components → dist/components}/lineCzuS7Giu.js +0 -0
  118. /package/{types → dist/types}/components/KfbIcon.vue.d.ts +0 -0
  119. /package/{types → dist/types}/components/KfbImage.vue.d.ts +0 -0
  120. /package/{types → dist/types}/components/KfbSlideList.vue.d.ts +0 -0
  121. /package/{types → dist/types}/components/KfbToolConfig.vue.d.ts +0 -0
  122. /package/{types → dist/types}/components/KfbToolbox.vue.d.ts +0 -0
  123. /package/{types → dist/types}/components/KfbView/KfbChannel.vue.d.ts +0 -0
  124. /package/{types → dist/types}/components/KfbView/KfbKeyword.vue.d.ts +0 -0
  125. /package/{types → dist/types}/components/KfbView/KfbLabel.vue.d.ts +0 -0
  126. /package/{types → dist/types}/components/KfbView/KfbLevel.vue.d.ts +0 -0
  127. /package/{types → dist/types}/components/KfbView/KfbMenu.vue.d.ts +0 -0
  128. /package/{types → dist/types}/components/KfbView/KfbMicroscope.vue.d.ts +0 -0
  129. /package/{types → dist/types}/components/KfbView/useDot.d.ts +0 -0
  130. /package/{types → dist/types}/components/KfbView/useHotmap.d.ts +0 -0
  131. /package/{types → dist/types}/components/KfbView/useImageProcess.d.ts +0 -0
  132. /package/{types → dist/types}/components/KfbView/useMove.d.ts +0 -0
  133. /package/{types → dist/types}/components/KfbView/usePointer.d.ts +0 -0
  134. /package/{types → dist/types}/components/KfbView/useSync.d.ts +0 -0
  135. /package/{types → dist/types}/components/KfbView/useTailor.d.ts +0 -0
  136. /package/{types → dist/types}/components/ai/list.vue.d.ts +0 -0
  137. /package/{types → dist/types}/components/icon/annotate.vue.d.ts +0 -0
  138. /package/{types → dist/types}/components/icon/arrow.vue.d.ts +0 -0
  139. /package/{types → dist/types}/components/icon/arrowDown.vue.d.ts +0 -0
  140. /package/{types → dist/types}/components/icon/arrowLeft.vue.d.ts +0 -0
  141. /package/{types → dist/types}/components/icon/arrowRight.vue.d.ts +0 -0
  142. /package/{types → dist/types}/components/icon/arrowUp.vue.d.ts +0 -0
  143. /package/{types → dist/types}/components/icon/channel.vue.d.ts +0 -0
  144. /package/{types → dist/types}/components/icon/check.vue.d.ts +0 -0
  145. /package/{types → dist/types}/components/icon/config.vue.d.ts +0 -0
  146. /package/{types → dist/types}/components/icon/delete.vue.d.ts +0 -0
  147. /package/{types → dist/types}/components/icon/dot.vue.d.ts +0 -0
  148. /package/{types → dist/types}/components/icon/download.vue.d.ts +0 -0
  149. /package/{types → dist/types}/components/icon/flip.vue.d.ts +0 -0
  150. /package/{types → dist/types}/components/icon/fullscreen.vue.d.ts +0 -0
  151. /package/{types → dist/types}/components/icon/index.d.ts +0 -0
  152. /package/{types → dist/types}/components/icon/info.vue.d.ts +0 -0
  153. /package/{types → dist/types}/components/icon/level.vue.d.ts +0 -0
  154. /package/{types → dist/types}/components/icon/list.vue.d.ts +0 -0
  155. /package/{types → dist/types}/components/icon/menu.vue.d.ts +0 -0
  156. /package/{types → dist/types}/components/icon/microscope.vue.d.ts +0 -0
  157. /package/{types → dist/types}/components/icon/move.vue.d.ts +0 -0
  158. /package/{types → dist/types}/components/icon/next.vue.d.ts +0 -0
  159. /package/{types → dist/types}/components/icon/prev.vue.d.ts +0 -0
  160. /package/{types → dist/types}/components/icon/process.vue.d.ts +0 -0
  161. /package/{types → dist/types}/components/icon/rotate.vue.d.ts +0 -0
  162. /package/{types → dist/types}/components/icon/setting.vue.d.ts +0 -0
  163. /package/{types → dist/types}/components/icon/tailor.vue.d.ts +0 -0
  164. /package/{types → dist/types}/components/icon/zoomIn.vue.d.ts +0 -0
  165. /package/{types → dist/types}/components/toolbox/annotate.vue.d.ts +0 -0
  166. /package/{types → dist/types}/components/toolbox/custom.vue.d.ts +0 -0
  167. /package/{types → dist/types}/components/toolbox/dot.vue.d.ts +0 -0
  168. /package/{types → dist/types}/components/toolbox/download.vue.d.ts +0 -0
  169. /package/{types → dist/types}/components/toolbox/fullscreen.vue.d.ts +0 -0
  170. /package/{types → dist/types}/components/toolbox/instances.d.ts +0 -0
  171. /package/{types → dist/types}/components/toolbox/microscope.vue.d.ts +0 -0
  172. /package/{types → dist/types}/components/toolbox/move.vue.d.ts +0 -0
  173. /package/{types → dist/types}/components/toolbox/process.vue.d.ts +0 -0
  174. /package/{types → dist/types}/components/toolbox/rotate.vue.d.ts +0 -0
  175. /package/{types → dist/types}/components/toolbox/setting.vue.d.ts +0 -0
  176. /package/{types → dist/types}/components/toolbox/useCommon.d.ts +0 -0
  177. /package/{types → dist/types}/components/toolbox/zoom.vue.d.ts +0 -0
  178. /package/{types → dist/types}/index.vue.d.ts +0 -0
  179. /package/{types → dist/types}/plugins/i18n.d.ts +0 -0
@@ -1,12 +1,21 @@
1
- import { defineComponent as U, mergeDefaults as k, reactive as z, createBlock as P, openBlock as y, unref as e, withCtx as o, createVNode as l, createElementVNode as d, toDisplayString as m, createTextVNode as g, normalizeClass as w } from "vue";
2
- import { u as B, d as D } from "./useCommonCwKio4Jh.js";
3
- import { ElPopover as F, ElCard as S, ElForm as I, ElRow as N, ElCol as p, ElFormItem as u, ElSlider as i, ElButton as b, ElIcon as R } from "element-plus";
4
- import T from "./processBiTw6vPV.js";
5
- import { D as f, _ as j } from "./indexDdIv5EKS.js";
6
- const O = { class: "margin-l-4" }, A = { class: "margin-l-4" }, L = { class: "margin-l-4" }, q = { class: "margin-l-4" }, G = { class: "margin-l-4" }, H = { class: "margin-l-4" }, J = { class: "margin-l-4" }, K = { class: "flex justify-content-end" }, M = { class: "hzzt-kfb-toolbox__icon" }, Q = /* @__PURE__ */ U({
7
- name: "ToolProcess",
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]);
9
+ 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
+ }), {
8
17
  __name: "process",
9
- props: /* @__PURE__ */ k({
18
+ props: /* @__PURE__ */ z({
10
19
  process: {},
11
20
  size: {},
12
21
  text: {},
@@ -14,202 +23,198 @@ const O = { class: "margin-l-4" }, A = { class: "margin-l-4" }, L = { class: "ma
14
23
  component: {},
15
24
  isPrevent: { type: Boolean },
16
25
  callback: { type: Function }
17
- }, {
18
- ...D,
19
- process: () => ({ ...f })
20
- }),
26
+ }, O(g({}, B), {
27
+ process: () => g({}, b)
28
+ })),
21
29
  emits: ["tool"],
22
- setup(V, { emit: x }) {
23
- const C = V, c = x, { t: n, textClass: E } = B(), a = z({
24
- ...f,
25
- ...C.process
26
- });
27
- function r() {
28
- c("tool", "process", a);
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
+ V("tool", "process", a);
29
34
  }
30
- function v() {
31
- Object.assign(a, f), r();
35
+ function w() {
36
+ Object.assign(a, b), u();
32
37
  }
33
38
  function h() {
34
- c("tool", "save_process", a);
39
+ V("tool", "save_process", a);
35
40
  }
36
- return (_, s) => (y(), P(e(F), {
41
+ return (x, t) => (S(), D(e(F), {
37
42
  "popper-class": "el-popover-padding-0",
38
43
  placement: "bottom",
39
44
  width: "400px",
40
45
  trigger: "click"
41
46
  }, {
42
47
  reference: o(() => [
43
- d("div", M, [
44
- l(e(R), { size: _.size }, {
48
+ m("div", ae, [
49
+ l(e(A), { size: x.size }, {
45
50
  default: o(() => [
46
- l(T)
51
+ l(L)
47
52
  ]),
48
53
  _: 1
49
54
  }, 8, ["size"]),
50
- d("div", {
51
- class: w(e(E))
52
- }, m(e(n)(_.text || "图像处理")), 3)
55
+ m("div", {
56
+ class: k(e(y))
57
+ }, i(e(p)(x.text || "图像处理")), 3)
53
58
  ])
54
59
  ]),
55
60
  default: o(() => [
56
- l(e(S), {
61
+ l(e(N), {
57
62
  shadow: "never",
58
- header: e(n)("图像处理")
63
+ header: e(p)("图像处理")
59
64
  }, {
60
65
  default: o(() => [
61
- l(e(I), null, {
66
+ l(e(R), null, {
62
67
  default: o(() => [
63
- l(e(N), null, {
68
+ l(e(T), null, {
64
69
  default: o(() => [
65
- l(e(p), { span: 24 }, {
70
+ l(e(f), { span: 24 }, {
66
71
  default: o(() => [
67
- l(e(u), {
68
- label: e(n)("红通道")
72
+ l(e(c), {
73
+ label: e(p)("红通道")
69
74
  }, {
70
75
  default: o(() => [
71
- l(e(i), {
76
+ l(e(_), {
72
77
  modelValue: a.r,
73
- "onUpdate:modelValue": s[0] || (s[0] = (t) => a.r = t),
78
+ "onUpdate:modelValue": t[0] || (t[0] = (n) => a.r = n),
74
79
  class: "flex-1",
75
80
  step: 0.1,
76
81
  min: -1,
77
82
  max: 1,
78
- onChange: r
83
+ onChange: u
79
84
  }, null, 8, ["modelValue"]),
80
- d("span", O, m(a.r * 100) + "%", 1)
85
+ m("span", Q, i(a.r * 100) + "%", 1)
81
86
  ]),
82
87
  _: 1
83
88
  }, 8, ["label"])
84
89
  ]),
85
90
  _: 1
86
91
  }),
87
- l(e(p), { span: 24 }, {
92
+ l(e(f), { span: 24 }, {
88
93
  default: o(() => [
89
- l(e(u), {
90
- label: e(n)("绿通道")
94
+ l(e(c), {
95
+ label: e(p)("绿通道")
91
96
  }, {
92
97
  default: o(() => [
93
- l(e(i), {
98
+ l(e(_), {
94
99
  modelValue: a.g,
95
- "onUpdate:modelValue": s[1] || (s[1] = (t) => a.g = t),
100
+ "onUpdate:modelValue": t[1] || (t[1] = (n) => a.g = n),
96
101
  class: "flex-1",
97
102
  step: 0.1,
98
103
  min: -1,
99
104
  max: 1,
100
- onChange: r
105
+ onChange: u
101
106
  }, null, 8, ["modelValue"]),
102
- d("span", A, m(a.g * 100) + "%", 1)
107
+ m("span", W, i(a.g * 100) + "%", 1)
103
108
  ]),
104
109
  _: 1
105
110
  }, 8, ["label"])
106
111
  ]),
107
112
  _: 1
108
113
  }),
109
- l(e(p), { span: 24 }, {
114
+ l(e(f), { span: 24 }, {
110
115
  default: o(() => [
111
- l(e(u), {
112
- label: e(n)("蓝通道")
116
+ l(e(c), {
117
+ label: e(p)("蓝通道")
113
118
  }, {
114
119
  default: o(() => [
115
- l(e(i), {
120
+ l(e(_), {
116
121
  modelValue: a.b,
117
- "onUpdate:modelValue": s[2] || (s[2] = (t) => a.b = t),
122
+ "onUpdate:modelValue": t[2] || (t[2] = (n) => a.b = n),
118
123
  class: "flex-1",
119
124
  step: 0.1,
120
125
  min: -1,
121
126
  max: 1,
122
- onChange: r
127
+ onChange: u
123
128
  }, null, 8, ["modelValue"]),
124
- d("span", L, m(a.b * 100) + "%", 1)
129
+ m("span", X, i(a.b * 100) + "%", 1)
125
130
  ]),
126
131
  _: 1
127
132
  }, 8, ["label"])
128
133
  ]),
129
134
  _: 1
130
135
  }),
131
- l(e(p), { span: 24 }, {
136
+ l(e(f), { span: 24 }, {
132
137
  default: o(() => [
133
- l(e(u), {
134
- label: e(n)("gamma值")
138
+ l(e(c), {
139
+ label: e(p)("gamma值")
135
140
  }, {
136
141
  default: o(() => [
137
- l(e(i), {
142
+ l(e(_), {
138
143
  modelValue: a.ga,
139
- "onUpdate:modelValue": s[3] || (s[3] = (t) => a.ga = t),
144
+ "onUpdate:modelValue": t[3] || (t[3] = (n) => a.ga = n),
140
145
  class: "flex-1",
141
146
  step: 0.01,
142
147
  min: -0.05,
143
148
  max: 2,
144
- onChange: r
149
+ onChange: u
145
150
  }, null, 8, ["modelValue"]),
146
- d("span", q, m(a.ga), 1)
151
+ m("span", Y, i(a.ga), 1)
147
152
  ]),
148
153
  _: 1
149
154
  }, 8, ["label"])
150
155
  ]),
151
156
  _: 1
152
157
  }),
153
- l(e(p), { span: 24 }, {
158
+ l(e(f), { span: 24 }, {
154
159
  default: o(() => [
155
- l(e(u), {
156
- label: e(n)("对比度")
160
+ l(e(c), {
161
+ label: e(p)("对比度")
157
162
  }, {
158
163
  default: o(() => [
159
- l(e(i), {
164
+ l(e(_), {
160
165
  modelValue: a.c,
161
- "onUpdate:modelValue": s[4] || (s[4] = (t) => a.c = t),
166
+ "onUpdate:modelValue": t[4] || (t[4] = (n) => a.c = n),
162
167
  class: "flex-1",
163
168
  step: 0.1,
164
169
  min: -1,
165
170
  max: 1,
166
- onChange: r
171
+ onChange: u
167
172
  }, null, 8, ["modelValue"]),
168
- d("span", G, m(a.c * 100) + "%", 1)
173
+ m("span", Z, i(a.c * 100) + "%", 1)
169
174
  ]),
170
175
  _: 1
171
176
  }, 8, ["label"])
172
177
  ]),
173
178
  _: 1
174
179
  }),
175
- l(e(p), { span: 24 }, {
180
+ l(e(f), { span: 24 }, {
176
181
  default: o(() => [
177
- l(e(u), {
178
- label: e(n)("饱和度")
182
+ l(e(c), {
183
+ label: e(p)("饱和度")
179
184
  }, {
180
185
  default: o(() => [
181
- l(e(i), {
186
+ l(e(_), {
182
187
  modelValue: a.s,
183
- "onUpdate:modelValue": s[5] || (s[5] = (t) => a.s = t),
188
+ "onUpdate:modelValue": t[5] || (t[5] = (n) => a.s = n),
184
189
  class: "flex-1",
185
190
  step: 0.1,
186
191
  min: -1,
187
192
  max: 1,
188
- onChange: r
193
+ onChange: u
189
194
  }, null, 8, ["modelValue"]),
190
- d("span", H, m(a.s * 100) + "%", 1)
195
+ m("span", $, i(a.s * 100) + "%", 1)
191
196
  ]),
192
197
  _: 1
193
198
  }, 8, ["label"])
194
199
  ]),
195
200
  _: 1
196
201
  }),
197
- l(e(p), { span: 24 }, {
202
+ l(e(f), { span: 24 }, {
198
203
  default: o(() => [
199
- l(e(u), {
200
- label: e(n)("亮度")
204
+ l(e(c), {
205
+ label: e(p)("亮度")
201
206
  }, {
202
207
  default: o(() => [
203
- l(e(i), {
208
+ l(e(_), {
204
209
  modelValue: a.l,
205
- "onUpdate:modelValue": s[6] || (s[6] = (t) => a.l = t),
210
+ "onUpdate:modelValue": t[6] || (t[6] = (n) => a.l = n),
206
211
  class: "flex-1",
207
212
  step: 0.1,
208
213
  min: -1,
209
214
  max: 1,
210
- onChange: r
215
+ onChange: u
211
216
  }, null, 8, ["modelValue"]),
212
- d("span", J, m(a.l * 100) + "%", 1)
217
+ m("span", ee, i(a.l * 100) + "%", 1)
213
218
  ]),
214
219
  _: 1
215
220
  }, 8, ["label"])
@@ -222,19 +227,19 @@ const O = { class: "margin-l-4" }, A = { class: "margin-l-4" }, L = { class: "ma
222
227
  ]),
223
228
  _: 1
224
229
  }),
225
- d("div", K, [
226
- l(e(b), { onClick: v }, {
230
+ m("div", le, [
231
+ l(e(P), { onClick: w }, {
227
232
  default: o(() => [
228
- g(m(e(n)("重置")), 1)
233
+ v(i(e(p)("重置")), 1)
229
234
  ]),
230
235
  _: 1
231
236
  }),
232
- l(e(b), {
237
+ l(e(P), {
233
238
  type: "primary",
234
239
  onClick: h
235
240
  }, {
236
241
  default: o(() => [
237
- g(m(e(n)("保存")), 1)
242
+ v(i(e(p)("保存")), 1)
238
243
  ]),
239
244
  _: 1
240
245
  })
@@ -246,7 +251,7 @@ const O = { class: "margin-l-4" }, A = { class: "margin-l-4" }, L = { class: "ma
246
251
  _: 1
247
252
  }));
248
253
  }
249
- }), ee = /* @__PURE__ */ j(Q, [["__scopeId", "data-v-bdb018f5"]]);
254
+ })), pe = /* @__PURE__ */ q(oe, [["__scopeId", "data-v-bdb018f5"]]);
250
255
  export {
251
- ee as default
256
+ pe as default
252
257
  };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),p=require("./useCommonBBhfDvWF.js"),t=require("element-plus"),N=require("./processD06c6uax.js"),c=require("./indexCBVjt8NT.js");var w=Object.defineProperty,h=Object.defineProperties,b=Object.getOwnPropertyDescriptors,V=Object.getOwnPropertySymbols,S=Object.prototype.hasOwnProperty,y=Object.prototype.propertyIsEnumerable,_=(s,o,n)=>o in s?w(s,o,{enumerable:!0,configurable:!0,writable:!0,value:n}):s[o]=n,i=(s,o)=>{for(var n in o||(o={}))S.call(o,n)&&_(s,n,o[n]);if(V)for(var n of V(o))y.call(o,n)&&_(s,n,o[n]);return s},C=(s,o)=>h(s,b(o));const v={class:"margin-l-4"},P={class:"margin-l-4"},O={class:"margin-l-4"},D={class:"margin-l-4"},F={class:"margin-l-4"},I={class:"margin-l-4"},U={class:"margin-l-4"},j={class:"flex justify-content-end"},z={class:"hzzt-kfb-toolbox__icon"},T=e.defineComponent(C(i({},{name:"ToolProcess"}),{__name:"process",props:e.mergeDefaults({process:{},size:{},text:{},name:{},component:{},isPrevent:{type:Boolean},callback:{type:Function}},C(i({},p.defaultProps),{process:()=>i({},c.DEFAULT_PROCESS)})),emits:["tool"],setup(s,{emit:o}){const n=s,f=o,{t:d,textClass:E}=p.useCommon(),l=e.reactive(i(i({},c.DEFAULT_PROCESS),n.process));function u(){f("tool","process",l)}function x(){Object.assign(l,c.DEFAULT_PROCESS),u()}function g(){f("tool","save_process",l)}return(m,r)=>(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",z,[e.createVNode(e.unref(t.ElIcon),{size:m.size},{default:e.withCtx(()=>[e.createVNode(N.default)]),_:1},8,["size"]),e.createElementVNode("div",{class:e.normalizeClass(e.unref(E))},e.toDisplayString(e.unref(d)(m.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":r[0]||(r[0]=a=>l.r=a),class:"flex-1",step:.1,min:-1,max:1,onChange:u},null,8,["modelValue"]),e.createElementVNode("span",v,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":r[1]||(r[1]=a=>l.g=a),class:"flex-1",step:.1,min:-1,max:1,onChange:u},null,8,["modelValue"]),e.createElementVNode("span",P,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":r[2]||(r[2]=a=>l.b=a),class:"flex-1",step:.1,min:-1,max:1,onChange:u},null,8,["modelValue"]),e.createElementVNode("span",O,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":r[3]||(r[3]=a=>l.ga=a),class:"flex-1",step:.01,min:-.05,max:2,onChange:u},null,8,["modelValue"]),e.createElementVNode("span",D,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":r[4]||(r[4]=a=>l.c=a),class:"flex-1",step:.1,min:-1,max:1,onChange:u},null,8,["modelValue"]),e.createElementVNode("span",F,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":r[5]||(r[5]=a=>l.s=a),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":r[6]||(r[6]=a=>l.l=a),class:"flex-1",step:.1,min:-1,max:1,onChange:u},null,8,["modelValue"]),e.createElementVNode("span",U,e.toDisplayString(l.l*100)+"%",1)]),_:1},8,["label"])]),_:1})]),_:1})]),_:1}),e.createElementVNode("div",j,[e.createVNode(e.unref(t.ElButton),{onClick:x},{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}))}})),k=c._export_sfc(T,[["__scopeId","data-v-bdb018f5"]]);exports.default=k;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),o=require("./indexD_phlegk.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("./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,5 +1,5 @@
1
1
  import { createElementBlock as o, openBlock as C, createElementVNode as t } from "vue";
2
- import { _ as r } from "./indexDdIv5EKS.js";
2
+ import { _ as r } from "./indexDOcglE90.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,140 @@
1
+ import { defineComponent as h, mergeDefaults as C, inject as O, ref as z, watch as R, createBlock as V, openBlock as E, unref as p, withCtx as f, createVNode as c, createElementVNode as n, normalizeStyle as I, normalizeClass as j, toDisplayString as M } from "vue";
2
+ import { isPointInEllipse as N, getAngle as $ } from "kfb-view";
3
+ import { u as D, d as F } from "./useCommonDs02MG_d.js";
4
+ import { ElPopover as S, ElCard as B, ElInputNumber as A, ElIcon as q } from "element-plus";
5
+ import T from "./rotateCxZ7Z2pw.js";
6
+ import U from "./arrowBJ1_uQ_E.js";
7
+ import { _ as X } from "./indexDOcglE90.js";
8
+ var Y = Object.defineProperty, G = Object.defineProperties, H = Object.getOwnPropertyDescriptors, k = Object.getOwnPropertySymbols, J = Object.prototype.hasOwnProperty, K = Object.prototype.propertyIsEnumerable, y = (l, t, r) => t in l ? Y(l, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : l[t] = r, L = (l, t) => {
9
+ for (var r in t || (t = {}))
10
+ J.call(t, r) && y(l, r, t[r]);
11
+ if (k)
12
+ for (var r of k(t))
13
+ K.call(t, r) && y(l, r, t[r]);
14
+ return l;
15
+ }, Q = (l, t) => G(l, H(t));
16
+ const W = { class: "flex align-items-center" }, Z = { class: "flex column align-items-center flex-1" }, ee = { class: "flex justify-content-center align-items-center" }, te = { class: "hzzt-kfb-toolbox-rotate__container" }, oe = { class: "hzzt-kfb-toolbox-rotate__angle" }, re = { class: "hzzt-kfb-toolbox__icon" }, ne = /* @__PURE__ */ h(Q(L({}, {
17
+ name: "ToolRotate"
18
+ }), {
19
+ __name: "rotate",
20
+ props: /* @__PURE__ */ C({
21
+ size: {},
22
+ text: {},
23
+ name: {},
24
+ component: {},
25
+ isPrevent: { type: Boolean },
26
+ callback: { type: Function }
27
+ }, F),
28
+ setup(l) {
29
+ var t;
30
+ const { t: r, textClass: P } = D(), s = O("kfbViewRef"), d = z(!1), i = z(((t = s == null ? void 0 : s.value) == null ? void 0 : t.degrees) || 0);
31
+ R(() => {
32
+ var o;
33
+ return (o = s == null ? void 0 : s.value) == null ? void 0 : o.degrees;
34
+ }, (o) => {
35
+ i.value = o;
36
+ });
37
+ function u(o) {
38
+ var e;
39
+ i.value = parseFloat(o.toFixed(2)), (e = s == null ? void 0 : s.value) != null && e.kfbView && s.value.kfbView.viewer.viewport.setRotation(i.value);
40
+ }
41
+ function _(o) {
42
+ const e = document.querySelector(".hzzt-kfb-toolbox-rotate__container");
43
+ if (!e) return;
44
+ const a = e.getBoundingClientRect(), v = { x: 32, y: 32 }, g = {
45
+ x: o.clientX - a.left,
46
+ y: o.clientY - a.top
47
+ };
48
+ if (N(g, v, 32, 32)) {
49
+ const x = $(v, { x: v.x, y: 0 }, g);
50
+ if (isNaN(x / Math.PI * 180)) return;
51
+ let m = parseFloat((x / Math.PI * 180).toFixed(2));
52
+ m < 0 && (m += 360), d.value = !0, u(m);
53
+ }
54
+ }
55
+ function w(o) {
56
+ d.value && _(o);
57
+ }
58
+ function b() {
59
+ d.value = !1;
60
+ }
61
+ return (o, e) => (E(), V(p(S), {
62
+ placement: "bottom",
63
+ width: "260px",
64
+ trigger: "click",
65
+ "popper-class": "el-popover-padding-0"
66
+ }, {
67
+ reference: f(() => [
68
+ n("div", re, [
69
+ c(p(q), { size: o.size }, {
70
+ default: f(() => [
71
+ c(T)
72
+ ]),
73
+ _: 1
74
+ }, 8, ["size"]),
75
+ n("div", {
76
+ class: j(p(P))
77
+ }, M(p(r)(o.text || "旋转")), 3)
78
+ ])
79
+ ]),
80
+ default: f(() => [
81
+ c(p(B), {
82
+ shadow: "never",
83
+ "body-style": { padding: "12px 12px 12px 0" }
84
+ }, {
85
+ default: f(() => [
86
+ n("div", W, [
87
+ n("div", Z, [
88
+ n("div", {
89
+ class: "hzzt-kfb-toolbox-rotate__btn margin-b-1",
90
+ onClick: e[0] || (e[0] = (a) => u(0))
91
+ }),
92
+ n("div", ee, [
93
+ n("div", {
94
+ class: "hzzt-kfb-toolbox-rotate__btn margin-r-1",
95
+ onClick: e[1] || (e[1] = (a) => u(270))
96
+ }),
97
+ n("div", te, [
98
+ n("div", {
99
+ class: "hzzt-kfb-toolbox-rotate__img",
100
+ style: I({ transform: `rotate(${i.value}deg)` }),
101
+ onMousedown: _,
102
+ onMousemove: w,
103
+ onMouseup: b,
104
+ onMouseleave: b
105
+ }, [
106
+ c(U)
107
+ ], 36)
108
+ ]),
109
+ n("div", {
110
+ class: "hzzt-kfb-toolbox-rotate__btn margin-l-1",
111
+ onClick: e[2] || (e[2] = (a) => u(90))
112
+ })
113
+ ]),
114
+ n("div", {
115
+ class: "hzzt-kfb-toolbox-rotate__btn margin-t-1",
116
+ onClick: e[3] || (e[3] = (a) => u(180))
117
+ })
118
+ ]),
119
+ n("div", oe, [
120
+ c(p(A), {
121
+ modelValue: i.value,
122
+ "onUpdate:modelValue": e[4] || (e[4] = (a) => i.value = a),
123
+ min: 0,
124
+ max: 360,
125
+ step: 5,
126
+ onChange: e[5] || (e[5] = (a) => u(i.value))
127
+ }, null, 8, ["modelValue"])
128
+ ])
129
+ ])
130
+ ]),
131
+ _: 1
132
+ })
133
+ ]),
134
+ _: 1
135
+ }));
136
+ }
137
+ })), fe = /* @__PURE__ */ X(ne, [["__scopeId", "data-v-0141cae6"]]);
138
+ export {
139
+ fe as default
140
+ };
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),o=require("./indexD_phlegk.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("./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,5 +1,5 @@
1
1
  import { createElementBlock as o, openBlock as r, createElementVNode as t } from "vue";
2
- import { _ as n } from "./indexDdIv5EKS.js";
2
+ import { _ as n } from "./indexDOcglE90.js";
3
3
  const c = {}, s = {
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"),g=require("kfb-view"),x=require("./useCommonBBhfDvWF.js"),u=require("element-plus"),N=require("./rotateCm7bVQY_.js"),P=require("./arrowDFlQxMKW.js"),k=require("./indexCBVjt8NT.js");var E=Object.defineProperty,h=Object.defineProperties,C=Object.getOwnPropertyDescriptors,V=Object.getOwnPropertySymbols,O=Object.prototype.hasOwnProperty,R=Object.prototype.propertyIsEnumerable,z=(l,o,r)=>o in l?E(l,o,{enumerable:!0,configurable:!0,writable:!0,value:r}):l[o]=r,q=(l,o)=>{for(var r in o||(o={}))O.call(o,r)&&z(l,r,o[r]);if(V)for(var r of V(o))R.call(o,r)&&z(l,r,o[r]);return l},I=(l,o)=>h(l,C(o));const j={class:"flex align-items-center"},M={class:"flex column align-items-center flex-1"},S={class:"flex justify-content-center align-items-center"},$={class:"hzzt-kfb-toolbox-rotate__container"},D={class:"hzzt-kfb-toolbox-rotate__angle"},F={class:"hzzt-kfb-toolbox__icon"},B=e.defineComponent(I(q({},{name:"ToolRotate"}),{__name:"rotate",props:e.mergeDefaults({size:{},text:{},name:{},component:{},isPrevent:{type:Boolean},callback:{type:Function}},x.defaultProps),setup(l){var o;const{t:r,textClass:w}=x.useCommon(),s=e.inject("kfbViewRef"),d=e.ref(!1),i=e.ref(((o=s==null?void 0:s.value)==null?void 0:o.degrees)||0);e.watch(()=>{var n;return(n=s==null?void 0:s.value)==null?void 0:n.degrees},n=>{i.value=n});function c(n){var t;i.value=parseFloat(n.toFixed(2)),(t=s==null?void 0:s.value)!=null&&t.kfbView&&s.value.kfbView.viewer.viewport.setRotation(i.value)}function p(n){const t=document.querySelector(".hzzt-kfb-toolbox-rotate__container");if(!t)return;const a=t.getBoundingClientRect(),f={x:32,y:32},_={x:n.clientX-a.left,y:n.clientY-a.top};if(g.isPointInEllipse(_,f,32,32)){const b=g.getAngle(f,{x:f.x,y:0},_);if(isNaN(b/Math.PI*180))return;let v=parseFloat((b/Math.PI*180).toFixed(2));v<0&&(v+=360),d.value=!0,c(v)}}function y(n){d.value&&p(n)}function m(){d.value=!1}return(n,t)=>(e.openBlock(),e.createBlock(e.unref(u.ElPopover),{placement:"bottom",width:"260px",trigger:"click","popper-class":"el-popover-padding-0"},{reference:e.withCtx(()=>[e.createElementVNode("div",F,[e.createVNode(e.unref(u.ElIcon),{size:n.size},{default:e.withCtx(()=>[e.createVNode(N.default)]),_:1},8,["size"]),e.createElementVNode("div",{class:e.normalizeClass(e.unref(w))},e.toDisplayString(e.unref(r)(n.text||"旋转")),3)])]),default:e.withCtx(()=>[e.createVNode(e.unref(u.ElCard),{shadow:"never","body-style":{padding:"12px 12px 12px 0"}},{default:e.withCtx(()=>[e.createElementVNode("div",j,[e.createElementVNode("div",M,[e.createElementVNode("div",{class:"hzzt-kfb-toolbox-rotate__btn margin-b-1",onClick:t[0]||(t[0]=a=>c(0))}),e.createElementVNode("div",S,[e.createElementVNode("div",{class:"hzzt-kfb-toolbox-rotate__btn margin-r-1",onClick:t[1]||(t[1]=a=>c(270))}),e.createElementVNode("div",$,[e.createElementVNode("div",{class:"hzzt-kfb-toolbox-rotate__img",style:e.normalizeStyle({transform:`rotate(${i.value}deg)`}),onMousedown:p,onMousemove:y,onMouseup:m,onMouseleave:m},[e.createVNode(P.default)],36)]),e.createElementVNode("div",{class:"hzzt-kfb-toolbox-rotate__btn margin-l-1",onClick:t[2]||(t[2]=a=>c(90))})]),e.createElementVNode("div",{class:"hzzt-kfb-toolbox-rotate__btn margin-t-1",onClick:t[3]||(t[3]=a=>c(180))})]),e.createElementVNode("div",D,[e.createVNode(e.unref(u.ElInputNumber),{modelValue:i.value,"onUpdate:modelValue":t[4]||(t[4]=a=>i.value=a),min:0,max:360,step:5,onChange:t[5]||(t[5]=a=>c(i.value))},null,8,["modelValue"])])])]),_:1})]),_:1}))}})),A=k._export_sfc(B,[["__scopeId","data-v-0141cae6"]]);exports.default=A;