hzzt-kfb-slide 0.0.4 → 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.
- package/README.md +5 -0
- package/dist/{components/annotateDrBDAiwJ.js → dist/components/annotateBZhYifBy.js} +1 -1
- package/dist/{components/annotateC6KKIN-C.js → dist/components/annotateCPG0T3zR.js} +1 -1
- package/dist/dist/components/annotateCqAOjkGt.js +132 -0
- package/dist/dist/components/annotateDfW6BtgB.js +1 -0
- package/dist/{components/arrowFPEB8W4f.js → dist/components/arrowBJ1_uQ_E.js} +1 -1
- package/dist/{components/arrowDPk76wAe.js → dist/components/arrowDFlQxMKW.js} +1 -1
- package/dist/{components/arrowDownDI6AMcyz.js → dist/components/arrowDownNi-pK4NR.js} +1 -1
- package/dist/{components/arrowDownBdM08C-k.js → dist/components/arrowDownUoENEig7.js} +1 -1
- package/dist/{components/arrowLeftM_OyaeGe.js → dist/components/arrowLeftBjlKltMm.js} +1 -1
- package/dist/{components/arrowLeftCHTZ9DsM.js → dist/components/arrowLeftDNerwLPi.js} +1 -1
- package/dist/{components/arrowRightDjW4cZXc.js → dist/components/arrowRight44qqQj9S.js} +1 -1
- package/dist/{components/arrowRightCxryh7mK.js → dist/components/arrowRightMPKmxcZ8.js} +1 -1
- package/dist/{components/arrowUpDoHvHUV6.js → dist/components/arrowUpDNv09R_q.js} +1 -1
- package/dist/{components/arrowUpBBOMqRwJ.js → dist/components/arrowUpu-KhVqDz.js} +1 -1
- package/dist/{components/channel0jNldMsg.js → dist/components/channelCzSNjDqs.js} +1 -1
- package/dist/{components/channelCsDQbKiD.js → dist/components/channelDTeDAbXs.js} +1 -1
- package/dist/{components/check0Zxvds83.js → dist/components/checkD58Lt_t9.js} +1 -1
- package/dist/{components/checkBWJi9_a6.js → dist/components/checkDg1XwTUE.js} +1 -1
- package/dist/{components/config6VhhjpQh.js → dist/components/configDTj11Wdw.js} +1 -1
- package/dist/{components/configCQX8ZTs2.js → dist/components/configFTiUKUAQ.js} +1 -1
- package/dist/dist/components/customLw3nDjEr.js +48 -0
- package/dist/dist/components/customSv562l99.js +1 -0
- package/dist/{components/deleteDnKSpkZO.js → dist/components/deleteBIUy0hW2.js} +1 -1
- package/dist/{components/deleteCgLqIVRl.js → dist/components/deleteCeXlMQda.js} +1 -1
- package/dist/{components/dotBeWq5BYs.js → dist/components/dotBcz-OP0B.js} +1 -1
- package/dist/dist/components/dotC4Q5qfQ3.js +122 -0
- package/dist/dist/components/dotDO8OTl1O.js +1 -0
- package/dist/{components/dotxBw0mBnq.js → dist/components/dotDpCmvPJC.js} +1 -1
- package/dist/{components/downloadDNe3qbJ7.js → dist/components/downloadBs4QK_IT.js} +1 -1
- package/dist/dist/components/downloadCyOnwVa8.js +1 -0
- package/dist/dist/components/downloadGCe-OpHT.js +88 -0
- package/dist/{components/downloadDeswf8ql.js → dist/components/downloadnu9isJ53.js} +1 -1
- package/dist/{components/flipB4UaXh-c.js → dist/components/flipBwR2T8Rs.js} +1 -1
- package/dist/{components/flipDkEX3ZQH.js → dist/components/flipvyz7dJPZ.js} +1 -1
- package/dist/dist/components/fullscreenBeGbvwYS.js +1 -0
- package/dist/{components/fullscreenCGx_0CaO.js → dist/components/fullscreenCVgGTPtD.js} +1 -1
- package/dist/dist/components/fullscreenDvfoQFJX.js +60 -0
- package/dist/{components/fullscreenDbpR9B7w.js → dist/components/fullscreenyNOuxxJv.js} +1 -1
- package/dist/dist/components/indexCBVjt8NT.js +4 -0
- package/dist/dist/components/indexDOcglE90.js +2948 -0
- package/dist/{components/infoCjs_wSRJ.js → dist/components/infoC4fRWu15.js} +1 -1
- package/dist/{components/infogZMbfIdS.js → dist/components/infoCDweeRWp.js} +1 -1
- package/dist/{components/level9TdUqGzt.js → dist/components/levelDjZ5vvyy.js} +1 -1
- package/dist/{components/levelCY1NlHIe.js → dist/components/levelDjuyEKmz.js} +1 -1
- package/dist/dist/components/microscopeB6hcfWtD.js +1 -0
- package/dist/dist/components/microscopeD4o4Sywm.js +129 -0
- package/dist/{components/microscopeDUGvuln-.js → dist/components/microscopeDCINdehp.js} +1 -1
- package/dist/{components/microscope4FIRB1UB.js → dist/components/microscopeDptxRPdj.js} +1 -1
- package/dist/{components/moveD38V2VTD.js → dist/components/moveB-QJFdLP.js} +1 -1
- package/dist/dist/components/moveBM4KQ8bE.js +83 -0
- package/dist/{components/moveBhV9kg6L.js → dist/components/moveCNc2f0wf.js} +1 -1
- package/dist/dist/components/movemH2hKtp1.js +1 -0
- package/dist/{components/nextClAf7xMw.js → dist/components/next-o3fIifP.js} +1 -1
- package/dist/{components/nextCoqEdtnZ.js → dist/components/nextBX5bmT1e.js} +1 -1
- package/dist/{components/prevB3w5Xo5F.js → dist/components/prevDRvSbFTC.js} +1 -1
- package/dist/{components/prevJkp-fUef.js → dist/components/prevkbxOICn5.js} +1 -1
- package/dist/{components/processdjntnqTL.js → dist/components/processBHqsEap8.js} +94 -89
- package/dist/dist/components/processBqhO-55V.js +1 -0
- package/dist/{components/process_4OLLR3I.js → dist/components/processD06c6uax.js} +1 -1
- package/dist/{components/processB578krhc.js → dist/components/processh0Wf3Q99.js} +1 -1
- package/dist/dist/components/rotateBdsvaWJ_.js +140 -0
- package/dist/{components/rotateCGoD_DlO.js → dist/components/rotateCm7bVQY_.js} +1 -1
- package/dist/{components/rotateBtBfaYlt.js → dist/components/rotateCxZ7Z2pw.js} +1 -1
- package/dist/dist/components/rotateCyw4Ggca.js +1 -0
- package/dist/dist/components/settingC3yidTns.js +156 -0
- package/dist/{components/settingCBl44H7B.js → dist/components/settingCzWjOOeH.js} +1 -1
- package/dist/dist/components/settingDDEEOrtI.js +1 -0
- package/dist/{components/settingCE2-cMN2.js → dist/components/settinghh-xgIto.js} +1 -1
- package/dist/{components/tailorrql5Z5dC.js → dist/components/tailorBalVOrgz.js} +1 -1
- package/dist/{components/tailorIfjKVe1q.js → dist/components/tailorCvZYsl2H.js} +1 -1
- package/dist/{components/useCommonCm7rhO60.js → dist/components/useCommonBBhfDvWF.js} +1 -1
- package/dist/{components/useCommonDGun_T6i.js → dist/components/useCommonDs02MG_d.js} +1 -1
- package/dist/dist/components/zoomCWKzKF3-.js +1 -0
- package/dist/{components/zoomInBtOl0w7G.js → dist/components/zoomIn8-tgvQFE.js} +1 -1
- package/dist/{components/zoomInDBLRbkSc.js → dist/components/zoomInBFjk_aLI.js} +1 -1
- package/dist/{components/zoomOutD6o_vR_h.js → dist/components/zoomOutC4Ami8gE.js} +1 -1
- package/dist/{components/zoomOutBii_59lh.js → dist/components/zoomOutD3_PopeU.js} +1 -1
- package/dist/dist/components/zoomcWHR4OY6.js +72 -0
- package/dist/{index.cjs.js → dist/index.cjs.js} +1 -1
- package/dist/{index.css → dist/index.css} +1 -1
- package/dist/{index.es.js → dist/index.es.js} +1 -1
- package/dist/package.json +39 -0
- package/package.json +4 -6
- package/dist/components/annotateCH4GAooA.js +0 -1
- package/dist/components/annotateCriDzoRR.js +0 -123
- package/dist/components/customDNzwsLNR.js +0 -39
- package/dist/components/customs0nLjsaE.js +0 -1
- package/dist/components/dotBi2ivVYX.js +0 -1
- package/dist/components/dotCi0WBjE9.js +0 -113
- package/dist/components/downloadBnTQzA4j.js +0 -79
- package/dist/components/downloadDF2_6Y-f.js +0 -1
- package/dist/components/fullscreenBIXfsULV.js +0 -1
- package/dist/components/fullscreenC9wvJxvO.js +0 -51
- package/dist/components/indexBm-HXbj3.js +0 -11320
- package/dist/components/indexCa2d-Wjt.js +0 -30
- package/dist/components/microscopeC2JZ0eI2.js +0 -124
- package/dist/components/microscopeDRt26GBO.js +0 -1
- package/dist/components/moveCu3V3JqI.js +0 -1
- package/dist/components/movebkPadei-.js +0 -74
- package/dist/components/processBS-P5qTF.js +0 -1
- package/dist/components/rotateDlOeZK_Y.js +0 -130
- package/dist/components/rotateDzNJl50p.js +0 -1
- package/dist/components/settingB87fba2e.js +0 -147
- package/dist/components/settingDKu9dgXl.js +0 -1
- package/dist/components/zoomDRHWcY_A.js +0 -1
- package/dist/components/zoomrgQT7EYg.js +0 -63
- /package/dist/{components → dist/components}/lineBIoJpzbf.js +0 -0
- /package/dist/{components → dist/components}/lineCzuS7Giu.js +0 -0
- /package/{types → dist/types}/components/KfbIcon.vue.d.ts +0 -0
- /package/{types → dist/types}/components/KfbImage.vue.d.ts +0 -0
- /package/{types → dist/types}/components/KfbSlideList.vue.d.ts +0 -0
- /package/{types → dist/types}/components/KfbToolConfig.vue.d.ts +0 -0
- /package/{types → dist/types}/components/KfbToolbox.vue.d.ts +0 -0
- /package/{types → dist/types}/components/KfbView/KfbChannel.vue.d.ts +0 -0
- /package/{types → dist/types}/components/KfbView/KfbKeyword.vue.d.ts +0 -0
- /package/{types → dist/types}/components/KfbView/KfbLabel.vue.d.ts +0 -0
- /package/{types → dist/types}/components/KfbView/KfbLevel.vue.d.ts +0 -0
- /package/{types → dist/types}/components/KfbView/KfbMenu.vue.d.ts +0 -0
- /package/{types → dist/types}/components/KfbView/KfbMicroscope.vue.d.ts +0 -0
- /package/{types → dist/types}/components/KfbView/index.d.ts +0 -0
- /package/{types → dist/types}/components/KfbView/index.vue.d.ts +0 -0
- /package/{types → dist/types}/components/KfbView/useDot.d.ts +0 -0
- /package/{types → dist/types}/components/KfbView/useHotmap.d.ts +0 -0
- /package/{types → dist/types}/components/KfbView/useImageProcess.d.ts +0 -0
- /package/{types → dist/types}/components/KfbView/useLabel.d.ts +0 -0
- /package/{types → dist/types}/components/KfbView/useMove.d.ts +0 -0
- /package/{types → dist/types}/components/KfbView/usePointer.d.ts +0 -0
- /package/{types → dist/types}/components/KfbView/useSync.d.ts +0 -0
- /package/{types → dist/types}/components/KfbView/useTailor.d.ts +0 -0
- /package/{types → dist/types}/components/KfbView/useVoice.d.ts +0 -0
- /package/{types → dist/types}/components/ai/list.vue.d.ts +0 -0
- /package/{types → dist/types}/components/ai/useAi.d.ts +0 -0
- /package/{types → dist/types}/components/icon/annotate.vue.d.ts +0 -0
- /package/{types → dist/types}/components/icon/arrow.vue.d.ts +0 -0
- /package/{types → dist/types}/components/icon/arrowDown.vue.d.ts +0 -0
- /package/{types → dist/types}/components/icon/arrowLeft.vue.d.ts +0 -0
- /package/{types → dist/types}/components/icon/arrowRight.vue.d.ts +0 -0
- /package/{types → dist/types}/components/icon/arrowUp.vue.d.ts +0 -0
- /package/{types → dist/types}/components/icon/channel.vue.d.ts +0 -0
- /package/{types → dist/types}/components/icon/check.vue.d.ts +0 -0
- /package/{types → dist/types}/components/icon/config.vue.d.ts +0 -0
- /package/{types → dist/types}/components/icon/delete.vue.d.ts +0 -0
- /package/{types → dist/types}/components/icon/dot.vue.d.ts +0 -0
- /package/{types → dist/types}/components/icon/download.vue.d.ts +0 -0
- /package/{types → dist/types}/components/icon/flip.vue.d.ts +0 -0
- /package/{types → dist/types}/components/icon/fullscreen.vue.d.ts +0 -0
- /package/{types → dist/types}/components/icon/index.d.ts +0 -0
- /package/{types → dist/types}/components/icon/info.vue.d.ts +0 -0
- /package/{types → dist/types}/components/icon/level.vue.d.ts +0 -0
- /package/{types → dist/types}/components/icon/list.vue.d.ts +0 -0
- /package/{types → dist/types}/components/icon/menu.vue.d.ts +0 -0
- /package/{types → dist/types}/components/icon/microscope.vue.d.ts +0 -0
- /package/{types → dist/types}/components/icon/move.vue.d.ts +0 -0
- /package/{types → dist/types}/components/icon/next.vue.d.ts +0 -0
- /package/{types → dist/types}/components/icon/prev.vue.d.ts +0 -0
- /package/{types → dist/types}/components/icon/process.vue.d.ts +0 -0
- /package/{types → dist/types}/components/icon/rotate.vue.d.ts +0 -0
- /package/{types → dist/types}/components/icon/setting.vue.d.ts +0 -0
- /package/{types → dist/types}/components/icon/tailor.vue.d.ts +0 -0
- /package/{types → dist/types}/components/icon/zoomIn.vue.d.ts +0 -0
- /package/{types → dist/types}/components/toolbox/annotate.vue.d.ts +0 -0
- /package/{types → dist/types}/components/toolbox/custom.vue.d.ts +0 -0
- /package/{types → dist/types}/components/toolbox/dot.vue.d.ts +0 -0
- /package/{types → dist/types}/components/toolbox/download.vue.d.ts +0 -0
- /package/{types → dist/types}/components/toolbox/fullscreen.vue.d.ts +0 -0
- /package/{types → dist/types}/components/toolbox/instances.d.ts +0 -0
- /package/{types → dist/types}/components/toolbox/microscope.vue.d.ts +0 -0
- /package/{types → dist/types}/components/toolbox/move.vue.d.ts +0 -0
- /package/{types → dist/types}/components/toolbox/process.vue.d.ts +0 -0
- /package/{types → dist/types}/components/toolbox/rotate.vue.d.ts +0 -0
- /package/{types → dist/types}/components/toolbox/setting.vue.d.ts +0 -0
- /package/{types → dist/types}/components/toolbox/useCommon.d.ts +0 -0
- /package/{types → dist/types}/components/toolbox/zoom.vue.d.ts +0 -0
- /package/{types → dist/types}/index.d.ts +0 -0
- /package/{types → dist/types}/index.vue.d.ts +0 -0
- /package/{types → dist/types}/instances.d.ts +0 -0
- /package/{types → dist/types}/plugins/i18n.d.ts +0 -0
|
@@ -1,124 +0,0 @@
|
|
|
1
|
-
import { defineComponent as h, mergeDefaults as C, reactive as E, watch as _, ref as w, createBlock as k, openBlock as z, unref as o, withCtx as m, createVNode as n, createElementVNode as s, toDisplayString as p, normalizeClass as I } from "vue";
|
|
2
|
-
import P from "./microscope4FIRB1UB.js";
|
|
3
|
-
import { ElPopover as U, ElCard as $, ElRadioGroup as y, ElRadio as v, ElInputNumber as f, ElColorPicker as B, ElIcon as D } from "element-plus";
|
|
4
|
-
import { u as N, d as O } from "./useCommonDGun_T6i.js";
|
|
5
|
-
import { i as g, _ as R } from "./indexBm-HXbj3.js";
|
|
6
|
-
const F = { class: "flex align-items-center margin-t-2" }, M = { style: { "min-width": "120px" } }, S = { class: "flex align-items-center margin-t-2" }, T = { style: { "min-width": "120px" } }, W = { class: "flex align-items-center margin-t-2" }, j = { style: { "min-width": "120px" } }, A = /* @__PURE__ */ h({
|
|
7
|
-
name: "ToolMicroscope",
|
|
8
|
-
__name: "microscope",
|
|
9
|
-
props: /* @__PURE__ */ C({
|
|
10
|
-
scope: {},
|
|
11
|
-
size: {},
|
|
12
|
-
text: {},
|
|
13
|
-
name: {},
|
|
14
|
-
component: {},
|
|
15
|
-
isPrevent: { type: Boolean },
|
|
16
|
-
callback: { type: Function }
|
|
17
|
-
}, {
|
|
18
|
-
...O,
|
|
19
|
-
scope: () => ({ ...g })
|
|
20
|
-
}),
|
|
21
|
-
emits: ["tool"],
|
|
22
|
-
setup(b, { emit: x }) {
|
|
23
|
-
const u = b, l = E({
|
|
24
|
-
...g,
|
|
25
|
-
...u.scope
|
|
26
|
-
});
|
|
27
|
-
_(() => u.scope, (i) => {
|
|
28
|
-
Object.assign(l, i);
|
|
29
|
-
});
|
|
30
|
-
const c = x, { t: a, textClass: V } = N(), r = w(!1);
|
|
31
|
-
function d(i, e) {
|
|
32
|
-
i === "visible" ? (r.value = !r.value, c("tool", "microscope", {
|
|
33
|
-
name: i,
|
|
34
|
-
value: r.value
|
|
35
|
-
})) : c("tool", "microscope", {
|
|
36
|
-
name: i,
|
|
37
|
-
value: e
|
|
38
|
-
});
|
|
39
|
-
}
|
|
40
|
-
return (i, e) => (z(), k(o(U), {
|
|
41
|
-
visible: r.value,
|
|
42
|
-
"popper-class": "el-popover-padding-0",
|
|
43
|
-
placement: "bottom",
|
|
44
|
-
width: "300px",
|
|
45
|
-
trigger: "click"
|
|
46
|
-
}, {
|
|
47
|
-
reference: m(() => [
|
|
48
|
-
s("div", {
|
|
49
|
-
class: "hzzt-kfb-toolbox__icon",
|
|
50
|
-
onClick: e[8] || (e[8] = (t) => d("visible", r.value))
|
|
51
|
-
}, [
|
|
52
|
-
n(o(D), { size: i.size }, {
|
|
53
|
-
default: m(() => [
|
|
54
|
-
n(P)
|
|
55
|
-
]),
|
|
56
|
-
_: 1
|
|
57
|
-
}, 8, ["size"]),
|
|
58
|
-
s("div", {
|
|
59
|
-
class: I(o(V))
|
|
60
|
-
}, p(o(a)(i.text || "镜下")), 3)
|
|
61
|
-
])
|
|
62
|
-
]),
|
|
63
|
-
default: m(() => [
|
|
64
|
-
n(o($), {
|
|
65
|
-
shadow: "never",
|
|
66
|
-
header: o(a)("镜下视野")
|
|
67
|
-
}, {
|
|
68
|
-
default: m(() => [
|
|
69
|
-
s("div", null, [
|
|
70
|
-
n(o(y), {
|
|
71
|
-
modelValue: l.shape,
|
|
72
|
-
"onUpdate:modelValue": e[0] || (e[0] = (t) => l.shape = t),
|
|
73
|
-
onChange: e[1] || (e[1] = (t) => d("change", l))
|
|
74
|
-
}, {
|
|
75
|
-
default: m(() => [
|
|
76
|
-
n(o(v), {
|
|
77
|
-
value: "50%",
|
|
78
|
-
label: o(a)("圆形")
|
|
79
|
-
}, null, 8, ["label"]),
|
|
80
|
-
n(o(v), {
|
|
81
|
-
value: "0",
|
|
82
|
-
label: o(a)("矩形")
|
|
83
|
-
}, null, 8, ["label"])
|
|
84
|
-
]),
|
|
85
|
-
_: 1
|
|
86
|
-
}, 8, ["modelValue"]),
|
|
87
|
-
s("div", F, [
|
|
88
|
-
s("p", M, p(o(a)("视野直径(mm)")) + ": ", 1),
|
|
89
|
-
n(o(f), {
|
|
90
|
-
class: "flex-1",
|
|
91
|
-
modelValue: l.width,
|
|
92
|
-
"onUpdate:modelValue": e[2] || (e[2] = (t) => l.width = t),
|
|
93
|
-
onInput: e[3] || (e[3] = (t) => d("change", l))
|
|
94
|
-
}, null, 8, ["modelValue"])
|
|
95
|
-
]),
|
|
96
|
-
s("div", S, [
|
|
97
|
-
s("p", T, p(o(a)("边框宽度")) + "(px): ", 1),
|
|
98
|
-
n(o(f), {
|
|
99
|
-
class: "flex-1",
|
|
100
|
-
modelValue: l.borderWidth,
|
|
101
|
-
"onUpdate:modelValue": e[4] || (e[4] = (t) => l.borderWidth = t),
|
|
102
|
-
onInput: e[5] || (e[5] = (t) => d("change", l))
|
|
103
|
-
}, null, 8, ["modelValue"])
|
|
104
|
-
]),
|
|
105
|
-
s("div", W, [
|
|
106
|
-
s("p", j, p(o(a)("边框颜色")) + ": ", 1),
|
|
107
|
-
n(o(B), {
|
|
108
|
-
modelValue: l.color,
|
|
109
|
-
"onUpdate:modelValue": e[6] || (e[6] = (t) => l.color = t),
|
|
110
|
-
onChange: e[7] || (e[7] = (t) => d("change", l))
|
|
111
|
-
}, null, 8, ["modelValue"])
|
|
112
|
-
])
|
|
113
|
-
])
|
|
114
|
-
]),
|
|
115
|
-
_: 1
|
|
116
|
-
}, 8, ["header"])
|
|
117
|
-
]),
|
|
118
|
-
_: 1
|
|
119
|
-
}, 8, ["visible"]));
|
|
120
|
-
}
|
|
121
|
-
}), K = /* @__PURE__ */ R(A, [["__scopeId", "data-v-fe8098cc"]]);
|
|
122
|
-
export {
|
|
123
|
-
K as default
|
|
124
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),V=require("./microscopeDUGvuln-.js"),n=require("element-plus"),m=require("./useCommonCm7rhO60.js"),d=require("./indexCa2d-Wjt.js"),g={class:"flex align-items-center margin-t-2"},E={style:{"min-width":"120px"}},b={class:"flex align-items-center margin-t-2"},x={style:{"min-width":"120px"}},N={class:"flex align-items-center margin-t-2"},C={style:{"min-width":"120px"}},h=e.defineComponent({name:"ToolMicroscope",__name:"microscope",props:e.mergeDefaults({scope:{},size:{},text:{},name:{},component:{},isPrevent:{type:Boolean},callback:{type:Function}},{...m.defaultProps,scope:()=>({...d.DEFAULT_MICROSCOPE})}),emits:["tool"],setup(p,{emit:f}){const u=p,o=e.reactive({...d.DEFAULT_MICROSCOPE,...u.scope});e.watch(()=>u.scope,r=>{Object.assign(o,r)});const c=f,{t:i,textClass:v}=m.useCommon(),s=e.ref(!1);function a(r,t){r==="visible"?(s.value=!s.value,c("tool","microscope",{name:r,value:s.value})):c("tool","microscope",{name:r,value:t})}return(r,t)=>(e.openBlock(),e.createBlock(e.unref(n.ElPopover),{visible:s.value,"popper-class":"el-popover-padding-0",placement:"bottom",width:"300px",trigger:"click"},{reference:e.withCtx(()=>[e.createElementVNode("div",{class:"hzzt-kfb-toolbox__icon",onClick:t[8]||(t[8]=l=>a("visible",s.value))},[e.createVNode(e.unref(n.ElIcon),{size:r.size},{default:e.withCtx(()=>[e.createVNode(V.default)]),_:1},8,["size"]),e.createElementVNode("div",{class:e.normalizeClass(e.unref(v))},e.toDisplayString(e.unref(i)(r.text||"镜下")),3)])]),default:e.withCtx(()=>[e.createVNode(e.unref(n.ElCard),{shadow:"never",header:e.unref(i)("镜下视野")},{default:e.withCtx(()=>[e.createElementVNode("div",null,[e.createVNode(e.unref(n.ElRadioGroup),{modelValue:o.shape,"onUpdate:modelValue":t[0]||(t[0]=l=>o.shape=l),onChange:t[1]||(t[1]=l=>a("change",o))},{default:e.withCtx(()=>[e.createVNode(e.unref(n.ElRadio),{value:"50%",label:e.unref(i)("圆形")},null,8,["label"]),e.createVNode(e.unref(n.ElRadio),{value:"0",label:e.unref(i)("矩形")},null,8,["label"])]),_:1},8,["modelValue"]),e.createElementVNode("div",g,[e.createElementVNode("p",E,e.toDisplayString(e.unref(i)("视野直径(mm)"))+": ",1),e.createVNode(e.unref(n.ElInputNumber),{class:"flex-1",modelValue:o.width,"onUpdate:modelValue":t[2]||(t[2]=l=>o.width=l),onInput:t[3]||(t[3]=l=>a("change",o))},null,8,["modelValue"])]),e.createElementVNode("div",b,[e.createElementVNode("p",x,e.toDisplayString(e.unref(i)("边框宽度"))+"(px): ",1),e.createVNode(e.unref(n.ElInputNumber),{class:"flex-1",modelValue:o.borderWidth,"onUpdate:modelValue":t[4]||(t[4]=l=>o.borderWidth=l),onInput:t[5]||(t[5]=l=>a("change",o))},null,8,["modelValue"])]),e.createElementVNode("div",N,[e.createElementVNode("p",C,e.toDisplayString(e.unref(i)("边框颜色"))+": ",1),e.createVNode(e.unref(n.ElColorPicker),{modelValue:o.color,"onUpdate:modelValue":t[6]||(t[6]=l=>o.color=l),onChange:t[7]||(t[7]=l=>a("change",o))},null,8,["modelValue"])])])]),_:1},8,["header"])]),_:1},8,["visible"]))}}),w=d._export_sfc(h,[["__scopeId","data-v-fe8098cc"]]);exports.default=w;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),u=require("./useCommonCm7rhO60.js"),c=require("./moveD38V2VTD.js"),r=require("element-plus"),p=require("./indexCa2d-Wjt.js"),f={class:"margin-b-1"},b=e.defineComponent({name:"ToolMove",__name:"move",props:e.mergeDefaults({size:{},text:{},name:{},component:{},isPrevent:{type:Boolean},callback:{type:Function}},u.defaultProps),emits:["tool"],setup(g,{emit:m}){const d=m,{t:i,textClass:v}=u.useCommon(),n=e.ref(!1),l=e.ref(1);function s(o,t){o==="visible"?n.value=!n.value:d("tool","move",{name:o,value:t})}return(o,t)=>(e.openBlock(),e.createBlock(e.unref(r.ElPopover),{visible:n.value,"popper-class":"el-popover-padding-0",placement:"bottom",width:"200px",trigger:"click"},{reference:e.withCtx(()=>[e.createElementVNode("div",{class:"hzzt-kfb-toolbox__icon",onClick:t[3]||(t[3]=a=>s("visible",n.value))},[e.createVNode(e.unref(r.ElIcon),{size:o.size},{default:e.withCtx(()=>[e.createVNode(c.default)]),_:1},8,["size"]),e.createElementVNode("div",{class:e.normalizeClass(e.unref(v))},e.toDisplayString(e.unref(i)(o.text||"快速移动")),3)])]),default:e.withCtx(()=>[e.createVNode(e.unref(r.ElCard),{shadow:"never"},{default:e.withCtx(()=>[e.createElementVNode("div",null,[e.createElementVNode("p",f,e.toDisplayString(e.unref(i)("图像移动倍率"))+":",1),e.createVNode(e.unref(r.ElInputNumber),{modelValue:l.value,"onUpdate:modelValue":t[0]||(t[0]=a=>l.value=a),step:.2,min:1,max:10,onChange:t[1]||(t[1]=a=>s("ratio",l.value)),onInput:t[2]||(t[2]=a=>s("ratio",l.value))},null,8,["modelValue"])])]),_:1})]),_:1},8,["visible"]))}}),C=p._export_sfc(b,[["__scopeId","data-v-aa10a89d"]]);exports.default=C;
|
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
import { defineComponent as b, mergeDefaults as _, ref as u, createBlock as C, openBlock as g, unref as o, withCtx as s, createVNode as i, createElementVNode as r, toDisplayString as v, normalizeClass as x } from "vue";
|
|
2
|
-
import { u as z, d as k } from "./useCommonDGun_T6i.js";
|
|
3
|
-
import E from "./moveBhV9kg6L.js";
|
|
4
|
-
import { ElPopover as V, ElCard as I, ElInputNumber as w, ElIcon as B } from "element-plus";
|
|
5
|
-
import { _ as M } from "./indexBm-HXbj3.js";
|
|
6
|
-
const N = { class: "margin-b-1" }, P = /* @__PURE__ */ b({
|
|
7
|
-
name: "ToolMove",
|
|
8
|
-
__name: "move",
|
|
9
|
-
props: /* @__PURE__ */ _({
|
|
10
|
-
size: {},
|
|
11
|
-
text: {},
|
|
12
|
-
name: {},
|
|
13
|
-
component: {},
|
|
14
|
-
isPrevent: { type: Boolean },
|
|
15
|
-
callback: { type: Function }
|
|
16
|
-
}, k),
|
|
17
|
-
emits: ["tool"],
|
|
18
|
-
setup($, { emit: d }) {
|
|
19
|
-
const f = d, { t: p, textClass: c } = z(), l = u(!1), a = u(1);
|
|
20
|
-
function m(t, e) {
|
|
21
|
-
t === "visible" ? l.value = !l.value : f("tool", "move", {
|
|
22
|
-
name: t,
|
|
23
|
-
value: e
|
|
24
|
-
});
|
|
25
|
-
}
|
|
26
|
-
return (t, e) => (g(), C(o(V), {
|
|
27
|
-
visible: l.value,
|
|
28
|
-
"popper-class": "el-popover-padding-0",
|
|
29
|
-
placement: "bottom",
|
|
30
|
-
width: "200px",
|
|
31
|
-
trigger: "click"
|
|
32
|
-
}, {
|
|
33
|
-
reference: s(() => [
|
|
34
|
-
r("div", {
|
|
35
|
-
class: "hzzt-kfb-toolbox__icon",
|
|
36
|
-
onClick: e[3] || (e[3] = (n) => m("visible", l.value))
|
|
37
|
-
}, [
|
|
38
|
-
i(o(B), { size: t.size }, {
|
|
39
|
-
default: s(() => [
|
|
40
|
-
i(E)
|
|
41
|
-
]),
|
|
42
|
-
_: 1
|
|
43
|
-
}, 8, ["size"]),
|
|
44
|
-
r("div", {
|
|
45
|
-
class: x(o(c))
|
|
46
|
-
}, v(o(p)(t.text || "快速移动")), 3)
|
|
47
|
-
])
|
|
48
|
-
]),
|
|
49
|
-
default: s(() => [
|
|
50
|
-
i(o(I), { shadow: "never" }, {
|
|
51
|
-
default: s(() => [
|
|
52
|
-
r("div", null, [
|
|
53
|
-
r("p", N, v(o(p)("图像移动倍率")) + ":", 1),
|
|
54
|
-
i(o(w), {
|
|
55
|
-
modelValue: a.value,
|
|
56
|
-
"onUpdate:modelValue": e[0] || (e[0] = (n) => a.value = n),
|
|
57
|
-
step: 0.2,
|
|
58
|
-
min: 1,
|
|
59
|
-
max: 10,
|
|
60
|
-
onChange: e[1] || (e[1] = (n) => m("ratio", a.value)),
|
|
61
|
-
onInput: e[2] || (e[2] = (n) => m("ratio", a.value))
|
|
62
|
-
}, null, 8, ["modelValue"])
|
|
63
|
-
])
|
|
64
|
-
]),
|
|
65
|
-
_: 1
|
|
66
|
-
})
|
|
67
|
-
]),
|
|
68
|
-
_: 1
|
|
69
|
-
}, 8, ["visible"]));
|
|
70
|
-
}
|
|
71
|
-
}), T = /* @__PURE__ */ M(P, [["__scopeId", "data-v-aa10a89d"]]);
|
|
72
|
-
export {
|
|
73
|
-
T as default
|
|
74
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),i=require("./useCommonCm7rhO60.js"),t=require("element-plus"),x=require("./process_4OLLR3I.js"),s=require("./indexCa2d-Wjt.js"),E={class:"margin-l-4"},N={class:"margin-l-4"},g={class:"margin-l-4"},_={class:"margin-l-4"},h={class:"margin-l-4"},b={class:"margin-l-4"},w={class:"margin-l-4"},S={class:"flex justify-content-end"},y={class:"hzzt-kfb-toolbox__icon"},D=e.defineComponent({name:"ToolProcess",__name:"process",props:e.mergeDefaults({process:{},size:{},text:{},name:{},component:{},isPrevent:{type:Boolean},callback:{type:Function}},{...i.defaultProps,process:()=>({...s.DEFAULT_PROCESS})}),emits:["tool"],setup(c,{emit:m}){const f=c,d=m,{t:n,textClass:p}=i.useCommon(),l=e.reactive({...s.DEFAULT_PROCESS,...f.process});function r(){d("tool","process",l)}function V(){Object.assign(l,s.DEFAULT_PROCESS),r()}function C(){d("tool","save_process",l)}return(u,o)=>(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",y,[e.createVNode(e.unref(t.ElIcon),{size:u.size},{default:e.withCtx(()=>[e.createVNode(x.default)]),_:1},8,["size"]),e.createElementVNode("div",{class:e.normalizeClass(e.unref(p))},e.toDisplayString(e.unref(n)(u.text||"图像处理")),3)])]),default:e.withCtx(()=>[e.createVNode(e.unref(t.ElCard),{shadow:"never",header:e.unref(n)("图像处理")},{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(n)("红通道")},{default:e.withCtx(()=>[e.createVNode(e.unref(t.ElSlider),{modelValue:l.r,"onUpdate:modelValue":o[0]||(o[0]=a=>l.r=a),class:"flex-1",step:.1,min:-1,max:1,onChange:r},null,8,["modelValue"]),e.createElementVNode("span",E,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(n)("绿通道")},{default:e.withCtx(()=>[e.createVNode(e.unref(t.ElSlider),{modelValue:l.g,"onUpdate:modelValue":o[1]||(o[1]=a=>l.g=a),class:"flex-1",step:.1,min:-1,max:1,onChange:r},null,8,["modelValue"]),e.createElementVNode("span",N,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(n)("蓝通道")},{default:e.withCtx(()=>[e.createVNode(e.unref(t.ElSlider),{modelValue:l.b,"onUpdate:modelValue":o[2]||(o[2]=a=>l.b=a),class:"flex-1",step:.1,min:-1,max:1,onChange:r},null,8,["modelValue"]),e.createElementVNode("span",g,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(n)("gamma值")},{default:e.withCtx(()=>[e.createVNode(e.unref(t.ElSlider),{modelValue:l.ga,"onUpdate:modelValue":o[3]||(o[3]=a=>l.ga=a),class:"flex-1",step:.01,min:-.05,max:2,onChange:r},null,8,["modelValue"]),e.createElementVNode("span",_,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(n)("对比度")},{default:e.withCtx(()=>[e.createVNode(e.unref(t.ElSlider),{modelValue:l.c,"onUpdate:modelValue":o[4]||(o[4]=a=>l.c=a),class:"flex-1",step:.1,min:-1,max:1,onChange:r},null,8,["modelValue"]),e.createElementVNode("span",h,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(n)("饱和度")},{default:e.withCtx(()=>[e.createVNode(e.unref(t.ElSlider),{modelValue:l.s,"onUpdate:modelValue":o[5]||(o[5]=a=>l.s=a),class:"flex-1",step:.1,min:-1,max:1,onChange:r},null,8,["modelValue"]),e.createElementVNode("span",b,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(n)("亮度")},{default:e.withCtx(()=>[e.createVNode(e.unref(t.ElSlider),{modelValue:l.l,"onUpdate:modelValue":o[6]||(o[6]=a=>l.l=a),class:"flex-1",step:.1,min:-1,max:1,onChange:r},null,8,["modelValue"]),e.createElementVNode("span",w,e.toDisplayString(l.l*100)+"%",1)]),_:1},8,["label"])]),_:1})]),_:1})]),_:1}),e.createElementVNode("div",S,[e.createVNode(e.unref(t.ElButton),{onClick:V},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(n)("重置")),1)]),_:1}),e.createVNode(e.unref(t.ElButton),{type:"primary",onClick:C},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(n)("保存")),1)]),_:1})])]),_:1},8,["header"])]),_:1}))}}),v=s._export_sfc(D,[["__scopeId","data-v-bdb018f5"]]);exports.default=v;
|
|
@@ -1,130 +0,0 @@
|
|
|
1
|
-
import { defineComponent as w, mergeDefaults as y, inject as C, ref as b, watch as h, createBlock as V, openBlock as $, unref as i, withCtx as c, createVNode as r, createElementVNode as o, normalizeStyle as P, normalizeClass as E, toDisplayString as I } from "vue";
|
|
2
|
-
import { a as M, b as F, _ as N } from "./indexBm-HXbj3.js";
|
|
3
|
-
import { u as B, d as D } from "./useCommonDGun_T6i.js";
|
|
4
|
-
import { ElPopover as R, ElCard as S, ElInputNumber as j, ElIcon as A } from "element-plus";
|
|
5
|
-
import K from "./rotateBtBfaYlt.js";
|
|
6
|
-
import q from "./arrowFPEB8W4f.js";
|
|
7
|
-
const T = { class: "flex align-items-center" }, U = { class: "flex column align-items-center flex-1" }, X = { class: "flex justify-content-center align-items-center" }, Y = { class: "hzzt-kfb-toolbox-rotate__container" }, G = { class: "hzzt-kfb-toolbox-rotate__angle" }, H = { class: "hzzt-kfb-toolbox__icon" }, J = /* @__PURE__ */ w({
|
|
8
|
-
name: "ToolRotate",
|
|
9
|
-
__name: "rotate",
|
|
10
|
-
props: /* @__PURE__ */ y({
|
|
11
|
-
size: {},
|
|
12
|
-
text: {},
|
|
13
|
-
name: {},
|
|
14
|
-
component: {},
|
|
15
|
-
isPrevent: { type: Boolean },
|
|
16
|
-
callback: { type: Function }
|
|
17
|
-
}, D),
|
|
18
|
-
setup(L) {
|
|
19
|
-
var v;
|
|
20
|
-
const { t: g, textClass: z } = B(), n = C("kfbViewRef"), u = b(!1), s = b(((v = n == null ? void 0 : n.value) == null ? void 0 : v.degrees) ?? 0);
|
|
21
|
-
h(() => {
|
|
22
|
-
var e;
|
|
23
|
-
return (e = n == null ? void 0 : n.value) == null ? void 0 : e.degrees;
|
|
24
|
-
}, (e) => {
|
|
25
|
-
s.value = e;
|
|
26
|
-
});
|
|
27
|
-
function a(e) {
|
|
28
|
-
var t;
|
|
29
|
-
s.value = parseFloat(e.toFixed(2)), (t = n == null ? void 0 : n.value) != null && t.kfbView && n.value.kfbView.viewer.viewport.setRotation(s.value);
|
|
30
|
-
}
|
|
31
|
-
function p(e) {
|
|
32
|
-
const t = document.querySelector(".hzzt-kfb-toolbox-rotate__container");
|
|
33
|
-
if (!t) return;
|
|
34
|
-
const l = t.getBoundingClientRect(), d = { x: 32, y: 32 }, _ = {
|
|
35
|
-
x: e.clientX - l.left,
|
|
36
|
-
y: e.clientY - l.top
|
|
37
|
-
};
|
|
38
|
-
if (M(_, d, 32, 32)) {
|
|
39
|
-
const x = F(d, { x: d.x, y: 0 }, _);
|
|
40
|
-
if (isNaN(x / Math.PI * 180)) return;
|
|
41
|
-
let m = parseFloat((x / Math.PI * 180).toFixed(2));
|
|
42
|
-
m < 0 && (m += 360), u.value = !0, a(m);
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
function k(e) {
|
|
46
|
-
u.value && p(e);
|
|
47
|
-
}
|
|
48
|
-
function f() {
|
|
49
|
-
u.value = !1;
|
|
50
|
-
}
|
|
51
|
-
return (e, t) => ($(), V(i(R), {
|
|
52
|
-
placement: "bottom",
|
|
53
|
-
width: "260px",
|
|
54
|
-
trigger: "click",
|
|
55
|
-
"popper-class": "el-popover-padding-0"
|
|
56
|
-
}, {
|
|
57
|
-
reference: c(() => [
|
|
58
|
-
o("div", H, [
|
|
59
|
-
r(i(A), { size: e.size }, {
|
|
60
|
-
default: c(() => [
|
|
61
|
-
r(K)
|
|
62
|
-
]),
|
|
63
|
-
_: 1
|
|
64
|
-
}, 8, ["size"]),
|
|
65
|
-
o("div", {
|
|
66
|
-
class: E(i(z))
|
|
67
|
-
}, I(i(g)(e.text || "旋转")), 3)
|
|
68
|
-
])
|
|
69
|
-
]),
|
|
70
|
-
default: c(() => [
|
|
71
|
-
r(i(S), {
|
|
72
|
-
shadow: "never",
|
|
73
|
-
"body-style": { padding: "12px 12px 12px 0" }
|
|
74
|
-
}, {
|
|
75
|
-
default: c(() => [
|
|
76
|
-
o("div", T, [
|
|
77
|
-
o("div", U, [
|
|
78
|
-
o("div", {
|
|
79
|
-
class: "hzzt-kfb-toolbox-rotate__btn margin-b-1",
|
|
80
|
-
onClick: t[0] || (t[0] = (l) => a(0))
|
|
81
|
-
}),
|
|
82
|
-
o("div", X, [
|
|
83
|
-
o("div", {
|
|
84
|
-
class: "hzzt-kfb-toolbox-rotate__btn margin-r-1",
|
|
85
|
-
onClick: t[1] || (t[1] = (l) => a(270))
|
|
86
|
-
}),
|
|
87
|
-
o("div", Y, [
|
|
88
|
-
o("div", {
|
|
89
|
-
class: "hzzt-kfb-toolbox-rotate__img",
|
|
90
|
-
style: P({ transform: `rotate(${s.value}deg)` }),
|
|
91
|
-
onMousedown: p,
|
|
92
|
-
onMousemove: k,
|
|
93
|
-
onMouseup: f,
|
|
94
|
-
onMouseleave: f
|
|
95
|
-
}, [
|
|
96
|
-
r(q)
|
|
97
|
-
], 36)
|
|
98
|
-
]),
|
|
99
|
-
o("div", {
|
|
100
|
-
class: "hzzt-kfb-toolbox-rotate__btn margin-l-1",
|
|
101
|
-
onClick: t[2] || (t[2] = (l) => a(90))
|
|
102
|
-
})
|
|
103
|
-
]),
|
|
104
|
-
o("div", {
|
|
105
|
-
class: "hzzt-kfb-toolbox-rotate__btn margin-t-1",
|
|
106
|
-
onClick: t[3] || (t[3] = (l) => a(180))
|
|
107
|
-
})
|
|
108
|
-
]),
|
|
109
|
-
o("div", G, [
|
|
110
|
-
r(i(j), {
|
|
111
|
-
modelValue: s.value,
|
|
112
|
-
"onUpdate:modelValue": t[4] || (t[4] = (l) => s.value = l),
|
|
113
|
-
min: 0,
|
|
114
|
-
max: 360,
|
|
115
|
-
step: 5,
|
|
116
|
-
onChange: t[5] || (t[5] = (l) => a(s.value))
|
|
117
|
-
}, null, 8, ["modelValue"])
|
|
118
|
-
])
|
|
119
|
-
])
|
|
120
|
-
]),
|
|
121
|
-
_: 1
|
|
122
|
-
})
|
|
123
|
-
]),
|
|
124
|
-
_: 1
|
|
125
|
-
}));
|
|
126
|
-
}
|
|
127
|
-
}), ot = /* @__PURE__ */ N(J, [["__scopeId", "data-v-9856a364"]]);
|
|
128
|
-
export {
|
|
129
|
-
ot as default
|
|
130
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),d=require("./indexCa2d-Wjt.js"),x=require("./useCommonCm7rhO60.js"),s=require("element-plus"),z=require("./rotateCGoD_DlO.js"),N=require("./arrowDPk76wAe.js"),E={class:"flex align-items-center"},w={class:"flex column align-items-center flex-1"},C={class:"flex justify-content-center align-items-center"},k={class:"hzzt-kfb-toolbox-rotate__container"},h={class:"hzzt-kfb-toolbox-rotate__angle"},y={class:"hzzt-kfb-toolbox__icon"},P=e.defineComponent({name:"ToolRotate",__name:"rotate",props:e.mergeDefaults({size:{},text:{},name:{},component:{},isPrevent:{type:Boolean},callback:{type:Function}},x.defaultProps),setup(q){var v;const{t:g,textClass:b}=x.useCommon(),n=e.inject("kfbViewRef"),i=e.ref(!1),a=e.ref(((v=n==null?void 0:n.value)==null?void 0:v.degrees)??0);e.watch(()=>{var o;return(o=n==null?void 0:n.value)==null?void 0:o.degrees},o=>{a.value=o});function r(o){var t;a.value=parseFloat(o.toFixed(2)),(t=n==null?void 0:n.value)!=null&&t.kfbView&&n.value.kfbView.viewer.viewport.setRotation(a.value)}function m(o){const t=document.querySelector(".hzzt-kfb-toolbox-rotate__container");if(!t)return;const l=t.getBoundingClientRect(),c={x:32,y:32},p={x:o.clientX-l.left,y:o.clientY-l.top};if(d._KfbView$isPointInEllipse(p,c,32,32)){const _=d._KfbView$getAngle(c,{x:c.x,y:0},p);if(isNaN(_/Math.PI*180))return;let u=parseFloat((_/Math.PI*180).toFixed(2));u<0&&(u+=360),i.value=!0,r(u)}}function V(o){i.value&&m(o)}function f(){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",y,[e.createVNode(e.unref(s.ElIcon),{size:o.size},{default:e.withCtx(()=>[e.createVNode(z.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",w,[e.createElementVNode("div",{class:"hzzt-kfb-toolbox-rotate__btn margin-b-1",onClick:t[0]||(t[0]=l=>r(0))}),e.createElementVNode("div",C,[e.createElementVNode("div",{class:"hzzt-kfb-toolbox-rotate__btn margin-r-1",onClick:t[1]||(t[1]=l=>r(270))}),e.createElementVNode("div",k,[e.createElementVNode("div",{class:"hzzt-kfb-toolbox-rotate__img",style:e.normalizeStyle({transform:`rotate(${a.value}deg)`}),onMousedown:m,onMousemove:V,onMouseup:f,onMouseleave:f},[e.createVNode(N.default)],36)]),e.createElementVNode("div",{class:"hzzt-kfb-toolbox-rotate__btn margin-l-1",onClick:t[2]||(t[2]=l=>r(90))})]),e.createElementVNode("div",{class:"hzzt-kfb-toolbox-rotate__btn margin-t-1",onClick:t[3]||(t[3]=l=>r(180))})]),e.createElementVNode("div",h,[e.createVNode(e.unref(s.ElInputNumber),{modelValue:a.value,"onUpdate:modelValue":t[4]||(t[4]=l=>a.value=l),min:0,max:360,step:5,onChange:t[5]||(t[5]=l=>r(a.value))},null,8,["modelValue"])])])]),_:1})]),_:1}))}}),$=d._export_sfc(P,[["__scopeId","data-v-9856a364"]]);exports.default=$;
|
|
@@ -1,147 +0,0 @@
|
|
|
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 "./useCommonDGun_T6i.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 "./settingCBl44H7B.js";
|
|
5
|
-
import { _ as B } from "./indexBm-HXbj3.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
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),d=require("./useCommonCm7rhO60.js"),r=require("element-plus"),m=require("./settingCE2-cMN2.js"),v=require("./indexCa2d-Wjt.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;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),i=require("element-plus"),_=require("./indexCa2d-Wjt.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 s;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(`${((s=t==null?void 0:t.value)==null?void 0:s.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 c(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=>c(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=>c(Number(n.value.replace("x",""))),["enter"]))},null,8,["modelValue"])])]))}}),g=_._export_sfc(x,[["__scopeId","data-v-6bcef5d5"]]);exports.default=g;
|
|
@@ -1,63 +0,0 @@
|
|
|
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 k, renderList as f, toDisplayString as g, createVNode as v, unref as N, withKeys as y } from "vue";
|
|
2
|
-
import { ElInput as h } from "element-plus";
|
|
3
|
-
import { _ as V } from "./indexBm-HXbj3.js";
|
|
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
|
-
name: "ToolZoom",
|
|
6
|
-
__name: "zoom",
|
|
7
|
-
emits: ["tool"],
|
|
8
|
-
setup(I, { emit: u }) {
|
|
9
|
-
var c;
|
|
10
|
-
const d = u, e = z("kfbViewRef"), i = [
|
|
11
|
-
{
|
|
12
|
-
scaleNum: 2,
|
|
13
|
-
style: "background-color: rgba(0, 0, 0, 0.5)"
|
|
14
|
-
},
|
|
15
|
-
{
|
|
16
|
-
scaleNum: 4,
|
|
17
|
-
style: "background-color: rgba(0, 0, 0, 0.6)"
|
|
18
|
-
},
|
|
19
|
-
{
|
|
20
|
-
scaleNum: 10,
|
|
21
|
-
style: "background-color: rgba(0, 0, 0, 0.7)"
|
|
22
|
-
},
|
|
23
|
-
{
|
|
24
|
-
scaleNum: 20,
|
|
25
|
-
style: "background-color: rgba(0, 0, 0, 0.8)"
|
|
26
|
-
},
|
|
27
|
-
{
|
|
28
|
-
scaleNum: 40,
|
|
29
|
-
style: "background-color: rgba(0, 0, 0, 0.8)"
|
|
30
|
-
}
|
|
31
|
-
], l = p(`${((c = e == null ? void 0 : e.value) == null ? void 0 : c.zoom) ?? "0x"}`);
|
|
32
|
-
x(() => {
|
|
33
|
-
var o;
|
|
34
|
-
return (o = e == null ? void 0 : e.value) == null ? void 0 : o.zoom;
|
|
35
|
-
}, (o) => {
|
|
36
|
-
l.value = `${o}x`;
|
|
37
|
-
});
|
|
38
|
-
function n(o) {
|
|
39
|
-
d("tool", "zoom", o);
|
|
40
|
-
}
|
|
41
|
-
return (o, a) => (m(), r("div", w, [
|
|
42
|
-
(m(), r(k, null, f(i, (t, _) => s("div", {
|
|
43
|
-
key: _,
|
|
44
|
-
class: "hzzt-kfb-toolbox__icon",
|
|
45
|
-
"data-index": t.scaleNum,
|
|
46
|
-
onClick: (K) => n(t.scaleNum)
|
|
47
|
-
}, [
|
|
48
|
-
s("span", C, g(t.scaleNum) + "x", 1)
|
|
49
|
-
], 8, $)), 64)),
|
|
50
|
-
s("div", E, [
|
|
51
|
-
v(N(h), {
|
|
52
|
-
modelValue: l.value,
|
|
53
|
-
"onUpdate:modelValue": a[0] || (a[0] = (t) => l.value = t),
|
|
54
|
-
class: "hzzt-kfb-toolbox-zoom__input",
|
|
55
|
-
onKeydown: a[1] || (a[1] = y((t) => n(Number(l.value.replace("x", ""))), ["enter"]))
|
|
56
|
-
}, null, 8, ["modelValue"])
|
|
57
|
-
])
|
|
58
|
-
]));
|
|
59
|
-
}
|
|
60
|
-
}), D = /* @__PURE__ */ V(B, [["__scopeId", "data-v-6bcef5d5"]]);
|
|
61
|
-
export {
|
|
62
|
-
D as default
|
|
63
|
-
};
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|