@glowjs/core 2024.6.11 → 2024.6.14
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.
|
@@ -2,6 +2,7 @@ import { InstantiatedEntries, NodeMaterial, Texture } from '../runtime';
|
|
|
2
2
|
import { Base } from '../base/Base';
|
|
3
3
|
import { App } from '../core/App';
|
|
4
4
|
import { ResOptions } from './ResOptions';
|
|
5
|
+
import { ResCacheData } from './ResCacheData';
|
|
5
6
|
import '@babylonjs/core/Materials/Textures';
|
|
6
7
|
import { ParticleData } from '../effect/ParticleData';
|
|
7
8
|
/**
|
|
@@ -15,11 +16,12 @@ export declare class ResPool extends Base {
|
|
|
15
16
|
/**
|
|
16
17
|
* 缓存
|
|
17
18
|
*/
|
|
18
|
-
|
|
19
|
+
_cache: Map<string, ResCacheData>;
|
|
19
20
|
/**
|
|
20
21
|
* 加载中的资源列表
|
|
21
22
|
*/
|
|
22
23
|
private _loadingList;
|
|
24
|
+
private _assetContainerAdded;
|
|
23
25
|
/**
|
|
24
26
|
* 实例化一个资源池对象
|
|
25
27
|
* @param app 应用
|
|
@@ -29,7 +31,7 @@ export declare class ResPool extends Base {
|
|
|
29
31
|
* 加载指定资源
|
|
30
32
|
* @param id 编号
|
|
31
33
|
*/
|
|
32
|
-
|
|
34
|
+
_loadRes(info: ResOptions): Promise<void>;
|
|
33
35
|
/**
|
|
34
36
|
* 获取指定资源
|
|
35
37
|
* @param id 编号
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@glowjs/core",
|
|
3
|
-
"version": "2024.06.
|
|
3
|
+
"version": "2024.06.14",
|
|
4
4
|
"description": "GlowJS数字孪生引擎核心库。",
|
|
5
5
|
"main": "./dist/glow.core.js",
|
|
6
6
|
"types": "./dist/typings/index.d.ts",
|
|
@@ -47,11 +47,11 @@
|
|
|
47
47
|
"license": "ISC",
|
|
48
48
|
"dependencies": {
|
|
49
49
|
"@babel/plugin-transform-runtime": "7.18.10",
|
|
50
|
-
"@babylonjs/core": "7.
|
|
51
|
-
"@babylonjs/gui": "7.
|
|
52
|
-
"@babylonjs/inspector": "7.
|
|
53
|
-
"@babylonjs/loaders": "7.
|
|
54
|
-
"@babylonjs/materials": "7.
|
|
50
|
+
"@babylonjs/core": "7.11.0",
|
|
51
|
+
"@babylonjs/gui": "7.11.0",
|
|
52
|
+
"@babylonjs/inspector": "7.11.0",
|
|
53
|
+
"@babylonjs/loaders": "7.11.0",
|
|
54
|
+
"@babylonjs/materials": "7.11.0",
|
|
55
55
|
"@tweenjs/tween.js": "18.6.4",
|
|
56
56
|
"earcut": "2.2.2",
|
|
57
57
|
"heatmap.js": "2.0.5",
|