@glowjs/core 2025.6.30 → 2025.7.8

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.
@@ -25,10 +25,6 @@ export declare class Building extends Entity {
25
25
  * 链接名称
26
26
  */
27
27
  linkName: string | null;
28
- /**
29
- * 是否总是显示建筑结构
30
- */
31
- alwaysShowStructure: boolean;
32
28
  /**
33
29
  * 获取楼层是否已经展开
34
30
  */
@@ -23,10 +23,6 @@ export declare class Floor extends Entity {
23
23
  * 墙默认厚度
24
24
  */
25
25
  defaultWallThickness: number;
26
- /**
27
- * 是否总是显示内部结构
28
- */
29
- alwaysShowInside: boolean;
30
26
  /**
31
27
  * 是否隐藏所有房间地板(编辑器用)
32
28
  */
@@ -11,6 +11,8 @@ import { ArchiveGrid } from './ArchiveGrid';
11
11
  * 密集架组(库区)
12
12
  */
13
13
  export declare class ArchiveCabinetGroup extends Component {
14
+ /** 密集架位置移动缓动时间 */
15
+ static positionTweenTime: number;
14
16
  /**
15
17
  * 获取或设置数据
16
18
  */
@@ -88,5 +88,6 @@ export { ResPool } from './res/ResPool';
88
88
  export { ResOptions } from './res/ResOptions';
89
89
  export { ParticleData } from './effect/ParticleData';
90
90
  export { DistanceTool } from './tool/DistanceTool';
91
+ export { HeightTool } from './tool/HeightTool';
91
92
  export * from './misc';
92
93
  export * from './restool';
@@ -1,4 +1,3 @@
1
- import { AssetContainer, NodeMaterial } from '../runtime';
2
1
  /**
3
2
  * 资源缓存数据
4
3
  */
@@ -10,5 +9,5 @@ export type ResCacheData = {
10
9
  /**
11
10
  * 原始数据
12
11
  */
13
- data?: AssetContainer | NodeMaterial | any;
12
+ data?: any;
14
13
  };
@@ -84,4 +84,6 @@ export type ResOptions = {
84
84
  * 是否有透明通道
85
85
  */
86
86
  hasAlpha?: boolean;
87
+ /** 资源文件MD5值 */
88
+ md5?: string;
87
89
  };
@@ -1,15 +1,13 @@
1
- import { InstantiatedEntries, NodeMaterial, Texture } from '../runtime';
2
- import { Base } from '../base/Base';
3
- import { App } from '../core/App';
4
- import { ResOptions } from './ResOptions';
5
- import { ResCacheData } from './ResCacheData';
6
- import '@babylonjs/core/Materials/Textures';
7
- import { ParticleData } from '../effect/ParticleData';
1
+ import { Base } from "../base/Base";
2
+ import { App } from "../core/App";
3
+ import { ParticleData } from "../effect/ParticleData";
4
+ import { InstantiatedEntries, NodeMaterial, Texture } from "../runtime";
5
+ import { ResCacheData } from "./ResCacheData";
6
+ import { ResOptions } from "./ResOptions";
8
7
  /**
9
8
  * 资源池
10
9
  */
11
10
  export declare class ResPool extends Base {
12
- readonly random: string;
13
11
  /**
14
12
  * 资源列表
15
13
  */
@@ -21,25 +19,12 @@ export declare class ResPool extends Base {
21
19
  /**
22
20
  * 加载中的资源列表
23
21
  */
24
- private _loadingList;
25
- private _assetContainerAdded;
22
+ private _locked;
26
23
  /**
27
24
  * 实例化一个资源池对象
28
25
  * @param app 应用
29
26
  */
30
27
  constructor(app: App);
31
- /**
32
- * 加载指定资源
33
- * @param id 编号
34
- */
35
- _loadRes(info: ResOptions): Promise<void>;
36
- /**
37
- * 获取指定资源
38
- * @param id 编号
39
- * @param optimized 是否优化网格
40
- * @param archiveGrid 是否包含档案格
41
- */
42
- getRes(id: string, optimized?: boolean, archiveGrid?: boolean): Promise<Texture | any | InstantiatedEntries | NodeMaterial | undefined>;
43
28
  /**
44
29
  * 判断指定编号的的资源是否已缓存
45
30
  * @param id 编号
@@ -60,5 +45,27 @@ export declare class ResPool extends Base {
60
45
  * @param id 编号
61
46
  */
62
47
  getResIndex(id: string): number | undefined;
48
+ /**
49
+ * 加载指定资源
50
+ * @param id 编号
51
+ */
52
+ _loadRes(info: ResOptions): Promise<void>;
53
+ /**
54
+ * 获取指定资源
55
+ * @param id 编号
56
+ * @param optimized 是否优化网格
57
+ * @param archiveGrid 是否包含档案格
58
+ */
59
+ getRes(id: string, optimized?: boolean, archiveGrid?: boolean): Promise<Texture | InstantiatedEntries | NodeMaterial | any>;
60
+ private _cloneEntires;
61
+ private _loadModel;
62
+ private _loadTexture;
63
+ private _loadMaterial;
64
+ private _loadParticle;
65
+ private _getResType;
66
+ /**
67
+ * 获取粒子默认数据(仅用于编辑器)
68
+ * @param id 编号
69
+ */
63
70
  getDefaultParticleData(id: string): Promise<ParticleData>;
64
71
  }
@@ -41,6 +41,7 @@ export { CubeTexture } from '@babylonjs/core/Materials/Textures/cubeTexture';
41
41
  export { NodeMaterial } from '@babylonjs/core/Materials/Node/nodeMaterial';
42
42
  export { Effect } from '@babylonjs/core/Materials/effect';
43
43
  import '@babylonjs/core/Materials/Node/Blocks';
44
+ import '@babylonjs/core/Materials/Textures';
44
45
  export { EquiRectangularCubeTexture } from '@babylonjs/core/Materials/Textures/equiRectangularCubeTexture';
45
46
  export { PickingInfo } from '@babylonjs/core/Collisions/pickingInfo';
46
47
  export { Tools } from '@babylonjs/core/Misc/tools';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@glowjs/core",
3
- "version": "2025.06.30",
3
+ "version": "2025.07.08",
4
4
  "description": "GlowJS数字孪生引擎核心库。",
5
5
  "main": "./dist/glow.core.js",
6
6
  "types": "./dist/typings/index.d.ts",