@xtctwins/tctwins-industry-engine 0.0.1

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 (95) hide show
  1. package/README.md +5 -0
  2. package/dist/AnnotationTool-p1JXCwLS.mjs +129 -0
  3. package/dist/BCFTool-Cssf2dIk.mjs +25118 -0
  4. package/dist/CommentTool-Bug4iFC9.mjs +167 -0
  5. package/dist/Industry_Viewer_Lib.es.js +12 -0
  6. package/dist/Industry_Viewer_Lib.umd.js +633 -0
  7. package/dist/InspectorTool-BJzXtOU-.mjs +674 -0
  8. package/dist/MeasureTool-Dkrz8dS6.mjs +168 -0
  9. package/dist/MouseTool-Cvc5G90V.mjs +80 -0
  10. package/dist/NavigateTool-DwEEE5nd.mjs +52 -0
  11. package/dist/RoamTool-dChjfNvn.mjs +212 -0
  12. package/dist/ScreenShotTool-CPrA7pEa.mjs +357 -0
  13. package/dist/SectionTool-Du-V6U-J.mjs +217 -0
  14. package/dist/SettingTool-X6AjiptI.mjs +691 -0
  15. package/dist/StructureTree-CHhrQiDL.mjs +1591 -0
  16. package/dist/XRayTool-Ci1SR92x.mjs +57 -0
  17. package/dist/alert-BzjOjWCu.mjs +46 -0
  18. package/dist/const-DeViLYl5.mjs +266 -0
  19. package/dist/el-checkbox-DeNYO9VE.mjs +460 -0
  20. package/dist/el-input-number-CsUyeV_5.mjs +858 -0
  21. package/dist/index-CBO0Vhj8.mjs +99354 -0
  22. package/dist/index.html +17 -0
  23. package/dist/panel.vue_vue_type_style_index_0_lang-CUi6naB0.mjs +61 -0
  24. package/dist/style.css +1 -0
  25. package/dist/tallPanel-D226sbKd.mjs +84 -0
  26. package/package.json +65 -0
  27. package/types/App.vue.d.ts +2 -0
  28. package/types/components/BCFComponents/BCFAddPanel.vue.d.ts +55 -0
  29. package/types/components/BCFComponents/BCFDetailPanel.vue.d.ts +59 -0
  30. package/types/components/BCFComponents/BCFDisplayList.vue.d.ts +18 -0
  31. package/types/components/BCFComponents/BCFFilter.vue.d.ts +14 -0
  32. package/types/components/BCFComponents/BCFTool.vue.d.ts +15 -0
  33. package/types/components/BCFComponents/addObjectOrAnno.vue.d.ts +16 -0
  34. package/types/components/BCFComponents/checkObjectPanel.vue.d.ts +11 -0
  35. package/types/components/BCFComponents/commentInput.vue.d.ts +51 -0
  36. package/types/components/BCFComponents/commentsView.vue.d.ts +48 -0
  37. package/types/components/BCFComponents/dialogPanel.vue.d.ts +15 -0
  38. package/types/components/BCFComponents/imageView.vue.d.ts +17 -0
  39. package/types/components/BCFComponents/imageZoomIn.vue.d.ts +9 -0
  40. package/types/components/BimViewerComponents/AnnotationTool.vue.d.ts +14 -0
  41. package/types/components/BimViewerComponents/ClickEvent.vue.d.ts +6 -0
  42. package/types/components/BimViewerComponents/CommentTool.vue.d.ts +12 -0
  43. package/types/components/BimViewerComponents/InspectorTool.vue.d.ts +12 -0
  44. package/types/components/BimViewerComponents/MeasureTool.vue.d.ts +12 -0
  45. package/types/components/BimViewerComponents/MouseTool.vue.d.ts +6 -0
  46. package/types/components/BimViewerComponents/NavigateTool.vue.d.ts +10 -0
  47. package/types/components/BimViewerComponents/RoamTool.vue.d.ts +12 -0
  48. package/types/components/BimViewerComponents/ScreenShotTool.vue.d.ts +10 -0
  49. package/types/components/BimViewerComponents/SectionTool.vue.d.ts +10 -0
  50. package/types/components/BimViewerComponents/SettingTool.vue.d.ts +13 -0
  51. package/types/components/BimViewerComponents/StructureTree.vue.d.ts +3053 -0
  52. package/types/components/BimViewerComponents/Toolbar.vue.d.ts +10 -0
  53. package/types/components/BimViewerComponents/XRayTool.vue.d.ts +12 -0
  54. package/types/components/BimViewerComponents/mobileToolbar.vue.d.ts +27 -0
  55. package/types/components/MobileBCFComponents/MobileBCFAdd.vue.d.ts +56 -0
  56. package/types/components/MobileBCFComponents/MobileBCFDetail.vue.d.ts +55 -0
  57. package/types/components/MobileBCFComponents/MobileBCFDisplayList.vue.d.ts +278 -0
  58. package/types/components/MobileBCFComponents/MobileBCFFilter.vue.d.ts +255 -0
  59. package/types/components/MobileBCFComponents/MobileBCFTool.vue.d.ts +15 -0
  60. package/types/components/MobileBCFComponents/MobileCommentInput.vue.d.ts +54 -0
  61. package/types/components/MobileBCFComponents/MobileCommentsView.vue.d.ts +17 -0
  62. package/types/components/MobileBCFComponents/selectPanel.vue.d.ts +12 -0
  63. package/types/components/index.d.ts +3 -0
  64. package/types/components/industryViewer.vue.d.ts +18 -0
  65. package/types/components/utilsComponents/alert.vue.d.ts +32 -0
  66. package/types/components/utilsComponents/closeButton.vue.d.ts +50 -0
  67. package/types/components/utilsComponents/closeButton_dark.vue.d.ts +32 -0
  68. package/types/components/utilsComponents/emptyPage.vue.d.ts +6 -0
  69. package/types/components/utilsComponents/loading.vue.d.ts +2 -0
  70. package/types/components/utilsComponents/panel.vue.d.ts +47 -0
  71. package/types/components/utilsComponents/rectangleButton.vue.d.ts +106 -0
  72. package/types/components/utilsComponents/tallPanel.vue.d.ts +69 -0
  73. package/types/components/utilsComponents/tallPanel_noPos.vue.d.ts +82 -0
  74. package/types/index.d.ts +31 -0
  75. package/types/main.d.ts +1 -0
  76. package/types/pages/viewerEntry.vue.d.ts +59 -0
  77. package/types/services/request/config.d.ts +8 -0
  78. package/types/store/bcfManager.d.ts +11 -0
  79. package/types/store/bcfReflect.d.ts +88 -0
  80. package/types/store/const.d.ts +211 -0
  81. package/types/store/initConfigs.d.ts +58 -0
  82. package/types/store/propertyReflect.d.ts +1 -0
  83. package/types/store/themeManager.d.ts +8 -0
  84. package/types/store/toolbars.d.ts +392 -0
  85. package/types/utils/OSSHelper.d.ts +4 -0
  86. package/types/utils/cacheInfo.d.ts +20 -0
  87. package/types/utils/dateFormat.d.ts +2 -0
  88. package/types/utils/dpscan.d.ts +1 -0
  89. package/types/utils/eventBus.d.ts +86 -0
  90. package/types/utils/roles.d.ts +1 -0
  91. package/types/utils/splitType.d.ts +3 -0
  92. package/types/utils/timer.d.ts +9 -0
  93. package/types/viewerManager/initial/viewerInitial.d.ts +7 -0
  94. package/types/viewerManager/load/loadModel.d.ts +1 -0
  95. package/types/viewerManager/viewerManager.d.ts +12 -0
@@ -0,0 +1,57 @@
1
+ import { defineComponent as y, onMounted as V, ref as E, onBeforeUnmount as k, openBlock as o, createElementBlock as s, createElementVNode as r, Fragment as C, renderList as S, unref as c, normalizeClass as d, toDisplayString as x } from "vue";
2
+ import { p as B, t as w, O, q as A, z as I } from "./index-CBO0Vhj8.mjs";
3
+ import { X as R } from "./const-DeViLYl5.mjs";
4
+ const T = { class: "xray_wrapper" }, H = { class: "xray_content" }, X = ["onClick"], j = ["src"], L = /* @__PURE__ */ y({
5
+ __name: "XRayTool",
6
+ props: ["componentId"],
7
+ emits: ["closePanel", "emitHandler"],
8
+ setup(m, { emit: z }) {
9
+ const u = B(), _ = m;
10
+ V(() => {
11
+ u.setReadyById(_.componentId);
12
+ });
13
+ const t = E(0), l = () => {
14
+ const { eventTrigger: e } = window.bimViewer;
15
+ A("isMobile") ? e.on("touchEntity", (n) => {
16
+ window.bimViewer.disableClickEvent && a(n);
17
+ }) : e.on("pickedEntity", (n) => {
18
+ window.bimViewer.disableClickEvent && a(n);
19
+ });
20
+ };
21
+ w.on("BimViewer", l), k(() => {
22
+ w.off("BimViewer", l);
23
+ });
24
+ const a = (e) => {
25
+ t.value != -1 && (t.value == 1 ? f(e) : t.value == 2 ? p(e) : t.value == 3 && v(e));
26
+ }, f = (e) => {
27
+ window.bimViewer.setEntityVisible(e);
28
+ }, p = (e) => {
29
+ window.bimViewer.setEntityHighlighted(e);
30
+ }, v = (e) => {
31
+ window.bimViewer.setEntitySelected(e);
32
+ }, b = () => {
33
+ window.bimViewer.setAllObjectsVisible(!0), window.bimViewer.setAllObjectsHighlighted(!1), window.bimViewer.setAllObjectsSelected(!1);
34
+ }, g = (e) => {
35
+ e == 0 ? (t.value = e, b()) : t.value = e;
36
+ };
37
+ return (e, n) => (o(), s("div", T, [
38
+ r("div", H, [
39
+ (o(!0), s(C, null, S(c(R), (i, h) => (o(), s("div", {
40
+ key: h,
41
+ class: d(["button_", { button_active: t.value == i.id }]),
42
+ onClick: (M) => g(i.id)
43
+ }, [
44
+ r("img", {
45
+ src: c(O) + `/industry-viewer/xray-bar/${t.value == i.id ? i.img_active : i.img}.svg`
46
+ }, null, 8, j),
47
+ r("span", {
48
+ class: d({ active_text: t.value == i.id })
49
+ }, x(i.name), 3)
50
+ ], 10, X))), 128))
51
+ ])
52
+ ]));
53
+ }
54
+ }), D = /* @__PURE__ */ I(L, [["__scopeId", "data-v-a8ad0795"]]);
55
+ export {
56
+ D as default
57
+ };
@@ -0,0 +1,46 @@
1
+ import { O as s, y as l, z as _ } from "./index-CBO0Vhj8.mjs";
2
+ import { defineComponent as c, openBlock as a, createElementBlock as i, createElementVNode as e, unref as r, createVNode as d } from "vue";
3
+ const p = { class: "alert_wrapper" }, m = { class: "alert_box_wrapper" }, u = { class: "alert_box" }, f = { class: "alert_img" }, h = ["src"], v = { class: "alert_close" }, g = /* @__PURE__ */ c({
4
+ __name: "alert",
5
+ props: {
6
+ panelTitle: {
7
+ type: String,
8
+ default: ""
9
+ },
10
+ width: {
11
+ type: Number,
12
+ default: 240
13
+ },
14
+ clickHandle: {
15
+ type: Function,
16
+ default: () => {
17
+ }
18
+ }
19
+ },
20
+ setup(n) {
21
+ return (k, t) => {
22
+ const o = l;
23
+ return a(), i("div", p, [
24
+ e("div", m, [
25
+ e("div", u, [
26
+ e("div", f, [
27
+ e("img", {
28
+ src: r(s) + "/bim-viewer/alert_warning.png"
29
+ }, null, 8, h)
30
+ ]),
31
+ t[0] || (t[0] = e("div", { class: "alert_title" }, "请先在模型上选择一个点", -1)),
32
+ e("div", v, [
33
+ d(o, {
34
+ "click-handle": n.clickHandle,
35
+ width: 18
36
+ }, null, 8, ["click-handle"])
37
+ ])
38
+ ])
39
+ ])
40
+ ]);
41
+ };
42
+ }
43
+ }), b = /* @__PURE__ */ _(g, [["__scopeId", "data-v-918afff2"]]);
44
+ export {
45
+ b as _
46
+ };
@@ -0,0 +1,266 @@
1
+ const e = [
2
+ {
3
+ id: 0,
4
+ name: "对象"
5
+ },
6
+ {
7
+ id: 1,
8
+ name: "类别"
9
+ },
10
+ {
11
+ id: 2,
12
+ name: "楼层"
13
+ }
14
+ ], i = [
15
+ {
16
+ id: 1,
17
+ name: "铅笔",
18
+ buttontype: "path",
19
+ svg: "pencil",
20
+ svgActive: "pencil-active",
21
+ isShow: !0
22
+ },
23
+ {
24
+ id: 2,
25
+ name: "箭头",
26
+ buttontype: "arrow",
27
+ svg: "arrow",
28
+ svgActive: "arrow-active",
29
+ isShow: !1
30
+ },
31
+ {
32
+ id: 3,
33
+ name: "矩形",
34
+ buttontype: "rect",
35
+ svg: "rect",
36
+ svgActive: "rect-active",
37
+ isShow: !1
38
+ },
39
+ {
40
+ id: 4,
41
+ name: "圆形",
42
+ buttontype: "ellipse",
43
+ svg: "ellipse",
44
+ svgActive: "ellipse-active",
45
+ isShow: !1
46
+ },
47
+ {
48
+ id: 5,
49
+ name: "文字",
50
+ buttontype: "text",
51
+ svg: "text",
52
+ svgActive: "text-active",
53
+ isShow: !1
54
+ }
55
+ ], t = [
56
+ {
57
+ id: 1,
58
+ name: "渐变蓝",
59
+ color: "linear-gradient(180deg, #fffefb 0%, #daebff 100%)",
60
+ rgb: [0.9254, 0.9607, 1]
61
+ },
62
+ {
63
+ id: 2,
64
+ name: "纯灰度",
65
+ color: "#F0F0F0",
66
+ rgb: [0.9411, 0.9411, 0.9411]
67
+ },
68
+ {
69
+ id: 3,
70
+ name: "昏暗天空",
71
+ color: "#323237",
72
+ rgb: [0.196, 0.196, 0.2156]
73
+ },
74
+ {
75
+ id: 4,
76
+ name: "纯白色",
77
+ color: "#FFFFFF",
78
+ rgb: [1, 1, 1]
79
+ },
80
+ {
81
+ id: 5,
82
+ name: "宝石蓝",
83
+ color: "#086FFD",
84
+ rgb: [0.0313, 0.4352, 0.9921]
85
+ }
86
+ ], a = [
87
+ {
88
+ id: 1,
89
+ code: "distance",
90
+ name: "距离",
91
+ svg: "distance",
92
+ svgActive: "distance-active"
93
+ },
94
+ {
95
+ id: 2,
96
+ code: "angle",
97
+ name: "角度",
98
+ svg: "angle",
99
+ svgActive: "angle-active"
100
+ }
101
+ ], c = [
102
+ {
103
+ id: 0,
104
+ name: "1280x720px",
105
+ width: "1280",
106
+ height: "720"
107
+ },
108
+ {
109
+ id: 1,
110
+ name: "1920x1080px",
111
+ width: "1920",
112
+ height: "1080"
113
+ },
114
+ {
115
+ id: 2,
116
+ name: "2560x1440px",
117
+ width: "2560",
118
+ height: "1440"
119
+ },
120
+ {
121
+ id: 3,
122
+ name: "自定义"
123
+ }
124
+ ], m = [
125
+ {
126
+ id: 1,
127
+ code: "top",
128
+ name: "俯视图",
129
+ dir_num: 4,
130
+ img: "view-top",
131
+ imgActive: "view-top-active"
132
+ },
133
+ {
134
+ id: 2,
135
+ code: "bottom",
136
+ name: "仰视图",
137
+ dir_num: 5,
138
+ img: "view-bottom",
139
+ imgActive: "view-bottom-active"
140
+ },
141
+ {
142
+ id: 3,
143
+ code: "left",
144
+ name: "左视图",
145
+ dir_num: 3,
146
+ img: "view-left",
147
+ imgActive: "view-left-active"
148
+ },
149
+ {
150
+ id: 4,
151
+ code: "right",
152
+ name: "右视图",
153
+ dir_num: 2,
154
+ img: "view-right",
155
+ imgActive: "view-right-active"
156
+ },
157
+ {
158
+ id: 5,
159
+ code: "front",
160
+ name: "前视图",
161
+ dir_num: 0,
162
+ img: "view-front",
163
+ imgActive: "view-front-active"
164
+ },
165
+ {
166
+ id: 6,
167
+ code: "back",
168
+ name: "后视图",
169
+ dir_num: 1,
170
+ img: "view-back",
171
+ imgActive: "view-back-active"
172
+ },
173
+ {
174
+ id: 7,
175
+ code: "left-bottom",
176
+ name: "西南",
177
+ dir_num: 14,
178
+ img: "view-left-bottom",
179
+ imgActive: "view-left-bottom-active"
180
+ },
181
+ {
182
+ id: 8,
183
+ code: "right-bottom",
184
+ name: "东南",
185
+ dir_num: 15,
186
+ img: "view-right-bottom",
187
+ imgActive: "view-right-bottom-active"
188
+ },
189
+ {
190
+ id: 9,
191
+ code: "right-top",
192
+ name: "东北",
193
+ dir_num: 16,
194
+ img: "view-right-top",
195
+ imgActive: "view-right-top-active"
196
+ },
197
+ {
198
+ id: 10,
199
+ code: "left-top",
200
+ name: "西北",
201
+ dir_num: 17,
202
+ img: "view-left-top",
203
+ imgActive: "view-left-top-active"
204
+ }
205
+ ], v = [
206
+ {
207
+ id: 1,
208
+ code: "image",
209
+ name: "图片",
210
+ okType: "image/*",
211
+ img: "image",
212
+ img_active: "image_active",
213
+ imgActive: "image-active"
214
+ },
215
+ {
216
+ id: 2,
217
+ code: "record",
218
+ name: "语音",
219
+ okType: "record",
220
+ img: "record",
221
+ img_active: "record_active",
222
+ imgActive: "record-active"
223
+ },
224
+ {
225
+ id: 3,
226
+ code: "video",
227
+ name: "视频",
228
+ okType: "video/*",
229
+ img: "video",
230
+ img_active: "video_active",
231
+ imgActive: "video-active"
232
+ },
233
+ {
234
+ id: 4,
235
+ code: "file",
236
+ name: "文档",
237
+ okType: "*/*",
238
+ img: "file",
239
+ img_active: "file_active",
240
+ imgActive: "file-active"
241
+ },
242
+ {
243
+ id: 5,
244
+ code: "text",
245
+ name: "文字",
246
+ okType: "text",
247
+ img: "text",
248
+ img_active: "text_active",
249
+ imgActive: "text-active"
250
+ }
251
+ ], o = [
252
+ { id: 1, name: "隐藏", img: "hidden", img_active: "hidden-active" },
253
+ { id: 2, name: "透视", img: "opacity", img_active: "opacity-active" },
254
+ { id: 3, name: "选中", img: "select", img_active: "select-active" },
255
+ { id: 0, name: "恢复", img: "reset", img_active: "reset-active" }
256
+ ];
257
+ export {
258
+ v as A,
259
+ t as B,
260
+ i as C,
261
+ a as M,
262
+ m as N,
263
+ e as S,
264
+ o as X,
265
+ c as a
266
+ };