gs-bim-air 2.0.0-beta.10 → 2.0.0-beta.12

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 CHANGED
@@ -1,5 +1,32 @@
1
1
  ## 更新日志
2
2
 
3
+ ### 2.0.0-beta.12
4
+
5
+ > 更新 public/js 里的内核文件,安装此版本需替换 js 文件夹
6
+ >
7
+ > Longan 更新为 v2.0.0-beta.7
8
+
9
+ - feat: lightModel 添加 streamToSegmentRunningCount 计数器,修复大批量模型加载的时候 instanceToLoad 过程中断
10
+
11
+ ### 2.0.0-beta.11
12
+
13
+ > 更新 public/js 里的内核文件,安装此版本需替换 js 文件夹
14
+ >
15
+ > Longan 更新为 v2.0.0-beta.6
16
+
17
+ - feat: 插入 font library 时,添加是否已存贮判断
18
+ - feat: 添加根据材质名字移除重写颜色数据
19
+ - feat: 添加禁用 f12 的函数
20
+ - feat: 搜索函数加上 id 搜索
21
+ - feat: 添加备注修改接口
22
+
23
+ ---
24
+
25
+ - fix: 更新 wasm,修复双屏闪缩问题
26
+ - fix: 修复切换视点时,罗盘没有没有变化的问题
27
+ - fix: 修改打包 bimAir 后样式错乱
28
+ - fix: 左右分栏拖动组件添加可设置的最小宽度
29
+
3
30
  ### 2.0.0-beta.10
4
31
 
5
32
  > 更新 public/js 里的内核文件,安装此版本需替换 js 文件夹
@@ -39,6 +39,7 @@
39
39
  - [optimizeObjects](DataManagerBase.md#optimizeobjects)
40
40
  - [removeAllDatas](DataManagerBase.md#removealldatas)
41
41
  - [removeDatas](DataManagerBase.md#removedatas)
42
+ - [removeDatasByName](DataManagerBase.md#removedatasbyname)
42
43
  - [removeObjects](DataManagerBase.md#removeobjects)
43
44
 
44
45
  ## Constructors
@@ -157,13 +158,14 @@ ___
157
158
 
158
159
  ### addObjects
159
160
 
160
- ▸ **addObjects**(`objs`, `callback?`): `void`
161
+ ▸ **addObjects**(`objs`, `materialName`, `callback?`): `void`
161
162
 
162
163
  #### Parameters
163
164
 
164
165
  | Name | Type |
165
166
  | :------ | :------ |
166
167
  | `objs` | [`TreeNodeObject`](TreeNodeObject.md)[] \| [`SegmentObject`](SegmentObject.md)[] |
168
+ | `materialName` | `string` |
167
169
  | `callback?` | (`key`: `any`, `path`: `any`) => `void` |
168
170
 
169
171
  #### Returns
@@ -338,6 +340,26 @@ ___
338
340
 
339
341
  ___
340
342
 
343
+ ### removeDatasByName
344
+
345
+ ▸ **removeDatasByName**(`name`): `void`
346
+
347
+ #### Parameters
348
+
349
+ | Name | Type |
350
+ | :------ | :------ |
351
+ | `name` | `string` |
352
+
353
+ #### Returns
354
+
355
+ `void`
356
+
357
+ #### Inherited from
358
+
359
+ [DataManagerBase](Longan.DataManagerBase.md).[removeDatasByName](Longan.DataManagerBase.md#removedatasbyname)
360
+
361
+ ___
362
+
341
363
  ### removeObjects
342
364
 
343
365
  ▸ **removeObjects**(`objs`, `callback?`): `void`
@@ -83,6 +83,7 @@
83
83
  - [setComponentsIsolation](LightModel.md#setcomponentsisolation)
84
84
  - [setComponentsVisible](LightModel.md#setcomponentsvisible)
85
85
  - [setCutting](LightModel.md#setcutting)
86
+ - [streamToSegmentTt](LightModel.md#streamtosegmenttt)
86
87
 
87
88
  ## Constructors
88
89
 
@@ -1356,3 +1357,22 @@ ___
1356
1357
  #### Returns
1357
1358
 
1358
1359
  `void`
1360
+
1361
+ ___
1362
+
1363
+ ### streamToSegmentTt
1364
+
1365
+ ▸ **streamToSegmentTt**(`bytes`, `segmentKey`, `no`, `viewer`): `void`
1366
+
1367
+ #### Parameters
1368
+
1369
+ | Name | Type |
1370
+ | :------ | :------ |
1371
+ | `bytes` | `ArrayBuffer` |
1372
+ | `segmentKey` | `number` |
1373
+ | `no` | `number` |
1374
+ | `viewer` | [`Viewer`](Viewer.md) |
1375
+
1376
+ #### Returns
1377
+
1378
+ `void`
@@ -12,12 +12,15 @@
12
12
 
13
13
  ### Methods
14
14
 
15
+ - [angleBetween](Longan.DGeometryOperators.md#anglebetween)
16
+ - [angleBetweenByNormal](Longan.DGeometryOperators.md#anglebetweenbynormal)
15
17
  - [arrangePolygon](Longan.DGeometryOperators.md#arrangepolygon)
16
18
  - [closestPoint](Longan.DGeometryOperators.md#closestpoint)
17
19
  - [createPolylinesBySegments](Longan.DGeometryOperators.md#createpolylinesbysegments)
18
20
  - [createRingPoints](Longan.DGeometryOperators.md#createringpoints)
19
21
  - [distance](Longan.DGeometryOperators.md#distance)
20
22
  - [distancePoint](Longan.DGeometryOperators.md#distancepoint)
23
+ - [includeAngleBetween](Longan.DGeometryOperators.md#includeanglebetween)
21
24
  - [intersectionLineLine](Longan.DGeometryOperators.md#intersectionlineline)
22
25
  - [intersectionLinePlane](Longan.DGeometryOperators.md#intersectionlineplane)
23
26
  - [intersectionLineSegmentLineSegment](Longan.DGeometryOperators.md#intersectionlinesegmentlinesegment)
@@ -46,6 +49,41 @@
46
49
 
47
50
  ## Methods
48
51
 
52
+ ### angleBetween
53
+
54
+ ▸ `Static` **angleBetween**(`v0`, `v1`): `number`
55
+
56
+ #### Parameters
57
+
58
+ | Name | Type |
59
+ | :------ | :------ |
60
+ | `v0` | `Float64Array` |
61
+ | `v1` | `Float64Array` |
62
+
63
+ #### Returns
64
+
65
+ `number`
66
+
67
+ ___
68
+
69
+ ### angleBetweenByNormal
70
+
71
+ ▸ `Static` **angleBetweenByNormal**(`v0`, `v1`, `normal`): `number`
72
+
73
+ #### Parameters
74
+
75
+ | Name | Type |
76
+ | :------ | :------ |
77
+ | `v0` | `Float64Array` |
78
+ | `v1` | `Float64Array` |
79
+ | `normal` | `Float64Array` |
80
+
81
+ #### Returns
82
+
83
+ `number`
84
+
85
+ ___
86
+
49
87
  ### arrangePolygon
50
88
 
51
89
  ▸ `Static` **arrangePolygon**(`polygon`, `tolerance`): `Float64Array`
@@ -155,6 +193,23 @@ ___
155
193
 
156
194
  ___
157
195
 
196
+ ### includeAngleBetween
197
+
198
+ ▸ `Static` **includeAngleBetween**(`v0`, `v1`): `number`
199
+
200
+ #### Parameters
201
+
202
+ | Name | Type |
203
+ | :------ | :------ |
204
+ | `v0` | `Float64Array` |
205
+ | `v1` | `Float64Array` |
206
+
207
+ #### Returns
208
+
209
+ `number`
210
+
211
+ ___
212
+
158
213
  ### intersectionLineLine
159
214
 
160
215
  ▸ `Static` **intersectionLineLine**(`line0_p0`, `line0_p1`, `line1_p0`, `line1_p1`): `any`
@@ -34,6 +34,7 @@
34
34
  - [hasKey](Longan.DataManagerBase.md#haskey)
35
35
  - [removeAllDatas](Longan.DataManagerBase.md#removealldatas)
36
36
  - [removeDatas](Longan.DataManagerBase.md#removedatas)
37
+ - [removeDatasByName](Longan.DataManagerBase.md#removedatasbyname)
37
38
 
38
39
  ## Constructors
39
40
 
@@ -159,3 +160,19 @@ ___
159
160
  #### Returns
160
161
 
161
162
  `void`
163
+
164
+ ___
165
+
166
+ ### removeDatasByName
167
+
168
+ ▸ **removeDatasByName**(`name`): `void`
169
+
170
+ #### Parameters
171
+
172
+ | Name | Type |
173
+ | :------ | :------ |
174
+ | `name` | `string` |
175
+
176
+ #### Returns
177
+
178
+ `void`
@@ -61,6 +61,7 @@
61
61
  - [smoothTransition](Longan.LonganCore.Viewer.md#smoothtransition)
62
62
  - [smoothTransitionDuration](Longan.LonganCore.Viewer.md#smoothtransitionduration)
63
63
  - [softCollisionDistance](Longan.LonganCore.Viewer.md#softcollisiondistance)
64
+ - [streamToSegmentRunningCount](Longan.LonganCore.Viewer.md#streamtosegmentrunningcount)
64
65
  - [styleKey](Longan.LonganCore.Viewer.md#stylekey)
65
66
  - [testGslId](Longan.LonganCore.Viewer.md#testgslid)
66
67
  - [threadIsRunning](Longan.LonganCore.Viewer.md#threadisrunning)
@@ -696,6 +697,28 @@ ___
696
697
 
697
698
  ___
698
699
 
700
+ ### streamToSegmentRunningCount
701
+
702
+ • `get` **streamToSegmentRunningCount**(): `number`
703
+
704
+ #### Returns
705
+
706
+ `number`
707
+
708
+ • `set` **streamToSegmentRunningCount**(`value`): `void`
709
+
710
+ #### Parameters
711
+
712
+ | Name | Type |
713
+ | :------ | :------ |
714
+ | `value` | `number` |
715
+
716
+ #### Returns
717
+
718
+ `void`
719
+
720
+ ___
721
+
699
722
  ### styleKey
700
723
 
701
724
  • `get` **styleKey**(): `number`
@@ -107,6 +107,7 @@
107
107
  - [smoothTransition](Longan.Viewer.md#smoothtransition)
108
108
  - [smoothTransitionDuration](Longan.Viewer.md#smoothtransitionduration)
109
109
  - [softCollisionDistance](Longan.Viewer.md#softcollisiondistance)
110
+ - [streamToSegmentRunningCount](Longan.Viewer.md#streamtosegmentrunningcount)
110
111
  - [styleKey](Longan.Viewer.md#stylekey)
111
112
  - [styleSegment](Longan.Viewer.md#stylesegment)
112
113
  - [testGslId](Longan.Viewer.md#testgslid)
@@ -1408,6 +1409,36 @@ LonganCoreViewer.softCollisionDistance
1408
1409
 
1409
1410
  ___
1410
1411
 
1412
+ ### streamToSegmentRunningCount
1413
+
1414
+ • `get` **streamToSegmentRunningCount**(): `number`
1415
+
1416
+ #### Returns
1417
+
1418
+ `number`
1419
+
1420
+ #### Inherited from
1421
+
1422
+ LonganCoreViewer.streamToSegmentRunningCount
1423
+
1424
+ • `set` **streamToSegmentRunningCount**(`value`): `void`
1425
+
1426
+ #### Parameters
1427
+
1428
+ | Name | Type |
1429
+ | :------ | :------ |
1430
+ | `value` | `number` |
1431
+
1432
+ #### Returns
1433
+
1434
+ `void`
1435
+
1436
+ #### Inherited from
1437
+
1438
+ LonganCoreViewer.streamToSegmentRunningCount
1439
+
1440
+ ___
1441
+
1411
1442
  ### styleKey
1412
1443
 
1413
1444
  • `get` **styleKey**(): `number`
@@ -16,6 +16,7 @@
16
16
 
17
17
  ### Methods
18
18
 
19
+ - [delete](Material.md#delete)
19
20
  - [equals](Material.md#equals)
20
21
  - [getColor](Material.md#getcolor)
21
22
  - [setColor](Material.md#setcolor)
@@ -96,6 +97,16 @@ ___
96
97
 
97
98
  ## Methods
98
99
 
100
+ ### delete
101
+
102
+ ▸ **delete**(): `void`
103
+
104
+ #### Returns
105
+
106
+ `void`
107
+
108
+ ___
109
+
99
110
  ### equals
100
111
 
101
112
  ▸ **equals**(`material`): `boolean`
@@ -117,6 +117,7 @@
117
117
  - [smoothTransition](Viewer.md#smoothtransition)
118
118
  - [smoothTransitionDuration](Viewer.md#smoothtransitionduration)
119
119
  - [softCollisionDistance](Viewer.md#softcollisiondistance)
120
+ - [streamToSegmentRunningCount](Viewer.md#streamtosegmentrunningcount)
120
121
  - [styleKey](Viewer.md#stylekey)
121
122
  - [styleSegment](Viewer.md#stylesegment)
122
123
  - [testGslId](Viewer.md#testgslid)
@@ -1777,6 +1778,36 @@ LonganViewer.softCollisionDistance
1777
1778
 
1778
1779
  ___
1779
1780
 
1781
+ ### streamToSegmentRunningCount
1782
+
1783
+ • `get` **streamToSegmentRunningCount**(): `number`
1784
+
1785
+ #### Returns
1786
+
1787
+ `number`
1788
+
1789
+ #### Inherited from
1790
+
1791
+ LonganViewer.streamToSegmentRunningCount
1792
+
1793
+ • `set` **streamToSegmentRunningCount**(`value`): `void`
1794
+
1795
+ #### Parameters
1796
+
1797
+ | Name | Type |
1798
+ | :------ | :------ |
1799
+ | `value` | `number` |
1800
+
1801
+ #### Returns
1802
+
1803
+ `void`
1804
+
1805
+ #### Inherited from
1806
+
1807
+ LonganViewer.streamToSegmentRunningCount
1808
+
1809
+ ___
1810
+
1780
1811
  ### styleKey
1781
1812
 
1782
1813
  • `get` **styleKey**(): `number`
@@ -58,6 +58,7 @@
58
58
  - [JS\_Clear\_All\_By\_Key](Longan.LonganCore.md#js_clear_all_by_key)
59
59
  - [JS\_Clear\_Attributes](Longan.LonganCore.md#js_clear_attributes)
60
60
  - [JS\_Clear\_Attributes\_By\_Key](Longan.LonganCore.md#js_clear_attributes_by_key)
61
+ - [JS\_Clear\_Font\_Library](Longan.LonganCore.md#js_clear_font_library)
61
62
  - [JS\_Clear\_Geometry](Longan.LonganCore.md#js_clear_geometry)
62
63
  - [JS\_Clear\_Geometry\_By\_Key](Longan.LonganCore.md#js_clear_geometry_by_key)
63
64
  - [JS\_Clear\_Includes](Longan.LonganCore.md#js_clear_includes)
@@ -105,6 +106,7 @@
105
106
  - [JS\_Extrude\_By\_Shell](Longan.LonganCore.md#js_extrude_by_shell)
106
107
  - [JS\_Fina\_Database](Longan.LonganCore.md#js_fina_database)
107
108
  - [JS\_Fina\_Multithreading\_Services](Longan.LonganCore.md#js_fina_multithreading_services)
109
+ - [JS\_Font\_Library\_Exists](Longan.LonganCore.md#js_font_library_exists)
108
110
  - [JS\_Geometry\_Data\_To\_Stream](Longan.LonganCore.md#js_geometry_data_to_stream)
109
111
  - [JS\_Image\_Exists](Longan.LonganCore.md#js_image_exists)
110
112
  - [JS\_Include\_Segment\_By\_Key](Longan.LonganCore.md#js_include_segment_by_key)
@@ -132,6 +134,7 @@
132
134
  - [JS\_Open\_Segment](Longan.LonganCore.md#js_open_segment)
133
135
  - [JS\_Open\_Segment\_By\_Key](Longan.LonganCore.md#js_open_segment_by_key)
134
136
  - [JS\_Property\_Exists](Longan.LonganCore.md#js_property_exists)
137
+ - [JS\_Remove\_Font\_Library](Longan.LonganCore.md#js_remove_font_library)
135
138
  - [JS\_Remove\_Property](Longan.LonganCore.md#js_remove_property)
136
139
  - [JS\_Rename\_Segment](Longan.LonganCore.md#js_rename_segment)
137
140
  - [JS\_Resize\_By\_Key](Longan.LonganCore.md#js_resize_by_key)
@@ -490,6 +493,12 @@ ___
490
493
 
491
494
  ___
492
495
 
496
+ ### JS\_Clear\_Font\_Library
497
+
498
+ • **JS\_Clear\_Font\_Library**: `any`
499
+
500
+ ___
501
+
493
502
  ### JS\_Clear\_Geometry
494
503
 
495
504
  • **JS\_Clear\_Geometry**: `any`
@@ -772,6 +781,12 @@ ___
772
781
 
773
782
  ___
774
783
 
784
+ ### JS\_Font\_Library\_Exists
785
+
786
+ • **JS\_Font\_Library\_Exists**: `any`
787
+
788
+ ___
789
+
775
790
  ### JS\_Geometry\_Data\_To\_Stream
776
791
 
777
792
  • **JS\_Geometry\_Data\_To\_Stream**: `any`
@@ -934,6 +949,12 @@ ___
934
949
 
935
950
  ___
936
951
 
952
+ ### JS\_Remove\_Font\_Library
953
+
954
+ • **JS\_Remove\_Font\_Library**: `any`
955
+
956
+ ___
957
+
937
958
  ### JS\_Remove\_Property
938
959
 
939
960
  • **JS\_Remove\_Property**: `any`