gs-bim-air 0.0.3-0.19 → 0.0.3-0.21
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 +13 -6
- package/docs/classes/Viewer.md +66 -2
- package/lib/BimAir.common-report.html +2 -2
- package/lib/BimAir.common.js +25 -25
- package/lib/BimAir.css +3 -2
- package/lib/BimAir.umd-report.html +2 -2
- package/lib/BimAir.umd.js +25 -25
- package/lib/BimAir.umd.min-report.html +2 -2
- package/lib/BimAir.umd.min.js +25 -25
- package/package.json +1 -1
- 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
|
@@ -200,17 +200,24 @@ 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
|
|
|
212
206
|
- 修复平硐连接后台的接口
|
|
213
207
|
|
|
208
|
+
### 0.0.30.20
|
|
209
|
+
|
|
210
|
+
- 处理平硐数据路径第一个数据没有 no 的问题
|
|
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
|
+
|
|
214
221
|
## BETA2 日志
|
|
215
222
|
|
|
216
223
|
### 0.1.30.1
|
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
|