@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.
- package/dist/glow.core.d.ts +39 -5
- package/dist/glow.core.js +1 -1
- package/dist/typings/camera/CameraMgr.d.ts +1 -5
- package/dist/typings/entity/Building.d.ts +4 -0
- package/dist/typings/entity/Entity.d.ts +4 -0
- package/dist/typings/entity/component/PathAnimation.d.ts +5 -0
- package/dist/typings/entity/component/roaming/Roaming.d.ts +12 -0
- package/dist/typings/entity/path/Path.d.ts +5 -0
- package/package.json +1 -1
package/dist/glow.core.d.ts
CHANGED
|
@@ -1446,6 +1446,10 @@ export declare class Building extends Entity {
|
|
|
1446
1446
|
* 获取楼层是否已经展开
|
|
1447
1447
|
*/
|
|
1448
1448
|
expanded: boolean;
|
|
1449
|
+
/**
|
|
1450
|
+
* 进入建筑是否显示外立面和楼层链接(仅在存在楼层链接时生效)
|
|
1451
|
+
*/
|
|
1452
|
+
showFacadesAndLinks: boolean;
|
|
1449
1453
|
/**
|
|
1450
1454
|
* 合并网格的父节点
|
|
1451
1455
|
*/
|
|
@@ -1735,10 +1739,6 @@ export declare class CameraMgr extends Base {
|
|
|
1735
1739
|
* 是否锁定拖动的灵敏度(直径小于5时生效,用于资产模型编辑)
|
|
1736
1740
|
*/
|
|
1737
1741
|
lockPanning: boolean;
|
|
1738
|
-
/**
|
|
1739
|
-
* 获取或设置跟随对象
|
|
1740
|
-
*/
|
|
1741
|
-
followObj: Entity;
|
|
1742
1742
|
/**
|
|
1743
1743
|
* 自动旋转
|
|
1744
1744
|
*/
|
|
@@ -1757,6 +1757,7 @@ export declare class CameraMgr extends Base {
|
|
|
1757
1757
|
*/
|
|
1758
1758
|
get person(): CameraPerson;
|
|
1759
1759
|
set person(value: CameraPerson);
|
|
1760
|
+
_setCameraByRoaming(): Promise<void>;
|
|
1760
1761
|
/**
|
|
1761
1762
|
* 获取相机是否在飞行
|
|
1762
1763
|
*/
|
|
@@ -2003,7 +2004,6 @@ export declare class CameraMgr extends Base {
|
|
|
2003
2004
|
* @param target 新目标
|
|
2004
2005
|
*/
|
|
2005
2006
|
setTarget(target: Point3D): void;
|
|
2006
|
-
private _flyToFollowObj;
|
|
2007
2007
|
private _onPerspectiveUpdate;
|
|
2008
2008
|
private _onOrthographicUpdate;
|
|
2009
2009
|
private _onUpdate;
|
|
@@ -2314,6 +2314,14 @@ export declare class DistanceTool {
|
|
|
2314
2314
|
* 提示文本颜色
|
|
2315
2315
|
*/
|
|
2316
2316
|
tipColor: string;
|
|
2317
|
+
/**
|
|
2318
|
+
* 提示文本X轴偏移,默认值0
|
|
2319
|
+
*/
|
|
2320
|
+
tipOffsetX: number;
|
|
2321
|
+
/**
|
|
2322
|
+
* 提示文本Y轴偏移,默认值0
|
|
2323
|
+
*/
|
|
2324
|
+
tipOffsetY: number;
|
|
2317
2325
|
/**
|
|
2318
2326
|
* 线颜色
|
|
2319
2327
|
*/
|
|
@@ -2497,6 +2505,10 @@ export declare class Entity extends Base {
|
|
|
2497
2505
|
protected _cursor: string;
|
|
2498
2506
|
_boundingInfoNode: TransformNode;
|
|
2499
2507
|
protected _boxContainer: TransformNode;
|
|
2508
|
+
/**
|
|
2509
|
+
* 最大观察距离(包围球半径倍数)
|
|
2510
|
+
*/
|
|
2511
|
+
maxRadiusScale: number;
|
|
2500
2512
|
/**
|
|
2501
2513
|
* 包围盒
|
|
2502
2514
|
*/
|
|
@@ -3906,6 +3918,11 @@ export declare class Path extends Entity {
|
|
|
3906
3918
|
* 移除拖动功能
|
|
3907
3919
|
*/
|
|
3908
3920
|
detachDrag(): void;
|
|
3921
|
+
/**
|
|
3922
|
+
* 设置透明度
|
|
3923
|
+
* @param value 透明度
|
|
3924
|
+
*/
|
|
3925
|
+
setAlpha(value: number): void;
|
|
3909
3926
|
}
|
|
3910
3927
|
/**
|
|
3911
3928
|
* 路径动画
|
|
@@ -3924,6 +3941,11 @@ export declare class PathAnimation extends Component {
|
|
|
3924
3941
|
private _eventDispatcher;
|
|
3925
3942
|
private _pause;
|
|
3926
3943
|
private _offset;
|
|
3944
|
+
private _prevDir;
|
|
3945
|
+
private _deltaAngle;
|
|
3946
|
+
private _angleSpeed;
|
|
3947
|
+
private _cross;
|
|
3948
|
+
private _target;
|
|
3927
3949
|
/**
|
|
3928
3950
|
* 获取垂直偏移
|
|
3929
3951
|
*/
|
|
@@ -4280,6 +4302,18 @@ export declare class Roaming extends Component {
|
|
|
4280
4302
|
*/
|
|
4281
4303
|
get offsetY(): number;
|
|
4282
4304
|
set offsetY(value: number);
|
|
4305
|
+
/**
|
|
4306
|
+
* 相机水平方向角度默认值
|
|
4307
|
+
*/
|
|
4308
|
+
static defaultAlpha: number;
|
|
4309
|
+
/**
|
|
4310
|
+
* 相机垂直方向角度默认值
|
|
4311
|
+
*/
|
|
4312
|
+
static defaultBeta: number;
|
|
4313
|
+
/**
|
|
4314
|
+
* 相机到角色距离默认值
|
|
4315
|
+
*/
|
|
4316
|
+
static defaultRadius: number;
|
|
4283
4317
|
/**
|
|
4284
4318
|
* 实例化一个漫游对象
|
|
4285
4319
|
* @param entity 实体对象
|