@xtctwins/tctwins-bimx-engine 0.3.11 → 0.3.13
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 +1 -1
- package/dist/{AnnotationTool-BnLd0s38.mjs → AnnotationTool-k3W4xmw6.mjs} +13 -14
- package/dist/BIMX_Viewer_Lib.es.js +5 -5
- package/dist/BIMX_Viewer_Lib.umd.js +184 -164
- package/dist/{CameraViewTool-BGmwAori.mjs → CameraViewTool-CuXnJa74.mjs} +15 -15
- package/dist/{CommentTool-B9TgO52t.mjs → CommentTool-CUtaZc7Y.mjs} +276 -277
- package/dist/{HiddenTool-CNMJqZzC.mjs → HiddenTool-CzJ19mP1.mjs} +9 -10
- package/dist/{InspectorTool-CiyN_aCB.mjs → InspectorTool-BTH82K8b.mjs} +3 -3
- package/dist/MeasureTool-BvPkIvmX.mjs +593 -0
- package/dist/{MouseTool-B07SstRZ.mjs → MouseTool-CiywjpW3.mjs} +6 -6
- package/dist/{NavigateTool-B8qIl9xy.mjs → NavigateTool-CDlYpMXl.mjs} +13 -14
- package/dist/OperateTool-NMIYz2YN.mjs +185 -0
- package/dist/{RoamTool-3sDI1Ouu.mjs → RoamTool-BkwJBBAg.mjs} +1 -1
- package/dist/{ScreenShotTool-CjsT2-Va.mjs → ScreenShotTool-BP-xDRKf.mjs} +16 -17
- package/dist/SectionTool-mt4iqa1I.mjs +241 -0
- package/dist/SettingTool-DieHq4VO.mjs +1745 -0
- package/dist/{StructureTree-B183vT5b.mjs → StructureTree-C8C435JY.mjs} +5 -6
- package/dist/{alert-DN7oOiZl.mjs → alert-B9Uw8l52.mjs} +18 -13
- package/dist/{index-DfRswjrC.mjs → index-B_IMYBaJ.mjs} +59333 -53195
- package/dist/{panel.vue_vue_type_style_index_0_lang-DOsptET6.mjs → panel.vue_vue_type_style_index_0_lang-BswWCo8x.mjs} +1 -1
- package/dist/style.css +1 -1
- package/dist/{tallPanel-D0Zgkc3n.mjs → tallPanel-CnTIaRU-.mjs} +1 -1
- package/package.json +5 -5
- package/types/components/BimViewerComponents/OperateTool.vue.d.ts +12 -0
- package/types/components/BimViewerComponents/SectionModeBar.vue.d.ts +2 -0
- package/types/components/BimxViewerComp.vue.d.ts +2 -0
- package/types/components/utilsComponents/alert.vue.d.ts +9 -0
- package/types/i18n/index.d.ts +212 -0
- package/types/i18n/locales/en-US.d.ts +53 -0
- package/types/i18n/locales/zh-CN.d.ts +53 -0
- package/types/pages/BimxViewerEntry.vue.d.ts +3 -0
- package/types/store/const.d.ts +12 -0
- package/types/store/toolbars.d.ts +53 -1
- package/types/utils/OSSHelper.d.ts +2 -0
- package/types/utils/eventBus.d.ts +6 -1
- package/types/viewerManager/load/loadModel.d.ts +88 -0
- package/types/viewerManager/sectionManager.d.ts +524 -0
- package/types/viewerManager/viewerManager.d.ts +7 -1
- package/dist/AnnotationTool-Bp8DGFFA.mjs +0 -167
- package/dist/CameraViewTool-BwVnc0ua.mjs +0 -164
- package/dist/CommentTool-C7NLPxMd.mjs +0 -1529
- package/dist/HiddenTool-i1AESn4-.mjs +0 -57
- package/dist/InspectorTool-D4gr7uiQ.mjs +0 -679
- package/dist/MeasureTool-BNBUx-1X.mjs +0 -323
- package/dist/MeasureTool-Cxnp9MVY.mjs +0 -323
- package/dist/MouseTool-DVqNDADf.mjs +0 -84
- package/dist/NavigateTool-DKTSPVCL.mjs +0 -52
- package/dist/RoamTool-CazuxheL.mjs +0 -287
- package/dist/ScreenShotTool-fYVxpPrW.mjs +0 -430
- package/dist/SectionTool-Bpk5jewK.mjs +0 -331
- package/dist/SectionTool-DMSGkjYm.mjs +0 -331
- package/dist/SettingTool-BuSm2JB6.mjs +0 -695
- package/dist/SettingTool-IBRpWdfo.mjs +0 -695
- package/dist/StructureTree-D9z28tm4.mjs +0 -1686
- package/dist/alert-DwTFq4bp.mjs +0 -47
- package/dist/const-DOnRsYpZ.mjs +0 -389
- package/dist/el-slider-C9_q447A.mjs +0 -1059
- package/dist/el-slider-dslleM3g.mjs +0 -1059
- package/dist/index-BzB8rqmg.mjs +0 -131961
- package/dist/panel.vue_vue_type_style_index_0_lang-E8w23EhV.mjs +0 -61
- package/dist/tallPanel-Dp1ZbCTR.mjs +0 -84
|
@@ -1,430 +0,0 @@
|
|
|
1
|
-
import { _ as _e } from "./panel.vue_vue_type_style_index_0_lang-DOsptET6.mjs";
|
|
2
|
-
import { ab as U, o as K, ac as q, g as G, ad as Y, b as N, ae as J, af as he, j as H, q as X, a as Se, ag as Ve, ah as Ee, u as $, ai as Re, aj as ke, ak as Ce, C as Ie, N as Be, al as Pe, am as W, w as xe, F as we, G as Ne, J as ze } from "./index-BzB8rqmg.mjs";
|
|
3
|
-
import { ref as C, inject as Te, computed as h, defineComponent as z, openBlock as R, createElementBlock as I, normalizeClass as E, unref as e, createElementVNode as y, withDirectives as Q, withModifiers as x, isRef as Z, vModelRadio as ee, renderSlot as D, createTextVNode as w, toDisplayString as B, nextTick as te, normalizeStyle as Le, onMounted as ae, provide as Ue, reactive as $e, toRefs as De, watch as oe, Fragment as le, renderList as se, createBlock as ne, resolveDynamicComponent as Fe, mergeProps as Ae, withCtx as T, createVNode as P, createCommentVNode as Oe } from "vue";
|
|
4
|
-
import { a as L } from "./const-DOnRsYpZ.mjs";
|
|
5
|
-
const ie = N({
|
|
6
|
-
/**
|
|
7
|
-
* @description binding value
|
|
8
|
-
*/
|
|
9
|
-
modelValue: {
|
|
10
|
-
type: [
|
|
11
|
-
String,
|
|
12
|
-
Number,
|
|
13
|
-
Boolean
|
|
14
|
-
],
|
|
15
|
-
default: void 0
|
|
16
|
-
},
|
|
17
|
-
/**
|
|
18
|
-
* @description size of the Radio
|
|
19
|
-
*/
|
|
20
|
-
size: J,
|
|
21
|
-
/**
|
|
22
|
-
* @description whether Radio is disabled
|
|
23
|
-
*/
|
|
24
|
-
disabled: {
|
|
25
|
-
type: Boolean,
|
|
26
|
-
default: void 0
|
|
27
|
-
},
|
|
28
|
-
/**
|
|
29
|
-
* @description the label of Radio
|
|
30
|
-
*/
|
|
31
|
-
label: {
|
|
32
|
-
type: [
|
|
33
|
-
String,
|
|
34
|
-
Number,
|
|
35
|
-
Boolean
|
|
36
|
-
],
|
|
37
|
-
default: void 0
|
|
38
|
-
},
|
|
39
|
-
/**
|
|
40
|
-
* @description the value of Radio
|
|
41
|
-
*/
|
|
42
|
-
value: {
|
|
43
|
-
type: [
|
|
44
|
-
String,
|
|
45
|
-
Number,
|
|
46
|
-
Boolean
|
|
47
|
-
],
|
|
48
|
-
default: void 0
|
|
49
|
-
},
|
|
50
|
-
/**
|
|
51
|
-
* @description native `name` attribute
|
|
52
|
-
*/
|
|
53
|
-
name: {
|
|
54
|
-
type: String,
|
|
55
|
-
default: void 0
|
|
56
|
-
}
|
|
57
|
-
}), je = N({
|
|
58
|
-
...ie,
|
|
59
|
-
/**
|
|
60
|
-
* @description whether to add a border around Radio
|
|
61
|
-
*/
|
|
62
|
-
border: Boolean
|
|
63
|
-
}), re = {
|
|
64
|
-
[Y]: (o) => K(o) || q(o) || G(o),
|
|
65
|
-
[U]: (o) => K(o) || q(o) || G(o)
|
|
66
|
-
}, de = Symbol("radioGroupKey"), Me = N({ ...ie }), ue = {
|
|
67
|
-
label: "label",
|
|
68
|
-
value: "value",
|
|
69
|
-
disabled: "disabled"
|
|
70
|
-
}, Ke = N({
|
|
71
|
-
/**
|
|
72
|
-
* @description native `id` attribute
|
|
73
|
-
*/
|
|
74
|
-
id: {
|
|
75
|
-
type: String,
|
|
76
|
-
default: void 0
|
|
77
|
-
},
|
|
78
|
-
/**
|
|
79
|
-
* @description the size of radio buttons or bordered radios
|
|
80
|
-
*/
|
|
81
|
-
size: J,
|
|
82
|
-
/**
|
|
83
|
-
* @description whether the nesting radios are disabled
|
|
84
|
-
*/
|
|
85
|
-
disabled: {
|
|
86
|
-
type: Boolean,
|
|
87
|
-
default: void 0
|
|
88
|
-
},
|
|
89
|
-
/**
|
|
90
|
-
* @description binding value
|
|
91
|
-
*/
|
|
92
|
-
modelValue: {
|
|
93
|
-
type: [
|
|
94
|
-
String,
|
|
95
|
-
Number,
|
|
96
|
-
Boolean
|
|
97
|
-
],
|
|
98
|
-
default: void 0
|
|
99
|
-
},
|
|
100
|
-
/**
|
|
101
|
-
* @description border and background color when button is active
|
|
102
|
-
*/
|
|
103
|
-
fill: {
|
|
104
|
-
type: String,
|
|
105
|
-
default: ""
|
|
106
|
-
},
|
|
107
|
-
/**
|
|
108
|
-
* @description font color when button is active
|
|
109
|
-
*/
|
|
110
|
-
textColor: {
|
|
111
|
-
type: String,
|
|
112
|
-
default: ""
|
|
113
|
-
},
|
|
114
|
-
/**
|
|
115
|
-
* @description native `name` attribute
|
|
116
|
-
*/
|
|
117
|
-
name: {
|
|
118
|
-
type: String,
|
|
119
|
-
default: void 0
|
|
120
|
-
},
|
|
121
|
-
/**
|
|
122
|
-
* @description whether to trigger form validation
|
|
123
|
-
*/
|
|
124
|
-
validateEvent: {
|
|
125
|
-
type: Boolean,
|
|
126
|
-
default: !0
|
|
127
|
-
},
|
|
128
|
-
options: { type: H(Array) },
|
|
129
|
-
props: {
|
|
130
|
-
type: H(Object),
|
|
131
|
-
default: () => ue
|
|
132
|
-
},
|
|
133
|
-
type: {
|
|
134
|
-
type: String,
|
|
135
|
-
values: ["radio", "button"],
|
|
136
|
-
default: "radio"
|
|
137
|
-
},
|
|
138
|
-
...he(["ariaLabel"])
|
|
139
|
-
}), qe = re, ce = (o, S) => {
|
|
140
|
-
const l = C(), r = Te(de, void 0), s = h(() => !!r), f = h(() => X(o.value) ? o.label : o.value), c = h({
|
|
141
|
-
get() {
|
|
142
|
-
return s.value ? r.modelValue : o.modelValue;
|
|
143
|
-
},
|
|
144
|
-
set(g) {
|
|
145
|
-
s.value ? r.changeEvent(g) : S && S("update:modelValue", g), l.value.checked = o.modelValue === f.value;
|
|
146
|
-
}
|
|
147
|
-
}), i = Se(h(() => r == null ? void 0 : r.size)), n = Ve(h(() => r == null ? void 0 : r.disabled)), b = C(!1), v = h(() => n.value || s.value && c.value !== f.value ? -1 : 0);
|
|
148
|
-
return Ee({
|
|
149
|
-
from: "label act as value",
|
|
150
|
-
replacement: "value",
|
|
151
|
-
version: "3.0.0",
|
|
152
|
-
scope: "el-radio",
|
|
153
|
-
ref: "https://element-plus.org/en-US/component/radio.html"
|
|
154
|
-
}, h(() => s.value && X(o.value))), {
|
|
155
|
-
radioRef: l,
|
|
156
|
-
isGroup: s,
|
|
157
|
-
radioGroup: r,
|
|
158
|
-
focus: b,
|
|
159
|
-
size: i,
|
|
160
|
-
disabled: n,
|
|
161
|
-
tabIndex: v,
|
|
162
|
-
modelValue: c,
|
|
163
|
-
actualValue: f
|
|
164
|
-
};
|
|
165
|
-
}, Ge = [
|
|
166
|
-
"value",
|
|
167
|
-
"name",
|
|
168
|
-
"disabled",
|
|
169
|
-
"checked"
|
|
170
|
-
];
|
|
171
|
-
var He = /* @__PURE__ */ z({
|
|
172
|
-
name: "ElRadio",
|
|
173
|
-
__name: "radio",
|
|
174
|
-
props: je,
|
|
175
|
-
emits: re,
|
|
176
|
-
setup(o, { emit: S }) {
|
|
177
|
-
const l = o, r = S, s = $("radio"), { radioRef: f, radioGroup: c, focus: i, size: n, disabled: b, modelValue: v, actualValue: g } = ce(l, r);
|
|
178
|
-
function d() {
|
|
179
|
-
te(() => r(U, v.value));
|
|
180
|
-
}
|
|
181
|
-
return (k, a) => {
|
|
182
|
-
var t;
|
|
183
|
-
return R(), I("label", { class: E([
|
|
184
|
-
e(s).b(),
|
|
185
|
-
e(s).is("disabled", e(b)),
|
|
186
|
-
e(s).is("focus", e(i)),
|
|
187
|
-
e(s).is("bordered", o.border),
|
|
188
|
-
e(s).is("checked", e(v) === e(g)),
|
|
189
|
-
e(s).m(e(n))
|
|
190
|
-
]) }, [y("span", { class: E([
|
|
191
|
-
e(s).e("input"),
|
|
192
|
-
e(s).is("disabled", e(b)),
|
|
193
|
-
e(s).is("checked", e(v) === e(g))
|
|
194
|
-
]) }, [Q(y("input", {
|
|
195
|
-
ref_key: "radioRef",
|
|
196
|
-
ref: f,
|
|
197
|
-
"onUpdate:modelValue": a[0] || (a[0] = (m) => Z(v) ? v.value = m : null),
|
|
198
|
-
class: E(e(s).e("original")),
|
|
199
|
-
value: e(g),
|
|
200
|
-
name: o.name || ((t = e(c)) == null ? void 0 : t.name),
|
|
201
|
-
disabled: e(b),
|
|
202
|
-
checked: e(v) === e(g),
|
|
203
|
-
type: "radio",
|
|
204
|
-
onFocus: a[1] || (a[1] = (m) => i.value = !0),
|
|
205
|
-
onBlur: a[2] || (a[2] = (m) => i.value = !1),
|
|
206
|
-
onChange: d,
|
|
207
|
-
onClick: a[3] || (a[3] = x(() => {
|
|
208
|
-
}, ["stop"]))
|
|
209
|
-
}, null, 42, Ge), [[ee, e(v)]]), y("span", { class: E(e(s).e("inner")) }, null, 2)], 2), y("span", {
|
|
210
|
-
class: E(e(s).e("label")),
|
|
211
|
-
onKeydown: a[4] || (a[4] = x(() => {
|
|
212
|
-
}, ["stop"]))
|
|
213
|
-
}, [D(k.$slots, "default", {}, () => [w(B(o.label), 1)])], 34)], 2);
|
|
214
|
-
};
|
|
215
|
-
}
|
|
216
|
-
}), me = He;
|
|
217
|
-
const Xe = [
|
|
218
|
-
"value",
|
|
219
|
-
"name",
|
|
220
|
-
"disabled"
|
|
221
|
-
];
|
|
222
|
-
var Ye = /* @__PURE__ */ z({
|
|
223
|
-
name: "ElRadioButton",
|
|
224
|
-
__name: "radio-button",
|
|
225
|
-
props: Me,
|
|
226
|
-
setup(o) {
|
|
227
|
-
const S = o, l = $("radio"), { radioRef: r, focus: s, size: f, disabled: c, modelValue: i, radioGroup: n, actualValue: b } = ce(S), v = h(() => ({
|
|
228
|
-
backgroundColor: (n == null ? void 0 : n.fill) || "",
|
|
229
|
-
borderColor: (n == null ? void 0 : n.fill) || "",
|
|
230
|
-
boxShadow: n != null && n.fill ? `-1px 0 0 0 ${n.fill}` : "",
|
|
231
|
-
color: (n == null ? void 0 : n.textColor) || ""
|
|
232
|
-
}));
|
|
233
|
-
return (g, d) => {
|
|
234
|
-
var k;
|
|
235
|
-
return R(), I("label", { class: E([
|
|
236
|
-
e(l).b("button"),
|
|
237
|
-
e(l).is("active", e(i) === e(b)),
|
|
238
|
-
e(l).is("disabled", e(c)),
|
|
239
|
-
e(l).is("focus", e(s)),
|
|
240
|
-
e(l).bm("button", e(f))
|
|
241
|
-
]) }, [Q(y("input", {
|
|
242
|
-
ref_key: "radioRef",
|
|
243
|
-
ref: r,
|
|
244
|
-
"onUpdate:modelValue": d[0] || (d[0] = (a) => Z(i) ? i.value = a : null),
|
|
245
|
-
class: E(e(l).be("button", "original-radio")),
|
|
246
|
-
value: e(b),
|
|
247
|
-
type: "radio",
|
|
248
|
-
name: o.name || ((k = e(n)) == null ? void 0 : k.name),
|
|
249
|
-
disabled: e(c),
|
|
250
|
-
onFocus: d[1] || (d[1] = (a) => s.value = !0),
|
|
251
|
-
onBlur: d[2] || (d[2] = (a) => s.value = !1),
|
|
252
|
-
onClick: d[3] || (d[3] = x(() => {
|
|
253
|
-
}, ["stop"]))
|
|
254
|
-
}, null, 42, Xe), [[ee, e(i)]]), y("span", {
|
|
255
|
-
class: E(e(l).be("button", "inner")),
|
|
256
|
-
style: Le(e(i) === e(b) ? v.value : {}),
|
|
257
|
-
onKeydown: d[4] || (d[4] = x(() => {
|
|
258
|
-
}, ["stop"]))
|
|
259
|
-
}, [D(g.$slots, "default", {}, () => [w(B(o.label), 1)])], 38)], 2);
|
|
260
|
-
};
|
|
261
|
-
}
|
|
262
|
-
}), F = Ye;
|
|
263
|
-
const Je = [
|
|
264
|
-
"id",
|
|
265
|
-
"aria-label",
|
|
266
|
-
"aria-labelledby"
|
|
267
|
-
];
|
|
268
|
-
var We = /* @__PURE__ */ z({
|
|
269
|
-
name: "ElRadioGroup",
|
|
270
|
-
__name: "radio-group",
|
|
271
|
-
props: Ke,
|
|
272
|
-
emits: qe,
|
|
273
|
-
setup(o, { emit: S }) {
|
|
274
|
-
const l = o, r = S, s = $("radio"), f = Re(), c = C(), { formItem: i } = ke(), { inputId: n, isLabeledByFormItem: b } = Ce(l, { formItemContext: i }), v = (t) => {
|
|
275
|
-
r(Y, t), te(() => r(U, t));
|
|
276
|
-
};
|
|
277
|
-
ae(() => {
|
|
278
|
-
const t = c.value.querySelectorAll("[type=radio]"), m = t[0];
|
|
279
|
-
!Array.from(t).some((u) => u.checked) && m && (m.tabIndex = 0);
|
|
280
|
-
});
|
|
281
|
-
const g = h(() => l.name || f.value), d = h(() => ({
|
|
282
|
-
...ue,
|
|
283
|
-
...l.props
|
|
284
|
-
})), k = (t) => {
|
|
285
|
-
const { label: m, value: u, disabled: _ } = d.value, V = {
|
|
286
|
-
label: t[m],
|
|
287
|
-
value: t[u],
|
|
288
|
-
disabled: t[_]
|
|
289
|
-
};
|
|
290
|
-
return {
|
|
291
|
-
...Pe(t, [
|
|
292
|
-
m,
|
|
293
|
-
u,
|
|
294
|
-
_
|
|
295
|
-
]),
|
|
296
|
-
...V
|
|
297
|
-
};
|
|
298
|
-
}, a = h(() => l.type === "button" ? F : me);
|
|
299
|
-
return Ue(de, $e({
|
|
300
|
-
...De(l),
|
|
301
|
-
changeEvent: v,
|
|
302
|
-
name: g
|
|
303
|
-
})), oe(() => l.modelValue, (t, m) => {
|
|
304
|
-
l.validateEvent && !Ie(t, m) && (i == null || i.validate("change").catch(Be));
|
|
305
|
-
}), (t, m) => (R(), I("div", {
|
|
306
|
-
id: e(n),
|
|
307
|
-
ref_key: "radioGroupRef",
|
|
308
|
-
ref: c,
|
|
309
|
-
class: E(e(s).b("group")),
|
|
310
|
-
role: "radiogroup",
|
|
311
|
-
"aria-label": e(b) ? void 0 : o.ariaLabel || "radio-group",
|
|
312
|
-
"aria-labelledby": e(b) ? e(i).labelId : void 0
|
|
313
|
-
}, [D(t.$slots, "default", {}, () => [(R(!0), I(le, null, se(o.options, (u, _) => (R(), ne(Fe(a.value), Ae({ key: _ }, { ref_for: !0 }, k(u)), null, 16))), 128))])], 10, Je));
|
|
314
|
-
}
|
|
315
|
-
}), pe = We;
|
|
316
|
-
const Qe = xe(me, {
|
|
317
|
-
RadioButton: F,
|
|
318
|
-
RadioGroup: pe
|
|
319
|
-
}), Ze = W(pe);
|
|
320
|
-
W(F);
|
|
321
|
-
const et = { class: "wrapper" }, tt = { class: "screen_thumbnail" }, at = ["src"], ot = { class: "validity-period" }, lt = {
|
|
322
|
-
key: 0,
|
|
323
|
-
class: "custom"
|
|
324
|
-
}, st = { class: "footer" }, ut = /* @__PURE__ */ z({
|
|
325
|
-
__name: "ScreenShotTool",
|
|
326
|
-
props: ["componentId"],
|
|
327
|
-
emits: ["closePanel"],
|
|
328
|
-
setup(o, { emit: S }) {
|
|
329
|
-
const l = we(), r = Ne(), s = o, f = C(0), c = C(), i = C(), n = C(), b = S;
|
|
330
|
-
ae(() => {
|
|
331
|
-
c.value = 1280, i.value = 720, r.setReadyById(s.componentId);
|
|
332
|
-
}), oe(
|
|
333
|
-
() => r.isToolActive(s.componentId),
|
|
334
|
-
(a) => {
|
|
335
|
-
a && d(220, 124, !1);
|
|
336
|
-
}
|
|
337
|
-
);
|
|
338
|
-
const v = (a) => {
|
|
339
|
-
f.value = a, a !== 3 && (c.value = L[a].width, i.value = L[a].height);
|
|
340
|
-
}, g = () => {
|
|
341
|
-
b("closePanel");
|
|
342
|
-
}, d = (a, t, m) => {
|
|
343
|
-
const u = document.getElementById("myCanvas"), _ = document.createElement("a");
|
|
344
|
-
_.download = "screenshot.png";
|
|
345
|
-
const V = document.createElement("canvas"), p = V.getContext("2d");
|
|
346
|
-
if (u && p) {
|
|
347
|
-
V.width = a, V.height = t;
|
|
348
|
-
const ve = a / u.width, fe = t / u.height, A = Math.max(ve, fe), O = u.width * A, j = u.height * A, be = (a - O) / 2, ge = (t - j) / 2;
|
|
349
|
-
p.clearRect(0, 0, a, t), p.fillStyle = "transparent", p.fillRect(0, 0, a, t), p.drawImage(u, 0, 0, u.width, u.height, be, ge, O, j), m ? V.toBlob(function(ye) {
|
|
350
|
-
const M = URL.createObjectURL(ye);
|
|
351
|
-
_.href = M, _.click(), URL.revokeObjectURL(M);
|
|
352
|
-
}) : n.value = V.toDataURL("image/png");
|
|
353
|
-
}
|
|
354
|
-
}, k = () => {
|
|
355
|
-
d(c.value, i.value, !0);
|
|
356
|
-
};
|
|
357
|
-
return (a, t) => {
|
|
358
|
-
const m = Qe, u = Ze, _ = ze, V = _e;
|
|
359
|
-
return R(), ne(V, {
|
|
360
|
-
class: "screen_container",
|
|
361
|
-
width: 240,
|
|
362
|
-
panelTitle: e(l)("screenshot.title"),
|
|
363
|
-
"click-handle": g
|
|
364
|
-
}, {
|
|
365
|
-
default: T(() => [
|
|
366
|
-
y("div", et, [
|
|
367
|
-
y("div", tt, [
|
|
368
|
-
y("img", {
|
|
369
|
-
class: "thumbnail_img",
|
|
370
|
-
src: n.value,
|
|
371
|
-
alt: ""
|
|
372
|
-
}, null, 8, at)
|
|
373
|
-
]),
|
|
374
|
-
P(u, {
|
|
375
|
-
modelValue: f.value,
|
|
376
|
-
"onUpdate:modelValue": t[0] || (t[0] = (p) => f.value = p),
|
|
377
|
-
onChange: v
|
|
378
|
-
}, {
|
|
379
|
-
default: T(() => [
|
|
380
|
-
y("div", ot, [
|
|
381
|
-
(R(!0), I(le, null, se(e(L), (p) => (R(), I("div", {
|
|
382
|
-
key: p.id,
|
|
383
|
-
class: "period_box"
|
|
384
|
-
}, [
|
|
385
|
-
P(m, {
|
|
386
|
-
label: p.id
|
|
387
|
-
}, {
|
|
388
|
-
default: T(() => [
|
|
389
|
-
w(B(p.name || e(l)(p.label ?? "")), 1)
|
|
390
|
-
]),
|
|
391
|
-
_: 2
|
|
392
|
-
}, 1032, ["label"])
|
|
393
|
-
]))), 128))
|
|
394
|
-
])
|
|
395
|
-
]),
|
|
396
|
-
_: 1
|
|
397
|
-
}, 8, ["modelValue"]),
|
|
398
|
-
f.value === 3 ? (R(), I("div", lt, [
|
|
399
|
-
P(_, {
|
|
400
|
-
modelValue: c.value,
|
|
401
|
-
"onUpdate:modelValue": t[1] || (t[1] = (p) => c.value = p),
|
|
402
|
-
placeholder: e(l)("screenshot.widthPlaceholder")
|
|
403
|
-
}, null, 8, ["modelValue", "placeholder"]),
|
|
404
|
-
t[3] || (t[3] = w(" x ", -1)),
|
|
405
|
-
P(_, {
|
|
406
|
-
modelValue: i.value,
|
|
407
|
-
"onUpdate:modelValue": t[2] || (t[2] = (p) => i.value = p),
|
|
408
|
-
placeholder: e(l)("screenshot.heightPlaceholder")
|
|
409
|
-
}, null, 8, ["modelValue", "placeholder"])
|
|
410
|
-
])) : Oe("", !0),
|
|
411
|
-
y("div", st, [
|
|
412
|
-
y("div", {
|
|
413
|
-
class: "btn1",
|
|
414
|
-
onClick: g
|
|
415
|
-
}, B(e(l)("common.cancel")), 1),
|
|
416
|
-
y("div", {
|
|
417
|
-
class: "btn2",
|
|
418
|
-
onClick: k
|
|
419
|
-
}, B(e(l)("common.save")), 1)
|
|
420
|
-
])
|
|
421
|
-
])
|
|
422
|
-
]),
|
|
423
|
-
_: 1
|
|
424
|
-
}, 8, ["panelTitle"]);
|
|
425
|
-
};
|
|
426
|
-
}
|
|
427
|
-
});
|
|
428
|
-
export {
|
|
429
|
-
ut as default
|
|
430
|
-
};
|