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
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var _=Object.defineProperty,h=Object.defineProperties;var b=Object.getOwnPropertyDescriptors;var p=Object.getOwnPropertySymbols;var w=Object.prototype.hasOwnProperty,S=Object.prototype.propertyIsEnumerable;var V=(s,o,r)=>o in s?_(s,o,{enumerable:!0,configurable:!0,writable:!0,value:r}):s[o]=r,i=(s,o)=>{for(var r in o||(o={}))w.call(o,r)&&V(s,r,o[r]);if(p)for(var r of p(o))S.call(o,r)&&V(s,r,o[r]);return s},C=(s,o)=>h(s,b(o));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),x=require("./useCommonDf_LQLq6.js"),t=require("element-plus"),y=require("./processD9bf999H.js"),c=require("./indexMzBpWXyM.js"),D={class:"margin-l-4"},v={class:"margin-l-4"},F={class:"margin-l-4"},P={class:"margin-l-4"},U={class:"margin-l-4"},I={class:"margin-l-4"},k={class:"margin-l-4"},z={class:"flex justify-content-end"},T={class:"hzzt-kfb-toolbox__icon"},q=e.defineComponent({name:"ToolProcess",__name:"process",props:e.mergeDefaults({process:{},size:{},text:{},name:{},component:{},isPrevent:{type:Boolean},callback:{type:Function}},C(i({},x.defaultProps),{process:()=>i({},c.DEFAULT_PROCESS)})),emits:["tool"],setup(s,{emit:o}){const r=s,m=o,{t:d,textClass:E}=x.useCommon(),l=e.reactive(i(i({},c.DEFAULT_PROCESS),r.process));function u(){m("tool","process",l)}function N(){Object.assign(l,c.DEFAULT_PROCESS),u()}function g(){m("tool","save_process",l)}return(f,a)=>(e.openBlock(),e.createBlock(e.unref(t.ElPopover),{"popper-class":"el-popover-padding-0",placement:"bottom",width:"400px",trigger:"click"},{reference:e.withCtx(()=>[e.createElementVNode("div",T,[e.createVNode(e.unref(t.ElIcon),{size:f.size},{default:e.withCtx(()=>[e.createVNode(y.default)]),_:1},8,["size"]),e.createElementVNode("div",{class:e.normalizeClass(e.unref(E))},e.toDisplayString(e.unref(d)(f.text||"图像处理")),3)])]),default:e.withCtx(()=>[e.createVNode(e.unref(t.ElCard),{shadow:"never",header:e.unref(d)("图像处理")},{default:e.withCtx(()=>[e.createVNode(e.unref(t.ElForm),null,{default:e.withCtx(()=>[e.createVNode(e.unref(t.ElRow),null,{default:e.withCtx(()=>[e.createVNode(e.unref(t.ElCol),{span:24},{default:e.withCtx(()=>[e.createVNode(e.unref(t.ElFormItem),{label:e.unref(d)("红通道")},{default:e.withCtx(()=>[e.createVNode(e.unref(t.ElSlider),{modelValue:l.r,"onUpdate:modelValue":a[0]||(a[0]=n=>l.r=n),class:"flex-1",step:.1,min:-1,max:1,onChange:u},null,8,["modelValue"]),e.createElementVNode("span",D,e.toDisplayString(l.r*100)+"%",1)]),_:1},8,["label"])]),_:1}),e.createVNode(e.unref(t.ElCol),{span:24},{default:e.withCtx(()=>[e.createVNode(e.unref(t.ElFormItem),{label:e.unref(d)("绿通道")},{default:e.withCtx(()=>[e.createVNode(e.unref(t.ElSlider),{modelValue:l.g,"onUpdate:modelValue":a[1]||(a[1]=n=>l.g=n),class:"flex-1",step:.1,min:-1,max:1,onChange:u},null,8,["modelValue"]),e.createElementVNode("span",v,e.toDisplayString(l.g*100)+"%",1)]),_:1},8,["label"])]),_:1}),e.createVNode(e.unref(t.ElCol),{span:24},{default:e.withCtx(()=>[e.createVNode(e.unref(t.ElFormItem),{label:e.unref(d)("蓝通道")},{default:e.withCtx(()=>[e.createVNode(e.unref(t.ElSlider),{modelValue:l.b,"onUpdate:modelValue":a[2]||(a[2]=n=>l.b=n),class:"flex-1",step:.1,min:-1,max:1,onChange:u},null,8,["modelValue"]),e.createElementVNode("span",F,e.toDisplayString(l.b*100)+"%",1)]),_:1},8,["label"])]),_:1}),e.createVNode(e.unref(t.ElCol),{span:24},{default:e.withCtx(()=>[e.createVNode(e.unref(t.ElFormItem),{label:e.unref(d)("gamma值")},{default:e.withCtx(()=>[e.createVNode(e.unref(t.ElSlider),{modelValue:l.ga,"onUpdate:modelValue":a[3]||(a[3]=n=>l.ga=n),class:"flex-1",step:.01,min:-.05,max:2,onChange:u},null,8,["modelValue"]),e.createElementVNode("span",P,e.toDisplayString(l.ga),1)]),_:1},8,["label"])]),_:1}),e.createVNode(e.unref(t.ElCol),{span:24},{default:e.withCtx(()=>[e.createVNode(e.unref(t.ElFormItem),{label:e.unref(d)("对比度")},{default:e.withCtx(()=>[e.createVNode(e.unref(t.ElSlider),{modelValue:l.c,"onUpdate:modelValue":a[4]||(a[4]=n=>l.c=n),class:"flex-1",step:.1,min:-1,max:1,onChange:u},null,8,["modelValue"]),e.createElementVNode("span",U,e.toDisplayString(l.c*100)+"%",1)]),_:1},8,["label"])]),_:1}),e.createVNode(e.unref(t.ElCol),{span:24},{default:e.withCtx(()=>[e.createVNode(e.unref(t.ElFormItem),{label:e.unref(d)("饱和度")},{default:e.withCtx(()=>[e.createVNode(e.unref(t.ElSlider),{modelValue:l.s,"onUpdate:modelValue":a[5]||(a[5]=n=>l.s=n),class:"flex-1",step:.1,min:-1,max:1,onChange:u},null,8,["modelValue"]),e.createElementVNode("span",I,e.toDisplayString(l.s*100)+"%",1)]),_:1},8,["label"])]),_:1}),e.createVNode(e.unref(t.ElCol),{span:24},{default:e.withCtx(()=>[e.createVNode(e.unref(t.ElFormItem),{label:e.unref(d)("亮度")},{default:e.withCtx(()=>[e.createVNode(e.unref(t.ElSlider),{modelValue:l.l,"onUpdate:modelValue":a[6]||(a[6]=n=>l.l=n),class:"flex-1",step:.1,min:-1,max:1,onChange:u},null,8,["modelValue"]),e.createElementVNode("span",k,e.toDisplayString(l.l*100)+"%",1)]),_:1},8,["label"])]),_:1})]),_:1})]),_:1}),e.createElementVNode("div",z,[e.createVNode(e.unref(t.ElButton),{onClick:N},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(d)("重置")),1)]),_:1}),e.createVNode(e.unref(t.ElButton),{type:"primary",onClick:g},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(d)("保存")),1)]),_:1})])]),_:1},8,["header"])]),_:1}))}}),B=c._export_sfc(q,[["__scopeId","data-v-bdb018f5"]]);exports.default=B;
|
|
@@ -1 +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("./indexMzBpWXyM.js"),r={},n={viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"};function c(d,t){return e.openBlock(),e.createElementBlock("svg",n,t[0]||(t[0]=[e.createElementVNode("g",{id:"24*24/图片"},[e.createElementVNode("path",{id:"Vector",d:"M20 4H4C2.9 4 2 4.9 2 6V18C2 19.1 2.9 20 4 20H20C21.1 20 22 19.1 22 18V6C22 4.9 21.1 4 20 4ZM4 7C4 6.45 4.45 6 5 6H19C19.55 6 20 6.45 20 7V17C20 17.15 19.95 17.25 19.95 17.35L16.35 11.4C16.2 11.15 15.8 11.05 15.6 11.3L13.5 13.1C13.25 13.3 12.9 13.25 12.7 12.95L10.45 8.75C10.25 8.4 9.8 8.4 9.55 8.7L4.05 17.35C4.05 17.25 4 17.1 4 17V7Z"}),e.createElementVNode("path",{id:"Vector_2",d:"M16 8.5C16 8.89782 16.158 9.27936 16.4393 9.56066C16.7206 9.84197 17.1022 10 17.5 10C17.8978 10 18.2794 9.84197 18.5607 9.56066C18.842 9.27936 19 8.89782 19 8.5C19 8.10218 18.842 7.72064 18.5607 7.43934C18.2794 7.15804 17.8978 7 17.5 7C17.1022 7 16.7206 7.15804 16.4393 7.43934C16.158 7.72064 16 8.10218 16 8.5Z"})],-1)]))}const C=o._export_sfc(r,[["render",c]]);exports.default=C;
|
|
@@ -1,21 +1,24 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
var
|
|
7
|
-
|
|
8
|
-
K.call(s, r) && E(d, r, s[r]);
|
|
1
|
+
var y = Object.defineProperty, w = Object.defineProperties;
|
|
2
|
+
var B = Object.getOwnPropertyDescriptors;
|
|
3
|
+
var C = Object.getOwnPropertySymbols;
|
|
4
|
+
var D = Object.prototype.hasOwnProperty, F = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var E = (m, s, d) => s in m ? y(m, s, { enumerable: !0, configurable: !0, writable: !0, value: d }) : m[s] = d, g = (m, s) => {
|
|
6
|
+
for (var d in s || (s = {}))
|
|
7
|
+
D.call(s, d) && E(m, d, s[d]);
|
|
9
8
|
if (C)
|
|
10
|
-
for (var
|
|
11
|
-
|
|
12
|
-
return
|
|
13
|
-
},
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
9
|
+
for (var d of C(s))
|
|
10
|
+
F.call(s, d) && E(m, d, s[d]);
|
|
11
|
+
return m;
|
|
12
|
+
}, v = (m, s) => w(m, B(s));
|
|
13
|
+
import { defineComponent as S, mergeDefaults as I, reactive as N, createBlock as R, openBlock as T, unref as e, withCtx as o, createVNode as l, createElementVNode as p, toDisplayString as u, createTextVNode as h, normalizeClass as j } from "vue";
|
|
14
|
+
import { u as O, d as A } from "./useCommonBCMuQZUh.js";
|
|
15
|
+
import { ElPopover as L, ElCard as q, ElForm as G, ElRow as H, ElCol as f, ElFormItem as c, ElSlider as _, ElButton as U, ElIcon as J } from "element-plus";
|
|
16
|
+
import K from "./processBAx9XRyY.js";
|
|
17
|
+
import { D as b, _ as M } from "./indexCbr7K6Yq.js";
|
|
18
|
+
const Q = { class: "margin-l-4" }, W = { class: "margin-l-4" }, X = { class: "margin-l-4" }, Y = { class: "margin-l-4" }, Z = { class: "margin-l-4" }, $ = { class: "margin-l-4" }, ee = { class: "margin-l-4" }, le = { class: "flex justify-content-end" }, ae = { class: "hzzt-kfb-toolbox__icon" }, oe = /* @__PURE__ */ S({
|
|
19
|
+
name: "ToolProcess",
|
|
17
20
|
__name: "process",
|
|
18
|
-
props: /* @__PURE__ */
|
|
21
|
+
props: /* @__PURE__ */ I({
|
|
19
22
|
process: {},
|
|
20
23
|
size: {},
|
|
21
24
|
text: {},
|
|
@@ -23,54 +26,54 @@ const Q = { class: "margin-l-4" }, W = { class: "margin-l-4" }, X = { class: "ma
|
|
|
23
26
|
component: {},
|
|
24
27
|
isPrevent: { type: Boolean },
|
|
25
28
|
callback: { type: Function }
|
|
26
|
-
},
|
|
29
|
+
}, v(g({}, A), {
|
|
27
30
|
process: () => g({}, b)
|
|
28
31
|
})),
|
|
29
32
|
emits: ["tool"],
|
|
30
|
-
setup(
|
|
31
|
-
const
|
|
32
|
-
function
|
|
33
|
+
setup(m, { emit: s }) {
|
|
34
|
+
const d = m, V = s, { t: r, textClass: k } = O(), a = N(g(g({}, b), d.process));
|
|
35
|
+
function i() {
|
|
33
36
|
V("tool", "process", a);
|
|
34
37
|
}
|
|
35
|
-
function
|
|
36
|
-
Object.assign(a, b),
|
|
38
|
+
function z() {
|
|
39
|
+
Object.assign(a, b), i();
|
|
37
40
|
}
|
|
38
|
-
function
|
|
41
|
+
function P() {
|
|
39
42
|
V("tool", "save_process", a);
|
|
40
43
|
}
|
|
41
|
-
return (x, t) => (
|
|
44
|
+
return (x, t) => (T(), R(e(L), {
|
|
42
45
|
"popper-class": "el-popover-padding-0",
|
|
43
46
|
placement: "bottom",
|
|
44
47
|
width: "400px",
|
|
45
48
|
trigger: "click"
|
|
46
49
|
}, {
|
|
47
50
|
reference: o(() => [
|
|
48
|
-
|
|
49
|
-
l(e(
|
|
51
|
+
p("div", ae, [
|
|
52
|
+
l(e(J), { size: x.size }, {
|
|
50
53
|
default: o(() => [
|
|
51
|
-
l(
|
|
54
|
+
l(K)
|
|
52
55
|
]),
|
|
53
56
|
_: 1
|
|
54
57
|
}, 8, ["size"]),
|
|
55
|
-
|
|
56
|
-
class:
|
|
57
|
-
},
|
|
58
|
+
p("div", {
|
|
59
|
+
class: j(e(k))
|
|
60
|
+
}, u(e(r)(x.text || "图像处理")), 3)
|
|
58
61
|
])
|
|
59
62
|
]),
|
|
60
63
|
default: o(() => [
|
|
61
|
-
l(e(
|
|
64
|
+
l(e(q), {
|
|
62
65
|
shadow: "never",
|
|
63
|
-
header: e(
|
|
66
|
+
header: e(r)("图像处理")
|
|
64
67
|
}, {
|
|
65
68
|
default: o(() => [
|
|
66
|
-
l(e(
|
|
69
|
+
l(e(G), null, {
|
|
67
70
|
default: o(() => [
|
|
68
|
-
l(e(
|
|
71
|
+
l(e(H), null, {
|
|
69
72
|
default: o(() => [
|
|
70
73
|
l(e(f), { span: 24 }, {
|
|
71
74
|
default: o(() => [
|
|
72
75
|
l(e(c), {
|
|
73
|
-
label: e(
|
|
76
|
+
label: e(r)("红通道")
|
|
74
77
|
}, {
|
|
75
78
|
default: o(() => [
|
|
76
79
|
l(e(_), {
|
|
@@ -80,9 +83,9 @@ const Q = { class: "margin-l-4" }, W = { class: "margin-l-4" }, X = { class: "ma
|
|
|
80
83
|
step: 0.1,
|
|
81
84
|
min: -1,
|
|
82
85
|
max: 1,
|
|
83
|
-
onChange:
|
|
86
|
+
onChange: i
|
|
84
87
|
}, null, 8, ["modelValue"]),
|
|
85
|
-
|
|
88
|
+
p("span", Q, u(a.r * 100) + "%", 1)
|
|
86
89
|
]),
|
|
87
90
|
_: 1
|
|
88
91
|
}, 8, ["label"])
|
|
@@ -92,7 +95,7 @@ const Q = { class: "margin-l-4" }, W = { class: "margin-l-4" }, X = { class: "ma
|
|
|
92
95
|
l(e(f), { span: 24 }, {
|
|
93
96
|
default: o(() => [
|
|
94
97
|
l(e(c), {
|
|
95
|
-
label: e(
|
|
98
|
+
label: e(r)("绿通道")
|
|
96
99
|
}, {
|
|
97
100
|
default: o(() => [
|
|
98
101
|
l(e(_), {
|
|
@@ -102,9 +105,9 @@ const Q = { class: "margin-l-4" }, W = { class: "margin-l-4" }, X = { class: "ma
|
|
|
102
105
|
step: 0.1,
|
|
103
106
|
min: -1,
|
|
104
107
|
max: 1,
|
|
105
|
-
onChange:
|
|
108
|
+
onChange: i
|
|
106
109
|
}, null, 8, ["modelValue"]),
|
|
107
|
-
|
|
110
|
+
p("span", W, u(a.g * 100) + "%", 1)
|
|
108
111
|
]),
|
|
109
112
|
_: 1
|
|
110
113
|
}, 8, ["label"])
|
|
@@ -114,7 +117,7 @@ const Q = { class: "margin-l-4" }, W = { class: "margin-l-4" }, X = { class: "ma
|
|
|
114
117
|
l(e(f), { span: 24 }, {
|
|
115
118
|
default: o(() => [
|
|
116
119
|
l(e(c), {
|
|
117
|
-
label: e(
|
|
120
|
+
label: e(r)("蓝通道")
|
|
118
121
|
}, {
|
|
119
122
|
default: o(() => [
|
|
120
123
|
l(e(_), {
|
|
@@ -124,9 +127,9 @@ const Q = { class: "margin-l-4" }, W = { class: "margin-l-4" }, X = { class: "ma
|
|
|
124
127
|
step: 0.1,
|
|
125
128
|
min: -1,
|
|
126
129
|
max: 1,
|
|
127
|
-
onChange:
|
|
130
|
+
onChange: i
|
|
128
131
|
}, null, 8, ["modelValue"]),
|
|
129
|
-
|
|
132
|
+
p("span", X, u(a.b * 100) + "%", 1)
|
|
130
133
|
]),
|
|
131
134
|
_: 1
|
|
132
135
|
}, 8, ["label"])
|
|
@@ -136,7 +139,7 @@ const Q = { class: "margin-l-4" }, W = { class: "margin-l-4" }, X = { class: "ma
|
|
|
136
139
|
l(e(f), { span: 24 }, {
|
|
137
140
|
default: o(() => [
|
|
138
141
|
l(e(c), {
|
|
139
|
-
label: e(
|
|
142
|
+
label: e(r)("gamma值")
|
|
140
143
|
}, {
|
|
141
144
|
default: o(() => [
|
|
142
145
|
l(e(_), {
|
|
@@ -146,9 +149,9 @@ const Q = { class: "margin-l-4" }, W = { class: "margin-l-4" }, X = { class: "ma
|
|
|
146
149
|
step: 0.01,
|
|
147
150
|
min: -0.05,
|
|
148
151
|
max: 2,
|
|
149
|
-
onChange:
|
|
152
|
+
onChange: i
|
|
150
153
|
}, null, 8, ["modelValue"]),
|
|
151
|
-
|
|
154
|
+
p("span", Y, u(a.ga), 1)
|
|
152
155
|
]),
|
|
153
156
|
_: 1
|
|
154
157
|
}, 8, ["label"])
|
|
@@ -158,7 +161,7 @@ const Q = { class: "margin-l-4" }, W = { class: "margin-l-4" }, X = { class: "ma
|
|
|
158
161
|
l(e(f), { span: 24 }, {
|
|
159
162
|
default: o(() => [
|
|
160
163
|
l(e(c), {
|
|
161
|
-
label: e(
|
|
164
|
+
label: e(r)("对比度")
|
|
162
165
|
}, {
|
|
163
166
|
default: o(() => [
|
|
164
167
|
l(e(_), {
|
|
@@ -168,9 +171,9 @@ const Q = { class: "margin-l-4" }, W = { class: "margin-l-4" }, X = { class: "ma
|
|
|
168
171
|
step: 0.1,
|
|
169
172
|
min: -1,
|
|
170
173
|
max: 1,
|
|
171
|
-
onChange:
|
|
174
|
+
onChange: i
|
|
172
175
|
}, null, 8, ["modelValue"]),
|
|
173
|
-
|
|
176
|
+
p("span", Z, u(a.c * 100) + "%", 1)
|
|
174
177
|
]),
|
|
175
178
|
_: 1
|
|
176
179
|
}, 8, ["label"])
|
|
@@ -180,7 +183,7 @@ const Q = { class: "margin-l-4" }, W = { class: "margin-l-4" }, X = { class: "ma
|
|
|
180
183
|
l(e(f), { span: 24 }, {
|
|
181
184
|
default: o(() => [
|
|
182
185
|
l(e(c), {
|
|
183
|
-
label: e(
|
|
186
|
+
label: e(r)("饱和度")
|
|
184
187
|
}, {
|
|
185
188
|
default: o(() => [
|
|
186
189
|
l(e(_), {
|
|
@@ -190,9 +193,9 @@ const Q = { class: "margin-l-4" }, W = { class: "margin-l-4" }, X = { class: "ma
|
|
|
190
193
|
step: 0.1,
|
|
191
194
|
min: -1,
|
|
192
195
|
max: 1,
|
|
193
|
-
onChange:
|
|
196
|
+
onChange: i
|
|
194
197
|
}, null, 8, ["modelValue"]),
|
|
195
|
-
|
|
198
|
+
p("span", $, u(a.s * 100) + "%", 1)
|
|
196
199
|
]),
|
|
197
200
|
_: 1
|
|
198
201
|
}, 8, ["label"])
|
|
@@ -202,7 +205,7 @@ const Q = { class: "margin-l-4" }, W = { class: "margin-l-4" }, X = { class: "ma
|
|
|
202
205
|
l(e(f), { span: 24 }, {
|
|
203
206
|
default: o(() => [
|
|
204
207
|
l(e(c), {
|
|
205
|
-
label: e(
|
|
208
|
+
label: e(r)("亮度")
|
|
206
209
|
}, {
|
|
207
210
|
default: o(() => [
|
|
208
211
|
l(e(_), {
|
|
@@ -212,9 +215,9 @@ const Q = { class: "margin-l-4" }, W = { class: "margin-l-4" }, X = { class: "ma
|
|
|
212
215
|
step: 0.1,
|
|
213
216
|
min: -1,
|
|
214
217
|
max: 1,
|
|
215
|
-
onChange:
|
|
218
|
+
onChange: i
|
|
216
219
|
}, null, 8, ["modelValue"]),
|
|
217
|
-
|
|
220
|
+
p("span", ee, u(a.l * 100) + "%", 1)
|
|
218
221
|
]),
|
|
219
222
|
_: 1
|
|
220
223
|
}, 8, ["label"])
|
|
@@ -227,19 +230,19 @@ const Q = { class: "margin-l-4" }, W = { class: "margin-l-4" }, X = { class: "ma
|
|
|
227
230
|
]),
|
|
228
231
|
_: 1
|
|
229
232
|
}),
|
|
230
|
-
|
|
231
|
-
l(e(
|
|
233
|
+
p("div", le, [
|
|
234
|
+
l(e(U), { onClick: z }, {
|
|
232
235
|
default: o(() => [
|
|
233
|
-
|
|
236
|
+
h(u(e(r)("重置")), 1)
|
|
234
237
|
]),
|
|
235
238
|
_: 1
|
|
236
239
|
}),
|
|
237
|
-
l(e(
|
|
240
|
+
l(e(U), {
|
|
238
241
|
type: "primary",
|
|
239
|
-
onClick:
|
|
242
|
+
onClick: P
|
|
240
243
|
}, {
|
|
241
244
|
default: o(() => [
|
|
242
|
-
|
|
245
|
+
h(u(e(r)("保存")), 1)
|
|
243
246
|
]),
|
|
244
247
|
_: 1
|
|
245
248
|
})
|
|
@@ -251,7 +254,7 @@ const Q = { class: "margin-l-4" }, W = { class: "margin-l-4" }, X = { class: "ma
|
|
|
251
254
|
_: 1
|
|
252
255
|
}));
|
|
253
256
|
}
|
|
254
|
-
})
|
|
257
|
+
}), pe = /* @__PURE__ */ M(oe, [["__scopeId", "data-v-bdb018f5"]]);
|
|
255
258
|
export {
|
|
256
259
|
pe as default
|
|
257
260
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),o=require("./
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),o=require("./indexMzBpWXyM.js"),n={},r={viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"};function c(i,t){return e.openBlock(),e.createElementBlock("svg",r,t[0]||(t[0]=[e.createElementVNode("g",{id:"24*24/旋转"},[e.createElementVNode("path",{id:"Vector",d:"M10.875 1.5H15.375C18.0674 1.5 20.25 3.68262 20.25 6.375V9H22.3052C22.4723 9 22.5558 9.20203 22.4377 9.32016L18.671 13.0868C18.5618 13.196 18.375 13.1184 18.375 12.964V6.375C18.375 4.71816 17.0318 3.375 15.375 3.375H10.875C10.6679 3.375 10.5 3.20712 10.5 3V1.875C10.5 1.66788 10.6679 1.5 10.875 1.5ZM1.875 20.25H15.375C15.5822 20.25 15.75 20.0822 15.75 19.875V6.375C15.75 6.16781 15.5822 6 15.375 6H1.875C1.66781 6 1.5 6.16781 1.5 6.375V19.875C1.5 20.0822 1.66781 20.25 1.875 20.25Z"})],-1)]))}const s=o._export_sfc(n,[["render",c]]);exports.default=s;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),x=require("kfb-view"),_=require("./useCommonDf_LQLq6.js"),s=require("element-plus"),V=require("./rotateANr_UwKh.js"),N=require("./arrowqYc4Vwqs.js"),E=require("./indexMzBpWXyM.js"),k={class:"flex align-items-center"},C={class:"flex column align-items-center flex-1"},w={class:"flex justify-content-center align-items-center"},h={class:"hzzt-kfb-toolbox-rotate__container"},y={class:"hzzt-kfb-toolbox-rotate__angle"},P={class:"hzzt-kfb-toolbox__icon"},q=e.defineComponent({name:"ToolRotate",__name:"rotate",props:e.mergeDefaults({size:{},text:{},name:{},component:{},isPrevent:{type:Boolean},callback:{type:Function}},_.defaultProps),setup($){var f;const{t:g,textClass:b}=_.useCommon(),n=e.inject("kfbViewRef"),i=e.ref(!1),r=e.ref(((f=n==null?void 0:n.value)==null?void 0:f.degrees)||0);e.watch(()=>{var o;return(o=n==null?void 0:n.value)==null?void 0:o.degrees},o=>{r.value=o});function a(o){var t;r.value=parseFloat(o.toFixed(2)),(t=n==null?void 0:n.value)!=null&&t.kfbView&&n.value.kfbView.viewer.viewport.setRotation(r.value)}function d(o){const t=document.querySelector(".hzzt-kfb-toolbox-rotate__container");if(!t)return;const l=t.getBoundingClientRect(),c={x:32,y:32},v={x:o.clientX-l.left,y:o.clientY-l.top};if(x.isPointInEllipse(v,c,32,32)){const p=x.getAngle(c,{x:c.x,y:0},v);if(isNaN(p/Math.PI*180))return;let u=parseFloat((p/Math.PI*180).toFixed(2));u<0&&(u+=360),i.value=!0,a(u)}}function z(o){i.value&&d(o)}function m(){i.value=!1}return(o,t)=>(e.openBlock(),e.createBlock(e.unref(s.ElPopover),{placement:"bottom",width:"260px",trigger:"click","popper-class":"el-popover-padding-0"},{reference:e.withCtx(()=>[e.createElementVNode("div",P,[e.createVNode(e.unref(s.ElIcon),{size:o.size},{default:e.withCtx(()=>[e.createVNode(V.default)]),_:1},8,["size"]),e.createElementVNode("div",{class:e.normalizeClass(e.unref(b))},e.toDisplayString(e.unref(g)(o.text||"旋转")),3)])]),default:e.withCtx(()=>[e.createVNode(e.unref(s.ElCard),{shadow:"never","body-style":{padding:"12px 12px 12px 0"}},{default:e.withCtx(()=>[e.createElementVNode("div",k,[e.createElementVNode("div",C,[e.createElementVNode("div",{class:"hzzt-kfb-toolbox-rotate__btn margin-b-1",onClick:t[0]||(t[0]=l=>a(0))}),e.createElementVNode("div",w,[e.createElementVNode("div",{class:"hzzt-kfb-toolbox-rotate__btn margin-r-1",onClick:t[1]||(t[1]=l=>a(270))}),e.createElementVNode("div",h,[e.createElementVNode("div",{class:"hzzt-kfb-toolbox-rotate__img",style:e.normalizeStyle({transform:`rotate(${r.value}deg)`}),onMousedown:d,onMousemove:z,onMouseup:m,onMouseleave:m},[e.createVNode(N.default)],36)]),e.createElementVNode("div",{class:"hzzt-kfb-toolbox-rotate__btn margin-l-1",onClick:t[2]||(t[2]=l=>a(90))})]),e.createElementVNode("div",{class:"hzzt-kfb-toolbox-rotate__btn margin-t-1",onClick:t[3]||(t[3]=l=>a(180))})]),e.createElementVNode("div",y,[e.createVNode(e.unref(s.ElInputNumber),{modelValue:r.value,"onUpdate:modelValue":t[4]||(t[4]=l=>r.value=l),min:0,max:360,step:5,onChange:t[5]||(t[5]=l=>a(r.value))},null,8,["modelValue"])])])]),_:1})]),_:1}))}}),M=E._export_sfc(q,[["__scopeId","data-v-0141cae6"]]);exports.default=M;
|
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
import { defineComponent as y, mergeDefaults as C, inject as h, ref as g, watch as w, createBlock as V, openBlock as P, unref as i, withCtx as c, createVNode as r, createElementVNode as o, normalizeStyle as E, normalizeClass as I, toDisplayString as M } from "vue";
|
|
2
|
+
import { isPointInEllipse as $, getAngle as F } from "kfb-view";
|
|
3
|
+
import { u as N, d as B } from "./useCommonBCMuQZUh.js";
|
|
4
|
+
import { ElPopover as D, ElCard as R, ElInputNumber as S, ElIcon as j } from "element-plus";
|
|
5
|
+
import A from "./rotateBseHg5iL.js";
|
|
6
|
+
import q from "./arrowBciNhKeC.js";
|
|
7
|
+
import { _ as T } from "./indexCbr7K6Yq.js";
|
|
8
|
+
const U = { class: "flex align-items-center" }, X = { class: "flex column align-items-center flex-1" }, Y = { class: "flex justify-content-center align-items-center" }, G = { class: "hzzt-kfb-toolbox-rotate__container" }, H = { class: "hzzt-kfb-toolbox-rotate__angle" }, J = { class: "hzzt-kfb-toolbox__icon" }, K = /* @__PURE__ */ y({
|
|
9
|
+
name: "ToolRotate",
|
|
10
|
+
__name: "rotate",
|
|
11
|
+
props: /* @__PURE__ */ C({
|
|
12
|
+
size: {},
|
|
13
|
+
text: {},
|
|
14
|
+
name: {},
|
|
15
|
+
component: {},
|
|
16
|
+
isPrevent: { type: Boolean },
|
|
17
|
+
callback: { type: Function }
|
|
18
|
+
}, B),
|
|
19
|
+
setup(L) {
|
|
20
|
+
var v;
|
|
21
|
+
const { t: b, textClass: z } = N(), n = h("kfbViewRef"), u = g(!1), s = g(((v = n == null ? void 0 : n.value) == null ? void 0 : v.degrees) || 0);
|
|
22
|
+
w(() => {
|
|
23
|
+
var e;
|
|
24
|
+
return (e = n == null ? void 0 : n.value) == null ? void 0 : e.degrees;
|
|
25
|
+
}, (e) => {
|
|
26
|
+
s.value = e;
|
|
27
|
+
});
|
|
28
|
+
function a(e) {
|
|
29
|
+
var t;
|
|
30
|
+
s.value = parseFloat(e.toFixed(2)), (t = n == null ? void 0 : n.value) != null && t.kfbView && n.value.kfbView.viewer.viewport.setRotation(s.value);
|
|
31
|
+
}
|
|
32
|
+
function p(e) {
|
|
33
|
+
const t = document.querySelector(".hzzt-kfb-toolbox-rotate__container");
|
|
34
|
+
if (!t) return;
|
|
35
|
+
const l = t.getBoundingClientRect(), d = { x: 32, y: 32 }, _ = {
|
|
36
|
+
x: e.clientX - l.left,
|
|
37
|
+
y: e.clientY - l.top
|
|
38
|
+
};
|
|
39
|
+
if ($(_, d, 32, 32)) {
|
|
40
|
+
const x = F(d, { x: d.x, y: 0 }, _);
|
|
41
|
+
if (isNaN(x / Math.PI * 180)) return;
|
|
42
|
+
let m = parseFloat((x / Math.PI * 180).toFixed(2));
|
|
43
|
+
m < 0 && (m += 360), u.value = !0, a(m);
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
function k(e) {
|
|
47
|
+
u.value && p(e);
|
|
48
|
+
}
|
|
49
|
+
function f() {
|
|
50
|
+
u.value = !1;
|
|
51
|
+
}
|
|
52
|
+
return (e, t) => (P(), V(i(D), {
|
|
53
|
+
placement: "bottom",
|
|
54
|
+
width: "260px",
|
|
55
|
+
trigger: "click",
|
|
56
|
+
"popper-class": "el-popover-padding-0"
|
|
57
|
+
}, {
|
|
58
|
+
reference: c(() => [
|
|
59
|
+
o("div", J, [
|
|
60
|
+
r(i(j), { size: e.size }, {
|
|
61
|
+
default: c(() => [
|
|
62
|
+
r(A)
|
|
63
|
+
]),
|
|
64
|
+
_: 1
|
|
65
|
+
}, 8, ["size"]),
|
|
66
|
+
o("div", {
|
|
67
|
+
class: I(i(z))
|
|
68
|
+
}, M(i(b)(e.text || "旋转")), 3)
|
|
69
|
+
])
|
|
70
|
+
]),
|
|
71
|
+
default: c(() => [
|
|
72
|
+
r(i(R), {
|
|
73
|
+
shadow: "never",
|
|
74
|
+
"body-style": { padding: "12px 12px 12px 0" }
|
|
75
|
+
}, {
|
|
76
|
+
default: c(() => [
|
|
77
|
+
o("div", U, [
|
|
78
|
+
o("div", X, [
|
|
79
|
+
o("div", {
|
|
80
|
+
class: "hzzt-kfb-toolbox-rotate__btn margin-b-1",
|
|
81
|
+
onClick: t[0] || (t[0] = (l) => a(0))
|
|
82
|
+
}),
|
|
83
|
+
o("div", Y, [
|
|
84
|
+
o("div", {
|
|
85
|
+
class: "hzzt-kfb-toolbox-rotate__btn margin-r-1",
|
|
86
|
+
onClick: t[1] || (t[1] = (l) => a(270))
|
|
87
|
+
}),
|
|
88
|
+
o("div", G, [
|
|
89
|
+
o("div", {
|
|
90
|
+
class: "hzzt-kfb-toolbox-rotate__img",
|
|
91
|
+
style: E({ transform: `rotate(${s.value}deg)` }),
|
|
92
|
+
onMousedown: p,
|
|
93
|
+
onMousemove: k,
|
|
94
|
+
onMouseup: f,
|
|
95
|
+
onMouseleave: f
|
|
96
|
+
}, [
|
|
97
|
+
r(q)
|
|
98
|
+
], 36)
|
|
99
|
+
]),
|
|
100
|
+
o("div", {
|
|
101
|
+
class: "hzzt-kfb-toolbox-rotate__btn margin-l-1",
|
|
102
|
+
onClick: t[2] || (t[2] = (l) => a(90))
|
|
103
|
+
})
|
|
104
|
+
]),
|
|
105
|
+
o("div", {
|
|
106
|
+
class: "hzzt-kfb-toolbox-rotate__btn margin-t-1",
|
|
107
|
+
onClick: t[3] || (t[3] = (l) => a(180))
|
|
108
|
+
})
|
|
109
|
+
]),
|
|
110
|
+
o("div", H, [
|
|
111
|
+
r(i(S), {
|
|
112
|
+
modelValue: s.value,
|
|
113
|
+
"onUpdate:modelValue": t[4] || (t[4] = (l) => s.value = l),
|
|
114
|
+
min: 0,
|
|
115
|
+
max: 360,
|
|
116
|
+
step: 5,
|
|
117
|
+
onChange: t[5] || (t[5] = (l) => a(s.value))
|
|
118
|
+
}, null, 8, ["modelValue"])
|
|
119
|
+
])
|
|
120
|
+
])
|
|
121
|
+
]),
|
|
122
|
+
_: 1
|
|
123
|
+
})
|
|
124
|
+
]),
|
|
125
|
+
_: 1
|
|
126
|
+
}));
|
|
127
|
+
}
|
|
128
|
+
}), nt = /* @__PURE__ */ T(K, [["__scopeId", "data-v-0141cae6"]]);
|
|
129
|
+
export {
|
|
130
|
+
nt as default
|
|
131
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),d=require("./useCommonDf_LQLq6.js"),r=require("element-plus"),m=require("./settingN7OnPn3C.js"),v=require("./indexMzBpWXyM.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;
|
|
@@ -0,0 +1,147 @@
|
|
|
1
|
+
import { defineComponent as x, mergeDefaults as f, ref as b, createBlock as V, openBlock as c, unref as e, withCtx as r, createVNode as i, createElementVNode as m, normalizeClass as C, toDisplayString as z } from "vue";
|
|
2
|
+
import { u as E, d as w } from "./useCommonBCMuQZUh.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 "./settingCDSCrpW7.js";
|
|
5
|
+
import { _ as B } from "./indexCbr7K6Yq.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
|
+
};
|