gs-bim-air 1.6.1-beta.78 → 1.6.1-beta.79

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,9 @@
1
1
  ## BIMAir 更新日志
2
2
 
3
+ ### 1.6.1-beta.79
4
+
5
+ - feat: objectRoamWithoutRotate 添加 camera 跟随
6
+
3
7
  ### 1.6.1-beta.78
4
8
 
5
9
  - feat: 修改 cae 后处理功能,改用表面模型
@@ -30,11 +30,13 @@
30
30
  ### Methods
31
31
 
32
32
  - [cameraRoamPath](AnimationManager.md#cameraroampath)
33
+ - [computeWidthAndHeight](AnimationManager.md#computewidthandheight)
33
34
  - [drawPointsCurve](AnimationManager.md#drawpointscurve)
34
35
  - [drawStraight](AnimationManager.md#drawstraight)
35
36
  - [existAnime](AnimationManager.md#existanime)
36
37
  - [getPlayingPercent](AnimationManager.md#getplayingpercent)
37
38
  - [objectRoamWithoutRotate](AnimationManager.md#objectroamwithoutrotate)
39
+ - [objectRoamWithoutRotate\_CameraFollow](AnimationManager.md#objectroamwithoutrotate_camerafollow)
38
40
  - [pauseAnime](AnimationManager.md#pauseanime)
39
41
  - [removeAnime](AnimationManager.md#removeanime)
40
42
  - [resetAnimationItems](AnimationManager.md#resetanimationitems)
@@ -164,6 +166,23 @@ Longan.AnimationManager.process
164
166
 
165
167
  ___
166
168
 
169
+ ### computeWidthAndHeight
170
+
171
+ ▸ **computeWidthAndHeight**(`viewer`, `segmentObject`): `number`
172
+
173
+ #### Parameters
174
+
175
+ | Name | Type |
176
+ | :------ | :------ |
177
+ | `viewer` | [`Viewer`](Viewer.md) |
178
+ | `segmentObject` | [`SegmentObject`](SegmentObject.md) |
179
+
180
+ #### Returns
181
+
182
+ `number`
183
+
184
+ ___
185
+
167
186
  ### drawPointsCurve
168
187
 
169
188
  ▸ **drawPointsCurve**(`viewer`, `points`): `void`
@@ -267,6 +286,33 @@ ___
267
286
 
268
287
  ___
269
288
 
289
+ ### objectRoamWithoutRotate\_CameraFollow
290
+
291
+ ▸ **objectRoamWithoutRotate_CameraFollow**(`viewer`, `segmentObject`, `points`, `roamTime`, `pathType`, `isCameraFollow`, `cameraOffset`, `finishEvent?`): `string`
292
+
293
+ 只平移的路径动画.
294
+
295
+ #### Parameters
296
+
297
+ | Name | Type | Description |
298
+ | :------ | :------ | :------ |
299
+ | `viewer` | [`Viewer`](Viewer.md) | BimAir的viewer |
300
+ | `segmentObject` | [`SegmentObject`](SegmentObject.md) | 动画移动的对象 |
301
+ | `points` | [`Point`](Longan.Point.md)[] | 路径点列表 |
302
+ | `roamTime` | `number` | 动画时间 |
303
+ | `pathType` | `PathType` | 路径类型(直线/曲线) |
304
+ | `isCameraFollow` | `boolean` | 相机是否跟随 |
305
+ | `cameraOffset` | `Float64Array` | 相机偏移:[x方向:通过y叉乘z得出,y方向:运动路径前方,z方向:通常是(0,0,1)] |
306
+ | `finishEvent?` | () => `void` | 结束事件 |
307
+
308
+ #### Returns
309
+
310
+ `string`
311
+
312
+ 动画的Id
313
+
314
+ ___
315
+
270
316
  ### pauseAnime
271
317
 
272
318
  ▸ **pauseAnime**(`id`): `number`