@glowjs/core 2024.9.5 → 2024.9.21
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 +41 -3
- package/dist/glow.core.js +1 -1
- package/dist/typings/entity/Floor.d.ts +4 -0
- package/dist/typings/entity/POI.d.ts +13 -1
- package/dist/typings/entity/Thing.d.ts +13 -1
- package/dist/typings/entity/component/Animator.d.ts +3 -0
- package/dist/typings/event/EventType.d.ts +9 -1
- package/package.json +1 -1
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { App } from "../core/App";
|
|
2
2
|
import { Entity } from "./Entity";
|
|
3
|
+
import { Point2D } from "../misc/Point2D";
|
|
3
4
|
/**
|
|
4
5
|
* POI标记
|
|
5
6
|
*/
|
|
@@ -28,6 +29,10 @@ export declare class POI extends Entity {
|
|
|
28
29
|
* 像素宽度
|
|
29
30
|
*/
|
|
30
31
|
pixWidth: number;
|
|
32
|
+
/**
|
|
33
|
+
* 是否默认隐藏
|
|
34
|
+
*/
|
|
35
|
+
defaultHidden: boolean;
|
|
31
36
|
/**
|
|
32
37
|
* 像素高度
|
|
33
38
|
*/
|
|
@@ -41,6 +46,8 @@ export declare class POI extends Entity {
|
|
|
41
46
|
private _pointerUpObserver;
|
|
42
47
|
private _mesh;
|
|
43
48
|
private _showBoundingBox;
|
|
49
|
+
private _visable;
|
|
50
|
+
private _pivot;
|
|
44
51
|
/**
|
|
45
52
|
* 上一次点击的时间点,用于计算双击事件
|
|
46
53
|
*/
|
|
@@ -50,9 +57,13 @@ export declare class POI extends Entity {
|
|
|
50
57
|
* @param app 应用
|
|
51
58
|
*/
|
|
52
59
|
constructor(app: App);
|
|
53
|
-
private _visable;
|
|
54
60
|
get visable(): boolean;
|
|
55
61
|
set visable(value: boolean);
|
|
62
|
+
/**
|
|
63
|
+
* 获取或设置轴心点
|
|
64
|
+
*/
|
|
65
|
+
get pivot(): Point2D;
|
|
66
|
+
set pivot(value: Point2D);
|
|
56
67
|
get pickable(): boolean;
|
|
57
68
|
set pickable(value: boolean);
|
|
58
69
|
get cursor(): string;
|
|
@@ -66,5 +77,6 @@ export declare class POI extends Entity {
|
|
|
66
77
|
private _build2D;
|
|
67
78
|
private _onResize;
|
|
68
79
|
private _build3D;
|
|
80
|
+
private _updatePovit;
|
|
69
81
|
dispose(): void;
|
|
70
82
|
}
|
|
@@ -58,12 +58,24 @@ export declare class Thing extends Entity {
|
|
|
58
58
|
* 父物体计算包围盒时是否排除此物体
|
|
59
59
|
*/
|
|
60
60
|
excludeBoundingBox: boolean;
|
|
61
|
-
private _autoAnimationLoopIndex;
|
|
62
61
|
/**
|
|
63
62
|
* 获取或设置自动动画循环索引
|
|
63
|
+
* @deprecated 已废弃,请使用新属性defaultAnimation
|
|
64
64
|
*/
|
|
65
65
|
get autoAnimationLoopIndex(): number;
|
|
66
66
|
set autoAnimationLoopIndex(value: number);
|
|
67
|
+
private _defaultAnimation;
|
|
68
|
+
/**
|
|
69
|
+
* 获取或设置默认动画
|
|
70
|
+
*/
|
|
71
|
+
get defaultAnimation(): {
|
|
72
|
+
index: number;
|
|
73
|
+
loop: boolean;
|
|
74
|
+
} | null;
|
|
75
|
+
set defaultAnimation(value: {
|
|
76
|
+
index: number;
|
|
77
|
+
loop: boolean;
|
|
78
|
+
} | null);
|
|
67
79
|
protected _entites: InstantiatedEntries;
|
|
68
80
|
/**
|
|
69
81
|
* 是否包含实例网格
|
|
@@ -5,6 +5,8 @@ import { Entity } from '../Entity';
|
|
|
5
5
|
* 动画组件
|
|
6
6
|
*/
|
|
7
7
|
export declare class Animator extends Component {
|
|
8
|
+
private _playObserves;
|
|
9
|
+
private _endObserves;
|
|
8
10
|
/**
|
|
9
11
|
* 实例化一个动画组件对象
|
|
10
12
|
* @param entity 实体
|
|
@@ -42,4 +44,5 @@ export declare class Animator extends Component {
|
|
|
42
44
|
set doorState(value: boolean);
|
|
43
45
|
_updateAll(): void;
|
|
44
46
|
_unbuild(): void;
|
|
47
|
+
_setEvents(): void;
|
|
45
48
|
}
|
|
@@ -157,5 +157,13 @@ export declare enum EventType {
|
|
|
157
157
|
/**
|
|
158
158
|
* 实体释放前(Entity)
|
|
159
159
|
*/
|
|
160
|
-
BeforeDispose = "BEFORE_DISPOSE"
|
|
160
|
+
BeforeDispose = "BEFORE_DISPOSE",
|
|
161
|
+
/**
|
|
162
|
+
* 动画开始事件(Thing)
|
|
163
|
+
*/
|
|
164
|
+
AnimationStart = "ANIMATION_START",
|
|
165
|
+
/**
|
|
166
|
+
* 动画结束事件(Thing)
|
|
167
|
+
*/
|
|
168
|
+
AnimationEnd = "ANIMATION_END"
|
|
161
169
|
}
|