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,12 +1,21 @@
|
|
|
1
|
-
import { defineComponent as U, mergeDefaults as
|
|
2
|
-
import { u as
|
|
3
|
-
import { ElPopover as F, ElCard as
|
|
4
|
-
import
|
|
5
|
-
import { D as
|
|
6
|
-
|
|
7
|
-
|
|
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__ */
|
|
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
|
-
|
|
19
|
-
|
|
20
|
-
}),
|
|
26
|
+
}, O(g({}, B), {
|
|
27
|
+
process: () => g({}, b)
|
|
28
|
+
})),
|
|
21
29
|
emits: ["tool"],
|
|
22
|
-
setup(
|
|
23
|
-
const
|
|
24
|
-
|
|
25
|
-
|
|
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
|
|
31
|
-
Object.assign(a,
|
|
35
|
+
function w() {
|
|
36
|
+
Object.assign(a, b), u();
|
|
32
37
|
}
|
|
33
38
|
function h() {
|
|
34
|
-
|
|
39
|
+
V("tool", "save_process", a);
|
|
35
40
|
}
|
|
36
|
-
return (
|
|
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
|
-
|
|
44
|
-
l(e(
|
|
48
|
+
m("div", ae, [
|
|
49
|
+
l(e(A), { size: x.size }, {
|
|
45
50
|
default: o(() => [
|
|
46
|
-
l(
|
|
51
|
+
l(L)
|
|
47
52
|
]),
|
|
48
53
|
_: 1
|
|
49
54
|
}, 8, ["size"]),
|
|
50
|
-
|
|
51
|
-
class:
|
|
52
|
-
},
|
|
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(
|
|
61
|
+
l(e(N), {
|
|
57
62
|
shadow: "never",
|
|
58
|
-
header: e(
|
|
63
|
+
header: e(p)("图像处理")
|
|
59
64
|
}, {
|
|
60
65
|
default: o(() => [
|
|
61
|
-
l(e(
|
|
66
|
+
l(e(R), null, {
|
|
62
67
|
default: o(() => [
|
|
63
|
-
l(e(
|
|
68
|
+
l(e(T), null, {
|
|
64
69
|
default: o(() => [
|
|
65
|
-
l(e(
|
|
70
|
+
l(e(f), { span: 24 }, {
|
|
66
71
|
default: o(() => [
|
|
67
|
-
l(e(
|
|
68
|
-
label: e(
|
|
72
|
+
l(e(c), {
|
|
73
|
+
label: e(p)("红通道")
|
|
69
74
|
}, {
|
|
70
75
|
default: o(() => [
|
|
71
|
-
l(e(
|
|
76
|
+
l(e(_), {
|
|
72
77
|
modelValue: a.r,
|
|
73
|
-
"onUpdate:modelValue":
|
|
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:
|
|
83
|
+
onChange: u
|
|
79
84
|
}, null, 8, ["modelValue"]),
|
|
80
|
-
|
|
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(
|
|
92
|
+
l(e(f), { span: 24 }, {
|
|
88
93
|
default: o(() => [
|
|
89
|
-
l(e(
|
|
90
|
-
label: e(
|
|
94
|
+
l(e(c), {
|
|
95
|
+
label: e(p)("绿通道")
|
|
91
96
|
}, {
|
|
92
97
|
default: o(() => [
|
|
93
|
-
l(e(
|
|
98
|
+
l(e(_), {
|
|
94
99
|
modelValue: a.g,
|
|
95
|
-
"onUpdate:modelValue":
|
|
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:
|
|
105
|
+
onChange: u
|
|
101
106
|
}, null, 8, ["modelValue"]),
|
|
102
|
-
|
|
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(
|
|
114
|
+
l(e(f), { span: 24 }, {
|
|
110
115
|
default: o(() => [
|
|
111
|
-
l(e(
|
|
112
|
-
label: e(
|
|
116
|
+
l(e(c), {
|
|
117
|
+
label: e(p)("蓝通道")
|
|
113
118
|
}, {
|
|
114
119
|
default: o(() => [
|
|
115
|
-
l(e(
|
|
120
|
+
l(e(_), {
|
|
116
121
|
modelValue: a.b,
|
|
117
|
-
"onUpdate:modelValue":
|
|
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:
|
|
127
|
+
onChange: u
|
|
123
128
|
}, null, 8, ["modelValue"]),
|
|
124
|
-
|
|
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(
|
|
136
|
+
l(e(f), { span: 24 }, {
|
|
132
137
|
default: o(() => [
|
|
133
|
-
l(e(
|
|
134
|
-
label: e(
|
|
138
|
+
l(e(c), {
|
|
139
|
+
label: e(p)("gamma值")
|
|
135
140
|
}, {
|
|
136
141
|
default: o(() => [
|
|
137
|
-
l(e(
|
|
142
|
+
l(e(_), {
|
|
138
143
|
modelValue: a.ga,
|
|
139
|
-
"onUpdate:modelValue":
|
|
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:
|
|
149
|
+
onChange: u
|
|
145
150
|
}, null, 8, ["modelValue"]),
|
|
146
|
-
|
|
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(
|
|
158
|
+
l(e(f), { span: 24 }, {
|
|
154
159
|
default: o(() => [
|
|
155
|
-
l(e(
|
|
156
|
-
label: e(
|
|
160
|
+
l(e(c), {
|
|
161
|
+
label: e(p)("对比度")
|
|
157
162
|
}, {
|
|
158
163
|
default: o(() => [
|
|
159
|
-
l(e(
|
|
164
|
+
l(e(_), {
|
|
160
165
|
modelValue: a.c,
|
|
161
|
-
"onUpdate:modelValue":
|
|
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:
|
|
171
|
+
onChange: u
|
|
167
172
|
}, null, 8, ["modelValue"]),
|
|
168
|
-
|
|
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(
|
|
180
|
+
l(e(f), { span: 24 }, {
|
|
176
181
|
default: o(() => [
|
|
177
|
-
l(e(
|
|
178
|
-
label: e(
|
|
182
|
+
l(e(c), {
|
|
183
|
+
label: e(p)("饱和度")
|
|
179
184
|
}, {
|
|
180
185
|
default: o(() => [
|
|
181
|
-
l(e(
|
|
186
|
+
l(e(_), {
|
|
182
187
|
modelValue: a.s,
|
|
183
|
-
"onUpdate:modelValue":
|
|
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:
|
|
193
|
+
onChange: u
|
|
189
194
|
}, null, 8, ["modelValue"]),
|
|
190
|
-
|
|
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(
|
|
202
|
+
l(e(f), { span: 24 }, {
|
|
198
203
|
default: o(() => [
|
|
199
|
-
l(e(
|
|
200
|
-
label: e(
|
|
204
|
+
l(e(c), {
|
|
205
|
+
label: e(p)("亮度")
|
|
201
206
|
}, {
|
|
202
207
|
default: o(() => [
|
|
203
|
-
l(e(
|
|
208
|
+
l(e(_), {
|
|
204
209
|
modelValue: a.l,
|
|
205
|
-
"onUpdate:modelValue":
|
|
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:
|
|
215
|
+
onChange: u
|
|
211
216
|
}, null, 8, ["modelValue"]),
|
|
212
|
-
|
|
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
|
-
|
|
226
|
-
l(e(
|
|
230
|
+
m("div", le, [
|
|
231
|
+
l(e(P), { onClick: w }, {
|
|
227
232
|
default: o(() => [
|
|
228
|
-
|
|
233
|
+
v(i(e(p)("重置")), 1)
|
|
229
234
|
]),
|
|
230
235
|
_: 1
|
|
231
236
|
}),
|
|
232
|
-
l(e(
|
|
237
|
+
l(e(P), {
|
|
233
238
|
type: "primary",
|
|
234
239
|
onClick: h
|
|
235
240
|
}, {
|
|
236
241
|
default: o(() => [
|
|
237
|
-
|
|
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
|
-
}),
|
|
254
|
+
})), pe = /* @__PURE__ */ q(oe, [["__scopeId", "data-v-bdb018f5"]]);
|
|
250
255
|
export {
|
|
251
|
-
|
|
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("./
|
|
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;
|
|
@@ -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("./
|
|
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;
|
|
@@ -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;
|