@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
|
@@ -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;
|
|
@@ -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 实体对象
|