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

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,22 +1,30 @@
1
1
  ## 更新日志
2
2
 
3
+ ### 2.0.0-beta.15
4
+
5
+ > Longan 更新为 v2.0.0-beta.10
6
+
7
+ - fix: 修复 onMouseWheel 没有执行 updateDisplay,导致拖动鼠标后几何消失无法重新加载的问题
8
+ - fix: ensureSegmentAsynGeometry 等待当前视图几何加载完后再执行
9
+ - docs: 导出 SDK 文档,导出模型截取文档
10
+
3
11
  ### 2.0.0-beta.14
4
12
 
5
13
  > 更新 public/js 里的内核文件,安装此版本需替换 js 文件夹
6
14
  >
7
15
  > Longan 更新为 v2.0.0-beta.9
8
16
 
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 等待当前视图几何加载完后再执行
17
+ - fix: 模型截取功能支持多构件截取,具体示例请看[模型截取示例](./readme/%E6%A8%A1%E5%9E%8B%E6%88%AA%E5%8F%96%E7%A4%BA%E4%BE%8B.md)
18
+ - fix: 截取结果的构件加上颜色
19
+ - fix: 截取结果添加构件属性
20
+ - fix: 修复 ensure 与 updateDisplay 对同一个 segment 同时起效时,可能往一个 segment 中插入两次几何的问题.
21
+ - fix: gs.viewer.ts 添加 isGeometryLoading 标志位
22
+ - fix: ensureSegmentAsynGeometry 等待当前视图几何加载完后再执行
15
23
 
16
- feat: 添加模型截取功能,具体示例请看模型截取示例
17
- feat: lightModel 添加 streamToSegmentRunningCount 计数器.
18
- feat: 结构树界面显示时不隐藏按钮
19
- feat: 添加几何加载完毕后回调列表 geometryDrawFinish,使用方式如下:
24
+ - feat: 添加模型截取功能,具体示例请看模型截取示例
25
+ - feat: lightModel 添加 streamToSegmentRunningCount 计数器.
26
+ - feat: 结构树界面显示时不隐藏按钮
27
+ - feat: 添加几何加载完毕后回调列表 geometryDrawFinish,使用方式如下:
20
28
 
21
29
  ```js
22
30
  viewer.geometryDrawFinish.add(() => {
@@ -24,11 +32,11 @@ viewer.geometryDrawFinish.add(() => {
24
32
  });
25
33
  ```
26
34
 
27
- fix: 修复在打开批注面板然后关闭批注面板,恢复一个保存了批注的视点,无法恢复批注且控制台报错
28
- fix: 修复 ensureSegmentAsynGeometry 的异步逻辑
29
- fix: 修复 isBusyLocked 状态,在同时使用右键、中键时,重复按下、松开右键,会导致 viewer.isBusy 状态异常的问题;现在只有在 3 个按键都松开的情况下,解除 isBusyLock.
30
- fix: 修复 onTaskProcessingFinished 修改 runningCount 计数使用的 viewer 对象错误的问题.
31
- fix: 增加字体包重复加载判断
35
+ - fix: 修复在打开批注面板然后关闭批注面板,恢复一个保存了批注的视点,无法恢复批注且控制台报错
36
+ - fix: 修复 ensureSegmentAsynGeometry 的异步逻辑
37
+ - fix: 修复 isBusyLocked 状态,在同时使用右键、中键时,重复按下、松开右键,会导致 viewer.isBusy 状态异常的问题;现在只有在 3 个按键都松开的情况下,解除 isBusyLock.
38
+ - fix: 修复 onTaskProcessingFinished 修改 runningCount 计数使用的 viewer 对象错误的问题.
39
+ - fix: 增加字体包重复加载判断
32
40
 
33
41
  ### 2.0.0-beta.13
34
42
 
package/docs/README.md CHANGED
@@ -9,6 +9,7 @@ gs-bim-air
9
9
  - [Animation](modules/Animation.md)
10
10
  - [Germetry](modules/Germetry.md)
11
11
  - [Longan](modules/Longan.md)
12
+ - [SDK](modules/SDK.md)
12
13
 
13
14
  ### Enumerations
14
15
 
@@ -18,6 +18,7 @@
18
18
 
19
19
  ### Properties
20
20
 
21
+ - [bufferingGeometryCount](Longan.LonganCore.Viewer.md#bufferinggeometrycount)
21
22
  - [canvas](Longan.LonganCore.Viewer.md#canvas)
22
23
  - [collisionComputed](Longan.LonganCore.Viewer.md#collisioncomputed)
23
24
  - [collisionComputing](Longan.LonganCore.Viewer.md#collisioncomputing)
@@ -126,6 +127,14 @@
126
127
 
127
128
  ## Properties
128
129
 
130
+ ### bufferingGeometryCount
131
+
132
+ • **bufferingGeometryCount**: `number` = `0`
133
+
134
+ 正在buffer的几何数据数量.
135
+
136
+ ___
137
+
129
138
  ### canvas
130
139
 
131
140
  • **canvas**: `HTMLCanvasElement`
@@ -21,6 +21,7 @@
21
21
  ### Properties
22
22
 
23
23
  - [aysnTaskManager](Longan.Viewer.md#aysntaskmanager)
24
+ - [bufferingGeometryCount](Longan.Viewer.md#bufferinggeometrycount)
24
25
  - [canvas](Longan.Viewer.md#canvas)
25
26
  - [collisionComputed](Longan.Viewer.md#collisioncomputed)
26
27
  - [collisionComputing](Longan.Viewer.md#collisioncomputing)
@@ -214,6 +215,18 @@
214
215
 
215
216
  ___
216
217
 
218
+ ### bufferingGeometryCount
219
+
220
+ • **bufferingGeometryCount**: `number` = `0`
221
+
222
+ 正在buffer的几何数据数量.
223
+
224
+ #### Inherited from
225
+
226
+ [Viewer](Longan.LonganCore.Viewer.md).[bufferingGeometryCount](Longan.LonganCore.Viewer.md#bufferinggeometrycount)
227
+
228
+ ___
229
+
217
230
  ### canvas
218
231
 
219
232
  • **canvas**: `HTMLCanvasElement`
@@ -0,0 +1,166 @@
1
+ [gs-bim-air](../README.md) / [SDK](../modules/SDK.md) / Model
2
+
3
+ # Class: Model
4
+
5
+ [SDK](../modules/SDK.md).Model
6
+
7
+ ## Table of contents
8
+
9
+ ### Constructors
10
+
11
+ - [constructor](SDK.Model.md#constructor)
12
+
13
+ ### Properties
14
+
15
+ - [viewer](SDK.Model.md#viewer)
16
+
17
+ ### Methods
18
+
19
+ - [findGeometrs](SDK.Model.md#findgeometrs)
20
+ - [findOwnerStyleSegments](SDK.Model.md#findownerstylesegments)
21
+ - [findSubStyleSegments](SDK.Model.md#findsubstylesegments)
22
+ - [getNumber](SDK.Model.md#getnumber)
23
+ - [getShellCutInfo](SDK.Model.md#getshellcutinfo)
24
+ - [slice](SDK.Model.md#slice)
25
+ - [sliceOneSegmentObject](SDK.Model.md#sliceonesegmentobject)
26
+
27
+ ## Constructors
28
+
29
+ ### constructor
30
+
31
+ • **new Model**()
32
+
33
+ ## Properties
34
+
35
+ ### viewer
36
+
37
+ ▪ `Static` **viewer**: [`Viewer`](Viewer.md)
38
+
39
+ ## Methods
40
+
41
+ ### findGeometrs
42
+
43
+ ▸ `Static` **findGeometrs**(`segment`, `geometries`): `void`
44
+
45
+ #### Parameters
46
+
47
+ | Name | Type |
48
+ | :------ | :------ |
49
+ | `segment` | [`Segment`](Longan.Segment.md) |
50
+ | `geometries` | [`Geometry`](Longan.Geometry.md)[] |
51
+
52
+ #### Returns
53
+
54
+ `void`
55
+
56
+ ___
57
+
58
+ ### findOwnerStyleSegments
59
+
60
+ ▸ `Static` **findOwnerStyleSegments**(`segment`, `styleSegments`, `faceColors`): `void`
61
+
62
+ #### Parameters
63
+
64
+ | Name | Type |
65
+ | :------ | :------ |
66
+ | `segment` | [`Segment`](Longan.Segment.md) |
67
+ | `styleSegments` | [`Segment`](Longan.Segment.md)[] |
68
+ | `faceColors` | `ArrayLike`<`number`\>[] |
69
+
70
+ #### Returns
71
+
72
+ `void`
73
+
74
+ ___
75
+
76
+ ### findSubStyleSegments
77
+
78
+ ▸ `Static` **findSubStyleSegments**(`segment`, `styleSegments`, `faceColors`): `void`
79
+
80
+ #### Parameters
81
+
82
+ | Name | Type |
83
+ | :------ | :------ |
84
+ | `segment` | [`Segment`](Longan.Segment.md) |
85
+ | `styleSegments` | [`Segment`](Longan.Segment.md)[] |
86
+ | `faceColors` | `ArrayLike`<`number`\>[] |
87
+
88
+ #### Returns
89
+
90
+ `void`
91
+
92
+ ___
93
+
94
+ ### getNumber
95
+
96
+ ▸ `Static` **getNumber**(`str`): `number`
97
+
98
+ #### Parameters
99
+
100
+ | Name | Type |
101
+ | :------ | :------ |
102
+ | `str` | `string` |
103
+
104
+ #### Returns
105
+
106
+ `number`
107
+
108
+ ___
109
+
110
+ ### getShellCutInfo
111
+
112
+ ▸ `Static` **getShellCutInfo**(`sliceDist`, `linePositions`, `shellGeoNormals`): `Object`
113
+
114
+ #### Parameters
115
+
116
+ | Name | Type |
117
+ | :------ | :------ |
118
+ | `sliceDist` | `number` |
119
+ | `linePositions` | `number`[] |
120
+ | `shellGeoNormals` | `Float64Array` |
121
+
122
+ #### Returns
123
+
124
+ `Object`
125
+
126
+ | Name | Type |
127
+ | :------ | :------ |
128
+ | `cutPoint` | `any` |
129
+ | `cutVector` | `any` |
130
+
131
+ ___
132
+
133
+ ### slice
134
+
135
+ ▸ `Static` **slice**(`viewer`, `sliceParams`, `modelName?`, `isInsert?`): `Promise`<`File`\>
136
+
137
+ #### Parameters
138
+
139
+ | Name | Type | Default value | Description |
140
+ | :------ | :------ | :------ | :------ |
141
+ | `viewer` | [`Viewer`](Viewer.md) | `undefined` | 当前viewer |
142
+ | `sliceParams` | `SliceParam`[] | `undefined` | 截取参数数组 |
143
+ | `modelName` | `string` | `"测试模型"` | 生成的模型名字 |
144
+ | `isInsert` | `boolean` | `false` | 是否把生成的模型插入当前项目 |
145
+
146
+ #### Returns
147
+
148
+ `Promise`<`File`\>
149
+
150
+ ___
151
+
152
+ ### sliceOneSegmentObject
153
+
154
+ ▸ `Static` **sliceOneSegmentObject**(`viewer`, `lightModel`, `sliceParam`): `Promise`<{ `indexes`: `Int32Array` ; `positions`: `Float64Array` }[]\>
155
+
156
+ #### Parameters
157
+
158
+ | Name | Type |
159
+ | :------ | :------ |
160
+ | `viewer` | [`Viewer`](Viewer.md) |
161
+ | `lightModel` | [`LightModel`](LightModel.md) |
162
+ | `sliceParam` | `SliceParam` |
163
+
164
+ #### Returns
165
+
166
+ `Promise`<{ `indexes`: `Int32Array` ; `positions`: `Float64Array` }[]\>
@@ -19,6 +19,7 @@
19
19
  ### Properties
20
20
 
21
21
  - [aysnTaskManager](Viewer.md#aysntaskmanager)
22
+ - [bufferingGeometryCount](Viewer.md#bufferinggeometrycount)
22
23
  - [canvas](Viewer.md#canvas)
23
24
  - [collisionComputed](Viewer.md#collisioncomputed)
24
25
  - [collisionComputing](Viewer.md#collisioncomputing)
@@ -248,6 +249,18 @@
248
249
 
249
250
  ___
250
251
 
252
+ ### bufferingGeometryCount
253
+
254
+ • **bufferingGeometryCount**: `number` = `0`
255
+
256
+ 正在buffer的几何数据数量.
257
+
258
+ #### Inherited from
259
+
260
+ [Viewer](Longan.Viewer.md).[bufferingGeometryCount](Longan.Viewer.md#bufferinggeometrycount)
261
+
262
+ ___
263
+
251
264
  ### canvas
252
265
 
253
266
  • **canvas**: `HTMLCanvasElement`
@@ -0,0 +1,9 @@
1
+ [gs-bim-air](../README.md) / SDK
2
+
3
+ # Namespace: SDK
4
+
5
+ ## Table of contents
6
+
7
+ ### Classes
8
+
9
+ - [Model](../classes/SDK.Model.md)