@xtctwins/tctwins-industry-engine 0.0.11 → 0.1.0

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 (105) hide show
  1. package/README.md +196 -3
  2. package/dist/01.xtc +0 -0
  3. package/dist/02.xtc +0 -0
  4. package/dist/03.xtc +0 -0
  5. package/dist/AnnotationTool-DfcSXn-d.mjs +166 -0
  6. package/dist/CameraViewTool-C91GKumm.mjs +164 -0
  7. package/dist/CommentTool-CR1yMDYP.mjs +1528 -0
  8. package/dist/HiddenTool-iCXaAMtS.mjs +56 -0
  9. package/dist/Industry_Viewer_Lib.es.js +10 -5
  10. package/dist/Industry_Viewer_Lib.umd.js +264 -237
  11. package/dist/InspectorTool-MyLTC7qp.mjs +679 -0
  12. package/dist/MeasureTool-BpomWCXl.mjs +593 -0
  13. package/dist/MouseTool-COWvA8Jk.mjs +84 -0
  14. package/dist/NavigateTool-DeMrrYoS.mjs +51 -0
  15. package/dist/OperateTool-DSZCJVkD.mjs +185 -0
  16. package/dist/RoamTool-0E0ls2Cx.mjs +287 -0
  17. package/dist/ScreenShotTool-viitj9zy.mjs +429 -0
  18. package/dist/SectionTool-Bz1c26fa.mjs +241 -0
  19. package/dist/SettingTool-BlsqUNQM.mjs +1745 -0
  20. package/dist/StructureTree-Dke0hMRC.mjs +1685 -0
  21. package/dist/alert-CgfjcpRo.mjs +52 -0
  22. package/dist/index-COQ8NdId.mjs +138714 -0
  23. package/dist/index.html +17 -0
  24. package/dist/{panel.vue_vue_type_style_index_0_lang-D3swRKXl.mjs → panel.vue_vue_type_style_index_0_lang-B-dNXuRK.mjs} +3 -3
  25. package/dist/style.css +3 -1
  26. package/dist/{tallPanel-eXWPdhmU.mjs → tallPanel-B-5hSZt6.mjs} +24 -24
  27. package/dist/timer-DoTiGoWP.mjs +30 -0
  28. package/package.json +85 -66
  29. package/types/App.vue.d.ts +3 -1
  30. package/types/components/BCFComponents/BCFAddPanel.vue.d.ts +1 -1
  31. package/types/components/BCFComponents/BCFDetailPanel.vue.d.ts +1 -1
  32. package/types/components/BCFComponents/BCFFilter.vue.d.ts +2 -2
  33. package/types/components/BCFComponents/commentInput.vue.d.ts +1 -1
  34. package/types/components/BCFComponents/commentsView.vue.d.ts +6 -6
  35. package/types/components/BCFComponents/imageView.vue.d.ts +1 -1
  36. package/types/components/BimViewerComponents/AnnotationTool.vue.d.ts +1 -1
  37. package/types/components/BimViewerComponents/CameraViewTool.vue.d.ts +12 -0
  38. package/types/components/BimViewerComponents/CommentTool.vue.d.ts +34 -1
  39. package/types/components/BimViewerComponents/MobileCommentsTool/add.vue.d.ts +14 -0
  40. package/types/components/BimViewerComponents/MobileCommentsTool/detail.vue.d.ts +11 -0
  41. package/types/components/BimViewerComponents/MobileCommentsTool/draw.vue.d.ts +17 -0
  42. package/types/components/BimViewerComponents/MobileCommentsTool/filter.vue.d.ts +275 -0
  43. package/types/components/BimViewerComponents/MobileCommentsTool/list.vue.d.ts +297 -0
  44. package/types/components/BimViewerComponents/MobileCommentsTool/zoomIn.vue.d.ts +9 -0
  45. package/types/components/BimViewerComponents/OperateTool.vue.d.ts +12 -0
  46. package/types/components/BimViewerComponents/PCCommentTool/pcdraw.vue.d.ts +14 -0
  47. package/types/components/BimViewerComponents/SectionModeBar.vue.d.ts +2 -0
  48. package/types/components/BimViewerComponents/StructureTree.vue.d.ts +8035 -419
  49. package/types/components/{industryViewer.vue.d.ts → BimxViewerComp.vue.d.ts} +7 -0
  50. package/types/components/IndustryViewerComp.vue.d.ts +25 -0
  51. package/types/components/MobileBCFComponents/MobileBCFAdd.vue.d.ts +1 -1
  52. package/types/components/MobileBCFComponents/MobileBCFDetail.vue.d.ts +1 -1
  53. package/types/components/MobileBCFComponents/MobileBCFDisplayList.vue.d.ts +100 -308
  54. package/types/components/MobileBCFComponents/MobileBCFFilter.vue.d.ts +100 -308
  55. package/types/components/MobileBCFComponents/MobileBCFTool.vue.d.ts +2 -0
  56. package/types/components/MobileBCFComponents/MobileCommentInput.vue.d.ts +4 -4
  57. package/types/components/utilsComponents/alert.vue.d.ts +9 -0
  58. package/types/components/utilsComponents/prompt.vue.d.ts +8 -0
  59. package/types/components/utilsComponents/rectangleButton.vue.d.ts +1 -1
  60. package/types/i18n/index.d.ts +1767 -0
  61. package/types/i18n/locales/en-US.d.ts +439 -0
  62. package/types/i18n/locales/zh-CN.d.ts +439 -0
  63. package/types/i18n/types.d.ts +144 -0
  64. package/types/index.d.ts +8 -5
  65. package/types/pages/{viewerEntry.vue.d.ts → BimxViewerEntry.vue.d.ts} +20 -8
  66. package/types/pages/IndustryViewerEntry.vue.d.ts +71 -0
  67. package/types/services/request/api.d.ts +3 -0
  68. package/types/services/request/index.d.ts +14 -0
  69. package/types/services/request/types.d.ts +12 -0
  70. package/types/store/bcfReflect.d.ts +8 -7
  71. package/types/store/const.d.ts +32 -3
  72. package/types/store/initConfigs.d.ts +3 -3
  73. package/types/store/localeStore.d.ts +12 -0
  74. package/types/store/propertyReflect.d.ts +1 -1
  75. package/types/store/toolbars.d.ts +596 -75
  76. package/types/store/userInfoStore.d.ts +32 -0
  77. package/types/tests/bcf.d.ts +8 -0
  78. package/types/utils/OSSHelper.d.ts +3 -0
  79. package/types/utils/eventBus.d.ts +23 -5
  80. package/types/utils/roles.d.ts +1 -1
  81. package/types/utils/splitType.d.ts +1 -0
  82. package/types/viewerManager/initial/viewerInitial.d.ts +14 -1
  83. package/types/viewerManager/load/loadModel.d.ts +137 -1
  84. package/types/viewerManager/sectionManager.d.ts +524 -0
  85. package/types/viewerManager/viewerManager.d.ts +19 -1
  86. package/dist/AnnotationTool-BZlQ0NIM.mjs +0 -131
  87. package/dist/BCFTool-DAqDUYS-.mjs +0 -25118
  88. package/dist/CommentTool-BwHOJoFe.mjs +0 -168
  89. package/dist/InspectorTool-BK5pX2nZ.mjs +0 -674
  90. package/dist/MeasureTool-D92Tyu14.mjs +0 -167
  91. package/dist/MouseTool-Dpl4JLyb.mjs +0 -84
  92. package/dist/NavigateTool-B5ySsqph.mjs +0 -52
  93. package/dist/RoamTool-Nk4hYPJB.mjs +0 -212
  94. package/dist/ScreenShotTool-D1cS2DkF.mjs +0 -445
  95. package/dist/SectionTool-D3885F5s.mjs +0 -217
  96. package/dist/SettingTool-BI_soRCO.mjs +0 -770
  97. package/dist/StructureTree-CCWwAbnr.mjs +0 -1824
  98. package/dist/XRayTool-IRgKMGU8.mjs +0 -57
  99. package/dist/alert-x4uA_EPv.mjs +0 -46
  100. package/dist/const-DeViLYl5.mjs +0 -266
  101. package/dist/el-checkbox-_VjUMARt.mjs +0 -544
  102. package/dist/el-input-number-Chi40nla.mjs +0 -1028
  103. package/dist/index-CaiiH-9N.mjs +0 -101871
  104. /package/types/components/BimViewerComponents/{mobileToolbar.vue.d.ts → AppToolbar.vue.d.ts} +0 -0
  105. /package/types/components/BimViewerComponents/{XRayTool.vue.d.ts → HiddenTool.vue.d.ts} +0 -0
@@ -1,57 +0,0 @@
1
- import { defineComponent as h, onMounted as V, ref as E, onBeforeUnmount as k, createElementBlock as s, openBlock as r, createElementVNode as l, Fragment as B, renderList as x, unref as d, normalizeClass as w, toDisplayString as C } from "vue";
2
- import { z as A, B as m, O as S, A as O, G as T } from "./index-CaiiH-9N.mjs";
3
- import { X as I } from "./const-DeViLYl5.mjs";
4
- const R = { class: "xray_wrapper" }, H = { class: "xray_content" }, X = ["onClick"], j = ["src"], L = /* @__PURE__ */ h({
5
- __name: "XRayTool",
6
- props: ["componentId"],
7
- emits: ["closePanel", "emitHandler"],
8
- setup(u, { emit: z }) {
9
- const n = A(), _ = u;
10
- V(() => {
11
- n.setReadyById(_.componentId);
12
- });
13
- const t = E(0), a = () => {
14
- const { eventTrigger: e } = window.bimViewer;
15
- O("isMobile") ? e.on("touchEntity", (o) => {
16
- !window.bimViewer.disableClickEvent || !n.isToolActiveBykey("xray") || c(o);
17
- }) : e.on("pickedEntity", (o) => {
18
- !window.bimViewer.disableClickEvent || !n.isToolActiveBykey("xray") || c(o);
19
- });
20
- };
21
- m.on("BimViewer", a), k(() => {
22
- m.off("BimViewer", a);
23
- });
24
- const c = (e) => {
25
- t.value != -1 && (t.value == 1 ? v(e) : t.value == 2 ? b(e) : t.value == 3 && f(e));
26
- }, v = (e) => {
27
- window.bimViewer.setEntityVisible(e);
28
- }, b = (e) => {
29
- window.bimViewer.setEntityHighlighted(e);
30
- }, f = (e) => {
31
- window.bimViewer.setEntitySelected(e);
32
- }, p = () => {
33
- window.bimViewer.setAllObjectsVisible(!0), window.bimViewer.setAllObjectsHighlighted(!1), window.bimViewer.setAllObjectsSelected(!1);
34
- }, y = (e) => {
35
- e == 0 ? (t.value = e, p()) : t.value = e;
36
- };
37
- return (e, o) => (r(), s("div", R, [
38
- l("div", H, [
39
- (r(!0), s(B, null, x(d(I), (i, g) => (r(), s("div", {
40
- key: g,
41
- class: w(["button_", { button_active: t.value == i.id }]),
42
- onClick: (M) => y(i.id)
43
- }, [
44
- l("img", {
45
- src: d(S) + `/industry-viewer/xray-bar/${t.value == i.id ? i.img_active : i.img}.svg`
46
- }, null, 8, j),
47
- l("span", {
48
- class: w({ active_text: t.value == i.id })
49
- }, C(i.name), 3)
50
- ], 10, X))), 128))
51
- ])
52
- ]));
53
- }
54
- }), F = /* @__PURE__ */ T(L, [["__scopeId", "data-v-e5edb869"]]);
55
- export {
56
- F as default
57
- };
@@ -1,46 +0,0 @@
1
- import { O as s, F as l, G as _ } from "./index-CaiiH-9N.mjs";
2
- import { defineComponent as c, createElementBlock as a, openBlock 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 i(), a("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
- }), x = /* @__PURE__ */ _(g, [["__scopeId", "data-v-0dbc2d3a"]]);
44
- export {
45
- x as _
46
- };
@@ -1,266 +0,0 @@
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
- };