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

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 (37) hide show
  1. package/README.md +36 -0
  2. package/docs/classes/Longan.CameraMouse.md +13 -0
  3. package/docs/classes/Longan.CameraPlanMouse.md +17 -0
  4. package/docs/classes/Longan.DGeometryOperators.md +39 -2
  5. package/docs/classes/Longan.EarthCameraMouse.md +17 -0
  6. package/docs/classes/Longan.GeometryOperators.md +39 -2
  7. package/docs/classes/Longan.Line.md +9 -2
  8. package/docs/classes/Longan.LonganCore.Viewer.md +19 -3
  9. package/docs/classes/Longan.Matrix4.md +10 -4
  10. package/docs/classes/Longan.Mesh.md +19 -2
  11. package/docs/classes/Longan.PanoramaCameraMouse.md +17 -0
  12. package/docs/classes/Longan.ParametricGeometry.md +19 -2
  13. package/docs/classes/Longan.PerspectiveCameraMouse.md +17 -0
  14. package/docs/classes/Longan.Polyline.md +9 -2
  15. package/docs/classes/Longan.Shell.md +19 -2
  16. package/docs/classes/Longan.Tolerance.md +19 -0
  17. package/docs/classes/Longan.TriangularShell.md +19 -2
  18. package/docs/classes/Longan.Viewer.md +28 -4
  19. package/docs/classes/Viewer.md +57 -9
  20. package/docs/modules/Longan.LonganCore.md +45 -14
  21. package/lib/BimAir.common-report.html +2 -2
  22. package/lib/BimAir.common.js +36 -16
  23. package/lib/BimAir.css +1182 -0
  24. package/lib/BimAir.umd-report.html +2 -2
  25. package/lib/BimAir.umd.js +36 -16
  26. package/lib/BimAir.umd.min-report.html +2 -2
  27. package/lib/BimAir.umd.min.js +36 -16
  28. package/lib/undefined.gzundefined +0 -0
  29. package/package.json +1 -1
  30. package/public/js/longan/longan.wasm +0 -0
  31. package/public/js/longanWithoutShareArrayBuffer/longan.js +1 -1
  32. package/public/js/longanWithoutShareArrayBuffer/longan.wasm +0 -0
  33. package/readme//346/250/241/345/236/213/346/210/252/345/217/226/347/244/272/344/276/213.md +81 -0
  34. /package/{README0.md → readme/useless/README0.md} +0 -0
  35. /package/{READMEBETA copy.md → readme/useless/READMEBETA copy.md} +0 -0
  36. /package/{READMEBETA.md → readme/useless/READMEBETA.md} +0 -0
  37. /package/{READMEBETA2.md → readme/useless/READMEBETA2.md} +0 -0
@@ -126,6 +126,16 @@ ___
126
126
 
127
127
  ### normals
128
128
 
129
+ • `get` **normals**(): `Float32Array`
130
+
131
+ #### Returns
132
+
133
+ `Float32Array`
134
+
135
+ #### Inherited from
136
+
137
+ Surface.normals
138
+
129
139
  • `set` **normals**(`value`): `void`
130
140
 
131
141
  #### Parameters
@@ -222,7 +232,7 @@ Surface.volume
222
232
 
223
233
  ### ComputeTessellateData
224
234
 
225
- ▸ **ComputeTessellateData**(`image`, `precision?`): `any`
235
+ ▸ **ComputeTessellateData**(`image`, `precision?`): `Object`
226
236
 
227
237
  #### Parameters
228
238
 
@@ -233,7 +243,14 @@ Surface.volume
233
243
 
234
244
  #### Returns
235
245
 
236
- `any`
246
+ `Object`
247
+
248
+ | Name | Type |
249
+ | :------ | :------ |
250
+ | `indexes` | `Int32Array` |
251
+ | `normals` | `Float32Array` |
252
+ | `positions` | `Float32Array` |
253
+ | `texcoords` | `Float32Array` |
237
254
 
238
255
  #### Inherited from
239
256
 
@@ -26,6 +26,7 @@
26
26
  - [collisionComputing](Longan.Viewer.md#collisioncomputing)
27
27
  - [container](Longan.Viewer.md#container)
28
28
  - [documentChanged](Longan.Viewer.md#documentchanged)
29
+ - [geometryDrawFinish](Longan.Viewer.md#geometrydrawfinish)
29
30
  - [geometryItem](Longan.Viewer.md#geometryitem)
30
31
  - [geometryItems](Longan.Viewer.md#geometryitems)
31
32
  - [getAsynGroupGeoDataAction](Longan.Viewer.md#getasyngroupgeodataaction)
@@ -34,6 +35,7 @@
34
35
  - [imageUrls](Longan.Viewer.md#imageurls)
35
36
  - [instanceModelChanged](Longan.Viewer.md#instancemodelchanged)
36
37
  - [isFixFrameRender](Longan.Viewer.md#isfixframerender)
38
+ - [isGeometryLoading](Longan.Viewer.md#isgeometryloading)
37
39
  - [keyDown](Longan.Viewer.md#keydown)
38
40
  - [lButtonDown](Longan.Viewer.md#lbuttondown)
39
41
  - [mButtonDown](Longan.Viewer.md#mbuttondown)
@@ -127,7 +129,7 @@
127
129
  - [asynRemoveGeometry](Longan.Viewer.md#asynremovegeometry)
128
130
  - [asynUPGDTaskRun](Longan.Viewer.md#asynupgdtaskrun)
129
131
  - [asynUpdateView](Longan.Viewer.md#asynupdateview)
130
- - [checkStreamToGeometryEnable](Longan.Viewer.md#checkstreamtogeometryenable)
132
+ - [checkStreamToGeometryDisable](Longan.Viewer.md#checkstreamtogeometrydisable)
131
133
  - [clearCache](Longan.Viewer.md#clearcache)
132
134
  - [computeBoundingBox](Longan.Viewer.md#computeboundingbox)
133
135
  - [computeBoundingBoxWithVisibility](Longan.Viewer.md#computeboundingboxwithvisibility)
@@ -262,6 +264,16 @@ ___
262
264
 
263
265
  ___
264
266
 
267
+ ### geometryDrawFinish
268
+
269
+ • **geometryDrawFinish**: [`List`](Longan.List.md)<`Function`\>
270
+
271
+ #### Inherited from
272
+
273
+ [Viewer](Longan.LonganCore.Viewer.md).[geometryDrawFinish](Longan.LonganCore.Viewer.md#geometrydrawfinish)
274
+
275
+ ___
276
+
265
277
  ### geometryItem
266
278
 
267
279
  • **geometryItem**: [`List`](Longan.List.md)<`Function`\>
@@ -365,6 +377,18 @@ ___
365
377
 
366
378
  ___
367
379
 
380
+ ### isGeometryLoading
381
+
382
+ • **isGeometryLoading**: `boolean` = `false`
383
+
384
+ 是否有几何数据正在通过updateDisplay进行加载.
385
+
386
+ #### Inherited from
387
+
388
+ [Viewer](Longan.LonganCore.Viewer.md).[isGeometryLoading](Longan.LonganCore.Viewer.md#isgeometryloading)
389
+
390
+ ___
391
+
368
392
  ### keyDown
369
393
 
370
394
  • **keyDown**: `boolean` = `false`
@@ -1691,9 +1715,9 @@ ___
1691
1715
 
1692
1716
  ___
1693
1717
 
1694
- ### checkStreamToGeometryEnable
1718
+ ### checkStreamToGeometryDisable
1695
1719
 
1696
- ▸ **checkStreamToGeometryEnable**(): `boolean`
1720
+ ▸ **checkStreamToGeometryDisable**(): `boolean`
1697
1721
 
1698
1722
  #### Returns
1699
1723
 
@@ -1703,7 +1727,7 @@ ___
1703
1727
 
1704
1728
  #### Inherited from
1705
1729
 
1706
- [Viewer](Longan.LonganCore.Viewer.md).[checkStreamToGeometryEnable](Longan.LonganCore.Viewer.md#checkstreamtogeometryenable)
1730
+ [Viewer](Longan.LonganCore.Viewer.md).[checkStreamToGeometryDisable](Longan.LonganCore.Viewer.md#checkstreamtogeometrydisable)
1707
1731
 
1708
1732
  ___
1709
1733
 
@@ -25,6 +25,7 @@
25
25
  - [componentManager](Viewer.md#componentmanager)
26
26
  - [container](Viewer.md#container)
27
27
  - [documentChanged](Viewer.md#documentchanged)
28
+ - [geometryDrawFinish](Viewer.md#geometrydrawfinish)
28
29
  - [geometryItem](Viewer.md#geometryitem)
29
30
  - [geometryItems](Viewer.md#geometryitems)
30
31
  - [getAsynGroupGeoDataAction](Viewer.md#getasyngroupgeodataaction)
@@ -33,6 +34,7 @@
33
34
  - [imageUrls](Viewer.md#imageurls)
34
35
  - [instanceModelChanged](Viewer.md#instancemodelchanged)
35
36
  - [isFixFrameRender](Viewer.md#isfixframerender)
37
+ - [isGeometryLoading](Viewer.md#isgeometryloading)
36
38
  - [keyDown](Viewer.md#keydown)
37
39
  - [lButtonDown](Viewer.md#lbuttondown)
38
40
  - [mButtonDown](Viewer.md#mbuttondown)
@@ -140,7 +142,7 @@
140
142
  - [asynRemoveGeometry](Viewer.md#asynremovegeometry)
141
143
  - [asynUPGDTaskRun](Viewer.md#asynupgdtaskrun)
142
144
  - [asynUpdateView](Viewer.md#asynupdateview)
143
- - [checkStreamToGeometryEnable](Viewer.md#checkstreamtogeometryenable)
145
+ - [checkStreamToGeometryDisable](Viewer.md#checkstreamtogeometrydisable)
144
146
  - [clearCache](Viewer.md#clearcache)
145
147
  - [computeBoundingBox](Viewer.md#computeboundingbox)
146
148
  - [computeBoundingBoxWithVisibility](Viewer.md#computeboundingboxwithvisibility)
@@ -156,6 +158,7 @@
156
158
  - [computeViewBoundingBoxes](Viewer.md#computeviewboundingboxes)
157
159
  - [convertCoordinate](Viewer.md#convertcoordinate)
158
160
  - [convertDCoordinate](Viewer.md#convertdcoordinate)
161
+ - [createTriangularShell](Viewer.md#createtriangularshell)
159
162
  - [deInstantiateRenderObject](Viewer.md#deinstantiaterenderobject)
160
163
  - [debugLog](Viewer.md#debuglog)
161
164
  - [dispose](Viewer.md#dispose)
@@ -303,6 +306,16 @@ ___
303
306
 
304
307
  ___
305
308
 
309
+ ### geometryDrawFinish
310
+
311
+ • **geometryDrawFinish**: [`List`](Longan.List.md)<`Function`\>
312
+
313
+ #### Inherited from
314
+
315
+ [Viewer](Longan.Viewer.md).[geometryDrawFinish](Longan.Viewer.md#geometrydrawfinish)
316
+
317
+ ___
318
+
306
319
  ### geometryItem
307
320
 
308
321
  • **geometryItem**: [`List`](Longan.List.md)<`Function`\>
@@ -410,6 +423,18 @@ ___
410
423
 
411
424
  ___
412
425
 
426
+ ### isGeometryLoading
427
+
428
+ • **isGeometryLoading**: `boolean` = `false`
429
+
430
+ 是否有几何数据正在通过updateDisplay进行加载.
431
+
432
+ #### Inherited from
433
+
434
+ [Viewer](Longan.Viewer.md).[isGeometryLoading](Longan.Viewer.md#isgeometryloading)
435
+
436
+ ___
437
+
413
438
  ### keyDown
414
439
 
415
440
  • **keyDown**: `boolean` = `false`
@@ -2141,9 +2166,9 @@ ___
2141
2166
 
2142
2167
  ___
2143
2168
 
2144
- ### checkStreamToGeometryEnable
2169
+ ### checkStreamToGeometryDisable
2145
2170
 
2146
- ▸ **checkStreamToGeometryEnable**(): `boolean`
2171
+ ▸ **checkStreamToGeometryDisable**(): `boolean`
2147
2172
 
2148
2173
  #### Returns
2149
2174
 
@@ -2153,7 +2178,7 @@ ___
2153
2178
 
2154
2179
  #### Inherited from
2155
2180
 
2156
- [Viewer](Longan.Viewer.md).[checkStreamToGeometryEnable](Longan.Viewer.md#checkstreamtogeometryenable)
2181
+ [Viewer](Longan.Viewer.md).[checkStreamToGeometryDisable](Longan.Viewer.md#checkstreamtogeometrydisable)
2157
2182
 
2158
2183
  ___
2159
2184
 
@@ -2461,6 +2486,29 @@ ___
2461
2486
 
2462
2487
  ___
2463
2488
 
2489
+ ### createTriangularShell
2490
+
2491
+ ▸ **createTriangularShell**(`point`, `vector`, `radius`): `Object`
2492
+
2493
+ #### Parameters
2494
+
2495
+ | Name | Type |
2496
+ | :------ | :------ |
2497
+ | `point` | `any` |
2498
+ | `vector` | `any` |
2499
+ | `radius` | `any` |
2500
+
2501
+ #### Returns
2502
+
2503
+ `Object`
2504
+
2505
+ | Name | Type |
2506
+ | :------ | :------ |
2507
+ | `indexes` | `number`[] |
2508
+ | `positions` | `any`[] |
2509
+
2510
+ ___
2511
+
2464
2512
  ### deInstantiateRenderObject
2465
2513
 
2466
2514
  ▸ **deInstantiateRenderObject**(`parent`, `ro`, `triggerEvent`): `void`
@@ -3398,19 +3446,19 @@ ___
3398
3446
 
3399
3447
  ### sliceModels
3400
3448
 
3401
- ▸ **sliceModels**(`sliceModelParams`): `void`
3449
+ ▸ **sliceModels**(`sliceModelParam`): `Promise`<{ `indexes`: `Int32Array` ; `positions`: `Float64Array` }\>
3402
3450
 
3403
3451
  模型截取
3404
3452
 
3405
3453
  #### Parameters
3406
3454
 
3407
- | Name | Type |
3408
- | :------ | :------ |
3409
- | `sliceModelParams` | `SliceModelParam`[] |
3455
+ | Name | Type | Description |
3456
+ | :------ | :------ | :------ |
3457
+ | `sliceModelParam` | `SliceModelParam` | 截取参数 |
3410
3458
 
3411
3459
  #### Returns
3412
3460
 
3413
- `void`
3461
+ `Promise`<{ `indexes`: `Int32Array` ; `positions`: `Float64Array` }\>
3414
3462
 
3415
3463
  ___
3416
3464
 
@@ -74,7 +74,6 @@
74
74
  - [JS\_Compute\_Box\_Test](Longan.LonganCore.md#js_compute_box_test)
75
75
  - [JS\_Compute\_Coordinates\_By\_Path](Longan.LonganCore.md#js_compute_coordinates_by_path)
76
76
  - [JS\_Compute\_Geometry\_Data](Longan.LonganCore.md#js_compute_geometry_data)
77
- - [JS\_Compute\_Geometry\_Tessellate\_Data](Longan.LonganCore.md#js_compute_geometry_tessellate_data)
78
77
  - [JS\_Compute\_Geometry\_Texture\_Coords](Longan.LonganCore.md#js_compute_geometry_texture_coords)
79
78
  - [JS\_Compute\_Path](Longan.LonganCore.md#js_compute_path)
80
79
  - [JS\_Compute\_Polygon\_Area](Longan.LonganCore.md#js_compute_polygon_area)
@@ -204,7 +203,6 @@
204
203
  - [JS\_Show\_Geometry\_Count](Longan.LonganCore.md#js_show_geometry_count)
205
204
  - [JS\_Show\_Geometry\_Element\_Type](Longan.LonganCore.md#js_show_geometry_element_type)
206
205
  - [JS\_Show\_Geometry\_List](Longan.LonganCore.md#js_show_geometry_list)
207
- - [JS\_Show\_Geometry\_Normals](Longan.LonganCore.md#js_show_geometry_normals)
208
206
  - [JS\_Show\_Geometry\_Texture\_Coords](Longan.LonganCore.md#js_show_geometry_texture_coords)
209
207
  - [JS\_Show\_Geometry\_Texture\_Dimension](Longan.LonganCore.md#js_show_geometry_texture_dimension)
210
208
  - [JS\_Show\_Geometry\_Vertices\_Position\_By\_Indexes](Longan.LonganCore.md#js_show_geometry_vertices_position_by_indexes)
@@ -329,6 +327,7 @@
329
327
  - [JS\_Compute\_Coordinates\_By\_Key](Longan.LonganCore.md#js_compute_coordinates_by_key)
330
328
  - [JS\_Compute\_Geometry\_Distance](Longan.LonganCore.md#js_compute_geometry_distance)
331
329
  - [JS\_Compute\_Geometry\_Ray\_Test](Longan.LonganCore.md#js_compute_geometry_ray_test)
330
+ - [JS\_Compute\_Geometry\_Tessellate\_Data](Longan.LonganCore.md#js_compute_geometry_tessellate_data)
332
331
  - [JS\_Compute\_Ray\_Test](Longan.LonganCore.md#js_compute_ray_test)
333
332
  - [JS\_Compute\_View\_Boundingbox\_By\_Key](Longan.LonganCore.md#js_compute_view_boundingbox_by_key)
334
333
  - [JS\_Compute\_Volume](Longan.LonganCore.md#js_compute_volume)
@@ -345,6 +344,7 @@
345
344
  - [JS\_Show\_Collision\_Path\_By\_Keys](Longan.LonganCore.md#js_show_collision_path_by_keys)
346
345
  - [JS\_Show\_Collision\_Position](Longan.LonganCore.md#js_show_collision_position)
347
346
  - [JS\_Show\_Collision\_Type](Longan.LonganCore.md#js_show_collision_type)
347
+ - [JS\_Show\_Geometry\_Normals](Longan.LonganCore.md#js_show_geometry_normals)
348
348
  - [JS\_Show\_Parametric\_Geometry](Longan.LonganCore.md#js_show_parametric_geometry)
349
349
 
350
350
  ## Variables
@@ -589,12 +589,6 @@ ___
589
589
 
590
590
  ___
591
591
 
592
- ### JS\_Compute\_Geometry\_Tessellate\_Data
593
-
594
- • **JS\_Compute\_Geometry\_Tessellate\_Data**: `any`
595
-
596
- ___
597
-
598
592
  ### JS\_Compute\_Geometry\_Texture\_Coords
599
593
 
600
594
  • **JS\_Compute\_Geometry\_Texture\_Coords**: `any`
@@ -1369,12 +1363,6 @@ ___
1369
1363
 
1370
1364
  ___
1371
1365
 
1372
- ### JS\_Show\_Geometry\_Normals
1373
-
1374
- • **JS\_Show\_Geometry\_Normals**: `any`
1375
-
1376
- ___
1377
-
1378
1366
  ### JS\_Show\_Geometry\_Texture\_Coords
1379
1367
 
1380
1368
  • **JS\_Show\_Geometry\_Texture\_Coords**: `any`
@@ -2306,6 +2294,31 @@ ___
2306
2294
 
2307
2295
  ___
2308
2296
 
2297
+ ### JS\_Compute\_Geometry\_Tessellate\_Data
2298
+
2299
+ ▸ **JS_Compute_Geometry_Tessellate_Data**(`key`, `image_key`, `options`): `Object`
2300
+
2301
+ #### Parameters
2302
+
2303
+ | Name | Type |
2304
+ | :------ | :------ |
2305
+ | `key` | `number` |
2306
+ | `image_key` | `number` |
2307
+ | `options` | `string` |
2308
+
2309
+ #### Returns
2310
+
2311
+ `Object`
2312
+
2313
+ | Name | Type |
2314
+ | :------ | :------ |
2315
+ | `indexes` | `Int32Array` |
2316
+ | `normals` | `Float32Array` |
2317
+ | `positions` | `Float32Array` |
2318
+ | `texcoords` | `Float32Array` |
2319
+
2320
+ ___
2321
+
2309
2322
  ### JS\_Compute\_Ray\_Test
2310
2323
 
2311
2324
  ▸ **JS_Compute_Ray_Test**(`view_key`, `origin`, `direct`): `Float32Array`
@@ -2567,6 +2580,24 @@ ___
2567
2580
 
2568
2581
  ___
2569
2582
 
2583
+ ### JS\_Show\_Geometry\_Normals
2584
+
2585
+ ▸ **JS_Show_Geometry_Normals**(`key`, `offset`, `count`): `Float32Array`
2586
+
2587
+ #### Parameters
2588
+
2589
+ | Name | Type |
2590
+ | :------ | :------ |
2591
+ | `key` | `number` |
2592
+ | `offset` | `number` |
2593
+ | `count` | `number` |
2594
+
2595
+ #### Returns
2596
+
2597
+ `Float32Array`
2598
+
2599
+ ___
2600
+
2570
2601
  ### JS\_Show\_Parametric\_Geometry
2571
2602
 
2572
2603
  ▸ **JS_Show_Parametric_Geometry**(`key`): `Object`