@glowjs/core 2024.6.11 → 2024.6.27

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.
@@ -3988,11 +3988,12 @@ export declare class ResPool extends Base {
3988
3988
  /**
3989
3989
  * 缓存
3990
3990
  */
3991
- private _cache;
3991
+ _cache: Map<string, ResCacheData>;
3992
3992
  /**
3993
3993
  * 加载中的资源列表
3994
3994
  */
3995
3995
  private _loadingList;
3996
+ private _assetContainerAdded;
3996
3997
  /**
3997
3998
  * 实例化一个资源池对象
3998
3999
  * @param app 应用
@@ -4002,7 +4003,7 @@ export declare class ResPool extends Base {
4002
4003
  * 加载指定资源
4003
4004
  * @param id 编号
4004
4005
  */
4005
- private _loadRes;
4006
+ _loadRes(info: ResOptions): Promise<void>;
4006
4007
  /**
4007
4008
  * 获取指定资源
4008
4009
  * @param id 编号
@@ -5630,6 +5631,10 @@ export type AppOptions = {
5630
5631
  * 根路径,默认为“/”
5631
5632
  */
5632
5633
  basePath?: string;
5634
+ /**
5635
+ * 是否禁止自动切换到第一个场景层级
5636
+ */
5637
+ doNotAutoToFirstLevel?: boolean;
5633
5638
  };
5634
5639
  export type ArchiveCabinetGroupCount = {
5635
5640
  /**
@@ -6123,6 +6128,19 @@ export type PropertyChangedData = {
6123
6128
  */
6124
6129
  newValue: any;
6125
6130
  };
6131
+ /**
6132
+ * 资源缓存数据
6133
+ */
6134
+ export type ResCacheData = {
6135
+ /**
6136
+ * 错误信息
6137
+ */
6138
+ err?: any;
6139
+ /**
6140
+ * 原始数据
6141
+ */
6142
+ data?: AssetContainer | NodeMaterial | any;
6143
+ };
6126
6144
  /**
6127
6145
  * 资产图片(字符串表示JSON字符串,对象表示文件)
6128
6146
  */
@@ -6213,6 +6231,10 @@ export type ResOptions = {
6213
6231
  * 贴图类型
6214
6232
  */
6215
6233
  textureType?: "panorama" | "background";
6234
+ /**
6235
+ * 资源类型
6236
+ */
6237
+ type?: string;
6216
6238
  };
6217
6239
  /**
6218
6240
  * 尺寸