@glowjs/core 2025.8.13 → 2025.8.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 +16 -6
- package/dist/glow.core.js +1 -1
- package/dist/typings/camera/CameraMgr.d.ts +2 -0
- package/dist/typings/entity/Floor.d.ts +5 -5
- package/dist/typings/entity/Thing.d.ts +1 -1
- package/dist/typings/entity/component/Animator.d.ts +4 -0
- package/dist/typings/entity/component/roaming/Roaming.d.ts +4 -0
- package/package.json +1 -1
package/dist/glow.core.d.ts
CHANGED
|
@@ -747,6 +747,10 @@ export declare class Animator extends Component {
|
|
|
747
747
|
* @param entity 实体
|
|
748
748
|
*/
|
|
749
749
|
constructor(entity: Entity);
|
|
750
|
+
/**
|
|
751
|
+
* 获取是否正在播放
|
|
752
|
+
*/
|
|
753
|
+
get isPlaying(): boolean;
|
|
750
754
|
/**
|
|
751
755
|
* 获取动画组列表
|
|
752
756
|
*/
|
|
@@ -1854,6 +1858,8 @@ export declare class CameraMgr extends Base {
|
|
|
1854
1858
|
* @param app 应用
|
|
1855
1859
|
*/
|
|
1856
1860
|
constructor(app: App);
|
|
1861
|
+
/** 当前层级Y轴世界坐标 */
|
|
1862
|
+
get levelWorldY(): number;
|
|
1857
1863
|
/**
|
|
1858
1864
|
* 获取或设置人称
|
|
1859
1865
|
*/
|
|
@@ -3250,7 +3256,7 @@ export declare class Floor extends Entity {
|
|
|
3250
3256
|
/**
|
|
3251
3257
|
* 获取当前层级的所有图层
|
|
3252
3258
|
*/
|
|
3253
|
-
get layers():
|
|
3259
|
+
get layers(): string[];
|
|
3254
3260
|
/**
|
|
3255
3261
|
* 序列化成JSON对象
|
|
3256
3262
|
*/
|
|
@@ -3295,14 +3301,14 @@ export declare class Floor extends Entity {
|
|
|
3295
3301
|
dispose(): void;
|
|
3296
3302
|
/**
|
|
3297
3303
|
* 创建指定图层
|
|
3298
|
-
* @param
|
|
3304
|
+
* @param layers 图层列表
|
|
3299
3305
|
*/
|
|
3300
|
-
|
|
3306
|
+
createLayers(...layers: string[]): Promise<void>;
|
|
3301
3307
|
/**
|
|
3302
3308
|
* 销毁指定图层
|
|
3303
|
-
* @param layer
|
|
3309
|
+
* @param layer 图层列表
|
|
3304
3310
|
*/
|
|
3305
|
-
|
|
3311
|
+
destroyLayers(...layers: string[]): Promise<void>;
|
|
3306
3312
|
}
|
|
3307
3313
|
/**
|
|
3308
3314
|
* 雾效
|
|
@@ -4759,6 +4765,10 @@ export declare class Roaming extends Component {
|
|
|
4759
4765
|
* 结束路径编辑
|
|
4760
4766
|
*/
|
|
4761
4767
|
endPathEdit(): Promise<void>;
|
|
4768
|
+
/**
|
|
4769
|
+
* 清空路径
|
|
4770
|
+
*/
|
|
4771
|
+
clearPath(): void;
|
|
4762
4772
|
}
|
|
4763
4773
|
/**
|
|
4764
4774
|
* 房间
|
|
@@ -5223,7 +5233,7 @@ export declare class Thing extends Entity {
|
|
|
5223
5233
|
/**
|
|
5224
5234
|
* 图层。默认物体无图层,切换场景时会被创建。当设置了图层时,场景切换时不会被创建。需要手动调用createLayer()和destroyLayer()方法。
|
|
5225
5235
|
*/
|
|
5226
|
-
layers: Set<
|
|
5236
|
+
layers: Set<string>;
|
|
5227
5237
|
/**
|
|
5228
5238
|
* 获取或设置自动动画循环索引
|
|
5229
5239
|
* @deprecated 已废弃,请使用新属性defaultAnimation
|