@glowjs/core 2024.11.16 → 2024.12.10

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.
@@ -27,10 +27,6 @@ export declare class CameraMgr extends Base {
27
27
  * 是否锁定拖动的灵敏度(直径小于5时生效,用于资产模型编辑)
28
28
  */
29
29
  lockPanning: boolean;
30
- /**
31
- * 获取或设置跟随对象
32
- */
33
- followObj: Entity;
34
30
  /**
35
31
  * 自动旋转
36
32
  */
@@ -49,6 +45,7 @@ export declare class CameraMgr extends Base {
49
45
  */
50
46
  get person(): CameraPerson;
51
47
  set person(value: CameraPerson);
48
+ _setCameraByRoaming(): Promise<void>;
52
49
  /**
53
50
  * 获取相机是否在飞行
54
51
  */
@@ -281,7 +278,6 @@ export declare class CameraMgr extends Base {
281
278
  * @param target 新目标
282
279
  */
283
280
  setTarget(target: Point3D): void;
284
- private _flyToFollowObj;
285
281
  private _onPerspectiveUpdate;
286
282
  private _onOrthographicUpdate;
287
283
  private _onUpdate;
@@ -26,6 +26,10 @@ export declare class Building extends Entity {
26
26
  * 获取楼层是否已经展开
27
27
  */
28
28
  expanded: boolean;
29
+ /**
30
+ * 进入建筑是否显示外立面和楼层链接(仅在存在楼层链接时生效)
31
+ */
32
+ showFacadesAndLinks: boolean;
29
33
  /**
30
34
  * 合并网格的父节点
31
35
  */
@@ -19,6 +19,10 @@ export declare class Entity extends Base {
19
19
  protected _cursor: string;
20
20
  _boundingInfoNode: TransformNode;
21
21
  protected _boxContainer: TransformNode;
22
+ /**
23
+ * 最大观察距离(包围球半径倍数)
24
+ */
25
+ maxRadiusScale: number;
22
26
  /**
23
27
  * 包围盒
24
28
  */
@@ -18,6 +18,11 @@ export declare class PathAnimation extends Component {
18
18
  private _eventDispatcher;
19
19
  private _pause;
20
20
  private _offset;
21
+ private _prevDir;
22
+ private _deltaAngle;
23
+ private _angleSpeed;
24
+ private _cross;
25
+ private _target;
21
26
  /**
22
27
  * 获取垂直偏移
23
28
  */
@@ -28,6 +28,18 @@ export declare class Roaming extends Component {
28
28
  */
29
29
  get offsetY(): number;
30
30
  set offsetY(value: number);
31
+ /**
32
+ * 相机水平方向角度默认值
33
+ */
34
+ static defaultAlpha: number;
35
+ /**
36
+ * 相机垂直方向角度默认值
37
+ */
38
+ static defaultBeta: number;
39
+ /**
40
+ * 相机到角色距离默认值
41
+ */
42
+ static defaultRadius: number;
31
43
  /**
32
44
  * 实例化一个漫游对象
33
45
  * @param entity 实体对象
@@ -45,4 +45,9 @@ export declare class Path extends Entity {
45
45
  * 移除拖动功能
46
46
  */
47
47
  detachDrag(): void;
48
+ /**
49
+ * 设置透明度
50
+ * @param value 透明度
51
+ */
52
+ setAlpha(value: number): void;
48
53
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@glowjs/core",
3
- "version": "2024.11.16",
3
+ "version": "2024.12.10",
4
4
  "description": "GlowJS数字孪生引擎核心库。",
5
5
  "main": "./dist/glow.core.js",
6
6
  "types": "./dist/typings/index.d.ts",