@xtctwins/tctwins-bimx-engine 0.1.21 → 0.1.22
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/{AnnotationTool-BvFG1vTX.mjs → AnnotationTool-CgiAUuLM.mjs} +12 -12
- package/dist/BIMX_Viewer_Lib.es.js +4 -4
- package/dist/BIMX_Viewer_Lib.umd.js +86 -91
- package/dist/CommentTool-BeT1ECI-.mjs +338 -0
- package/dist/HiddenTool-qqISJ_uV.mjs +58 -0
- package/dist/InspectorTool-CLPjV6WW.mjs +609 -0
- package/dist/MeasureTool-Be-rmUeb.mjs +1540 -0
- package/dist/{NavigateTool-CCIb1X4u.mjs → NavigateTool-C-VsKB0k.mjs} +7 -7
- package/dist/{RoamTool-B1w0efz8.mjs → RoamTool-DdHBNeVg.mjs} +20 -20
- package/dist/{ScreenShotTool-BviRVFSg.mjs → ScreenShotTool-Da7D2dkW.mjs} +67 -67
- package/dist/SectionTool-CHcmUQul.mjs +624 -0
- package/dist/SettingTool-CkR1F4x_.mjs +525 -0
- package/dist/StructureTree-DBu9xTue.mjs +1438 -0
- package/dist/{debounce-Cg3LHv0T.mjs → debounce-DLzt_q3i.mjs} +13 -13
- package/dist/{el-checkbox-lp8vWAXQ.mjs → el-checkbox-DsUGOsl_.mjs} +46 -46
- package/dist/{el-input-Bwqgf3wZ.mjs → el-input-UdjCNTtW.mjs} +66 -68
- package/dist/{el-input-number-0OWyX276.mjs → el-input-number-ySU-dVGM.mjs} +75 -75
- package/dist/{index-CQ8depiU.mjs → index-BfLgpvcd.mjs} +3 -3
- package/dist/{index-CYEu_kT4.mjs → index-DQKkZiNH.mjs} +1 -1
- package/dist/{index-DX-eYsBm.mjs → index-DyFDTMAw.mjs} +1795 -1794
- package/dist/{isEqual-Bg-tyY30.mjs → isEqual-BWlMaoTp.mjs} +9 -9
- package/dist/panel.vue_vue_type_style_index_0_lang-ZCDiwNFo.mjs +96 -0
- package/dist/style.css +1 -1
- package/dist/tallPanel-Cz_n6AsB.mjs +49 -0
- package/package.json +1 -1
- package/types/components/utilsComponents/tallPanel.vue.d.ts +41 -0
- package/types/services/fileApi/fileManager.d.ts +5 -5
- package/types/store/themeManager.d.ts +1 -1
- package/dist/CommentTool-B6ruuuGV.mjs +0 -338
- package/dist/HiddenTool-DW-lRdW5.mjs +0 -58
- package/dist/InspectorTool-Cc288ySp.mjs +0 -515
- package/dist/MeasureTool-DdfM3U_3.mjs +0 -1542
- package/dist/SectionTool-jSjWX32j.mjs +0 -630
- package/dist/SettingTool-CVMZAx2H.mjs +0 -536
- package/dist/StructureTree-4OCdRRPG.mjs +0 -2672
- package/dist/panel.vue_vue_type_style_index_0_scope_true_lang-BfE1I0S9.mjs +0 -82
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as u, onMounted as w, ref as b, openBlock as o, createElementBlock as n, createElementVNode as i, Fragment as p, renderList as f, unref as a, normalizeClass as g, toDisplayString as h } from "vue";
|
|
2
2
|
import { N as B } from "./const-CbUmfuHy.mjs";
|
|
3
|
-
import {
|
|
4
|
-
const
|
|
3
|
+
import { j as V, l as k, k as C, O as N } from "./index-DyFDTMAw.mjs";
|
|
4
|
+
const S = { class: "best-view-box" }, T = /* @__PURE__ */ i("div", { class: "best-view-title-box" }, [
|
|
5
5
|
/* @__PURE__ */ i("div", { class: "best-view-title" }, "视图方向")
|
|
6
6
|
], -1), I = { class: "best-view-list" }, x = ["onClick"], y = { class: "best-view-icon" }, A = ["src"], E = { class: "best-view-name" }, R = /* @__PURE__ */ u({
|
|
7
7
|
__name: "NavigateTool",
|
|
@@ -15,8 +15,8 @@ const T = { class: "best-view-box" }, k = /* @__PURE__ */ i("div", { class: "bes
|
|
|
15
15
|
const v = c, m = (e) => {
|
|
16
16
|
v("emitHandler", e);
|
|
17
17
|
}, s = b();
|
|
18
|
-
|
|
19
|
-
|
|
18
|
+
k.on("BimViewer", () => {
|
|
19
|
+
C("isMobile") && (window.BimViewer.navCubeMode.visible = !1);
|
|
20
20
|
});
|
|
21
21
|
const _ = (e) => {
|
|
22
22
|
if (e.id === s.value) {
|
|
@@ -32,8 +32,8 @@ const T = { class: "best-view-box" }, k = /* @__PURE__ */ i("div", { class: "bes
|
|
|
32
32
|
}
|
|
33
33
|
});
|
|
34
34
|
};
|
|
35
|
-
return (e, H) => (o(), n("div",
|
|
36
|
-
|
|
35
|
+
return (e, H) => (o(), n("div", S, [
|
|
36
|
+
T,
|
|
37
37
|
i("div", I, [
|
|
38
38
|
(o(!0), n(p, null, f(a(B), (t) => (o(), n("div", {
|
|
39
39
|
key: t.id,
|
|
@@ -45,7 +45,7 @@ const T = { class: "best-view-box" }, k = /* @__PURE__ */ i("div", { class: "bes
|
|
|
45
45
|
i("div", null, [
|
|
46
46
|
i("div", y, [
|
|
47
47
|
i("img", {
|
|
48
|
-
src: a(
|
|
48
|
+
src: a(N) + `/bim-viewer/best-view/${s.value === t.id ? t.imgActive : t.img}.svg`,
|
|
49
49
|
alt: ""
|
|
50
50
|
}, null, 8, A)
|
|
51
51
|
]),
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { defineComponent as V, ref as _, onMounted as U, watch as
|
|
2
|
-
import {
|
|
3
|
-
const
|
|
1
|
+
import { defineComponent as V, ref as _, onMounted as U, watch as P, openBlock as w, createElementBlock as h, unref as l, createElementVNode as t, createCommentVNode as b, pushScopeId as x, popScopeId as N } from "vue";
|
|
2
|
+
import { j as O, k as u, B as I, l as H, O as d, n as j } from "./index-DyFDTMAw.mjs";
|
|
3
|
+
const A = (m) => (x("data-v-fbb719aa"), m = m(), N(), m), G = { class: "roam_container_wrapper" }, X = {
|
|
4
4
|
key: 0,
|
|
5
5
|
class: "roam_container"
|
|
6
|
-
}, q = /* @__PURE__ */
|
|
6
|
+
}, q = /* @__PURE__ */ A(() => /* @__PURE__ */ t("div", { class: "container_title" }, "在第一视角中导航", -1)), z = ["src"], J = {
|
|
7
7
|
key: 1,
|
|
8
8
|
class: "mobile_roam-box"
|
|
9
9
|
}, K = { class: "roam-left" }, Q = { class: "roam-left-box" }, W = {
|
|
@@ -18,7 +18,7 @@ const G = (m) => (P("data-v-d731ee22"), m = m(), N(), m), X = { class: "roam_con
|
|
|
18
18
|
}, ne = ["src"], ae = { class: "roam-right-center" }, re = {
|
|
19
19
|
id: "roamMoveLeft",
|
|
20
20
|
class: "center-left"
|
|
21
|
-
}, se = ["src"], ie = { class: "center-center" },
|
|
21
|
+
}, se = ["src"], ie = { class: "center-center" }, le = ["src"], de = {
|
|
22
22
|
id: "roamMoveRight",
|
|
23
23
|
class: "center-right"
|
|
24
24
|
}, ce = ["src"], ue = {
|
|
@@ -38,7 +38,7 @@ const G = (m) => (P("data-v-d731ee22"), m = m(), N(), m), X = { class: "roam_con
|
|
|
38
38
|
}, 1e3), p.setReadyById(M.componentId);
|
|
39
39
|
}), H.on("BIMX_CONFIGS", () => {
|
|
40
40
|
I.showRoam == !1 && (v.value = !1);
|
|
41
|
-
}),
|
|
41
|
+
}), P(
|
|
42
42
|
() => p.isToolActive(M.componentId),
|
|
43
43
|
(e) => {
|
|
44
44
|
E(!!e);
|
|
@@ -130,12 +130,12 @@ const G = (m) => (P("data-v-d731ee22"), m = m(), N(), m), X = { class: "roam_con
|
|
|
130
130
|
}
|
|
131
131
|
});
|
|
132
132
|
};
|
|
133
|
-
return (e, a) => (w(), h("div",
|
|
134
|
-
!
|
|
133
|
+
return (e, a) => (w(), h("div", G, [
|
|
134
|
+
!l(u)("isMobile") && f.value ? (w(), h("div", X, [
|
|
135
135
|
q,
|
|
136
136
|
t("img", {
|
|
137
137
|
class: "container_img",
|
|
138
|
-
src: d
|
|
138
|
+
src: l(d) + "/bim-viewer/roam-icon.png",
|
|
139
139
|
alt: ""
|
|
140
140
|
}, null, 8, z),
|
|
141
141
|
t("div", { class: "container_footer" }, [
|
|
@@ -149,12 +149,12 @@ const G = (m) => (P("data-v-d731ee22"), m = m(), N(), m), X = { class: "roam_con
|
|
|
149
149
|
}, " 好的,我知道了 ")
|
|
150
150
|
])
|
|
151
151
|
])) : b("", !0),
|
|
152
|
-
|
|
152
|
+
l(u)("isMobile") ? (w(), h("div", J, [
|
|
153
153
|
t("div", K, [
|
|
154
154
|
t("div", Q, [
|
|
155
155
|
t("div", W, [
|
|
156
156
|
t("img", {
|
|
157
|
-
src: d
|
|
157
|
+
src: l(d) + "/bim-viewer/roam-bar/up.svg",
|
|
158
158
|
alt: ""
|
|
159
159
|
}, null, 8, Y)
|
|
160
160
|
])
|
|
@@ -162,7 +162,7 @@ const G = (m) => (P("data-v-d731ee22"), m = m(), N(), m), X = { class: "roam_con
|
|
|
162
162
|
t("div", Z, [
|
|
163
163
|
t("div", $, [
|
|
164
164
|
t("img", {
|
|
165
|
-
src: d
|
|
165
|
+
src: l(d) + "/bim-viewer/roam-bar/down.svg",
|
|
166
166
|
alt: ""
|
|
167
167
|
}, null, 8, ee)
|
|
168
168
|
])
|
|
@@ -171,33 +171,33 @@ const G = (m) => (P("data-v-d731ee22"), m = m(), N(), m), X = { class: "roam_con
|
|
|
171
171
|
t("div", oe, [
|
|
172
172
|
t("div", te, [
|
|
173
173
|
t("img", {
|
|
174
|
-
src: d
|
|
174
|
+
src: l(d) + "/bim-viewer/roam-bar/top.svg",
|
|
175
175
|
alt: ""
|
|
176
176
|
}, null, 8, ne)
|
|
177
177
|
]),
|
|
178
178
|
t("div", ae, [
|
|
179
179
|
t("div", re, [
|
|
180
180
|
t("img", {
|
|
181
|
-
src: d
|
|
181
|
+
src: l(d) + "/bim-viewer/roam-bar/left.svg",
|
|
182
182
|
alt: ""
|
|
183
183
|
}, null, 8, se)
|
|
184
184
|
]),
|
|
185
185
|
t("div", ie, [
|
|
186
186
|
t("img", {
|
|
187
|
-
src: d
|
|
187
|
+
src: l(d) + "/bim-viewer/roam-bar/center.svg",
|
|
188
188
|
alt: ""
|
|
189
|
-
}, null, 8,
|
|
189
|
+
}, null, 8, le)
|
|
190
190
|
]),
|
|
191
|
-
t("div",
|
|
191
|
+
t("div", de, [
|
|
192
192
|
t("img", {
|
|
193
|
-
src: d
|
|
193
|
+
src: l(d) + "/bim-viewer/roam-bar/right.svg",
|
|
194
194
|
alt: ""
|
|
195
195
|
}, null, 8, ce)
|
|
196
196
|
])
|
|
197
197
|
]),
|
|
198
198
|
t("div", ue, [
|
|
199
199
|
t("img", {
|
|
200
|
-
src: d
|
|
200
|
+
src: l(d) + "/bim-viewer/roam-bar/bottom.svg",
|
|
201
201
|
alt: ""
|
|
202
202
|
}, null, 8, me)
|
|
203
203
|
])
|
|
@@ -205,7 +205,7 @@ const G = (m) => (P("data-v-d731ee22"), m = m(), N(), m), X = { class: "roam_con
|
|
|
205
205
|
])) : b("", !0)
|
|
206
206
|
]));
|
|
207
207
|
}
|
|
208
|
-
}), ge = /* @__PURE__ */
|
|
208
|
+
}), ge = /* @__PURE__ */ j(ve, [["__scopeId", "data-v-fbb719aa"]]);
|
|
209
209
|
export {
|
|
210
210
|
ge as default
|
|
211
211
|
};
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { _ as me } from "./panel.
|
|
2
|
-
import {
|
|
3
|
-
import { U as L, C as
|
|
4
|
-
import { ref as R, inject as
|
|
5
|
-
import { a as
|
|
6
|
-
import { u as
|
|
1
|
+
import { _ as me } from "./panel.vue_vue_type_style_index_0_lang-ZCDiwNFo.mjs";
|
|
2
|
+
import { z as U, e as M, I as j, U as O, a as H, u as $, _ as x, N as pe, C as ve, d as fe, w as be, R as W, j as _e } from "./index-DyFDTMAw.mjs";
|
|
3
|
+
import { U as L, C as he, g as X, u as ge, h as ye, e as Se, f as Ve, a as Re } from "./el-input-UdjCNTtW.mjs";
|
|
4
|
+
import { ref as R, inject as ke, computed as g, defineComponent as C, openBlock as k, createElementBlock as I, normalizeClass as y, unref as e, createElementVNode as f, withDirectives as Y, isRef as q, withModifiers as w, vModelRadio as J, renderSlot as P, createTextVNode as N, toDisplayString as T, nextTick as Q, normalizeStyle as Ce, onMounted as Z, provide as Ee, reactive as Ie, toRefs as Be, watch as ee, createBlock as we, withCtx as z, createVNode as B, Fragment as Ne, renderList as Ue, createCommentVNode as ze } from "vue";
|
|
5
|
+
import { a as G } from "./const-CbUmfuHy.mjs";
|
|
6
|
+
import { u as Ge } from "./index-DQKkZiNH.mjs";
|
|
7
7
|
const oe = U({
|
|
8
8
|
modelValue: {
|
|
9
9
|
type: [String, Number, Boolean],
|
|
10
10
|
default: void 0
|
|
11
11
|
},
|
|
12
|
-
size:
|
|
12
|
+
size: X,
|
|
13
13
|
disabled: Boolean,
|
|
14
14
|
label: {
|
|
15
15
|
type: [String, Number, Boolean],
|
|
@@ -23,28 +23,28 @@ const oe = U({
|
|
|
23
23
|
type: String,
|
|
24
24
|
default: void 0
|
|
25
25
|
}
|
|
26
|
-
}),
|
|
26
|
+
}), $e = U({
|
|
27
27
|
...oe,
|
|
28
28
|
border: Boolean
|
|
29
29
|
}), ae = {
|
|
30
|
-
[L]: (a) =>
|
|
31
|
-
[
|
|
30
|
+
[L]: (a) => M(a) || j(a) || O(a),
|
|
31
|
+
[he]: (a) => M(a) || j(a) || O(a)
|
|
32
32
|
}, le = Symbol("radioGroupKey"), te = (a, b) => {
|
|
33
|
-
const n = R(), o =
|
|
33
|
+
const n = R(), o = ke(le, void 0), d = g(() => !!o), c = g(() => H(a.value) ? a.label : a.value), s = g({
|
|
34
34
|
get() {
|
|
35
35
|
return d.value ? o.modelValue : a.modelValue;
|
|
36
36
|
},
|
|
37
37
|
set(t) {
|
|
38
38
|
d.value ? o.changeEvent(t) : b && b(L, t), n.value.checked = a.modelValue === c.value;
|
|
39
39
|
}
|
|
40
|
-
}), p =
|
|
41
|
-
return
|
|
40
|
+
}), p = ge(g(() => o == null ? void 0 : o.size)), l = ye(g(() => o == null ? void 0 : o.disabled)), u = R(!1), v = g(() => l.value || d.value && s.value !== c.value ? -1 : 0);
|
|
41
|
+
return Ge({
|
|
42
42
|
from: "label act as value",
|
|
43
43
|
replacement: "value",
|
|
44
44
|
version: "3.0.0",
|
|
45
45
|
scope: "el-radio",
|
|
46
46
|
ref: "https://element-plus.org/en-US/component/radio.html"
|
|
47
|
-
}, g(() => d.value &&
|
|
47
|
+
}, g(() => d.value && H(a.value))), {
|
|
48
48
|
radioRef: n,
|
|
49
49
|
isGroup: d,
|
|
50
50
|
radioGroup: o,
|
|
@@ -55,20 +55,20 @@ const oe = U({
|
|
|
55
55
|
modelValue: s,
|
|
56
56
|
actualValue: c
|
|
57
57
|
};
|
|
58
|
-
},
|
|
58
|
+
}, xe = C({
|
|
59
59
|
name: "ElRadio"
|
|
60
|
-
}),
|
|
61
|
-
...
|
|
62
|
-
props:
|
|
60
|
+
}), Le = /* @__PURE__ */ C({
|
|
61
|
+
...xe,
|
|
62
|
+
props: $e,
|
|
63
63
|
emits: ae,
|
|
64
64
|
setup(a, { emit: b }) {
|
|
65
|
-
const n = a, o =
|
|
65
|
+
const n = a, o = $("radio"), { radioRef: d, radioGroup: c, focus: s, size: p, disabled: l, modelValue: u, actualValue: v } = te(n, b);
|
|
66
66
|
function t() {
|
|
67
67
|
Q(() => b("change", u.value));
|
|
68
68
|
}
|
|
69
69
|
return (_, i) => {
|
|
70
70
|
var r;
|
|
71
|
-
return k(),
|
|
71
|
+
return k(), I("label", {
|
|
72
72
|
class: y([
|
|
73
73
|
e(o).b(),
|
|
74
74
|
e(o).is("disabled", e(l)),
|
|
@@ -85,7 +85,7 @@ const oe = U({
|
|
|
85
85
|
e(o).is("checked", e(u) === e(v))
|
|
86
86
|
])
|
|
87
87
|
}, [
|
|
88
|
-
|
|
88
|
+
Y(f("input", {
|
|
89
89
|
ref_key: "radioRef",
|
|
90
90
|
ref: d,
|
|
91
91
|
"onUpdate:modelValue": (S) => q(u) ? u.value = S : null,
|
|
@@ -120,16 +120,16 @@ const oe = U({
|
|
|
120
120
|
};
|
|
121
121
|
}
|
|
122
122
|
});
|
|
123
|
-
var
|
|
124
|
-
const
|
|
123
|
+
var Pe = /* @__PURE__ */ x(Le, [["__file", "radio.vue"]]);
|
|
124
|
+
const Te = U({
|
|
125
125
|
...oe
|
|
126
|
-
}),
|
|
126
|
+
}), Fe = C({
|
|
127
127
|
name: "ElRadioButton"
|
|
128
|
-
}),
|
|
129
|
-
...
|
|
130
|
-
props:
|
|
128
|
+
}), Ae = /* @__PURE__ */ C({
|
|
129
|
+
...Fe,
|
|
130
|
+
props: Te,
|
|
131
131
|
setup(a) {
|
|
132
|
-
const b = a, n =
|
|
132
|
+
const b = a, n = $("radio"), { radioRef: o, focus: d, size: c, disabled: s, modelValue: p, radioGroup: l, actualValue: u } = te(b), v = g(() => ({
|
|
133
133
|
backgroundColor: (l == null ? void 0 : l.fill) || "",
|
|
134
134
|
borderColor: (l == null ? void 0 : l.fill) || "",
|
|
135
135
|
boxShadow: l != null && l.fill ? `-1px 0 0 0 ${l.fill}` : "",
|
|
@@ -137,7 +137,7 @@ const Fe = U({
|
|
|
137
137
|
}));
|
|
138
138
|
return (t, _) => {
|
|
139
139
|
var i;
|
|
140
|
-
return k(),
|
|
140
|
+
return k(), I("label", {
|
|
141
141
|
class: y([
|
|
142
142
|
e(n).b("button"),
|
|
143
143
|
e(n).is("active", e(p) === e(u)),
|
|
@@ -146,7 +146,7 @@ const Fe = U({
|
|
|
146
146
|
e(n).bm("button", e(c))
|
|
147
147
|
])
|
|
148
148
|
}, [
|
|
149
|
-
|
|
149
|
+
Y(f("input", {
|
|
150
150
|
ref_key: "radioRef",
|
|
151
151
|
ref: o,
|
|
152
152
|
"onUpdate:modelValue": (r) => q(p) ? p.value = r : null,
|
|
@@ -164,7 +164,7 @@ const Fe = U({
|
|
|
164
164
|
]),
|
|
165
165
|
f("span", {
|
|
166
166
|
class: y(e(n).be("button", "inner")),
|
|
167
|
-
style:
|
|
167
|
+
style: Ce(e(p) === e(u) ? e(v) : {}),
|
|
168
168
|
onKeydown: w(() => {
|
|
169
169
|
}, ["stop"])
|
|
170
170
|
}, [
|
|
@@ -176,13 +176,13 @@ const Fe = U({
|
|
|
176
176
|
};
|
|
177
177
|
}
|
|
178
178
|
});
|
|
179
|
-
var ne = /* @__PURE__ */
|
|
180
|
-
const
|
|
179
|
+
var ne = /* @__PURE__ */ x(Ae, [["__file", "radio-button.vue"]]);
|
|
180
|
+
const De = U({
|
|
181
181
|
id: {
|
|
182
182
|
type: String,
|
|
183
183
|
default: void 0
|
|
184
184
|
},
|
|
185
|
-
size:
|
|
185
|
+
size: X,
|
|
186
186
|
disabled: Boolean,
|
|
187
187
|
modelValue: {
|
|
188
188
|
type: [String, Number, Boolean],
|
|
@@ -205,14 +205,14 @@ const Ke = U({
|
|
|
205
205
|
default: !0
|
|
206
206
|
},
|
|
207
207
|
...pe(["ariaLabel"])
|
|
208
|
-
}),
|
|
208
|
+
}), Ke = ae, Me = C({
|
|
209
209
|
name: "ElRadioGroup"
|
|
210
|
-
}),
|
|
210
|
+
}), je = /* @__PURE__ */ C({
|
|
211
211
|
...Me,
|
|
212
|
-
props:
|
|
213
|
-
emits:
|
|
212
|
+
props: De,
|
|
213
|
+
emits: Ke,
|
|
214
214
|
setup(a, { emit: b }) {
|
|
215
|
-
const n = a, o =
|
|
215
|
+
const n = a, o = $("radio"), d = ve(), c = R(), { formItem: s } = Se(), { inputId: p, isLabeledByFormItem: l } = Ve(n, {
|
|
216
216
|
formItemContext: s
|
|
217
217
|
}), u = (t) => {
|
|
218
218
|
b(L, t), Q(() => b("change", t));
|
|
@@ -222,13 +222,13 @@ const Ke = U({
|
|
|
222
222
|
!Array.from(t).some((i) => i.checked) && _ && (_.tabIndex = 0);
|
|
223
223
|
});
|
|
224
224
|
const v = g(() => n.name || d.value);
|
|
225
|
-
return
|
|
226
|
-
...
|
|
225
|
+
return Ee(le, Ie({
|
|
226
|
+
...Be(n),
|
|
227
227
|
changeEvent: u,
|
|
228
228
|
name: v
|
|
229
229
|
})), ee(() => n.modelValue, () => {
|
|
230
230
|
n.validateEvent && (s == null || s.validate("change").catch((t) => fe(t)));
|
|
231
|
-
}), (t, _) => (k(),
|
|
231
|
+
}), (t, _) => (k(), I("div", {
|
|
232
232
|
id: e(p),
|
|
233
233
|
ref_key: "radioGroupRef",
|
|
234
234
|
ref: c,
|
|
@@ -241,16 +241,16 @@ const Ke = U({
|
|
|
241
241
|
], 10, ["id", "aria-label", "aria-labelledby"]));
|
|
242
242
|
}
|
|
243
243
|
});
|
|
244
|
-
var se = /* @__PURE__ */
|
|
245
|
-
const
|
|
244
|
+
var se = /* @__PURE__ */ x(je, [["__file", "radio-group.vue"]]);
|
|
245
|
+
const Oe = be(Pe, {
|
|
246
246
|
RadioButton: ne,
|
|
247
247
|
RadioGroup: se
|
|
248
|
-
}), He =
|
|
249
|
-
|
|
250
|
-
const We = { class: "wrapper" }, Xe = { class: "screen_thumbnail" },
|
|
248
|
+
}), He = W(se);
|
|
249
|
+
W(ne);
|
|
250
|
+
const We = { class: "wrapper" }, Xe = { class: "screen_thumbnail" }, Ye = ["src"], qe = { class: "validity-period" }, Je = {
|
|
251
251
|
key: 0,
|
|
252
252
|
class: "custom"
|
|
253
|
-
},
|
|
253
|
+
}, to = /* @__PURE__ */ C({
|
|
254
254
|
__name: "ScreenShotTool",
|
|
255
255
|
props: ["componentId"],
|
|
256
256
|
emits: ["closePanel"],
|
|
@@ -265,56 +265,56 @@ const We = { class: "wrapper" }, Xe = { class: "screen_thumbnail" }, qe = ["src"
|
|
|
265
265
|
}
|
|
266
266
|
);
|
|
267
267
|
const u = (i) => {
|
|
268
|
-
d.value = i, i !== 3 && (c.value =
|
|
268
|
+
d.value = i, i !== 3 && (c.value = G[i].width, s.value = G[i].height);
|
|
269
269
|
}, v = () => {
|
|
270
270
|
l("closePanel");
|
|
271
271
|
}, t = (i, r, S) => {
|
|
272
|
-
const h = document.getElementById("myCanvas"),
|
|
273
|
-
|
|
272
|
+
const h = document.getElementById("myCanvas"), E = document.createElement("a");
|
|
273
|
+
E.download = "screenshot.png";
|
|
274
274
|
const V = document.createElement("canvas"), m = V.getContext("2d");
|
|
275
275
|
if (h && m) {
|
|
276
276
|
V.width = i, V.height = r;
|
|
277
277
|
const ie = i / h.width, re = r / h.height, F = Math.max(ie, re), A = h.width * F, D = h.height * F, de = (i - A) / 2, ue = (r - D) / 2;
|
|
278
278
|
m.clearRect(0, 0, i, r), m.fillStyle = "transparent", m.fillRect(0, 0, i, r), m.drawImage(h, 0, 0, h.width, h.height, de, ue, A, D), S ? V.toBlob(function(ce) {
|
|
279
279
|
const K = URL.createObjectURL(ce);
|
|
280
|
-
|
|
280
|
+
E.href = K, E.click(), URL.revokeObjectURL(K);
|
|
281
281
|
}) : p.value = V.toDataURL("image/png");
|
|
282
282
|
}
|
|
283
283
|
}, _ = () => {
|
|
284
284
|
t(c.value, s.value, !0);
|
|
285
285
|
};
|
|
286
286
|
return (i, r) => {
|
|
287
|
-
const S =
|
|
288
|
-
return k(),
|
|
289
|
-
class: "
|
|
287
|
+
const S = Oe, h = He, E = Re, V = me;
|
|
288
|
+
return k(), we(V, {
|
|
289
|
+
class: "screen_container",
|
|
290
290
|
width: 240,
|
|
291
291
|
panelTitle: "截图",
|
|
292
292
|
"click-handle": v
|
|
293
293
|
}, {
|
|
294
|
-
default:
|
|
294
|
+
default: z(() => [
|
|
295
295
|
f("div", We, [
|
|
296
296
|
f("div", Xe, [
|
|
297
297
|
f("img", {
|
|
298
298
|
class: "thumbnail_img",
|
|
299
299
|
src: p.value,
|
|
300
300
|
alt: ""
|
|
301
|
-
}, null, 8,
|
|
301
|
+
}, null, 8, Ye)
|
|
302
302
|
]),
|
|
303
303
|
B(h, {
|
|
304
304
|
modelValue: d.value,
|
|
305
305
|
"onUpdate:modelValue": r[0] || (r[0] = (m) => d.value = m),
|
|
306
306
|
onChange: u
|
|
307
307
|
}, {
|
|
308
|
-
default:
|
|
309
|
-
f("div",
|
|
310
|
-
(k(!0),
|
|
308
|
+
default: z(() => [
|
|
309
|
+
f("div", qe, [
|
|
310
|
+
(k(!0), I(Ne, null, Ue(e(G), (m) => (k(), I("div", {
|
|
311
311
|
key: m.id,
|
|
312
312
|
class: "period_box"
|
|
313
313
|
}, [
|
|
314
314
|
B(S, {
|
|
315
315
|
label: m.id
|
|
316
316
|
}, {
|
|
317
|
-
default:
|
|
317
|
+
default: z(() => [
|
|
318
318
|
N(T(m.name), 1)
|
|
319
319
|
]),
|
|
320
320
|
_: 2
|
|
@@ -324,19 +324,19 @@ const We = { class: "wrapper" }, Xe = { class: "screen_thumbnail" }, qe = ["src"
|
|
|
324
324
|
]),
|
|
325
325
|
_: 1
|
|
326
326
|
}, 8, ["modelValue"]),
|
|
327
|
-
d.value === 3 ? (k(),
|
|
328
|
-
B(
|
|
327
|
+
d.value === 3 ? (k(), I("div", Je, [
|
|
328
|
+
B(E, {
|
|
329
329
|
modelValue: c.value,
|
|
330
330
|
"onUpdate:modelValue": r[1] || (r[1] = (m) => c.value = m),
|
|
331
331
|
placeholder: "请输入长度"
|
|
332
332
|
}, null, 8, ["modelValue"]),
|
|
333
333
|
N(" x "),
|
|
334
|
-
B(
|
|
334
|
+
B(E, {
|
|
335
335
|
modelValue: s.value,
|
|
336
336
|
"onUpdate:modelValue": r[2] || (r[2] = (m) => s.value = m),
|
|
337
337
|
placeholder: "请输入宽度"
|
|
338
338
|
}, null, 8, ["modelValue"])
|
|
339
|
-
])) :
|
|
339
|
+
])) : ze("", !0),
|
|
340
340
|
f("div", { class: "footer" }, [
|
|
341
341
|
f("div", {
|
|
342
342
|
class: "btn1",
|
|
@@ -353,7 +353,7 @@ const We = { class: "wrapper" }, Xe = { class: "screen_thumbnail" }, qe = ["src"
|
|
|
353
353
|
});
|
|
354
354
|
};
|
|
355
355
|
}
|
|
356
|
-
})
|
|
356
|
+
});
|
|
357
357
|
export {
|
|
358
|
-
|
|
358
|
+
to as default
|
|
359
359
|
};
|