@glowjs/core 2025.4.21 → 2025.5.20

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.
@@ -14,6 +14,7 @@ import { EntityType } from '../entity/EntityType';
14
14
  import { Component } from '../entity/component/Component';
15
15
  import { Tracker } from '../entity/Tracker';
16
16
  import { LinkMgr } from '../link/LinkMgr';
17
+ import { PipelineMgr } from '../pipeline/PipelineMgr';
17
18
  /**
18
19
  * 应用
19
20
  */
@@ -100,6 +101,10 @@ export declare class App extends EventDispatcher {
100
101
  * 链路管理器
101
102
  */
102
103
  linkMgr: LinkMgr;
104
+ /**
105
+ * 管道管理器
106
+ */
107
+ pipelineMgr: PipelineMgr;
103
108
  /**
104
109
  * 跟踪器
105
110
  */
@@ -15,6 +15,10 @@ export interface Entity {
15
15
  * 实体
16
16
  */
17
17
  export declare class Entity extends Base {
18
+ /**
19
+ * 自定义检查函数,用于某些特殊用途
20
+ */
21
+ static customCheckFun: (data: any) => Entity;
18
22
  protected _viewInfo: ViewInfo | null;
19
23
  protected _cursor: string;
20
24
  _boundingInfoNode: TransformNode;
@@ -35,6 +35,7 @@ export declare class Floor extends Entity {
35
35
  * 合并网格的父节点
36
36
  */
37
37
  mergedMeshNode: TransformNode;
38
+ _mergedTransparent: boolean;
38
39
  /**
39
40
  * 实例化一个楼层对象
40
41
  * @param app 应用
@@ -0,0 +1,19 @@
1
+ /**
2
+ * 资产数据
3
+ */
4
+ export type AssetData = {
5
+ /** 模型ID */
6
+ model_id: string;
7
+ /** U高 */
8
+ uheight: number;
9
+ /** 资产ID */
10
+ asset_id: string;
11
+ /** 资产名称 */
12
+ asset_name: string;
13
+ /** 起始U位 */
14
+ start_u: number;
15
+ /** 方向 */
16
+ direction: boolean;
17
+ /** 机柜ID */
18
+ cabinet_id: string;
19
+ };
@@ -1,6 +1,7 @@
1
1
  import { TransformNode } from '../../../runtime';
2
2
  import { Entity } from '../../Entity';
3
3
  import { Component } from '../Component';
4
+ import { AssetData } from './AssetData';
4
5
  import { CabinetCapacityData } from './CabinetCapacityData';
5
6
  import { RackMounted } from './RackMounted';
6
7
  /**
@@ -116,7 +117,7 @@ export declare class Cabinet extends Component {
116
117
  * 加载资产
117
118
  * @param list 资产配置列表
118
119
  */
119
- loadAssets(list: any[]): Promise<void>;
120
+ loadAssets(list: AssetData[]): Promise<void>;
120
121
  /***
121
122
  * 清理资产
122
123
  */
@@ -80,9 +80,11 @@ export { ArchiveBox } from './entity/component/archive/ArchiveBox';
80
80
  export { ArchiveCabinetGroupCount } from './entity/component/archive/ArchiveCabinetGroupCount';
81
81
  export { CabinetMgr } from './entity/component/cabinet/CabinetMgr';
82
82
  export { CabinetCapacityData } from './entity/component/cabinet/CabinetCapacityData';
83
+ export { AssetData } from './entity/component/cabinet/AssetData';
83
84
  export { MaterialMgr } from './material/MaterialMgr';
84
85
  export { Link } from './link/Link';
85
86
  export { LinkMgr } from './link/LinkMgr';
87
+ export * from './pipeline';
86
88
  export { ResPool } from './res/ResPool';
87
89
  export { ResOptions } from './res/ResOptions';
88
90
  export { ParticleData } from './effect/ParticleData';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@glowjs/core",
3
- "version": "2025.04.21",
3
+ "version": "2025.05.20",
4
4
  "description": "GlowJS数字孪生引擎核心库。",
5
5
  "main": "./dist/glow.core.js",
6
6
  "types": "./dist/typings/index.d.ts",
@@ -56,6 +56,7 @@
56
56
  "@babylonjs/loaders": "7.18.0",
57
57
  "@babylonjs/materials": "7.18.0",
58
58
  "@tweenjs/tween.js": "18.6.4",
59
+ "babylonjs-gltf2interface": "7.20.1",
59
60
  "earcut": "2.2.2",
60
61
  "heatmap.js": "2.0.5",
61
62
  "robust-point-in-polygon": "1.0.3"
@@ -63,6 +64,7 @@
63
64
  "devDependencies": {
64
65
  "@types/earcut": "2.1.1",
65
66
  "@types/heatmap.js": "2.0.37",
67
+ "@types/node": "22.1.0",
66
68
  "@types/robust-point-in-polygon": "1.0.2",
67
69
  "clean-webpack-plugin": "4.0.0",
68
70
  "colors": "1.4.0",
@@ -71,6 +73,7 @@
71
73
  "ts-loader": "9.3.0",
72
74
  "ts-node": "10.8.0",
73
75
  "tslib": "2.6.3",
76
+ "typescript": "5.5.4",
74
77
  "webpack": "5.93.0"
75
78
  }
76
79
  }