gs-bim-air 0.0.3-0.20 → 0.0.3-0.23
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/READMEBETA.md +22 -8
- package/demo//346/250/241/345/236/213/346/225/210/346/236/234//346/267/273/345/212/240/344/270/211/347/273/264/346/226/207/345/255/227.html +62 -0
- package/demo//346/250/241/345/236/213/346/225/210/346/236/234//346/267/273/345/212/240/347/202/271/347/272/277/351/235/242/346/213/211/344/274/270/344/275/223.html +66 -0
- package/docs/README.md +5 -9
- package/docs/classes/AditObjects.md +37 -4
- package/docs/classes/AnimationManager.md +23 -15
- package/docs/classes/BoreholeObjects.md +42 -7
- package/docs/classes/CircleScanEffect.md +5 -3
- package/docs/classes/CircleScanEffectConfig.md +6 -6
- package/docs/classes/ComponentManager.md +2 -0
- package/docs/classes/ComponentSelector.md +13 -1
- package/docs/classes/CuttingOptions.md +28 -0
- package/docs/classes/FanScanEffect.md +5 -3
- package/docs/classes/FanScanEffectConfig.md +8 -8
- package/docs/classes/HeightLimitEffect.md +5 -3
- package/docs/classes/HeightLimitEffectConfig.md +3 -3
- package/docs/classes/HighlightManager.md +14 -6
- package/docs/classes/InvisibleManager.md +16 -4
- package/docs/classes/IsolationManager.md +16 -4
- package/docs/classes/LightModel.md +94 -17
- package/docs/classes/Material.md +14 -6
- package/docs/classes/MaterialManager.md +6 -0
- package/docs/classes/PathEffect.md +11 -5
- package/docs/classes/PathEffectConfig.md +6 -6
- package/docs/classes/SegmentObject.md +7 -1
- package/docs/classes/SelectionManager.md +24 -0
- package/docs/classes/SkyboxEffect.md +5 -1
- package/docs/classes/SkyboxEffectConfig.md +1 -1
- package/docs/classes/SnowEffect.md +3 -1
- package/docs/classes/SnowEffectConfig.md +1 -1
- package/docs/classes/StructureTreeManager.md +4 -0
- package/docs/classes/ViewPointPanel.md +19 -87
- package/docs/classes/Viewer.md +96 -22
- package/docs/classes/WallEffect.md +26 -6
- package/docs/classes/WallEffectConfig.md +5 -5
- package/docs/classes/WallScanEffect.md +5 -3
- package/docs/classes/WallScanEffectConfig.md +7 -7
- package/docs/classes/WaterEffect.md +5 -1
- package/docs/classes/WaterEffectConfig.md +1 -1
- package/docs/enums/CuttingCreateType.md +10 -0
- package/docs/interfaces/Options.md +4 -11
- package/lib/BimAir.common-report.html +2 -2
- package/lib/BimAir.common.js +133 -82
- package/lib/BimAir.css +1079 -1607
- package/lib/BimAir.umd-report.html +2 -2
- package/lib/BimAir.umd.js +133 -82
- package/lib/BimAir.umd.min-report.html +2 -2
- package/lib/BimAir.umd.min.js +133 -82
- package/package.json +1 -1
- package/types/index.d.ts +0 -1
- package/types/index.d.ts.map +0 -1
package/READMEBETA.md
CHANGED
|
@@ -200,12 +200,6 @@ this.viewer.addAdits("钻孔组模型", data).then(aditObjects => {
|
|
|
200
200
|
### 0.0.30.18
|
|
201
201
|
|
|
202
202
|
- 修复钻孔和平硐方向相反问题
|
|
203
|
-
- 添加投影方式设置
|
|
204
|
-
|
|
205
|
-
```js
|
|
206
|
-
viewer.updateType = BimAir.Longan.UpdateType.Synchronization; //正交投影
|
|
207
|
-
viewer.updateType = BimAir.Longan.UpdateType.Asynchronization; //透视投影
|
|
208
|
-
```
|
|
209
203
|
|
|
210
204
|
### 0.0.30.19
|
|
211
205
|
|
|
@@ -215,6 +209,24 @@ viewer.updateType = BimAir.Longan.UpdateType.Asynchronization; //透视投影
|
|
|
215
209
|
|
|
216
210
|
- 处理平硐数据路径第一个数据没有 no 的问题
|
|
217
211
|
|
|
212
|
+
### 0.0.30.21
|
|
213
|
+
|
|
214
|
+
- 修改投影方式设置
|
|
215
|
+
|
|
216
|
+
```js
|
|
217
|
+
viewer.camera.projection = BimAir.Longan.ProjectionType.Orthographic; //正交投影
|
|
218
|
+
viewer.camera.projection = BimAir.Longan.ProjectionType.Perspective; //透视投影
|
|
219
|
+
```
|
|
220
|
+
|
|
221
|
+
### 0.0.30.22
|
|
222
|
+
|
|
223
|
+
- 修改设置颜色以及锁定颜色的逻辑
|
|
224
|
+
|
|
225
|
+
### 0.0.30.23
|
|
226
|
+
|
|
227
|
+
- 修复钻孔和平硐 z 轴朝向问题
|
|
228
|
+
- 修复标签无法清空面板数据问题
|
|
229
|
+
|
|
218
230
|
## BETA2 日志
|
|
219
231
|
|
|
220
232
|
### 0.1.30.1
|
|
@@ -256,6 +268,8 @@ viewer.updateType = BimAir.Longan.UpdateType.Asynchronization; //透视投影
|
|
|
256
268
|
- 更新 public/js 里的内核文件,安装此版本需替换 js 文件夹
|
|
257
269
|
- 修复无法查找围栏 Selector 问题
|
|
258
270
|
|
|
259
|
-
|
|
271
|
+
### 0.1.30.11
|
|
260
272
|
|
|
261
|
-
|
|
273
|
+
- 更新 public/js 里的内核文件,安装此版本需替换 js 文件夹
|
|
274
|
+
- 修复路径问题
|
|
275
|
+
- 修改视点接口
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html lang="en">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="utf-8" />
|
|
5
|
+
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
|
|
6
|
+
<meta name="viewport" content="width=device-width,initial-scale=1.0" />
|
|
7
|
+
<link rel="icon" href="<%= BASE_URL %>favicon.ico" />
|
|
8
|
+
<link rel="stylesheet" href="https://static.graphicstone.com/bimAir/BimAir.css" />
|
|
9
|
+
<script src="https://static.graphicstone.com/vue.min.js"></script>
|
|
10
|
+
<script src="https://static.graphicstone.com/bimAir/BimAir.umd.min.js"></script>
|
|
11
|
+
</head>
|
|
12
|
+
|
|
13
|
+
<body>
|
|
14
|
+
<style>
|
|
15
|
+
body {
|
|
16
|
+
margin: 0;
|
|
17
|
+
padding: 0;
|
|
18
|
+
height: 100vh;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
#app {
|
|
22
|
+
height: 100vh;
|
|
23
|
+
position: relative;
|
|
24
|
+
}
|
|
25
|
+
</style>
|
|
26
|
+
<div id="app">
|
|
27
|
+
<viewer-wrapper elementId="viewer" style="height: 100%; width: 100%" />
|
|
28
|
+
</div>
|
|
29
|
+
|
|
30
|
+
<script type="text/javascript">
|
|
31
|
+
new Vue({
|
|
32
|
+
el: "#app",
|
|
33
|
+
});
|
|
34
|
+
let options = {
|
|
35
|
+
// viewerType: "model",
|
|
36
|
+
elementId: "viewer",
|
|
37
|
+
// id: "6253e9d6b0545a0a6e49bf85",
|
|
38
|
+
modelService: "https://static.graphicstone.com/modelApi",
|
|
39
|
+
fileService: "https://static.graphicstone.com/fileApi",
|
|
40
|
+
background: "linear-gradient(#e3fcfc, #f6ffff)",
|
|
41
|
+
};
|
|
42
|
+
BimAir.Loader({
|
|
43
|
+
url: "https://static.graphicstone.com/bimAir",
|
|
44
|
+
text: {
|
|
45
|
+
isLoad: true,
|
|
46
|
+
},
|
|
47
|
+
}).then(() => {
|
|
48
|
+
let viewer = new BimAir.Viewer(options);
|
|
49
|
+
|
|
50
|
+
viewer.loadModels(["629577fbbc7dff4fe318bc17"]).then(() => {
|
|
51
|
+
console.log("文字测试Abc123");
|
|
52
|
+
|
|
53
|
+
let seg = viewer.utilitySegment.subsegment("text");
|
|
54
|
+
seg.insertVectorText("文字测试Abc123", [5, 5, 5], [1, 0, 0], [0, 1, 0], 160);
|
|
55
|
+
seg.renderingOptions.cullBackFace = false; //双面绘制
|
|
56
|
+
|
|
57
|
+
viewer.updateDisplay();
|
|
58
|
+
});
|
|
59
|
+
});
|
|
60
|
+
</script>
|
|
61
|
+
</body>
|
|
62
|
+
</html>
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html lang="en">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="utf-8" />
|
|
5
|
+
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
|
|
6
|
+
<meta name="viewport" content="width=device-width,initial-scale=1.0" />
|
|
7
|
+
<link rel="icon" href="<%= BASE_URL %>favicon.ico" />
|
|
8
|
+
<link rel="stylesheet" href="https://static.graphicstone.com/bimAir/BimAir.css" />
|
|
9
|
+
<script src="https://static.graphicstone.com/vue.min.js"></script>
|
|
10
|
+
<script src="https://static.graphicstone.com/bimAir/BimAir.umd.min.js"></script>
|
|
11
|
+
</head>
|
|
12
|
+
|
|
13
|
+
<body>
|
|
14
|
+
<style>
|
|
15
|
+
body {
|
|
16
|
+
margin: 0;
|
|
17
|
+
padding: 0;
|
|
18
|
+
height: 100vh;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
#app {
|
|
22
|
+
height: 100vh;
|
|
23
|
+
position: relative;
|
|
24
|
+
}
|
|
25
|
+
</style>
|
|
26
|
+
<div id="app">
|
|
27
|
+
<viewer-wrapper elementId="viewer" style="height: 100%; width: 100%" />
|
|
28
|
+
</div>
|
|
29
|
+
|
|
30
|
+
<script type="text/javascript">
|
|
31
|
+
new Vue({
|
|
32
|
+
el: "#app",
|
|
33
|
+
});
|
|
34
|
+
|
|
35
|
+
let options = {
|
|
36
|
+
// viewerType: "model",
|
|
37
|
+
elementId: "viewer",
|
|
38
|
+
// id: "6253e9d6b0545a0a6e49bf85",
|
|
39
|
+
modelService: "https://static.graphicstone.com/modelApi",
|
|
40
|
+
fileService: "https://static.graphicstone.com/fileApi",
|
|
41
|
+
background: "linear-gradient(#e3fcfc, #f6ffff)",
|
|
42
|
+
};
|
|
43
|
+
BimAir.Loader({ url: "https://static.graphicstone.com/bimAir" }).then(() => {
|
|
44
|
+
let viewer = new BimAir.Viewer(options);
|
|
45
|
+
|
|
46
|
+
let markerSeg = viewer.utilitySegment.subsegment("markerSeg");
|
|
47
|
+
markerSeg.insertMarker([0, 0, 0]);
|
|
48
|
+
markerSeg.color.setMarker([255, 0, 0, 0.5]);
|
|
49
|
+
|
|
50
|
+
let polylineSeg = viewer.utilitySegment.subsegment("polylineSeg");
|
|
51
|
+
polylineSeg.insertPolyline([0, 0, 0, 5, 1, 1, 5, 3, 2]);
|
|
52
|
+
polylineSeg.color.setLine([0, 255, 255, 0.5]);
|
|
53
|
+
|
|
54
|
+
let shellSeg = viewer.utilitySegment.subsegment("shellSeg");
|
|
55
|
+
shellSeg.insertShell([0, 0, 0, 5, 5, 5, 2, 4, 5], [3, 0, 1, 2]);
|
|
56
|
+
shellSeg.color.setFace([0, 0, 255, 0.5]);
|
|
57
|
+
shellSeg.renderingOptions.cullBackFace = false; //双面绘制
|
|
58
|
+
|
|
59
|
+
let cubeSeg = viewer.utilitySegment.subsegment("cubeSeg");
|
|
60
|
+
cubeSeg.extrudeByShell([0, 0, 0, 2, 0, 0, 0, 2, 0], [3, 0, 1, 2], [0, 0, 1]);
|
|
61
|
+
|
|
62
|
+
viewer.updateDisplay();
|
|
63
|
+
});
|
|
64
|
+
</script>
|
|
65
|
+
</body>
|
|
66
|
+
</html>
|
package/docs/README.md
CHANGED
|
@@ -67,17 +67,13 @@ gs-bim-air
|
|
|
67
67
|
|
|
68
68
|
▸ **Loader**(`config?`): `Promise`<`void`\>
|
|
69
69
|
|
|
70
|
+
加载BimAir所需静态依赖文件
|
|
71
|
+
|
|
70
72
|
#### Parameters
|
|
71
73
|
|
|
72
|
-
| Name | Type |
|
|
73
|
-
| :------ | :------ |
|
|
74
|
-
| `config` | `
|
|
75
|
-
| `config.isInitDataBase?` | `boolean` |
|
|
76
|
-
| `config.isShareArrayBuffer?` | `boolean` |
|
|
77
|
-
| `config.key?` | `string` |
|
|
78
|
-
| `config.secret?` | `string` |
|
|
79
|
-
| `config.url?` | `string` |
|
|
80
|
-
| `config.userService?` | `string` |
|
|
74
|
+
| Name | Type | Default value |
|
|
75
|
+
| :------ | :------ | :------ |
|
|
76
|
+
| `config` | `LoaderOptions` | `defaultLoaderOptions` |
|
|
81
77
|
|
|
82
78
|
#### Returns
|
|
83
79
|
|
|
@@ -18,6 +18,7 @@
|
|
|
18
18
|
|
|
19
19
|
- [\_name](AditObjects.md#_name)
|
|
20
20
|
- [data](AditObjects.md#data)
|
|
21
|
+
- [instanceTypes](AditObjects.md#instancetypes)
|
|
21
22
|
- [typeName](AditObjects.md#typename)
|
|
22
23
|
- [viewer](AditObjects.md#viewer)
|
|
23
24
|
|
|
@@ -43,6 +44,7 @@
|
|
|
43
44
|
- [addChildObject](AditObjects.md#addchildobject)
|
|
44
45
|
- [afterDeInstantiate](AditObjects.md#afterdeinstantiate)
|
|
45
46
|
- [afterInstantiate](AditObjects.md#afterinstantiate)
|
|
47
|
+
- [afterRender](AditObjects.md#afterrender)
|
|
46
48
|
- [clearChildObjects](AditObjects.md#clearchildobjects)
|
|
47
49
|
- [delete](AditObjects.md#delete)
|
|
48
50
|
- [deserialize](AditObjects.md#deserialize)
|
|
@@ -87,6 +89,16 @@ ParamModelObject.data
|
|
|
87
89
|
|
|
88
90
|
___
|
|
89
91
|
|
|
92
|
+
### instanceTypes
|
|
93
|
+
|
|
94
|
+
• **instanceTypes**: `StringKeyList`<`RenderInstanceObject`\>
|
|
95
|
+
|
|
96
|
+
#### Inherited from
|
|
97
|
+
|
|
98
|
+
ParamModelObject.instanceTypes
|
|
99
|
+
|
|
100
|
+
___
|
|
101
|
+
|
|
90
102
|
### typeName
|
|
91
103
|
|
|
92
104
|
• **typeName**: `string` = `"AditObjects"`
|
|
@@ -444,9 +456,9 @@ ParamModelObject.visible
|
|
|
444
456
|
| `segment` | `Segment` | |
|
|
445
457
|
| `name` | `string` | |
|
|
446
458
|
| `componentId` | `string` | |
|
|
447
|
-
| `calibrer` | `number` |
|
|
448
|
-
| `calibrerType` | `string` |
|
|
449
|
-
| `controlPoints` | `ControlPoint`[] |
|
|
459
|
+
| `calibrer` | `number` | 保留口径 |
|
|
460
|
+
| `calibrerType` | `string` | 口径类型,1拱洞型 |
|
|
461
|
+
| `controlPoints` | `ControlPoint`[] | 平硐轴线数据 |
|
|
450
462
|
|
|
451
463
|
#### Returns
|
|
452
464
|
|
|
@@ -516,6 +528,26 @@ ParamModelObject.afterInstantiate
|
|
|
516
528
|
|
|
517
529
|
___
|
|
518
530
|
|
|
531
|
+
### afterRender
|
|
532
|
+
|
|
533
|
+
▸ **afterRender**(`process?`): `void`
|
|
534
|
+
|
|
535
|
+
#### Parameters
|
|
536
|
+
|
|
537
|
+
| Name | Type |
|
|
538
|
+
| :------ | :------ |
|
|
539
|
+
| `process?` | `Process` |
|
|
540
|
+
|
|
541
|
+
#### Returns
|
|
542
|
+
|
|
543
|
+
`void`
|
|
544
|
+
|
|
545
|
+
#### Inherited from
|
|
546
|
+
|
|
547
|
+
ParamModelObject.afterRender
|
|
548
|
+
|
|
549
|
+
___
|
|
550
|
+
|
|
519
551
|
### clearChildObjects
|
|
520
552
|
|
|
521
553
|
▸ **clearChildObjects**(): `void`
|
|
@@ -546,13 +578,14 @@ ___
|
|
|
546
578
|
|
|
547
579
|
### deserialize
|
|
548
580
|
|
|
549
|
-
▸ **deserialize**(`obj`): `void`
|
|
581
|
+
▸ **deserialize**(`obj`, `pm?`): `void`
|
|
550
582
|
|
|
551
583
|
#### Parameters
|
|
552
584
|
|
|
553
585
|
| Name | Type |
|
|
554
586
|
| :------ | :------ |
|
|
555
587
|
| `obj` | `any` |
|
|
588
|
+
| `pm?` | `PersistenceManager` |
|
|
556
589
|
|
|
557
590
|
#### Returns
|
|
558
591
|
|
|
@@ -81,7 +81,7 @@ ___
|
|
|
81
81
|
|
|
82
82
|
### renderList
|
|
83
83
|
|
|
84
|
-
• **renderList**: `StringKeyList`<{ `
|
|
84
|
+
• **renderList**: `StringKeyList`<{ `func`: (`deltaTime`: `number`) => `void` ; `isStop`: `boolean` ; `playTime?`: `number` ; `roamTime?`: `number` }\>
|
|
85
85
|
|
|
86
86
|
#### Inherited from
|
|
87
87
|
|
|
@@ -155,7 +155,7 @@ ___
|
|
|
155
155
|
| Name | Type | Description |
|
|
156
156
|
| :------ | :------ | :------ |
|
|
157
157
|
| `viewer` | [`Viewer`](Viewer.md) | - |
|
|
158
|
-
| `points` | `Point`[] |
|
|
158
|
+
| `points` | `Point`[] | 路径点列表. |
|
|
159
159
|
|
|
160
160
|
#### Returns
|
|
161
161
|
|
|
@@ -172,7 +172,7 @@ ___
|
|
|
172
172
|
| Name | Type | Description |
|
|
173
173
|
| :------ | :------ | :------ |
|
|
174
174
|
| `viewer` | [`Viewer`](Viewer.md) | - |
|
|
175
|
-
| `points` | `Point`[] |
|
|
175
|
+
| `points` | `Point`[] | 路径点列表. |
|
|
176
176
|
|
|
177
177
|
#### Returns
|
|
178
178
|
|
|
@@ -184,21 +184,25 @@ ___
|
|
|
184
184
|
|
|
185
185
|
▸ **objectRoamWithoutRotate**(`viewer`, `segmentObject`, `points`, `roamTime`, `pathType`, `finishEvent?`): `string`
|
|
186
186
|
|
|
187
|
+
只平移的路径动画.
|
|
188
|
+
|
|
187
189
|
#### Parameters
|
|
188
190
|
|
|
189
191
|
| Name | Type | Description |
|
|
190
192
|
| :------ | :------ | :------ |
|
|
191
|
-
| `viewer` | [`Viewer`](Viewer.md) |
|
|
192
|
-
| `segmentObject` | [`SegmentObject`](SegmentObject.md) |
|
|
193
|
-
| `points` | `Point`[] |
|
|
194
|
-
| `roamTime` | `number` |
|
|
195
|
-
| `pathType` | `PathType` |
|
|
196
|
-
| `finishEvent?` | () => `void` |
|
|
193
|
+
| `viewer` | [`Viewer`](Viewer.md) | BimAir的viewer |
|
|
194
|
+
| `segmentObject` | [`SegmentObject`](SegmentObject.md) | 动画移动的对象 |
|
|
195
|
+
| `points` | `Point`[] | 路径点列表 |
|
|
196
|
+
| `roamTime` | `number` | 动画时间 |
|
|
197
|
+
| `pathType` | `PathType` | 路径类型(直线/曲线) |
|
|
198
|
+
| `finishEvent?` | () => `void` | 结束事件 |
|
|
197
199
|
|
|
198
200
|
#### Returns
|
|
199
201
|
|
|
200
202
|
`string`
|
|
201
203
|
|
|
204
|
+
动画的Id
|
|
205
|
+
|
|
202
206
|
___
|
|
203
207
|
|
|
204
208
|
### pauseAnime
|
|
@@ -245,6 +249,8 @@ ___
|
|
|
245
249
|
|
|
246
250
|
▸ **resetAnimationItems**(`viewer`): `void`
|
|
247
251
|
|
|
252
|
+
恢复所有因动画移动了位置的物体.
|
|
253
|
+
|
|
248
254
|
#### Parameters
|
|
249
255
|
|
|
250
256
|
| Name | Type |
|
|
@@ -306,17 +312,19 @@ ___
|
|
|
306
312
|
|
|
307
313
|
| Name | Type | Description |
|
|
308
314
|
| :------ | :------ | :------ |
|
|
309
|
-
| `degreed` | `number` |
|
|
310
|
-
| `segmentObject` | [`SegmentObject`](SegmentObject.md) |
|
|
311
|
-
| `points` | `Point`[] |
|
|
312
|
-
| `roamTime` | `number` |
|
|
313
|
-
| `datumPoint` | `Float64Array` |
|
|
314
|
-
| `finishEvent?` | () => `void` |
|
|
315
|
+
| `degreed` | `number` | 旋转角 |
|
|
316
|
+
| `segmentObject` | [`SegmentObject`](SegmentObject.md) | 移动的segmentObject |
|
|
317
|
+
| `points` | `Point`[] | 路径点列表 |
|
|
318
|
+
| `roamTime` | `number` | 漫游时长 |
|
|
319
|
+
| `datumPoint` | `Float64Array` | 基准点---模型旋转中心(因为模型朝向需要与路径起点的切线方向一致,因此需要调整模型的旋转.) |
|
|
320
|
+
| `finishEvent?` | () => `void` | 结束事件 |
|
|
315
321
|
|
|
316
322
|
#### Returns
|
|
317
323
|
|
|
318
324
|
`string`
|
|
319
325
|
|
|
326
|
+
动画的Id
|
|
327
|
+
|
|
320
328
|
___
|
|
321
329
|
|
|
322
330
|
### stop
|
|
@@ -18,6 +18,7 @@
|
|
|
18
18
|
|
|
19
19
|
- [\_name](BoreholeObjects.md#_name)
|
|
20
20
|
- [data](BoreholeObjects.md#data)
|
|
21
|
+
- [instanceTypes](BoreholeObjects.md#instancetypes)
|
|
21
22
|
- [typeName](BoreholeObjects.md#typename)
|
|
22
23
|
- [viewer](BoreholeObjects.md#viewer)
|
|
23
24
|
|
|
@@ -43,6 +44,7 @@
|
|
|
43
44
|
- [addChildObject](BoreholeObjects.md#addchildobject)
|
|
44
45
|
- [afterDeInstantiate](BoreholeObjects.md#afterdeinstantiate)
|
|
45
46
|
- [afterInstantiate](BoreholeObjects.md#afterinstantiate)
|
|
47
|
+
- [afterRender](BoreholeObjects.md#afterrender)
|
|
46
48
|
- [clearChildObjects](BoreholeObjects.md#clearchildobjects)
|
|
47
49
|
- [delete](BoreholeObjects.md#delete)
|
|
48
50
|
- [deserialize](BoreholeObjects.md#deserialize)
|
|
@@ -86,6 +88,16 @@ ParamModelObject.data
|
|
|
86
88
|
|
|
87
89
|
___
|
|
88
90
|
|
|
91
|
+
### instanceTypes
|
|
92
|
+
|
|
93
|
+
• **instanceTypes**: `StringKeyList`<`RenderInstanceObject`\>
|
|
94
|
+
|
|
95
|
+
#### Inherited from
|
|
96
|
+
|
|
97
|
+
ParamModelObject.instanceTypes
|
|
98
|
+
|
|
99
|
+
___
|
|
100
|
+
|
|
89
101
|
### typeName
|
|
90
102
|
|
|
91
103
|
• **typeName**: `string` = `"BoreholeObjects"`
|
|
@@ -436,6 +448,8 @@ ParamModelObject.visible
|
|
|
436
448
|
|
|
437
449
|
▸ **addBorehole**(`segment`, `name`, `componentId`, `point`, `holdDepth`, `az`, `an`, `startCalibrer`, `endCalibrer`): `Cylinder`
|
|
438
450
|
|
|
451
|
+
添加钻孔
|
|
452
|
+
|
|
439
453
|
#### Parameters
|
|
440
454
|
|
|
441
455
|
| Name | Type | Description |
|
|
@@ -443,12 +457,12 @@ ParamModelObject.visible
|
|
|
443
457
|
| `segment` | `Segment` | |
|
|
444
458
|
| `name` | `string` | |
|
|
445
459
|
| `componentId` | `string` | |
|
|
446
|
-
| `point` | `Float32Array` |
|
|
447
|
-
| `holdDepth` | `number` |
|
|
448
|
-
| `az` | `number` |
|
|
449
|
-
| `an` | `number` |
|
|
450
|
-
| `startCalibrer` | `number` |
|
|
451
|
-
| `endCalibrer` | `number` |
|
|
460
|
+
| `point` | `Float32Array` | 起始点 |
|
|
461
|
+
| `holdDepth` | `number` | 孔深 |
|
|
462
|
+
| `az` | `number` | 钻孔方位,钻孔投影相对俯视地面正北方夹角 |
|
|
463
|
+
| `an` | `number` | 钻孔角度,钻孔相对地面的最小夹角 |
|
|
464
|
+
| `startCalibrer` | `number` | 开孔口径 |
|
|
465
|
+
| `endCalibrer` | `number` | 终孔口径 |
|
|
452
466
|
|
|
453
467
|
#### Returns
|
|
454
468
|
|
|
@@ -518,6 +532,26 @@ ParamModelObject.afterInstantiate
|
|
|
518
532
|
|
|
519
533
|
___
|
|
520
534
|
|
|
535
|
+
### afterRender
|
|
536
|
+
|
|
537
|
+
▸ **afterRender**(`process?`): `void`
|
|
538
|
+
|
|
539
|
+
#### Parameters
|
|
540
|
+
|
|
541
|
+
| Name | Type |
|
|
542
|
+
| :------ | :------ |
|
|
543
|
+
| `process?` | `Process` |
|
|
544
|
+
|
|
545
|
+
#### Returns
|
|
546
|
+
|
|
547
|
+
`void`
|
|
548
|
+
|
|
549
|
+
#### Inherited from
|
|
550
|
+
|
|
551
|
+
ParamModelObject.afterRender
|
|
552
|
+
|
|
553
|
+
___
|
|
554
|
+
|
|
521
555
|
### clearChildObjects
|
|
522
556
|
|
|
523
557
|
▸ **clearChildObjects**(): `void`
|
|
@@ -548,13 +582,14 @@ ___
|
|
|
548
582
|
|
|
549
583
|
### deserialize
|
|
550
584
|
|
|
551
|
-
▸ **deserialize**(`obj`): `void`
|
|
585
|
+
▸ **deserialize**(`obj`, `pm?`): `void`
|
|
552
586
|
|
|
553
587
|
#### Parameters
|
|
554
588
|
|
|
555
589
|
| Name | Type |
|
|
556
590
|
| :------ | :------ |
|
|
557
591
|
| `obj` | `any` |
|
|
592
|
+
| `pm?` | `PersistenceManager` |
|
|
558
593
|
|
|
559
594
|
#### Returns
|
|
560
595
|
|
|
@@ -22,11 +22,13 @@
|
|
|
22
22
|
|
|
23
23
|
• **new CircleScanEffect**(`circleScanEffectConfig`)
|
|
24
24
|
|
|
25
|
+
根据配置信息创建
|
|
26
|
+
|
|
25
27
|
#### Parameters
|
|
26
28
|
|
|
27
|
-
| Name | Type |
|
|
28
|
-
| :------ | :------ |
|
|
29
|
-
| `circleScanEffectConfig` | [`CircleScanEffectConfig`](CircleScanEffectConfig.md) |
|
|
29
|
+
| Name | Type |
|
|
30
|
+
| :------ | :------ |
|
|
31
|
+
| `circleScanEffectConfig` | [`CircleScanEffectConfig`](CircleScanEffectConfig.md) |
|
|
30
32
|
|
|
31
33
|
## Properties
|
|
32
34
|
|
|
@@ -27,12 +27,12 @@
|
|
|
27
27
|
|
|
28
28
|
| Name | Type | Description |
|
|
29
29
|
| :------ | :------ | :------ |
|
|
30
|
-
| `viewer` | [`Viewer`](Viewer.md) |
|
|
31
|
-
| `lightModel` | [`LightModel`](LightModel.md) |
|
|
32
|
-
| `color` | `Float32Array` |
|
|
33
|
-
| `origin` | `Float32Array` |
|
|
34
|
-
| `radius` | `number` |
|
|
35
|
-
| `duration` | `number` |
|
|
30
|
+
| `viewer` | [`Viewer`](Viewer.md) | 视图 |
|
|
31
|
+
| `lightModel` | [`LightModel`](LightModel.md) | 模型 |
|
|
32
|
+
| `color` | `Float32Array` | 颜色 |
|
|
33
|
+
| `origin` | `Float32Array` | 圆点 |
|
|
34
|
+
| `radius` | `number` | 半径 |
|
|
35
|
+
| `duration` | `number` | 时间 |
|
|
36
36
|
|
|
37
37
|
## Properties
|
|
38
38
|
|
|
@@ -362,6 +362,8 @@ ___
|
|
|
362
362
|
|
|
363
363
|
• `get` **edgeSelection**(): `boolean`
|
|
364
364
|
|
|
365
|
+
获取顶点可选性
|
|
366
|
+
|
|
365
367
|
#### Returns
|
|
366
368
|
|
|
367
369
|
`boolean`
|
|
@@ -372,6 +374,8 @@ Longan.ObjectSelector.edgeSelection
|
|
|
372
374
|
|
|
373
375
|
• `set` **edgeSelection**(`onoff`): `void`
|
|
374
376
|
|
|
377
|
+
设置边可选性
|
|
378
|
+
|
|
375
379
|
#### Parameters
|
|
376
380
|
|
|
377
381
|
| Name | Type |
|
|
@@ -422,6 +426,8 @@ ___
|
|
|
422
426
|
|
|
423
427
|
• `get` **faceSelection**(): `boolean`
|
|
424
428
|
|
|
429
|
+
获取面可选性
|
|
430
|
+
|
|
425
431
|
#### Returns
|
|
426
432
|
|
|
427
433
|
`boolean`
|
|
@@ -432,6 +438,8 @@ Longan.ObjectSelector.faceSelection
|
|
|
432
438
|
|
|
433
439
|
• `set` **faceSelection**(`onoff`): `void`
|
|
434
440
|
|
|
441
|
+
设置面可选性
|
|
442
|
+
|
|
435
443
|
#### Parameters
|
|
436
444
|
|
|
437
445
|
| Name | Type |
|
|
@@ -522,6 +530,8 @@ ___
|
|
|
522
530
|
|
|
523
531
|
• `get` **vertexSelection**(): `boolean`
|
|
524
532
|
|
|
533
|
+
获取顶点可选性
|
|
534
|
+
|
|
525
535
|
#### Returns
|
|
526
536
|
|
|
527
537
|
`boolean`
|
|
@@ -532,6 +542,8 @@ Longan.ObjectSelector.vertexSelection
|
|
|
532
542
|
|
|
533
543
|
• `set` **vertexSelection**(`onoff`): `void`
|
|
534
544
|
|
|
545
|
+
设置顶点可选性
|
|
546
|
+
|
|
535
547
|
#### Parameters
|
|
536
548
|
|
|
537
549
|
| Name | Type |
|
|
@@ -960,7 +972,7 @@ ___
|
|
|
960
972
|
|
|
961
973
|
`void`
|
|
962
974
|
|
|
963
|
-
####
|
|
975
|
+
#### Overrides
|
|
964
976
|
|
|
965
977
|
Longan.ObjectSelector.onTouchStart
|
|
966
978
|
|