@xtctwins/tctwins-bimx-engine 0.2.41 → 0.2.43
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.
- package/README.md +193 -193
- package/dist/{AnnotationTool-PMNJlj2Y.mjs → AnnotationTool-sCipowlW.mjs} +32 -32
- package/dist/BIMX_Viewer_Lib.es.js +6 -6
- package/dist/BIMX_Viewer_Lib.umd.js +161 -169
- package/dist/{CommentTool-BJvca5mk.mjs → CommentTool-hbyFQWDo.mjs} +186 -186
- package/dist/{HiddenTool-CWH03Vqf.mjs → HiddenTool-CziWl19M.mjs} +7 -7
- package/dist/{InspectorTool-B4E4bF79.mjs → InspectorTool-DWMmVnRj.mjs} +57 -57
- package/dist/{MeasureTool-B1Du7-2J.mjs → MeasureTool-BSxAxLjA.mjs} +47 -47
- package/dist/{MouseTool-D6SJ0Z38.mjs → MouseTool-CL7vH3JV.mjs} +15 -15
- package/dist/{NavigateTool-DksCL19K.mjs → NavigateTool-BxSHuhXe.mjs} +7 -7
- package/dist/{RoamTool-kgXMgefr.mjs → RoamTool-CfsDt0JW.mjs} +20 -20
- package/dist/ScreenShotTool-B9hkkidu.mjs +391 -0
- package/dist/{SectionTool-quJQxeZM.mjs → SectionTool-C3csdwlU.mjs} +72 -72
- package/dist/SettingTool-CxmgYQNM.mjs +660 -0
- package/dist/StructureTree-_xUu206_.mjs +1708 -0
- package/dist/{alert-DFj-iGse.mjs → alert-3HKRgQM3.mjs} +4 -4
- package/dist/el-input-number-BmRxy_au.mjs +904 -0
- package/dist/{index-Csa8Faf1.mjs → index-CSr90X56.mjs} +50292 -48936
- package/dist/index.html +17 -17
- package/dist/{panel.vue_vue_type_style_index_0_lang-D7ONLq2c.mjs → panel.vue_vue_type_style_index_0_lang-C1YRBUlZ.mjs} +3 -3
- package/dist/style.css +1 -1
- package/dist/{tallPanel-bIfrBvLA.mjs → tallPanel-BBCerNGg.mjs} +16 -16
- package/package.json +3 -3
- package/types/components/BCFComponents/BCFAddPanel.vue.d.ts +38 -10
- package/types/components/BCFComponents/BCFDetailPanel.vue.d.ts +37 -9
- package/types/components/BCFComponents/BCFDisplayList.vue.d.ts +5 -7
- package/types/components/BCFComponents/BCFFilter.vue.d.ts +5 -7
- package/types/components/BCFComponents/BCFTool.vue.d.ts +4 -7
- package/types/components/BCFComponents/addObjectOrAnno.vue.d.ts +5 -7
- package/types/components/BCFComponents/checkObjectPanel.vue.d.ts +5 -6
- package/types/components/BCFComponents/commentInput.vue.d.ts +36 -10
- package/types/components/BCFComponents/commentsView.vue.d.ts +36 -7
- package/types/components/BCFComponents/dialogPanel.vue.d.ts +5 -8
- package/types/components/BCFComponents/imageView.vue.d.ts +5 -7
- package/types/components/BCFComponents/imageZoomIn.vue.d.ts +5 -6
- package/types/components/BimViewerComponents/AnnotationTool.vue.d.ts +1 -1
- package/types/components/BimViewerComponents/ClickEvent.vue.d.ts +1 -1
- package/types/components/BimViewerComponents/CommentTool.vue.d.ts +32 -1
- package/types/components/BimViewerComponents/HiddenTool.vue.d.ts +1 -1
- package/types/components/BimViewerComponents/MobileCommentsTool/add.vue.d.ts +6 -8
- package/types/components/BimViewerComponents/MobileCommentsTool/detail.vue.d.ts +4 -5
- package/types/components/BimViewerComponents/MobileCommentsTool/draw.vue.d.ts +2 -2
- package/types/components/BimViewerComponents/MobileCommentsTool/filter.vue.d.ts +478 -1
- package/types/components/BimViewerComponents/MobileCommentsTool/list.vue.d.ts +499 -7
- package/types/components/BimViewerComponents/MobileCommentsTool/zoomIn.vue.d.ts +5 -6
- package/types/components/BimViewerComponents/MouseTool.vue.d.ts +1 -1
- package/types/components/BimViewerComponents/NavigateTool.vue.d.ts +1 -1
- package/types/components/BimViewerComponents/PCCommentTool/pcdraw.vue.d.ts +1 -1
- package/types/components/BimViewerComponents/RoamTool.vue.d.ts +1 -1
- package/types/components/BimViewerComponents/SettingTool.vue.d.ts +4 -6
- package/types/components/BimViewerComponents/StructureTree.vue.d.ts +3874 -1
- package/types/components/BimViewerComponents/Toolbar.vue.d.ts +1 -1
- package/types/components/BimViewerComponents/mobileToolbar.vue.d.ts +18 -1
- package/types/components/MobileBCFComponents/MobileBCFAdd.vue.d.ts +37 -10
- package/types/components/MobileBCFComponents/MobileBCFDetail.vue.d.ts +37 -9
- package/types/components/MobileBCFComponents/MobileBCFDisplayList.vue.d.ts +499 -7
- package/types/components/MobileBCFComponents/MobileBCFFilter.vue.d.ts +478 -1
- package/types/components/MobileBCFComponents/MobileBCFTool.vue.d.ts +5 -8
- package/types/components/MobileBCFComponents/MobileCommentInput.vue.d.ts +38 -12
- package/types/components/MobileBCFComponents/MobileCommentsView.vue.d.ts +7 -9
- package/types/components/MobileBCFComponents/selectPanel.vue.d.ts +5 -7
- package/types/components/bimxViewer.vue.d.ts +7 -14
- package/types/components/utilsComponents/alert.vue.d.ts +1 -1
- package/types/components/utilsComponents/closeButton.vue.d.ts +1 -1
- package/types/components/utilsComponents/closeButton_dark.vue.d.ts +1 -1
- package/types/components/utilsComponents/emptyPage.vue.d.ts +1 -1
- package/types/components/utilsComponents/loading.vue.d.ts +1 -1
- package/types/components/utilsComponents/panel.vue.d.ts +8 -2
- package/types/components/utilsComponents/prompt.vue.d.ts +1 -1
- package/types/components/utilsComponents/rectangleButton.vue.d.ts +3 -1
- package/types/components/utilsComponents/tallPanel.vue.d.ts +13 -3
- package/types/components/utilsComponents/tallPanel_noPos.vue.d.ts +13 -3
- package/types/pages/viewerEntry.vue.d.ts +4 -56
- package/types/store/toolbars.d.ts +46 -46
- package/dist/ScreenShotTool-IAGzYfke.mjs +0 -357
- package/dist/SettingTool-DTkSHSRc.mjs +0 -656
- package/dist/StructureTree-CbRSpR38.mjs +0 -1612
- package/dist/el-input-number-D50X7TVG.mjs +0 -818
- package/types/components/BCFComponents/BCFCommentNew.vue.d.ts +0 -22
- package/types/components/BimViewerComponents/emptyPage.vue.d.ts +0 -8
- package/types/tests/cmt.d.ts +0 -1
package/README.md
CHANGED
|
@@ -1,193 +1,193 @@
|
|
|
1
|
-
## @xtctwins/tctwins-bimx-engine
|
|
2
|
-
|
|
3
|
-
# xtc 三维文件查看器
|
|
4
|
-
|
|
5
|
-
## 安装相关依赖
|
|
6
|
-
|
|
7
|
-
## UI element-plus
|
|
8
|
-
|
|
9
|
-
<https://www.npmjs.com/package/element-plus>
|
|
10
|
-
|
|
11
|
-
```ssh
|
|
12
|
-
npm i element-plus
|
|
13
|
-
```
|
|
14
|
-
|
|
15
|
-
## 事件总线 mitt
|
|
16
|
-
|
|
17
|
-
<https://www.npmjs.com/package/mitt>
|
|
18
|
-
|
|
19
|
-
```ssh
|
|
20
|
-
npm i mitt
|
|
21
|
-
```
|
|
22
|
-
|
|
23
|
-
## 状态管理 pinia
|
|
24
|
-
|
|
25
|
-
<https://www.npmjs.com/package/pinia>
|
|
26
|
-
|
|
27
|
-
```ssh
|
|
28
|
-
npm i pinia
|
|
29
|
-
```
|
|
30
|
-
|
|
31
|
-
## 文件获取 ali-oss
|
|
32
|
-
|
|
33
|
-
<https://www.npmjs.com/package/ali-oss>
|
|
34
|
-
|
|
35
|
-
```ssh
|
|
36
|
-
npm i ali-oss
|
|
37
|
-
```
|
|
38
|
-
|
|
39
|
-
# 安装依赖
|
|
40
|
-
|
|
41
|
-
```ssh
|
|
42
|
-
// 安装依赖
|
|
43
|
-
npm i @xtctwins/tctwins-bimx-engine
|
|
44
|
-
// 引入样式
|
|
45
|
-
import "@xtctwins/tctwins-bimx-engine/dist/style.css";
|
|
46
|
-
```
|
|
47
|
-
|
|
48
|
-
# Example
|
|
49
|
-
|
|
50
|
-
```ts
|
|
51
|
-
<template>
|
|
52
|
-
<!-- 一个模型 -->
|
|
53
|
-
<!-- :model-buffer 和 :file-path 选一个使用即可-->
|
|
54
|
-
<!-- :model-buffer 是直接传入模型buffer数据-->
|
|
55
|
-
<!-- :file-path 是传入文件下载路径-->
|
|
56
|
-
<BIMXViewer
|
|
57
|
-
v-if="initialzed"
|
|
58
|
-
:load-meta="true"
|
|
59
|
-
:file-path="filePath"
|
|
60
|
-
:nav-cube-size="120"
|
|
61
|
-
:background-color="'#d0d0d0'"
|
|
62
|
-
@emit-handler="EmitHandler" />
|
|
63
|
-
|
|
64
|
-
<!-- 集成模型 -->
|
|
65
|
-
<!-- 请使用-->
|
|
66
|
-
<!--:file-paths="filePaths"-->
|
|
67
|
-
<!--:multi-model="true"-->
|
|
68
|
-
</template>
|
|
69
|
-
|
|
70
|
-
<script lang="ts" setup>
|
|
71
|
-
import { onMounted, ref } from "vue";
|
|
72
|
-
import { BIMXViewer } from "@xtctwins/tctwins-bimx-engine";
|
|
73
|
-
import type { EventContent } from "@xtctwins/tctwins-bimx-engine";
|
|
74
|
-
import "@xtctwins/tctwins-bimx-engine/dist/style.css";
|
|
75
|
-
|
|
76
|
-
const initialzed = ref(false);
|
|
77
|
-
const filePath = ref(`https://tctwins-oss-test.oss-cn-beijing.aliyuncs.com/test/1公寓幕墙.xtc`);
|
|
78
|
-
const filePaths = [
|
|
79
|
-
"https://tctwins-oss-test.oss-cn-beijing.aliyuncs.com/tests/models/multiModel/model2/20250205170745913287.xtc",
|
|
80
|
-
"https://tctwins-oss-test.oss-cn-beijing.aliyuncs.com/tests/models/multiModel/model2/20250205170736552499.xtc",
|
|
81
|
-
"https://tctwins-oss-test.oss-cn-beijing.aliyuncs.com/tests/models/multiModel/model2/20250205170731500203.xtc"
|
|
82
|
-
];
|
|
83
|
-
const modelBuffer = ref<ArrayBuffer>();
|
|
84
|
-
|
|
85
|
-
onMounted(() => {
|
|
86
|
-
//如果选择直接传入模型modelBuffer,请在获取到buffer后再初始化BIMXViewer
|
|
87
|
-
// getModel(() => {
|
|
88
|
-
// initialzed.value = true;
|
|
89
|
-
// });
|
|
90
|
-
|
|
91
|
-
//如果使用filePath或者filePaths则直接初始化BIMXViewer即可
|
|
92
|
-
initialzed.value = true;
|
|
93
|
-
});
|
|
94
|
-
|
|
95
|
-
//监听引擎传出的事件
|
|
96
|
-
const EmitHandler = (content: EventContent) => {
|
|
97
|
-
console.log(content);
|
|
98
|
-
};
|
|
99
|
-
|
|
100
|
-
//xtc模型数据
|
|
101
|
-
const getModel = (callback: () => void) => {
|
|
102
|
-
// 自行填写获取模型文件的内容
|
|
103
|
-
// ...
|
|
104
|
-
// modelBuffer.value = ...
|
|
105
|
-
callback();
|
|
106
|
-
};
|
|
107
|
-
</script>
|
|
108
|
-
|
|
109
|
-
<style>
|
|
110
|
-
#app {
|
|
111
|
-
position: absolute;
|
|
112
|
-
left: 0;
|
|
113
|
-
right: 0;
|
|
114
|
-
top: 0;
|
|
115
|
-
bottom: 0;
|
|
116
|
-
width: 100%;
|
|
117
|
-
height: 100%;
|
|
118
|
-
}
|
|
119
|
-
</style>
|
|
120
|
-
|
|
121
|
-
```
|
|
122
|
-
|
|
123
|
-
## 其他参数解释
|
|
124
|
-
|
|
125
|
-
### 基础设置
|
|
126
|
-
|
|
127
|
-
是否载入构件属性信息(xts文件),
|
|
128
|
-
如果要载入,在模型xtc文件相同路径下必须有同名xts文件
|
|
129
|
-
|
|
130
|
-
```ssh
|
|
131
|
-
:load-meta="true"
|
|
132
|
-
```
|
|
133
|
-
|
|
134
|
-
是否显示导航盒
|
|
135
|
-
|
|
136
|
-
```ssh
|
|
137
|
-
:showNavCube="true"
|
|
138
|
-
```
|
|
139
|
-
|
|
140
|
-
导航盒尺寸
|
|
141
|
-
|
|
142
|
-
```ssh
|
|
143
|
-
:nav-cube-size="120"
|
|
144
|
-
```
|
|
145
|
-
|
|
146
|
-
背景颜色
|
|
147
|
-
|
|
148
|
-
```ssh
|
|
149
|
-
:background-color="#d0d0d0"
|
|
150
|
-
```
|
|
151
|
-
|
|
152
|
-
### 功能
|
|
153
|
-
|
|
154
|
-
添加需要的即可
|
|
155
|
-
|
|
156
|
-
```ssh
|
|
157
|
-
inspector
|
|
158
|
-
```
|
|
159
|
-
|
|
160
|
-
inspector - 构建属性面板开启 (需要开启loadMeta)
|
|
161
|
-
|
|
162
|
-
```ssh
|
|
163
|
-
reseta
|
|
164
|
-
```
|
|
165
|
-
|
|
166
|
-
reseta - 重置模型视角
|
|
167
|
-
|
|
168
|
-
## 事件
|
|
169
|
-
|
|
170
|
-
```ssh
|
|
171
|
-
//监听引擎传出的事件
|
|
172
|
-
const EmitHandler = (content: EventContent) => {
|
|
173
|
-
console.log(content);
|
|
174
|
-
};
|
|
175
|
-
```
|
|
176
|
-
|
|
177
|
-
```ts
|
|
178
|
-
//事件内容
|
|
179
|
-
type EventContent = {
|
|
180
|
-
isTool: boolean;
|
|
181
|
-
event_target: ComponentName | "BimXViewer" | "ToolBar";
|
|
182
|
-
event_name: string;
|
|
183
|
-
content: {};
|
|
184
|
-
};
|
|
185
|
-
```
|
|
186
|
-
|
|
187
|
-
事件内容包括:
|
|
188
|
-
|
|
189
|
-
```ssh
|
|
190
|
-
"pickedEntity" - 点击构件
|
|
191
|
-
"pickedNothing" - 点击空白处
|
|
192
|
-
...
|
|
193
|
-
```
|
|
1
|
+
## @xtctwins/tctwins-bimx-engine
|
|
2
|
+
|
|
3
|
+
# xtc 三维文件查看器
|
|
4
|
+
|
|
5
|
+
## 安装相关依赖
|
|
6
|
+
|
|
7
|
+
## UI element-plus
|
|
8
|
+
|
|
9
|
+
<https://www.npmjs.com/package/element-plus>
|
|
10
|
+
|
|
11
|
+
```ssh
|
|
12
|
+
npm i element-plus
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
## 事件总线 mitt
|
|
16
|
+
|
|
17
|
+
<https://www.npmjs.com/package/mitt>
|
|
18
|
+
|
|
19
|
+
```ssh
|
|
20
|
+
npm i mitt
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
## 状态管理 pinia
|
|
24
|
+
|
|
25
|
+
<https://www.npmjs.com/package/pinia>
|
|
26
|
+
|
|
27
|
+
```ssh
|
|
28
|
+
npm i pinia
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
## 文件获取 ali-oss
|
|
32
|
+
|
|
33
|
+
<https://www.npmjs.com/package/ali-oss>
|
|
34
|
+
|
|
35
|
+
```ssh
|
|
36
|
+
npm i ali-oss
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
# 安装依赖
|
|
40
|
+
|
|
41
|
+
```ssh
|
|
42
|
+
// 安装依赖
|
|
43
|
+
npm i @xtctwins/tctwins-bimx-engine
|
|
44
|
+
// 引入样式
|
|
45
|
+
import "@xtctwins/tctwins-bimx-engine/dist/style.css";
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
# Example
|
|
49
|
+
|
|
50
|
+
```ts
|
|
51
|
+
<template>
|
|
52
|
+
<!-- 一个模型 -->
|
|
53
|
+
<!-- :model-buffer 和 :file-path 选一个使用即可-->
|
|
54
|
+
<!-- :model-buffer 是直接传入模型buffer数据-->
|
|
55
|
+
<!-- :file-path 是传入文件下载路径-->
|
|
56
|
+
<BIMXViewer
|
|
57
|
+
v-if="initialzed"
|
|
58
|
+
:load-meta="true"
|
|
59
|
+
:file-path="filePath"
|
|
60
|
+
:nav-cube-size="120"
|
|
61
|
+
:background-color="'#d0d0d0'"
|
|
62
|
+
@emit-handler="EmitHandler" />
|
|
63
|
+
|
|
64
|
+
<!-- 集成模型 -->
|
|
65
|
+
<!-- 请使用-->
|
|
66
|
+
<!--:file-paths="filePaths"-->
|
|
67
|
+
<!--:multi-model="true"-->
|
|
68
|
+
</template>
|
|
69
|
+
|
|
70
|
+
<script lang="ts" setup>
|
|
71
|
+
import { onMounted, ref } from "vue";
|
|
72
|
+
import { BIMXViewer } from "@xtctwins/tctwins-bimx-engine";
|
|
73
|
+
import type { EventContent } from "@xtctwins/tctwins-bimx-engine";
|
|
74
|
+
import "@xtctwins/tctwins-bimx-engine/dist/style.css";
|
|
75
|
+
|
|
76
|
+
const initialzed = ref(false);
|
|
77
|
+
const filePath = ref(`https://tctwins-oss-test.oss-cn-beijing.aliyuncs.com/test/1公寓幕墙.xtc`);
|
|
78
|
+
const filePaths = [
|
|
79
|
+
"https://tctwins-oss-test.oss-cn-beijing.aliyuncs.com/tests/models/multiModel/model2/20250205170745913287.xtc",
|
|
80
|
+
"https://tctwins-oss-test.oss-cn-beijing.aliyuncs.com/tests/models/multiModel/model2/20250205170736552499.xtc",
|
|
81
|
+
"https://tctwins-oss-test.oss-cn-beijing.aliyuncs.com/tests/models/multiModel/model2/20250205170731500203.xtc"
|
|
82
|
+
];
|
|
83
|
+
const modelBuffer = ref<ArrayBuffer>();
|
|
84
|
+
|
|
85
|
+
onMounted(() => {
|
|
86
|
+
//如果选择直接传入模型modelBuffer,请在获取到buffer后再初始化BIMXViewer
|
|
87
|
+
// getModel(() => {
|
|
88
|
+
// initialzed.value = true;
|
|
89
|
+
// });
|
|
90
|
+
|
|
91
|
+
//如果使用filePath或者filePaths则直接初始化BIMXViewer即可
|
|
92
|
+
initialzed.value = true;
|
|
93
|
+
});
|
|
94
|
+
|
|
95
|
+
//监听引擎传出的事件
|
|
96
|
+
const EmitHandler = (content: EventContent) => {
|
|
97
|
+
console.log(content);
|
|
98
|
+
};
|
|
99
|
+
|
|
100
|
+
//xtc模型数据
|
|
101
|
+
const getModel = (callback: () => void) => {
|
|
102
|
+
// 自行填写获取模型文件的内容
|
|
103
|
+
// ...
|
|
104
|
+
// modelBuffer.value = ...
|
|
105
|
+
callback();
|
|
106
|
+
};
|
|
107
|
+
</script>
|
|
108
|
+
|
|
109
|
+
<style>
|
|
110
|
+
#app {
|
|
111
|
+
position: absolute;
|
|
112
|
+
left: 0;
|
|
113
|
+
right: 0;
|
|
114
|
+
top: 0;
|
|
115
|
+
bottom: 0;
|
|
116
|
+
width: 100%;
|
|
117
|
+
height: 100%;
|
|
118
|
+
}
|
|
119
|
+
</style>
|
|
120
|
+
|
|
121
|
+
```
|
|
122
|
+
|
|
123
|
+
## 其他参数解释
|
|
124
|
+
|
|
125
|
+
### 基础设置
|
|
126
|
+
|
|
127
|
+
是否载入构件属性信息(xts文件),
|
|
128
|
+
如果要载入,在模型xtc文件相同路径下必须有同名xts文件
|
|
129
|
+
|
|
130
|
+
```ssh
|
|
131
|
+
:load-meta="true"
|
|
132
|
+
```
|
|
133
|
+
|
|
134
|
+
是否显示导航盒
|
|
135
|
+
|
|
136
|
+
```ssh
|
|
137
|
+
:showNavCube="true"
|
|
138
|
+
```
|
|
139
|
+
|
|
140
|
+
导航盒尺寸
|
|
141
|
+
|
|
142
|
+
```ssh
|
|
143
|
+
:nav-cube-size="120"
|
|
144
|
+
```
|
|
145
|
+
|
|
146
|
+
背景颜色
|
|
147
|
+
|
|
148
|
+
```ssh
|
|
149
|
+
:background-color="#d0d0d0"
|
|
150
|
+
```
|
|
151
|
+
|
|
152
|
+
### 功能
|
|
153
|
+
|
|
154
|
+
添加需要的即可
|
|
155
|
+
|
|
156
|
+
```ssh
|
|
157
|
+
inspector
|
|
158
|
+
```
|
|
159
|
+
|
|
160
|
+
inspector - 构建属性面板开启 (需要开启loadMeta)
|
|
161
|
+
|
|
162
|
+
```ssh
|
|
163
|
+
reseta
|
|
164
|
+
```
|
|
165
|
+
|
|
166
|
+
reseta - 重置模型视角
|
|
167
|
+
|
|
168
|
+
## 事件
|
|
169
|
+
|
|
170
|
+
```ssh
|
|
171
|
+
//监听引擎传出的事件
|
|
172
|
+
const EmitHandler = (content: EventContent) => {
|
|
173
|
+
console.log(content);
|
|
174
|
+
};
|
|
175
|
+
```
|
|
176
|
+
|
|
177
|
+
```ts
|
|
178
|
+
//事件内容
|
|
179
|
+
type EventContent = {
|
|
180
|
+
isTool: boolean;
|
|
181
|
+
event_target: ComponentName | "BimXViewer" | "ToolBar";
|
|
182
|
+
event_name: string;
|
|
183
|
+
content: {};
|
|
184
|
+
};
|
|
185
|
+
```
|
|
186
|
+
|
|
187
|
+
事件内容包括:
|
|
188
|
+
|
|
189
|
+
```ssh
|
|
190
|
+
"pickedEntity" - 点击构件
|
|
191
|
+
"pickedNothing" - 点击空白处
|
|
192
|
+
...
|
|
193
|
+
```
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { _ as X } from "./alert-
|
|
2
|
-
import { defineComponent as D, ref as
|
|
3
|
-
import {
|
|
4
|
-
import { A as
|
|
1
|
+
import { _ as X } from "./alert-3HKRgQM3.mjs";
|
|
2
|
+
import { defineComponent as D, ref as b, watch as H, onMounted as O, onBeforeUnmount as q, createElementBlock as i, openBlock as a, withDirectives as R, unref as n, createCommentVNode as p, createElementVNode as r, normalizeClass as f, Fragment as B, renderList as C, toDisplayString as U, createVNode as z, vShow as F } from "vue";
|
|
3
|
+
import { A as j, B as t, C as v, O as l, H as G } from "./index-CSr90X56.mjs";
|
|
4
|
+
import { A as c } from "./const-1h5SNeT6.mjs";
|
|
5
5
|
const J = { class: "annotation_component" }, K = {
|
|
6
6
|
key: 0,
|
|
7
7
|
id: "annotation_toolbar",
|
|
@@ -15,7 +15,7 @@ const J = { class: "annotation_component" }, K = {
|
|
|
15
15
|
}, oe = {
|
|
16
16
|
key: 1,
|
|
17
17
|
class: "mobile_annotation_toolbar"
|
|
18
|
-
}, te = { class: "anno_toolList" }, ie = { class: "label-list" }, ae = ["onClick"], se = { class: "item-img" }, re = ["src"],
|
|
18
|
+
}, te = { class: "anno_toolList" }, ie = { class: "label-list" }, ae = ["onClick"], se = { class: "item-img" }, re = ["src"], le = { class: "item-name" }, ce = /* @__PURE__ */ D({
|
|
19
19
|
__name: "AnnotationTool",
|
|
20
20
|
props: ["componentId"],
|
|
21
21
|
emits: ["uploadImage", "clickAnnotation", "emitHandler"],
|
|
@@ -24,23 +24,23 @@ const J = { class: "annotation_component" }, K = {
|
|
|
24
24
|
P("emitHandler", e);
|
|
25
25
|
};
|
|
26
26
|
let T;
|
|
27
|
-
const A =
|
|
27
|
+
const A = b(!0), s = b("");
|
|
28
28
|
let m;
|
|
29
|
-
const S =
|
|
30
|
-
|
|
29
|
+
const S = b(), h = $;
|
|
30
|
+
H(
|
|
31
31
|
() => w.isToolActive(h.componentId),
|
|
32
32
|
(e) => {
|
|
33
33
|
e || (s.value = "");
|
|
34
34
|
}
|
|
35
|
-
),
|
|
35
|
+
), O(() => {
|
|
36
36
|
S.value = t("annoLimit"), w.setReadyById(h.componentId);
|
|
37
37
|
});
|
|
38
38
|
const M = {
|
|
39
|
-
image: `${
|
|
40
|
-
file: `${
|
|
41
|
-
record: `${
|
|
42
|
-
text: `${
|
|
43
|
-
video: `${
|
|
39
|
+
image: `${l}/BIMX_Website/main/mainView/function_icon/annotation_icons/image_active.png`,
|
|
40
|
+
file: `${l}/BIMX_Website/main/mainView/function_icon/annotation_icons/file_active.png`,
|
|
41
|
+
record: `${l}/BIMX_Website/main/mainView/function_icon/annotation_icons/record_active.png`,
|
|
42
|
+
text: `${l}/BIMX_Website/main/mainView/function_icon/annotation_icons/text_active.png`,
|
|
43
|
+
video: `${l}/BIMX_Website/main/mainView/function_icon/annotation_icons/video_active.png`
|
|
44
44
|
}, k = () => {
|
|
45
45
|
T = window.bimViewer.annotationTool, T.setTypeImage(M), m = window.bimViewer.eventTrigger, m.on("createAnnotation", (e) => {
|
|
46
46
|
d({
|
|
@@ -81,15 +81,15 @@ const J = { class: "annotation_component" }, K = {
|
|
|
81
81
|
});
|
|
82
82
|
const x = (e) => {
|
|
83
83
|
if (e === "image")
|
|
84
|
-
return
|
|
84
|
+
return c[0];
|
|
85
85
|
if (e === "record")
|
|
86
|
-
return
|
|
86
|
+
return c[1];
|
|
87
87
|
if (e === "video")
|
|
88
|
-
return
|
|
88
|
+
return c[2];
|
|
89
89
|
if (e === "file")
|
|
90
|
-
return
|
|
90
|
+
return c[3];
|
|
91
91
|
if (e === "text")
|
|
92
|
-
return
|
|
92
|
+
return c[4];
|
|
93
93
|
}, g = (e) => {
|
|
94
94
|
t("editPrivilege") != 1 && (s.value === e.code ? (s.value = "", V(e, !1)) : (s.value = e.code, V(e, !0)));
|
|
95
95
|
}, L = (e) => {
|
|
@@ -109,11 +109,11 @@ const J = { class: "annotation_component" }, K = {
|
|
|
109
109
|
};
|
|
110
110
|
return (e, _) => {
|
|
111
111
|
const E = X;
|
|
112
|
-
return
|
|
113
|
-
n(t)("isMobile") ? (
|
|
112
|
+
return a(), i("div", J, [
|
|
113
|
+
n(t)("isMobile") ? (a(), i("div", oe, [
|
|
114
114
|
r("div", te, [
|
|
115
115
|
r("div", ie, [
|
|
116
|
-
(
|
|
116
|
+
(a(!0), i(B, null, C(n(c), (o, u) => (a(), i("div", {
|
|
117
117
|
key: u,
|
|
118
118
|
class: f(["label-item", { "label-item-active": s.value === o.code && n(t)("editPrivilege") == 0, noPermission: n(t)("editPrivilege") == 1 }]),
|
|
119
119
|
onClick: (W) => g(o)
|
|
@@ -121,37 +121,37 @@ const J = { class: "annotation_component" }, K = {
|
|
|
121
121
|
r("div", se, [
|
|
122
122
|
r("img", {
|
|
123
123
|
class: "label-item-img",
|
|
124
|
-
src: n(
|
|
124
|
+
src: n(l) + `/bim-viewer/annotation/new-icons/bimkk-mobile-anno-${s.value === o.code && n(t)("editPrivilege") == 0 ? o.imgActive : o.img}.svg`,
|
|
125
125
|
alt: ""
|
|
126
126
|
}, null, 8, re),
|
|
127
|
-
r("div",
|
|
127
|
+
r("div", le, U(o.name), 1)
|
|
128
128
|
])
|
|
129
129
|
], 10, ae))), 128))
|
|
130
130
|
])
|
|
131
131
|
])
|
|
132
|
-
])) : (
|
|
133
|
-
n(t)("annotationPos").pos.includes("top") ? (
|
|
132
|
+
])) : (a(), i("div", K, [
|
|
133
|
+
n(t)("annotationPos").pos.includes("top") ? (a(), i("div", Q)) : p("", !0),
|
|
134
134
|
r("div", {
|
|
135
135
|
class: f(["annotation_toolbar_wrapper", { annotation_toolbar_wrapper_disable: n(t)("editPrivilege") == 1 }])
|
|
136
136
|
}, [
|
|
137
137
|
r("div", Y, [
|
|
138
|
-
(
|
|
138
|
+
(a(!0), i(B, null, C(n(c), (o, u) => (a(), i("button", {
|
|
139
139
|
id: `annotation_tool_btn_${u}`,
|
|
140
140
|
key: u,
|
|
141
141
|
class: f(["annotation_tool_btn", { active: s.value === o.code }]),
|
|
142
142
|
disabled: n(t)("editPrivilege") == 1,
|
|
143
143
|
onClick: (W) => g(o)
|
|
144
144
|
}, [
|
|
145
|
-
|
|
145
|
+
p("", !0),
|
|
146
146
|
r("img", {
|
|
147
|
-
src: `${n(
|
|
147
|
+
src: `${n(l)}/bim-viewer/action-bars/panno-${s.value !== o.code ? o.img : o.imgActive}.svg`
|
|
148
148
|
}, null, 8, ee)
|
|
149
149
|
], 10, Z))), 128))
|
|
150
150
|
])
|
|
151
151
|
], 2),
|
|
152
|
-
n(t)("annotationPos").pos.includes("bottom") ? (
|
|
152
|
+
n(t)("annotationPos").pos.includes("bottom") ? (a(), i("div", ne)) : p("", !0)
|
|
153
153
|
])),
|
|
154
|
-
|
|
154
|
+
R(z(E, {
|
|
155
155
|
"click-handle": () => {
|
|
156
156
|
A.value = !1;
|
|
157
157
|
}
|
|
@@ -161,7 +161,7 @@ const J = { class: "annotation_component" }, K = {
|
|
|
161
161
|
]);
|
|
162
162
|
};
|
|
163
163
|
}
|
|
164
|
-
}), ve = /* @__PURE__ */ G(
|
|
164
|
+
}), ve = /* @__PURE__ */ G(ce, [["__scopeId", "data-v-59b9d05d"]]);
|
|
165
165
|
export {
|
|
166
166
|
ve as default
|
|
167
167
|
};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ar as e, K as t, as as o, au as i, V as l, ax as r, at as I, av as n, aw as w } from "./index-CSr90X56.mjs";
|
|
2
2
|
export {
|
|
3
3
|
e as BIMXViewer,
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
t as BIMX_CONFIGS,
|
|
5
|
+
o as InitialViewer,
|
|
6
6
|
i as InitializeConfigs,
|
|
7
7
|
l as ViewerManager,
|
|
8
8
|
r as setAllToolClose,
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
I as setConfigs,
|
|
10
|
+
n as setToolStatusById,
|
|
11
|
+
w as setToolStatusBykey
|
|
12
12
|
};
|