hzzt-kfb-slide 0.0.4 → 0.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -0
- package/dist/{components/annotateDrBDAiwJ.js → dist/components/annotateBZhYifBy.js} +1 -1
- package/dist/{components/annotateC6KKIN-C.js → dist/components/annotateCPG0T3zR.js} +1 -1
- package/dist/dist/components/annotateCqAOjkGt.js +132 -0
- package/dist/dist/components/annotateDfW6BtgB.js +1 -0
- package/dist/{components/arrowFPEB8W4f.js → dist/components/arrowBJ1_uQ_E.js} +1 -1
- package/dist/{components/arrowDPk76wAe.js → dist/components/arrowDFlQxMKW.js} +1 -1
- package/dist/{components/arrowDownDI6AMcyz.js → dist/components/arrowDownNi-pK4NR.js} +1 -1
- package/dist/{components/arrowDownBdM08C-k.js → dist/components/arrowDownUoENEig7.js} +1 -1
- package/dist/{components/arrowLeftM_OyaeGe.js → dist/components/arrowLeftBjlKltMm.js} +1 -1
- package/dist/{components/arrowLeftCHTZ9DsM.js → dist/components/arrowLeftDNerwLPi.js} +1 -1
- package/dist/{components/arrowRightDjW4cZXc.js → dist/components/arrowRight44qqQj9S.js} +1 -1
- package/dist/{components/arrowRightCxryh7mK.js → dist/components/arrowRightMPKmxcZ8.js} +1 -1
- package/dist/{components/arrowUpDoHvHUV6.js → dist/components/arrowUpDNv09R_q.js} +1 -1
- package/dist/{components/arrowUpBBOMqRwJ.js → dist/components/arrowUpu-KhVqDz.js} +1 -1
- package/dist/{components/channel0jNldMsg.js → dist/components/channelCzSNjDqs.js} +1 -1
- package/dist/{components/channelCsDQbKiD.js → dist/components/channelDTeDAbXs.js} +1 -1
- package/dist/{components/check0Zxvds83.js → dist/components/checkD58Lt_t9.js} +1 -1
- package/dist/{components/checkBWJi9_a6.js → dist/components/checkDg1XwTUE.js} +1 -1
- package/dist/{components/config6VhhjpQh.js → dist/components/configDTj11Wdw.js} +1 -1
- package/dist/{components/configCQX8ZTs2.js → dist/components/configFTiUKUAQ.js} +1 -1
- package/dist/dist/components/customLw3nDjEr.js +48 -0
- package/dist/dist/components/customSv562l99.js +1 -0
- package/dist/{components/deleteDnKSpkZO.js → dist/components/deleteBIUy0hW2.js} +1 -1
- package/dist/{components/deleteCgLqIVRl.js → dist/components/deleteCeXlMQda.js} +1 -1
- package/dist/{components/dotBeWq5BYs.js → dist/components/dotBcz-OP0B.js} +1 -1
- package/dist/dist/components/dotC4Q5qfQ3.js +122 -0
- package/dist/dist/components/dotDO8OTl1O.js +1 -0
- package/dist/{components/dotxBw0mBnq.js → dist/components/dotDpCmvPJC.js} +1 -1
- package/dist/{components/downloadDNe3qbJ7.js → dist/components/downloadBs4QK_IT.js} +1 -1
- package/dist/dist/components/downloadCyOnwVa8.js +1 -0
- package/dist/dist/components/downloadGCe-OpHT.js +88 -0
- package/dist/{components/downloadDeswf8ql.js → dist/components/downloadnu9isJ53.js} +1 -1
- package/dist/{components/flipB4UaXh-c.js → dist/components/flipBwR2T8Rs.js} +1 -1
- package/dist/{components/flipDkEX3ZQH.js → dist/components/flipvyz7dJPZ.js} +1 -1
- package/dist/dist/components/fullscreenBeGbvwYS.js +1 -0
- package/dist/{components/fullscreenCGx_0CaO.js → dist/components/fullscreenCVgGTPtD.js} +1 -1
- package/dist/dist/components/fullscreenDvfoQFJX.js +60 -0
- package/dist/{components/fullscreenDbpR9B7w.js → dist/components/fullscreenyNOuxxJv.js} +1 -1
- package/dist/dist/components/indexCBVjt8NT.js +4 -0
- package/dist/dist/components/indexDOcglE90.js +2948 -0
- package/dist/{components/infoCjs_wSRJ.js → dist/components/infoC4fRWu15.js} +1 -1
- package/dist/{components/infogZMbfIdS.js → dist/components/infoCDweeRWp.js} +1 -1
- package/dist/{components/level9TdUqGzt.js → dist/components/levelDjZ5vvyy.js} +1 -1
- package/dist/{components/levelCY1NlHIe.js → dist/components/levelDjuyEKmz.js} +1 -1
- package/dist/dist/components/microscopeB6hcfWtD.js +1 -0
- package/dist/dist/components/microscopeD4o4Sywm.js +129 -0
- package/dist/{components/microscopeDUGvuln-.js → dist/components/microscopeDCINdehp.js} +1 -1
- package/dist/{components/microscope4FIRB1UB.js → dist/components/microscopeDptxRPdj.js} +1 -1
- package/dist/{components/moveD38V2VTD.js → dist/components/moveB-QJFdLP.js} +1 -1
- package/dist/dist/components/moveBM4KQ8bE.js +83 -0
- package/dist/{components/moveBhV9kg6L.js → dist/components/moveCNc2f0wf.js} +1 -1
- package/dist/dist/components/movemH2hKtp1.js +1 -0
- package/dist/{components/nextClAf7xMw.js → dist/components/next-o3fIifP.js} +1 -1
- package/dist/{components/nextCoqEdtnZ.js → dist/components/nextBX5bmT1e.js} +1 -1
- package/dist/{components/prevB3w5Xo5F.js → dist/components/prevDRvSbFTC.js} +1 -1
- package/dist/{components/prevJkp-fUef.js → dist/components/prevkbxOICn5.js} +1 -1
- package/dist/{components/processdjntnqTL.js → dist/components/processBHqsEap8.js} +94 -89
- package/dist/dist/components/processBqhO-55V.js +1 -0
- package/dist/{components/process_4OLLR3I.js → dist/components/processD06c6uax.js} +1 -1
- package/dist/{components/processB578krhc.js → dist/components/processh0Wf3Q99.js} +1 -1
- package/dist/dist/components/rotateBdsvaWJ_.js +140 -0
- package/dist/{components/rotateCGoD_DlO.js → dist/components/rotateCm7bVQY_.js} +1 -1
- package/dist/{components/rotateBtBfaYlt.js → dist/components/rotateCxZ7Z2pw.js} +1 -1
- package/dist/dist/components/rotateCyw4Ggca.js +1 -0
- package/dist/dist/components/settingC3yidTns.js +156 -0
- package/dist/{components/settingCBl44H7B.js → dist/components/settingCzWjOOeH.js} +1 -1
- package/dist/dist/components/settingDDEEOrtI.js +1 -0
- package/dist/{components/settingCE2-cMN2.js → dist/components/settinghh-xgIto.js} +1 -1
- package/dist/{components/tailorrql5Z5dC.js → dist/components/tailorBalVOrgz.js} +1 -1
- package/dist/{components/tailorIfjKVe1q.js → dist/components/tailorCvZYsl2H.js} +1 -1
- package/dist/{components/useCommonCm7rhO60.js → dist/components/useCommonBBhfDvWF.js} +1 -1
- package/dist/{components/useCommonDGun_T6i.js → dist/components/useCommonDs02MG_d.js} +1 -1
- package/dist/dist/components/zoomCWKzKF3-.js +1 -0
- package/dist/{components/zoomInBtOl0w7G.js → dist/components/zoomIn8-tgvQFE.js} +1 -1
- package/dist/{components/zoomInDBLRbkSc.js → dist/components/zoomInBFjk_aLI.js} +1 -1
- package/dist/{components/zoomOutD6o_vR_h.js → dist/components/zoomOutC4Ami8gE.js} +1 -1
- package/dist/{components/zoomOutBii_59lh.js → dist/components/zoomOutD3_PopeU.js} +1 -1
- package/dist/dist/components/zoomcWHR4OY6.js +72 -0
- package/dist/{index.cjs.js → dist/index.cjs.js} +1 -1
- package/dist/{index.css → dist/index.css} +1 -1
- package/dist/{index.es.js → dist/index.es.js} +1 -1
- package/dist/package.json +39 -0
- package/package.json +4 -6
- package/dist/components/annotateCH4GAooA.js +0 -1
- package/dist/components/annotateCriDzoRR.js +0 -123
- package/dist/components/customDNzwsLNR.js +0 -39
- package/dist/components/customs0nLjsaE.js +0 -1
- package/dist/components/dotBi2ivVYX.js +0 -1
- package/dist/components/dotCi0WBjE9.js +0 -113
- package/dist/components/downloadBnTQzA4j.js +0 -79
- package/dist/components/downloadDF2_6Y-f.js +0 -1
- package/dist/components/fullscreenBIXfsULV.js +0 -1
- package/dist/components/fullscreenC9wvJxvO.js +0 -51
- package/dist/components/indexBm-HXbj3.js +0 -11320
- package/dist/components/indexCa2d-Wjt.js +0 -30
- package/dist/components/microscopeC2JZ0eI2.js +0 -124
- package/dist/components/microscopeDRt26GBO.js +0 -1
- package/dist/components/moveCu3V3JqI.js +0 -1
- package/dist/components/movebkPadei-.js +0 -74
- package/dist/components/processBS-P5qTF.js +0 -1
- package/dist/components/rotateDlOeZK_Y.js +0 -130
- package/dist/components/rotateDzNJl50p.js +0 -1
- package/dist/components/settingB87fba2e.js +0 -147
- package/dist/components/settingDKu9dgXl.js +0 -1
- package/dist/components/zoomDRHWcY_A.js +0 -1
- package/dist/components/zoomrgQT7EYg.js +0 -63
- /package/dist/{components → dist/components}/lineBIoJpzbf.js +0 -0
- /package/dist/{components → dist/components}/lineCzuS7Giu.js +0 -0
- /package/{types → dist/types}/components/KfbIcon.vue.d.ts +0 -0
- /package/{types → dist/types}/components/KfbImage.vue.d.ts +0 -0
- /package/{types → dist/types}/components/KfbSlideList.vue.d.ts +0 -0
- /package/{types → dist/types}/components/KfbToolConfig.vue.d.ts +0 -0
- /package/{types → dist/types}/components/KfbToolbox.vue.d.ts +0 -0
- /package/{types → dist/types}/components/KfbView/KfbChannel.vue.d.ts +0 -0
- /package/{types → dist/types}/components/KfbView/KfbKeyword.vue.d.ts +0 -0
- /package/{types → dist/types}/components/KfbView/KfbLabel.vue.d.ts +0 -0
- /package/{types → dist/types}/components/KfbView/KfbLevel.vue.d.ts +0 -0
- /package/{types → dist/types}/components/KfbView/KfbMenu.vue.d.ts +0 -0
- /package/{types → dist/types}/components/KfbView/KfbMicroscope.vue.d.ts +0 -0
- /package/{types → dist/types}/components/KfbView/index.d.ts +0 -0
- /package/{types → dist/types}/components/KfbView/index.vue.d.ts +0 -0
- /package/{types → dist/types}/components/KfbView/useDot.d.ts +0 -0
- /package/{types → dist/types}/components/KfbView/useHotmap.d.ts +0 -0
- /package/{types → dist/types}/components/KfbView/useImageProcess.d.ts +0 -0
- /package/{types → dist/types}/components/KfbView/useLabel.d.ts +0 -0
- /package/{types → dist/types}/components/KfbView/useMove.d.ts +0 -0
- /package/{types → dist/types}/components/KfbView/usePointer.d.ts +0 -0
- /package/{types → dist/types}/components/KfbView/useSync.d.ts +0 -0
- /package/{types → dist/types}/components/KfbView/useTailor.d.ts +0 -0
- /package/{types → dist/types}/components/KfbView/useVoice.d.ts +0 -0
- /package/{types → dist/types}/components/ai/list.vue.d.ts +0 -0
- /package/{types → dist/types}/components/ai/useAi.d.ts +0 -0
- /package/{types → dist/types}/components/icon/annotate.vue.d.ts +0 -0
- /package/{types → dist/types}/components/icon/arrow.vue.d.ts +0 -0
- /package/{types → dist/types}/components/icon/arrowDown.vue.d.ts +0 -0
- /package/{types → dist/types}/components/icon/arrowLeft.vue.d.ts +0 -0
- /package/{types → dist/types}/components/icon/arrowRight.vue.d.ts +0 -0
- /package/{types → dist/types}/components/icon/arrowUp.vue.d.ts +0 -0
- /package/{types → dist/types}/components/icon/channel.vue.d.ts +0 -0
- /package/{types → dist/types}/components/icon/check.vue.d.ts +0 -0
- /package/{types → dist/types}/components/icon/config.vue.d.ts +0 -0
- /package/{types → dist/types}/components/icon/delete.vue.d.ts +0 -0
- /package/{types → dist/types}/components/icon/dot.vue.d.ts +0 -0
- /package/{types → dist/types}/components/icon/download.vue.d.ts +0 -0
- /package/{types → dist/types}/components/icon/flip.vue.d.ts +0 -0
- /package/{types → dist/types}/components/icon/fullscreen.vue.d.ts +0 -0
- /package/{types → dist/types}/components/icon/index.d.ts +0 -0
- /package/{types → dist/types}/components/icon/info.vue.d.ts +0 -0
- /package/{types → dist/types}/components/icon/level.vue.d.ts +0 -0
- /package/{types → dist/types}/components/icon/list.vue.d.ts +0 -0
- /package/{types → dist/types}/components/icon/menu.vue.d.ts +0 -0
- /package/{types → dist/types}/components/icon/microscope.vue.d.ts +0 -0
- /package/{types → dist/types}/components/icon/move.vue.d.ts +0 -0
- /package/{types → dist/types}/components/icon/next.vue.d.ts +0 -0
- /package/{types → dist/types}/components/icon/prev.vue.d.ts +0 -0
- /package/{types → dist/types}/components/icon/process.vue.d.ts +0 -0
- /package/{types → dist/types}/components/icon/rotate.vue.d.ts +0 -0
- /package/{types → dist/types}/components/icon/setting.vue.d.ts +0 -0
- /package/{types → dist/types}/components/icon/tailor.vue.d.ts +0 -0
- /package/{types → dist/types}/components/icon/zoomIn.vue.d.ts +0 -0
- /package/{types → dist/types}/components/toolbox/annotate.vue.d.ts +0 -0
- /package/{types → dist/types}/components/toolbox/custom.vue.d.ts +0 -0
- /package/{types → dist/types}/components/toolbox/dot.vue.d.ts +0 -0
- /package/{types → dist/types}/components/toolbox/download.vue.d.ts +0 -0
- /package/{types → dist/types}/components/toolbox/fullscreen.vue.d.ts +0 -0
- /package/{types → dist/types}/components/toolbox/instances.d.ts +0 -0
- /package/{types → dist/types}/components/toolbox/microscope.vue.d.ts +0 -0
- /package/{types → dist/types}/components/toolbox/move.vue.d.ts +0 -0
- /package/{types → dist/types}/components/toolbox/process.vue.d.ts +0 -0
- /package/{types → dist/types}/components/toolbox/rotate.vue.d.ts +0 -0
- /package/{types → dist/types}/components/toolbox/setting.vue.d.ts +0 -0
- /package/{types → dist/types}/components/toolbox/useCommon.d.ts +0 -0
- /package/{types → dist/types}/components/toolbox/zoom.vue.d.ts +0 -0
- /package/{types → dist/types}/index.d.ts +0 -0
- /package/{types → dist/types}/index.vue.d.ts +0 -0
- /package/{types → dist/types}/instances.d.ts +0 -0
- /package/{types → dist/types}/plugins/i18n.d.ts +0 -0
package/README.md
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
# Vue 3 + TypeScript + Vite
|
|
2
|
+
|
|
3
|
+
This template should help get you started developing with Vue 3 and TypeScript in Vite. The template uses Vue 3 `<script setup>` SFCs, check out the [script setup docs](https://v3.vuejs.org/api/sfc-script-setup.html#sfc-script-setup) to learn more.
|
|
4
|
+
|
|
5
|
+
Learn more about the recommended Project Setup and IDE Support in the [Vue Docs TypeScript Guide](https://vuejs.org/guide/typescript/overview.html#project-setup).
|
|
@@ -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("./indexCBVjt8NT.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,132 @@
|
|
|
1
|
+
import { defineComponent as x, mergeDefaults as C, ref as E, createBlock as u, openBlock as d, unref as t, withCtx as s, createVNode as n, createElementVNode as l, createTextVNode as m, toDisplayString as f, createElementBlock as k, Fragment as z, renderList as j, normalizeClass as B } from "vue";
|
|
2
|
+
import { v as D, f as I, d as N, a as S, s as V, p as T, e as F, r as L, b as A, c as R, l as U, _ as $ } from "./indexDOcglE90.js";
|
|
3
|
+
import { u as q, d as G } from "./useCommonDs02MG_d.js";
|
|
4
|
+
import { ElPopover as H, ElCard as J, ElText as v, ElRow as K, ElCol as M, ElIcon as Q } from "element-plus";
|
|
5
|
+
import W from "./annotateCPG0T3zR.js";
|
|
6
|
+
var X = Object.defineProperty, Y = Object.defineProperties, Z = Object.getOwnPropertyDescriptors, g = Object.getOwnPropertySymbols, ee = Object.prototype.hasOwnProperty, te = Object.prototype.propertyIsEnumerable, b = (r, e, o) => e in r ? X(r, e, { enumerable: !0, configurable: !0, writable: !0, value: o }) : r[e] = o, oe = (r, e) => {
|
|
7
|
+
for (var o in e || (e = {}))
|
|
8
|
+
ee.call(e, o) && b(r, o, e[o]);
|
|
9
|
+
if (g)
|
|
10
|
+
for (var o of g(e))
|
|
11
|
+
te.call(e, o) && b(r, o, e[o]);
|
|
12
|
+
return r;
|
|
13
|
+
}, re = (r, e) => Y(r, Z(e));
|
|
14
|
+
const ae = ["onClick"], se = ["src", "alt"], ne = /* @__PURE__ */ x(re(oe({}, {
|
|
15
|
+
name: "ToolAnnotate"
|
|
16
|
+
}), {
|
|
17
|
+
__name: "annotate",
|
|
18
|
+
props: /* @__PURE__ */ C({
|
|
19
|
+
size: {},
|
|
20
|
+
text: {},
|
|
21
|
+
name: {},
|
|
22
|
+
component: {},
|
|
23
|
+
isPrevent: { type: Boolean },
|
|
24
|
+
callback: { type: Function }
|
|
25
|
+
}, G),
|
|
26
|
+
emits: ["tool"],
|
|
27
|
+
setup(r, { emit: e }) {
|
|
28
|
+
const o = e, { t: i, textClass: y } = q(), _ = {
|
|
29
|
+
line: U,
|
|
30
|
+
arrow: R,
|
|
31
|
+
bilateral: A,
|
|
32
|
+
rectangle: L,
|
|
33
|
+
ellipse: F,
|
|
34
|
+
polygon: T,
|
|
35
|
+
star: V,
|
|
36
|
+
flag: S,
|
|
37
|
+
dot: N,
|
|
38
|
+
font: I,
|
|
39
|
+
voice: D
|
|
40
|
+
}, P = Object.keys(_).map((a) => ({
|
|
41
|
+
name: a,
|
|
42
|
+
src: _[a]
|
|
43
|
+
})), c = E(!1);
|
|
44
|
+
function h(a) {
|
|
45
|
+
c.value = !1, o("tool", "annotate", {
|
|
46
|
+
tool: a.substring(0, 1).toLocaleUpperCase() + a.substring(1)
|
|
47
|
+
});
|
|
48
|
+
}
|
|
49
|
+
function w() {
|
|
50
|
+
c.value = !c.value;
|
|
51
|
+
}
|
|
52
|
+
return (a, le) => (d(), u(t(H), {
|
|
53
|
+
visible: c.value,
|
|
54
|
+
"popper-class": "el-popover-padding-0",
|
|
55
|
+
placement: "bottom",
|
|
56
|
+
width: "220px",
|
|
57
|
+
trigger: "click"
|
|
58
|
+
}, {
|
|
59
|
+
reference: s(() => [
|
|
60
|
+
l("div", {
|
|
61
|
+
class: "hzzt-kfb-toolbox__icon",
|
|
62
|
+
onClick: w
|
|
63
|
+
}, [
|
|
64
|
+
n(t(Q), { size: a.size }, {
|
|
65
|
+
default: s(() => [
|
|
66
|
+
n(W)
|
|
67
|
+
]),
|
|
68
|
+
_: 1
|
|
69
|
+
}, 8, ["size"]),
|
|
70
|
+
l("div", {
|
|
71
|
+
class: B(t(y))
|
|
72
|
+
}, f(t(i)(a.text || "标注")), 3)
|
|
73
|
+
])
|
|
74
|
+
]),
|
|
75
|
+
default: s(() => [
|
|
76
|
+
n(t(J), {
|
|
77
|
+
shadow: "never",
|
|
78
|
+
header: t(i)("标注工具"),
|
|
79
|
+
"body-style": { padding: "8px" }
|
|
80
|
+
}, {
|
|
81
|
+
default: s(() => [
|
|
82
|
+
l("div", null, [
|
|
83
|
+
n(t(v), { type: "danger" }, {
|
|
84
|
+
default: s(() => [
|
|
85
|
+
m(f(t(i)("按ESC可退出标注模式")), 1)
|
|
86
|
+
]),
|
|
87
|
+
_: 1
|
|
88
|
+
})
|
|
89
|
+
]),
|
|
90
|
+
l("div", null, [
|
|
91
|
+
n(t(v), { type: "danger" }, {
|
|
92
|
+
default: s(() => [
|
|
93
|
+
m(f(t(i)("点击标注按Delete键可删除标注")), 1)
|
|
94
|
+
]),
|
|
95
|
+
_: 1
|
|
96
|
+
})
|
|
97
|
+
]),
|
|
98
|
+
n(t(K), null, {
|
|
99
|
+
default: s(() => [
|
|
100
|
+
(d(!0), k(z, null, j(t(P), (p, O) => (d(), u(t(M), {
|
|
101
|
+
key: O,
|
|
102
|
+
class: "flex justify-content-center align-items-center",
|
|
103
|
+
span: 8
|
|
104
|
+
}, {
|
|
105
|
+
default: s(() => [
|
|
106
|
+
l("div", {
|
|
107
|
+
class: "hzzt-kfb-toolbox-annotate-img",
|
|
108
|
+
onClick: (ie) => h(p.name)
|
|
109
|
+
}, [
|
|
110
|
+
l("img", {
|
|
111
|
+
style: { width: "100%" },
|
|
112
|
+
src: p.src,
|
|
113
|
+
alt: p.name
|
|
114
|
+
}, null, 8, se)
|
|
115
|
+
], 8, ae)
|
|
116
|
+
]),
|
|
117
|
+
_: 2
|
|
118
|
+
}, 1024))), 128))
|
|
119
|
+
]),
|
|
120
|
+
_: 1
|
|
121
|
+
})
|
|
122
|
+
]),
|
|
123
|
+
_: 1
|
|
124
|
+
}, 8, ["header"])
|
|
125
|
+
]),
|
|
126
|
+
_: 1
|
|
127
|
+
}, 8, ["visible"]));
|
|
128
|
+
}
|
|
129
|
+
})), ue = /* @__PURE__ */ $(ne, [["__scopeId", "data-v-71f2944f"]]);
|
|
130
|
+
export {
|
|
131
|
+
ue as default
|
|
132
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),o=require("./indexCBVjt8NT.js"),p=require("./useCommonBBhfDvWF.js"),l=require("element-plus"),b=require("./annotateBZhYifBy.js");var w=Object.defineProperty,x=Object.defineProperties,h=Object.getOwnPropertyDescriptors,d=Object.getOwnPropertySymbols,C=Object.prototype.hasOwnProperty,E=Object.prototype.propertyIsEnumerable,f=(n,t,r)=>t in n?w(n,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):n[t]=r,P=(n,t)=>{for(var r in t||(t={}))C.call(t,r)&&f(n,r,t[r]);if(d)for(var r of d(t))E.call(t,r)&&f(n,r,t[r]);return n},N=(n,t)=>x(n,h(t));const V=["onClick"],O=["src","alt"],k=e.defineComponent(N(P({},{name:"ToolAnnotate"}),{__name:"annotate",props:e.mergeDefaults({size:{},text:{},name:{},component:{},isPrevent:{type:Boolean},callback:{type:Function}},p.defaultProps),emits:["tool"],setup(n,{emit:t}){const r=t,{t:s,textClass:_}=p.useCommon(),u={line:o.line,arrow:o.arrow,bilateral:o.bilateral,rectangle:o.rectangle,ellipse:o.ellipse,polygon:o.polygon,star:o.star,flag:o.flag,dot:o.dot,font:o.font,voice:o.voice},m=Object.keys(u).map(a=>({name:a,src:u[a]})),c=e.ref(!1);function v(a){c.value=!1,r("tool","annotate",{tool:a.substring(0,1).toLocaleUpperCase()+a.substring(1)})}function g(){c.value=!c.value}return(a,B)=>(e.openBlock(),e.createBlock(e.unref(l.ElPopover),{visible:c.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:g},[e.createVNode(e.unref(l.ElIcon),{size:a.size},{default:e.withCtx(()=>[e.createVNode(b.default)]),_:1},8,["size"]),e.createElementVNode("div",{class:e.normalizeClass(e.unref(_))},e.toDisplayString(e.unref(s)(a.text||"标注")),3)])]),default:e.withCtx(()=>[e.createVNode(e.unref(l.ElCard),{shadow:"never",header:e.unref(s)("标注工具"),"body-style":{padding:"8px"}},{default:e.withCtx(()=>[e.createElementVNode("div",null,[e.createVNode(e.unref(l.ElText),{type:"danger"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(s)("按ESC可退出标注模式")),1)]),_:1})]),e.createElementVNode("div",null,[e.createVNode(e.unref(l.ElText),{type:"danger"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(s)("点击标注按Delete键可删除标注")),1)]),_:1})]),e.createVNode(e.unref(l.ElRow),null,{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(m),(i,y)=>(e.openBlock(),e.createBlock(e.unref(l.ElCol),{key:y,class:"flex justify-content-center align-items-center",span:8},{default:e.withCtx(()=>[e.createElementVNode("div",{class:"hzzt-kfb-toolbox-annotate-img",onClick:S=>v(i.name)},[e.createElementVNode("img",{style:{width:"100%"},src:i.src,alt:i.name},null,8,O)],8,V)]),_:2},1024))),128))]),_:1})]),_:1},8,["header"])]),_:1},8,["visible"]))}})),z=o._export_sfc(k,[["__scopeId","data-v-71f2944f"]]);exports.default=z;
|
|
@@ -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("./indexCBVjt8NT.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"),r=require("./
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),r=require("./indexCBVjt8NT.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("./indexCBVjt8NT.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("./indexCBVjt8NT.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("./indexCBVjt8NT.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"),a=require("./
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),a=require("./indexCBVjt8NT.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 "./indexDOcglE90.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("./indexCBVjt8NT.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("./indexCBVjt8NT.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,48 @@
|
|
|
1
|
+
import { defineComponent as u, mergeDefaults as _, ref as d, createElementBlock as v, openBlock as s, createBlock as P, createElementVNode as y, resolveDynamicComponent as O, normalizeClass as b, unref as a, renderSlot as g, createTextVNode as w, toDisplayString as z } from "vue";
|
|
2
|
+
import { u as C, d as h } from "./useCommonDs02MG_d.js";
|
|
3
|
+
var k = Object.defineProperty, D = Object.defineProperties, j = Object.getOwnPropertyDescriptors, l = Object.getOwnPropertySymbols, B = Object.prototype.hasOwnProperty, E = Object.prototype.propertyIsEnumerable, p = (t, e, o) => e in t ? k(t, e, { enumerable: !0, configurable: !0, writable: !0, value: o }) : t[e] = o, S = (t, e) => {
|
|
4
|
+
for (var o in e || (e = {}))
|
|
5
|
+
B.call(e, o) && p(t, o, e[o]);
|
|
6
|
+
if (l)
|
|
7
|
+
for (var o of l(e))
|
|
8
|
+
E.call(e, o) && p(t, o, e[o]);
|
|
9
|
+
return t;
|
|
10
|
+
}, x = (t, e) => D(t, j(e));
|
|
11
|
+
const I = /* @__PURE__ */ u(x(S({}, {
|
|
12
|
+
name: "ToolCustom"
|
|
13
|
+
}), {
|
|
14
|
+
__name: "custom",
|
|
15
|
+
props: /* @__PURE__ */ _({
|
|
16
|
+
size: {},
|
|
17
|
+
text: {},
|
|
18
|
+
name: {},
|
|
19
|
+
component: {},
|
|
20
|
+
isPrevent: { type: Boolean },
|
|
21
|
+
callback: { type: Function }
|
|
22
|
+
}, h),
|
|
23
|
+
emits: ["tool"],
|
|
24
|
+
setup(t, { emit: e }) {
|
|
25
|
+
const o = t, c = e, { t: i, textClass: m } = C(), n = d();
|
|
26
|
+
function f() {
|
|
27
|
+
c("tool", o.name || "", n.value);
|
|
28
|
+
}
|
|
29
|
+
return (r, N) => (s(), v("div", {
|
|
30
|
+
ref_key: "toolRef",
|
|
31
|
+
ref: n,
|
|
32
|
+
class: "hzzt-kfb-toolbox__icon",
|
|
33
|
+
onClick: f
|
|
34
|
+
}, [
|
|
35
|
+
(s(), P(O(r.component), { size: r.size }, null, 8, ["size"])),
|
|
36
|
+
y("div", {
|
|
37
|
+
class: b(a(m))
|
|
38
|
+
}, [
|
|
39
|
+
g(r.$slots, "default", {}, () => [
|
|
40
|
+
w(z(a(i)(r.text || " ")), 1)
|
|
41
|
+
])
|
|
42
|
+
], 2)
|
|
43
|
+
], 512));
|
|
44
|
+
}
|
|
45
|
+
}));
|
|
46
|
+
export {
|
|
47
|
+
I as default
|
|
48
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("vue"),a=require("./useCommonBBhfDvWF.js");var f=Object.defineProperty,_=Object.defineProperties,d=Object.getOwnPropertyDescriptors,l=Object.getOwnPropertySymbols,v=Object.prototype.hasOwnProperty,P=Object.prototype.propertyIsEnumerable,c=(r,e,t)=>e in r?f(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t,y=(r,e)=>{for(var t in e||(e={}))v.call(e,t)&&c(r,t,e[t]);if(l)for(var t of l(e))P.call(e,t)&&c(r,t,e[t]);return r},O=(r,e)=>_(r,d(e));const b=o.defineComponent(O(y({},{name:"ToolCustom"}),{__name:"custom",props:o.mergeDefaults({size:{},text:{},name:{},component:{},isPrevent:{type:Boolean},callback:{type:Function}},a.defaultProps),emits:["tool"],setup(r,{emit:e}){const t=r,p=e,{t:i,textClass:u}=a.useCommon(),s=o.ref();function m(){p("tool",t.name||"",s.value)}return(n,g)=>(o.openBlock(),o.createElementBlock("div",{ref_key:"toolRef",ref:s,class:"hzzt-kfb-toolbox__icon",onClick:m},[(o.openBlock(),o.createBlock(o.resolveDynamicComponent(n.component),{size:n.size},null,8,["size"])),o.createElementVNode("div",{class:o.normalizeClass(o.unref(u))},[o.renderSlot(n.$slots,"default",{},()=>[o.createTextVNode(o.toDisplayString(o.unref(i)(n.text||" ")),1)])],2)],512))}}));exports.default=b;
|
|
@@ -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("./indexCBVjt8NT.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;
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
import { defineComponent as x, mergeDefaults as O, ref as b, inject as z, watch as F, createBlock as h, openBlock as f, unref as s, withCtx as i, createVNode as p, createElementVNode as c, toDisplayString as v, createElementBlock as k, Fragment as D, renderList as B, normalizeStyle as S, createCommentVNode as j, normalizeClass as V } from "vue";
|
|
2
|
+
import { u as I, d as N } from "./useCommonDs02MG_d.js";
|
|
3
|
+
import A from "./dotBcz-OP0B.js";
|
|
4
|
+
import L from "./checkD58Lt_t9.js";
|
|
5
|
+
import { ElPopover as R, ElCard as T, ElIcon as g } from "element-plus";
|
|
6
|
+
import { _ as $ } from "./indexDOcglE90.js";
|
|
7
|
+
var q = Object.defineProperty, G = Object.defineProperties, H = Object.getOwnPropertyDescriptors, C = Object.getOwnPropertySymbols, J = Object.prototype.hasOwnProperty, K = Object.prototype.propertyIsEnumerable, y = (t, e, l) => e in t ? q(t, e, { enumerable: !0, configurable: !0, writable: !0, value: l }) : t[e] = l, M = (t, e) => {
|
|
8
|
+
for (var l in e || (e = {}))
|
|
9
|
+
J.call(e, l) && y(t, l, e[l]);
|
|
10
|
+
if (C)
|
|
11
|
+
for (var l of C(e))
|
|
12
|
+
K.call(e, l) && y(t, l, e[l]);
|
|
13
|
+
return t;
|
|
14
|
+
}, Q = (t, e) => G(t, H(e));
|
|
15
|
+
const U = { class: "margin-b-1" }, W = { class: "flex align-items-center" }, X = ["onClick"], Y = /* @__PURE__ */ x(Q(M({}, {
|
|
16
|
+
name: "ToolDot"
|
|
17
|
+
}), {
|
|
18
|
+
__name: "dot",
|
|
19
|
+
props: /* @__PURE__ */ O({
|
|
20
|
+
size: {},
|
|
21
|
+
text: {},
|
|
22
|
+
name: {},
|
|
23
|
+
component: {},
|
|
24
|
+
isPrevent: { type: Boolean },
|
|
25
|
+
callback: { type: Function }
|
|
26
|
+
}, N),
|
|
27
|
+
emits: ["tool"],
|
|
28
|
+
setup(t, { emit: e }) {
|
|
29
|
+
const l = e, { t: _, textClass: P } = I(), u = b(!1), d = b([
|
|
30
|
+
{ label: "#004BFF", value: 0, checked: !1 },
|
|
31
|
+
{ label: "#FF4B40", value: 0, checked: !1 },
|
|
32
|
+
{ label: "#FFAA00", value: 0, checked: !1 },
|
|
33
|
+
{ label: "#51C964", value: 0, checked: !1 },
|
|
34
|
+
{ label: "#00BEFF", value: 0, checked: !1 },
|
|
35
|
+
{ label: "#8C58CE", value: 0, checked: !1 },
|
|
36
|
+
{ label: "#F261A7", value: 0, checked: !1 }
|
|
37
|
+
]), m = z("kfbViewRef");
|
|
38
|
+
F(() => {
|
|
39
|
+
var o, a;
|
|
40
|
+
return (a = (o = m == null ? void 0 : m.value) == null ? void 0 : o.kfbView) == null ? void 0 : a.labelList;
|
|
41
|
+
}, (o) => {
|
|
42
|
+
d.value.forEach((a) => {
|
|
43
|
+
var r;
|
|
44
|
+
a.value = (r = (o || []).filter((n) => (n == null ? void 0 : n.custom) && (n == null ? void 0 : n.strokeStyle) === a.label && (n == null ? void 0 : n.tool) === "Dot")) == null ? void 0 : r.length;
|
|
45
|
+
});
|
|
46
|
+
});
|
|
47
|
+
function w(o) {
|
|
48
|
+
d.value.forEach((a) => {
|
|
49
|
+
a.checked = !1;
|
|
50
|
+
}), o.checked = !0, l("tool", "annotate", {
|
|
51
|
+
strokeStyle: o.label,
|
|
52
|
+
tool: "Dot",
|
|
53
|
+
once: !1,
|
|
54
|
+
custom: !0,
|
|
55
|
+
subType: "count"
|
|
56
|
+
});
|
|
57
|
+
}
|
|
58
|
+
function E() {
|
|
59
|
+
u.value = !u.value, u.value || d.value.forEach((o) => {
|
|
60
|
+
o.checked = !1;
|
|
61
|
+
}), l("tool", "endDraw");
|
|
62
|
+
}
|
|
63
|
+
return (o, a) => (f(), h(s(R), {
|
|
64
|
+
visible: u.value,
|
|
65
|
+
"popper-class": "el-popover-padding-0",
|
|
66
|
+
placement: "bottom",
|
|
67
|
+
width: "300px",
|
|
68
|
+
trigger: "click"
|
|
69
|
+
}, {
|
|
70
|
+
reference: i(() => [
|
|
71
|
+
c("div", {
|
|
72
|
+
class: "hzzt-kfb-toolbox__icon",
|
|
73
|
+
onClick: a[0] || (a[0] = (r) => E())
|
|
74
|
+
}, [
|
|
75
|
+
p(s(g), { size: o.size }, {
|
|
76
|
+
default: i(() => [
|
|
77
|
+
p(A)
|
|
78
|
+
]),
|
|
79
|
+
_: 1
|
|
80
|
+
}, 8, ["size"]),
|
|
81
|
+
c("div", {
|
|
82
|
+
class: V(s(P))
|
|
83
|
+
}, v(s(_)(o.text || "打点")), 3)
|
|
84
|
+
])
|
|
85
|
+
]),
|
|
86
|
+
default: i(() => [
|
|
87
|
+
p(s(T), { shadow: "never" }, {
|
|
88
|
+
default: i(() => [
|
|
89
|
+
c("div", null, [
|
|
90
|
+
c("p", U, v(s(_)("按下ESC键结束打点操作")), 1),
|
|
91
|
+
c("div", W, [
|
|
92
|
+
(f(!0), k(D, null, B(d.value, (r) => (f(), k("div", {
|
|
93
|
+
key: r.label,
|
|
94
|
+
class: "flex column align-items-center"
|
|
95
|
+
}, [
|
|
96
|
+
c("div", {
|
|
97
|
+
style: S({ "background-color": r.label }),
|
|
98
|
+
class: "hzzt-kfb-toolbox-dot__box flex justify-content-center align-items-center",
|
|
99
|
+
onClick: (n) => w(r)
|
|
100
|
+
}, [
|
|
101
|
+
p(s(g), { size: "16" }, {
|
|
102
|
+
default: i(() => [
|
|
103
|
+
r.checked ? (f(), h(L, { key: 0 })) : j("", !0)
|
|
104
|
+
]),
|
|
105
|
+
_: 2
|
|
106
|
+
}, 1024)
|
|
107
|
+
], 12, X),
|
|
108
|
+
c("p", null, v(r.value ? r.value : " "), 1)
|
|
109
|
+
]))), 128))
|
|
110
|
+
])
|
|
111
|
+
])
|
|
112
|
+
]),
|
|
113
|
+
_: 1
|
|
114
|
+
})
|
|
115
|
+
]),
|
|
116
|
+
_: 1
|
|
117
|
+
}, 8, ["visible"]));
|
|
118
|
+
}
|
|
119
|
+
})), re = /* @__PURE__ */ $(Y, [["__scopeId", "data-v-ca4687d6"]]);
|
|
120
|
+
export {
|
|
121
|
+
re as default
|
|
122
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),v=require("./useCommonBBhfDvWF.js"),h=require("./dotDpCmvPJC.js"),C=require("./checkDg1XwTUE.js"),u=require("element-plus"),g=require("./indexCBVjt8NT.js");var y=Object.defineProperty,E=Object.defineProperties,w=Object.getOwnPropertyDescriptors,p=Object.getOwnPropertySymbols,P=Object.prototype.hasOwnProperty,x=Object.prototype.propertyIsEnumerable,_=(r,t,l)=>t in r?y(r,t,{enumerable:!0,configurable:!0,writable:!0,value:l}):r[t]=l,V=(r,t)=>{for(var l in t||(t={}))P.call(t,l)&&_(r,l,t[l]);if(p)for(var l of p(t))x.call(t,l)&&_(r,l,t[l]);return r},N=(r,t)=>E(r,w(t));const O={class:"margin-b-1"},B={class:"flex align-items-center"},z=["onClick"],F=e.defineComponent(N(V({},{name:"ToolDot"}),{__name:"dot",props:e.mergeDefaults({size:{},text:{},name:{},component:{},isPrevent:{type:Boolean},callback:{type:Function}},v.defaultProps),emits:["tool"],setup(r,{emit:t}){const l=t,{t:d,textClass:m}=v.useCommon(),s=e.ref(!1),i=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}]),f=e.inject("kfbViewRef");e.watch(()=>{var o,a;return(a=(o=f==null?void 0:f.value)==null?void 0:o.kfbView)==null?void 0:a.labelList},o=>{i.value.forEach(a=>{var n;a.value=(n=(o||[]).filter(c=>(c==null?void 0:c.custom)&&(c==null?void 0:c.strokeStyle)===a.label&&(c==null?void 0:c.tool)==="Dot"))==null?void 0:n.length})});function b(o){i.value.forEach(a=>{a.checked=!1}),o.checked=!0,l("tool","annotate",{strokeStyle:o.label,tool:"Dot",once:!1,custom:!0,subType:"count"})}function k(){s.value=!s.value,s.value||i.value.forEach(o=>{o.checked=!1}),l("tool","endDraw")}return(o,a)=>(e.openBlock(),e.createBlock(e.unref(u.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:a[0]||(a[0]=n=>k())},[e.createVNode(e.unref(u.ElIcon),{size:o.size},{default:e.withCtx(()=>[e.createVNode(h.default)]),_:1},8,["size"]),e.createElementVNode("div",{class:e.normalizeClass(e.unref(m))},e.toDisplayString(e.unref(d)(o.text||"打点")),3)])]),default:e.withCtx(()=>[e.createVNode(e.unref(u.ElCard),{shadow:"never"},{default:e.withCtx(()=>[e.createElementVNode("div",null,[e.createElementVNode("p",O,e.toDisplayString(e.unref(d)("按下ESC键结束打点操作")),1),e.createElementVNode("div",B,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.value,n=>(e.openBlock(),e.createElementBlock("div",{key:n.label,class:"flex column align-items-center"},[e.createElementVNode("div",{style:e.normalizeStyle({"background-color":n.label}),class:"hzzt-kfb-toolbox-dot__box flex justify-content-center align-items-center",onClick:c=>b(n)},[e.createVNode(e.unref(u.ElIcon),{size:"16"},{default:e.withCtx(()=>[n.checked?(e.openBlock(),e.createBlock(C.default,{key:0})):e.createCommentVNode("",!0)]),_:2},1024)],12,z),e.createElementVNode("p",null,e.toDisplayString(n.value?n.value:" "),1)]))),128))])])]),_:1})]),_:1},8,["visible"]))}})),S=g._export_sfc(F,[["__scopeId","data-v-ca4687d6"]]);exports.default=S;
|
|
@@ -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("./indexCBVjt8NT.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 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),p=require("./useCommonBBhfDvWF.js"),l=require("element-plus"),_=require("./downloadnu9isJ53.js"),v=require("./indexCBVjt8NT.js");var w=Object.defineProperty,g=Object.defineProperties,P=Object.getOwnPropertyDescriptors,u=Object.getOwnPropertySymbols,y=Object.prototype.hasOwnProperty,C=Object.prototype.propertyIsEnumerable,f=(o,t,r)=>t in o?w(o,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):o[t]=r,b=(o,t)=>{for(var r in t||(t={}))y.call(t,r)&&f(o,r,t[r]);if(u)for(var r of u(t))C.call(t,r)&&f(o,r,t[r]);return o},x=(o,t)=>g(o,P(t));const O={class:"flex column align-items-center"},N=e.defineComponent(x(b({},{name:"ToolDownload"}),{__name:"download",props:e.mergeDefaults({size:{},text:{},name:{},component:{},isPrevent:{type:Boolean},callback:{type:Function}},p.defaultProps),emits:["tool"],setup(o,{emit:t}){const r=t,{t:i,textClass:m}=p.useCommon(),a=e.ref(!1);function c(s){r("tool","download",s),a.value=!1}return(s,n)=>(e.openBlock(),e.createBlock(e.unref(l.ElPopover),{visible:a.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:n[2]||(n[2]=d=>a.value=!a.value)},[e.createVNode(e.unref(l.ElIcon),{size:s.size},{default:e.withCtx(()=>[e.createVNode(_.default)]),_:1},8,["size"]),e.createElementVNode("div",{class:e.normalizeClass(e.unref(m))},e.toDisplayString(e.unref(i)(s.text||"下载")),3)])]),default:e.withCtx(()=>[e.createVNode(e.unref(l.ElCard),{shadow:"never"},{default:e.withCtx(()=>[e.createElementVNode("div",O,[e.createVNode(e.unref(l.ElLink),{onClick:n[0]||(n[0]=d=>c("all"))},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(i)("下载全部切片")),1)]),_:1}),e.createVNode(e.unref(l.ElLink),{type:"primary",class:"margin-t-2",onClick:n[1]||(n[1]=d=>c("single"))},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(i)("下载当前切片")),1)]),_:1})])]),_:1})]),_:1},8,["visible"]))}})),V=v._export_sfc(N,[["__scopeId","data-v-b1632013"]]);exports.default=V;
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
import { defineComponent as g, mergeDefaults as b, ref as y, createBlock as O, openBlock as C, unref as r, withCtx as a, createVNode as n, createElementVNode as d, createTextVNode as _, toDisplayString as c, normalizeClass as x } from "vue";
|
|
2
|
+
import { u as k, d as z } from "./useCommonDs02MG_d.js";
|
|
3
|
+
import { ElPopover as E, ElCard as D, ElLink as u, ElIcon as j } from "element-plus";
|
|
4
|
+
import I from "./downloadBs4QK_IT.js";
|
|
5
|
+
import { _ as N } from "./indexDOcglE90.js";
|
|
6
|
+
var V = Object.defineProperty, h = Object.defineProperties, B = Object.getOwnPropertyDescriptors, v = Object.getOwnPropertySymbols, S = Object.prototype.hasOwnProperty, T = Object.prototype.propertyIsEnumerable, P = (t, e, o) => e in t ? V(t, e, { enumerable: !0, configurable: !0, writable: !0, value: o }) : t[e] = o, $ = (t, e) => {
|
|
7
|
+
for (var o in e || (e = {}))
|
|
8
|
+
S.call(e, o) && P(t, o, e[o]);
|
|
9
|
+
if (v)
|
|
10
|
+
for (var o of v(e))
|
|
11
|
+
T.call(e, o) && P(t, o, e[o]);
|
|
12
|
+
return t;
|
|
13
|
+
}, F = (t, e) => h(t, B(e));
|
|
14
|
+
const L = { class: "flex column align-items-center" }, q = /* @__PURE__ */ g(F($({}, {
|
|
15
|
+
name: "ToolDownload"
|
|
16
|
+
}), {
|
|
17
|
+
__name: "download",
|
|
18
|
+
props: /* @__PURE__ */ b({
|
|
19
|
+
size: {},
|
|
20
|
+
text: {},
|
|
21
|
+
name: {},
|
|
22
|
+
component: {},
|
|
23
|
+
isPrevent: { type: Boolean },
|
|
24
|
+
callback: { type: Function }
|
|
25
|
+
}, z),
|
|
26
|
+
emits: ["tool"],
|
|
27
|
+
setup(t, { emit: e }) {
|
|
28
|
+
const o = e, { t: p, textClass: w } = k(), s = y(!1);
|
|
29
|
+
function f(i) {
|
|
30
|
+
o("tool", "download", i), s.value = !1;
|
|
31
|
+
}
|
|
32
|
+
return (i, l) => (C(), O(r(E), {
|
|
33
|
+
visible: s.value,
|
|
34
|
+
"popper-class": "el-popover-padding-0",
|
|
35
|
+
placement: "bottom",
|
|
36
|
+
width: 180,
|
|
37
|
+
trigger: "click"
|
|
38
|
+
}, {
|
|
39
|
+
reference: a(() => [
|
|
40
|
+
d("div", {
|
|
41
|
+
class: "hzzt-kfb-toolbox__icon",
|
|
42
|
+
onClick: l[2] || (l[2] = (m) => s.value = !s.value)
|
|
43
|
+
}, [
|
|
44
|
+
n(r(j), { size: i.size }, {
|
|
45
|
+
default: a(() => [
|
|
46
|
+
n(I)
|
|
47
|
+
]),
|
|
48
|
+
_: 1
|
|
49
|
+
}, 8, ["size"]),
|
|
50
|
+
d("div", {
|
|
51
|
+
class: x(r(w))
|
|
52
|
+
}, c(r(p)(i.text || "下载")), 3)
|
|
53
|
+
])
|
|
54
|
+
]),
|
|
55
|
+
default: a(() => [
|
|
56
|
+
n(r(D), { shadow: "never" }, {
|
|
57
|
+
default: a(() => [
|
|
58
|
+
d("div", L, [
|
|
59
|
+
n(r(u), {
|
|
60
|
+
onClick: l[0] || (l[0] = (m) => f("all"))
|
|
61
|
+
}, {
|
|
62
|
+
default: a(() => [
|
|
63
|
+
_(c(r(p)("下载全部切片")), 1)
|
|
64
|
+
]),
|
|
65
|
+
_: 1
|
|
66
|
+
}),
|
|
67
|
+
n(r(u), {
|
|
68
|
+
type: "primary",
|
|
69
|
+
class: "margin-t-2",
|
|
70
|
+
onClick: l[1] || (l[1] = (m) => f("single"))
|
|
71
|
+
}, {
|
|
72
|
+
default: a(() => [
|
|
73
|
+
_(c(r(p)("下载当前切片")), 1)
|
|
74
|
+
]),
|
|
75
|
+
_: 1
|
|
76
|
+
})
|
|
77
|
+
])
|
|
78
|
+
]),
|
|
79
|
+
_: 1
|
|
80
|
+
})
|
|
81
|
+
]),
|
|
82
|
+
_: 1
|
|
83
|
+
}, 8, ["visible"]));
|
|
84
|
+
}
|
|
85
|
+
})), M = /* @__PURE__ */ N(q, [["__scopeId", "data-v-b1632013"]]);
|
|
86
|
+
export {
|
|
87
|
+
M as default
|
|
88
|
+
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),o=require("./
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),o=require("./indexCBVjt8NT.js"),r={},n={viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"};function c(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;
|