@glowjs/core 2025.8.8 → 2025.8.15

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.
@@ -3247,6 +3247,10 @@ export declare class Floor extends Entity {
3247
3247
  * 获取所有路径
3248
3248
  */
3249
3249
  get paths(): Path[];
3250
+ /**
3251
+ * 获取当前层级的所有图层
3252
+ */
3253
+ get layers(): string[];
3250
3254
  /**
3251
3255
  * 序列化成JSON对象
3252
3256
  */
@@ -3291,14 +3295,14 @@ export declare class Floor extends Entity {
3291
3295
  dispose(): void;
3292
3296
  /**
3293
3297
  * 创建指定图层
3294
- * @param layer 图层
3298
+ * @param layers 图层列表
3295
3299
  */
3296
- createLayer(layer: number): Promise<void>;
3300
+ createLayers(...layers: string[]): Promise<void>;
3297
3301
  /**
3298
3302
  * 销毁指定图层
3299
- * @param layer 图层
3303
+ * @param layer 图层列表
3300
3304
  */
3301
- destroyLayer(layer: number): Promise<void>;
3305
+ destroyLayers(...layers: string[]): Promise<void>;
3302
3306
  }
3303
3307
  /**
3304
3308
  * 雾效
@@ -5219,7 +5223,7 @@ export declare class Thing extends Entity {
5219
5223
  /**
5220
5224
  * 图层。默认物体无图层,切换场景时会被创建。当设置了图层时,场景切换时不会被创建。需要手动调用createLayer()和destroyLayer()方法。
5221
5225
  */
5222
- layers: Set<number>;
5226
+ layers: Set<string>;
5223
5227
  /**
5224
5228
  * 获取或设置自动动画循环索引
5225
5229
  * @deprecated 已废弃,请使用新属性defaultAnimation