gs-bim-air 0.0.3-0.18 → 0.0.3-0.20
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 +10 -2
- package/docs/classes/AditObjects.md +3 -2
- package/docs/classes/AnimationManager.md +11 -0
- package/docs/classes/Camera.md +39 -0
- package/docs/classes/DataManagerBase.md +60 -0
- package/docs/classes/SelectionManager.md +27 -14
- package/docs/classes/Viewer.md +66 -2
- package/lib/BimAir.common-report.html +2 -2
- package/lib/BimAir.common.js +74 -34
- package/lib/BimAir.css +124 -120
- package/lib/BimAir.umd-report.html +2 -2
- package/lib/BimAir.umd.js +74 -34
- package/lib/BimAir.umd.min-report.html +2 -2
- package/lib/BimAir.umd.min.js +74 -34
- package/package.json +16 -16
- package/public/js/longan/longan.js +9 -5
- package/public/js/longan/longan.wasm +0 -0
- package/public/js/longanWithoutShareArrayBuffer/longan.js +9 -3
- package/public/js/longanWithoutShareArrayBuffer/longan.wasm +0 -0
package/READMEBETA.md
CHANGED
|
@@ -203,10 +203,18 @@ this.viewer.addAdits("钻孔组模型", data).then(aditObjects => {
|
|
|
203
203
|
- 添加投影方式设置
|
|
204
204
|
|
|
205
205
|
```js
|
|
206
|
-
viewer.updateType = BimAir.Longan.UpdateType.Synchronization;
|
|
207
|
-
viewer.updateType = BimAir.Longan.UpdateType.
|
|
206
|
+
viewer.updateType = BimAir.Longan.UpdateType.Synchronization; //正交投影
|
|
207
|
+
viewer.updateType = BimAir.Longan.UpdateType.Asynchronization; //透视投影
|
|
208
208
|
```
|
|
209
209
|
|
|
210
|
+
### 0.0.30.19
|
|
211
|
+
|
|
212
|
+
- 修复平硐连接后台的接口
|
|
213
|
+
|
|
214
|
+
### 0.0.30.20
|
|
215
|
+
|
|
216
|
+
- 处理平硐数据路径第一个数据没有 no 的问题
|
|
217
|
+
|
|
210
218
|
## BETA2 日志
|
|
211
219
|
|
|
212
220
|
### 0.1.30.1
|
|
@@ -683,14 +683,15 @@ ___
|
|
|
683
683
|
|
|
684
684
|
### toWorldPoint
|
|
685
685
|
|
|
686
|
-
▸ **toWorldPoint**(`lastPoint`, `controlPoint`): `Float32Array`
|
|
686
|
+
▸ **toWorldPoint**(`lastPoint`, `controlPoint`, `dis`): `Float32Array`
|
|
687
687
|
|
|
688
688
|
#### Parameters
|
|
689
689
|
|
|
690
690
|
| Name | Type |
|
|
691
691
|
| :------ | :------ |
|
|
692
692
|
| `lastPoint` | `any` |
|
|
693
|
-
| `controlPoint` | `
|
|
693
|
+
| `controlPoint` | `ControlPoint` |
|
|
694
|
+
| `dis` | `number` |
|
|
694
695
|
|
|
695
696
|
#### Returns
|
|
696
697
|
|
|
@@ -17,6 +17,7 @@
|
|
|
17
17
|
### Properties
|
|
18
18
|
|
|
19
19
|
- [afterUpdateList](AnimationManager.md#afterupdatelist)
|
|
20
|
+
- [beforeUpdateList](AnimationManager.md#beforeupdatelist)
|
|
20
21
|
- [renderList](AnimationManager.md#renderlist)
|
|
21
22
|
- [then](AnimationManager.md#then)
|
|
22
23
|
|
|
@@ -68,6 +69,16 @@ Longan.AnimationManager.afterUpdateList
|
|
|
68
69
|
|
|
69
70
|
___
|
|
70
71
|
|
|
72
|
+
### beforeUpdateList
|
|
73
|
+
|
|
74
|
+
• **beforeUpdateList**: `List`<() => `void`\>
|
|
75
|
+
|
|
76
|
+
#### Inherited from
|
|
77
|
+
|
|
78
|
+
Longan.AnimationManager.beforeUpdateList
|
|
79
|
+
|
|
80
|
+
___
|
|
81
|
+
|
|
71
82
|
### renderList
|
|
72
83
|
|
|
73
84
|
• **renderList**: `StringKeyList`<{ `isStop`: `boolean` ; `playTime?`: `number` ; `roamTime?`: `number` ; `func`: (`deltaTime`: `number`) => `void` }\>
|
package/docs/classes/Camera.md
CHANGED
|
@@ -16,12 +16,14 @@
|
|
|
16
16
|
|
|
17
17
|
- [height](Camera.md#height)
|
|
18
18
|
- [position](Camera.md#position)
|
|
19
|
+
- [projection](Camera.md#projection)
|
|
19
20
|
- [target](Camera.md#target)
|
|
20
21
|
- [up](Camera.md#up)
|
|
21
22
|
- [width](Camera.md#width)
|
|
22
23
|
|
|
23
24
|
### Methods
|
|
24
25
|
|
|
26
|
+
- [set](Camera.md#set)
|
|
25
27
|
- [setField](Camera.md#setfield)
|
|
26
28
|
|
|
27
29
|
## Constructors
|
|
@@ -76,6 +78,22 @@ ___
|
|
|
76
78
|
|
|
77
79
|
___
|
|
78
80
|
|
|
81
|
+
### projection
|
|
82
|
+
|
|
83
|
+
• `set` **projection**(`projectionType`): `void`
|
|
84
|
+
|
|
85
|
+
#### Parameters
|
|
86
|
+
|
|
87
|
+
| Name | Type |
|
|
88
|
+
| :------ | :------ |
|
|
89
|
+
| `projectionType` | `ProjectionType` |
|
|
90
|
+
|
|
91
|
+
#### Returns
|
|
92
|
+
|
|
93
|
+
`void`
|
|
94
|
+
|
|
95
|
+
___
|
|
96
|
+
|
|
79
97
|
### target
|
|
80
98
|
|
|
81
99
|
• `get` **target**(): `ArrayLike`<`number`\>
|
|
@@ -130,6 +148,27 @@ ___
|
|
|
130
148
|
|
|
131
149
|
## Methods
|
|
132
150
|
|
|
151
|
+
### set
|
|
152
|
+
|
|
153
|
+
▸ **set**(`position`, `target`, `up`, `width`, `height`, `projection?`): `void`
|
|
154
|
+
|
|
155
|
+
#### Parameters
|
|
156
|
+
|
|
157
|
+
| Name | Type |
|
|
158
|
+
| :------ | :------ |
|
|
159
|
+
| `position` | `ArrayLike`<`number`\> |
|
|
160
|
+
| `target` | `ArrayLike`<`number`\> |
|
|
161
|
+
| `up` | `ArrayLike`<`number`\> |
|
|
162
|
+
| `width` | `number` |
|
|
163
|
+
| `height` | `number` |
|
|
164
|
+
| `projection?` | `ProjectionType` |
|
|
165
|
+
|
|
166
|
+
#### Returns
|
|
167
|
+
|
|
168
|
+
`void`
|
|
169
|
+
|
|
170
|
+
___
|
|
171
|
+
|
|
133
172
|
### setField
|
|
134
173
|
|
|
135
174
|
▸ **setField**(`width`, `height`): `void`
|
|
@@ -16,7 +16,11 @@
|
|
|
16
16
|
|
|
17
17
|
### Accessors
|
|
18
18
|
|
|
19
|
+
- [currentKey](DataManagerBase.md#currentkey)
|
|
20
|
+
- [currentPath](DataManagerBase.md#currentpath)
|
|
19
21
|
- [datas](DataManagerBase.md#datas)
|
|
22
|
+
- [keys](DataManagerBase.md#keys)
|
|
23
|
+
- [paths](DataManagerBase.md#paths)
|
|
20
24
|
|
|
21
25
|
### Methods
|
|
22
26
|
|
|
@@ -45,6 +49,34 @@ Longan.DataManagerBase.constructor
|
|
|
45
49
|
|
|
46
50
|
## Accessors
|
|
47
51
|
|
|
52
|
+
### currentKey
|
|
53
|
+
|
|
54
|
+
• `get` **currentKey**(): `number`
|
|
55
|
+
|
|
56
|
+
#### Returns
|
|
57
|
+
|
|
58
|
+
`number`
|
|
59
|
+
|
|
60
|
+
#### Inherited from
|
|
61
|
+
|
|
62
|
+
Longan.DataManagerBase.currentKey
|
|
63
|
+
|
|
64
|
+
___
|
|
65
|
+
|
|
66
|
+
### currentPath
|
|
67
|
+
|
|
68
|
+
• `get` **currentPath**(): `string`
|
|
69
|
+
|
|
70
|
+
#### Returns
|
|
71
|
+
|
|
72
|
+
`string`
|
|
73
|
+
|
|
74
|
+
#### Inherited from
|
|
75
|
+
|
|
76
|
+
Longan.DataManagerBase.currentPath
|
|
77
|
+
|
|
78
|
+
___
|
|
79
|
+
|
|
48
80
|
### datas
|
|
49
81
|
|
|
50
82
|
• `get` **datas**(): `NumberKeyList`<`string`\>
|
|
@@ -57,6 +89,34 @@ Longan.DataManagerBase.constructor
|
|
|
57
89
|
|
|
58
90
|
Longan.DataManagerBase.datas
|
|
59
91
|
|
|
92
|
+
___
|
|
93
|
+
|
|
94
|
+
### keys
|
|
95
|
+
|
|
96
|
+
• `get` **keys**(): `number`[]
|
|
97
|
+
|
|
98
|
+
#### Returns
|
|
99
|
+
|
|
100
|
+
`number`[]
|
|
101
|
+
|
|
102
|
+
#### Inherited from
|
|
103
|
+
|
|
104
|
+
Longan.DataManagerBase.keys
|
|
105
|
+
|
|
106
|
+
___
|
|
107
|
+
|
|
108
|
+
### paths
|
|
109
|
+
|
|
110
|
+
• `get` **paths**(): `string`[]
|
|
111
|
+
|
|
112
|
+
#### Returns
|
|
113
|
+
|
|
114
|
+
`string`[]
|
|
115
|
+
|
|
116
|
+
#### Inherited from
|
|
117
|
+
|
|
118
|
+
Longan.DataManagerBase.paths
|
|
119
|
+
|
|
60
120
|
## Methods
|
|
61
121
|
|
|
62
122
|
### addDatas
|
|
@@ -24,7 +24,9 @@
|
|
|
24
24
|
- [segmentObjects](SelectionManager.md#segmentobjects)
|
|
25
25
|
- [selectedDatas](SelectionManager.md#selecteddatas)
|
|
26
26
|
- [selectedKey](SelectionManager.md#selectedkey)
|
|
27
|
+
- [selectedKeys](SelectionManager.md#selectedkeys)
|
|
27
28
|
- [selectedPath](SelectionManager.md#selectedpath)
|
|
29
|
+
- [selectedPaths](SelectionManager.md#selectedpaths)
|
|
28
30
|
- [selectedRenderObject](SelectionManager.md#selectedrenderobject)
|
|
29
31
|
- [selectedRenderObjects](SelectionManager.md#selectedrenderobjects)
|
|
30
32
|
- [viewer](SelectionManager.md#viewer)
|
|
@@ -33,6 +35,7 @@
|
|
|
33
35
|
|
|
34
36
|
- [clearAllSelection](SelectionManager.md#clearallselection)
|
|
35
37
|
- [clearAllSelectionAndHighlight](SelectionManager.md#clearallselectionandhighlight)
|
|
38
|
+
- [clearCurrentSelectionAndHighlght](SelectionManager.md#clearcurrentselectionandhighlght)
|
|
36
39
|
- [clearSelection](SelectionManager.md#clearselection)
|
|
37
40
|
- [clearSelectionAndHighlight](SelectionManager.md#clearselectionandhighlight)
|
|
38
41
|
- [clearSelectionAndHighlightKeys](SelectionManager.md#clearselectionandhighlightkeys)
|
|
@@ -119,21 +122,19 @@ ___
|
|
|
119
122
|
|
|
120
123
|
Longan.SelectionManager.selectedKey
|
|
121
124
|
|
|
122
|
-
|
|
125
|
+
___
|
|
123
126
|
|
|
124
|
-
|
|
127
|
+
### selectedKeys
|
|
125
128
|
|
|
126
|
-
|
|
127
|
-
| :------ | :------ |
|
|
128
|
-
| `value` | `number` |
|
|
129
|
+
• `get` **selectedKeys**(): `number`[]
|
|
129
130
|
|
|
130
131
|
#### Returns
|
|
131
132
|
|
|
132
|
-
`
|
|
133
|
+
`number`[]
|
|
133
134
|
|
|
134
135
|
#### Inherited from
|
|
135
136
|
|
|
136
|
-
Longan.SelectionManager.
|
|
137
|
+
Longan.SelectionManager.selectedKeys
|
|
137
138
|
|
|
138
139
|
___
|
|
139
140
|
|
|
@@ -149,21 +150,19 @@ ___
|
|
|
149
150
|
|
|
150
151
|
Longan.SelectionManager.selectedPath
|
|
151
152
|
|
|
152
|
-
|
|
153
|
+
___
|
|
153
154
|
|
|
154
|
-
|
|
155
|
+
### selectedPaths
|
|
155
156
|
|
|
156
|
-
|
|
157
|
-
| :------ | :------ |
|
|
158
|
-
| `value` | `string` |
|
|
157
|
+
• `get` **selectedPaths**(): `string`[]
|
|
159
158
|
|
|
160
159
|
#### Returns
|
|
161
160
|
|
|
162
|
-
`
|
|
161
|
+
`string`[]
|
|
163
162
|
|
|
164
163
|
#### Inherited from
|
|
165
164
|
|
|
166
|
-
Longan.SelectionManager.
|
|
165
|
+
Longan.SelectionManager.selectedPaths
|
|
167
166
|
|
|
168
167
|
___
|
|
169
168
|
|
|
@@ -237,6 +236,20 @@ Longan.SelectionManager.clearAllSelectionAndHighlight
|
|
|
237
236
|
|
|
238
237
|
___
|
|
239
238
|
|
|
239
|
+
### clearCurrentSelectionAndHighlght
|
|
240
|
+
|
|
241
|
+
▸ **clearCurrentSelectionAndHighlght**(): `void`
|
|
242
|
+
|
|
243
|
+
#### Returns
|
|
244
|
+
|
|
245
|
+
`void`
|
|
246
|
+
|
|
247
|
+
#### Inherited from
|
|
248
|
+
|
|
249
|
+
Longan.SelectionManager.clearCurrentSelectionAndHighlght
|
|
250
|
+
|
|
251
|
+
___
|
|
252
|
+
|
|
240
253
|
### clearSelection
|
|
241
254
|
|
|
242
255
|
▸ **clearSelection**(`objs`): `void`
|
package/docs/classes/Viewer.md
CHANGED
|
@@ -83,6 +83,7 @@
|
|
|
83
83
|
- [backgroundColor](Viewer.md#backgroundcolor)
|
|
84
84
|
- [camera](Viewer.md#camera)
|
|
85
85
|
- [cameraOrientationFixed](Viewer.md#cameraorientationfixed)
|
|
86
|
+
- [collisionTolerance](Viewer.md#collisiontolerance)
|
|
86
87
|
- [dynamicMemory](Viewer.md#dynamicmemory)
|
|
87
88
|
- [dynamicMemoryThreshold](Viewer.md#dynamicmemorythreshold)
|
|
88
89
|
- [freeze](Viewer.md#freeze)
|
|
@@ -106,6 +107,7 @@
|
|
|
106
107
|
- [selectionTolerance](Viewer.md#selectiontolerance)
|
|
107
108
|
- [smoothTransition](Viewer.md#smoothtransition)
|
|
108
109
|
- [smoothTransitionDuration](Viewer.md#smoothtransitionduration)
|
|
110
|
+
- [softCollisionDistance](Viewer.md#softcollisiondistance)
|
|
109
111
|
- [styleKey](Viewer.md#stylekey)
|
|
110
112
|
- [styleSegment](Viewer.md#stylesegment)
|
|
111
113
|
- [testGslId](Viewer.md#testgslid)
|
|
@@ -912,6 +914,36 @@ LonganViewer.cameraOrientationFixed
|
|
|
912
914
|
|
|
913
915
|
___
|
|
914
916
|
|
|
917
|
+
### collisionTolerance
|
|
918
|
+
|
|
919
|
+
• `get` **collisionTolerance**(): `number`
|
|
920
|
+
|
|
921
|
+
#### Returns
|
|
922
|
+
|
|
923
|
+
`number`
|
|
924
|
+
|
|
925
|
+
#### Inherited from
|
|
926
|
+
|
|
927
|
+
LonganViewer.collisionTolerance
|
|
928
|
+
|
|
929
|
+
• `set` **collisionTolerance**(`value`): `void`
|
|
930
|
+
|
|
931
|
+
#### Parameters
|
|
932
|
+
|
|
933
|
+
| Name | Type |
|
|
934
|
+
| :------ | :------ |
|
|
935
|
+
| `value` | `number` |
|
|
936
|
+
|
|
937
|
+
#### Returns
|
|
938
|
+
|
|
939
|
+
`void`
|
|
940
|
+
|
|
941
|
+
#### Inherited from
|
|
942
|
+
|
|
943
|
+
LonganViewer.collisionTolerance
|
|
944
|
+
|
|
945
|
+
___
|
|
946
|
+
|
|
915
947
|
### dynamicMemory
|
|
916
948
|
|
|
917
949
|
• `get` **dynamicMemory**(): `DynamicMemoryType`
|
|
@@ -1434,6 +1466,36 @@ LonganViewer.smoothTransitionDuration
|
|
|
1434
1466
|
|
|
1435
1467
|
___
|
|
1436
1468
|
|
|
1469
|
+
### softCollisionDistance
|
|
1470
|
+
|
|
1471
|
+
• `get` **softCollisionDistance**(): `number`
|
|
1472
|
+
|
|
1473
|
+
#### Returns
|
|
1474
|
+
|
|
1475
|
+
`number`
|
|
1476
|
+
|
|
1477
|
+
#### Inherited from
|
|
1478
|
+
|
|
1479
|
+
LonganViewer.softCollisionDistance
|
|
1480
|
+
|
|
1481
|
+
• `set` **softCollisionDistance**(`value`): `void`
|
|
1482
|
+
|
|
1483
|
+
#### Parameters
|
|
1484
|
+
|
|
1485
|
+
| Name | Type |
|
|
1486
|
+
| :------ | :------ |
|
|
1487
|
+
| `value` | `number` |
|
|
1488
|
+
|
|
1489
|
+
#### Returns
|
|
1490
|
+
|
|
1491
|
+
`void`
|
|
1492
|
+
|
|
1493
|
+
#### Inherited from
|
|
1494
|
+
|
|
1495
|
+
LonganViewer.softCollisionDistance
|
|
1496
|
+
|
|
1497
|
+
___
|
|
1498
|
+
|
|
1437
1499
|
### styleKey
|
|
1438
1500
|
|
|
1439
1501
|
• `get` **styleKey**(): `number`
|
|
@@ -1761,7 +1823,7 @@ ___
|
|
|
1761
1823
|
|
|
1762
1824
|
### computeCollisions
|
|
1763
1825
|
|
|
1764
|
-
▸ **computeCollisions**(`oneSegments`, `twoSegments`, `cb?`): `Promise`<`number`\>
|
|
1826
|
+
▸ **computeCollisions**(`oneSegments`, `twoSegments`, `type`, `cb?`): `Promise`<`number`\>
|
|
1765
1827
|
|
|
1766
1828
|
#### Parameters
|
|
1767
1829
|
|
|
@@ -1769,6 +1831,7 @@ ___
|
|
|
1769
1831
|
| :------ | :------ |
|
|
1770
1832
|
| `oneSegments` | `ArrayLike`<`Segment`\> |
|
|
1771
1833
|
| `twoSegments` | `ArrayLike`<`Segment`\> |
|
|
1834
|
+
| `type` | `CollisionType` |
|
|
1772
1835
|
| `cb?` | (`viewer`: `any`, `total`: `any`, `current`: `any`) => `void` |
|
|
1773
1836
|
|
|
1774
1837
|
#### Returns
|
|
@@ -1783,7 +1846,7 @@ ___
|
|
|
1783
1846
|
|
|
1784
1847
|
### computeObjectCollisions
|
|
1785
1848
|
|
|
1786
|
-
▸ **computeObjectCollisions**(`oneSegmentObjects`, `twoSegmentObjects`, `cb?`): `Promise`<{ `collType`: `string` ; `component0`: [`SegmentObject`](SegmentObject.md) ; `component1`: [`SegmentObject`](SegmentObject.md) }[]\>
|
|
1849
|
+
▸ **computeObjectCollisions**(`oneSegmentObjects`, `twoSegmentObjects`, `type`, `cb?`): `Promise`<{ `collType`: `string` ; `component0`: [`SegmentObject`](SegmentObject.md) ; `component1`: [`SegmentObject`](SegmentObject.md) }[]\>
|
|
1787
1850
|
|
|
1788
1851
|
#### Parameters
|
|
1789
1852
|
|
|
@@ -1791,6 +1854,7 @@ ___
|
|
|
1791
1854
|
| :------ | :------ |
|
|
1792
1855
|
| `oneSegmentObjects` | [`SegmentObject`](SegmentObject.md)[] |
|
|
1793
1856
|
| `twoSegmentObjects` | [`SegmentObject`](SegmentObject.md)[] |
|
|
1857
|
+
| `type` | `CollisionType` |
|
|
1794
1858
|
| `cb?` | (`viewer`: `any`, `total`: `any`, `current`: `any`) => `void` |
|
|
1795
1859
|
|
|
1796
1860
|
#### Returns
|