gs-bim-air 1.6.1-beta.41 → 1.6.1-beta.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.
Files changed (34) hide show
  1. package/README.md +15 -0
  2. package/demo//346/250/241/345/236/213/346/225/210/346/236/234//346/260/264/351/235/242/346/225/210/346/236/234.html +2 -1
  3. package/docs/classes/Animation.WaterEffectConfig.md +13 -3
  4. package/docs/classes/Longan.LonganCore.Viewer.md +24 -0
  5. package/docs/classes/Longan.Viewer.md +32 -0
  6. package/docs/classes/PanelManager.md +11 -0
  7. package/docs/classes/Viewer.md +58 -0
  8. package/docs/enums/Longan.LonganCore.ObjectType.md +7 -0
  9. package/docs/interfaces/ToolbarVisible.md +7 -0
  10. package/lib/BimAir.common-report.html +2 -2
  11. package/lib/BimAir.common.js +212 -14
  12. package/lib/BimAir.css +918 -458
  13. package/lib/BimAir.umd-report.html +2 -2
  14. package/lib/BimAir.umd.js +212 -14
  15. package/lib/BimAir.umd.min-report.html +2 -2
  16. package/lib/BimAir.umd.min.js +212 -14
  17. package/lib/fonts/iconfont.c790d09a.woff2 +0 -0
  18. package/lib/fonts/iconfont.dd8781d3.woff +0 -0
  19. package/lib/fonts/iconfont.dde03252.ttf +0 -0
  20. package/lib/undefined.gzundefined +0 -0
  21. package/package.json +1 -1
  22. package/public/js/longan/longan/longan.js +6009 -0
  23. package/public/js/longan/longan/longan.wasm +0 -0
  24. package/public/js/longan/longan/longan.worker.js +176 -0
  25. package/public/js/longan/longan.js +6009 -6009
  26. package/public/js/longan/longan.wasm +0 -0
  27. package/public/js/longan/longanWithoutShareArrayBuffer/longan.js +1 -0
  28. package/public/js/longan/longanWithoutShareArrayBuffer/longan.wasm +0 -0
  29. package/public/js/longan.zip +0 -0
  30. package/public/js/longanWithoutShareArrayBuffer/longan.js +1 -1
  31. package/public/js/longanWithoutShareArrayBuffer/longan.wasm +0 -0
  32. package/lib/fonts/iconfont.6f9f8b97.woff2 +0 -0
  33. package/lib/fonts/iconfont.b729ac50.ttf +0 -0
  34. package/lib/fonts/iconfont.d1fcc80d.woff +0 -0
package/README.md CHANGED
@@ -1,4 +1,19 @@
1
1
  ## 更新日志
2
+ ### 1.6.1-beta.43
3
+
4
+ > 更新 public/js 里的内核文件,安装此版本需替换 js 文件夹
5
+
6
+ - feat: 添加投影平面功能
7
+ ---
8
+ - fix: 图片透明通道与透明度合并,修复无法修改贴图透明度问题
9
+ - fix: 修复水面贴图效果闪光问题,添加水面贴图默认放缩为[1,1]
10
+
11
+
12
+ ### 1.6.1-beta.42
13
+
14
+ > 更新 public/js 里的内核文件,安装此版本需替换 js 文件夹
15
+
16
+ - feat: 碰撞检测添加包含碰撞
2
17
 
3
18
  ### 1.6.1-beta.41
4
19
 
@@ -59,7 +59,8 @@
59
59
  let waterEffectConfig = new BimAir.Animation.WaterEffectConfig(
60
60
  viewer,
61
61
  lightModels[0],
62
- ["3"]
62
+ ["3"],
63
+ [1,1]
63
64
  );
64
65
  let waterEffect = new BimAir.Animation.WaterEffect(waterEffectConfig);
65
66
  waterEffect.createPlane().then(() => {
@@ -14,21 +14,25 @@
14
14
 
15
15
  - [componentIds](Animation.WaterEffectConfig.md#componentids)
16
16
  - [lightModel](Animation.WaterEffectConfig.md#lightmodel)
17
+ - [scale](Animation.WaterEffectConfig.md#scale)
17
18
  - [viewer](Animation.WaterEffectConfig.md#viewer)
18
19
 
19
20
  ## Constructors
20
21
 
21
22
  ### constructor
22
23
 
23
- • **new WaterEffectConfig**(`viewer`, `lightModel`, `componentIds`)
24
+ • **new WaterEffectConfig**(`viewer`, `lightModel`, `componentIds`, `scale?`)
25
+
26
+ 水面效果配置
24
27
 
25
28
  #### Parameters
26
29
 
27
30
  | Name | Type | Description |
28
31
  | :------ | :------ | :------ |
29
32
  | `viewer` | [`Viewer`](Viewer.md) | 需要创建在哪个视图下 |
30
- | `lightModel` | [`LightModel`](LightModel.md) | - |
31
- | `componentIds` | `string`[] | - |
33
+ | `lightModel` | [`LightModel`](LightModel.md) | 需要创建在哪个模型下 |
34
+ | `componentIds` | `string`[] | 构件id数组 |
35
+ | `scale` | [`number`, `number`] | 放缩比例,默认[1,1] |
32
36
 
33
37
  ## Properties
34
38
 
@@ -44,6 +48,12 @@ ___
44
48
 
45
49
  ___
46
50
 
51
+ ### scale
52
+
53
+ • **scale**: [`number`, `number`]
54
+
55
+ ___
56
+
47
57
  ### viewer
48
58
 
49
59
  • **viewer**: [`Viewer`](Viewer.md)
@@ -471,6 +471,18 @@ ___
471
471
 
472
472
  `number`
473
473
 
474
+ • `set` **height**(`value`): `void`
475
+
476
+ #### Parameters
477
+
478
+ | Name | Type |
479
+ | :------ | :------ |
480
+ | `value` | `number` |
481
+
482
+ #### Returns
483
+
484
+ `void`
485
+
474
486
  ___
475
487
 
476
488
  ### isBusy
@@ -817,6 +829,18 @@ ___
817
829
 
818
830
  `number`
819
831
 
832
+ • `set` **width**(`value`): `void`
833
+
834
+ #### Parameters
835
+
836
+ | Name | Type |
837
+ | :------ | :------ |
838
+ | `value` | `number` |
839
+
840
+ #### Returns
841
+
842
+ `void`
843
+
820
844
  ## Methods
821
845
 
822
846
  ### asynBatchSetSegmentsDataFromCache
@@ -957,6 +957,22 @@ ___
957
957
 
958
958
  LonganCoreViewer.height
959
959
 
960
+ • `set` **height**(`value`): `void`
961
+
962
+ #### Parameters
963
+
964
+ | Name | Type |
965
+ | :------ | :------ |
966
+ | `value` | `number` |
967
+
968
+ #### Returns
969
+
970
+ `void`
971
+
972
+ #### Inherited from
973
+
974
+ LonganCoreViewer.height
975
+
960
976
  ___
961
977
 
962
978
  ### highlightManager
@@ -1627,6 +1643,22 @@ ___
1627
1643
 
1628
1644
  LonganCoreViewer.width
1629
1645
 
1646
+ • `set` **width**(`value`): `void`
1647
+
1648
+ #### Parameters
1649
+
1650
+ | Name | Type |
1651
+ | :------ | :------ |
1652
+ | `value` | `number` |
1653
+
1654
+ #### Returns
1655
+
1656
+ `void`
1657
+
1658
+ #### Inherited from
1659
+
1660
+ LonganCoreViewer.width
1661
+
1630
1662
  ## Methods
1631
1663
 
1632
1664
  ### asynBatchSetSegmentsDataFromCache
@@ -19,6 +19,7 @@
19
19
  - [collisionPanel](PanelManager.md#collisionpanel)
20
20
  - [drawingPanel](PanelManager.md#drawingpanel)
21
21
  - [info](PanelManager.md#info)
22
+ - [projectionPanel](PanelManager.md#projectionpanel)
22
23
  - [propertyPanel](PanelManager.md#propertypanel)
23
24
  - [setting](PanelManager.md#setting)
24
25
  - [snapshoot](PanelManager.md#snapshoot)
@@ -75,6 +76,16 @@ ___
75
76
 
76
77
  ___
77
78
 
79
+ ### projectionPanel
80
+
81
+ • `get` **projectionPanel**(): `default`
82
+
83
+ #### Returns
84
+
85
+ `default`
86
+
87
+ ___
88
+
78
89
  ### propertyPanel
79
90
 
80
91
  • `get` **propertyPanel**(): `default`
@@ -136,6 +136,7 @@
136
136
 
137
137
  - [addAdits](Viewer.md#addadits)
138
138
  - [addBoreholes](Viewer.md#addboreholes)
139
+ - [addCompass](Viewer.md#addcompass)
139
140
  - [addPoint](Viewer.md#addpoint)
140
141
  - [appendMatrix](Viewer.md#appendmatrix)
141
142
  - [asynBatchSetSegmentsDataFromCache](Viewer.md#asynbatchsetsegmentsdatafromcache)
@@ -201,6 +202,7 @@
201
202
  - [makeContextCurrent](Viewer.md#makecontextcurrent)
202
203
  - [pixelPointToWorldPoint](Viewer.md#pixelpointtoworldpoint)
203
204
  - [rebind](Viewer.md#rebind)
205
+ - [removeCompass](Viewer.md#removecompass)
204
206
  - [removeEnsureGeometries](Viewer.md#removeensuregeometries)
205
207
  - [reset](Viewer.md#reset)
206
208
  - [selectByArea](Viewer.md#selectbyarea)
@@ -1238,6 +1240,22 @@ ___
1238
1240
 
1239
1241
  LonganViewer.height
1240
1242
 
1243
+ • `set` **height**(`value`): `void`
1244
+
1245
+ #### Parameters
1246
+
1247
+ | Name | Type |
1248
+ | :------ | :------ |
1249
+ | `value` | `number` |
1250
+
1251
+ #### Returns
1252
+
1253
+ `void`
1254
+
1255
+ #### Inherited from
1256
+
1257
+ LonganViewer.height
1258
+
1241
1259
  ___
1242
1260
 
1243
1261
  ### highlightManager
@@ -2018,6 +2036,22 @@ ___
2018
2036
 
2019
2037
  LonganViewer.width
2020
2038
 
2039
+ • `set` **width**(`value`): `void`
2040
+
2041
+ #### Parameters
2042
+
2043
+ | Name | Type |
2044
+ | :------ | :------ |
2045
+ | `value` | `number` |
2046
+
2047
+ #### Returns
2048
+
2049
+ `void`
2050
+
2051
+ #### Inherited from
2052
+
2053
+ LonganViewer.width
2054
+
2021
2055
  ## Methods
2022
2056
 
2023
2057
  ### addAdits
@@ -2064,6 +2098,18 @@ ___
2064
2098
 
2065
2099
  ___
2066
2100
 
2101
+ ### addCompass
2102
+
2103
+ ▸ **addCompass**(): `void`
2104
+
2105
+ 添加指南针
2106
+
2107
+ #### Returns
2108
+
2109
+ `void`
2110
+
2111
+ ___
2112
+
2067
2113
  ### addPoint
2068
2114
 
2069
2115
  ▸ **addPoint**(`points`, `point`): `number`[]
@@ -3325,6 +3371,18 @@ ___
3325
3371
 
3326
3372
  ___
3327
3373
 
3374
+ ### removeCompass
3375
+
3376
+ ▸ **removeCompass**(): `void`
3377
+
3378
+ 移除指南针
3379
+
3380
+ #### Returns
3381
+
3382
+ `void`
3383
+
3384
+ ___
3385
+
3328
3386
  ### removeEnsureGeometries
3329
3387
 
3330
3388
  ▸ **removeEnsureGeometries**(): `void`
@@ -27,6 +27,7 @@
27
27
  - [TYPE\_Marker](Longan.LonganCore.ObjectType.md#type_marker)
28
28
  - [TYPE\_Mesh](Longan.LonganCore.ObjectType.md#type_mesh)
29
29
  - [TYPE\_ModellingMatrix](Longan.LonganCore.ObjectType.md#type_modellingmatrix)
30
+ - [TYPE\_ParametricGeometries](Longan.LonganCore.ObjectType.md#type_parametricgeometries)
30
31
  - [TYPE\_ParametricGeometry](Longan.LonganCore.ObjectType.md#type_parametricgeometry)
31
32
  - [TYPE\_PointCloud](Longan.LonganCore.ObjectType.md#type_pointcloud)
32
33
  - [TYPE\_PolyCylinder](Longan.LonganCore.ObjectType.md#type_polycylinder)
@@ -160,6 +161,12 @@ ___
160
161
 
161
162
  ___
162
163
 
164
+ ### TYPE\_ParametricGeometries
165
+
166
+ • **TYPE\_ParametricGeometries** = ``125``
167
+
168
+ ___
169
+
163
170
  ### TYPE\_ParametricGeometry
164
171
 
165
172
  • **TYPE\_ParametricGeometry** = ``123``
@@ -19,6 +19,7 @@
19
19
  - [modelCompare](ToolbarVisible.md#modelcompare)
20
20
  - [pathRoam](ToolbarVisible.md#pathroam)
21
21
  - [proExplosion](ToolbarVisible.md#proexplosion)
22
+ - [projection](ToolbarVisible.md#projection)
22
23
  - [property](ToolbarVisible.md#property)
23
24
  - [resetPerspective](ToolbarVisible.md#resetperspective)
24
25
  - [rightToolbar](ToolbarVisible.md#righttoolbar)
@@ -110,6 +111,12 @@ ___
110
111
 
111
112
  ___
112
113
 
114
+ ### projection
115
+
116
+ • `Optional` **projection**: `boolean`
117
+
118
+ ___
119
+
113
120
  ### property
114
121
 
115
122
  • `Optional` **property**: `boolean`