@glowjs/core 2025.4.24 → 2025.5.26

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.
@@ -867,6 +867,10 @@ export declare class App extends EventDispatcher {
867
867
  * 链路管理器
868
868
  */
869
869
  linkMgr: LinkMgr;
870
+ /**
871
+ * 管道管理器
872
+ */
873
+ pipelineMgr: PipelineMgr;
870
874
  /**
871
875
  * 跟踪器
872
876
  */
@@ -1770,7 +1774,7 @@ export declare class Cabinet extends Component {
1770
1774
  * 加载资产
1771
1775
  * @param list 资产配置列表
1772
1776
  */
1773
- loadAssets(list: any[]): Promise<void>;
1777
+ loadAssets(list: AssetData[]): Promise<void>;
1774
1778
  /***
1775
1779
  * 清理资产
1776
1780
  */
@@ -2608,6 +2612,10 @@ export declare class EffectMgr extends Base {
2608
2612
  * 实体
2609
2613
  */
2610
2614
  export declare class Entity extends Base {
2615
+ /**
2616
+ * 自定义检查函数,用于某些特殊用途
2617
+ */
2618
+ static customCheckFun: (data: any) => Entity;
2611
2619
  protected _viewInfo: ViewInfo | null;
2612
2620
  protected _cursor: string;
2613
2621
  _boundingInfoNode: TransformNode;
@@ -3196,6 +3204,7 @@ export declare class Floor extends Entity {
3196
3204
  * 合并网格的父节点
3197
3205
  */
3198
3206
  mergedMeshNode: TransformNode;
3207
+ _mergedTransparent: boolean;
3199
3208
  /**
3200
3209
  * 实例化一个楼层对象
3201
3210
  * @param app 应用
@@ -4338,6 +4347,52 @@ export declare class Pipe extends Entity {
4338
4347
  */
4339
4348
  dispose(): void;
4340
4349
  }
4350
+ /**
4351
+ * 管路管理器
4352
+ */
4353
+ export declare class PipelineMgr extends Base {
4354
+ /**
4355
+ * 管道样式列表
4356
+ */
4357
+ readonly pipelineStyles: PipelineStyle[];
4358
+ /** 连线列表 */
4359
+ private _links;
4360
+ private _map;
4361
+ private _assetDic?;
4362
+ private _boundingInfo;
4363
+ constructor(app: App);
4364
+ /**
4365
+ * 显示管道
4366
+ * @param list 管道数据列表
4367
+ * @param assetDic 资产字典,key为机柜id,value为资产列表
4368
+ */
4369
+ show(list: PipelineData[], assetDic?: Map<string, AssetData[]>): Promise<void>;
4370
+ reset(): Promise<void>;
4371
+ private _showCurrentLevel;
4372
+ private _destroyCabinetAsset;
4373
+ private _destroyPipelineLinks;
4374
+ private _createPipelineLinks;
4375
+ private _getPipelineEntity;
4376
+ /**
4377
+ * 加载机柜资产
4378
+ */
4379
+ private _loadCabinetAsset;
4380
+ /**
4381
+ * 显示指定层级及其实体列表
4382
+ * @param floor 楼层对象
4383
+ * @param list 实体列表
4384
+ */
4385
+ private _showLevel;
4386
+ /** 销毁当前层级的合并网格 */
4387
+ private _destroyMergedMesh;
4388
+ private _hideCurrentLevel;
4389
+ private _listToMap;
4390
+ /**
4391
+ * 自适应
4392
+ */
4393
+ private _fit;
4394
+ private _computeBoundingInfo;
4395
+ }
4341
4396
  /**
4342
4397
  * 预置墙
4343
4398
  */
@@ -6366,6 +6421,25 @@ export type ArchiveCabinetGroupCount = {
6366
6421
  useRate: number;
6367
6422
  }[];
6368
6423
  };
6424
+ /**
6425
+ * 资产数据
6426
+ */
6427
+ export type AssetData = {
6428
+ /** 模型ID */
6429
+ model_id: string;
6430
+ /** U高 */
6431
+ uheight: number;
6432
+ /** 资产ID */
6433
+ asset_id: string;
6434
+ /** 资产名称 */
6435
+ asset_name: string;
6436
+ /** 起始U位 */
6437
+ start_u: number;
6438
+ /** 方向 */
6439
+ direction: boolean;
6440
+ /** 机柜ID */
6441
+ cabinet_id: string;
6442
+ };
6369
6443
  /**
6370
6444
  * 广告牌选项
6371
6445
  */
@@ -6796,6 +6870,48 @@ export type ParticleData = {
6796
6870
  minLifeTime: number;
6797
6871
  maxLifeTime: number;
6798
6872
  };
6873
+ /**
6874
+ * 管道数据
6875
+ */
6876
+ export type PipelineData = {
6877
+ /** 开始端点类型 */
6878
+ start_type: "\u8BBE\u5907" | "\u7AEF\u53E3";
6879
+ /** 开始端点字段1 */
6880
+ start_field1: string;
6881
+ /** 开始端点字段2 */
6882
+ start_field2: string;
6883
+ /** 开始端点字段3 */
6884
+ start_field3: string;
6885
+ /** 开始端点名称 */
6886
+ start_name: string;
6887
+ /** 结束端点类型 */
6888
+ end_type: "\u8BBE\u5907" | "\u7AEF\u53E3";
6889
+ /** 结束端点字段1 */
6890
+ end_field1: string;
6891
+ /** 结束端点字段2 */
6892
+ end_field2: string;
6893
+ /** 结束端点字段3 */
6894
+ end_field3: string;
6895
+ /** 结束端点名称 */
6896
+ end_name: string;
6897
+ /** 管道样式名称 */
6898
+ style_name: string;
6899
+ /** 扩展,保留字段 */
6900
+ extension: string;
6901
+ };
6902
+ /**
6903
+ * 管道样式
6904
+ */
6905
+ export type PipelineStyle = {
6906
+ /** 名称 */
6907
+ name: string;
6908
+ /** 半径 */
6909
+ radius: number;
6910
+ /** 颜色1 */
6911
+ color1: string;
6912
+ /** 颜色2 */
6913
+ color2: string;
6914
+ };
6799
6915
  /**
6800
6916
  * 摆件
6801
6917
  */