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
|
@@ -1,39 +0,0 @@
|
|
|
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 "./useCommonDGun_T6i.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
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),n=require("./useCommonCm7rhO60.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 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),d=require("./useCommonCm7rhO60.js"),p=require("./dotxBw0mBnq.js"),h=require("./checkBWJi9_a6.js"),r=require("element-plus"),b=require("./indexCa2d-Wjt.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-a25cff87"]]);exports.default=x;
|
|
@@ -1,113 +0,0 @@
|
|
|
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 "./useCommonDGun_T6i.js";
|
|
3
|
-
import N from "./dotBeWq5BYs.js";
|
|
4
|
-
import P from "./check0Zxvds83.js";
|
|
5
|
-
import { ElPopover as j, ElCard as I, ElIcon as h } from "element-plus";
|
|
6
|
-
import { _ as T } from "./indexBm-HXbj3.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-a25cff87"]]);
|
|
111
|
-
export {
|
|
112
|
-
W as default
|
|
113
|
-
};
|
|
@@ -1,79 +0,0 @@
|
|
|
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 "./useCommonDGun_T6i.js";
|
|
3
|
-
import { ElPopover as y, ElCard as E, ElLink as c, ElIcon as B } from "element-plus";
|
|
4
|
-
import D from "./downloadDNe3qbJ7.js";
|
|
5
|
-
import { _ as N } from "./indexBm-HXbj3.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
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),s=require("./useCommonCm7rhO60.js"),o=require("element-plus"),f=require("./downloadDeswf8ql.js"),p=require("./indexCa2d-Wjt.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 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("vue"),g=require("element-plus"),z=require("./fullscreenDbpR9B7w.js"),o=require("./useCommonCm7rhO60.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;
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
import { defineComponent as h, mergeDefaults as z, ref as g, onBeforeUnmount as k, createElementBlock as x, openBlock as C, createVNode as u, createElementVNode as b, unref as t, withCtx as q, normalizeClass as w, toDisplayString as L } from "vue";
|
|
2
|
-
import { ElIcon as S } from "element-plus";
|
|
3
|
-
import R from "./fullscreenCGx_0CaO.js";
|
|
4
|
-
import { u as _, d as B } from "./useCommonDGun_T6i.js";
|
|
5
|
-
const N = /* @__PURE__ */ h({
|
|
6
|
-
name: "ToolFullscreen",
|
|
7
|
-
__name: "fullscreen",
|
|
8
|
-
props: /* @__PURE__ */ z({
|
|
9
|
-
size: {},
|
|
10
|
-
text: {},
|
|
11
|
-
name: {},
|
|
12
|
-
component: {},
|
|
13
|
-
isPrevent: { type: Boolean },
|
|
14
|
-
callback: { type: Function }
|
|
15
|
-
}, B),
|
|
16
|
-
emits: ["tool"],
|
|
17
|
-
setup(i, { emit: m }) {
|
|
18
|
-
const a = i, f = m, s = g(!1), { t: c, textClass: F } = _(), e = document, l = document.documentElement, n = () => {
|
|
19
|
-
setTimeout(() => {
|
|
20
|
-
s.value = o();
|
|
21
|
-
}, 500);
|
|
22
|
-
}, o = () => !!(e.fullscreenElement || e.webkitFullscreenElement || e.mozFullScreenElement || e.msFullscreenElement), d = () => {
|
|
23
|
-
o() ? v() : E();
|
|
24
|
-
}, E = () => {
|
|
25
|
-
l.requestFullscreen ? l.requestFullscreen() : l.webkitRequestFullscreen ? l.webkitRequestFullscreen() : l.mozRequestFullScreen ? l.mozRequestFullScreen() : l.msRequestFullscreen && l.msRequestFullscreen();
|
|
26
|
-
}, v = () => {
|
|
27
|
-
e.exitFullscreen ? e.exitFullscreen() : e.webkitExitFullscreen ? e.webkitExitFullscreen() : e.mozCancelFullScreen ? e.mozCancelFullScreen() : e.msExitFullscreen && e.msExitFullscreen();
|
|
28
|
-
}, p = () => {
|
|
29
|
-
f("tool", "fullscreen", !s.value), a.isPrevent || d();
|
|
30
|
-
};
|
|
31
|
-
return e.addEventListener("fullscreenchange", n), e.addEventListener("webkitfullscreenchange", n), e.addEventListener("mozfullscreenchange", n), e.addEventListener("MSFullscreenChange", n), k(() => {
|
|
32
|
-
e.removeEventListener("fullscreenchange", n), e.removeEventListener("webkitfullscreenchange", n), e.removeEventListener("mozfullscreenchange", n), e.removeEventListener("MSFullscreenChange", n);
|
|
33
|
-
}), (r, y) => (C(), x("div", {
|
|
34
|
-
class: "hzzt-kfb-toolbox__icon",
|
|
35
|
-
onClick: p
|
|
36
|
-
}, [
|
|
37
|
-
u(t(S), { size: r.size }, {
|
|
38
|
-
default: q(() => [
|
|
39
|
-
u(R)
|
|
40
|
-
]),
|
|
41
|
-
_: 1
|
|
42
|
-
}, 8, ["size"]),
|
|
43
|
-
b("div", {
|
|
44
|
-
class: w(t(F))
|
|
45
|
-
}, L(s.value ? t(c)(r.text || "退出全屏") : t(c)(r.text || "全屏")), 3)
|
|
46
|
-
]));
|
|
47
|
-
}
|
|
48
|
-
});
|
|
49
|
-
export {
|
|
50
|
-
N as default
|
|
51
|
-
};
|