@xtctwins/tctwins-bimx-engine 0.3.9 → 0.3.11

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.
Files changed (41) hide show
  1. package/dist/{AnnotationTool-BN1cQJZT.mjs → AnnotationTool-BnLd0s38.mjs} +2 -2
  2. package/dist/AnnotationTool-Bp8DGFFA.mjs +167 -0
  3. package/dist/BIMX_Viewer_Lib.es.js +1 -1
  4. package/dist/BIMX_Viewer_Lib.umd.js +119 -119
  5. package/dist/{CameraViewTool-DoHrCSBa.mjs → CameraViewTool-BGmwAori.mjs} +1 -1
  6. package/dist/CameraViewTool-BwVnc0ua.mjs +164 -0
  7. package/dist/{CommentTool-DzpiIRq5.mjs → CommentTool-B9TgO52t.mjs} +1 -1
  8. package/dist/CommentTool-C7NLPxMd.mjs +1529 -0
  9. package/dist/{HiddenTool-DKl-Td4d.mjs → HiddenTool-CNMJqZzC.mjs} +1 -1
  10. package/dist/HiddenTool-i1AESn4-.mjs +57 -0
  11. package/dist/{InspectorTool-ButMlfJZ.mjs → InspectorTool-CiyN_aCB.mjs} +29 -28
  12. package/dist/InspectorTool-D4gr7uiQ.mjs +679 -0
  13. package/dist/{MeasureTool-HA7KurNk.mjs → MeasureTool-BNBUx-1X.mjs} +2 -2
  14. package/dist/MeasureTool-Cxnp9MVY.mjs +323 -0
  15. package/dist/{MouseTool-Cx7FUkja.mjs → MouseTool-B07SstRZ.mjs} +1 -1
  16. package/dist/MouseTool-DVqNDADf.mjs +84 -0
  17. package/dist/{NavigateTool-CHspxjfw.mjs → NavigateTool-B8qIl9xy.mjs} +1 -1
  18. package/dist/NavigateTool-DKTSPVCL.mjs +52 -0
  19. package/dist/{RoamTool-CvErAJ4s.mjs → RoamTool-3sDI1Ouu.mjs} +1 -1
  20. package/dist/RoamTool-CazuxheL.mjs +287 -0
  21. package/dist/{ScreenShotTool-BKFYnVZ5.mjs → ScreenShotTool-CjsT2-Va.mjs} +2 -2
  22. package/dist/ScreenShotTool-fYVxpPrW.mjs +430 -0
  23. package/dist/{SectionTool-Dc_qndpy.mjs → SectionTool-Bpk5jewK.mjs} +4 -4
  24. package/dist/SectionTool-DMSGkjYm.mjs +331 -0
  25. package/dist/{SettingTool-BYVwI27m.mjs → SettingTool-BuSm2JB6.mjs} +3 -3
  26. package/dist/SettingTool-IBRpWdfo.mjs +695 -0
  27. package/dist/{StructureTree-CNrEg0TP.mjs → StructureTree-B183vT5b.mjs} +3 -3
  28. package/dist/StructureTree-D9z28tm4.mjs +1686 -0
  29. package/dist/{alert-BE0cXifr.mjs → alert-DN7oOiZl.mjs} +1 -1
  30. package/dist/alert-DwTFq4bp.mjs +47 -0
  31. package/dist/{el-slider-D_kA0TiT.mjs → el-slider-C9_q447A.mjs} +1 -1
  32. package/dist/el-slider-dslleM3g.mjs +1059 -0
  33. package/dist/index-BzB8rqmg.mjs +131961 -0
  34. package/dist/{index-s9bhlFsR.mjs → index-DfRswjrC.mjs} +19136 -18956
  35. package/dist/{panel.vue_vue_type_style_index_0_lang-D0m8xJuR.mjs → panel.vue_vue_type_style_index_0_lang-DOsptET6.mjs} +1 -1
  36. package/dist/panel.vue_vue_type_style_index_0_lang-E8w23EhV.mjs +61 -0
  37. package/dist/style.css +1 -1
  38. package/dist/{tallPanel-C_lzWM4i.mjs → tallPanel-D0Zgkc3n.mjs} +1 -1
  39. package/dist/tallPanel-Dp1ZbCTR.mjs +84 -0
  40. package/package.json +3 -2
  41. package/types/viewerManager/load/loadModel.d.ts +23 -0
@@ -0,0 +1,430 @@
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
+ };
@@ -1,7 +1,7 @@
1
- import { _ as me } from "./alert-BE0cXifr.mjs";
2
- import { F as pe, G as fe, T as j, H as w, I as z, P as d, K as he, Z as ke, L as ge, M as we } from "./index-s9bhlFsR.mjs";
3
- import { E as be } from "./el-slider-D_kA0TiT.mjs";
4
- import { _ as ye } from "./panel.vue_vue_type_style_index_0_lang-D0m8xJuR.mjs";
1
+ import { _ as me } from "./alert-DwTFq4bp.mjs";
2
+ import { F as pe, G as fe, T as j, H as w, I as z, P as d, K as he, Z as ke, L as ge, M as we } from "./index-DfRswjrC.mjs";
3
+ import { E as be } from "./el-slider-C9_q447A.mjs";
4
+ import { _ as ye } from "./panel.vue_vue_type_style_index_0_lang-E8w23EhV.mjs";
5
5
  import { defineComponent as Se, ref as v, onMounted as Ce, watch as Ve, onBeforeUnmount as xe, openBlock as s, createElementBlock as l, Fragment as B, unref as n, createBlock as Pe, withCtx as E, createElementVNode as o, toDisplayString as u, withDirectives as G, renderList as H, vShow as W, createVNode as m, normalizeClass as Te, withModifiers as Le, createTextVNode as $e } from "vue";
6
6
  import { B as ze } from "./const-DOnRsYpZ.mjs";
7
7
  const Be = { class: "section_panel_middle" }, Ee = { class: "section_middle_title" }, Ie = { class: "section_control_button" }, Ae = ["src"], De = { class: "control_buttons" }, Me = ["onClick"], Oe = { class: "section_panel_cont" }, Ue = {