hzzt-kfb-slide 0.0.5 → 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/{dist/components/annotateCPG0T3zR.js → components/annotate2o-1dfLI.js} +1 -1
- package/dist/components/annotateAI-JWSH6.js +1 -0
- package/dist/{dist/components/annotateBZhYifBy.js → components/annotateC9P_HUni.js} +1 -1
- package/dist/components/annotateCvQBDtIU.js +123 -0
- package/dist/{dist/components/arrowBJ1_uQ_E.js → components/arrowBciNhKeC.js} +1 -1
- package/dist/{dist/components/arrowDownNi-pK4NR.js → components/arrowDownCQ4SyfeE.js} +1 -1
- package/dist/{dist/components/arrowDownUoENEig7.js → components/arrowDownClJawdrb.js} +1 -1
- package/dist/{dist/components/arrowLeftBjlKltMm.js → components/arrowLeftBfE-rUOd.js} +1 -1
- package/dist/{dist/components/arrowLeftDNerwLPi.js → components/arrowLeftDXKznfa7.js} +1 -1
- package/dist/{dist/components/arrowRight44qqQj9S.js → components/arrowRightBFIf561u.js} +1 -1
- package/dist/{dist/components/arrowRightMPKmxcZ8.js → components/arrowRightDD_81Jxi.js} +1 -1
- package/dist/{dist/components/arrowUpDNv09R_q.js → components/arrowUpBWJ4tPxX.js} +1 -1
- package/dist/{dist/components/arrowUpu-KhVqDz.js → components/arrowUpCW9dIkdT.js} +1 -1
- package/dist/{dist/components/arrowDFlQxMKW.js → components/arrowqYc4Vwqs.js} +1 -1
- package/dist/{dist/components/channelDTeDAbXs.js → components/channelB-5CsDgJ.js} +1 -1
- package/dist/{dist/components/channelCzSNjDqs.js → components/channelDQ0dcclf.js} +1 -1
- package/dist/{dist/components/checkD58Lt_t9.js → components/checkDCUaoqtc.js} +1 -1
- package/dist/{dist/components/checkDg1XwTUE.js → components/checkDv3SyUAt.js} +1 -1
- package/dist/{dist/components/configFTiUKUAQ.js → components/configBG9sz92K.js} +1 -1
- package/dist/{dist/components/configDTj11Wdw.js → components/configD1oGPTSe.js} +1 -1
- package/dist/components/customBiZeClOe.js +39 -0
- package/dist/components/customDNmw3TmQ.js +1 -0
- package/dist/{dist/components/deleteBIUy0hW2.js → components/deleteAeZFc9Ps.js} +1 -1
- package/dist/{dist/components/deleteCeXlMQda.js → components/deletet8ykhJaO.js} +1 -1
- package/dist/{dist/components/dotBcz-OP0B.js → components/dotB2osXT1L.js} +1 -1
- package/dist/{dist/components/dotDpCmvPJC.js → components/dotBXbuJdtx.js} +1 -1
- package/dist/components/dotBi8Aw3pw.js +113 -0
- package/dist/components/dotCj7nxagF.js +1 -0
- package/dist/{dist/components/downloadnu9isJ53.js → components/downloadBPXmLTeR.js} +1 -1
- package/dist/components/downloadBsgfGz04.js +79 -0
- package/dist/components/downloadDqEDdAXm.js +1 -0
- package/dist/{dist/components/downloadBs4QK_IT.js → components/downloadpQ-y7WlA.js} +1 -1
- package/dist/{dist/components/flipvyz7dJPZ.js → components/flipRSac65ir.js} +1 -1
- package/dist/{dist/components/flipBwR2T8Rs.js → components/flipi9yEEtLG.js} +1 -1
- package/dist/components/fullscreenBZwo5K13.js +1 -0
- package/dist/{dist/components/fullscreenyNOuxxJv.js → components/fullscreenBnIlw4_E.js} +1 -1
- package/dist/{dist/components/fullscreenCVgGTPtD.js → components/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/{dist/components/infoC4fRWu15.js → components/infoBNq0rH3E.js} +1 -1
- package/dist/{dist/components/infoCDweeRWp.js → components/infoCU8_TgkY.js} +1 -1
- package/dist/{dist/components/levelDjuyEKmz.js → components/levelC0LnNmSP.js} +1 -1
- package/dist/{dist/components/levelDjZ5vvyy.js → components/levelDYvedJFa.js} +1 -1
- package/dist/{dist/components/microscopeDCINdehp.js → components/microscopeBr8-XStr.js} +1 -1
- package/dist/{dist/components/microscopeDptxRPdj.js → components/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/{dist/components/moveB-QJFdLP.js → components/moveBASWwKjj.js} +1 -1
- package/dist/components/moveBu-wHLhg.js +1 -0
- package/dist/{dist/components/moveCNc2f0wf.js → components/moveNyavIpT3.js} +1 -1
- package/dist/{dist/components/nextBX5bmT1e.js → components/nextDsMto_p-.js} +1 -1
- package/dist/{dist/components/next-o3fIifP.js → components/nextcOKttjz3.js} +1 -1
- package/dist/{dist/components/prevDRvSbFTC.js → components/prevB1Bq4rF3.js} +1 -1
- package/dist/{dist/components/prevkbxOICn5.js → components/prevnbS-kjx3.js} +1 -1
- package/dist/{dist/components/processh0Wf3Q99.js → components/processBAx9XRyY.js} +1 -1
- package/dist/components/processBM18h6Qd.js +1 -0
- package/dist/{dist/components/processD06c6uax.js → components/processD9bf999H.js} +1 -1
- package/dist/{dist/components/processBHqsEap8.js → components/processQaCeq-7y.js} +65 -62
- package/dist/{dist/components/rotateCm7bVQY_.js → components/rotateANr_UwKh.js} +1 -1
- package/dist/{dist/components/rotateCxZ7Z2pw.js → components/rotateBseHg5iL.js} +1 -1
- package/dist/components/rotateC63rgVZz.js +1 -0
- package/dist/components/rotateDG77ULy7.js +131 -0
- package/dist/{dist/components/settingCzWjOOeH.js → components/settingCDSCrpW7.js} +1 -1
- package/dist/components/settingCrFlPK23.js +1 -0
- package/dist/components/settingDxud32Gv.js +147 -0
- package/dist/{dist/components/settinghh-xgIto.js → components/settingN7OnPn3C.js} +1 -1
- package/dist/{dist/components/tailorBalVOrgz.js → components/tailorCIVAqMFR.js} +1 -1
- package/dist/{dist/components/tailorCvZYsl2H.js → components/tailorDwORSrp6.js} +1 -1
- package/dist/{dist/components/useCommonDs02MG_d.js → components/useCommonBCMuQZUh.js} +1 -1
- package/dist/{dist/components/useCommonBBhfDvWF.js → components/useCommonDf_LQLq6.js} +1 -1
- package/dist/components/zoom5nzfwbaS.js +1 -0
- package/dist/components/zoomBUaHoVgA.js +63 -0
- package/dist/{dist/components/zoomInBFjk_aLI.js → components/zoomInCML6d0KQ.js} +1 -1
- package/dist/{dist/components/zoomIn8-tgvQFE.js → components/zoomInCQuBW71J.js} +1 -1
- package/dist/{dist/components/zoomOutC4Ami8gE.js → components/zoomOutBWAYvxae.js} +1 -1
- package/dist/{dist/components/zoomOutD3_PopeU.js → components/zoomOutDFjiTeeB.js} +1 -1
- package/dist/{dist/index.cjs.js → index.cjs.js} +1 -1
- package/dist/index.css +1 -0
- package/dist/{dist/index.es.js → index.es.js} +1 -1
- package/package.json +4 -4
- package/{dist/types → types}/components/KfbView/useLabel.d.ts +2 -1
- package/README.md +0 -5
- package/dist/dist/components/annotateCqAOjkGt.js +0 -132
- package/dist/dist/components/annotateDfW6BtgB.js +0 -1
- package/dist/dist/components/customLw3nDjEr.js +0 -48
- package/dist/dist/components/customSv562l99.js +0 -1
- package/dist/dist/components/dotC4Q5qfQ3.js +0 -122
- package/dist/dist/components/dotDO8OTl1O.js +0 -1
- package/dist/dist/components/downloadCyOnwVa8.js +0 -1
- package/dist/dist/components/downloadGCe-OpHT.js +0 -88
- package/dist/dist/components/fullscreenBeGbvwYS.js +0 -1
- package/dist/dist/components/fullscreenDvfoQFJX.js +0 -60
- package/dist/dist/components/indexCBVjt8NT.js +0 -4
- package/dist/dist/components/indexDOcglE90.js +0 -2948
- package/dist/dist/components/microscopeB6hcfWtD.js +0 -1
- package/dist/dist/components/microscopeD4o4Sywm.js +0 -129
- package/dist/dist/components/moveBM4KQ8bE.js +0 -83
- package/dist/dist/components/movemH2hKtp1.js +0 -1
- package/dist/dist/components/processBqhO-55V.js +0 -1
- package/dist/dist/components/rotateBdsvaWJ_.js +0 -140
- package/dist/dist/components/rotateCyw4Ggca.js +0 -1
- package/dist/dist/components/settingC3yidTns.js +0 -156
- package/dist/dist/components/settingDDEEOrtI.js +0 -1
- package/dist/dist/components/zoomCWKzKF3-.js +0 -1
- package/dist/dist/components/zoomcWHR4OY6.js +0 -72
- package/dist/dist/index.css +0 -1
- package/dist/package.json +0 -39
- /package/dist/{dist/components → components}/lineBIoJpzbf.js +0 -0
- /package/dist/{dist/components → components}/lineCzuS7Giu.js +0 -0
- /package/{dist/types → types}/components/KfbIcon.vue.d.ts +0 -0
- /package/{dist/types → types}/components/KfbImage.vue.d.ts +0 -0
- /package/{dist/types → types}/components/KfbSlideList.vue.d.ts +0 -0
- /package/{dist/types → types}/components/KfbToolConfig.vue.d.ts +0 -0
- /package/{dist/types → types}/components/KfbToolbox.vue.d.ts +0 -0
- /package/{dist/types → types}/components/KfbView/KfbChannel.vue.d.ts +0 -0
- /package/{dist/types → types}/components/KfbView/KfbKeyword.vue.d.ts +0 -0
- /package/{dist/types → types}/components/KfbView/KfbLabel.vue.d.ts +0 -0
- /package/{dist/types → types}/components/KfbView/KfbLevel.vue.d.ts +0 -0
- /package/{dist/types → types}/components/KfbView/KfbMenu.vue.d.ts +0 -0
- /package/{dist/types → types}/components/KfbView/KfbMicroscope.vue.d.ts +0 -0
- /package/{dist/types → types}/components/KfbView/index.d.ts +0 -0
- /package/{dist/types → types}/components/KfbView/index.vue.d.ts +0 -0
- /package/{dist/types → types}/components/KfbView/useDot.d.ts +0 -0
- /package/{dist/types → types}/components/KfbView/useHotmap.d.ts +0 -0
- /package/{dist/types → types}/components/KfbView/useImageProcess.d.ts +0 -0
- /package/{dist/types → types}/components/KfbView/useMove.d.ts +0 -0
- /package/{dist/types → types}/components/KfbView/usePointer.d.ts +0 -0
- /package/{dist/types → types}/components/KfbView/useSync.d.ts +0 -0
- /package/{dist/types → types}/components/KfbView/useTailor.d.ts +0 -0
- /package/{dist/types → types}/components/KfbView/useVoice.d.ts +0 -0
- /package/{dist/types → types}/components/ai/list.vue.d.ts +0 -0
- /package/{dist/types → types}/components/ai/useAi.d.ts +0 -0
- /package/{dist/types → types}/components/icon/annotate.vue.d.ts +0 -0
- /package/{dist/types → types}/components/icon/arrow.vue.d.ts +0 -0
- /package/{dist/types → types}/components/icon/arrowDown.vue.d.ts +0 -0
- /package/{dist/types → types}/components/icon/arrowLeft.vue.d.ts +0 -0
- /package/{dist/types → types}/components/icon/arrowRight.vue.d.ts +0 -0
- /package/{dist/types → types}/components/icon/arrowUp.vue.d.ts +0 -0
- /package/{dist/types → types}/components/icon/channel.vue.d.ts +0 -0
- /package/{dist/types → types}/components/icon/check.vue.d.ts +0 -0
- /package/{dist/types → types}/components/icon/config.vue.d.ts +0 -0
- /package/{dist/types → types}/components/icon/delete.vue.d.ts +0 -0
- /package/{dist/types → types}/components/icon/dot.vue.d.ts +0 -0
- /package/{dist/types → types}/components/icon/download.vue.d.ts +0 -0
- /package/{dist/types → types}/components/icon/flip.vue.d.ts +0 -0
- /package/{dist/types → types}/components/icon/fullscreen.vue.d.ts +0 -0
- /package/{dist/types → types}/components/icon/index.d.ts +0 -0
- /package/{dist/types → types}/components/icon/info.vue.d.ts +0 -0
- /package/{dist/types → types}/components/icon/level.vue.d.ts +0 -0
- /package/{dist/types → types}/components/icon/list.vue.d.ts +0 -0
- /package/{dist/types → types}/components/icon/menu.vue.d.ts +0 -0
- /package/{dist/types → types}/components/icon/microscope.vue.d.ts +0 -0
- /package/{dist/types → types}/components/icon/move.vue.d.ts +0 -0
- /package/{dist/types → types}/components/icon/next.vue.d.ts +0 -0
- /package/{dist/types → types}/components/icon/prev.vue.d.ts +0 -0
- /package/{dist/types → types}/components/icon/process.vue.d.ts +0 -0
- /package/{dist/types → types}/components/icon/rotate.vue.d.ts +0 -0
- /package/{dist/types → types}/components/icon/setting.vue.d.ts +0 -0
- /package/{dist/types → types}/components/icon/tailor.vue.d.ts +0 -0
- /package/{dist/types → types}/components/icon/zoomIn.vue.d.ts +0 -0
- /package/{dist/types → types}/components/toolbox/annotate.vue.d.ts +0 -0
- /package/{dist/types → types}/components/toolbox/custom.vue.d.ts +0 -0
- /package/{dist/types → types}/components/toolbox/dot.vue.d.ts +0 -0
- /package/{dist/types → types}/components/toolbox/download.vue.d.ts +0 -0
- /package/{dist/types → types}/components/toolbox/fullscreen.vue.d.ts +0 -0
- /package/{dist/types → types}/components/toolbox/instances.d.ts +0 -0
- /package/{dist/types → types}/components/toolbox/microscope.vue.d.ts +0 -0
- /package/{dist/types → types}/components/toolbox/move.vue.d.ts +0 -0
- /package/{dist/types → types}/components/toolbox/process.vue.d.ts +0 -0
- /package/{dist/types → types}/components/toolbox/rotate.vue.d.ts +0 -0
- /package/{dist/types → types}/components/toolbox/setting.vue.d.ts +0 -0
- /package/{dist/types → types}/components/toolbox/useCommon.d.ts +0 -0
- /package/{dist/types → types}/components/toolbox/zoom.vue.d.ts +0 -0
- /package/{dist/types → types}/index.d.ts +0 -0
- /package/{dist/types → types}/index.vue.d.ts +0 -0
- /package/{dist/types → types}/instances.d.ts +0 -0
- /package/{dist/types → types}/plugins/i18n.d.ts +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),t=require("./indexMzBpWXyM.js"),c=require("./useCommonDf_LQLq6.js"),o=require("element-plus"),_=require("./annotateC9P_HUni.js"),v=["onClick"],x=["src","alt"],C=e.defineComponent({name:"ToolAnnotate",__name:"annotate",props:e.mergeDefaults({size:{},text:{},name:{},component:{},isPrevent:{type:Boolean},callback:{type:Function}},c.defaultProps),emits:["tool"],setup(b,{emit:i}){const u=i,{t:l,textClass:d}=c.useCommon(),s={line:t.line,arrow:t.arrow,bilateral:t.bilateral,rectangle:t.rectangle,ellipse:t.ellipse,polygon:t.polygon,star:t.star,flag:t.flag,dot:t.dot,font:t.font,voice:t.voice},f=Object.keys(s).map(n=>({name:n,src:s[n]})),a=e.ref(!1);function p(n){a.value=!1,u("tool","annotate",{tool:n.substring(0,1).toLocaleUpperCase()+n.substring(1)})}function m(){a.value=!a.value}return(n,y)=>(e.openBlock(),e.createBlock(e.unref(o.ElPopover),{visible:a.value,"popper-class":"el-popover-padding-0",placement:"bottom",width:"220px",trigger:"click"},{reference:e.withCtx(()=>[e.createElementVNode("div",{class:"hzzt-kfb-toolbox__icon",onClick:m},[e.createVNode(e.unref(o.ElIcon),{size:n.size},{default:e.withCtx(()=>[e.createVNode(_.default)]),_:1},8,["size"]),e.createElementVNode("div",{class:e.normalizeClass(e.unref(d))},e.toDisplayString(e.unref(l)(n.text||"标注")),3)])]),default:e.withCtx(()=>[e.createVNode(e.unref(o.ElCard),{shadow:"never",header:e.unref(l)("标注工具"),"body-style":{padding:"8px"}},{default:e.withCtx(()=>[e.createElementVNode("div",null,[e.createVNode(e.unref(o.ElText),{type:"danger"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(l)("按ESC可退出标注模式")),1)]),_:1})]),e.createElementVNode("div",null,[e.createVNode(e.unref(o.ElText),{type:"danger"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(l)("点击标注按Delete键可删除标注")),1)]),_:1})]),e.createVNode(e.unref(o.ElRow),null,{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(f),(r,g)=>(e.openBlock(),e.createBlock(e.unref(o.ElCol),{key:g,class:"flex justify-content-center align-items-center",span:8},{default:e.withCtx(()=>[e.createElementVNode("div",{class:"hzzt-kfb-toolbox-annotate-img",onClick:E=>p(r.name)},[e.createElementVNode("img",{style:{width:"100%"},src:r.src,alt:r.name},null,8,x)],8,v)]),_:2},1024))),128))]),_:1})]),_:1},8,["header"])]),_:1},8,["visible"]))}}),h=t._export_sfc(C,[["__scopeId","data-v-71f2944f"]]);exports.default=h;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),L=require("./
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),L=require("./indexMzBpWXyM.js"),o={},r={viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"};function n(c,t){return e.openBlock(),e.createElementBlock("svg",r,t[0]||(t[0]=[e.createStaticVNode('<g id="24*24/修改"><g id="修改"><g id="Vector"><path d="M11.9139 5.38836L18.2712 10.0097L18.601 7.21173L14.6353 4.16692L11.9139 5.38836Z"></path><path d="M4.81541 14.8397L11.0512 19.6226L17.4062 11.171L11.0489 6.54963L4.81541 14.8397Z"></path><path d="M3.99135 15.9356L5.79998 20.0686L10.2256 20.7206L3.99135 15.9356Z"></path><path fill-rule="evenodd" clip-rule="evenodd" d="M11.0512 19.6226L17.4062 11.171L18.2712 10.0097L18.601 7.21173L14.6353 4.16692L11.9139 5.38836L11.0489 6.54963L4.81541 14.8397L3.99135 15.9356L5.79998 20.0686L10.2256 20.7206L11.0512 19.6226ZM3.99135 15.9356L14.3518 2.15699L20.5861 6.942L10.2256 20.7206L4.52996 21.769L3.99135 15.9356Z"></path></g></g></g>',1)]))}const d=L._export_sfc(o,[["render",n]]);exports.default=d;
|
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
import { defineComponent as h, mergeDefaults as k, ref as y, createBlock as d, openBlock as i, unref as e, withCtx as o, createVNode as a, createElementVNode as s, createTextVNode as f, toDisplayString as c, createElementBlock as z, Fragment as E, renderList as w, normalizeClass as B } from "vue";
|
|
2
|
+
import { v as D, f as N, d as P, a as T, s as V, p as j, e as F, r as I, b as L, c as S, l as A, _ as O } from "./indexCbr7K6Yq.js";
|
|
3
|
+
import { u as R, d as U } from "./useCommonBCMuQZUh.js";
|
|
4
|
+
import { ElPopover as $, ElCard as q, ElText as m, ElRow as G, ElCol as H, ElIcon as J } from "element-plus";
|
|
5
|
+
import K from "./annotate2o-1dfLI.js";
|
|
6
|
+
const M = ["onClick"], Q = ["src", "alt"], W = /* @__PURE__ */ h({
|
|
7
|
+
name: "ToolAnnotate",
|
|
8
|
+
__name: "annotate",
|
|
9
|
+
props: /* @__PURE__ */ k({
|
|
10
|
+
size: {},
|
|
11
|
+
text: {},
|
|
12
|
+
name: {},
|
|
13
|
+
component: {},
|
|
14
|
+
isPrevent: { type: Boolean },
|
|
15
|
+
callback: { type: Function }
|
|
16
|
+
}, U),
|
|
17
|
+
emits: ["tool"],
|
|
18
|
+
setup(X, { emit: u }) {
|
|
19
|
+
const _ = u, { t: l, textClass: v } = R(), p = {
|
|
20
|
+
line: A,
|
|
21
|
+
arrow: S,
|
|
22
|
+
bilateral: L,
|
|
23
|
+
rectangle: I,
|
|
24
|
+
ellipse: F,
|
|
25
|
+
polygon: j,
|
|
26
|
+
star: V,
|
|
27
|
+
flag: T,
|
|
28
|
+
dot: P,
|
|
29
|
+
font: N,
|
|
30
|
+
voice: D
|
|
31
|
+
}, g = Object.keys(p).map((t) => ({
|
|
32
|
+
name: t,
|
|
33
|
+
src: p[t]
|
|
34
|
+
})), n = y(!1);
|
|
35
|
+
function b(t) {
|
|
36
|
+
n.value = !1, _("tool", "annotate", {
|
|
37
|
+
tool: t.substring(0, 1).toLocaleUpperCase() + t.substring(1)
|
|
38
|
+
});
|
|
39
|
+
}
|
|
40
|
+
function x() {
|
|
41
|
+
n.value = !n.value;
|
|
42
|
+
}
|
|
43
|
+
return (t, Y) => (i(), d(e($), {
|
|
44
|
+
visible: n.value,
|
|
45
|
+
"popper-class": "el-popover-padding-0",
|
|
46
|
+
placement: "bottom",
|
|
47
|
+
width: "220px",
|
|
48
|
+
trigger: "click"
|
|
49
|
+
}, {
|
|
50
|
+
reference: o(() => [
|
|
51
|
+
s("div", {
|
|
52
|
+
class: "hzzt-kfb-toolbox__icon",
|
|
53
|
+
onClick: x
|
|
54
|
+
}, [
|
|
55
|
+
a(e(J), { size: t.size }, {
|
|
56
|
+
default: o(() => [
|
|
57
|
+
a(K)
|
|
58
|
+
]),
|
|
59
|
+
_: 1
|
|
60
|
+
}, 8, ["size"]),
|
|
61
|
+
s("div", {
|
|
62
|
+
class: B(e(v))
|
|
63
|
+
}, c(e(l)(t.text || "标注")), 3)
|
|
64
|
+
])
|
|
65
|
+
]),
|
|
66
|
+
default: o(() => [
|
|
67
|
+
a(e(q), {
|
|
68
|
+
shadow: "never",
|
|
69
|
+
header: e(l)("标注工具"),
|
|
70
|
+
"body-style": { padding: "8px" }
|
|
71
|
+
}, {
|
|
72
|
+
default: o(() => [
|
|
73
|
+
s("div", null, [
|
|
74
|
+
a(e(m), { type: "danger" }, {
|
|
75
|
+
default: o(() => [
|
|
76
|
+
f(c(e(l)("按ESC可退出标注模式")), 1)
|
|
77
|
+
]),
|
|
78
|
+
_: 1
|
|
79
|
+
})
|
|
80
|
+
]),
|
|
81
|
+
s("div", null, [
|
|
82
|
+
a(e(m), { type: "danger" }, {
|
|
83
|
+
default: o(() => [
|
|
84
|
+
f(c(e(l)("点击标注按Delete键可删除标注")), 1)
|
|
85
|
+
]),
|
|
86
|
+
_: 1
|
|
87
|
+
})
|
|
88
|
+
]),
|
|
89
|
+
a(e(G), null, {
|
|
90
|
+
default: o(() => [
|
|
91
|
+
(i(!0), z(E, null, w(e(g), (r, C) => (i(), d(e(H), {
|
|
92
|
+
key: C,
|
|
93
|
+
class: "flex justify-content-center align-items-center",
|
|
94
|
+
span: 8
|
|
95
|
+
}, {
|
|
96
|
+
default: o(() => [
|
|
97
|
+
s("div", {
|
|
98
|
+
class: "hzzt-kfb-toolbox-annotate-img",
|
|
99
|
+
onClick: (Z) => b(r.name)
|
|
100
|
+
}, [
|
|
101
|
+
s("img", {
|
|
102
|
+
style: { width: "100%" },
|
|
103
|
+
src: r.src,
|
|
104
|
+
alt: r.name
|
|
105
|
+
}, null, 8, Q)
|
|
106
|
+
], 8, M)
|
|
107
|
+
]),
|
|
108
|
+
_: 2
|
|
109
|
+
}, 1024))), 128))
|
|
110
|
+
]),
|
|
111
|
+
_: 1
|
|
112
|
+
})
|
|
113
|
+
]),
|
|
114
|
+
_: 1
|
|
115
|
+
}, 8, ["header"])
|
|
116
|
+
]),
|
|
117
|
+
_: 1
|
|
118
|
+
}, 8, ["visible"]));
|
|
119
|
+
}
|
|
120
|
+
}), le = /* @__PURE__ */ O(W, [["__scopeId", "data-v-71f2944f"]]);
|
|
121
|
+
export {
|
|
122
|
+
le as default
|
|
123
|
+
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),r=require("./
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),r=require("./indexMzBpWXyM.js"),o={},n={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"};function c(s,t){return e.openBlock(),e.createElementBlock("svg",n,t[0]||(t[0]=[e.createElementVNode("path",{fill:"currentColor",d:"M104.704 338.752a64 64 0 0 1 90.496 0l316.8 316.8 316.8-316.8a64 64 0 0 1 90.496 90.496L557.248 791.296a64 64 0 0 1-90.496 0L104.704 429.248a64 64 0 0 1 0-90.496z"},null,-1)]))}const l=r._export_sfc(o,[["render",c]]);exports.default=l;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),r=require("./
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),r=require("./indexMzBpWXyM.js"),o={},n={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"};function l(s,t){return e.openBlock(),e.createElementBlock("svg",n,t[0]||(t[0]=[e.createElementVNode("path",{fill:"currentColor",d:"M685.248 104.704a64 64 0 0 1 0 90.496L368.448 512l316.8 316.8a64 64 0 0 1-90.496 90.496L232.704 557.248a64 64 0 0 1 0-90.496l362.048-362.048a64 64 0 0 1 90.496 0z"},null,-1)]))}const c=r._export_sfc(o,[["render",l]]);exports.default=c;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),r=require("./
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),r=require("./indexMzBpWXyM.js"),o={},n={"data-v-be2211c4":"",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"};function c(s,t){return e.openBlock(),e.createElementBlock("svg",n,t[0]||(t[0]=[e.createElementVNode("path",{fill:"currentColor",d:"M338.752 104.704a64 64 0 0 0 0 90.496l316.8 316.8-316.8 316.8a64 64 0 0 0 90.496 90.496l362.048-362.048a64 64 0 0 0 0-90.496L429.248 104.704a64 64 0 0 0-90.496 0z"},null,-1)]))}const l=r._export_sfc(o,[["render",c]]);exports.default=l;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),r=require("./
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),r=require("./indexMzBpWXyM.js"),o={},n={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"};function c(s,t){return e.openBlock(),e.createElementBlock("svg",n,t[0]||(t[0]=[e.createElementVNode("path",{fill:"currentColor",d:"M104.704 685.248a64 64 0 0 0 90.496 0l316.8-316.8 316.8 316.8a64 64 0 0 0 90.496-90.496L557.248 232.704a64 64 0 0 0-90.496 0L104.704 594.752a64 64 0 0 0 0 90.496z"},null,-1)]))}const l=r._export_sfc(o,[["render",c]]);exports.default=l;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),n=require("./
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),n=require("./indexMzBpWXyM.js"),o={},r={width:"64",height:"64",viewBox:"0 0 64 64",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function l(i,t){return e.openBlock(),e.createElementBlock("svg",r,t[0]||(t[0]=[e.createElementVNode("path",{d:"M61 32C61 15.9837 48.0163 3 32 3C15.9837 3 3 15.9837 3 32C3 48.0163 15.9837 61 32 61V64C14.3269 64 0 49.6731 0 32C0 14.3269 14.3269 0 32 0C49.6731 0 64 14.3269 64 32C64 49.6731 49.6731 64 32 64V61C48.0163 61 61 48.0163 61 32Z",fill:"#5594F7"},null,-1),e.createElementVNode("path",{d:"M11 46L32 10L53 46L32 33.5L11 46Z",fill:"#5594F7"},null,-1)]))}const c=n._export_sfc(o,[["render",l]]);exports.default=c;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),a=require("./
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),a=require("./indexMzBpWXyM.js"),c={},l={viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"64",height:"64"};function n(d,t){return e.openBlock(),e.createElementBlock("svg",l,t[0]||(t[0]=[e.createElementVNode("path",{d:"M512 0C229.302857 0 0 229.302857 0 512c0 93.257143 25.234286 180.297143 68.754286 255.634286L512 512V0z",fill:"#d81e06","data-spm-anchor-id":"a313x.search_index.0.i9.3dfc3a81UyqIlJ",class:""},null,-1),e.createElementVNode("path",{d:"M512 512L68.754286 767.634286C157.257143 920.502857 322.194286 1024 512 1024s354.377143-103.131429 443.245714-256.365714L512 512z",fill:"#1afa29","data-spm-anchor-id":"a313x.search_index.0.i7.3dfc3a81UyqIlJ",class:""},null,-1),e.createElementVNode("path",{d:"M512 0v512l443.245714 255.634286C998.765714 692.297143 1024 605.257143 1024 512c0-282.697143-229.302857-512-512-512z",fill:"#13227a","data-spm-anchor-id":"a313x.search_index.0.i10.3dfc3a81UyqIlJ",class:"selected"},null,-1)]))}const s=a._export_sfc(c,[["render",n]]);exports.default=s;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { createElementBlock as t, openBlock as o, createElementVNode as r } from "vue";
|
|
2
|
-
import { _ as f } from "./
|
|
2
|
+
import { _ as f } from "./indexCbr7K6Yq.js";
|
|
3
3
|
const n = {}, l = {
|
|
4
4
|
viewBox: "0 0 1024 1024",
|
|
5
5
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),n=require("./
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),n=require("./indexMzBpWXyM.js"),o={},r={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg","p-id":"2295",width:"32",height:"32"};function c(i,t){return e.openBlock(),e.createElementBlock("svg",r,t[0]||(t[0]=[e.createElementVNode("path",{d:"M1002.81 144.43a64 64 0 0 0-90.38 4.76L381.56 739l-272.3-272.3a64 64 0 0 0-90.51 90.51l320 320A64 64 0 0 0 384 896h1.68a64 64 0 0 0 45.89-21.16l576-640a64 64 0 0 0-4.76-90.41z","p-id":"2296",fill:"#ffffff"},null,-1)]))}const l=n._export_sfc(o,[["render",c]]);exports.default=l;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),t=require("./
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),t=require("./indexMzBpWXyM.js"),n={},o={viewBox:"0 0 1024 1024",width:"64",height:"64"};function r(s,c){return e.openBlock(),e.createElementBlock("svg",o,c[0]||(c[0]=[e.createElementVNode("path",{d:"M492 451.6c-8.4 11.1-20.4 19.5-34.8 23.3-75 19.8-211.1 45.3-279.3-6.1C88.6 401.4 70.8 274 138.2 184.7S333 77.6 422.3 145c68.2 51.5 80.9 189.3 82.4 266.9 0.4 14.7-4.3 28.5-12.7 39.7zM192.2 225.3c-44.9 59.5-33.1 144.5 26.5 189.4 31.4 23.7 116.9 21.9 218.4-4.5-2.4-104.9-24.1-187.6-55.5-211.3-59.5-45-144.4-33.1-189.4 26.4zM520.6 411.8c1.5-77.6 14.3-215.4 82.4-266.9 89.3-67.4 216.7-49.6 284.1 39.7s49.6 216.7-39.7 284.1c-68.2 51.5-204.2 25.9-279.3 6.1-14.3-3.8-26.4-12.1-34.8-23.3-8.3-11.1-13-24.9-12.7-39.7z m123.1-213c-31.4 23.7-53.1 106.5-55.5 211.3 101.5 26.4 187.1 28.2 218.4 4.5 59.5-44.9 71.4-129.9 26.5-189.4s-129.8-71.3-189.4-26.4zM504.8 614.3c-1.5 77.6-14.3 215.4-82.4 266.9-89.3 67.4-216.7 49.6-284.1-39.7S88.7 624.8 178 557.4c68.2-51.5 204.2-25.9 279.3-6.1 14.3 3.8 26.4 12.1 34.8 23.3 8.3 11.1 13 24.9 12.7 39.7z m-123.1 213c31.4-23.7 53.1-106.5 55.5-211.3-101.5-26.4-187.1-28.2-218.4-4.5-59.5 44.9-71.4 129.9-26.5 189.4 44.9 59.4 129.8 71.3 189.4 26.4zM533.4 574.5c8.4-11.1 20.4-19.5 34.8-23.3 75-19.8 211.1-45.3 279.3 6.1 89.3 67.4 107.1 194.8 39.7 284.1S692.3 948.6 603 881.2c-68.2-51.5-80.9-189.3-82.4-266.9-0.3-14.8 4.4-28.6 12.8-39.8z m299.8 226.3c44.9-59.5 33.1-144.5-26.5-189.4-31.4-23.7-116.9-21.9-218.4 4.5 2.4 104.9 24.1 187.6 55.5 211.3 59.5 45 144.4 33.1 189.4-26.4z",fill:"currentColor","p-id":"12356"},null,-1)]))}const i=t._export_sfc(n,[["render",r]]);exports.default=i;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { defineComponent as p, mergeDefaults as f, ref as u, createElementBlock as d, openBlock as t, createBlock as k, createElementVNode as z, resolveDynamicComponent as C, normalizeClass as v, unref as n, renderSlot as y, createTextVNode as _, toDisplayString as B } from "vue";
|
|
2
|
+
import { u as b, d as h } from "./useCommonBCMuQZUh.js";
|
|
3
|
+
const g = /* @__PURE__ */ p({
|
|
4
|
+
name: "ToolCustom",
|
|
5
|
+
__name: "custom",
|
|
6
|
+
props: /* @__PURE__ */ f({
|
|
7
|
+
size: {},
|
|
8
|
+
text: {},
|
|
9
|
+
name: {},
|
|
10
|
+
component: {},
|
|
11
|
+
isPrevent: { type: Boolean },
|
|
12
|
+
callback: { type: Function }
|
|
13
|
+
}, h),
|
|
14
|
+
emits: ["tool"],
|
|
15
|
+
setup(s, { emit: l }) {
|
|
16
|
+
const a = s, r = l, { t: m, textClass: c } = b(), o = u();
|
|
17
|
+
function i() {
|
|
18
|
+
r("tool", a.name || "", o.value);
|
|
19
|
+
}
|
|
20
|
+
return (e, x) => (t(), d("div", {
|
|
21
|
+
ref_key: "toolRef",
|
|
22
|
+
ref: o,
|
|
23
|
+
class: "hzzt-kfb-toolbox__icon",
|
|
24
|
+
onClick: i
|
|
25
|
+
}, [
|
|
26
|
+
(t(), k(C(e.component), { size: e.size }, null, 8, ["size"])),
|
|
27
|
+
z("div", {
|
|
28
|
+
class: v(n(c))
|
|
29
|
+
}, [
|
|
30
|
+
y(e.$slots, "default", {}, () => [
|
|
31
|
+
_(B(n(m)(e.text || " ")), 1)
|
|
32
|
+
])
|
|
33
|
+
], 2)
|
|
34
|
+
], 512));
|
|
35
|
+
}
|
|
36
|
+
});
|
|
37
|
+
export {
|
|
38
|
+
g as default
|
|
39
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),n=require("./useCommonDf_LQLq6.js"),u=e.defineComponent({name:"ToolCustom",__name:"custom",props:e.mergeDefaults({size:{},text:{},name:{},component:{},isPrevent:{type:Boolean},callback:{type:Function}},n.defaultProps),emits:["tool"],setup(l,{emit:s}){const r=l,c=s,{t:a,textClass:i}=n.useCommon(),t=e.ref();function m(){c("tool",r.name||"",t.value)}return(o,f)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"toolRef",ref:t,class:"hzzt-kfb-toolbox__icon",onClick:m},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(o.component),{size:o.size},null,8,["size"])),e.createElementVNode("div",{class:e.normalizeClass(e.unref(i))},[e.renderSlot(o.$slots,"default",{},()=>[e.createTextVNode(e.toDisplayString(e.unref(a)(o.text||" ")),1)])],2)],512))}});exports.default=u;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),r=require("./
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),r=require("./indexMzBpWXyM.js"),n={},o={viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"};function l(c,t){return e.openBlock(),e.createElementBlock("svg",o,t[0]||(t[0]=[e.createElementVNode("path",{d:"M256 170.667h512V85.333H256v85.334z m597.333 0h128a42.667 42.667 0 1 1 0 85.333H42.667a42.667 42.667 0 0 1 0-85.333h128V85.333A85.333 85.333 0 0 1 256 0h512a85.333 85.333 0 0 1 85.333 85.333v85.334z m-768 170.666a42.667 42.667 0 0 1 85.334 0h682.666a42.667 42.667 0 1 1 85.334 0v597.334A85.333 85.333 0 0 1 853.333 1024H170.667a85.333 85.333 0 0 1-85.334-85.333V341.333z m85.334 0v597.334h682.666V341.333H170.667z",fill:"currentColor"},null,-1),e.createElementVNode("path",{d:"M384 298.667a42.667 42.667 0 0 1 42.667 42.666v469.334a42.667 42.667 0 0 1-85.334 0V341.333A42.667 42.667 0 0 1 384 298.667z m256 0a42.667 42.667 0 0 1 42.667 42.666v469.334a42.667 42.667 0 0 1-85.334 0V341.333A42.667 42.667 0 0 1 640 298.667z",fill:"currentColor"},null,-1)]))}const a=r._export_sfc(n,[["render",l]]);exports.default=a;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),c=require("./
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),c=require("./indexMzBpWXyM.js"),n={},o={t:"1717224898796",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"2344",width:"128",height:"128"};function r(s,t){return e.openBlock(),e.createElementBlock("svg",o,t[0]||(t[0]=[e.createElementVNode("path",{d:"M512 427.023m-90 0a90 90 0 1 0 180 0 90 90 0 1 0-180 0Z","p-id":"2345"},null,-1),e.createElementVNode("path",{d:"M512 910.402c-19.14 0-37.482-5.854-53.042-16.929-14.063-10.01-24.926-23.596-31.589-39.46L255.043 585.177l-0.154-0.25C225.522 537.209 210 482.605 210 427.021c0-80.667 31.414-156.506 88.454-213.546S431.333 125.021 512 125.021s156.506 31.414 213.546 88.454C782.587 270.515 814 346.354 814 427.021c0 55.849-15.655 110.671-45.274 158.539l-0.264 0.419-172.081 268.716c-6.755 15.726-17.66 29.176-31.704 39.055-15.485 10.895-33.7 16.652-52.677 16.652zM309.246 551.141l175.494 273.78 1.194 3.197c4.149 11.107 14.381 18.284 26.066 18.284 11.584 0 21.791-7.071 26.004-18.015l1.165-3.028L714.43 551.678C737.701 513.983 750 470.884 750 427.021c0-63.572-24.756-123.339-69.709-168.292-44.952-44.951-104.719-69.708-168.291-69.708s-123.339 24.756-168.292 69.708S274 363.449 274 427.021c0 43.64 12.186 86.552 35.246 124.12z","p-id":"2346"},null,-1)]))}const l=c._export_sfc(n,[["render",r]]);exports.default=l;
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
import { defineComponent as y, mergeDefaults as z, ref as p, inject as E, watch as F, createBlock as k, openBlock as i, unref as a, withCtx as s, createVNode as u, createElementVNode as c, toDisplayString as f, createElementBlock as b, Fragment as w, renderList as B, normalizeStyle as D, createCommentVNode as S, normalizeClass as V } from "vue";
|
|
2
|
+
import { u as A, d as L } from "./useCommonBCMuQZUh.js";
|
|
3
|
+
import N from "./dotB2osXT1L.js";
|
|
4
|
+
import P from "./checkDCUaoqtc.js";
|
|
5
|
+
import { ElPopover as j, ElCard as I, ElIcon as h } from "element-plus";
|
|
6
|
+
import { _ as T } from "./indexCbr7K6Yq.js";
|
|
7
|
+
const $ = { class: "margin-b-1" }, q = { class: "flex align-items-center" }, G = ["onClick"], H = /* @__PURE__ */ y({
|
|
8
|
+
name: "ToolDot",
|
|
9
|
+
__name: "dot",
|
|
10
|
+
props: /* @__PURE__ */ z({
|
|
11
|
+
size: {},
|
|
12
|
+
text: {},
|
|
13
|
+
name: {},
|
|
14
|
+
component: {},
|
|
15
|
+
isPrevent: { type: Boolean },
|
|
16
|
+
callback: { type: Function }
|
|
17
|
+
}, L),
|
|
18
|
+
emits: ["tool"],
|
|
19
|
+
setup(J, { emit: _ }) {
|
|
20
|
+
const v = _, { t: m, textClass: C } = A(), n = p(!1), r = p([
|
|
21
|
+
{ label: "#004BFF", value: 0, checked: !1 },
|
|
22
|
+
{ label: "#FF4B40", value: 0, checked: !1 },
|
|
23
|
+
{ label: "#FFAA00", value: 0, checked: !1 },
|
|
24
|
+
{ label: "#51C964", value: 0, checked: !1 },
|
|
25
|
+
{ label: "#00BEFF", value: 0, checked: !1 },
|
|
26
|
+
{ label: "#8C58CE", value: 0, checked: !1 },
|
|
27
|
+
{ label: "#F261A7", value: 0, checked: !1 }
|
|
28
|
+
]), d = E("kfbViewRef");
|
|
29
|
+
F(() => {
|
|
30
|
+
var e, l;
|
|
31
|
+
return (l = (e = d == null ? void 0 : d.value) == null ? void 0 : e.kfbView) == null ? void 0 : l.labelList;
|
|
32
|
+
}, (e) => {
|
|
33
|
+
r.value.forEach((l) => {
|
|
34
|
+
var o;
|
|
35
|
+
l.value = (o = (e || []).filter((t) => (t == null ? void 0 : t.custom) && (t == null ? void 0 : t.strokeStyle) === l.label && (t == null ? void 0 : t.tool) === "Dot")) == null ? void 0 : o.length;
|
|
36
|
+
});
|
|
37
|
+
});
|
|
38
|
+
function g(e) {
|
|
39
|
+
r.value.forEach((l) => {
|
|
40
|
+
l.checked = !1;
|
|
41
|
+
}), e.checked = !0, v("tool", "annotate", {
|
|
42
|
+
strokeStyle: e.label,
|
|
43
|
+
tool: "Dot",
|
|
44
|
+
once: !1,
|
|
45
|
+
custom: !0,
|
|
46
|
+
subType: "count"
|
|
47
|
+
});
|
|
48
|
+
}
|
|
49
|
+
function x() {
|
|
50
|
+
n.value = !n.value, n.value || r.value.forEach((e) => {
|
|
51
|
+
e.checked = !1;
|
|
52
|
+
}), v("tool", "endDraw");
|
|
53
|
+
}
|
|
54
|
+
return (e, l) => (i(), k(a(j), {
|
|
55
|
+
visible: n.value,
|
|
56
|
+
"popper-class": "el-popover-padding-0",
|
|
57
|
+
placement: "bottom",
|
|
58
|
+
width: "300px",
|
|
59
|
+
trigger: "click"
|
|
60
|
+
}, {
|
|
61
|
+
reference: s(() => [
|
|
62
|
+
c("div", {
|
|
63
|
+
class: "hzzt-kfb-toolbox__icon",
|
|
64
|
+
onClick: l[0] || (l[0] = (o) => x())
|
|
65
|
+
}, [
|
|
66
|
+
u(a(h), { size: e.size }, {
|
|
67
|
+
default: s(() => [
|
|
68
|
+
u(N)
|
|
69
|
+
]),
|
|
70
|
+
_: 1
|
|
71
|
+
}, 8, ["size"]),
|
|
72
|
+
c("div", {
|
|
73
|
+
class: V(a(C))
|
|
74
|
+
}, f(a(m)(e.text || "打点")), 3)
|
|
75
|
+
])
|
|
76
|
+
]),
|
|
77
|
+
default: s(() => [
|
|
78
|
+
u(a(I), { shadow: "never" }, {
|
|
79
|
+
default: s(() => [
|
|
80
|
+
c("div", null, [
|
|
81
|
+
c("p", $, f(a(m)("按下ESC键结束打点操作")), 1),
|
|
82
|
+
c("div", q, [
|
|
83
|
+
(i(!0), b(w, null, B(r.value, (o) => (i(), b("div", {
|
|
84
|
+
key: o.label,
|
|
85
|
+
class: "flex column align-items-center"
|
|
86
|
+
}, [
|
|
87
|
+
c("div", {
|
|
88
|
+
style: D({ "background-color": o.label }),
|
|
89
|
+
class: "hzzt-kfb-toolbox-dot__box flex justify-content-center align-items-center",
|
|
90
|
+
onClick: (t) => g(o)
|
|
91
|
+
}, [
|
|
92
|
+
u(a(h), { size: "16" }, {
|
|
93
|
+
default: s(() => [
|
|
94
|
+
o.checked ? (i(), k(P, { key: 0 })) : S("", !0)
|
|
95
|
+
]),
|
|
96
|
+
_: 2
|
|
97
|
+
}, 1024)
|
|
98
|
+
], 12, G),
|
|
99
|
+
c("p", null, f(o.value ? o.value : " "), 1)
|
|
100
|
+
]))), 128))
|
|
101
|
+
])
|
|
102
|
+
])
|
|
103
|
+
]),
|
|
104
|
+
_: 1
|
|
105
|
+
})
|
|
106
|
+
]),
|
|
107
|
+
_: 1
|
|
108
|
+
}, 8, ["visible"]));
|
|
109
|
+
}
|
|
110
|
+
}), W = /* @__PURE__ */ T(H, [["__scopeId", "data-v-ca4687d6"]]);
|
|
111
|
+
export {
|
|
112
|
+
W as default
|
|
113
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),d=require("./useCommonDf_LQLq6.js"),p=require("./dotBXbuJdtx.js"),h=require("./checkDv3SyUAt.js"),r=require("element-plus"),b=require("./indexMzBpWXyM.js"),C={class:"margin-b-1"},_={class:"flex align-items-center"},E=["onClick"],g=e.defineComponent({name:"ToolDot",__name:"dot",props:e.mergeDefaults({size:{},text:{},name:{},component:{},isPrevent:{type:Boolean},callback:{type:Function}},d.defaultProps),emits:["tool"],setup(y,{emit:f}){const u=f,{t:i,textClass:v}=d.useCommon(),n=e.ref(!1),c=e.ref([{label:"#004BFF",value:0,checked:!1},{label:"#FF4B40",value:0,checked:!1},{label:"#FFAA00",value:0,checked:!1},{label:"#51C964",value:0,checked:!1},{label:"#00BEFF",value:0,checked:!1},{label:"#8C58CE",value:0,checked:!1},{label:"#F261A7",value:0,checked:!1}]),s=e.inject("kfbViewRef");e.watch(()=>{var l,t;return(t=(l=s==null?void 0:s.value)==null?void 0:l.kfbView)==null?void 0:t.labelList},l=>{c.value.forEach(t=>{var o;t.value=(o=(l||[]).filter(a=>(a==null?void 0:a.custom)&&(a==null?void 0:a.strokeStyle)===t.label&&(a==null?void 0:a.tool)==="Dot"))==null?void 0:o.length})});function k(l){c.value.forEach(t=>{t.checked=!1}),l.checked=!0,u("tool","annotate",{strokeStyle:l.label,tool:"Dot",once:!1,custom:!0,subType:"count"})}function m(){n.value=!n.value,n.value||c.value.forEach(l=>{l.checked=!1}),u("tool","endDraw")}return(l,t)=>(e.openBlock(),e.createBlock(e.unref(r.ElPopover),{visible:n.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[0]||(t[0]=o=>m())},[e.createVNode(e.unref(r.ElIcon),{size:l.size},{default:e.withCtx(()=>[e.createVNode(p.default)]),_:1},8,["size"]),e.createElementVNode("div",{class:e.normalizeClass(e.unref(v))},e.toDisplayString(e.unref(i)(l.text||"打点")),3)])]),default:e.withCtx(()=>[e.createVNode(e.unref(r.ElCard),{shadow:"never"},{default:e.withCtx(()=>[e.createElementVNode("div",null,[e.createElementVNode("p",C,e.toDisplayString(e.unref(i)("按下ESC键结束打点操作")),1),e.createElementVNode("div",_,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.value,o=>(e.openBlock(),e.createElementBlock("div",{key:o.label,class:"flex column align-items-center"},[e.createElementVNode("div",{style:e.normalizeStyle({"background-color":o.label}),class:"hzzt-kfb-toolbox-dot__box flex justify-content-center align-items-center",onClick:a=>k(o)},[e.createVNode(e.unref(r.ElIcon),{size:"16"},{default:e.withCtx(()=>[o.checked?(e.openBlock(),e.createBlock(h.default,{key:0})):e.createCommentVNode("",!0)]),_:2},1024)],12,E),e.createElementVNode("p",null,e.toDisplayString(o.value?o.value:" "),1)]))),128))])])]),_:1})]),_:1},8,["visible"]))}}),x=b._export_sfc(g,[["__scopeId","data-v-ca4687d6"]]);exports.default=x;
|
|
@@ -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(i,t){return e.openBlock(),e.createElementBlock("svg",n,t[0]||(t[0]=[e.createElementVNode("g",{id:"24*24/下载"},[e.createElementVNode("path",{id:"Vector",d:"M7.55491 10.4357L10.6647 14.0355L11.5 15L12.3353 14.0355L15.4451 10.4357L17 8.62905H13.4276V2H9.57243V8.62905H6L7.55491 10.4357Z"}),e.createElementVNode("path",{id:"Vector_2",d:"M13.72 14L11.6933 16.2L9.66667 14H2V22H22V14H13.72ZM16.6667 20.4667H14V17.8H16.6667V20.4667ZM20.6667 20.4667H18V17.8H20.6667V20.4667Z"})],-1)]))}const d=o._export_sfc(r,[["render",c]]);exports.default=d;
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import { defineComponent as _, mergeDefaults as k, ref as C, createBlock as b, openBlock as g, unref as e, withCtx as t, createVNode as l, createElementVNode as i, createTextVNode as p, toDisplayString as r, normalizeClass as x } from "vue";
|
|
2
|
+
import { u as w, d as z } from "./useCommonBCMuQZUh.js";
|
|
3
|
+
import { ElPopover as y, ElCard as E, ElLink as c, ElIcon as B } from "element-plus";
|
|
4
|
+
import D from "./downloadpQ-y7WlA.js";
|
|
5
|
+
import { _ as N } from "./indexCbr7K6Yq.js";
|
|
6
|
+
const P = { class: "flex column align-items-center" }, T = /* @__PURE__ */ _({
|
|
7
|
+
name: "ToolDownload",
|
|
8
|
+
__name: "download",
|
|
9
|
+
props: /* @__PURE__ */ k({
|
|
10
|
+
size: {},
|
|
11
|
+
text: {},
|
|
12
|
+
name: {},
|
|
13
|
+
component: {},
|
|
14
|
+
isPrevent: { type: Boolean },
|
|
15
|
+
callback: { type: Function }
|
|
16
|
+
}, z),
|
|
17
|
+
emits: ["tool"],
|
|
18
|
+
setup(V, { emit: f }) {
|
|
19
|
+
const u = f, { t: a, textClass: v } = w(), n = C(!1);
|
|
20
|
+
function d(s) {
|
|
21
|
+
u("tool", "download", s), n.value = !1;
|
|
22
|
+
}
|
|
23
|
+
return (s, o) => (g(), b(e(y), {
|
|
24
|
+
visible: n.value,
|
|
25
|
+
"popper-class": "el-popover-padding-0",
|
|
26
|
+
placement: "bottom",
|
|
27
|
+
width: 180,
|
|
28
|
+
trigger: "click"
|
|
29
|
+
}, {
|
|
30
|
+
reference: t(() => [
|
|
31
|
+
i("div", {
|
|
32
|
+
class: "hzzt-kfb-toolbox__icon",
|
|
33
|
+
onClick: o[2] || (o[2] = (m) => n.value = !n.value)
|
|
34
|
+
}, [
|
|
35
|
+
l(e(B), { size: s.size }, {
|
|
36
|
+
default: t(() => [
|
|
37
|
+
l(D)
|
|
38
|
+
]),
|
|
39
|
+
_: 1
|
|
40
|
+
}, 8, ["size"]),
|
|
41
|
+
i("div", {
|
|
42
|
+
class: x(e(v))
|
|
43
|
+
}, r(e(a)(s.text || "下载")), 3)
|
|
44
|
+
])
|
|
45
|
+
]),
|
|
46
|
+
default: t(() => [
|
|
47
|
+
l(e(E), { shadow: "never" }, {
|
|
48
|
+
default: t(() => [
|
|
49
|
+
i("div", P, [
|
|
50
|
+
l(e(c), {
|
|
51
|
+
onClick: o[0] || (o[0] = (m) => d("all"))
|
|
52
|
+
}, {
|
|
53
|
+
default: t(() => [
|
|
54
|
+
p(r(e(a)("下载全部切片")), 1)
|
|
55
|
+
]),
|
|
56
|
+
_: 1
|
|
57
|
+
}),
|
|
58
|
+
l(e(c), {
|
|
59
|
+
type: "primary",
|
|
60
|
+
class: "margin-t-2",
|
|
61
|
+
onClick: o[1] || (o[1] = (m) => d("single"))
|
|
62
|
+
}, {
|
|
63
|
+
default: t(() => [
|
|
64
|
+
p(r(e(a)("下载当前切片")), 1)
|
|
65
|
+
]),
|
|
66
|
+
_: 1
|
|
67
|
+
})
|
|
68
|
+
])
|
|
69
|
+
]),
|
|
70
|
+
_: 1
|
|
71
|
+
})
|
|
72
|
+
]),
|
|
73
|
+
_: 1
|
|
74
|
+
}, 8, ["visible"]));
|
|
75
|
+
}
|
|
76
|
+
}), S = /* @__PURE__ */ N(T, [["__scopeId", "data-v-b1632013"]]);
|
|
77
|
+
export {
|
|
78
|
+
S as default
|
|
79
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),s=require("./useCommonDf_LQLq6.js"),o=require("element-plus"),f=require("./downloadBPXmLTeR.js"),p=require("./indexMzBpWXyM.js"),m={class:"flex column align-items-center"},v=e.defineComponent({name:"ToolDownload",__name:"download",props:e.mergeDefaults({size:{},text:{},name:{},component:{},isPrevent:{type:Boolean},callback:{type:Function}},s.defaultProps),emits:["tool"],setup(x,{emit:d}){const u=d,{t:r,textClass:c}=s.useCommon(),n=e.ref(!1);function i(l){u("tool","download",l),n.value=!1}return(l,t)=>(e.openBlock(),e.createBlock(e.unref(o.ElPopover),{visible:n.value,"popper-class":"el-popover-padding-0",placement:"bottom",width:180,trigger:"click"},{reference:e.withCtx(()=>[e.createElementVNode("div",{class:"hzzt-kfb-toolbox__icon",onClick:t[2]||(t[2]=a=>n.value=!n.value)},[e.createVNode(e.unref(o.ElIcon),{size:l.size},{default:e.withCtx(()=>[e.createVNode(f.default)]),_:1},8,["size"]),e.createElementVNode("div",{class:e.normalizeClass(e.unref(c))},e.toDisplayString(e.unref(r)(l.text||"下载")),3)])]),default:e.withCtx(()=>[e.createVNode(e.unref(o.ElCard),{shadow:"never"},{default:e.withCtx(()=>[e.createElementVNode("div",m,[e.createVNode(e.unref(o.ElLink),{onClick:t[0]||(t[0]=a=>i("all"))},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(r)("下载全部切片")),1)]),_:1}),e.createVNode(e.unref(o.ElLink),{type:"primary",class:"margin-t-2",onClick:t[1]||(t[1]=a=>i("single"))},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(r)("下载当前切片")),1)]),_:1})])]),_:1})]),_:1},8,["visible"]))}}),C=p._export_sfc(v,[["__scopeId","data-v-b1632013"]]);exports.default=C;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("vue"),t=require("./
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("vue"),t=require("./indexMzBpWXyM.js"),l={},r={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"};function n(s,e){return c.openBlock(),c.createElementBlock("svg",r,e[0]||(e[0]=[c.createElementVNode("path",{d:"M437.333333 192L194.133333 78.933333c-29.866667-14.933333-61.866667-12.8-89.6 4.266667-27.733333 17.066667-42.666667 46.933333-42.666666 78.933333v699.733334c0 32 17.066667 61.866667 42.666666 78.933333 14.933333 10.666667 32 14.933333 49.066667 14.933333 12.8 0 27.733333-2.133333 38.4-8.533333L437.333333 832c32-14.933333 53.333333-49.066667 53.333334-83.2V275.2c0-36.266667-21.333333-68.266667-53.333334-83.2z m-21.333333 556.8c0 6.4-4.266667 12.8-10.666667 17.066667L162.133333 878.933333c-8.533333 4.266667-14.933333 0-17.066666-2.133333s-8.533333-6.4-8.533334-14.933333V162.133333c0-8.533333 4.266667-12.8 8.533334-14.933333 2.133333-2.133333 4.266667-2.133333 8.533333-2.133333 2.133333 0 4.266667 0 8.533333 2.133333L405.333333 260.266667c6.4 2.133333 10.666667 8.533333 10.666667 17.066666v471.466667zM885.333333 70.4l-12.8 72.533333c8.533333 2.133333 14.933333 8.533333 14.933334 17.066667V213.333333h74.666666V162.133333c0-44.8-32-83.2-76.8-91.733333zM887.466667 256h74.666666v128h-74.666666zM533.333333 467.2h74.666667v128H533.333333zM618.666667 260.266667l78.933333-36.266667-32-68.266667L586.666667 192c-21.333333 10.666667-36.266667 25.6-46.933334 46.933333l68.266667 29.866667c4.266667-4.266667 6.4-8.533333 10.666667-8.533333zM608 748.8V640H533.333333v108.8c0 10.666667 2.133333 21.333333 6.4 32l70.4-25.6c-2.133333-2.133333-2.133333-4.266667-2.133333-6.4zM887.466667 426.666667h74.666666v128h-74.666666zM533.333333 296.533333h74.666667v128H533.333333zM887.466667 599.466667h74.666666v128h-74.666666zM887.466667 861.866667c0 4.266667-2.133333 8.533333-4.266667 10.666666l57.6 46.933334c12.8-17.066667 19.2-36.266667 19.2-57.6v-91.733334h-74.666667v91.733334zM706.538667 134.912l115.989333-54.122667 31.573333 67.648L738.133333 202.581333zM618.666667 763.733333L586.666667 832l117.333333 55.466667 32-68.266667-117.333333-53.333333zM861.866667 878.933333l-87.466667-40.533333-32 68.266667 87.466667 40.533333c12.8 6.4 25.6 8.533333 38.4 8.533333h12.8l-10.666667-74.666666c-2.133333 0-4.266667-2.133333-8.533333-2.133334z","p-id":"6958",fill:"currentColor"},null,-1)]))}const o=t._export_sfc(l,[["render",n]]);exports.default=o;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("vue"),g=require("element-plus"),z=require("./fullscreenBnIlw4_E.js"),o=require("./useCommonDf_LQLq6.js"),k=l.defineComponent({name:"ToolFullscreen",__name:"fullscreen",props:l.mergeDefaults({size:{},text:{},name:{},component:{},isPrevent:{type:Boolean},callback:{type:Function}},o.defaultProps),emits:["tool"],setup(i,{emit:m}){const a=i,f=m,s=l.ref(!1),{t:c,textClass:F}=o.useCommon(),e=document,n=document.documentElement,t=()=>{setTimeout(()=>{s.value=u()},500)},u=()=>!!(e.fullscreenElement||e.webkitFullscreenElement||e.mozFullScreenElement||e.msFullscreenElement),d=()=>{u()?E():v()},v=()=>{n.requestFullscreen?n.requestFullscreen():n.webkitRequestFullscreen?n.webkitRequestFullscreen():n.mozRequestFullScreen?n.mozRequestFullScreen():n.msRequestFullscreen&&n.msRequestFullscreen()},E=()=>{e.exitFullscreen?e.exitFullscreen():e.webkitExitFullscreen?e.webkitExitFullscreen():e.mozCancelFullScreen?e.mozCancelFullScreen():e.msExitFullscreen&&e.msExitFullscreen()},h=()=>{f("tool","fullscreen",!s.value),a.isPrevent||d()};return e.addEventListener("fullscreenchange",t),e.addEventListener("webkitfullscreenchange",t),e.addEventListener("mozfullscreenchange",t),e.addEventListener("MSFullscreenChange",t),l.onBeforeUnmount(()=>{e.removeEventListener("fullscreenchange",t),e.removeEventListener("webkitfullscreenchange",t),e.removeEventListener("mozfullscreenchange",t),e.removeEventListener("MSFullscreenChange",t)}),(r,p)=>(l.openBlock(),l.createElementBlock("div",{class:"hzzt-kfb-toolbox__icon",onClick:h},[l.createVNode(l.unref(g.ElIcon),{size:r.size},{default:l.withCtx(()=>[l.createVNode(z.default)]),_:1},8,["size"]),l.createElementVNode("div",{class:l.normalizeClass(l.unref(F))},l.toDisplayString(s.value?l.unref(c)(r.text||"退出全屏"):l.unref(c)(r.text||"全屏")),3)]))}});exports.default=k;
|