@xtctwins/tctwins-industry-engine 0.0.9 → 0.0.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 (33) hide show
  1. package/README.md +3 -3
  2. package/dist/{AnnotationTool-Dzd5rcwa.mjs → AnnotationTool-BZlQ0NIM.mjs} +14 -14
  3. package/dist/{BCFTool-kLs0Y5n5.mjs → BCFTool-DAqDUYS-.mjs} +5269 -5269
  4. package/dist/{CommentTool-BFDzk_5a.mjs → CommentTool-BwHOJoFe.mjs} +28 -28
  5. package/dist/Industry_Viewer_Lib.es.js +3 -3
  6. package/dist/Industry_Viewer_Lib.umd.js +144 -152
  7. package/dist/{InspectorTool-BOeo7StN.mjs → InspectorTool-BK5pX2nZ.mjs} +31 -31
  8. package/dist/{MeasureTool-qO_ci86K.mjs → MeasureTool-D92Tyu14.mjs} +24 -24
  9. package/dist/{MouseTool-CLryyMPf.mjs → MouseTool-Dpl4JLyb.mjs} +20 -20
  10. package/dist/{NavigateTool-BkwZL4ng.mjs → NavigateTool-B5ySsqph.mjs} +6 -6
  11. package/dist/{RoamTool-DyL44JV3.mjs → RoamTool-Nk4hYPJB.mjs} +12 -12
  12. package/dist/ScreenShotTool-D1cS2DkF.mjs +445 -0
  13. package/dist/{SectionTool-BG8pmY3A.mjs → SectionTool-D3885F5s.mjs} +46 -46
  14. package/dist/SettingTool-BI_soRCO.mjs +770 -0
  15. package/dist/StructureTree-CCWwAbnr.mjs +1824 -0
  16. package/dist/{XRayTool-DQeoOCKy.mjs → XRayTool-IRgKMGU8.mjs} +13 -13
  17. package/dist/{alert-D1vSywdn.mjs → alert-x4uA_EPv.mjs} +5 -5
  18. package/dist/el-checkbox-_VjUMARt.mjs +544 -0
  19. package/dist/el-input-number-Chi40nla.mjs +1028 -0
  20. package/dist/{index-DROkX_fP.mjs → index-CaiiH-9N.mjs} +37845 -35391
  21. package/dist/{panel.vue_vue_type_style_index_0_lang-Ce406nTf.mjs → panel.vue_vue_type_style_index_0_lang-D3swRKXl.mjs} +6 -6
  22. package/dist/style.css +1 -1
  23. package/dist/{tallPanel-CMZIMI6R.mjs → tallPanel-eXWPdhmU.mjs} +14 -14
  24. package/package.json +66 -65
  25. package/types/components/BimViewerComponents/StructureTree.vue.d.ts +2652 -1668
  26. package/types/components/MobileBCFComponents/MobileBCFDisplayList.vue.d.ts +264 -36
  27. package/types/components/MobileBCFComponents/MobileBCFFilter.vue.d.ts +264 -36
  28. package/dist/ScreenShotTool-cho_m-3z.mjs +0 -357
  29. package/dist/SettingTool-BgBA9v6q.mjs +0 -691
  30. package/dist/StructureTree-BRY3gEgI.mjs +0 -1591
  31. package/dist/el-checkbox-BCef2DnV.mjs +0 -460
  32. package/dist/el-input-number-33CYHG2x.mjs +0 -858
  33. package/dist/index.html +0 -17
@@ -1,357 +0,0 @@
1
- import { _ as me } from "./panel.vue_vue_type_style_index_0_lang-Ce406nTf.mjs";
2
- import { D as G, U as $, d as M, F as j, i as H, G as pe, H as W, f as O, J as fe, K as ve, L as be, u as L, _ as P, M as _e, N as he, P as ge, Q as ye, j as Se, w as Ve, R as X, p as Re, v as ke } from "./index-DROkX_fP.mjs";
3
- import { ref as R, inject as Ee, computed as g, defineComponent as E, openBlock as k, createElementBlock as B, normalizeClass as y, unref as e, createElementVNode as v, withDirectives as Y, isRef as q, withModifiers as w, vModelRadio as J, renderSlot as x, createTextVNode as N, toDisplayString as F, nextTick as Q, normalizeStyle as Ie, onMounted as Z, provide as Be, reactive as Ce, toRefs as we, watch as ee, createBlock as Ne, withCtx as U, createVNode as C, Fragment as Ge, renderList as Ue, createCommentVNode as ze } from "vue";
4
- import { a as z } from "./const-DeViLYl5.mjs";
5
- const oe = G({
6
- modelValue: {
7
- type: [String, Number, Boolean],
8
- default: void 0
9
- },
10
- size: W,
11
- disabled: Boolean,
12
- label: {
13
- type: [String, Number, Boolean],
14
- default: void 0
15
- },
16
- value: {
17
- type: [String, Number, Boolean],
18
- default: void 0
19
- },
20
- name: {
21
- type: String,
22
- default: void 0
23
- }
24
- }), $e = G({
25
- ...oe,
26
- border: Boolean
27
- }), ae = {
28
- [$]: (a) => M(a) || j(a) || H(a),
29
- [pe]: (a) => M(a) || j(a) || H(a)
30
- }, ne = Symbol("radioGroupKey"), le = (a, b) => {
31
- const t = R(), o = Ee(ne, void 0), r = g(() => !!o), c = g(() => O(a.value) ? a.label : a.value), d = g({
32
- get() {
33
- return r.value ? o.modelValue : a.modelValue;
34
- },
35
- set(l) {
36
- r.value ? o.changeEvent(l) : b && b($, l), t.value.checked = a.modelValue === c.value;
37
- }
38
- }), p = fe(g(() => o == null ? void 0 : o.size)), n = ve(g(() => o == null ? void 0 : o.disabled)), u = R(!1), f = g(() => n.value || r.value && d.value !== c.value ? -1 : 0);
39
- return be({
40
- from: "label act as value",
41
- replacement: "value",
42
- version: "3.0.0",
43
- scope: "el-radio",
44
- ref: "https://element-plus.org/en-US/component/radio.html"
45
- }, g(() => r.value && O(a.value))), {
46
- radioRef: t,
47
- isGroup: r,
48
- radioGroup: o,
49
- focus: u,
50
- size: p,
51
- disabled: n,
52
- tabIndex: f,
53
- modelValue: d,
54
- actualValue: c
55
- };
56
- }, Le = E({
57
- name: "ElRadio"
58
- }), Pe = /* @__PURE__ */ E({
59
- ...Le,
60
- props: $e,
61
- emits: ae,
62
- setup(a, { emit: b }) {
63
- const t = a, o = L("radio"), { radioRef: r, radioGroup: c, focus: d, size: p, disabled: n, modelValue: u, actualValue: f } = le(t, b);
64
- function l() {
65
- Q(() => b("change", u.value));
66
- }
67
- return (_, i) => {
68
- var s;
69
- return k(), B("label", {
70
- class: y([
71
- e(o).b(),
72
- e(o).is("disabled", e(n)),
73
- e(o).is("focus", e(d)),
74
- e(o).is("bordered", _.border),
75
- e(o).is("checked", e(u) === e(f)),
76
- e(o).m(e(p))
77
- ])
78
- }, [
79
- v("span", {
80
- class: y([
81
- e(o).e("input"),
82
- e(o).is("disabled", e(n)),
83
- e(o).is("checked", e(u) === e(f))
84
- ])
85
- }, [
86
- Y(v("input", {
87
- ref_key: "radioRef",
88
- ref: r,
89
- "onUpdate:modelValue": (S) => q(u) ? u.value = S : null,
90
- class: y(e(o).e("original")),
91
- value: e(f),
92
- name: _.name || ((s = e(c)) == null ? void 0 : s.name),
93
- disabled: e(n),
94
- checked: e(u) === e(f),
95
- type: "radio",
96
- onFocus: (S) => d.value = !0,
97
- onBlur: (S) => d.value = !1,
98
- onChange: l,
99
- onClick: w(() => {
100
- }, ["stop"])
101
- }, null, 42, ["onUpdate:modelValue", "value", "name", "disabled", "checked", "onFocus", "onBlur", "onClick"]), [
102
- [J, e(u)]
103
- ]),
104
- v("span", {
105
- class: y(e(o).e("inner"))
106
- }, null, 2)
107
- ], 2),
108
- v("span", {
109
- class: y(e(o).e("label")),
110
- onKeydown: w(() => {
111
- }, ["stop"])
112
- }, [
113
- x(_.$slots, "default", {}, () => [
114
- N(F(_.label), 1)
115
- ])
116
- ], 42, ["onKeydown"])
117
- ], 2);
118
- };
119
- }
120
- });
121
- var xe = /* @__PURE__ */ P(Pe, [["__file", "radio.vue"]]);
122
- const Fe = G({
123
- ...oe
124
- }), Te = E({
125
- name: "ElRadioButton"
126
- }), De = /* @__PURE__ */ E({
127
- ...Te,
128
- props: Fe,
129
- setup(a) {
130
- const b = a, t = L("radio"), { radioRef: o, focus: r, size: c, disabled: d, modelValue: p, radioGroup: n, actualValue: u } = le(b), f = g(() => ({
131
- backgroundColor: (n == null ? void 0 : n.fill) || "",
132
- borderColor: (n == null ? void 0 : n.fill) || "",
133
- boxShadow: n != null && n.fill ? `-1px 0 0 0 ${n.fill}` : "",
134
- color: (n == null ? void 0 : n.textColor) || ""
135
- }));
136
- return (l, _) => {
137
- var i;
138
- return k(), B("label", {
139
- class: y([
140
- e(t).b("button"),
141
- e(t).is("active", e(p) === e(u)),
142
- e(t).is("disabled", e(d)),
143
- e(t).is("focus", e(r)),
144
- e(t).bm("button", e(c))
145
- ])
146
- }, [
147
- Y(v("input", {
148
- ref_key: "radioRef",
149
- ref: o,
150
- "onUpdate:modelValue": (s) => q(p) ? p.value = s : null,
151
- class: y(e(t).be("button", "original-radio")),
152
- value: e(u),
153
- type: "radio",
154
- name: l.name || ((i = e(n)) == null ? void 0 : i.name),
155
- disabled: e(d),
156
- onFocus: (s) => r.value = !0,
157
- onBlur: (s) => r.value = !1,
158
- onClick: w(() => {
159
- }, ["stop"])
160
- }, null, 42, ["onUpdate:modelValue", "value", "name", "disabled", "onFocus", "onBlur", "onClick"]), [
161
- [J, e(p)]
162
- ]),
163
- v("span", {
164
- class: y(e(t).be("button", "inner")),
165
- style: Ie(e(p) === e(u) ? e(f) : {}),
166
- onKeydown: w(() => {
167
- }, ["stop"])
168
- }, [
169
- x(l.$slots, "default", {}, () => [
170
- N(F(l.label), 1)
171
- ])
172
- ], 46, ["onKeydown"])
173
- ], 2);
174
- };
175
- }
176
- });
177
- var te = /* @__PURE__ */ P(De, [["__file", "radio-button.vue"]]);
178
- const Ae = G({
179
- id: {
180
- type: String,
181
- default: void 0
182
- },
183
- size: W,
184
- disabled: Boolean,
185
- modelValue: {
186
- type: [String, Number, Boolean],
187
- default: void 0
188
- },
189
- fill: {
190
- type: String,
191
- default: ""
192
- },
193
- textColor: {
194
- type: String,
195
- default: ""
196
- },
197
- name: {
198
- type: String,
199
- default: void 0
200
- },
201
- validateEvent: {
202
- type: Boolean,
203
- default: !0
204
- },
205
- ..._e(["ariaLabel"])
206
- }), Ke = ae, Me = E({
207
- name: "ElRadioGroup"
208
- }), je = /* @__PURE__ */ E({
209
- ...Me,
210
- props: Ae,
211
- emits: Ke,
212
- setup(a, { emit: b }) {
213
- const t = a, o = L("radio"), r = he(), c = R(), { formItem: d } = ge(), { inputId: p, isLabeledByFormItem: n } = ye(t, {
214
- formItemContext: d
215
- }), u = (l) => {
216
- b($, l), Q(() => b("change", l));
217
- };
218
- Z(() => {
219
- const l = c.value.querySelectorAll("[type=radio]"), _ = l[0];
220
- !Array.from(l).some((i) => i.checked) && _ && (_.tabIndex = 0);
221
- });
222
- const f = g(() => t.name || r.value);
223
- return Be(ne, Ce({
224
- ...we(t),
225
- changeEvent: u,
226
- name: f
227
- })), ee(() => t.modelValue, () => {
228
- t.validateEvent && (d == null || d.validate("change").catch((l) => Se(l)));
229
- }), (l, _) => (k(), B("div", {
230
- id: e(p),
231
- ref_key: "radioGroupRef",
232
- ref: c,
233
- class: y(e(o).b("group")),
234
- role: "radiogroup",
235
- "aria-label": e(n) ? void 0 : l.ariaLabel || "radio-group",
236
- "aria-labelledby": e(n) ? e(d).labelId : void 0
237
- }, [
238
- x(l.$slots, "default")
239
- ], 10, ["id", "aria-label", "aria-labelledby"]));
240
- }
241
- });
242
- var se = /* @__PURE__ */ P(je, [["__file", "radio-group.vue"]]);
243
- const He = Ve(xe, {
244
- RadioButton: te,
245
- RadioGroup: se
246
- }), Oe = X(se);
247
- X(te);
248
- const We = { class: "wrapper" }, Xe = { class: "screen_thumbnail" }, Ye = ["src"], qe = { class: "validity-period" }, Je = {
249
- key: 0,
250
- class: "custom"
251
- }, ao = /* @__PURE__ */ E({
252
- __name: "ScreenShotTool",
253
- props: ["componentId"],
254
- emits: ["closePanel"],
255
- setup(a, { emit: b }) {
256
- const t = Re(), o = a, r = R(0), c = R(), d = R(), p = R(), n = b;
257
- Z(() => {
258
- c.value = 1280, d.value = 720, t.setReadyById(o.componentId);
259
- }), ee(
260
- () => t.isToolActive(o.componentId),
261
- (i) => {
262
- i && l(220, 124, !1);
263
- }
264
- );
265
- const u = (i) => {
266
- r.value = i, i !== 3 && (c.value = z[i].width, d.value = z[i].height);
267
- }, f = () => {
268
- n("closePanel");
269
- }, l = (i, s, S) => {
270
- const h = document.getElementById("myCanvas"), I = document.createElement("a");
271
- I.download = "screenshot.png";
272
- const V = document.createElement("canvas"), m = V.getContext("2d");
273
- if (h && m) {
274
- V.width = i, V.height = s;
275
- const de = i / h.width, ie = s / h.height, T = Math.max(de, ie), D = h.width * T, A = h.height * T, re = (i - D) / 2, ue = (s - A) / 2;
276
- m.clearRect(0, 0, i, s), m.fillStyle = "transparent", m.fillRect(0, 0, i, s), m.drawImage(h, 0, 0, h.width, h.height, re, ue, D, A), S ? V.toBlob(function(ce) {
277
- const K = URL.createObjectURL(ce);
278
- I.href = K, I.click(), URL.revokeObjectURL(K);
279
- }) : p.value = V.toDataURL("image/png");
280
- }
281
- }, _ = () => {
282
- l(c.value, d.value, !0);
283
- };
284
- return (i, s) => {
285
- const S = He, h = Oe, I = ke, V = me;
286
- return k(), Ne(V, {
287
- class: "screen_container",
288
- width: 240,
289
- panelTitle: "截图",
290
- "click-handle": f
291
- }, {
292
- default: U(() => [
293
- v("div", We, [
294
- v("div", Xe, [
295
- v("img", {
296
- class: "thumbnail_img",
297
- src: p.value,
298
- alt: ""
299
- }, null, 8, Ye)
300
- ]),
301
- C(h, {
302
- modelValue: r.value,
303
- "onUpdate:modelValue": s[0] || (s[0] = (m) => r.value = m),
304
- onChange: u
305
- }, {
306
- default: U(() => [
307
- v("div", qe, [
308
- (k(!0), B(Ge, null, Ue(e(z), (m) => (k(), B("div", {
309
- key: m.id,
310
- class: "period_box"
311
- }, [
312
- C(S, {
313
- label: m.id
314
- }, {
315
- default: U(() => [
316
- N(F(m.name), 1)
317
- ]),
318
- _: 2
319
- }, 1032, ["label"])
320
- ]))), 128))
321
- ])
322
- ]),
323
- _: 1
324
- }, 8, ["modelValue"]),
325
- r.value === 3 ? (k(), B("div", Je, [
326
- C(I, {
327
- modelValue: c.value,
328
- "onUpdate:modelValue": s[1] || (s[1] = (m) => c.value = m),
329
- placeholder: "请输入长度"
330
- }, null, 8, ["modelValue"]),
331
- s[3] || (s[3] = N(" x ")),
332
- C(I, {
333
- modelValue: d.value,
334
- "onUpdate:modelValue": s[2] || (s[2] = (m) => d.value = m),
335
- placeholder: "请输入宽度"
336
- }, null, 8, ["modelValue"])
337
- ])) : ze("", !0),
338
- v("div", { class: "footer" }, [
339
- v("div", {
340
- class: "btn1",
341
- onClick: f
342
- }, " 取消 "),
343
- v("div", {
344
- class: "btn2",
345
- onClick: _
346
- }, " 保存 ")
347
- ])
348
- ])
349
- ]),
350
- _: 1
351
- });
352
- };
353
- }
354
- });
355
- export {
356
- ao as default
357
- };