@xtctwins/tctwins-bimx-engine 0.3.16 → 0.3.18

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 (90) hide show
  1. package/README.md +196 -196
  2. package/dist/{AnnotationTool-nASKNjgr.mjs → AnnotationTool-CzQVFGZm.mjs} +35 -35
  3. package/dist/BIMX_Viewer_Lib.es.js +6 -6
  4. package/dist/BIMX_Viewer_Lib.umd.js +216 -166
  5. package/dist/{CameraViewTool-DhAfiKWu.mjs → CameraViewTool-Cm7UrIEY.mjs} +38 -38
  6. package/dist/{CommentTool-a-BELMsU.mjs → CommentTool-C7VErDw6.mjs} +192 -192
  7. package/dist/{HiddenTool-CqWfECbU.mjs → HiddenTool-mH3cdTjy.mjs} +16 -16
  8. package/dist/{InspectorTool-x0VVNWza.mjs → InspectorTool-CG-QJKao.mjs} +13 -13
  9. package/dist/MeasureTool-DiF73s6L.mjs +595 -0
  10. package/dist/{MouseTool-D8x8R2Hl.mjs → MouseTool-DigCaD4c.mjs} +8 -8
  11. package/dist/{NavigateTool-D16vm_Ng.mjs → NavigateTool-C375lcY6.mjs} +8 -8
  12. package/dist/{OperateTool-_E-8qp5I.mjs → OperateTool-D5HFrut6.mjs} +61 -58
  13. package/dist/{RoamTool-ClbGAw0m.mjs → RoamTool-DO-gP6oV.mjs} +27 -27
  14. package/dist/ScreenShotTool-B5ICa8PZ.mjs +429 -0
  15. package/dist/{SectionTool-BduU5qr3.mjs → SectionTool-CjX3ikon.mjs} +70 -70
  16. package/dist/SettingTool-D2EQy3h8.mjs +1787 -0
  17. package/dist/StructureTree-QhQyMrZn.mjs +1685 -0
  18. package/dist/{alert-GVU1wFz1.mjs → alert-COkF0N8w.mjs} +16 -16
  19. package/dist/{index-CdBeaeTl.mjs → index-fIchFHNn.mjs} +57872 -54250
  20. package/dist/index.html +17 -17
  21. package/dist/{panel.vue_vue_type_style_index_0_lang-BsP4zr2g.mjs → panel.vue_vue_type_style_index_0_lang-BtSx7l8h.mjs} +1 -1
  22. package/dist/style.css +3 -3
  23. package/dist/{tallPanel-B5pNGD_G.mjs → tallPanel-BMplV9f0.mjs} +10 -10
  24. package/package.json +85 -85
  25. package/types/components/BCFComponents/BCFAddPanel.vue.d.ts +38 -10
  26. package/types/components/BCFComponents/BCFDetailPanel.vue.d.ts +37 -9
  27. package/types/components/BCFComponents/BCFDisplayList.vue.d.ts +5 -7
  28. package/types/components/BCFComponents/BCFFilter.vue.d.ts +5 -7
  29. package/types/components/BCFComponents/BCFTool.vue.d.ts +4 -7
  30. package/types/components/BCFComponents/addObjectOrAnno.vue.d.ts +5 -7
  31. package/types/components/BCFComponents/checkObjectPanel.vue.d.ts +5 -6
  32. package/types/components/BCFComponents/commentInput.vue.d.ts +36 -10
  33. package/types/components/BCFComponents/commentsView.vue.d.ts +36 -7
  34. package/types/components/BCFComponents/dialogPanel.vue.d.ts +5 -8
  35. package/types/components/BCFComponents/imageView.vue.d.ts +5 -7
  36. package/types/components/BCFComponents/imageZoomIn.vue.d.ts +5 -6
  37. package/types/components/BimViewerComponents/AnnotationTool.vue.d.ts +1 -1
  38. package/types/components/BimViewerComponents/AppToolbar.vue.d.ts +18 -1
  39. package/types/components/BimViewerComponents/CameraViewTool.vue.d.ts +1 -1
  40. package/types/components/BimViewerComponents/ClickEvent.vue.d.ts +1 -1
  41. package/types/components/BimViewerComponents/CommentTool.vue.d.ts +32 -1
  42. package/types/components/BimViewerComponents/HiddenTool.vue.d.ts +1 -1
  43. package/types/components/BimViewerComponents/MobileCommentsTool/add.vue.d.ts +6 -8
  44. package/types/components/BimViewerComponents/MobileCommentsTool/detail.vue.d.ts +4 -5
  45. package/types/components/BimViewerComponents/MobileCommentsTool/draw.vue.d.ts +2 -2
  46. package/types/components/BimViewerComponents/MobileCommentsTool/filter.vue.d.ts +270 -1
  47. package/types/components/BimViewerComponents/MobileCommentsTool/list.vue.d.ts +291 -7
  48. package/types/components/BimViewerComponents/MobileCommentsTool/zoomIn.vue.d.ts +5 -6
  49. package/types/components/BimViewerComponents/MouseTool.vue.d.ts +1 -1
  50. package/types/components/BimViewerComponents/NavigateTool.vue.d.ts +1 -1
  51. package/types/components/BimViewerComponents/PCCommentTool/pcdraw.vue.d.ts +1 -1
  52. package/types/components/BimViewerComponents/RoamTool.vue.d.ts +1 -1
  53. package/types/components/BimViewerComponents/SettingTool.vue.d.ts +4 -6
  54. package/types/components/BimViewerComponents/StructureTree.vue.d.ts +11642 -1
  55. package/types/components/BimViewerComponents/Toolbar.vue.d.ts +1 -1
  56. package/types/components/BimxViewerComp.vue.d.ts +7 -21
  57. package/types/components/MobileBCFComponents/MobileBCFAdd.vue.d.ts +37 -10
  58. package/types/components/MobileBCFComponents/MobileBCFDetail.vue.d.ts +37 -9
  59. package/types/components/MobileBCFComponents/MobileBCFDisplayList.vue.d.ts +291 -7
  60. package/types/components/MobileBCFComponents/MobileBCFFilter.vue.d.ts +270 -1
  61. package/types/components/MobileBCFComponents/MobileBCFTool.vue.d.ts +5 -8
  62. package/types/components/MobileBCFComponents/MobileCommentInput.vue.d.ts +38 -12
  63. package/types/components/MobileBCFComponents/MobileCommentsView.vue.d.ts +7 -9
  64. package/types/components/MobileBCFComponents/selectPanel.vue.d.ts +5 -7
  65. package/types/components/utilsComponents/alert.vue.d.ts +1 -1
  66. package/types/components/utilsComponents/closeButton.vue.d.ts +1 -1
  67. package/types/components/utilsComponents/closeButton_dark.vue.d.ts +1 -1
  68. package/types/components/utilsComponents/emptyPage.vue.d.ts +1 -1
  69. package/types/components/utilsComponents/loading.vue.d.ts +1 -1
  70. package/types/components/utilsComponents/panel.vue.d.ts +8 -2
  71. package/types/components/utilsComponents/prompt.vue.d.ts +1 -1
  72. package/types/components/utilsComponents/rectangleButton.vue.d.ts +3 -1
  73. package/types/components/utilsComponents/tallPanel.vue.d.ts +13 -3
  74. package/types/components/utilsComponents/tallPanel_noPos.vue.d.ts +13 -3
  75. package/types/pages/BimxViewerEntry.vue.d.ts +4 -64
  76. package/types/store/toolbars.d.ts +50 -50
  77. package/types/viewerManager/sectionManager.d.ts +25 -25
  78. package/dist/01.xtc +0 -0
  79. package/dist/02.xtc +0 -0
  80. package/dist/03.xtc +0 -0
  81. package/dist/MeasureTool-DznYUEiR.mjs +0 -593
  82. package/dist/ScreenShotTool-BLHWBbYl.mjs +0 -356
  83. package/dist/SettingTool-Dd-fS2IZ.mjs +0 -1508
  84. package/dist/StructureTree-Byfx-R9w.mjs +0 -1582
  85. package/types/components/BCFComponents/BCFCommentNew.vue.d.ts +0 -22
  86. package/types/components/BimViewerComponents/emptyPage.vue.d.ts +0 -8
  87. package/types/components/BimViewerComponents/mobileToolbar.vue.d.ts +0 -10
  88. package/types/components/bimxViewer.vue.d.ts +0 -27
  89. package/types/pages/viewerEntry.vue.d.ts +0 -116
  90. package/types/tests/cmt.d.ts +0 -1
@@ -1,356 +0,0 @@
1
- import { _ as pe } from "./panel.vue_vue_type_style_index_0_lang-BsP4zr2g.mjs";
2
- import { a8 as G, a9 as x, f as j, aa as O, ab as H, ac as ve, ad as X, a as W, ae as fe, af as be, ag as _e, u as L, _ as T, ah as he, ai as ge, aj as ye, ak as Se, d as Ve, w as Re, al as Y, n as ke, o as Ee, am as U, t as Ie } from "./index-CdBeaeTl.mjs";
3
- import { ref as R, inject as Be, computed as g, defineComponent as E, openBlock as k, createElementBlock as B, normalizeClass as y, unref as e, createElementVNode as v, withDirectives as q, isRef as J, withModifiers as N, vModelRadio as Q, renderSlot as F, createTextVNode as z, toDisplayString as C, nextTick as Z, normalizeStyle as Ce, onMounted as ee, provide as we, reactive as Ne, toRefs as ze, watch as oe, createBlock as Ge, withCtx as $, createVNode as w, Fragment as Pe, renderList as Ue, createCommentVNode as $e } from "vue";
4
- const ae = G({
5
- modelValue: {
6
- type: [String, Number, Boolean],
7
- default: void 0
8
- },
9
- size: X,
10
- disabled: Boolean,
11
- label: {
12
- type: [String, Number, Boolean],
13
- default: void 0
14
- },
15
- value: {
16
- type: [String, Number, Boolean],
17
- default: void 0
18
- },
19
- name: {
20
- type: String,
21
- default: void 0
22
- }
23
- }), xe = G({
24
- ...ae,
25
- border: Boolean
26
- }), le = {
27
- [x]: (t) => j(t) || O(t) || H(t),
28
- [ve]: (t) => j(t) || O(t) || H(t)
29
- }, te = Symbol("radioGroupKey"), ne = (t, f) => {
30
- const a = R(), o = Be(te, void 0), c = g(() => !!o), p = g(() => W(t.value) ? t.label : t.value), s = g({
31
- get() {
32
- return c.value ? o.modelValue : t.modelValue;
33
- },
34
- set(n) {
35
- c.value ? o.changeEvent(n) : f && f(x, n), a.value.checked = t.modelValue === p.value;
36
- }
37
- }), d = fe(g(() => o == null ? void 0 : o.size)), l = be(g(() => o == null ? void 0 : o.disabled)), u = R(!1), b = g(() => l.value || c.value && s.value !== p.value ? -1 : 0);
38
- return _e({
39
- from: "label act as value",
40
- replacement: "value",
41
- version: "3.0.0",
42
- scope: "el-radio",
43
- ref: "https://element-plus.org/en-US/component/radio.html"
44
- }, g(() => c.value && W(t.value))), {
45
- radioRef: a,
46
- isGroup: c,
47
- radioGroup: o,
48
- focus: u,
49
- size: d,
50
- disabled: l,
51
- tabIndex: b,
52
- modelValue: s,
53
- actualValue: p
54
- };
55
- }, Le = E({
56
- name: "ElRadio"
57
- }), Te = /* @__PURE__ */ E({
58
- ...Le,
59
- props: xe,
60
- emits: le,
61
- setup(t, { emit: f }) {
62
- const a = t, o = L("radio"), { radioRef: c, radioGroup: p, focus: s, size: d, disabled: l, modelValue: u, actualValue: b } = ne(a, f);
63
- function n() {
64
- Z(() => f("change", u.value));
65
- }
66
- return (_, S) => {
67
- var i;
68
- return k(), B("label", {
69
- class: y([
70
- e(o).b(),
71
- e(o).is("disabled", e(l)),
72
- e(o).is("focus", e(s)),
73
- e(o).is("bordered", _.border),
74
- e(o).is("checked", e(u) === e(b)),
75
- e(o).m(e(d))
76
- ])
77
- }, [
78
- v("span", {
79
- class: y([
80
- e(o).e("input"),
81
- e(o).is("disabled", e(l)),
82
- e(o).is("checked", e(u) === e(b))
83
- ])
84
- }, [
85
- q(v("input", {
86
- ref_key: "radioRef",
87
- ref: c,
88
- "onUpdate:modelValue": (r) => J(u) ? u.value = r : null,
89
- class: y(e(o).e("original")),
90
- value: e(b),
91
- name: _.name || ((i = e(p)) == null ? void 0 : i.name),
92
- disabled: e(l),
93
- checked: e(u) === e(b),
94
- type: "radio",
95
- onFocus: (r) => s.value = !0,
96
- onBlur: (r) => s.value = !1,
97
- onChange: n,
98
- onClick: N(() => {
99
- }, ["stop"])
100
- }, null, 42, ["onUpdate:modelValue", "value", "name", "disabled", "checked", "onFocus", "onBlur", "onClick"]), [
101
- [Q, e(u)]
102
- ]),
103
- v("span", {
104
- class: y(e(o).e("inner"))
105
- }, null, 2)
106
- ], 2),
107
- v("span", {
108
- class: y(e(o).e("label")),
109
- onKeydown: N(() => {
110
- }, ["stop"])
111
- }, [
112
- F(_.$slots, "default", {}, () => [
113
- z(C(_.label), 1)
114
- ])
115
- ], 42, ["onKeydown"])
116
- ], 2);
117
- };
118
- }
119
- });
120
- var Fe = /* @__PURE__ */ T(Te, [["__file", "radio.vue"]]);
121
- const Ae = G({
122
- ...ae
123
- }), De = E({
124
- name: "ElRadioButton"
125
- }), Ke = /* @__PURE__ */ E({
126
- ...De,
127
- props: Ae,
128
- setup(t) {
129
- const f = t, a = L("radio"), { radioRef: o, focus: c, size: p, disabled: s, modelValue: d, radioGroup: l, actualValue: u } = ne(f), b = g(() => ({
130
- backgroundColor: (l == null ? void 0 : l.fill) || "",
131
- borderColor: (l == null ? void 0 : l.fill) || "",
132
- boxShadow: l != null && l.fill ? `-1px 0 0 0 ${l.fill}` : "",
133
- color: (l == null ? void 0 : l.textColor) || ""
134
- }));
135
- return (n, _) => {
136
- var S;
137
- return k(), B("label", {
138
- class: y([
139
- e(a).b("button"),
140
- e(a).is("active", e(d) === e(u)),
141
- e(a).is("disabled", e(s)),
142
- e(a).is("focus", e(c)),
143
- e(a).bm("button", e(p))
144
- ])
145
- }, [
146
- q(v("input", {
147
- ref_key: "radioRef",
148
- ref: o,
149
- "onUpdate:modelValue": (i) => J(d) ? d.value = i : null,
150
- class: y(e(a).be("button", "original-radio")),
151
- value: e(u),
152
- type: "radio",
153
- name: n.name || ((S = e(l)) == null ? void 0 : S.name),
154
- disabled: e(s),
155
- onFocus: (i) => c.value = !0,
156
- onBlur: (i) => c.value = !1,
157
- onClick: N(() => {
158
- }, ["stop"])
159
- }, null, 42, ["onUpdate:modelValue", "value", "name", "disabled", "onFocus", "onBlur", "onClick"]), [
160
- [Q, e(d)]
161
- ]),
162
- v("span", {
163
- class: y(e(a).be("button", "inner")),
164
- style: Ce(e(d) === e(u) ? e(b) : {}),
165
- onKeydown: N(() => {
166
- }, ["stop"])
167
- }, [
168
- F(n.$slots, "default", {}, () => [
169
- z(C(n.label), 1)
170
- ])
171
- ], 46, ["onKeydown"])
172
- ], 2);
173
- };
174
- }
175
- });
176
- var se = /* @__PURE__ */ T(Ke, [["__file", "radio-button.vue"]]);
177
- const Me = G({
178
- id: {
179
- type: String,
180
- default: void 0
181
- },
182
- size: X,
183
- disabled: Boolean,
184
- modelValue: {
185
- type: [String, Number, Boolean],
186
- default: void 0
187
- },
188
- fill: {
189
- type: String,
190
- default: ""
191
- },
192
- textColor: {
193
- type: String,
194
- default: ""
195
- },
196
- name: {
197
- type: String,
198
- default: void 0
199
- },
200
- validateEvent: {
201
- type: Boolean,
202
- default: !0
203
- },
204
- ...he(["ariaLabel"])
205
- }), je = le, Oe = E({
206
- name: "ElRadioGroup"
207
- }), He = /* @__PURE__ */ E({
208
- ...Oe,
209
- props: Me,
210
- emits: je,
211
- setup(t, { emit: f }) {
212
- const a = t, o = L("radio"), c = ge(), p = R(), { formItem: s } = ye(), { inputId: d, isLabeledByFormItem: l } = Se(a, {
213
- formItemContext: s
214
- }), u = (n) => {
215
- f(x, n), Z(() => f("change", n));
216
- };
217
- ee(() => {
218
- const n = p.value.querySelectorAll("[type=radio]"), _ = n[0];
219
- !Array.from(n).some((S) => S.checked) && _ && (_.tabIndex = 0);
220
- });
221
- const b = g(() => a.name || c.value);
222
- return we(te, Ne({
223
- ...ze(a),
224
- changeEvent: u,
225
- name: b
226
- })), oe(() => a.modelValue, () => {
227
- a.validateEvent && (s == null || s.validate("change").catch((n) => Ve(n)));
228
- }), (n, _) => (k(), B("div", {
229
- id: e(d),
230
- ref_key: "radioGroupRef",
231
- ref: p,
232
- class: y(e(o).b("group")),
233
- role: "radiogroup",
234
- "aria-label": e(l) ? void 0 : n.ariaLabel || "radio-group",
235
- "aria-labelledby": e(l) ? e(s).labelId : void 0
236
- }, [
237
- F(n.$slots, "default")
238
- ], 10, ["id", "aria-label", "aria-labelledby"]));
239
- }
240
- });
241
- var ie = /* @__PURE__ */ T(He, [["__file", "radio-group.vue"]]);
242
- const We = Re(Fe, {
243
- RadioButton: se,
244
- RadioGroup: ie
245
- }), Xe = Y(ie);
246
- Y(se);
247
- const Ye = { class: "wrapper" }, qe = { class: "screen_thumbnail" }, Je = ["src"], Qe = { class: "validity-period" }, Ze = {
248
- key: 0,
249
- class: "custom"
250
- }, eo = { class: "footer" }, to = /* @__PURE__ */ E({
251
- __name: "ScreenShotTool",
252
- props: ["componentId"],
253
- emits: ["closePanel"],
254
- setup(t, { emit: f }) {
255
- const a = ke(), o = Ee(), c = t, p = R(0), s = R(), d = R(), l = R(), u = f;
256
- ee(() => {
257
- s.value = 1280, d.value = 720, o.setReadyById(c.componentId);
258
- }), oe(
259
- () => o.isToolActive(c.componentId),
260
- (i) => {
261
- i && _(220, 124, !1);
262
- }
263
- );
264
- const b = (i) => {
265
- p.value = i, i !== 3 && (s.value = U[i].width, d.value = U[i].height);
266
- }, n = () => {
267
- u("closePanel");
268
- }, _ = (i, r, P) => {
269
- const h = document.getElementById("myCanvas"), I = document.createElement("a");
270
- I.download = "screenshot.png";
271
- const V = document.createElement("canvas"), m = V.getContext("2d");
272
- if (h && m) {
273
- V.width = i, V.height = r;
274
- const re = i / h.width, de = r / h.height, A = Math.max(re, de), D = h.width * A, K = h.height * A, ue = (i - D) / 2, ce = (r - K) / 2;
275
- m.clearRect(0, 0, i, r), m.fillStyle = "transparent", m.fillRect(0, 0, i, r), m.drawImage(h, 0, 0, h.width, h.height, ue, ce, D, K), P ? V.toBlob(function(me) {
276
- const M = URL.createObjectURL(me);
277
- I.href = M, I.click(), URL.revokeObjectURL(M);
278
- }) : l.value = V.toDataURL("image/png");
279
- }
280
- }, S = () => {
281
- _(s.value, d.value, !0);
282
- };
283
- return (i, r) => {
284
- const P = We, h = Xe, I = Ie, V = pe;
285
- return k(), Ge(V, {
286
- class: "screen_container",
287
- width: 240,
288
- panelTitle: e(a)("screenshot.title"),
289
- "click-handle": n
290
- }, {
291
- default: $(() => [
292
- v("div", Ye, [
293
- v("div", qe, [
294
- v("img", {
295
- class: "thumbnail_img",
296
- src: l.value,
297
- alt: ""
298
- }, null, 8, Je)
299
- ]),
300
- w(h, {
301
- modelValue: p.value,
302
- "onUpdate:modelValue": r[0] || (r[0] = (m) => p.value = m),
303
- onChange: b
304
- }, {
305
- default: $(() => [
306
- v("div", Qe, [
307
- (k(!0), B(Pe, null, Ue(e(U), (m) => (k(), B("div", {
308
- key: m.id,
309
- class: "period_box"
310
- }, [
311
- w(P, {
312
- label: m.id
313
- }, {
314
- default: $(() => [
315
- z(C(m.name || e(a)(m.label ?? "")), 1)
316
- ]),
317
- _: 2
318
- }, 1032, ["label"])
319
- ]))), 128))
320
- ])
321
- ]),
322
- _: 1
323
- }, 8, ["modelValue"]),
324
- p.value === 3 ? (k(), B("div", Ze, [
325
- w(I, {
326
- modelValue: s.value,
327
- "onUpdate:modelValue": r[1] || (r[1] = (m) => s.value = m),
328
- placeholder: e(a)("screenshot.widthPlaceholder")
329
- }, null, 8, ["modelValue", "placeholder"]),
330
- r[3] || (r[3] = z(" x ")),
331
- w(I, {
332
- modelValue: d.value,
333
- "onUpdate:modelValue": r[2] || (r[2] = (m) => d.value = m),
334
- placeholder: e(a)("screenshot.heightPlaceholder")
335
- }, null, 8, ["modelValue", "placeholder"])
336
- ])) : $e("", !0),
337
- v("div", eo, [
338
- v("div", {
339
- class: "btn1",
340
- onClick: n
341
- }, C(e(a)("common.cancel")), 1),
342
- v("div", {
343
- class: "btn2",
344
- onClick: S
345
- }, C(e(a)("common.save")), 1)
346
- ])
347
- ])
348
- ]),
349
- _: 1
350
- }, 8, ["panelTitle"]);
351
- };
352
- }
353
- });
354
- export {
355
- to as default
356
- };