hzzt-kfb-slide 0.0.1 → 0.0.3
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/annotateBNqnmoMI.js +1 -0
- package/dist/components/{annotateDDGAeaL1.js → annotateCdbWkykl.js} +1 -1
- package/dist/components/{annotateCVLkqudX.js → annotateCtCMs-ef.js} +1 -1
- package/dist/components/{annotateCYZEG4by.js → annotateD0egGTin.js} +46 -46
- package/dist/components/{arrow6aTSOsV2.js → arrowC9aIuvQe.js} +1 -1
- package/dist/components/{arrowDOQZx-5i.js → arrowDG9uJA9k.js} +1 -1
- package/dist/components/arrowDownC6bqk-lY.js +1 -0
- package/dist/components/arrowDownGmouwhLr.js +18 -0
- package/dist/components/arrowLeftBOXSO3ql.js +1 -0
- package/dist/components/arrowLeftDtz6Sjds.js +18 -0
- package/dist/components/arrowRightDSH6IzNE.js +19 -0
- package/dist/components/arrowRightHppOESBK.js +1 -0
- package/dist/components/arrowUpCHU6h7kZ.js +18 -0
- package/dist/components/arrowUpCuroteRQ.js +1 -0
- package/dist/components/channelB8E2yoQ7.js +35 -0
- package/dist/components/channelNB37p_zP.js +1 -0
- package/dist/components/{checkDT-yvng0.js → checkLEGWCAxP.js} +1 -1
- package/dist/components/{checkCazbS-c6.js → checkseAngK1P.js} +1 -1
- package/dist/components/{configB5XxbCMh.js → configCCGG0UB4.js} +3 -3
- package/dist/components/{configOyvUhGVP.js → configDLPuCFH1.js} +1 -1
- package/dist/components/customBbYfn41m.js +1 -0
- package/dist/components/customDo3qaJ1U.js +39 -0
- package/dist/components/deleteD2WtxFlL.js +1 -0
- package/dist/components/deleteMXhIkgfB.js +25 -0
- package/dist/components/dotBgHmd0mz.js +1 -0
- package/dist/components/{dot1kt2iBMi.js → dotDJRbd0BV.js} +1 -1
- package/dist/components/{dotBzY_NqlA.js → dotEN0Eh5Op.js} +1 -1
- package/dist/components/{dotDKLgWFRD.js → dotg0NvS9Ck.js} +29 -29
- package/dist/components/{downloadCshCNWAW.js → downloadCaAoF5Or.js} +1 -1
- package/dist/components/{downloadBWFjb3Fj.js → downloadCaJyQTwU.js} +1 -1
- package/dist/components/{downloadDmK-mUW4.js → downloadD_Bmec44.js} +19 -19
- package/dist/components/downloadGX-_YQez.js +1 -0
- package/dist/components/{flipDUjW55Vh.js → flipBkZOXGJN.js} +5 -5
- package/dist/components/{flipDA2I3h_e.js → flipCC_nhFBO.js} +1 -1
- package/dist/components/{fullscreenDUzPX17n.js → fullscreenC380_EU3.js} +1 -1
- package/dist/components/fullscreenDUzxAfXo.js +1 -0
- package/dist/components/{fullscreenQqpG_OS1.js → fullscreenDjH9QoF2.js} +15 -16
- package/dist/components/{fullscreenDyMv4lzQ.js → fullscreenEVnYx--1.js} +1 -1
- package/dist/components/indexD_phlegk.js +30 -0
- package/dist/components/indexDdIv5EKS.js +11179 -0
- package/dist/components/{infoBJj_CFzD.js → infoBFIavOPB.js} +3 -3
- package/dist/components/{infoB_-hN7Fr.js → infoCp5QUeZm.js} +1 -1
- package/dist/components/levelC1Ud4D0B.js +35 -0
- package/dist/components/levelZfTb2sPf.js +1 -0
- package/dist/components/microscopeBeixYxYI.js +1 -0
- package/dist/components/{microscopeQHJ_dU_L.js → microscopeCmqOpPc4.js} +13 -13
- package/dist/components/{microscopeBsAciWA9.js → microscopeDZWMA8RW.js} +1 -1
- package/dist/components/{microscopeCJwTonZV.js → microscopeXeEtWd1W.js} +1 -1
- package/dist/components/moveB1DiH4PI.js +74 -0
- package/dist/components/{moveDxSu5JyS.js → moveBea2jbYH.js} +1 -1
- package/dist/components/moveBzePKtM6.js +1 -0
- package/dist/components/{moveUEjGdGB8.js → moveDwsVnmQi.js} +1 -1
- package/dist/components/{nextUojG6t-0.js → nextC52pb5sE.js} +1 -1
- package/dist/components/{nextXkdsQP9z.js → nextDYmCUlzZ.js} +3 -3
- package/dist/components/{prevhOkmcBJ2.js → prevT7x-zgKu.js} +1 -1
- package/dist/components/{prevBjMmvSpY.js → prevv0XqJ_iF.js} +3 -3
- package/dist/components/{processCaqwpK4F.js → process0WK-TxPd.js} +24 -24
- package/dist/components/{processRSLucFP3.js → processBiTw6vPV.js} +1 -1
- package/dist/components/processCmTYHlH3.js +1 -0
- package/dist/components/{processCigaxNDK.js → processDW13CjX-.js} +1 -1
- package/dist/components/rotateBViLTXxd.js +1 -0
- package/dist/components/{rotateBgPHUO92.js → rotateCbkJvPFi.js} +1 -1
- package/dist/components/{rotateCIEP8gXK.js → rotateDlk_Qk4Y.js} +1 -1
- package/dist/components/rotateLcm0V_kN.js +130 -0
- package/dist/components/setting3RU3dG2s.js +1 -0
- package/dist/components/settingCZkmIJSr.js +147 -0
- package/dist/components/{settingDEgu1o7Z.js → settingDVPXWTEf.js} +1 -1
- package/dist/components/{settingBwRgwtCV.js → settingDyHmqPh3.js} +1 -1
- package/dist/components/{tailor0e5PmiKv.js → tailorBgKlGdZj.js} +1 -1
- package/dist/components/{tailorA3InL_3L.js → tailorDHg9ZsXw.js} +1 -1
- package/dist/components/useCommonB2St3W5r.js +1 -0
- package/dist/components/useCommonCwKio4Jh.js +22 -0
- package/dist/components/{zoomD7pWi-kc.js → zoomBKsf5GkB.js} +1 -1
- package/dist/components/{zoomCOaNFEUh.js → zoomCnS6EmhN.js} +2 -2
- package/dist/components/zoomIn73PRBFpz.js +1 -0
- package/dist/components/zoomInDWX2Osc6.js +30 -0
- package/dist/components/zoomOutD8Mlbb8q.js +1 -0
- package/dist/components/zoomOutgHFV2sxE.js +32 -0
- package/dist/index.cjs.js +1 -1
- package/dist/index.css +1 -1
- package/dist/index.es.js +3 -3
- package/package.json +9 -7
- package/types/components/KfbIcon.vue.d.ts +12 -0
- package/types/components/KfbImage.vue.d.ts +47 -0
- package/types/components/KfbSlideList.vue.d.ts +24 -0
- package/types/components/KfbToolConfig.vue.d.ts +13 -0
- package/types/components/KfbToolbox.vue.d.ts +26 -0
- package/types/components/KfbView/KfbChannel.vue.d.ts +16 -0
- package/types/components/KfbView/KfbKeyword.vue.d.ts +2 -0
- package/types/components/KfbView/KfbLabel.vue.d.ts +13 -0
- package/types/components/KfbView/KfbLevel.vue.d.ts +14 -0
- package/types/components/KfbView/KfbMenu.vue.d.ts +10 -0
- package/types/components/KfbView/KfbMicroscope.vue.d.ts +14 -0
- package/types/components/KfbView/index.d.ts +237 -0
- package/types/components/KfbView/index.vue.d.ts +271 -0
- package/types/components/KfbView/useDot.d.ts +3 -0
- package/types/components/KfbView/useHotmap.d.ts +38 -0
- package/types/components/KfbView/useImageProcess.d.ts +15 -0
- package/types/components/KfbView/useLabel.d.ts +85 -0
- package/types/components/KfbView/useMove.d.ts +9 -0
- package/types/components/KfbView/usePointer.d.ts +12 -0
- package/types/components/KfbView/useSync.d.ts +5 -0
- package/types/components/KfbView/useTailor.d.ts +7 -0
- package/types/components/ai/list.vue.d.ts +13 -0
- package/types/components/ai/useAi.d.ts +87 -0
- package/types/components/icon/annotate.vue.d.ts +2 -0
- package/types/components/icon/arrow.vue.d.ts +2 -0
- package/types/components/icon/arrowDown.vue.d.ts +2 -0
- package/types/components/icon/arrowLeft.vue.d.ts +2 -0
- package/types/components/icon/arrowRight.vue.d.ts +2 -0
- package/types/components/icon/arrowUp.vue.d.ts +2 -0
- package/types/components/icon/channel.vue.d.ts +2 -0
- package/types/components/icon/check.vue.d.ts +2 -0
- package/types/components/icon/config.vue.d.ts +2 -0
- package/types/components/icon/delete.vue.d.ts +2 -0
- package/types/components/icon/dot.vue.d.ts +2 -0
- package/types/components/icon/download.vue.d.ts +2 -0
- package/types/components/icon/flip.vue.d.ts +2 -0
- package/types/components/icon/fullscreen.vue.d.ts +2 -0
- package/types/components/icon/index.d.ts +5 -0
- package/types/components/icon/info.vue.d.ts +2 -0
- package/types/components/icon/level.vue.d.ts +2 -0
- package/types/components/icon/list.vue.d.ts +2 -0
- package/types/components/icon/menu.vue.d.ts +2 -0
- package/types/components/icon/microscope.vue.d.ts +2 -0
- package/types/components/icon/move.vue.d.ts +2 -0
- package/types/components/icon/next.vue.d.ts +2 -0
- package/types/components/icon/prev.vue.d.ts +2 -0
- package/types/components/icon/process.vue.d.ts +2 -0
- package/types/components/icon/rotate.vue.d.ts +2 -0
- package/types/components/icon/setting.vue.d.ts +2 -0
- package/types/components/icon/tailor.vue.d.ts +2 -0
- package/types/components/icon/zoomIn.vue.d.ts +2 -0
- package/types/components/toolbox/annotate.vue.d.ts +10 -0
- package/types/components/toolbox/custom.vue.d.ts +20 -0
- package/types/components/toolbox/dot.vue.d.ts +10 -0
- package/types/components/toolbox/download.vue.d.ts +10 -0
- package/types/components/toolbox/fullscreen.vue.d.ts +10 -0
- package/types/components/toolbox/instances.d.ts +17 -0
- package/types/components/toolbox/microscope.vue.d.ts +15 -0
- package/types/components/toolbox/move.vue.d.ts +10 -0
- package/types/components/toolbox/process.vue.d.ts +12 -0
- package/types/components/toolbox/rotate.vue.d.ts +6 -0
- package/types/components/toolbox/setting.vue.d.ts +10 -0
- package/types/components/toolbox/useCommon.d.ts +9 -0
- package/types/components/toolbox/zoom.vue.d.ts +6 -0
- package/types/index.d.ts +911 -0
- package/types/index.vue.d.ts +53 -0
- package/types/instances.d.ts +70 -0
- package/types/plugins/i18n.d.ts +6 -0
- package/dist/components/annotateCX9GkmOg.js +0 -1
- package/dist/components/configB7FH_Li-.js +0 -1
- package/dist/components/configCPI2rG9d.js +0 -40
- package/dist/components/custom-mCr5M_c.js +0 -1
- package/dist/components/customc4LeZve5.js +0 -40
- package/dist/components/dotB1Nn2uO0.js +0 -1
- package/dist/components/download_UT5bsTk.js +0 -1
- package/dist/components/flipCbiBH_o3.js +0 -1
- package/dist/components/flipDUZT4wIY.js +0 -40
- package/dist/components/fullscreenD6c_uo6X.js +0 -1
- package/dist/components/indexDvexHnyj.js +0 -10651
- package/dist/components/indexNnjbVZ_m.js +0 -30
- package/dist/components/infoBNm69fP0.js +0 -41
- package/dist/components/infoDvOItrdO.js +0 -1
- package/dist/components/microscopeDQl6TocT.js +0 -1
- package/dist/components/moveBzYl-c4_.js +0 -1
- package/dist/components/moveCe8MSGn0.js +0 -74
- package/dist/components/nextCGxHdIok.js +0 -1
- package/dist/components/nextDeuoTRY7.js +0 -40
- package/dist/components/prevBrrsxCoK.js +0 -40
- package/dist/components/prevDCKFCMZw.js +0 -1
- package/dist/components/processCUjiU4DT.js +0 -1
- package/dist/components/rotateCt5rJEBm.js +0 -1
- package/dist/components/rotateWiDuyX22.js +0 -130
- package/dist/components/setting8L58q_d4.js +0 -134
- package/dist/components/settingCgwUdss3.js +0 -1
- package/dist/components/tailorBB_gVLzK.js +0 -40
- package/dist/components/tailorCeILe_eG.js +0 -1
- package/dist/components/useCommonDK4IjSxd.js +0 -17
- package/dist/components/useCommon_CFgwTZy.js +0 -1
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import { defineComponent as c, mergeDefaults as p, createElementBlock as f, openBlock as u, createVNode as t, createElementVNode as d, unref as o, withCtx as z, normalizeClass as _, toDisplayString as C } from "vue";
|
|
2
|
-
import { ElIcon as k } from "element-plus";
|
|
3
|
-
import x from "./infoBJj_CFzD.js";
|
|
4
|
-
import { d as h } from "./indexDvexHnyj.js";
|
|
5
|
-
import { u as b } from "./useCommonDK4IjSxd.js";
|
|
6
|
-
const I = /* @__PURE__ */ c({
|
|
7
|
-
name: "ToolInfo",
|
|
8
|
-
__name: "info",
|
|
9
|
-
props: /* @__PURE__ */ p({
|
|
10
|
-
size: {},
|
|
11
|
-
text: {},
|
|
12
|
-
name: {},
|
|
13
|
-
component: {},
|
|
14
|
-
isPrevent: { type: Boolean },
|
|
15
|
-
callback: { type: Function }
|
|
16
|
-
}, h),
|
|
17
|
-
emits: ["tool"],
|
|
18
|
-
setup(n, { emit: s }) {
|
|
19
|
-
const i = n, r = s, { t: a, textClass: l } = b(i);
|
|
20
|
-
function m() {
|
|
21
|
-
r("tool", "info");
|
|
22
|
-
}
|
|
23
|
-
return (e, v) => (u(), f("div", {
|
|
24
|
-
class: "hzzt-kfb-toolbox__icon",
|
|
25
|
-
onClick: m
|
|
26
|
-
}, [
|
|
27
|
-
t(o(k), { size: e.size }, {
|
|
28
|
-
default: z(() => [
|
|
29
|
-
t(x)
|
|
30
|
-
]),
|
|
31
|
-
_: 1
|
|
32
|
-
}, 8, ["size"]),
|
|
33
|
-
d("div", {
|
|
34
|
-
class: _(o(l))
|
|
35
|
-
}, C(o(a)(e.text || "信息")), 3)
|
|
36
|
-
]));
|
|
37
|
-
}
|
|
38
|
-
});
|
|
39
|
-
export {
|
|
40
|
-
I as default
|
|
41
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),a=require("element-plus"),u=require("./infoB_-hN7Fr.js"),m=require("./indexNnjbVZ_m.js"),f=require("./useCommon_CFgwTZy.js"),d=e.defineComponent({name:"ToolInfo",__name:"info",props:e.mergeDefaults({size:{},text:{},name:{},component:{},isPrevent:{type:Boolean},callback:{type:Function}},m.defaultProps),emits:["tool"],setup(t,{emit:n}){const s=t,i=n,{t:r,textClass:l}=f.useCommon(s);function c(){i("tool","info")}return(o,p)=>(e.openBlock(),e.createElementBlock("div",{class:"hzzt-kfb-toolbox__icon",onClick:c},[e.createVNode(e.unref(a.ElIcon),{size:o.size},{default:e.withCtx(()=>[e.createVNode(u.default)]),_:1},8,["size"]),e.createElementVNode("div",{class:e.normalizeClass(e.unref(l))},e.toDisplayString(e.unref(r)(o.text||"信息")),3)]))}});exports.default=d;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),v=require("./microscopeBsAciWA9.js"),n=require("element-plus"),d=require("./indexNnjbVZ_m.js"),V=require("./useCommon_CFgwTZy.js"),g={class:"flex align-items-center margin-t-2"},E={style:{"min-width":"120px"}},b={class:"flex align-items-center margin-t-2"},x={style:{"min-width":"120px"}},N={class:"flex align-items-center margin-t-2"},C={style:{"min-width":"120px"}},h=e.defineComponent({name:"ToolMicroscope",__name:"microscope",props:e.mergeDefaults({scope:{},size:{},text:{},name:{},component:{},isPrevent:{type:Boolean},callback:{type:Function}},{...d.defaultProps,scope:()=>({...d.DEFAULT_MICROSCOPE})}),emits:["tool"],setup(m,{emit:p}){const u=m,o=e.reactive({...d.DEFAULT_MICROSCOPE,...u.scope});e.watch(()=>u.scope,r=>{Object.assign(o,r)});const c=p,{t:i,textClass:f}=V.useCommon(u),s=e.ref(!1);function a(r,t){r==="visible"?(s.value=!s.value,c("tool","microscope",{name:r,value:s.value})):c("tool","microscope",{name:r,value:t})}return(r,t)=>(e.openBlock(),e.createBlock(e.unref(n.ElPopover),{visible:s.value,"popper-class":"el-popover-padding-0",placement:"bottom",width:"300px",trigger:"click"},{reference:e.withCtx(()=>[e.createElementVNode("div",{class:"hzzt-kfb-toolbox__icon",onClick:t[8]||(t[8]=l=>a("visible",s.value))},[e.createVNode(e.unref(n.ElIcon),{size:r.size},{default:e.withCtx(()=>[e.createVNode(v.default)]),_:1},8,["size"]),e.createElementVNode("div",{class:e.normalizeClass(e.unref(f))},e.toDisplayString(e.unref(i)(r.text||"镜下")),3)])]),default:e.withCtx(()=>[e.createVNode(e.unref(n.ElCard),{shadow:"never",header:e.unref(i)("镜下视野")},{default:e.withCtx(()=>[e.createElementVNode("div",null,[e.createVNode(e.unref(n.ElRadioGroup),{modelValue:o.shape,"onUpdate:modelValue":t[0]||(t[0]=l=>o.shape=l),onChange:t[1]||(t[1]=l=>a("change",o))},{default:e.withCtx(()=>[e.createVNode(e.unref(n.ElRadio),{value:"50%",label:e.unref(i)("圆形")},null,8,["label"]),e.createVNode(e.unref(n.ElRadio),{value:"0",label:e.unref(i)("矩形")},null,8,["label"])]),_:1},8,["modelValue"]),e.createElementVNode("div",g,[e.createElementVNode("p",E,e.toDisplayString(e.unref(i)("视野直径(mm)"))+": ",1),e.createVNode(e.unref(n.ElInputNumber),{class:"flex-1",modelValue:o.width,"onUpdate:modelValue":t[2]||(t[2]=l=>o.width=l),onInput:t[3]||(t[3]=l=>a("change",o))},null,8,["modelValue"])]),e.createElementVNode("div",b,[e.createElementVNode("p",x,e.toDisplayString(e.unref(i)("边框宽度"))+"(px): ",1),e.createVNode(e.unref(n.ElInputNumber),{class:"flex-1",modelValue:o.borderWidth,"onUpdate:modelValue":t[4]||(t[4]=l=>o.borderWidth=l),onInput:t[5]||(t[5]=l=>a("change",o))},null,8,["modelValue"])]),e.createElementVNode("div",N,[e.createElementVNode("p",C,e.toDisplayString(e.unref(i)("边框颜色"))+": ",1),e.createVNode(e.unref(n.ElColorPicker),{modelValue:o.color,"onUpdate:modelValue":t[6]||(t[6]=l=>o.color=l),onChange:t[7]||(t[7]=l=>a("change",o))},null,8,["modelValue"])])])]),_:1},8,["header"])]),_:1},8,["visible"]))}}),w=d._export_sfc(h,[["__scopeId","data-v-af2f9405"]]);exports.default=w;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),u=require("./indexNnjbVZ_m.js"),f=require("./useCommon_CFgwTZy.js"),b=require("./moveDxSu5JyS.js"),s=require("element-plus"),C={class:"margin-b-1"},g=e.defineComponent({name:"ToolMove",__name:"move",props:e.mergeDefaults({size:{},text:{},name:{},component:{},isPrevent:{type:Boolean},callback:{type:Function}},u.defaultProps),emits:["tool"],setup(m,{emit:d}){const v=m,c=d,{t:i,textClass:p}=f.useCommon(v),n=e.ref(!1),l=e.ref(1);function a(o,t){o==="visible"?n.value=!n.value:c("tool","move",{name:o,value:t})}return(o,t)=>(e.openBlock(),e.createBlock(e.unref(s.ElPopover),{visible:n.value,"popper-class":"el-popover-padding-0",placement:"bottom",width:"200px",trigger:"click"},{reference:e.withCtx(()=>[e.createElementVNode("div",{class:"hzzt-kfb-toolbox__icon",onClick:t[3]||(t[3]=r=>a("visible",n.value))},[e.createVNode(e.unref(s.ElIcon),{size:o.size},{default:e.withCtx(()=>[e.createVNode(b.default)]),_:1},8,["size"]),e.createElementVNode("div",{class:e.normalizeClass(e.unref(p))},e.toDisplayString(e.unref(i)(o.text||"快速移动")),3)])]),default:e.withCtx(()=>[e.createVNode(e.unref(s.ElCard),{shadow:"never"},{default:e.withCtx(()=>[e.createElementVNode("div",null,[e.createElementVNode("p",C,e.toDisplayString(e.unref(i)("图像移动倍率"))+":",1),e.createVNode(e.unref(s.ElInputNumber),{modelValue:l.value,"onUpdate:modelValue":t[0]||(t[0]=r=>l.value=r),step:.2,min:1,max:10,onChange:t[1]||(t[1]=r=>a("ratio",l.value)),onInput:t[2]||(t[2]=r=>a("ratio",l.value))},null,8,["modelValue"])])]),_:1})]),_:1},8,["visible"]))}}),x=u._export_sfc(g,[["__scopeId","data-v-6778505d"]]);exports.default=x;
|
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
import { defineComponent as g, mergeDefaults as x, ref as u, createBlock as _, openBlock as z, unref as o, withCtx as a, createVNode as i, createElementVNode as r, toDisplayString as v, normalizeClass as k } from "vue";
|
|
2
|
-
import { d as E, _ as V } from "./indexDvexHnyj.js";
|
|
3
|
-
import { u as I } from "./useCommonDK4IjSxd.js";
|
|
4
|
-
import w from "./moveUEjGdGB8.js";
|
|
5
|
-
import { ElPopover as B, ElCard as M, ElInputNumber as N, ElIcon as P } from "element-plus";
|
|
6
|
-
const $ = { class: "margin-b-1" }, y = /* @__PURE__ */ g({
|
|
7
|
-
name: "ToolMove",
|
|
8
|
-
__name: "move",
|
|
9
|
-
props: /* @__PURE__ */ x({
|
|
10
|
-
size: {},
|
|
11
|
-
text: {},
|
|
12
|
-
name: {},
|
|
13
|
-
component: {},
|
|
14
|
-
isPrevent: { type: Boolean },
|
|
15
|
-
callback: { type: Function }
|
|
16
|
-
}, E),
|
|
17
|
-
emits: ["tool"],
|
|
18
|
-
setup(d, { emit: f }) {
|
|
19
|
-
const c = d, b = f, { t: p, textClass: C } = I(c), l = u(!1), n = u(1);
|
|
20
|
-
function m(t, e) {
|
|
21
|
-
t === "visible" ? l.value = !l.value : b("tool", "move", {
|
|
22
|
-
name: t,
|
|
23
|
-
value: e
|
|
24
|
-
});
|
|
25
|
-
}
|
|
26
|
-
return (t, e) => (z(), _(o(B), {
|
|
27
|
-
visible: l.value,
|
|
28
|
-
"popper-class": "el-popover-padding-0",
|
|
29
|
-
placement: "bottom",
|
|
30
|
-
width: "200px",
|
|
31
|
-
trigger: "click"
|
|
32
|
-
}, {
|
|
33
|
-
reference: a(() => [
|
|
34
|
-
r("div", {
|
|
35
|
-
class: "hzzt-kfb-toolbox__icon",
|
|
36
|
-
onClick: e[3] || (e[3] = (s) => m("visible", l.value))
|
|
37
|
-
}, [
|
|
38
|
-
i(o(P), { size: t.size }, {
|
|
39
|
-
default: a(() => [
|
|
40
|
-
i(w)
|
|
41
|
-
]),
|
|
42
|
-
_: 1
|
|
43
|
-
}, 8, ["size"]),
|
|
44
|
-
r("div", {
|
|
45
|
-
class: k(o(C))
|
|
46
|
-
}, v(o(p)(t.text || "快速移动")), 3)
|
|
47
|
-
])
|
|
48
|
-
]),
|
|
49
|
-
default: a(() => [
|
|
50
|
-
i(o(M), { shadow: "never" }, {
|
|
51
|
-
default: a(() => [
|
|
52
|
-
r("div", null, [
|
|
53
|
-
r("p", $, v(o(p)("图像移动倍率")) + ":", 1),
|
|
54
|
-
i(o(N), {
|
|
55
|
-
modelValue: n.value,
|
|
56
|
-
"onUpdate:modelValue": e[0] || (e[0] = (s) => n.value = s),
|
|
57
|
-
step: 0.2,
|
|
58
|
-
min: 1,
|
|
59
|
-
max: 10,
|
|
60
|
-
onChange: e[1] || (e[1] = (s) => m("ratio", n.value)),
|
|
61
|
-
onInput: e[2] || (e[2] = (s) => m("ratio", n.value))
|
|
62
|
-
}, null, 8, ["modelValue"])
|
|
63
|
-
])
|
|
64
|
-
]),
|
|
65
|
-
_: 1
|
|
66
|
-
})
|
|
67
|
-
]),
|
|
68
|
-
_: 1
|
|
69
|
-
}, 8, ["visible"]));
|
|
70
|
-
}
|
|
71
|
-
}), U = /* @__PURE__ */ V(y, [["__scopeId", "data-v-6778505d"]]);
|
|
72
|
-
export {
|
|
73
|
-
U as default
|
|
74
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),a=require("element-plus"),u=require("./nextUojG6t-0.js"),m=require("./indexNnjbVZ_m.js"),d=require("./useCommon_CFgwTZy.js"),p=e.defineComponent({name:"ToolNext",__name:"next",props:e.mergeDefaults({size:{},text:{},name:{},component:{},isPrevent:{type:Boolean},callback:{type:Function}},m.defaultProps),emits:["tool"],setup(o,{emit:n}){const s=o,r=n,{t:l,textClass:c}=d.useCommon(s),i=()=>{r("tool","next")};return(t,f)=>(e.openBlock(),e.createElementBlock("div",{class:"hzzt-kfb-toolbox__icon",onClick:i},[e.createVNode(e.unref(a.ElIcon),{size:t.size},{default:e.withCtx(()=>[e.createVNode(u.default)]),_:1},8,["size"]),e.createElementVNode("div",{class:e.normalizeClass(e.unref(c))},e.toDisplayString(e.unref(l)(t.text||"下一张")),3)]))}});exports.default=p;
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import { defineComponent as c, mergeDefaults as p, createElementBlock as f, openBlock as u, createVNode as t, createElementVNode as d, unref as e, withCtx as x, normalizeClass as z, toDisplayString as _ } from "vue";
|
|
2
|
-
import { ElIcon as C } from "element-plus";
|
|
3
|
-
import k from "./nextXkdsQP9z.js";
|
|
4
|
-
import { d as h } from "./indexDvexHnyj.js";
|
|
5
|
-
import { u as b } from "./useCommonDK4IjSxd.js";
|
|
6
|
-
const D = /* @__PURE__ */ c({
|
|
7
|
-
name: "ToolNext",
|
|
8
|
-
__name: "next",
|
|
9
|
-
props: /* @__PURE__ */ p({
|
|
10
|
-
size: {},
|
|
11
|
-
text: {},
|
|
12
|
-
name: {},
|
|
13
|
-
component: {},
|
|
14
|
-
isPrevent: { type: Boolean },
|
|
15
|
-
callback: { type: Function }
|
|
16
|
-
}, h),
|
|
17
|
-
emits: ["tool"],
|
|
18
|
-
setup(n, { emit: s }) {
|
|
19
|
-
const r = n, a = s, { t: i, textClass: l } = b(r), m = () => {
|
|
20
|
-
a("tool", "next");
|
|
21
|
-
};
|
|
22
|
-
return (o, v) => (u(), f("div", {
|
|
23
|
-
class: "hzzt-kfb-toolbox__icon",
|
|
24
|
-
onClick: m
|
|
25
|
-
}, [
|
|
26
|
-
t(e(C), { size: o.size }, {
|
|
27
|
-
default: x(() => [
|
|
28
|
-
t(k)
|
|
29
|
-
]),
|
|
30
|
-
_: 1
|
|
31
|
-
}, 8, ["size"]),
|
|
32
|
-
d("div", {
|
|
33
|
-
class: z(e(l))
|
|
34
|
-
}, _(e(i)(o.text || "下一张")), 3)
|
|
35
|
-
]));
|
|
36
|
-
}
|
|
37
|
-
});
|
|
38
|
-
export {
|
|
39
|
-
D as default
|
|
40
|
-
};
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import { defineComponent as c, mergeDefaults as p, createElementBlock as f, openBlock as u, createVNode as t, createElementVNode as d, unref as e, withCtx as z, normalizeClass as _, toDisplayString as v } from "vue";
|
|
2
|
-
import { ElIcon as C } from "element-plus";
|
|
3
|
-
import k from "./prevBjMmvSpY.js";
|
|
4
|
-
import { d as x } from "./indexDvexHnyj.js";
|
|
5
|
-
import { u as h } from "./useCommonDK4IjSxd.js";
|
|
6
|
-
const D = /* @__PURE__ */ c({
|
|
7
|
-
name: "ToolPrev",
|
|
8
|
-
__name: "prev",
|
|
9
|
-
props: /* @__PURE__ */ p({
|
|
10
|
-
size: {},
|
|
11
|
-
text: {},
|
|
12
|
-
name: {},
|
|
13
|
-
component: {},
|
|
14
|
-
isPrevent: { type: Boolean },
|
|
15
|
-
callback: { type: Function }
|
|
16
|
-
}, x),
|
|
17
|
-
emits: ["tool"],
|
|
18
|
-
setup(n, { emit: s }) {
|
|
19
|
-
const r = n, a = s, { t: i, textClass: l } = h(r), m = () => {
|
|
20
|
-
a("tool", "prev");
|
|
21
|
-
};
|
|
22
|
-
return (o, b) => (u(), f("div", {
|
|
23
|
-
class: "hzzt-kfb-toolbox__icon",
|
|
24
|
-
onClick: m
|
|
25
|
-
}, [
|
|
26
|
-
t(e(C), { size: o.size }, {
|
|
27
|
-
default: z(() => [
|
|
28
|
-
t(k)
|
|
29
|
-
]),
|
|
30
|
-
_: 1
|
|
31
|
-
}, 8, ["size"]),
|
|
32
|
-
d("div", {
|
|
33
|
-
class: _(e(l))
|
|
34
|
-
}, v(e(i)(o.text || "上一张")), 3)
|
|
35
|
-
]));
|
|
36
|
-
}
|
|
37
|
-
});
|
|
38
|
-
export {
|
|
39
|
-
D as default
|
|
40
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),a=require("element-plus"),u=require("./prevhOkmcBJ2.js"),m=require("./indexNnjbVZ_m.js"),p=require("./useCommon_CFgwTZy.js"),d=e.defineComponent({name:"ToolPrev",__name:"prev",props:e.mergeDefaults({size:{},text:{},name:{},component:{},isPrevent:{type:Boolean},callback:{type:Function}},m.defaultProps),emits:["tool"],setup(o,{emit:n}){const r=o,s=n,{t:l,textClass:c}=p.useCommon(r),i=()=>{s("tool","prev")};return(t,f)=>(e.openBlock(),e.createElementBlock("div",{class:"hzzt-kfb-toolbox__icon",onClick:i},[e.createVNode(e.unref(a.ElIcon),{size:t.size},{default:e.withCtx(()=>[e.createVNode(u.default)]),_:1},8,["size"]),e.createElementVNode("div",{class:e.normalizeClass(e.unref(c))},e.toDisplayString(e.unref(l)(t.text||"上一张")),3)]))}});exports.default=d;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),s=require("./indexNnjbVZ_m.js"),C=require("./useCommon_CFgwTZy.js"),t=require("element-plus"),x=require("./processCigaxNDK.js"),E={class:"margin-l-4"},N={class:"margin-l-4"},g={class:"margin-l-4"},_={class:"margin-l-4"},h={class:"margin-l-4"},w={class:"margin-l-4"},b={class:"margin-l-4"},S={class:"flex justify-content-end"},y={class:"hzzt-kfb-toolbox__icon"},D=e.defineComponent({name:"ToolProcess",__name:"process",props:e.mergeDefaults({process:{},size:{},text:{},name:{},component:{},isPrevent:{type:Boolean},callback:{type:Function}},{...s.defaultProps,process:()=>({...s.DEFAULT_PROCESS})}),emits:["tool"],setup(c,{emit:m}){const d=c,u=m,{t:n,textClass:f}=C.useCommon(d),l=e.reactive({...s.DEFAULT_PROCESS,...d.process});function r(){u("tool","process",l)}function p(){Object.assign(l,s.DEFAULT_PROCESS),r()}function V(){u("tool","save_process",l)}return(i,o)=>(e.openBlock(),e.createBlock(e.unref(t.ElPopover),{"popper-class":"el-popover-padding-0",placement:"bottom",width:"400px",trigger:"click"},{reference:e.withCtx(()=>[e.createElementVNode("div",y,[e.createVNode(e.unref(t.ElIcon),{size:i.size},{default:e.withCtx(()=>[e.createVNode(x.default)]),_:1},8,["size"]),e.createElementVNode("div",{class:e.normalizeClass(e.unref(f))},e.toDisplayString(e.unref(n)(i.text||"图像处理")),3)])]),default:e.withCtx(()=>[e.createVNode(e.unref(t.ElCard),{shadow:"never",header:e.unref(n)("图像处理")},{default:e.withCtx(()=>[e.createVNode(e.unref(t.ElForm),null,{default:e.withCtx(()=>[e.createVNode(e.unref(t.ElRow),null,{default:e.withCtx(()=>[e.createVNode(e.unref(t.ElCol),{span:24},{default:e.withCtx(()=>[e.createVNode(e.unref(t.ElFormItem),{label:e.unref(n)("红通道")},{default:e.withCtx(()=>[e.createVNode(e.unref(t.ElSlider),{modelValue:l.r,"onUpdate:modelValue":o[0]||(o[0]=a=>l.r=a),class:"flex-1",step:.1,min:-1,max:1,onChange:r},null,8,["modelValue"]),e.createElementVNode("span",E,e.toDisplayString(l.r*100)+"%",1)]),_:1},8,["label"])]),_:1}),e.createVNode(e.unref(t.ElCol),{span:24},{default:e.withCtx(()=>[e.createVNode(e.unref(t.ElFormItem),{label:e.unref(n)("绿通道")},{default:e.withCtx(()=>[e.createVNode(e.unref(t.ElSlider),{modelValue:l.g,"onUpdate:modelValue":o[1]||(o[1]=a=>l.g=a),class:"flex-1",step:.1,min:-1,max:1,onChange:r},null,8,["modelValue"]),e.createElementVNode("span",N,e.toDisplayString(l.g*100)+"%",1)]),_:1},8,["label"])]),_:1}),e.createVNode(e.unref(t.ElCol),{span:24},{default:e.withCtx(()=>[e.createVNode(e.unref(t.ElFormItem),{label:e.unref(n)("蓝通道")},{default:e.withCtx(()=>[e.createVNode(e.unref(t.ElSlider),{modelValue:l.b,"onUpdate:modelValue":o[2]||(o[2]=a=>l.b=a),class:"flex-1",step:.1,min:-1,max:1,onChange:r},null,8,["modelValue"]),e.createElementVNode("span",g,e.toDisplayString(l.b*100)+"%",1)]),_:1},8,["label"])]),_:1}),e.createVNode(e.unref(t.ElCol),{span:24},{default:e.withCtx(()=>[e.createVNode(e.unref(t.ElFormItem),{label:e.unref(n)("gamma值")},{default:e.withCtx(()=>[e.createVNode(e.unref(t.ElSlider),{modelValue:l.ga,"onUpdate:modelValue":o[3]||(o[3]=a=>l.ga=a),class:"flex-1",step:.01,min:-.05,max:2,onChange:r},null,8,["modelValue"]),e.createElementVNode("span",_,e.toDisplayString(l.ga),1)]),_:1},8,["label"])]),_:1}),e.createVNode(e.unref(t.ElCol),{span:24},{default:e.withCtx(()=>[e.createVNode(e.unref(t.ElFormItem),{label:e.unref(n)("对比度")},{default:e.withCtx(()=>[e.createVNode(e.unref(t.ElSlider),{modelValue:l.c,"onUpdate:modelValue":o[4]||(o[4]=a=>l.c=a),class:"flex-1",step:.1,min:-1,max:1,onChange:r},null,8,["modelValue"]),e.createElementVNode("span",h,e.toDisplayString(l.c*100)+"%",1)]),_:1},8,["label"])]),_:1}),e.createVNode(e.unref(t.ElCol),{span:24},{default:e.withCtx(()=>[e.createVNode(e.unref(t.ElFormItem),{label:e.unref(n)("饱和度")},{default:e.withCtx(()=>[e.createVNode(e.unref(t.ElSlider),{modelValue:l.s,"onUpdate:modelValue":o[5]||(o[5]=a=>l.s=a),class:"flex-1",step:.1,min:-1,max:1,onChange:r},null,8,["modelValue"]),e.createElementVNode("span",w,e.toDisplayString(l.s*100)+"%",1)]),_:1},8,["label"])]),_:1}),e.createVNode(e.unref(t.ElCol),{span:24},{default:e.withCtx(()=>[e.createVNode(e.unref(t.ElFormItem),{label:e.unref(n)("亮度")},{default:e.withCtx(()=>[e.createVNode(e.unref(t.ElSlider),{modelValue:l.l,"onUpdate:modelValue":o[6]||(o[6]=a=>l.l=a),class:"flex-1",step:.1,min:-1,max:1,onChange:r},null,8,["modelValue"]),e.createElementVNode("span",b,e.toDisplayString(l.l*100)+"%",1)]),_:1},8,["label"])]),_:1})]),_:1})]),_:1}),e.createElementVNode("div",S,[e.createVNode(e.unref(t.ElButton),{onClick:p},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(n)("重置")),1)]),_:1}),e.createVNode(e.unref(t.ElButton),{type:"primary",onClick:V},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(n)("保存")),1)]),_:1})])]),_:1},8,["header"])]),_:1}))}}),v=s._export_sfc(D,[["__scopeId","data-v-8859e97b"]]);exports.default=v;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),i=require("./indexNnjbVZ_m.js"),N=require("./useCommon_CFgwTZy.js"),s=require("element-plus"),E=require("./rotateCIEP8gXK.js"),w=require("./arrow6aTSOsV2.js"),C={class:"flex align-items-center"},k={class:"flex column align-items-center flex-1"},h={class:"flex justify-content-center align-items-center"},y={class:"hzzt-kfb-toolbox-rotate__container"},P={class:"hzzt-kfb-toolbox-rotate__angle"},$={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}},i.defaultProps),setup(g){var v;const _=g,{t:b,textClass:V}=N.useCommon(_),n=e.inject("kfbViewRef"),c=e.ref(!1),a=e.ref(((v=n==null?void 0:n.value)==null?void 0:v.degrees)??0);e.watch(()=>{var o;return(o=n==null?void 0:n.value)==null?void 0:o.degrees},o=>{a.value=o});function r(o){var t;a.value=parseFloat(o.toFixed(2)),(t=n==null?void 0:n.value)!=null&&t.kfbView&&(n.value.degrees=a.value,n.value.kfbView.viewer.viewport.setRotation(a.value))}function m(o){const t=document.querySelector(".hzzt-kfb-toolbox-rotate__container");if(!t)return;const l=t.getBoundingClientRect(),u={x:32,y:32},p={x:o.clientX-l.left,y:o.clientY-l.top};if(i._KfbView$isPointInEllipse(p,u,32,32)){const x=i._KfbView$getAngle(u,{x:u.x,y:0},p);if(isNaN(x/Math.PI*180))return;let d=parseFloat((x/Math.PI*180).toFixed(2));d<0&&(d+=360),c.value=!0,r(d)}}function z(o){c.value&&m(o)}function f(){c.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",$,[e.createVNode(e.unref(s.ElIcon),{size:o.size},{default:e.withCtx(()=>[e.createVNode(E.default)]),_:1},8,["size"]),e.createElementVNode("div",{class:e.normalizeClass(e.unref(V))},e.toDisplayString(e.unref(b)(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",C,[e.createElementVNode("div",k,[e.createElementVNode("div",{class:"hzzt-kfb-toolbox-rotate__btn margin-b-1",onClick:t[0]||(t[0]=l=>r(0))}),e.createElementVNode("div",h,[e.createElementVNode("div",{class:"hzzt-kfb-toolbox-rotate__btn margin-r-1",onClick:t[1]||(t[1]=l=>r(270))}),e.createElementVNode("div",y,[e.createElementVNode("div",{class:"hzzt-kfb-toolbox-rotate__img",style:e.normalizeStyle({transform:`rotate(${a.value}deg)`}),onMousedown:m,onMousemove:z,onMouseup:f,onMouseleave:f},[e.createVNode(w.default)],36)]),e.createElementVNode("div",{class:"hzzt-kfb-toolbox-rotate__btn margin-l-1",onClick:t[2]||(t[2]=l=>r(90))})]),e.createElementVNode("div",{class:"hzzt-kfb-toolbox-rotate__btn margin-t-1",onClick:t[3]||(t[3]=l=>r(180))})]),e.createElementVNode("div",P,[e.createVNode(e.unref(s.ElInputNumber),{modelValue:a.value,"onUpdate:modelValue":t[4]||(t[4]=l=>a.value=l),min:0,max:360,step:5,onChange:t[5]||(t[5]=l=>r(a.value))},null,8,["modelValue"])])])]),_:1})]),_:1}))}}),M=i._export_sfc(q,[["__scopeId","data-v-a0497817"]]);exports.default=M;
|
|
@@ -1,130 +0,0 @@
|
|
|
1
|
-
import { defineComponent as C, mergeDefaults as h, inject as V, ref as x, watch as $, createBlock as P, openBlock as E, unref as i, withCtx as c, createVNode as r, createElementVNode as o, normalizeStyle as I, normalizeClass as M, toDisplayString as F } from "vue";
|
|
2
|
-
import { d as N, a as B, b as D, _ as R } from "./indexDvexHnyj.js";
|
|
3
|
-
import { u as S } from "./useCommonDK4IjSxd.js";
|
|
4
|
-
import { ElPopover as j, ElCard as A, ElInputNumber as K, ElIcon as q } from "element-plus";
|
|
5
|
-
import T from "./rotateBgPHUO92.js";
|
|
6
|
-
import U from "./arrowDOQZx-5i.js";
|
|
7
|
-
const X = { class: "flex align-items-center" }, Y = { class: "flex column align-items-center flex-1" }, G = { class: "flex justify-content-center align-items-center" }, H = { class: "hzzt-kfb-toolbox-rotate__container" }, J = { class: "hzzt-kfb-toolbox-rotate__angle" }, L = { class: "hzzt-kfb-toolbox__icon" }, O = /* @__PURE__ */ C({
|
|
8
|
-
name: "ToolRotate",
|
|
9
|
-
__name: "rotate",
|
|
10
|
-
props: /* @__PURE__ */ h({
|
|
11
|
-
size: {},
|
|
12
|
-
text: {},
|
|
13
|
-
name: {},
|
|
14
|
-
component: {},
|
|
15
|
-
isPrevent: { type: Boolean },
|
|
16
|
-
callback: { type: Function }
|
|
17
|
-
}, N),
|
|
18
|
-
setup(b) {
|
|
19
|
-
var f;
|
|
20
|
-
const z = b, { t: k, textClass: w } = S(z), n = V("kfbViewRef"), u = x(!1), s = x(((f = n == null ? void 0 : n.value) == null ? void 0 : f.degrees) ?? 0);
|
|
21
|
-
$(() => {
|
|
22
|
-
var t;
|
|
23
|
-
return (t = n == null ? void 0 : n.value) == null ? void 0 : t.degrees;
|
|
24
|
-
}, (t) => {
|
|
25
|
-
s.value = t;
|
|
26
|
-
});
|
|
27
|
-
function a(t) {
|
|
28
|
-
var e;
|
|
29
|
-
s.value = parseFloat(t.toFixed(2)), (e = n == null ? void 0 : n.value) != null && e.kfbView && (n.value.degrees = s.value, n.value.kfbView.viewer.viewport.setRotation(s.value));
|
|
30
|
-
}
|
|
31
|
-
function p(t) {
|
|
32
|
-
const e = document.querySelector(".hzzt-kfb-toolbox-rotate__container");
|
|
33
|
-
if (!e) return;
|
|
34
|
-
const l = e.getBoundingClientRect(), d = { x: 32, y: 32 }, _ = {
|
|
35
|
-
x: t.clientX - l.left,
|
|
36
|
-
y: t.clientY - l.top
|
|
37
|
-
};
|
|
38
|
-
if (B(_, d, 32, 32)) {
|
|
39
|
-
const g = D(d, { x: d.x, y: 0 }, _);
|
|
40
|
-
if (isNaN(g / Math.PI * 180)) return;
|
|
41
|
-
let m = parseFloat((g / Math.PI * 180).toFixed(2));
|
|
42
|
-
m < 0 && (m += 360), u.value = !0, a(m);
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
function y(t) {
|
|
46
|
-
u.value && p(t);
|
|
47
|
-
}
|
|
48
|
-
function v() {
|
|
49
|
-
u.value = !1;
|
|
50
|
-
}
|
|
51
|
-
return (t, e) => (E(), P(i(j), {
|
|
52
|
-
placement: "bottom",
|
|
53
|
-
width: "260px",
|
|
54
|
-
trigger: "click",
|
|
55
|
-
"popper-class": "el-popover-padding-0"
|
|
56
|
-
}, {
|
|
57
|
-
reference: c(() => [
|
|
58
|
-
o("div", L, [
|
|
59
|
-
r(i(q), { size: t.size }, {
|
|
60
|
-
default: c(() => [
|
|
61
|
-
r(T)
|
|
62
|
-
]),
|
|
63
|
-
_: 1
|
|
64
|
-
}, 8, ["size"]),
|
|
65
|
-
o("div", {
|
|
66
|
-
class: M(i(w))
|
|
67
|
-
}, F(i(k)(t.text || "旋转")), 3)
|
|
68
|
-
])
|
|
69
|
-
]),
|
|
70
|
-
default: c(() => [
|
|
71
|
-
r(i(A), {
|
|
72
|
-
shadow: "never",
|
|
73
|
-
"body-style": { padding: "12px 12px 12px 0" }
|
|
74
|
-
}, {
|
|
75
|
-
default: c(() => [
|
|
76
|
-
o("div", X, [
|
|
77
|
-
o("div", Y, [
|
|
78
|
-
o("div", {
|
|
79
|
-
class: "hzzt-kfb-toolbox-rotate__btn margin-b-1",
|
|
80
|
-
onClick: e[0] || (e[0] = (l) => a(0))
|
|
81
|
-
}),
|
|
82
|
-
o("div", G, [
|
|
83
|
-
o("div", {
|
|
84
|
-
class: "hzzt-kfb-toolbox-rotate__btn margin-r-1",
|
|
85
|
-
onClick: e[1] || (e[1] = (l) => a(270))
|
|
86
|
-
}),
|
|
87
|
-
o("div", H, [
|
|
88
|
-
o("div", {
|
|
89
|
-
class: "hzzt-kfb-toolbox-rotate__img",
|
|
90
|
-
style: I({ transform: `rotate(${s.value}deg)` }),
|
|
91
|
-
onMousedown: p,
|
|
92
|
-
onMousemove: y,
|
|
93
|
-
onMouseup: v,
|
|
94
|
-
onMouseleave: v
|
|
95
|
-
}, [
|
|
96
|
-
r(U)
|
|
97
|
-
], 36)
|
|
98
|
-
]),
|
|
99
|
-
o("div", {
|
|
100
|
-
class: "hzzt-kfb-toolbox-rotate__btn margin-l-1",
|
|
101
|
-
onClick: e[2] || (e[2] = (l) => a(90))
|
|
102
|
-
})
|
|
103
|
-
]),
|
|
104
|
-
o("div", {
|
|
105
|
-
class: "hzzt-kfb-toolbox-rotate__btn margin-t-1",
|
|
106
|
-
onClick: e[3] || (e[3] = (l) => a(180))
|
|
107
|
-
})
|
|
108
|
-
]),
|
|
109
|
-
o("div", J, [
|
|
110
|
-
r(i(K), {
|
|
111
|
-
modelValue: s.value,
|
|
112
|
-
"onUpdate:modelValue": e[4] || (e[4] = (l) => s.value = l),
|
|
113
|
-
min: 0,
|
|
114
|
-
max: 360,
|
|
115
|
-
step: 5,
|
|
116
|
-
onChange: e[5] || (e[5] = (l) => a(s.value))
|
|
117
|
-
}, null, 8, ["modelValue"])
|
|
118
|
-
])
|
|
119
|
-
])
|
|
120
|
-
]),
|
|
121
|
-
_: 1
|
|
122
|
-
})
|
|
123
|
-
]),
|
|
124
|
-
_: 1
|
|
125
|
-
}));
|
|
126
|
-
}
|
|
127
|
-
}), ne = /* @__PURE__ */ R(O, [["__scopeId", "data-v-a0497817"]]);
|
|
128
|
-
export {
|
|
129
|
-
ne as default
|
|
130
|
-
};
|
|
@@ -1,134 +0,0 @@
|
|
|
1
|
-
import { defineComponent as c, mergeDefaults as b, ref as V, createBlock as C, openBlock as w, unref as e, withCtx as n, createVNode as a, createElementVNode as v, normalizeClass as z, toDisplayString as E } from "vue";
|
|
2
|
-
import { d as k, _ } from "./indexDvexHnyj.js";
|
|
3
|
-
import { u as F } from "./useCommonDK4IjSxd.js";
|
|
4
|
-
import { ElPopover as S, ElCard as U, ElForm as B, ElFormItem as s, ElSwitch as m, ElIcon as I } from "element-plus";
|
|
5
|
-
import P from "./settingBwRgwtCV.js";
|
|
6
|
-
const h = { class: "hzzt-kfb-toolbox__icon" }, D = /* @__PURE__ */ c({
|
|
7
|
-
name: "ToolSetting",
|
|
8
|
-
__name: "setting",
|
|
9
|
-
props: /* @__PURE__ */ b({
|
|
10
|
-
size: {},
|
|
11
|
-
text: {},
|
|
12
|
-
name: {},
|
|
13
|
-
component: {},
|
|
14
|
-
isPrevent: { type: Boolean },
|
|
15
|
-
callback: { type: Function }
|
|
16
|
-
}, k),
|
|
17
|
-
emits: ["tool"],
|
|
18
|
-
setup(p, { emit: g }) {
|
|
19
|
-
const f = p, d = g, { t: o, textClass: x } = F(f), r = V({
|
|
20
|
-
grid: !1,
|
|
21
|
-
ruler: !1,
|
|
22
|
-
navigator: !0,
|
|
23
|
-
graduation: !0
|
|
24
|
-
});
|
|
25
|
-
function u(i, t) {
|
|
26
|
-
i === "grid" ? d("tool", i, {
|
|
27
|
-
show: t
|
|
28
|
-
}) : i === "ruler" ? d("tool", i, {
|
|
29
|
-
ruler: t
|
|
30
|
-
}) : i === "navigator" ? d("tool", i, t) : i === "graduation" && d("tool", i, {
|
|
31
|
-
show: t
|
|
32
|
-
});
|
|
33
|
-
}
|
|
34
|
-
return (i, t) => (w(), C(e(S), {
|
|
35
|
-
placement: "bottom",
|
|
36
|
-
width: "230px",
|
|
37
|
-
trigger: "click",
|
|
38
|
-
"popper-class": "el-popover-padding-0"
|
|
39
|
-
}, {
|
|
40
|
-
reference: n(() => [
|
|
41
|
-
v("div", h, [
|
|
42
|
-
a(e(I), { size: i.size }, {
|
|
43
|
-
default: n(() => [
|
|
44
|
-
a(P)
|
|
45
|
-
]),
|
|
46
|
-
_: 1
|
|
47
|
-
}, 8, ["size"]),
|
|
48
|
-
v("div", {
|
|
49
|
-
class: z(e(x))
|
|
50
|
-
}, E(e(o)(i.text || "工具")), 3)
|
|
51
|
-
])
|
|
52
|
-
]),
|
|
53
|
-
default: n(() => [
|
|
54
|
-
a(e(U), {
|
|
55
|
-
shadow: "never",
|
|
56
|
-
header: e(o)("工具"),
|
|
57
|
-
"body-style": { padding: 0 }
|
|
58
|
-
}, {
|
|
59
|
-
default: n(() => [
|
|
60
|
-
a(e(B), {
|
|
61
|
-
"label-width": "85px",
|
|
62
|
-
"label-position": "right"
|
|
63
|
-
}, {
|
|
64
|
-
default: n(() => [
|
|
65
|
-
a(e(s), {
|
|
66
|
-
label: e(o)("自动网格")
|
|
67
|
-
}, {
|
|
68
|
-
default: n(() => [
|
|
69
|
-
a(e(m), {
|
|
70
|
-
modelValue: r.value.grid,
|
|
71
|
-
"onUpdate:modelValue": t[0] || (t[0] = (l) => r.value.grid = l),
|
|
72
|
-
"active-text": e(o)("开"),
|
|
73
|
-
"inactive-text": e(o)("关"),
|
|
74
|
-
onChange: t[1] || (t[1] = (l) => u("grid", l))
|
|
75
|
-
}, null, 8, ["modelValue", "active-text", "inactive-text"])
|
|
76
|
-
]),
|
|
77
|
-
_: 1
|
|
78
|
-
}, 8, ["label"]),
|
|
79
|
-
a(e(s), {
|
|
80
|
-
label: e(o)("自动标尺")
|
|
81
|
-
}, {
|
|
82
|
-
default: n(() => [
|
|
83
|
-
a(e(m), {
|
|
84
|
-
modelValue: r.value.ruler,
|
|
85
|
-
"onUpdate:modelValue": t[2] || (t[2] = (l) => r.value.ruler = l),
|
|
86
|
-
"active-text": e(o)("开"),
|
|
87
|
-
"inactive-text": e(o)("关"),
|
|
88
|
-
onChange: t[3] || (t[3] = (l) => u("ruler", l))
|
|
89
|
-
}, null, 8, ["modelValue", "active-text", "inactive-text"])
|
|
90
|
-
]),
|
|
91
|
-
_: 1
|
|
92
|
-
}, 8, ["label"]),
|
|
93
|
-
a(e(s), {
|
|
94
|
-
label: e(o)("导航图")
|
|
95
|
-
}, {
|
|
96
|
-
default: n(() => [
|
|
97
|
-
a(e(m), {
|
|
98
|
-
modelValue: r.value.navigator,
|
|
99
|
-
"onUpdate:modelValue": t[4] || (t[4] = (l) => r.value.navigator = l),
|
|
100
|
-
"active-text": e(o)("开"),
|
|
101
|
-
"inactive-text": e(o)("关"),
|
|
102
|
-
onChange: t[5] || (t[5] = (l) => u("navigator", l))
|
|
103
|
-
}, null, 8, ["modelValue", "active-text", "inactive-text"])
|
|
104
|
-
]),
|
|
105
|
-
_: 1
|
|
106
|
-
}, 8, ["label"]),
|
|
107
|
-
a(e(s), {
|
|
108
|
-
label: e(o)("比例尺")
|
|
109
|
-
}, {
|
|
110
|
-
default: n(() => [
|
|
111
|
-
a(e(m), {
|
|
112
|
-
modelValue: r.value.graduation,
|
|
113
|
-
"onUpdate:modelValue": t[6] || (t[6] = (l) => r.value.graduation = l),
|
|
114
|
-
"active-text": e(o)("开"),
|
|
115
|
-
"inactive-text": e(o)("关"),
|
|
116
|
-
onChange: t[7] || (t[7] = (l) => u("graduation", l))
|
|
117
|
-
}, null, 8, ["modelValue", "active-text", "inactive-text"])
|
|
118
|
-
]),
|
|
119
|
-
_: 1
|
|
120
|
-
}, 8, ["label"])
|
|
121
|
-
]),
|
|
122
|
-
_: 1
|
|
123
|
-
})
|
|
124
|
-
]),
|
|
125
|
-
_: 1
|
|
126
|
-
}, 8, ["header"])
|
|
127
|
-
]),
|
|
128
|
-
_: 1
|
|
129
|
-
}));
|
|
130
|
-
}
|
|
131
|
-
}), G = /* @__PURE__ */ _(D, [["__scopeId", "data-v-471a2ecc"]]);
|
|
132
|
-
export {
|
|
133
|
-
G as default
|
|
134
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),d=require("./indexNnjbVZ_m.js"),v=require("./useCommon_CFgwTZy.js"),r=require("element-plus"),x=require("./settingDEgu1o7Z.js"),g={class:"hzzt-kfb-toolbox__icon"},V=e.defineComponent({name:"ToolSetting",__name:"setting",props:e.mergeDefaults({size:{},text:{},name:{},component:{},isPrevent:{type:Boolean},callback:{type:Function}},d.defaultProps),emits:["tool"],setup(s,{emit:f}){const m=s,i=f,{t:o,textClass:c}=v.useCommon(m),a=e.ref({grid:!1,ruler:!1,navigator:!0,graduation:!0});function u(n,t){n==="grid"?i("tool",n,{show:t}):n==="ruler"?i("tool",n,{ruler:t}):n==="navigator"?i("tool",n,t):n==="graduation"&&i("tool",n,{show: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",g,[e.createVNode(e.unref(r.ElIcon),{size:n.size},{default:e.withCtx(()=>[e.createVNode(x.default)]),_:1},8,["size"]),e.createElementVNode("div",{class:e.normalizeClass(e.unref(c))},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.grid,"onUpdate:modelValue":t[0]||(t[0]=l=>a.value.grid=l),"active-text":e.unref(o)("开"),"inactive-text":e.unref(o)("关"),onChange:t[1]||(t[1]=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[2]||(t[2]=l=>a.value.ruler=l),"active-text":e.unref(o)("开"),"inactive-text":e.unref(o)("关"),onChange:t[3]||(t[3]=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[4]||(t[4]=l=>a.value.navigator=l),"active-text":e.unref(o)("开"),"inactive-text":e.unref(o)("关"),onChange:t[5]||(t[5]=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[6]||(t[6]=l=>a.value.graduation=l),"active-text":e.unref(o)("开"),"inactive-text":e.unref(o)("关"),onChange:t[7]||(t[7]=l=>u("graduation",l))},null,8,["modelValue","active-text","inactive-text"])]),_:1},8,["label"])]),_:1})]),_:1},8,["header"])]),_:1}))}}),p=d._export_sfc(V,[["__scopeId","data-v-471a2ecc"]]);exports.default=p;
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import { defineComponent as c, mergeDefaults as p, createElementBlock as f, openBlock as u, createVNode as t, createElementVNode as d, unref as o, withCtx as z, normalizeClass as _, toDisplayString as C } from "vue";
|
|
2
|
-
import { ElIcon as k } from "element-plus";
|
|
3
|
-
import x from "./tailor0e5PmiKv.js";
|
|
4
|
-
import { d as h } from "./indexDvexHnyj.js";
|
|
5
|
-
import { u as b } from "./useCommonDK4IjSxd.js";
|
|
6
|
-
const D = /* @__PURE__ */ c({
|
|
7
|
-
name: "ToolTailor",
|
|
8
|
-
__name: "tailor",
|
|
9
|
-
props: /* @__PURE__ */ p({
|
|
10
|
-
size: {},
|
|
11
|
-
text: {},
|
|
12
|
-
name: {},
|
|
13
|
-
component: {},
|
|
14
|
-
isPrevent: { type: Boolean },
|
|
15
|
-
callback: { type: Function }
|
|
16
|
-
}, h),
|
|
17
|
-
emits: ["tool"],
|
|
18
|
-
setup(n, { emit: r }) {
|
|
19
|
-
const s = n, a = r, { t: i, textClass: l } = b(s), m = () => {
|
|
20
|
-
a("tool", "tailor", !0);
|
|
21
|
-
};
|
|
22
|
-
return (e, v) => (u(), f("div", {
|
|
23
|
-
class: "hzzt-kfb-toolbox__icon",
|
|
24
|
-
onClick: m
|
|
25
|
-
}, [
|
|
26
|
-
t(o(k), { size: e.size }, {
|
|
27
|
-
default: z(() => [
|
|
28
|
-
t(x)
|
|
29
|
-
]),
|
|
30
|
-
_: 1
|
|
31
|
-
}, 8, ["size"]),
|
|
32
|
-
d("div", {
|
|
33
|
-
class: _(o(l))
|
|
34
|
-
}, C(o(i)(e.text || "截图")), 3)
|
|
35
|
-
]));
|
|
36
|
-
}
|
|
37
|
-
});
|
|
38
|
-
export {
|
|
39
|
-
D as default
|
|
40
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),c=require("element-plus"),u=require("./tailorA3InL_3L.js"),m=require("./indexNnjbVZ_m.js"),d=require("./useCommon_CFgwTZy.js"),p=e.defineComponent({name:"ToolTailor",__name:"tailor",props:e.mergeDefaults({size:{},text:{},name:{},component:{},isPrevent:{type:Boolean},callback:{type:Function}},m.defaultProps),emits:["tool"],setup(o,{emit:n}){const r=o,s=n,{t:l,textClass:i}=d.useCommon(r),a=()=>{s("tool","tailor",!0)};return(t,f)=>(e.openBlock(),e.createElementBlock("div",{class:"hzzt-kfb-toolbox__icon",onClick:a},[e.createVNode(e.unref(c.ElIcon),{size:t.size},{default:e.withCtx(()=>[e.createVNode(u.default)]),_:1},8,["size"]),e.createElementVNode("div",{class:e.normalizeClass(e.unref(i))},e.toDisplayString(e.unref(l)(t.text||"截图")),3)]))}});exports.default=p;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { inject as n, computed as u } from "vue";
|
|
2
|
-
import { u as l } from "./indexDvexHnyj.js";
|
|
3
|
-
function x(o) {
|
|
4
|
-
const t = n("show-text", {
|
|
5
|
-
value: !0
|
|
6
|
-
}), { t: e } = l(), s = u(
|
|
7
|
-
() => t.value ? "hzzt-kfb-toolbox__text" : "hzzt-kfb-toolbox__tooltip"
|
|
8
|
-
);
|
|
9
|
-
return console.log(o.text), {
|
|
10
|
-
showText: t,
|
|
11
|
-
t: e,
|
|
12
|
-
textClass: s
|
|
13
|
-
};
|
|
14
|
-
}
|
|
15
|
-
export {
|
|
16
|
-
x as u
|
|
17
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const o=require("vue"),u=require("./indexNnjbVZ_m.js");function c(e){const t=o.inject("show-text",{value:!0}),{t:s}=u.useLocalI18n(),n=o.computed(()=>t.value?"hzzt-kfb-toolbox__text":"hzzt-kfb-toolbox__tooltip");return console.log(e.text),{showText:t,t:s,textClass:n}}exports.useCommon=c;
|