chbim-plugins 0.0.151 → 0.0.153
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 +273 -0
- package/chbim-plugins.js +13 -45
- package/chbim-plugins.umd.cjs +2 -2
- package/package.json +1 -1
package/README.md
ADDED
|
@@ -0,0 +1,273 @@
|
|
|
1
|
+
<br />
|
|
2
|
+
|
|
3
|
+
<p align="center">
|
|
4
|
+
<a href="#">
|
|
5
|
+
<img src="https://chbim.ccshcc.cn/baseResources//Logo/Logo.png" alt="Logo" height="60">
|
|
6
|
+
</a>
|
|
7
|
+
<h3 align="center">基于<font color="#4bbbef"> CHBIM云平台 </font>服务的插件</h3>
|
|
8
|
+
|
|
9
|
+
</p>
|
|
10
|
+
|
|
11
|
+
## 使用指南
|
|
12
|
+
|
|
13
|
+
1. 此插件和 CHBIM 平台强绑定
|
|
14
|
+
2. node 版本>=16.14.2
|
|
15
|
+
|
|
16
|
+
#### 安装
|
|
17
|
+
|
|
18
|
+
```sh
|
|
19
|
+
npm i chbim-plugins
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
#### 引入
|
|
23
|
+
|
|
24
|
+
```sh
|
|
25
|
+
import "chbim-plugins/style.css";
|
|
26
|
+
import { ChbimPlugins } from "chbim-plugins";
|
|
27
|
+
......
|
|
28
|
+
......
|
|
29
|
+
......
|
|
30
|
+
app.use(ChbimPlugins);
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
#### 使用
|
|
34
|
+
|
|
35
|
+
在需要使用的.vue 文件里面引入
|
|
36
|
+
|
|
37
|
+
```sh
|
|
38
|
+
import {
|
|
39
|
+
BimTerrainProvider, // 地形
|
|
40
|
+
BimElevationImage, // 瓦片
|
|
41
|
+
BimModel, // 模型
|
|
42
|
+
BimVector, // 矢量
|
|
43
|
+
BimEntity, // 注记
|
|
44
|
+
PanoramicView, // 全景图
|
|
45
|
+
......
|
|
46
|
+
} from "chbim-plugins";
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
添加模型为例:
|
|
50
|
+
|
|
51
|
+
```
|
|
52
|
+
/* data 为模型树的扁平化json */
|
|
53
|
+
window.bimModel = new BimModel(data);
|
|
54
|
+
|
|
55
|
+
/* 给地图添加模型
|
|
56
|
+
** id => 模型id
|
|
57
|
+
** fn => 自定义注册事件
|
|
58
|
+
*/
|
|
59
|
+
window.bimModel.add(id,fn).then((e) => {
|
|
60
|
+
if (e.type == "error") {
|
|
61
|
+
console.error('失败')
|
|
62
|
+
}
|
|
63
|
+
}).catch((e) => {
|
|
64
|
+
console.error('失败')
|
|
65
|
+
})
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
### API
|
|
69
|
+
|
|
70
|
+
#### window.bimElevationImage `影像`
|
|
71
|
+
|
|
72
|
+
##### add( id || xyzParameter,isGisTkone,fn)添加影像
|
|
73
|
+
|
|
74
|
+
| 类参数名 | 类型 | 默认参数 | 描述 |
|
|
75
|
+
| ------------ | ------- | -------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
76
|
+
| id | String | “ ” | 需要添加的影像 id |
|
|
77
|
+
| xyzParameter | Object | { } | 三方影像数据 `{imageXyzId:影像id,url:影像路由,zIndex:影像层级,minimumLevel:服务支持的最小层级,maximumLevel:服务支持的最大层级,chinaCRS:标识瓦片的国内坐标系(用于自动纠偏或加偏)}` chinaCRS 默认 GCJ02 |
|
|
78
|
+
| isGisTkone | Boolean | true | 是否开启 Tkone 验证,三方影像不需要开启验证 |
|
|
79
|
+
| fn | Object | { } | 例如:绑定 click 事件 `{ click: (e) => { console.log(e) } }` |
|
|
80
|
+
|
|
81
|
+
##### remove( id )添加影像
|
|
82
|
+
|
|
83
|
+
| 类参数名 | 类型 | 默认参数 | 描述 |
|
|
84
|
+
| -------- | ------ | -------- | ----------------- |
|
|
85
|
+
| id | String | “ ” | 需要移除的影像 id |
|
|
86
|
+
|
|
87
|
+
##### query( id )查询影像的数据
|
|
88
|
+
|
|
89
|
+
| 类参数名 | 类型 | 默认参数 | 描述 |
|
|
90
|
+
| -------- | ------ | -------- | ------------------------------- |
|
|
91
|
+
| id | String | “ ” | 需要查询的模型 id,返回模型数据 |
|
|
92
|
+
|
|
93
|
+
<br /><br />
|
|
94
|
+
|
|
95
|
+
#### window.bimModel `模型`
|
|
96
|
+
|
|
97
|
+
##### add( id,fn,list )添加模型
|
|
98
|
+
|
|
99
|
+
| 类参数名 | 类型 | 默认参数 | 描述 |
|
|
100
|
+
| -------- | ------ | -------- | ------------------------------------------------------------ |
|
|
101
|
+
| id | String | “ ” | 需要添加的模型 id |
|
|
102
|
+
| fn | Object | { } | 例如:绑定 click 事件 `{ click: (e) => { console.log(e) } }` |
|
|
103
|
+
| list | Object | { } | 字段目前用于处理分屏数据 `{ isClone:true }` |
|
|
104
|
+
|
|
105
|
+
##### remove( id,list )移除模型
|
|
106
|
+
|
|
107
|
+
| 类参数名 | 类型 | 默认参数 | 描述 |
|
|
108
|
+
| -------- | ------ | -------- | ------------------------------------------- |
|
|
109
|
+
| id | String | “ ” | 需要移除的模型 id |
|
|
110
|
+
| list | Object | { } | 字段目前用于处理分屏数据 `{ isClone:true }` |
|
|
111
|
+
|
|
112
|
+
##### selected( id )选中模型
|
|
113
|
+
|
|
114
|
+
| 类参数名 | 类型 | 默认参数 | 描述 |
|
|
115
|
+
| -------- | ------- | -------- | ------------------------------------------------------------ |
|
|
116
|
+
| id | String | “ ” | 需要选中的模型 id |
|
|
117
|
+
| fn | Object | { } | 例如:绑定 click 事件 `{ click: (e) => { console.log(e) } }` |
|
|
118
|
+
| list | Object | { } | 字段目前用于处理分屏数据 `{ isClone:true }` |
|
|
119
|
+
| flyTo | Boolean | true | 默认会自动飞行,模型选中变红,设置`false`不会飞行 |
|
|
120
|
+
|
|
121
|
+
##### query( id )查询模型的数据
|
|
122
|
+
|
|
123
|
+
| 类参数名 | 类型 | 默认参数 | 描述 |
|
|
124
|
+
| -------- | ------ | -------- | ------------------------------- |
|
|
125
|
+
| id | String | “ ” | 需要查询的模型 id,返回模型数据 |
|
|
126
|
+
|
|
127
|
+
##### queryModel( id )查询 map 上模型的实体
|
|
128
|
+
|
|
129
|
+
| 类参数名 | 类型 | 默认参数 | 描述 |
|
|
130
|
+
| -------- | ------ | -------- | ------------------------------- |
|
|
131
|
+
| id | String | “ ” | 需要查询的模型 id,返回模型实体 |
|
|
132
|
+
|
|
133
|
+
##### editColor( id,newColor,list )模型染色
|
|
134
|
+
|
|
135
|
+
| 类参数名 | 类型 | 默认参数 | 描述 |
|
|
136
|
+
| -------- | ------ | -------- | ------------------------------------------- |
|
|
137
|
+
| id | String | “ ” | 模型 id |
|
|
138
|
+
| newColor | String | “ ” | css 颜色值 |
|
|
139
|
+
| list | Object | { } | 字段目前用于处理分屏数据 `{ isClone:true }` |
|
|
140
|
+
|
|
141
|
+
##### editOpacity( id,opacity)模型染色
|
|
142
|
+
|
|
143
|
+
| 类参数名 | 类型 | 默认参数 | 描述 |
|
|
144
|
+
| -------- | ------ | -------- | ------------ |
|
|
145
|
+
| id | String | “ ” | 模型 id |
|
|
146
|
+
| opacity | String | “ ” | 透明度值 0~1 |
|
|
147
|
+
|
|
148
|
+
<br /><br />
|
|
149
|
+
|
|
150
|
+
#### window.bimVector `矢量`
|
|
151
|
+
|
|
152
|
+
##### add( id,list )添加矢量
|
|
153
|
+
|
|
154
|
+
| 类参数名 | 类型 | 默认参数 | 描述 |
|
|
155
|
+
| -------- | ------ | -------- | ------------------------------------------- |
|
|
156
|
+
| id | Object | “ ” | 需要添加的矢量 id |
|
|
157
|
+
| list | Object | { } | 字段目前用于处理分屏数据 `{ isClone:true }` |
|
|
158
|
+
|
|
159
|
+
##### remove( id,list )移除矢量
|
|
160
|
+
|
|
161
|
+
| 类参数名 | 类型 | 默认参数 | 描述 |
|
|
162
|
+
| -------- | ------ | -------- | ------------------------------------------- |
|
|
163
|
+
| id | String | “ ” | 需要移除的矢量 id |
|
|
164
|
+
| list | Object | { } | 字段目前用于处理分屏数据 `{ isClone:true }` |
|
|
165
|
+
|
|
166
|
+
##### selected( id )添加矢量
|
|
167
|
+
|
|
168
|
+
| 类参数名 | 类型 | 默认参数 | 描述 |
|
|
169
|
+
| -------- | ------ | -------- | ------------------------------------------ |
|
|
170
|
+
| id | Object | “ ” | 需要选中的矢量 id ,选中会飞行到选中的矢量 |
|
|
171
|
+
|
|
172
|
+
##### query( id )查询矢量数据
|
|
173
|
+
|
|
174
|
+
| 类参数名 | 类型 | 默认参数 | 描述 |
|
|
175
|
+
| -------- | ------ | -------- | -------------------------------- |
|
|
176
|
+
| id | Object | “ ” | 需要选中的矢量 id ,返回矢量数据 |
|
|
177
|
+
|
|
178
|
+
##### queryVector( id )查询矢量实体
|
|
179
|
+
|
|
180
|
+
| 类参数名 | 类型 | 默认参数 | 描述 |
|
|
181
|
+
| -------- | ------ | -------- | -------------------------------- |
|
|
182
|
+
| id | Object | “ ” | 需要选中的矢量 id ,返回矢量实体 |
|
|
183
|
+
|
|
184
|
+
<br /><br />
|
|
185
|
+
|
|
186
|
+
#### window.bimEntity `标绘`
|
|
187
|
+
|
|
188
|
+
##### add( id,entityId,list )添加标绘
|
|
189
|
+
|
|
190
|
+
| 类参数名 | 类型 | 默认参数 | 描述 |
|
|
191
|
+
| -------- | ------ | -------- | ----------------------------------------------- |
|
|
192
|
+
| id | Object | “ ” | 需要添加的标绘 id |
|
|
193
|
+
| entityId | String | null | 临时添加的标绘是不带 id 的,需要自定义的一个 id |
|
|
194
|
+
| list | Object | { } | 字段目前用于处理分屏数据 `{ isClone:true }` |
|
|
195
|
+
|
|
196
|
+
##### remove( id,list )移除标绘
|
|
197
|
+
|
|
198
|
+
| 类参数名 | 类型 | 默认参数 | 描述 |
|
|
199
|
+
| -------- | ------ | -------- | ------------------------------------------- |
|
|
200
|
+
| id | String | “ ” | 需要移除的标绘 id |
|
|
201
|
+
| list | Object | { } | 字段目前用于处理分屏数据 `{ isClone:true }` |
|
|
202
|
+
|
|
203
|
+
##### query( id )查询标绘数据
|
|
204
|
+
|
|
205
|
+
| 类参数名 | 类型 | 默认参数 | 描述 |
|
|
206
|
+
| -------- | ------ | -------- | -------------------------------- |
|
|
207
|
+
| id | Object | “ ” | 需要选中的矢量 id ,返回矢量数据 |
|
|
208
|
+
|
|
209
|
+
##### queryEntity( id )查询标绘实体
|
|
210
|
+
|
|
211
|
+
| 类参数名 | 类型 | 默认参数 | 描述 |
|
|
212
|
+
| -------- | ------ | -------- | -------------------------------- |
|
|
213
|
+
| id | Object | “ ” | 需要选中的矢量 id ,返回矢量实体 |
|
|
214
|
+
|
|
215
|
+
<br /><br />
|
|
216
|
+
|
|
217
|
+
#### window.bimModify `环境修改`
|
|
218
|
+
|
|
219
|
+
##### evnModifyById( id,list )添加环境修改
|
|
220
|
+
|
|
221
|
+
| 类参数名 | 类型 | 默认参数 | 描述 |
|
|
222
|
+
| -------- | ------ | -------- | ------------------------------------------- |
|
|
223
|
+
| id | Object | “ ” | 需要添加的环境修改的 id |
|
|
224
|
+
| list | Object | { } | 字段目前用于处理分屏数据 `{ isClone:true }` |
|
|
225
|
+
|
|
226
|
+
##### clearEvnModifyById( id,list )移除环境修改
|
|
227
|
+
|
|
228
|
+
| 类参数名 | 类型 | 默认参数 | 描述 |
|
|
229
|
+
| -------- | ------ | -------- | ------------------------------------------- |
|
|
230
|
+
| id | String | “ ” | 需要移除的环境修改 id |
|
|
231
|
+
| list | Object | { } | 字段目前用于处理分屏数据 `{ isClone:true }` |
|
|
232
|
+
|
|
233
|
+
##### clearAllModelModify( list )移除所有对于模型的环境修改
|
|
234
|
+
|
|
235
|
+
| 类参数名 | 类型 | 默认参数 | 描述 |
|
|
236
|
+
| -------- | ------ | -------- | ------------------------------------------- |
|
|
237
|
+
| list | Object | { } | 字段目前用于处理分屏数据 `{ isClone:true }` |
|
|
238
|
+
|
|
239
|
+
##### clearAllTerrainModify( list )移除所有对于地形的环境修改
|
|
240
|
+
|
|
241
|
+
| 类参数名 | 类型 | 默认参数 | 描述 |
|
|
242
|
+
| -------- | ------ | -------- | ------------------------------------------- |
|
|
243
|
+
| list | Object | { } | 字段目前用于处理分屏数据 `{ isClone:true }` |
|
|
244
|
+
|
|
245
|
+
##### clearAllEvnModify()移除所有的环境修改
|
|
246
|
+
|
|
247
|
+
<br /><br />
|
|
248
|
+
|
|
249
|
+
#### window.Bimroaming `漫游`
|
|
250
|
+
|
|
251
|
+
##### init( viewPoints, savePoint, option )初始化漫游
|
|
252
|
+
|
|
253
|
+
| 类参数名 | 类型 | 默认参数 | 描述 |
|
|
254
|
+
| ---------- | -------- | -------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
255
|
+
| viewPoints | Array | [] | 漫游路径的点集,每个点是一个对象{lng: 0, lat: 0, alt: 0} |
|
|
256
|
+
| savePoint | Function | null | 新增点的回调函数 |
|
|
257
|
+
| option | Object | { } | 漫游配置项 followedX:距离视角的距离, followedZ:距离视角垂直高度,smooth:平衡值使漫游转角顺滑, speed:飞行速度 ,Viewovalue:类型 (1:第一人称 2:跟随 3:俯视) |
|
|
258
|
+
|
|
259
|
+
##### startDrawGraphic()添加点
|
|
260
|
+
|
|
261
|
+
##### start()开始漫游
|
|
262
|
+
|
|
263
|
+
##### pause()暂停漫游
|
|
264
|
+
|
|
265
|
+
##### resume()继续漫游
|
|
266
|
+
|
|
267
|
+
##### stop()停止漫游
|
|
268
|
+
|
|
269
|
+
##### remove()移除漫游
|
|
270
|
+
|
|
271
|
+
### 版本控制
|
|
272
|
+
|
|
273
|
+
该项目使用 Git 进行版本管理。
|
package/chbim-plugins.js
CHANGED
|
@@ -20340,9 +20340,9 @@ class v1 {
|
|
|
20340
20340
|
]);
|
|
20341
20341
|
return new Promise((m, g) => {
|
|
20342
20342
|
let _, S, b, I, k, D, F, E, L, T = {
|
|
20343
|
-
enabled: !0
|
|
20344
|
-
|
|
20345
|
-
|
|
20343
|
+
enabled: !0,
|
|
20344
|
+
precise: !1,
|
|
20345
|
+
czm: !1
|
|
20346
20346
|
// maxCanvasSize: 7000,
|
|
20347
20347
|
}, M = { enabled: !0, precise: !1, czm: !1 };
|
|
20348
20348
|
if (typeof a != "object") {
|
|
@@ -20351,12 +20351,12 @@ class v1 {
|
|
|
20351
20351
|
let { id: X, bimModelExcavationDetails: K, bimModel: Z } = N;
|
|
20352
20352
|
_ = X, S = Z.modelType, b = Z.tender, I = Z.releasedDistance, k = Z.modelName, D = Z.isDynamicReleased, F = {
|
|
20353
20353
|
bimModelExcavationDetails: K
|
|
20354
|
-
}, E = N.url, L = Z.modelColor;
|
|
20354
|
+
}, E = N.url, L = Z.modelColor, T.maxCanvasSize = Z.gridResolution || 4080;
|
|
20355
20355
|
} else
|
|
20356
|
-
_ = a.modelId, S = a.modelType, b = a.tender, I = a.releasedDistance, k = a.modelTitle, D = a.permission, F = a.customize, E = a.url, L = a.color;
|
|
20356
|
+
_ = a.modelId, S = a.modelType, b = a.tender, I = a.releasedDistance, k = a.modelTitle, D = a.permission, F = a.customize, E = a.url, L = a.color, T.maxCanvasSize = a.maxCanvasSize || 4080;
|
|
20357
20357
|
let R = 2147483648, C = 16;
|
|
20358
20358
|
if (c) {
|
|
20359
|
-
if (c.color && (L = c.color), c.clip, c.flat && (M.area = c.flat.handleDataList), c.maxCanvasSize, c.cacheSpaceMultiplier) {
|
|
20359
|
+
if (c.color && (L = c.color), c.clip && (T.area = c.clip.handleDataList), c.flat && (M.area = c.flat.handleDataList), c.maxCanvasSize && (T.maxCanvasSize = c.maxCanvasSize || 4080), c.cacheSpaceMultiplier) {
|
|
20360
20360
|
let N = N * c.cacheSpaceMultiplier;
|
|
20361
20361
|
}
|
|
20362
20362
|
c.maximumScreenSpaceError && S == 0 && (C = c.maximumScreenSpaceError);
|
|
@@ -20389,37 +20389,7 @@ class v1 {
|
|
|
20389
20389
|
let K = null;
|
|
20390
20390
|
L && (K = {
|
|
20391
20391
|
color: { conditions: [["true", L]] }
|
|
20392
|
-
}),
|
|
20393
|
-
modelId: _,
|
|
20394
|
-
modelType: S,
|
|
20395
|
-
tender: b,
|
|
20396
|
-
releasedDistance: I,
|
|
20397
|
-
modelTitle: k,
|
|
20398
|
-
permission: D,
|
|
20399
|
-
customize: F,
|
|
20400
|
-
url: encodeURI(E),
|
|
20401
|
-
skipLevelOfDetail: !1,
|
|
20402
|
-
loadSiblings: !0,
|
|
20403
|
-
cullRequestsWhileMoving: !0,
|
|
20404
|
-
cullRequestsWhileMovingMultiplier: 10,
|
|
20405
|
-
preferLeaves: !0,
|
|
20406
|
-
progressiveResolutionHeightFraction: 0.5,
|
|
20407
|
-
dynamicScreenSpaceError: !0,
|
|
20408
|
-
preloadWhenHidden: !1,
|
|
20409
|
-
style: K,
|
|
20410
|
-
clip: T,
|
|
20411
|
-
flat: M,
|
|
20412
|
-
maximumScreenSpaceError: C,
|
|
20413
|
-
cacheBytes: 1073741824,
|
|
20414
|
-
// 1024MB = 1024*1024*1024
|
|
20415
|
-
maximumCacheOverflowBytes: R
|
|
20416
|
-
// 2048MB = 2048*1024*1024
|
|
20417
|
-
// classificationType: Cesium.ClassificationType.TERRAIN,
|
|
20418
|
-
// enableCollision: true,
|
|
20419
|
-
// customShader: new Cesium.CustomShader({
|
|
20420
|
-
// lightingModel: Cesium.LightingModel.UNLIT,
|
|
20421
|
-
// }),
|
|
20422
|
-
}) : this.tilesetLayer = new mars3d.layer.TilesetLayer({
|
|
20392
|
+
}), this.tilesetLayer = new mars3d.layer.TilesetLayer({
|
|
20423
20393
|
modelId: _,
|
|
20424
20394
|
modelType: S,
|
|
20425
20395
|
tender: b,
|
|
@@ -20444,8 +20414,6 @@ class v1 {
|
|
|
20444
20414
|
// 1024MB = 1024*1024*1024
|
|
20445
20415
|
maximumCacheOverflowBytes: R
|
|
20446
20416
|
// 2048MB = 2048*1024*1024
|
|
20447
|
-
// classificationType: Cesium.ClassificationType.CESIUM_3D_TILE,
|
|
20448
|
-
// enableCollision: true,
|
|
20449
20417
|
// customShader: new Cesium.CustomShader({
|
|
20450
20418
|
// lightingModel: Cesium.LightingModel.UNLIT,
|
|
20451
20419
|
// }),
|
|
@@ -31127,7 +31095,7 @@ class O1 {
|
|
|
31127
31095
|
*/
|
|
31128
31096
|
getDataFromFlattenedEvnModifyListById(a) {
|
|
31129
31097
|
const s = this.flattenedEvnModifyData.find((c) => c.id == a);
|
|
31130
|
-
return s
|
|
31098
|
+
return s || null;
|
|
31131
31099
|
}
|
|
31132
31100
|
/**
|
|
31133
31101
|
* 通过modelId从map对象中获取对应模型
|
|
@@ -31312,7 +31280,7 @@ class O1 {
|
|
|
31312
31280
|
for (let g = 0; g < c.bimEnvModifyData.length; g++) {
|
|
31313
31281
|
const _ = this.getPositions(
|
|
31314
31282
|
JSON.parse(c.bimEnvModifyData[g].modifyData).coordinates
|
|
31315
|
-
), S = JSON.parse(c.bimEnvModifyData[g].modifyData).depth, b = c.bimEnvModifyData[g].id
|
|
31283
|
+
), S = JSON.parse(c.bimEnvModifyData[g].modifyData).depth, b = c.bimEnvModifyData[g].id;
|
|
31316
31284
|
u === 0 && m === 0 ? this.modelCutById(f, _, b, s) : u === 0 && m === 1 ? this.modelFlattenById(f, _, S, b, s) : u === 1 && m === 0 ? this.terrainCutById(_, b, s) : u === 1 && m === 1 && this.terrainFlattenById(_, S, b, s);
|
|
31317
31285
|
}
|
|
31318
31286
|
}
|
|
@@ -31332,7 +31300,7 @@ class O1 {
|
|
|
31332
31300
|
for (let g = 0; g < c.bimEnvModifyData.length; g++) {
|
|
31333
31301
|
const _ = this.getPositions(
|
|
31334
31302
|
JSON.parse(c.bimEnvModifyData[g].modifyData).coordinates
|
|
31335
|
-
), S = JSON.parse(c.bimEnvModifyData[g].modifyData).depth, b = c.bimEnvModifyData[g].id
|
|
31303
|
+
), S = JSON.parse(c.bimEnvModifyData[g].modifyData).depth, b = c.bimEnvModifyData[g].id;
|
|
31336
31304
|
u === 0 && m === 0 ? this.modelCutById(f, _, b, s) : u === 0 && m === 1 ? this.modelFlattenById(f, _, S, b, s) : u === 1 && m === 0 ? this.terrainCutById(_, b, s) : u === 1 && m === 1 && this.terrainFlattenById(_, S, b, s);
|
|
31337
31305
|
}
|
|
31338
31306
|
}
|
|
@@ -31350,7 +31318,7 @@ class O1 {
|
|
|
31350
31318
|
bimEnvModify: { embsId: f, dataType: u, modifyType: m }
|
|
31351
31319
|
} = c;
|
|
31352
31320
|
for (let g = 0; g < c.bimEnvModifyData.length; g++) {
|
|
31353
|
-
const _ = c.bimEnvModifyData[g].id
|
|
31321
|
+
const _ = c.bimEnvModifyData[g].id;
|
|
31354
31322
|
u === 0 && m === 0 ? this.clearModelCutById(f, _, s) : u === 0 && m === 1 ? this.clearModelFlattenById(f, _, s) : u === 1 && m === 0 ? this.clearTerrainCutById(_, s) : u === 1 && m === 1 && this.clearTerrainFlattenById(_, s);
|
|
31355
31323
|
}
|
|
31356
31324
|
}
|
|
@@ -31417,7 +31385,7 @@ class O1 {
|
|
|
31417
31385
|
positions: this.getPositions(
|
|
31418
31386
|
JSON.parse(s.bimEnvModifyData[g].modifyData).coordinates
|
|
31419
31387
|
),
|
|
31420
|
-
id: s.bimEnvModifyData[g].id
|
|
31388
|
+
id: s.bimEnvModifyData[g].id
|
|
31421
31389
|
};
|
|
31422
31390
|
m.area.push(S);
|
|
31423
31391
|
}
|
|
@@ -31432,7 +31400,7 @@ class O1 {
|
|
|
31432
31400
|
const _ = this.getPositions(
|
|
31433
31401
|
JSON.parse(s.bimEnvModifyData[g].modifyData).coordinates
|
|
31434
31402
|
), S = {
|
|
31435
|
-
id: s.bimEnvModifyData[g].id
|
|
31403
|
+
id: s.bimEnvModifyData[g].id,
|
|
31436
31404
|
positions: _,
|
|
31437
31405
|
height: JSON.parse(s.bimEnvModifyData[g].modifyData).depth
|
|
31438
31406
|
};
|