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.
- package/README.md +36 -0
- package/docs/classes/Longan.CameraMouse.md +13 -0
- package/docs/classes/Longan.CameraPlanMouse.md +17 -0
- package/docs/classes/Longan.DGeometryOperators.md +39 -2
- package/docs/classes/Longan.EarthCameraMouse.md +17 -0
- package/docs/classes/Longan.GeometryOperators.md +39 -2
- package/docs/classes/Longan.Line.md +9 -2
- package/docs/classes/Longan.LonganCore.Viewer.md +19 -3
- package/docs/classes/Longan.Matrix4.md +10 -4
- package/docs/classes/Longan.Mesh.md +19 -2
- package/docs/classes/Longan.PanoramaCameraMouse.md +17 -0
- package/docs/classes/Longan.ParametricGeometry.md +19 -2
- package/docs/classes/Longan.PerspectiveCameraMouse.md +17 -0
- package/docs/classes/Longan.Polyline.md +9 -2
- package/docs/classes/Longan.Shell.md +19 -2
- package/docs/classes/Longan.Tolerance.md +19 -0
- package/docs/classes/Longan.TriangularShell.md +19 -2
- package/docs/classes/Longan.Viewer.md +28 -4
- package/docs/classes/Viewer.md +57 -9
- package/docs/modules/Longan.LonganCore.md +45 -14
- package/lib/BimAir.common-report.html +2 -2
- package/lib/BimAir.common.js +36 -16
- package/lib/BimAir.css +1182 -0
- package/lib/BimAir.umd-report.html +2 -2
- package/lib/BimAir.umd.js +36 -16
- package/lib/BimAir.umd.min-report.html +2 -2
- package/lib/BimAir.umd.min.js +36 -16
- package/lib/undefined.gzundefined +0 -0
- package/package.json +1 -1
- package/public/js/longan/longan.wasm +0 -0
- package/public/js/longanWithoutShareArrayBuffer/longan.js +1 -1
- package/public/js/longanWithoutShareArrayBuffer/longan.wasm +0 -0
- package/readme//346/250/241/345/236/213/346/210/252/345/217/226/347/244/272/344/276/213.md +81 -0
- /package/{README0.md → readme/useless/README0.md} +0 -0
- /package/{READMEBETA copy.md → readme/useless/READMEBETA copy.md} +0 -0
- /package/{READMEBETA.md → readme/useless/READMEBETA.md} +0 -0
- /package/{READMEBETA2.md → readme/useless/READMEBETA2.md} +0 -0
package/README.md
CHANGED
|
@@ -1,5 +1,41 @@
|
|
|
1
1
|
## 更新日志
|
|
2
2
|
|
|
3
|
+
### 2.0.0-beta.14
|
|
4
|
+
|
|
5
|
+
> 更新 public/js 里的内核文件,安装此版本需替换 js 文件夹
|
|
6
|
+
>
|
|
7
|
+
> Longan 更新为 v2.0.0-beta.9
|
|
8
|
+
|
|
9
|
+
fix: 模型截取功能支持多构件截取,具体示例请看[模型截取示例](./readme/%E6%A8%A1%E5%9E%8B%E6%88%AA%E5%8F%96%E7%A4%BA%E4%BE%8B.md)
|
|
10
|
+
fix: 截取结果的构件加上颜色
|
|
11
|
+
fix: 截取结果添加构件属性
|
|
12
|
+
fix: 修复 ensure 与 updateDisplay 对同一个 segment 同时起效时,可能往一个 segment 中插入两次几何的问题.
|
|
13
|
+
fix: gs.viewer.ts 添加 isGeometryLoading 标志位
|
|
14
|
+
fix: ensureSegmentAsynGeometry 等待当前视图几何加载完后再执行
|
|
15
|
+
|
|
16
|
+
feat: 添加模型截取功能,具体示例请看模型截取示例
|
|
17
|
+
feat: lightModel 添加 streamToSegmentRunningCount 计数器.
|
|
18
|
+
feat: 结构树界面显示时不隐藏按钮
|
|
19
|
+
feat: 添加几何加载完毕后回调列表 geometryDrawFinish,使用方式如下:
|
|
20
|
+
|
|
21
|
+
```js
|
|
22
|
+
viewer.geometryDrawFinish.add(() => {
|
|
23
|
+
console.log("几何完成绘制");
|
|
24
|
+
});
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
fix: 修复在打开批注面板然后关闭批注面板,恢复一个保存了批注的视点,无法恢复批注且控制台报错
|
|
28
|
+
fix: 修复 ensureSegmentAsynGeometry 的异步逻辑
|
|
29
|
+
fix: 修复 isBusyLocked 状态,在同时使用右键、中键时,重复按下、松开右键,会导致 viewer.isBusy 状态异常的问题;现在只有在 3 个按键都松开的情况下,解除 isBusyLock.
|
|
30
|
+
fix: 修复 onTaskProcessingFinished 修改 runningCount 计数使用的 viewer 对象错误的问题.
|
|
31
|
+
fix: 增加字体包重复加载判断
|
|
32
|
+
|
|
33
|
+
### 2.0.0-beta.13
|
|
34
|
+
|
|
35
|
+
> Longan 更新为 v2.0.0-beta.8
|
|
36
|
+
|
|
37
|
+
- fix: 修复 onTaskProcessingFinished 修改 runningCount 计数使用的 viewer 对象错误的问题.
|
|
38
|
+
|
|
3
39
|
### 2.0.0-beta.12
|
|
4
40
|
|
|
5
41
|
> 更新 public/js 里的内核文件,安装此版本需替换 js 文件夹
|
|
@@ -73,6 +73,7 @@
|
|
|
73
73
|
### Accessors
|
|
74
74
|
|
|
75
75
|
- [enable](Longan.CameraMouse.md#enable)
|
|
76
|
+
- [isBusyLocked](Longan.CameraMouse.md#isbusylocked)
|
|
76
77
|
- [lButtonSate](Longan.CameraMouse.md#lbuttonsate)
|
|
77
78
|
- [viewer](Longan.CameraMouse.md#viewer)
|
|
78
79
|
|
|
@@ -503,6 +504,18 @@ ViewerOperator.enable
|
|
|
503
504
|
|
|
504
505
|
___
|
|
505
506
|
|
|
507
|
+
### isBusyLocked
|
|
508
|
+
|
|
509
|
+
• `get` **isBusyLocked**(): `boolean`
|
|
510
|
+
|
|
511
|
+
左、中、右键任一按键Down后,lock住_recordIsBusy.
|
|
512
|
+
|
|
513
|
+
#### Returns
|
|
514
|
+
|
|
515
|
+
`boolean`
|
|
516
|
+
|
|
517
|
+
___
|
|
518
|
+
|
|
506
519
|
### lButtonSate
|
|
507
520
|
|
|
508
521
|
• `get` **lButtonSate**(): `LButtonState`
|
|
@@ -65,6 +65,7 @@
|
|
|
65
65
|
### Accessors
|
|
66
66
|
|
|
67
67
|
- [enable](Longan.CameraPlanMouse.md#enable)
|
|
68
|
+
- [isBusyLocked](Longan.CameraPlanMouse.md#isbusylocked)
|
|
68
69
|
- [lButtonSate](Longan.CameraPlanMouse.md#lbuttonsate)
|
|
69
70
|
- [viewer](Longan.CameraPlanMouse.md#viewer)
|
|
70
71
|
|
|
@@ -579,6 +580,22 @@ CameraMouse.enable
|
|
|
579
580
|
|
|
580
581
|
___
|
|
581
582
|
|
|
583
|
+
### isBusyLocked
|
|
584
|
+
|
|
585
|
+
• `get` **isBusyLocked**(): `boolean`
|
|
586
|
+
|
|
587
|
+
左、中、右键任一按键Down后,lock住_recordIsBusy.
|
|
588
|
+
|
|
589
|
+
#### Returns
|
|
590
|
+
|
|
591
|
+
`boolean`
|
|
592
|
+
|
|
593
|
+
#### Inherited from
|
|
594
|
+
|
|
595
|
+
CameraMouse.isBusyLocked
|
|
596
|
+
|
|
597
|
+
___
|
|
598
|
+
|
|
582
599
|
### lButtonSate
|
|
583
600
|
|
|
584
601
|
• `get` **lButtonSate**(): `LButtonState`
|
|
@@ -24,6 +24,7 @@
|
|
|
24
24
|
- [intersectionLineLine](Longan.DGeometryOperators.md#intersectionlineline)
|
|
25
25
|
- [intersectionLinePlane](Longan.DGeometryOperators.md#intersectionlineplane)
|
|
26
26
|
- [intersectionLineSegmentLineSegment](Longan.DGeometryOperators.md#intersectionlinesegmentlinesegment)
|
|
27
|
+
- [intersectionLineSegmentPlane](Longan.DGeometryOperators.md#intersectionlinesegmentplane)
|
|
27
28
|
- [inversePolygon](Longan.DGeometryOperators.md#inversepolygon)
|
|
28
29
|
- [isParallel](Longan.DGeometryOperators.md#isparallel)
|
|
29
30
|
- [isPerpendicular](Longan.DGeometryOperators.md#isperpendicular)
|
|
@@ -37,6 +38,7 @@
|
|
|
37
38
|
- [projectPointToLine1](Longan.DGeometryOperators.md#projectpointtoline1)
|
|
38
39
|
- [projectPointToLineWithParam](Longan.DGeometryOperators.md#projectpointtolinewithparam)
|
|
39
40
|
- [projectPointToPlane](Longan.DGeometryOperators.md#projectpointtoplane)
|
|
41
|
+
- [reversePoints](Longan.DGeometryOperators.md#reversepoints)
|
|
40
42
|
- [samePoint](Longan.DGeometryOperators.md#samepoint)
|
|
41
43
|
- [samePointWithTolerance](Longan.DGeometryOperators.md#samepointwithtolerance)
|
|
42
44
|
- [sameVector](Longan.DGeometryOperators.md#samevector)
|
|
@@ -231,7 +233,7 @@ ___
|
|
|
231
233
|
|
|
232
234
|
### intersectionLinePlane
|
|
233
235
|
|
|
234
|
-
▸ `Static` **intersectionLinePlane**(`line_point`, `line_dir`, `plane_point`, `plane_dir`): { `param`: `undefined` =
|
|
236
|
+
▸ `Static` **intersectionLinePlane**(`line_point`, `line_dir`, `plane_point`, `plane_dir`): { `param`: `undefined` = inter\_param; `pos`: `undefined` = inter\_point; `res`: `boolean` = false } \| { `param`: `number` = line\_param; `pos`: `Float64Array` = result; `res`: `boolean` = true }
|
|
235
237
|
|
|
236
238
|
#### Parameters
|
|
237
239
|
|
|
@@ -244,7 +246,7 @@ ___
|
|
|
244
246
|
|
|
245
247
|
#### Returns
|
|
246
248
|
|
|
247
|
-
{ `param`: `undefined` =
|
|
249
|
+
{ `param`: `undefined` = inter\_param; `pos`: `undefined` = inter\_point; `res`: `boolean` = false } \| { `param`: `number` = line\_param; `pos`: `Float64Array` = result; `res`: `boolean` = true }
|
|
248
250
|
|
|
249
251
|
___
|
|
250
252
|
|
|
@@ -267,6 +269,25 @@ ___
|
|
|
267
269
|
|
|
268
270
|
___
|
|
269
271
|
|
|
272
|
+
### intersectionLineSegmentPlane
|
|
273
|
+
|
|
274
|
+
▸ `Static` **intersectionLineSegmentPlane**(`line_start`, `line_end`, `plane_root`, `plane_normal`): { `param`: `undefined` = inter\_param; `pos`: `undefined` = inter\_point; `res`: `boolean` = false } \| { `param`: `any` = inter\_param; `pos`: `any` = inter\_point; `res`: `boolean` = true }
|
|
275
|
+
|
|
276
|
+
#### Parameters
|
|
277
|
+
|
|
278
|
+
| Name | Type |
|
|
279
|
+
| :------ | :------ |
|
|
280
|
+
| `line_start` | `Float64Array` |
|
|
281
|
+
| `line_end` | `Float64Array` |
|
|
282
|
+
| `plane_root` | `Float64Array` |
|
|
283
|
+
| `plane_normal` | `Float64Array` |
|
|
284
|
+
|
|
285
|
+
#### Returns
|
|
286
|
+
|
|
287
|
+
{ `param`: `undefined` = inter\_param; `pos`: `undefined` = inter\_point; `res`: `boolean` = false } \| { `param`: `any` = inter\_param; `pos`: `any` = inter\_point; `res`: `boolean` = true }
|
|
288
|
+
|
|
289
|
+
___
|
|
290
|
+
|
|
270
291
|
### inversePolygon
|
|
271
292
|
|
|
272
293
|
▸ `Static` **inversePolygon**(`polygon`): `void`
|
|
@@ -499,6 +520,22 @@ ___
|
|
|
499
520
|
|
|
500
521
|
___
|
|
501
522
|
|
|
523
|
+
### reversePoints
|
|
524
|
+
|
|
525
|
+
▸ `Static` **reversePoints**(`points`): `number`[]
|
|
526
|
+
|
|
527
|
+
#### Parameters
|
|
528
|
+
|
|
529
|
+
| Name | Type |
|
|
530
|
+
| :------ | :------ |
|
|
531
|
+
| `points` | `ArrayLike`<`number`\> |
|
|
532
|
+
|
|
533
|
+
#### Returns
|
|
534
|
+
|
|
535
|
+
`number`[]
|
|
536
|
+
|
|
537
|
+
___
|
|
538
|
+
|
|
502
539
|
### samePoint
|
|
503
540
|
|
|
504
541
|
▸ `Static` **samePoint**(`p0`, `p1`): `boolean`
|
|
@@ -76,6 +76,7 @@
|
|
|
76
76
|
### Accessors
|
|
77
77
|
|
|
78
78
|
- [enable](Longan.EarthCameraMouse.md#enable)
|
|
79
|
+
- [isBusyLocked](Longan.EarthCameraMouse.md#isbusylocked)
|
|
79
80
|
- [lButtonSate](Longan.EarthCameraMouse.md#lbuttonsate)
|
|
80
81
|
- [viewer](Longan.EarthCameraMouse.md#viewer)
|
|
81
82
|
|
|
@@ -660,6 +661,22 @@ CameraMouse.enable
|
|
|
660
661
|
|
|
661
662
|
___
|
|
662
663
|
|
|
664
|
+
### isBusyLocked
|
|
665
|
+
|
|
666
|
+
• `get` **isBusyLocked**(): `boolean`
|
|
667
|
+
|
|
668
|
+
左、中、右键任一按键Down后,lock住_recordIsBusy.
|
|
669
|
+
|
|
670
|
+
#### Returns
|
|
671
|
+
|
|
672
|
+
`boolean`
|
|
673
|
+
|
|
674
|
+
#### Inherited from
|
|
675
|
+
|
|
676
|
+
CameraMouse.isBusyLocked
|
|
677
|
+
|
|
678
|
+
___
|
|
679
|
+
|
|
663
680
|
### lButtonSate
|
|
664
681
|
|
|
665
682
|
• `get` **lButtonSate**(): `LButtonState`
|
|
@@ -24,6 +24,7 @@
|
|
|
24
24
|
- [intersectionLineLine1](Longan.GeometryOperators.md#intersectionlineline1)
|
|
25
25
|
- [intersectionLinePlane](Longan.GeometryOperators.md#intersectionlineplane)
|
|
26
26
|
- [intersectionLineSegmentLineSegment](Longan.GeometryOperators.md#intersectionlinesegmentlinesegment)
|
|
27
|
+
- [intersectionLineSegmentPlane](Longan.GeometryOperators.md#intersectionlinesegmentplane)
|
|
27
28
|
- [inversePolygon](Longan.GeometryOperators.md#inversepolygon)
|
|
28
29
|
- [isParallel](Longan.GeometryOperators.md#isparallel-1)
|
|
29
30
|
- [isPerpendicular](Longan.GeometryOperators.md#isperpendicular)
|
|
@@ -37,6 +38,7 @@
|
|
|
37
38
|
- [projectPointToLine1](Longan.GeometryOperators.md#projectpointtoline1)
|
|
38
39
|
- [projectPointToLineWithParam](Longan.GeometryOperators.md#projectpointtolinewithparam)
|
|
39
40
|
- [projectPointToPlane](Longan.GeometryOperators.md#projectpointtoplane)
|
|
41
|
+
- [reversePoints](Longan.GeometryOperators.md#reversepoints)
|
|
40
42
|
- [samePoint](Longan.GeometryOperators.md#samepoint)
|
|
41
43
|
- [sameVector](Longan.GeometryOperators.md#samevector)
|
|
42
44
|
|
|
@@ -231,7 +233,7 @@ ___
|
|
|
231
233
|
|
|
232
234
|
### intersectionLinePlane
|
|
233
235
|
|
|
234
|
-
▸ `Static` **intersectionLinePlane**(`line_point`, `line_dir`, `plane_point`, `plane_dir`): { `param`: `undefined` =
|
|
236
|
+
▸ `Static` **intersectionLinePlane**(`line_point`, `line_dir`, `plane_point`, `plane_dir`): { `param`: `undefined` = inter\_param; `pos`: `undefined` = inter\_point; `res`: `boolean` = false } \| { `param`: `number` = line\_param; `pos`: `Float32Array` = result; `res`: `boolean` = true }
|
|
235
237
|
|
|
236
238
|
#### Parameters
|
|
237
239
|
|
|
@@ -244,7 +246,7 @@ ___
|
|
|
244
246
|
|
|
245
247
|
#### Returns
|
|
246
248
|
|
|
247
|
-
{ `param`: `undefined` =
|
|
249
|
+
{ `param`: `undefined` = inter\_param; `pos`: `undefined` = inter\_point; `res`: `boolean` = false } \| { `param`: `number` = line\_param; `pos`: `Float32Array` = result; `res`: `boolean` = true }
|
|
248
250
|
|
|
249
251
|
___
|
|
250
252
|
|
|
@@ -267,6 +269,25 @@ ___
|
|
|
267
269
|
|
|
268
270
|
___
|
|
269
271
|
|
|
272
|
+
### intersectionLineSegmentPlane
|
|
273
|
+
|
|
274
|
+
▸ `Static` **intersectionLineSegmentPlane**(`line_start`, `line_end`, `plane_root`, `plane_normal`): { `param`: `undefined` = inter\_param; `pos`: `undefined` = inter\_point; `res`: `boolean` = false } \| { `param`: `any` = inter\_param; `pos`: `any` = inter\_point; `res`: `boolean` = true }
|
|
275
|
+
|
|
276
|
+
#### Parameters
|
|
277
|
+
|
|
278
|
+
| Name | Type |
|
|
279
|
+
| :------ | :------ |
|
|
280
|
+
| `line_start` | `Float32Array` |
|
|
281
|
+
| `line_end` | `Float32Array` |
|
|
282
|
+
| `plane_root` | `Float32Array` |
|
|
283
|
+
| `plane_normal` | `Float32Array` |
|
|
284
|
+
|
|
285
|
+
#### Returns
|
|
286
|
+
|
|
287
|
+
{ `param`: `undefined` = inter\_param; `pos`: `undefined` = inter\_point; `res`: `boolean` = false } \| { `param`: `any` = inter\_param; `pos`: `any` = inter\_point; `res`: `boolean` = true }
|
|
288
|
+
|
|
289
|
+
___
|
|
290
|
+
|
|
270
291
|
### inversePolygon
|
|
271
292
|
|
|
272
293
|
▸ `Static` **inversePolygon**(`polygon`): `void`
|
|
@@ -499,6 +520,22 @@ ___
|
|
|
499
520
|
|
|
500
521
|
___
|
|
501
522
|
|
|
523
|
+
### reversePoints
|
|
524
|
+
|
|
525
|
+
▸ `Static` **reversePoints**(`points`): `number`[]
|
|
526
|
+
|
|
527
|
+
#### Parameters
|
|
528
|
+
|
|
529
|
+
| Name | Type |
|
|
530
|
+
| :------ | :------ |
|
|
531
|
+
| `points` | `ArrayLike`<`number`\> |
|
|
532
|
+
|
|
533
|
+
#### Returns
|
|
534
|
+
|
|
535
|
+
`number`[]
|
|
536
|
+
|
|
537
|
+
___
|
|
538
|
+
|
|
502
539
|
### samePoint
|
|
503
540
|
|
|
504
541
|
▸ `Static` **samePoint**(`p0`, `p1`): `boolean`
|
|
@@ -168,7 +168,7 @@ Curve.volume
|
|
|
168
168
|
|
|
169
169
|
### ComputeTessellateData
|
|
170
170
|
|
|
171
|
-
▸ **ComputeTessellateData**(`precision?`): `
|
|
171
|
+
▸ **ComputeTessellateData**(`precision?`): `Object`
|
|
172
172
|
|
|
173
173
|
#### Parameters
|
|
174
174
|
|
|
@@ -178,7 +178,14 @@ Curve.volume
|
|
|
178
178
|
|
|
179
179
|
#### Returns
|
|
180
180
|
|
|
181
|
-
`
|
|
181
|
+
`Object`
|
|
182
|
+
|
|
183
|
+
| Name | Type |
|
|
184
|
+
| :------ | :------ |
|
|
185
|
+
| `indexes` | `Int32Array` |
|
|
186
|
+
| `normals` | `Float32Array` |
|
|
187
|
+
| `positions` | `Float32Array` |
|
|
188
|
+
| `texcoords` | `Float32Array` |
|
|
182
189
|
|
|
183
190
|
#### Inherited from
|
|
184
191
|
|
|
@@ -23,6 +23,7 @@
|
|
|
23
23
|
- [collisionComputing](Longan.LonganCore.Viewer.md#collisioncomputing)
|
|
24
24
|
- [container](Longan.LonganCore.Viewer.md#container)
|
|
25
25
|
- [documentChanged](Longan.LonganCore.Viewer.md#documentchanged)
|
|
26
|
+
- [geometryDrawFinish](Longan.LonganCore.Viewer.md#geometrydrawfinish)
|
|
26
27
|
- [geometryItem](Longan.LonganCore.Viewer.md#geometryitem)
|
|
27
28
|
- [geometryItems](Longan.LonganCore.Viewer.md#geometryitems)
|
|
28
29
|
- [getAsynGroupGeoDataAction](Longan.LonganCore.Viewer.md#getasyngroupgeodataaction)
|
|
@@ -30,6 +31,7 @@
|
|
|
30
31
|
- [gl](Longan.LonganCore.Viewer.md#gl)
|
|
31
32
|
- [imageUrls](Longan.LonganCore.Viewer.md#imageurls)
|
|
32
33
|
- [isFixFrameRender](Longan.LonganCore.Viewer.md#isfixframerender)
|
|
34
|
+
- [isGeometryLoading](Longan.LonganCore.Viewer.md#isgeometryloading)
|
|
33
35
|
- [maxMemoryFactor](Longan.LonganCore.Viewer.md#maxmemoryfactor)
|
|
34
36
|
- [modelDebug](Longan.LonganCore.Viewer.md#modeldebug)
|
|
35
37
|
- [onComputeCollisionFinished](Longan.LonganCore.Viewer.md#oncomputecollisionfinished)
|
|
@@ -76,7 +78,7 @@
|
|
|
76
78
|
- [asynRemoveGeometry](Longan.LonganCore.Viewer.md#asynremovegeometry)
|
|
77
79
|
- [asynUPGDTaskRun](Longan.LonganCore.Viewer.md#asynupgdtaskrun)
|
|
78
80
|
- [asynUpdateView](Longan.LonganCore.Viewer.md#asynupdateview)
|
|
79
|
-
- [
|
|
81
|
+
- [checkStreamToGeometryDisable](Longan.LonganCore.Viewer.md#checkstreamtogeometrydisable)
|
|
80
82
|
- [computeNearPlaneWorldPos](Longan.LonganCore.Viewer.md#computenearplaneworldpos)
|
|
81
83
|
- [computePerspectiveNearWorldPos](Longan.LonganCore.Viewer.md#computeperspectivenearworldpos)
|
|
82
84
|
- [convertCoordinate](Longan.LonganCore.Viewer.md#convertcoordinate)
|
|
@@ -154,6 +156,12 @@ ___
|
|
|
154
156
|
|
|
155
157
|
___
|
|
156
158
|
|
|
159
|
+
### geometryDrawFinish
|
|
160
|
+
|
|
161
|
+
• **geometryDrawFinish**: [`List`](Longan.List.md)<`Function`\>
|
|
162
|
+
|
|
163
|
+
___
|
|
164
|
+
|
|
157
165
|
### geometryItem
|
|
158
166
|
|
|
159
167
|
• **geometryItem**: [`List`](Longan.List.md)<`Function`\>
|
|
@@ -223,6 +231,14 @@ ___
|
|
|
223
231
|
|
|
224
232
|
___
|
|
225
233
|
|
|
234
|
+
### isGeometryLoading
|
|
235
|
+
|
|
236
|
+
• **isGeometryLoading**: `boolean` = `false`
|
|
237
|
+
|
|
238
|
+
是否有几何数据正在通过updateDisplay进行加载.
|
|
239
|
+
|
|
240
|
+
___
|
|
241
|
+
|
|
226
242
|
### maxMemoryFactor
|
|
227
243
|
|
|
228
244
|
• **maxMemoryFactor**: `number` = `0.8`
|
|
@@ -869,9 +885,9 @@ ___
|
|
|
869
885
|
|
|
870
886
|
___
|
|
871
887
|
|
|
872
|
-
###
|
|
888
|
+
### checkStreamToGeometryDisable
|
|
873
889
|
|
|
874
|
-
▸ **
|
|
890
|
+
▸ **checkStreamToGeometryDisable**(): `boolean`
|
|
875
891
|
|
|
876
892
|
#### Returns
|
|
877
893
|
|
|
@@ -226,6 +226,8 @@ ___
|
|
|
226
226
|
|
|
227
227
|
▸ `Static` **multiply**(`m1`, `m2`): `Float32Array`
|
|
228
228
|
|
|
229
|
+
矩阵相乘
|
|
230
|
+
|
|
229
231
|
#### Parameters
|
|
230
232
|
|
|
231
233
|
| Name | Type |
|
|
@@ -281,17 +283,21 @@ ___
|
|
|
281
283
|
|
|
282
284
|
▸ `Static` **multiplyPoints**(`m`, `ps`): `Float32Array`
|
|
283
285
|
|
|
286
|
+
点数组矩阵变换
|
|
287
|
+
|
|
284
288
|
#### Parameters
|
|
285
289
|
|
|
286
|
-
| Name | Type |
|
|
287
|
-
| :------ | :------ |
|
|
288
|
-
| `m` | `Float32Array` |
|
|
289
|
-
| `ps` | `Float32Array` |
|
|
290
|
+
| Name | Type | Description |
|
|
291
|
+
| :------ | :------ | :------ |
|
|
292
|
+
| `m` | `Float32Array` | 矩阵 |
|
|
293
|
+
| `ps` | `Float32Array` | - |
|
|
290
294
|
|
|
291
295
|
#### Returns
|
|
292
296
|
|
|
293
297
|
`Float32Array`
|
|
294
298
|
|
|
299
|
+
变换后的点数组
|
|
300
|
+
|
|
295
301
|
___
|
|
296
302
|
|
|
297
303
|
### multiplyVector
|
|
@@ -114,6 +114,16 @@ ___
|
|
|
114
114
|
|
|
115
115
|
### normals
|
|
116
116
|
|
|
117
|
+
• `get` **normals**(): `Float32Array`
|
|
118
|
+
|
|
119
|
+
#### Returns
|
|
120
|
+
|
|
121
|
+
`Float32Array`
|
|
122
|
+
|
|
123
|
+
#### Inherited from
|
|
124
|
+
|
|
125
|
+
Surface.normals
|
|
126
|
+
|
|
117
127
|
• `set` **normals**(`value`): `void`
|
|
118
128
|
|
|
119
129
|
#### Parameters
|
|
@@ -210,7 +220,7 @@ Surface.volume
|
|
|
210
220
|
|
|
211
221
|
### ComputeTessellateData
|
|
212
222
|
|
|
213
|
-
▸ **ComputeTessellateData**(`image`, `precision?`): `
|
|
223
|
+
▸ **ComputeTessellateData**(`image`, `precision?`): `Object`
|
|
214
224
|
|
|
215
225
|
#### Parameters
|
|
216
226
|
|
|
@@ -221,7 +231,14 @@ Surface.volume
|
|
|
221
231
|
|
|
222
232
|
#### Returns
|
|
223
233
|
|
|
224
|
-
`
|
|
234
|
+
`Object`
|
|
235
|
+
|
|
236
|
+
| Name | Type |
|
|
237
|
+
| :------ | :------ |
|
|
238
|
+
| `indexes` | `Int32Array` |
|
|
239
|
+
| `normals` | `Float32Array` |
|
|
240
|
+
| `positions` | `Float32Array` |
|
|
241
|
+
| `texcoords` | `Float32Array` |
|
|
225
242
|
|
|
226
243
|
#### Inherited from
|
|
227
244
|
|
|
@@ -66,6 +66,7 @@
|
|
|
66
66
|
### Accessors
|
|
67
67
|
|
|
68
68
|
- [enable](Longan.PanoramaCameraMouse.md#enable)
|
|
69
|
+
- [isBusyLocked](Longan.PanoramaCameraMouse.md#isbusylocked)
|
|
69
70
|
- [lButtonSate](Longan.PanoramaCameraMouse.md#lbuttonsate)
|
|
70
71
|
- [viewer](Longan.PanoramaCameraMouse.md#viewer)
|
|
71
72
|
|
|
@@ -587,6 +588,22 @@ CameraMouse.enable
|
|
|
587
588
|
|
|
588
589
|
___
|
|
589
590
|
|
|
591
|
+
### isBusyLocked
|
|
592
|
+
|
|
593
|
+
• `get` **isBusyLocked**(): `boolean`
|
|
594
|
+
|
|
595
|
+
左、中、右键任一按键Down后,lock住_recordIsBusy.
|
|
596
|
+
|
|
597
|
+
#### Returns
|
|
598
|
+
|
|
599
|
+
`boolean`
|
|
600
|
+
|
|
601
|
+
#### Inherited from
|
|
602
|
+
|
|
603
|
+
CameraMouse.isBusyLocked
|
|
604
|
+
|
|
605
|
+
___
|
|
606
|
+
|
|
590
607
|
### lButtonSate
|
|
591
608
|
|
|
592
609
|
• `get` **lButtonSate**(): `LButtonState`
|
|
@@ -116,6 +116,16 @@ ___
|
|
|
116
116
|
|
|
117
117
|
### normals
|
|
118
118
|
|
|
119
|
+
• `get` **normals**(): `Float32Array`
|
|
120
|
+
|
|
121
|
+
#### Returns
|
|
122
|
+
|
|
123
|
+
`Float32Array`
|
|
124
|
+
|
|
125
|
+
#### Inherited from
|
|
126
|
+
|
|
127
|
+
Surface.normals
|
|
128
|
+
|
|
119
129
|
• `set` **normals**(`value`): `void`
|
|
120
130
|
|
|
121
131
|
#### Parameters
|
|
@@ -244,7 +254,7 @@ Surface.volume
|
|
|
244
254
|
|
|
245
255
|
### ComputeTessellateData
|
|
246
256
|
|
|
247
|
-
▸ **ComputeTessellateData**(`image`, `precision?`): `
|
|
257
|
+
▸ **ComputeTessellateData**(`image`, `precision?`): `Object`
|
|
248
258
|
|
|
249
259
|
#### Parameters
|
|
250
260
|
|
|
@@ -255,7 +265,14 @@ Surface.volume
|
|
|
255
265
|
|
|
256
266
|
#### Returns
|
|
257
267
|
|
|
258
|
-
`
|
|
268
|
+
`Object`
|
|
269
|
+
|
|
270
|
+
| Name | Type |
|
|
271
|
+
| :------ | :------ |
|
|
272
|
+
| `indexes` | `Int32Array` |
|
|
273
|
+
| `normals` | `Float32Array` |
|
|
274
|
+
| `positions` | `Float32Array` |
|
|
275
|
+
| `texcoords` | `Float32Array` |
|
|
259
276
|
|
|
260
277
|
#### Inherited from
|
|
261
278
|
|
|
@@ -65,6 +65,7 @@
|
|
|
65
65
|
### Accessors
|
|
66
66
|
|
|
67
67
|
- [enable](Longan.PerspectiveCameraMouse.md#enable)
|
|
68
|
+
- [isBusyLocked](Longan.PerspectiveCameraMouse.md#isbusylocked)
|
|
68
69
|
- [lButtonSate](Longan.PerspectiveCameraMouse.md#lbuttonsate)
|
|
69
70
|
- [viewer](Longan.PerspectiveCameraMouse.md#viewer)
|
|
70
71
|
|
|
@@ -579,6 +580,22 @@ CameraMouse.enable
|
|
|
579
580
|
|
|
580
581
|
___
|
|
581
582
|
|
|
583
|
+
### isBusyLocked
|
|
584
|
+
|
|
585
|
+
• `get` **isBusyLocked**(): `boolean`
|
|
586
|
+
|
|
587
|
+
左、中、右键任一按键Down后,lock住_recordIsBusy.
|
|
588
|
+
|
|
589
|
+
#### Returns
|
|
590
|
+
|
|
591
|
+
`boolean`
|
|
592
|
+
|
|
593
|
+
#### Inherited from
|
|
594
|
+
|
|
595
|
+
CameraMouse.isBusyLocked
|
|
596
|
+
|
|
597
|
+
___
|
|
598
|
+
|
|
582
599
|
### lButtonSate
|
|
583
600
|
|
|
584
601
|
• `get` **lButtonSate**(): `LButtonState`
|
|
@@ -179,7 +179,7 @@ Curve.volume
|
|
|
179
179
|
|
|
180
180
|
### ComputeTessellateData
|
|
181
181
|
|
|
182
|
-
▸ **ComputeTessellateData**(`precision?`): `
|
|
182
|
+
▸ **ComputeTessellateData**(`precision?`): `Object`
|
|
183
183
|
|
|
184
184
|
#### Parameters
|
|
185
185
|
|
|
@@ -189,7 +189,14 @@ Curve.volume
|
|
|
189
189
|
|
|
190
190
|
#### Returns
|
|
191
191
|
|
|
192
|
-
`
|
|
192
|
+
`Object`
|
|
193
|
+
|
|
194
|
+
| Name | Type |
|
|
195
|
+
| :------ | :------ |
|
|
196
|
+
| `indexes` | `Int32Array` |
|
|
197
|
+
| `normals` | `Float32Array` |
|
|
198
|
+
| `positions` | `Float32Array` |
|
|
199
|
+
| `texcoords` | `Float32Array` |
|
|
193
200
|
|
|
194
201
|
#### Inherited from
|
|
195
202
|
|
|
@@ -132,6 +132,16 @@ ___
|
|
|
132
132
|
|
|
133
133
|
### normals
|
|
134
134
|
|
|
135
|
+
• `get` **normals**(): `Float32Array`
|
|
136
|
+
|
|
137
|
+
#### Returns
|
|
138
|
+
|
|
139
|
+
`Float32Array`
|
|
140
|
+
|
|
141
|
+
#### Inherited from
|
|
142
|
+
|
|
143
|
+
Surface.normals
|
|
144
|
+
|
|
135
145
|
• `set` **normals**(`value`): `void`
|
|
136
146
|
|
|
137
147
|
#### Parameters
|
|
@@ -238,7 +248,7 @@ Surface.volume
|
|
|
238
248
|
|
|
239
249
|
### ComputeTessellateData
|
|
240
250
|
|
|
241
|
-
▸ **ComputeTessellateData**(`image`, `precision?`): `
|
|
251
|
+
▸ **ComputeTessellateData**(`image`, `precision?`): `Object`
|
|
242
252
|
|
|
243
253
|
#### Parameters
|
|
244
254
|
|
|
@@ -249,7 +259,14 @@ Surface.volume
|
|
|
249
259
|
|
|
250
260
|
#### Returns
|
|
251
261
|
|
|
252
|
-
`
|
|
262
|
+
`Object`
|
|
263
|
+
|
|
264
|
+
| Name | Type |
|
|
265
|
+
| :------ | :------ |
|
|
266
|
+
| `indexes` | `Int32Array` |
|
|
267
|
+
| `normals` | `Float32Array` |
|
|
268
|
+
| `positions` | `Float32Array` |
|
|
269
|
+
| `texcoords` | `Float32Array` |
|
|
253
270
|
|
|
254
271
|
#### Inherited from
|
|
255
272
|
|
|
@@ -17,6 +17,7 @@
|
|
|
17
17
|
|
|
18
18
|
### Methods
|
|
19
19
|
|
|
20
|
+
- [isValueInInterval](Longan.Tolerance.md#isvalueininterval)
|
|
20
21
|
- [sameValue](Longan.Tolerance.md#samevalue)
|
|
21
22
|
- [sameValueFloatArray](Longan.Tolerance.md#samevaluefloatarray)
|
|
22
23
|
|
|
@@ -40,6 +41,24 @@ ___
|
|
|
40
41
|
|
|
41
42
|
## Methods
|
|
42
43
|
|
|
44
|
+
### isValueInInterval
|
|
45
|
+
|
|
46
|
+
▸ `Static` **isValueInInterval**(`v`, `a`, `b`): `boolean`
|
|
47
|
+
|
|
48
|
+
#### Parameters
|
|
49
|
+
|
|
50
|
+
| Name | Type |
|
|
51
|
+
| :------ | :------ |
|
|
52
|
+
| `v` | `number` |
|
|
53
|
+
| `a` | `number` |
|
|
54
|
+
| `b` | `number` |
|
|
55
|
+
|
|
56
|
+
#### Returns
|
|
57
|
+
|
|
58
|
+
`boolean`
|
|
59
|
+
|
|
60
|
+
___
|
|
61
|
+
|
|
43
62
|
### sameValue
|
|
44
63
|
|
|
45
64
|
▸ `Static` **sameValue**(`a`, `b`): `boolean`
|