hzzt-kfb-slide 0.0.6 → 0.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/{annotateCPG0T3zR.js → annotate2o-1dfLI.js} +1 -1
- package/dist/components/annotateAI-JWSH6.js +1 -0
- package/dist/components/{annotateBZhYifBy.js → annotateC9P_HUni.js} +1 -1
- package/dist/components/annotateCvQBDtIU.js +123 -0
- package/dist/components/{arrowBJ1_uQ_E.js → arrowBciNhKeC.js} +1 -1
- package/dist/components/{arrowDownNi-pK4NR.js → arrowDownCQ4SyfeE.js} +1 -1
- package/dist/components/{arrowDownUoENEig7.js → arrowDownClJawdrb.js} +1 -1
- package/dist/components/{arrowLeftBjlKltMm.js → arrowLeftBfE-rUOd.js} +1 -1
- package/dist/components/{arrowLeftDNerwLPi.js → arrowLeftDXKznfa7.js} +1 -1
- package/dist/components/{arrowRight44qqQj9S.js → arrowRightBFIf561u.js} +1 -1
- package/dist/components/{arrowRightMPKmxcZ8.js → arrowRightDD_81Jxi.js} +1 -1
- package/dist/components/{arrowUpDNv09R_q.js → arrowUpBWJ4tPxX.js} +1 -1
- package/dist/components/{arrowUpu-KhVqDz.js → arrowUpCW9dIkdT.js} +1 -1
- package/dist/components/{arrowDFlQxMKW.js → arrowqYc4Vwqs.js} +1 -1
- package/dist/components/{channelDTeDAbXs.js → channelB-5CsDgJ.js} +1 -1
- package/dist/components/{channelCzSNjDqs.js → channelDQ0dcclf.js} +1 -1
- package/dist/components/{checkD58Lt_t9.js → checkDCUaoqtc.js} +1 -1
- package/dist/components/{checkDg1XwTUE.js → checkDv3SyUAt.js} +1 -1
- package/dist/components/{configFTiUKUAQ.js → configBG9sz92K.js} +1 -1
- package/dist/components/{configDTj11Wdw.js → configD1oGPTSe.js} +1 -1
- package/dist/components/customBiZeClOe.js +39 -0
- package/dist/components/customDNmw3TmQ.js +1 -0
- package/dist/components/{deleteBIUy0hW2.js → deleteAeZFc9Ps.js} +1 -1
- package/dist/components/{deleteCeXlMQda.js → deletet8ykhJaO.js} +1 -1
- package/dist/components/{dotBcz-OP0B.js → dotB2osXT1L.js} +1 -1
- package/dist/components/{dotDpCmvPJC.js → dotBXbuJdtx.js} +1 -1
- package/dist/components/dotBi8Aw3pw.js +113 -0
- package/dist/components/dotCj7nxagF.js +1 -0
- package/dist/components/{downloadnu9isJ53.js → downloadBPXmLTeR.js} +1 -1
- package/dist/components/downloadBsgfGz04.js +79 -0
- package/dist/components/downloadDqEDdAXm.js +1 -0
- package/dist/components/{downloadBs4QK_IT.js → downloadpQ-y7WlA.js} +1 -1
- package/dist/components/{flipvyz7dJPZ.js → flipRSac65ir.js} +1 -1
- package/dist/components/{flipBwR2T8Rs.js → flipi9yEEtLG.js} +1 -1
- package/dist/components/fullscreenBZwo5K13.js +1 -0
- package/dist/components/{fullscreenyNOuxxJv.js → fullscreenBnIlw4_E.js} +1 -1
- package/dist/components/{fullscreenCVgGTPtD.js → fullscreenDS7i-f5F.js} +1 -1
- package/dist/components/fullscreenhc8QDZIL.js +51 -0
- package/dist/components/indexCbr7K6Yq.js +2843 -0
- package/dist/components/indexMzBpWXyM.js +4 -0
- package/dist/components/{infoC4fRWu15.js → infoBNq0rH3E.js} +1 -1
- package/dist/components/{infoCDweeRWp.js → infoCU8_TgkY.js} +1 -1
- package/dist/components/{levelDjuyEKmz.js → levelC0LnNmSP.js} +1 -1
- package/dist/components/{levelDjZ5vvyy.js → levelDYvedJFa.js} +1 -1
- package/dist/components/{microscopeDCINdehp.js → microscopeBr8-XStr.js} +1 -1
- package/dist/components/{microscopeDptxRPdj.js → microscopeCiYvQsyw.js} +1 -1
- package/dist/components/microscopeDMLPoAJp.js +132 -0
- package/dist/components/microscopeE9Kqv-Pu.js +1 -0
- package/dist/components/moveB-HST0mB.js +74 -0
- package/dist/components/{moveB-QJFdLP.js → moveBASWwKjj.js} +1 -1
- package/dist/components/moveBu-wHLhg.js +1 -0
- package/dist/components/{moveCNc2f0wf.js → moveNyavIpT3.js} +1 -1
- package/dist/components/{nextBX5bmT1e.js → nextDsMto_p-.js} +1 -1
- package/dist/components/{next-o3fIifP.js → nextcOKttjz3.js} +1 -1
- package/dist/components/{prevDRvSbFTC.js → prevB1Bq4rF3.js} +1 -1
- package/dist/components/{prevkbxOICn5.js → prevnbS-kjx3.js} +1 -1
- package/dist/components/{processh0Wf3Q99.js → processBAx9XRyY.js} +1 -1
- package/dist/components/processBM18h6Qd.js +1 -0
- package/dist/components/{processD06c6uax.js → processD9bf999H.js} +1 -1
- package/dist/components/{processBHqsEap8.js → processQaCeq-7y.js} +65 -62
- package/dist/components/{rotateCm7bVQY_.js → rotateANr_UwKh.js} +1 -1
- package/dist/components/{rotateCxZ7Z2pw.js → rotateBseHg5iL.js} +1 -1
- package/dist/components/rotateC63rgVZz.js +1 -0
- package/dist/components/rotateDG77ULy7.js +131 -0
- package/dist/components/{settingCzWjOOeH.js → settingCDSCrpW7.js} +1 -1
- package/dist/components/settingCrFlPK23.js +1 -0
- package/dist/components/settingDxud32Gv.js +147 -0
- package/dist/components/{settinghh-xgIto.js → settingN7OnPn3C.js} +1 -1
- package/dist/components/{tailorBalVOrgz.js → tailorCIVAqMFR.js} +1 -1
- package/dist/components/{tailorCvZYsl2H.js → tailorDwORSrp6.js} +1 -1
- package/dist/components/{useCommonDs02MG_d.js → useCommonBCMuQZUh.js} +1 -1
- package/dist/components/{useCommonBBhfDvWF.js → useCommonDf_LQLq6.js} +1 -1
- package/dist/components/zoom5nzfwbaS.js +1 -0
- package/dist/components/zoomBUaHoVgA.js +63 -0
- package/dist/components/{zoomInBFjk_aLI.js → zoomInCML6d0KQ.js} +1 -1
- package/dist/components/{zoomIn8-tgvQFE.js → zoomInCQuBW71J.js} +1 -1
- package/dist/components/{zoomOutC4Ami8gE.js → zoomOutBWAYvxae.js} +1 -1
- package/dist/components/{zoomOutD3_PopeU.js → zoomOutDFjiTeeB.js} +1 -1
- package/dist/index.cjs.js +1 -1
- package/dist/index.css +1 -1
- package/dist/index.es.js +1 -1
- package/package.json +4 -4
- package/types/components/KfbView/useLabel.d.ts +2 -1
- package/dist/components/annotateCqAOjkGt.js +0 -132
- package/dist/components/annotateDfW6BtgB.js +0 -1
- package/dist/components/customLw3nDjEr.js +0 -48
- package/dist/components/customSv562l99.js +0 -1
- package/dist/components/dotC4Q5qfQ3.js +0 -122
- package/dist/components/dotDO8OTl1O.js +0 -1
- package/dist/components/downloadCyOnwVa8.js +0 -1
- package/dist/components/downloadGCe-OpHT.js +0 -88
- package/dist/components/fullscreenBeGbvwYS.js +0 -1
- package/dist/components/fullscreenDvfoQFJX.js +0 -60
- package/dist/components/indexCBVjt8NT.js +0 -4
- package/dist/components/indexDOcglE90.js +0 -2948
- package/dist/components/microscopeB6hcfWtD.js +0 -1
- package/dist/components/microscopeD4o4Sywm.js +0 -129
- package/dist/components/moveBM4KQ8bE.js +0 -83
- package/dist/components/movemH2hKtp1.js +0 -1
- package/dist/components/processBqhO-55V.js +0 -1
- package/dist/components/rotateBdsvaWJ_.js +0 -140
- package/dist/components/rotateCyw4Ggca.js +0 -1
- package/dist/components/settingC3yidTns.js +0 -156
- package/dist/components/settingDDEEOrtI.js +0 -1
- package/dist/components/zoomCWKzKF3-.js +0 -1
- package/dist/components/zoomcWHR4OY6.js +0 -72
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),E=require("./microscopeDCINdehp.js"),s=require("element-plus"),v=require("./useCommonBBhfDvWF.js"),m=require("./indexCBVjt8NT.js");var N=Object.defineProperty,w=Object.defineProperties,x=Object.getOwnPropertyDescriptors,V=Object.getOwnPropertySymbols,P=Object.prototype.hasOwnProperty,C=Object.prototype.propertyIsEnumerable,g=(a,o,r)=>o in a?N(a,o,{enumerable:!0,configurable:!0,writable:!0,value:r}):a[o]=r,c=(a,o)=>{for(var r in o||(o={}))P.call(o,r)&&g(a,r,o[r]);if(V)for(var r of V(o))C.call(o,r)&&g(a,r,o[r]);return a},_=(a,o)=>w(a,x(o));const h={class:"flex align-items-center margin-t-2"},O={style:{"min-width":"120px"}},y={class:"flex align-items-center margin-t-2"},I={style:{"min-width":"120px"}},S={class:"flex align-items-center margin-t-2"},D={style:{"min-width":"120px"}},z=e.defineComponent(_(c({},{name:"ToolMicroscope"}),{__name:"microscope",props:e.mergeDefaults({scope:{},size:{},text:{},name:{},component:{},isPrevent:{type:Boolean},callback:{type:Function}},_(c({},v.defaultProps),{scope:()=>c({},m.DEFAULT_MICROSCOPE)})),emits:["tool"],setup(a,{emit:o}){const r=a,l=e.reactive(c(c({},m.DEFAULT_MICROSCOPE),r.scope));e.watch(()=>r.scope,i=>{Object.assign(l,i)});const f=o,{t:d,textClass:b}=v.useCommon(),u=e.ref(!1);function p(i,t){i==="visible"?(u.value=!u.value,f("tool","microscope",{name:i,value:u.value})):f("tool","microscope",{name:i,value:t})}return(i,t)=>(e.openBlock(),e.createBlock(e.unref(s.ElPopover),{visible:u.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]=n=>p("visible",u.value))},[e.createVNode(e.unref(s.ElIcon),{size:i.size},{default:e.withCtx(()=>[e.createVNode(E.default)]),_:1},8,["size"]),e.createElementVNode("div",{class:e.normalizeClass(e.unref(b))},e.toDisplayString(e.unref(d)(i.text||"镜下")),3)])]),default:e.withCtx(()=>[e.createVNode(e.unref(s.ElCard),{shadow:"never",header:e.unref(d)("镜下视野")},{default:e.withCtx(()=>[e.createElementVNode("div",null,[e.createVNode(e.unref(s.ElRadioGroup),{modelValue:l.shape,"onUpdate:modelValue":t[0]||(t[0]=n=>l.shape=n),onChange:t[1]||(t[1]=n=>p("change",l))},{default:e.withCtx(()=>[e.createVNode(e.unref(s.ElRadio),{value:"50%",label:e.unref(d)("圆形")},null,8,["label"]),e.createVNode(e.unref(s.ElRadio),{value:"0",label:e.unref(d)("矩形")},null,8,["label"])]),_:1},8,["modelValue"]),e.createElementVNode("div",h,[e.createElementVNode("p",O,e.toDisplayString(e.unref(d)("视野直径(mm)"))+": ",1),e.createVNode(e.unref(s.ElInputNumber),{class:"flex-1",modelValue:l.width,"onUpdate:modelValue":t[2]||(t[2]=n=>l.width=n),onInput:t[3]||(t[3]=n=>p("change",l))},null,8,["modelValue"])]),e.createElementVNode("div",y,[e.createElementVNode("p",I,e.toDisplayString(e.unref(d)("边框宽度"))+"(px): ",1),e.createVNode(e.unref(s.ElInputNumber),{class:"flex-1",modelValue:l.borderWidth,"onUpdate:modelValue":t[4]||(t[4]=n=>l.borderWidth=n),onInput:t[5]||(t[5]=n=>p("change",l))},null,8,["modelValue"])]),e.createElementVNode("div",S,[e.createElementVNode("p",D,e.toDisplayString(e.unref(d)("边框颜色"))+": ",1),e.createVNode(e.unref(s.ElColorPicker),{modelValue:l.color,"onUpdate:modelValue":t[6]||(t[6]=n=>l.color=n),onChange:t[7]||(t[7]=n=>p("change",l))},null,8,["modelValue"])])])]),_:1},8,["header"])]),_:1},8,["visible"]))}})),j=m._export_sfc(z,[["__scopeId","data-v-fe8098cc"]]);exports.default=j;
|
|
@@ -1,129 +0,0 @@
|
|
|
1
|
-
import { defineComponent as h, mergeDefaults as C, reactive as E, watch as y, ref as I, createBlock as z, openBlock as j, unref as o, withCtx as c, createVNode as a, createElementVNode as i, toDisplayString as v, normalizeClass as k } from "vue";
|
|
2
|
-
import D from "./microscopeDptxRPdj.js";
|
|
3
|
-
import { ElPopover as U, ElCard as $, ElRadioGroup as N, ElRadio as g, ElInputNumber as b, ElColorPicker as S, ElIcon as B } from "element-plus";
|
|
4
|
-
import { u as R, d as F } from "./useCommonDs02MG_d.js";
|
|
5
|
-
import { g as P, _ as M } from "./indexDOcglE90.js";
|
|
6
|
-
var T = Object.defineProperty, W = Object.defineProperties, A = Object.getOwnPropertyDescriptors, w = Object.getOwnPropertySymbols, G = Object.prototype.hasOwnProperty, L = Object.prototype.propertyIsEnumerable, x = (n, t, l) => t in n ? T(n, t, { enumerable: !0, configurable: !0, writable: !0, value: l }) : n[t] = l, f = (n, t) => {
|
|
7
|
-
for (var l in t || (t = {}))
|
|
8
|
-
G.call(t, l) && x(n, l, t[l]);
|
|
9
|
-
if (w)
|
|
10
|
-
for (var l of w(t))
|
|
11
|
-
L.call(t, l) && x(n, l, t[l]);
|
|
12
|
-
return n;
|
|
13
|
-
}, O = (n, t) => W(n, A(t));
|
|
14
|
-
const q = { class: "flex align-items-center margin-t-2" }, H = { style: { "min-width": "120px" } }, J = { class: "flex align-items-center margin-t-2" }, K = { style: { "min-width": "120px" } }, Q = { class: "flex align-items-center margin-t-2" }, X = { style: { "min-width": "120px" } }, Y = /* @__PURE__ */ h(O(f({}, {
|
|
15
|
-
name: "ToolMicroscope"
|
|
16
|
-
}), {
|
|
17
|
-
__name: "microscope",
|
|
18
|
-
props: /* @__PURE__ */ C({
|
|
19
|
-
scope: {},
|
|
20
|
-
size: {},
|
|
21
|
-
text: {},
|
|
22
|
-
name: {},
|
|
23
|
-
component: {},
|
|
24
|
-
isPrevent: { type: Boolean },
|
|
25
|
-
callback: { type: Function }
|
|
26
|
-
}, O(f({}, F), {
|
|
27
|
-
scope: () => f({}, P)
|
|
28
|
-
})),
|
|
29
|
-
emits: ["tool"],
|
|
30
|
-
setup(n, { emit: t }) {
|
|
31
|
-
const l = n, r = E(f(f({}, P), l.scope));
|
|
32
|
-
y(() => l.scope, (p) => {
|
|
33
|
-
Object.assign(r, p);
|
|
34
|
-
});
|
|
35
|
-
const _ = t, { t: d, textClass: V } = R(), m = I(!1);
|
|
36
|
-
function u(p, e) {
|
|
37
|
-
p === "visible" ? (m.value = !m.value, _("tool", "microscope", {
|
|
38
|
-
name: p,
|
|
39
|
-
value: m.value
|
|
40
|
-
})) : _("tool", "microscope", {
|
|
41
|
-
name: p,
|
|
42
|
-
value: e
|
|
43
|
-
});
|
|
44
|
-
}
|
|
45
|
-
return (p, e) => (j(), z(o(U), {
|
|
46
|
-
visible: m.value,
|
|
47
|
-
"popper-class": "el-popover-padding-0",
|
|
48
|
-
placement: "bottom",
|
|
49
|
-
width: "300px",
|
|
50
|
-
trigger: "click"
|
|
51
|
-
}, {
|
|
52
|
-
reference: c(() => [
|
|
53
|
-
i("div", {
|
|
54
|
-
class: "hzzt-kfb-toolbox__icon",
|
|
55
|
-
onClick: e[8] || (e[8] = (s) => u("visible", m.value))
|
|
56
|
-
}, [
|
|
57
|
-
a(o(B), { size: p.size }, {
|
|
58
|
-
default: c(() => [
|
|
59
|
-
a(D)
|
|
60
|
-
]),
|
|
61
|
-
_: 1
|
|
62
|
-
}, 8, ["size"]),
|
|
63
|
-
i("div", {
|
|
64
|
-
class: k(o(V))
|
|
65
|
-
}, v(o(d)(p.text || "镜下")), 3)
|
|
66
|
-
])
|
|
67
|
-
]),
|
|
68
|
-
default: c(() => [
|
|
69
|
-
a(o($), {
|
|
70
|
-
shadow: "never",
|
|
71
|
-
header: o(d)("镜下视野")
|
|
72
|
-
}, {
|
|
73
|
-
default: c(() => [
|
|
74
|
-
i("div", null, [
|
|
75
|
-
a(o(N), {
|
|
76
|
-
modelValue: r.shape,
|
|
77
|
-
"onUpdate:modelValue": e[0] || (e[0] = (s) => r.shape = s),
|
|
78
|
-
onChange: e[1] || (e[1] = (s) => u("change", r))
|
|
79
|
-
}, {
|
|
80
|
-
default: c(() => [
|
|
81
|
-
a(o(g), {
|
|
82
|
-
value: "50%",
|
|
83
|
-
label: o(d)("圆形")
|
|
84
|
-
}, null, 8, ["label"]),
|
|
85
|
-
a(o(g), {
|
|
86
|
-
value: "0",
|
|
87
|
-
label: o(d)("矩形")
|
|
88
|
-
}, null, 8, ["label"])
|
|
89
|
-
]),
|
|
90
|
-
_: 1
|
|
91
|
-
}, 8, ["modelValue"]),
|
|
92
|
-
i("div", q, [
|
|
93
|
-
i("p", H, v(o(d)("视野直径(mm)")) + ": ", 1),
|
|
94
|
-
a(o(b), {
|
|
95
|
-
class: "flex-1",
|
|
96
|
-
modelValue: r.width,
|
|
97
|
-
"onUpdate:modelValue": e[2] || (e[2] = (s) => r.width = s),
|
|
98
|
-
onInput: e[3] || (e[3] = (s) => u("change", r))
|
|
99
|
-
}, null, 8, ["modelValue"])
|
|
100
|
-
]),
|
|
101
|
-
i("div", J, [
|
|
102
|
-
i("p", K, v(o(d)("边框宽度")) + "(px): ", 1),
|
|
103
|
-
a(o(b), {
|
|
104
|
-
class: "flex-1",
|
|
105
|
-
modelValue: r.borderWidth,
|
|
106
|
-
"onUpdate:modelValue": e[4] || (e[4] = (s) => r.borderWidth = s),
|
|
107
|
-
onInput: e[5] || (e[5] = (s) => u("change", r))
|
|
108
|
-
}, null, 8, ["modelValue"])
|
|
109
|
-
]),
|
|
110
|
-
i("div", Q, [
|
|
111
|
-
i("p", X, v(o(d)("边框颜色")) + ": ", 1),
|
|
112
|
-
a(o(S), {
|
|
113
|
-
modelValue: r.color,
|
|
114
|
-
"onUpdate:modelValue": e[6] || (e[6] = (s) => r.color = s),
|
|
115
|
-
onChange: e[7] || (e[7] = (s) => u("change", r))
|
|
116
|
-
}, null, 8, ["modelValue"])
|
|
117
|
-
])
|
|
118
|
-
])
|
|
119
|
-
]),
|
|
120
|
-
_: 1
|
|
121
|
-
}, 8, ["header"])
|
|
122
|
-
]),
|
|
123
|
-
_: 1
|
|
124
|
-
}, 8, ["visible"]));
|
|
125
|
-
}
|
|
126
|
-
})), re = /* @__PURE__ */ M(Y, [["__scopeId", "data-v-fe8098cc"]]);
|
|
127
|
-
export {
|
|
128
|
-
re as default
|
|
129
|
-
};
|
|
@@ -1,83 +0,0 @@
|
|
|
1
|
-
import { defineComponent as g, mergeDefaults as O, ref as d, createBlock as w, openBlock as y, unref as a, withCtx as p, createVNode as m, createElementVNode as v, toDisplayString as c, normalizeClass as C } from "vue";
|
|
2
|
-
import { u as x, d as z } from "./useCommonDs02MG_d.js";
|
|
3
|
-
import E from "./moveCNc2f0wf.js";
|
|
4
|
-
import { ElPopover as I, ElCard as V, ElInputNumber as j, ElIcon as k } from "element-plus";
|
|
5
|
-
import { _ as D } from "./indexDOcglE90.js";
|
|
6
|
-
var N = Object.defineProperty, B = Object.defineProperties, M = Object.getOwnPropertyDescriptors, _ = Object.getOwnPropertySymbols, S = Object.prototype.hasOwnProperty, $ = Object.prototype.propertyIsEnumerable, b = (t, e, o) => e in t ? N(t, e, { enumerable: !0, configurable: !0, writable: !0, value: o }) : t[e] = o, h = (t, e) => {
|
|
7
|
-
for (var o in e || (e = {}))
|
|
8
|
-
S.call(e, o) && b(t, o, e[o]);
|
|
9
|
-
if (_)
|
|
10
|
-
for (var o of _(e))
|
|
11
|
-
$.call(e, o) && b(t, o, e[o]);
|
|
12
|
-
return t;
|
|
13
|
-
}, F = (t, e) => B(t, M(e));
|
|
14
|
-
const R = { class: "margin-b-1" }, T = /* @__PURE__ */ g(F(h({}, {
|
|
15
|
-
name: "ToolMove"
|
|
16
|
-
}), {
|
|
17
|
-
__name: "move",
|
|
18
|
-
props: /* @__PURE__ */ O({
|
|
19
|
-
size: {},
|
|
20
|
-
text: {},
|
|
21
|
-
name: {},
|
|
22
|
-
component: {},
|
|
23
|
-
isPrevent: { type: Boolean },
|
|
24
|
-
callback: { type: Function }
|
|
25
|
-
}, z),
|
|
26
|
-
emits: ["tool"],
|
|
27
|
-
setup(t, { emit: e }) {
|
|
28
|
-
const o = e, { t: f, textClass: P } = x(), n = d(!1), s = d(1);
|
|
29
|
-
function u(l, r) {
|
|
30
|
-
l === "visible" ? n.value = !n.value : o("tool", "move", {
|
|
31
|
-
name: l,
|
|
32
|
-
value: r
|
|
33
|
-
});
|
|
34
|
-
}
|
|
35
|
-
return (l, r) => (y(), w(a(I), {
|
|
36
|
-
visible: n.value,
|
|
37
|
-
"popper-class": "el-popover-padding-0",
|
|
38
|
-
placement: "bottom",
|
|
39
|
-
width: "200px",
|
|
40
|
-
trigger: "click"
|
|
41
|
-
}, {
|
|
42
|
-
reference: p(() => [
|
|
43
|
-
v("div", {
|
|
44
|
-
class: "hzzt-kfb-toolbox__icon",
|
|
45
|
-
onClick: r[3] || (r[3] = (i) => u("visible", n.value))
|
|
46
|
-
}, [
|
|
47
|
-
m(a(k), { size: l.size }, {
|
|
48
|
-
default: p(() => [
|
|
49
|
-
m(E)
|
|
50
|
-
]),
|
|
51
|
-
_: 1
|
|
52
|
-
}, 8, ["size"]),
|
|
53
|
-
v("div", {
|
|
54
|
-
class: C(a(P))
|
|
55
|
-
}, c(a(f)(l.text || "快速移动")), 3)
|
|
56
|
-
])
|
|
57
|
-
]),
|
|
58
|
-
default: p(() => [
|
|
59
|
-
m(a(V), { shadow: "never" }, {
|
|
60
|
-
default: p(() => [
|
|
61
|
-
v("div", null, [
|
|
62
|
-
v("p", R, c(a(f)("图像移动倍率")) + ":", 1),
|
|
63
|
-
m(a(j), {
|
|
64
|
-
modelValue: s.value,
|
|
65
|
-
"onUpdate:modelValue": r[0] || (r[0] = (i) => s.value = i),
|
|
66
|
-
step: 0.2,
|
|
67
|
-
min: 1,
|
|
68
|
-
max: 10,
|
|
69
|
-
onChange: r[1] || (r[1] = (i) => u("ratio", s.value)),
|
|
70
|
-
onInput: r[2] || (r[2] = (i) => u("ratio", s.value))
|
|
71
|
-
}, null, 8, ["modelValue"])
|
|
72
|
-
])
|
|
73
|
-
]),
|
|
74
|
-
_: 1
|
|
75
|
-
})
|
|
76
|
-
]),
|
|
77
|
-
_: 1
|
|
78
|
-
}, 8, ["visible"]));
|
|
79
|
-
}
|
|
80
|
-
})), J = /* @__PURE__ */ D(T, [["__scopeId", "data-v-aa10a89d"]]);
|
|
81
|
-
export {
|
|
82
|
-
J as default
|
|
83
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),d=require("./useCommonBBhfDvWF.js"),_=require("./moveB-QJFdLP.js"),u=require("element-plus"),b=require("./indexCBVjt8NT.js");var P=Object.defineProperty,g=Object.defineProperties,w=Object.getOwnPropertyDescriptors,m=Object.getOwnPropertySymbols,C=Object.prototype.hasOwnProperty,O=Object.prototype.propertyIsEnumerable,c=(r,t,o)=>t in r?P(r,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):r[t]=o,y=(r,t)=>{for(var o in t||(t={}))C.call(t,o)&&c(r,o,t[o]);if(m)for(var o of m(t))O.call(t,o)&&c(r,o,t[o]);return r},V=(r,t)=>g(r,w(t));const x={class:"margin-b-1"},E=e.defineComponent(V(y({},{name:"ToolMove"}),{__name:"move",props:e.mergeDefaults({size:{},text:{},name:{},component:{},isPrevent:{type:Boolean},callback:{type:Function}},d.defaultProps),emits:["tool"],setup(r,{emit:t}){const o=t,{t:v,textClass:f}=d.useCommon(),l=e.ref(!1),s=e.ref(1);function p(a,n){a==="visible"?l.value=!l.value:o("tool","move",{name:a,value:n})}return(a,n)=>(e.openBlock(),e.createBlock(e.unref(u.ElPopover),{visible:l.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:n[3]||(n[3]=i=>p("visible",l.value))},[e.createVNode(e.unref(u.ElIcon),{size:a.size},{default:e.withCtx(()=>[e.createVNode(_.default)]),_:1},8,["size"]),e.createElementVNode("div",{class:e.normalizeClass(e.unref(f))},e.toDisplayString(e.unref(v)(a.text||"快速移动")),3)])]),default:e.withCtx(()=>[e.createVNode(e.unref(u.ElCard),{shadow:"never"},{default:e.withCtx(()=>[e.createElementVNode("div",null,[e.createElementVNode("p",x,e.toDisplayString(e.unref(v)("图像移动倍率"))+":",1),e.createVNode(e.unref(u.ElInputNumber),{modelValue:s.value,"onUpdate:modelValue":n[0]||(n[0]=i=>s.value=i),step:.2,min:1,max:10,onChange:n[1]||(n[1]=i=>p("ratio",s.value)),onInput:n[2]||(n[2]=i=>p("ratio",s.value))},null,8,["modelValue"])])]),_:1})]),_:1},8,["visible"]))}})),N=b._export_sfc(E,[["__scopeId","data-v-aa10a89d"]]);exports.default=N;
|
|
@@ -1 +0,0 @@
|
|
|
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,140 +0,0 @@
|
|
|
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 +0,0 @@
|
|
|
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;
|
|
@@ -1,156 +0,0 @@
|
|
|
1
|
-
import { defineComponent as b, mergeDefaults as _, ref as V, createBlock as P, openBlock as w, unref as e, withCtx as s, createVNode as n, createElementVNode as f, normalizeClass as O, toDisplayString as C } from "vue";
|
|
2
|
-
import { u as E, d as z } from "./useCommonDs02MG_d.js";
|
|
3
|
-
import { ElPopover as y, ElCard as S, ElForm as I, ElFormItem as p, ElSwitch as m, ElIcon as U } from "element-plus";
|
|
4
|
-
import j from "./settingCzWjOOeH.js";
|
|
5
|
-
import { _ as D } from "./indexDOcglE90.js";
|
|
6
|
-
var F = Object.defineProperty, k = Object.defineProperties, B = Object.getOwnPropertyDescriptors, g = Object.getOwnPropertySymbols, N = Object.prototype.hasOwnProperty, T = Object.prototype.propertyIsEnumerable, x = (u, o, r) => o in u ? F(u, o, { enumerable: !0, configurable: !0, writable: !0, value: r }) : u[o] = r, h = (u, o) => {
|
|
7
|
-
for (var r in o || (o = {}))
|
|
8
|
-
N.call(o, r) && x(u, r, o[r]);
|
|
9
|
-
if (g)
|
|
10
|
-
for (var r of g(o))
|
|
11
|
-
T.call(o, r) && x(u, r, o[r]);
|
|
12
|
-
return u;
|
|
13
|
-
}, q = (u, o) => k(u, B(o));
|
|
14
|
-
const A = { class: "hzzt-kfb-toolbox__icon" }, G = /* @__PURE__ */ b(q(h({}, {
|
|
15
|
-
name: "ToolSetting"
|
|
16
|
-
}), {
|
|
17
|
-
__name: "setting",
|
|
18
|
-
props: /* @__PURE__ */ _({
|
|
19
|
-
size: {},
|
|
20
|
-
text: {},
|
|
21
|
-
name: {},
|
|
22
|
-
component: {},
|
|
23
|
-
isPrevent: { type: Boolean },
|
|
24
|
-
callback: { type: Function }
|
|
25
|
-
}, z),
|
|
26
|
-
emits: ["tool"],
|
|
27
|
-
setup(u, { emit: o }) {
|
|
28
|
-
const r = o, { t: a, textClass: c } = E(), i = V({
|
|
29
|
-
all: !0,
|
|
30
|
-
grid: !1,
|
|
31
|
-
ruler: !1,
|
|
32
|
-
navigator: !0,
|
|
33
|
-
graduation: !0
|
|
34
|
-
});
|
|
35
|
-
function v(d, t) {
|
|
36
|
-
d === "grid" || d === "graduation" ? r("tool", d, {
|
|
37
|
-
show: t
|
|
38
|
-
}) : d === "ruler" ? r("tool", d, {
|
|
39
|
-
ruler: t
|
|
40
|
-
}) : d === "tool" && (i.value.grid = !!t, i.value.ruler = !!t, i.value.navigator = !!t, i.value.graduation = !!t), r("tool", d, t);
|
|
41
|
-
}
|
|
42
|
-
return (d, t) => (w(), P(e(y), {
|
|
43
|
-
placement: "bottom",
|
|
44
|
-
width: "230px",
|
|
45
|
-
trigger: "click",
|
|
46
|
-
"popper-class": "el-popover-padding-0"
|
|
47
|
-
}, {
|
|
48
|
-
reference: s(() => [
|
|
49
|
-
f("div", A, [
|
|
50
|
-
n(e(U), { size: d.size }, {
|
|
51
|
-
default: s(() => [
|
|
52
|
-
n(j)
|
|
53
|
-
]),
|
|
54
|
-
_: 1
|
|
55
|
-
}, 8, ["size"]),
|
|
56
|
-
f("div", {
|
|
57
|
-
class: O(e(c))
|
|
58
|
-
}, C(e(a)(d.text || "工具")), 3)
|
|
59
|
-
])
|
|
60
|
-
]),
|
|
61
|
-
default: s(() => [
|
|
62
|
-
n(e(S), {
|
|
63
|
-
shadow: "never",
|
|
64
|
-
header: e(a)("工具"),
|
|
65
|
-
"body-style": { padding: 0 }
|
|
66
|
-
}, {
|
|
67
|
-
default: s(() => [
|
|
68
|
-
n(e(I), {
|
|
69
|
-
"label-width": "85px",
|
|
70
|
-
"label-position": "right"
|
|
71
|
-
}, {
|
|
72
|
-
default: s(() => [
|
|
73
|
-
n(e(p), {
|
|
74
|
-
label: e(a)("全部")
|
|
75
|
-
}, {
|
|
76
|
-
default: s(() => [
|
|
77
|
-
n(e(m), {
|
|
78
|
-
modelValue: i.value.all,
|
|
79
|
-
"onUpdate:modelValue": t[0] || (t[0] = (l) => i.value.all = l),
|
|
80
|
-
"active-text": e(a)("开"),
|
|
81
|
-
"inactive-text": e(a)("关"),
|
|
82
|
-
onChange: t[1] || (t[1] = (l) => v("tool", l))
|
|
83
|
-
}, null, 8, ["modelValue", "active-text", "inactive-text"])
|
|
84
|
-
]),
|
|
85
|
-
_: 1
|
|
86
|
-
}, 8, ["label"]),
|
|
87
|
-
n(e(p), {
|
|
88
|
-
label: e(a)("自动网格")
|
|
89
|
-
}, {
|
|
90
|
-
default: s(() => [
|
|
91
|
-
n(e(m), {
|
|
92
|
-
modelValue: i.value.grid,
|
|
93
|
-
"onUpdate:modelValue": t[2] || (t[2] = (l) => i.value.grid = l),
|
|
94
|
-
"active-text": e(a)("开"),
|
|
95
|
-
"inactive-text": e(a)("关"),
|
|
96
|
-
onChange: t[3] || (t[3] = (l) => v("grid", l))
|
|
97
|
-
}, null, 8, ["modelValue", "active-text", "inactive-text"])
|
|
98
|
-
]),
|
|
99
|
-
_: 1
|
|
100
|
-
}, 8, ["label"]),
|
|
101
|
-
n(e(p), {
|
|
102
|
-
label: e(a)("自动标尺")
|
|
103
|
-
}, {
|
|
104
|
-
default: s(() => [
|
|
105
|
-
n(e(m), {
|
|
106
|
-
modelValue: i.value.ruler,
|
|
107
|
-
"onUpdate:modelValue": t[4] || (t[4] = (l) => i.value.ruler = l),
|
|
108
|
-
"active-text": e(a)("开"),
|
|
109
|
-
"inactive-text": e(a)("关"),
|
|
110
|
-
onChange: t[5] || (t[5] = (l) => v("ruler", l))
|
|
111
|
-
}, null, 8, ["modelValue", "active-text", "inactive-text"])
|
|
112
|
-
]),
|
|
113
|
-
_: 1
|
|
114
|
-
}, 8, ["label"]),
|
|
115
|
-
n(e(p), {
|
|
116
|
-
label: e(a)("导航图")
|
|
117
|
-
}, {
|
|
118
|
-
default: s(() => [
|
|
119
|
-
n(e(m), {
|
|
120
|
-
modelValue: i.value.navigator,
|
|
121
|
-
"onUpdate:modelValue": t[6] || (t[6] = (l) => i.value.navigator = l),
|
|
122
|
-
"active-text": e(a)("开"),
|
|
123
|
-
"inactive-text": e(a)("关"),
|
|
124
|
-
onChange: t[7] || (t[7] = (l) => v("navigator", l))
|
|
125
|
-
}, null, 8, ["modelValue", "active-text", "inactive-text"])
|
|
126
|
-
]),
|
|
127
|
-
_: 1
|
|
128
|
-
}, 8, ["label"]),
|
|
129
|
-
n(e(p), {
|
|
130
|
-
label: e(a)("比例尺")
|
|
131
|
-
}, {
|
|
132
|
-
default: s(() => [
|
|
133
|
-
n(e(m), {
|
|
134
|
-
modelValue: i.value.graduation,
|
|
135
|
-
"onUpdate:modelValue": t[8] || (t[8] = (l) => i.value.graduation = l),
|
|
136
|
-
"active-text": e(a)("开"),
|
|
137
|
-
"inactive-text": e(a)("关"),
|
|
138
|
-
onChange: t[9] || (t[9] = (l) => v("graduation", l))
|
|
139
|
-
}, null, 8, ["modelValue", "active-text", "inactive-text"])
|
|
140
|
-
]),
|
|
141
|
-
_: 1
|
|
142
|
-
}, 8, ["label"])
|
|
143
|
-
]),
|
|
144
|
-
_: 1
|
|
145
|
-
})
|
|
146
|
-
]),
|
|
147
|
-
_: 1
|
|
148
|
-
}, 8, ["header"])
|
|
149
|
-
]),
|
|
150
|
-
_: 1
|
|
151
|
-
}));
|
|
152
|
-
}
|
|
153
|
-
})), Q = /* @__PURE__ */ D(G, [["__scopeId", "data-v-3599775b"]]);
|
|
154
|
-
export {
|
|
155
|
-
Q as default
|
|
156
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),f=require("./useCommonBBhfDvWF.js"),u=require("element-plus"),p=require("./settinghh-xgIto.js"),x=require("./indexCBVjt8NT.js");var g=Object.defineProperty,V=Object.defineProperties,w=Object.getOwnPropertyDescriptors,v=Object.getOwnPropertySymbols,b=Object.prototype.hasOwnProperty,C=Object.prototype.propertyIsEnumerable,m=(i,o,a)=>o in i?g(i,o,{enumerable:!0,configurable:!0,writable:!0,value:a}):i[o]=a,_=(i,o)=>{for(var a in o||(o={}))b.call(o,a)&&m(i,a,o[a]);if(v)for(var a of v(o))C.call(o,a)&&m(i,a,o[a]);return i},E=(i,o)=>V(i,w(o));const N={class:"hzzt-kfb-toolbox__icon"},P=e.defineComponent(E(_({},{name:"ToolSetting"}),{__name:"setting",props:e.mergeDefaults({size:{},text:{},name:{},component:{},isPrevent:{type:Boolean},callback:{type:Function}},f.defaultProps),emits:["tool"],setup(i,{emit:o}){const a=o,{t:l,textClass:c}=f.useCommon(),n=e.ref({all:!0,grid:!1,ruler:!1,navigator:!0,graduation:!0});function s(d,t){d==="grid"||d==="graduation"?a("tool",d,{show:t}):d==="ruler"?a("tool",d,{ruler:t}):d==="tool"&&(n.value.grid=!!t,n.value.ruler=!!t,n.value.navigator=!!t,n.value.graduation=!!t),a("tool",d,t)}return(d,t)=>(e.openBlock(),e.createBlock(e.unref(u.ElPopover),{placement:"bottom",width:"230px",trigger:"click","popper-class":"el-popover-padding-0"},{reference:e.withCtx(()=>[e.createElementVNode("div",N,[e.createVNode(e.unref(u.ElIcon),{size:d.size},{default:e.withCtx(()=>[e.createVNode(p.default)]),_:1},8,["size"]),e.createElementVNode("div",{class:e.normalizeClass(e.unref(c))},e.toDisplayString(e.unref(l)(d.text||"工具")),3)])]),default:e.withCtx(()=>[e.createVNode(e.unref(u.ElCard),{shadow:"never",header:e.unref(l)("工具"),"body-style":{padding:0}},{default:e.withCtx(()=>[e.createVNode(e.unref(u.ElForm),{"label-width":"85px","label-position":"right"},{default:e.withCtx(()=>[e.createVNode(e.unref(u.ElFormItem),{label:e.unref(l)("全部")},{default:e.withCtx(()=>[e.createVNode(e.unref(u.ElSwitch),{modelValue:n.value.all,"onUpdate:modelValue":t[0]||(t[0]=r=>n.value.all=r),"active-text":e.unref(l)("开"),"inactive-text":e.unref(l)("关"),onChange:t[1]||(t[1]=r=>s("tool",r))},null,8,["modelValue","active-text","inactive-text"])]),_:1},8,["label"]),e.createVNode(e.unref(u.ElFormItem),{label:e.unref(l)("自动网格")},{default:e.withCtx(()=>[e.createVNode(e.unref(u.ElSwitch),{modelValue:n.value.grid,"onUpdate:modelValue":t[2]||(t[2]=r=>n.value.grid=r),"active-text":e.unref(l)("开"),"inactive-text":e.unref(l)("关"),onChange:t[3]||(t[3]=r=>s("grid",r))},null,8,["modelValue","active-text","inactive-text"])]),_:1},8,["label"]),e.createVNode(e.unref(u.ElFormItem),{label:e.unref(l)("自动标尺")},{default:e.withCtx(()=>[e.createVNode(e.unref(u.ElSwitch),{modelValue:n.value.ruler,"onUpdate:modelValue":t[4]||(t[4]=r=>n.value.ruler=r),"active-text":e.unref(l)("开"),"inactive-text":e.unref(l)("关"),onChange:t[5]||(t[5]=r=>s("ruler",r))},null,8,["modelValue","active-text","inactive-text"])]),_:1},8,["label"]),e.createVNode(e.unref(u.ElFormItem),{label:e.unref(l)("导航图")},{default:e.withCtx(()=>[e.createVNode(e.unref(u.ElSwitch),{modelValue:n.value.navigator,"onUpdate:modelValue":t[6]||(t[6]=r=>n.value.navigator=r),"active-text":e.unref(l)("开"),"inactive-text":e.unref(l)("关"),onChange:t[7]||(t[7]=r=>s("navigator",r))},null,8,["modelValue","active-text","inactive-text"])]),_:1},8,["label"]),e.createVNode(e.unref(u.ElFormItem),{label:e.unref(l)("比例尺")},{default:e.withCtx(()=>[e.createVNode(e.unref(u.ElSwitch),{modelValue:n.value.graduation,"onUpdate:modelValue":t[8]||(t[8]=r=>n.value.graduation=r),"active-text":e.unref(l)("开"),"inactive-text":e.unref(l)("关"),onChange:t[9]||(t[9]=r=>s("graduation",r))},null,8,["modelValue","active-text","inactive-text"])]),_:1},8,["label"])]),_:1})]),_:1},8,["header"])]),_:1}))}})),h=x._export_sfc(P,[["__scopeId","data-v-3599775b"]]);exports.default=h;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),f=require("element-plus"),b=require("./indexCBVjt8NT.js");var v=Object.defineProperty,g=Object.defineProperties,z=Object.getOwnPropertyDescriptors,i=Object.getOwnPropertySymbols,y=Object.prototype.hasOwnProperty,k=Object.prototype.propertyIsEnumerable,d=(r,o,t)=>o in r?v(r,o,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[o]=t,x=(r,o)=>{for(var t in o||(o={}))y.call(o,t)&&d(r,t,o[t]);if(i)for(var t of i(o))k.call(o,t)&&d(r,t,o[t]);return r},N=(r,o)=>g(r,z(o));const P={class:"hzzt-kfb-toolbox-zoom"},O=["data-index","onClick"],w={class:"hzzt-kfb-toolbox__text"},h={class:"hzzt-kfb-toolbox-zoom__button"},V=e.defineComponent(N(x({},{name:"ToolZoom"}),{__name:"zoom",emits:["tool"],setup(r,{emit:o}){var t;const _=o,a=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)"}],s=e.ref(`${((t=a==null?void 0:a.value)==null?void 0:t.zoom)||"0x"}`);e.watch(()=>{var l;return(l=a==null?void 0:a.value)==null?void 0:l.zoom},l=>{s.value=`${l}x`});function u(l){_("tool","zoom",l)}return(l,c)=>(e.openBlock(),e.createElementBlock("div",P,[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(m,(n,p)=>e.createElementVNode("div",{key:p,class:"hzzt-kfb-toolbox__icon","data-index":n.scaleNum,onClick:j=>u(n.scaleNum)},[e.createElementVNode("span",w,e.toDisplayString(n.scaleNum)+"x",1)],8,O)),64)),e.createElementVNode("div",h,[e.createVNode(e.unref(f.ElInput),{modelValue:s.value,"onUpdate:modelValue":c[0]||(c[0]=n=>s.value=n),class:"hzzt-kfb-toolbox-zoom__input",onKeydown:c[1]||(c[1]=e.withKeys(n=>u(Number(s.value.replace("x",""))),["enter"]))},null,8,["modelValue"])])]))}})),E=b._export_sfc(V,[["__scopeId","data-v-af758f1f"]]);exports.default=E;
|
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
import { defineComponent as v, inject as z, ref as g, watch as y, createElementBlock as _, openBlock as i, createElementVNode as c, Fragment as k, renderList as x, toDisplayString as N, createVNode as O, unref as P, withKeys as w } from "vue";
|
|
2
|
-
import { ElInput as h } from "element-plus";
|
|
3
|
-
import { _ as V } from "./indexDOcglE90.js";
|
|
4
|
-
var j = Object.defineProperty, E = Object.defineProperties, I = Object.getOwnPropertyDescriptors, m = Object.getOwnPropertySymbols, $ = Object.prototype.hasOwnProperty, C = Object.prototype.propertyIsEnumerable, d = (t, o, e) => o in t ? j(t, o, { enumerable: !0, configurable: !0, writable: !0, value: e }) : t[o] = e, D = (t, o) => {
|
|
5
|
-
for (var e in o || (o = {}))
|
|
6
|
-
$.call(o, e) && d(t, e, o[e]);
|
|
7
|
-
if (m)
|
|
8
|
-
for (var e of m(o))
|
|
9
|
-
C.call(o, e) && d(t, e, o[e]);
|
|
10
|
-
return t;
|
|
11
|
-
}, S = (t, o) => E(t, I(o));
|
|
12
|
-
const B = { class: "hzzt-kfb-toolbox-zoom" }, K = ["data-index", "onClick"], L = { class: "hzzt-kfb-toolbox__text" }, R = { class: "hzzt-kfb-toolbox-zoom__button" }, T = /* @__PURE__ */ v(S(D({}, {
|
|
13
|
-
name: "ToolZoom"
|
|
14
|
-
}), {
|
|
15
|
-
__name: "zoom",
|
|
16
|
-
emits: ["tool"],
|
|
17
|
-
setup(t, { emit: o }) {
|
|
18
|
-
var e;
|
|
19
|
-
const p = o, a = z("kfbViewRef"), f = [
|
|
20
|
-
{
|
|
21
|
-
scaleNum: 2,
|
|
22
|
-
style: "background-color: rgba(0, 0, 0, 0.5)"
|
|
23
|
-
},
|
|
24
|
-
{
|
|
25
|
-
scaleNum: 4,
|
|
26
|
-
style: "background-color: rgba(0, 0, 0, 0.6)"
|
|
27
|
-
},
|
|
28
|
-
{
|
|
29
|
-
scaleNum: 10,
|
|
30
|
-
style: "background-color: rgba(0, 0, 0, 0.7)"
|
|
31
|
-
},
|
|
32
|
-
{
|
|
33
|
-
scaleNum: 20,
|
|
34
|
-
style: "background-color: rgba(0, 0, 0, 0.8)"
|
|
35
|
-
},
|
|
36
|
-
{
|
|
37
|
-
scaleNum: 40,
|
|
38
|
-
style: "background-color: rgba(0, 0, 0, 0.8)"
|
|
39
|
-
}
|
|
40
|
-
], n = g(`${((e = a == null ? void 0 : a.value) == null ? void 0 : e.zoom) || "0x"}`);
|
|
41
|
-
y(() => {
|
|
42
|
-
var r;
|
|
43
|
-
return (r = a == null ? void 0 : a.value) == null ? void 0 : r.zoom;
|
|
44
|
-
}, (r) => {
|
|
45
|
-
n.value = `${r}x`;
|
|
46
|
-
});
|
|
47
|
-
function u(r) {
|
|
48
|
-
p("tool", "zoom", r);
|
|
49
|
-
}
|
|
50
|
-
return (r, s) => (i(), _("div", B, [
|
|
51
|
-
(i(), _(k, null, x(f, (l, b) => c("div", {
|
|
52
|
-
key: b,
|
|
53
|
-
class: "hzzt-kfb-toolbox__icon",
|
|
54
|
-
"data-index": l.scaleNum,
|
|
55
|
-
onClick: (F) => u(l.scaleNum)
|
|
56
|
-
}, [
|
|
57
|
-
c("span", L, N(l.scaleNum) + "x", 1)
|
|
58
|
-
], 8, K)), 64)),
|
|
59
|
-
c("div", R, [
|
|
60
|
-
O(P(h), {
|
|
61
|
-
modelValue: n.value,
|
|
62
|
-
"onUpdate:modelValue": s[0] || (s[0] = (l) => n.value = l),
|
|
63
|
-
class: "hzzt-kfb-toolbox-zoom__input",
|
|
64
|
-
onKeydown: s[1] || (s[1] = w((l) => u(Number(n.value.replace("x", ""))), ["enter"]))
|
|
65
|
-
}, null, 8, ["modelValue"])
|
|
66
|
-
])
|
|
67
|
-
]));
|
|
68
|
-
}
|
|
69
|
-
})), A = /* @__PURE__ */ V(T, [["__scopeId", "data-v-af758f1f"]]);
|
|
70
|
-
export {
|
|
71
|
-
A as default
|
|
72
|
-
};
|