@glowjs/core 2025.5.20 → 2025.6.11

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.
@@ -4626,6 +4626,22 @@ export declare class ResPool extends Base {
4626
4626
  getResIndex(id: string): number | undefined;
4627
4627
  getDefaultParticleData(id: string): Promise<ParticleData>;
4628
4628
  }
4629
+ /** 模型资源工具 */
4630
+ export declare class ResTool {
4631
+ /**
4632
+ * 保存回调函数
4633
+ */
4634
+ onSave: (data: RackMountedData | BoardCardData | ArchiveBoxData) => void;
4635
+ /**
4636
+ * 实例化一个模型资源工具对象
4637
+ * @param options 选项参数
4638
+ */
4639
+ constructor(options: ResToolOptions);
4640
+ /**
4641
+ * 释放
4642
+ */
4643
+ dispose(): void;
4644
+ }
4629
4645
  /**
4630
4646
  * 漫游
4631
4647
  */
@@ -5902,6 +5918,23 @@ export declare enum OrthographicView {
5902
5918
  */
5903
5919
  Right = 8
5904
5920
  }
5921
+ /**
5922
+ * 资源工具类型
5923
+ */
5924
+ export declare enum ResToolType {
5925
+ /**
5926
+ * 机架设备
5927
+ */
5928
+ RackMounted = 1,
5929
+ /**
5930
+ * 板卡
5931
+ */
5932
+ BoardCard = 2,
5933
+ /**
5934
+ * 档案盒
5935
+ */
5936
+ ArchiveBox = 4
5937
+ }
5905
5938
  /**
5906
5939
  * 系统内置资源ID枚举
5907
5940
  */
@@ -6405,6 +6438,43 @@ export type AppOptions = {
6405
6438
  */
6406
6439
  doNotAutoToFirstLevel?: boolean;
6407
6440
  };
6441
+ /**
6442
+ * 档案盒数据
6443
+ */
6444
+ export type ArchiveBoxData = {
6445
+ /**
6446
+ * 档案盒型号名称
6447
+ */
6448
+ name: string;
6449
+ /**
6450
+ * 高度
6451
+ */
6452
+ height: number;
6453
+ /**
6454
+ * 宽度
6455
+ */
6456
+ width: number;
6457
+ /**
6458
+ * 深度
6459
+ */
6460
+ depth: number;
6461
+ /**
6462
+ * 正面图片
6463
+ */
6464
+ frontImg: ResImageSource;
6465
+ /**
6466
+ * 背面图片
6467
+ */
6468
+ backImg: ResImageSource;
6469
+ /**
6470
+ * 侧面图片
6471
+ */
6472
+ sideImg: ResImageSource;
6473
+ /**
6474
+ * 背景颜色
6475
+ */
6476
+ backgroundColor: string;
6477
+ };
6408
6478
  export type ArchiveCabinetGroupCount = {
6409
6479
  /**
6410
6480
  * 库区ID
@@ -6502,6 +6572,39 @@ export type BillboardOptions = {
6502
6572
  top?: string;
6503
6573
  }[];
6504
6574
  };
6575
+ /**
6576
+ * 板卡设备数据
6577
+ */
6578
+ export type BoardCardData = {
6579
+ /**
6580
+ * 板卡名称
6581
+ */
6582
+ name: string;
6583
+ /**
6584
+ * 高度
6585
+ */
6586
+ height: number;
6587
+ /**
6588
+ * 宽度
6589
+ */
6590
+ width: number;
6591
+ /**
6592
+ * 深度
6593
+ */
6594
+ depth: number;
6595
+ /**
6596
+ * 正面图片
6597
+ */
6598
+ frontImg: ResImageSource;
6599
+ /**
6600
+ * 背景颜色
6601
+ */
6602
+ backgroundColor: string;
6603
+ /**
6604
+ * 网口列表
6605
+ */
6606
+ children: NetworkPortData[];
6607
+ };
6505
6608
  /**
6506
6609
  * 机柜容量数据
6507
6610
  */
@@ -6847,6 +6950,29 @@ export type MeshFaceData = {
6847
6950
  */
6848
6951
  indices: number[];
6849
6952
  };
6953
+ /** 网口数据 */
6954
+ export type NetworkPortData = {
6955
+ /**
6956
+ * 名称
6957
+ */
6958
+ name: string;
6959
+ /**
6960
+ * 方向,true=正面,false=反面
6961
+ */
6962
+ direction: boolean;
6963
+ /**
6964
+ * X轴坐标
6965
+ */
6966
+ postionX: number;
6967
+ /**
6968
+ * Y轴坐标
6969
+ */
6970
+ positionY: number;
6971
+ /**
6972
+ * Z轴角度
6973
+ */
6974
+ angleZ: number;
6975
+ };
6850
6976
  /**
6851
6977
  * 其它实体
6852
6978
  */
@@ -6971,6 +7097,47 @@ export type PropertyChangedData = {
6971
7097
  */
6972
7098
  newValue: any;
6973
7099
  };
7100
+ /**
7101
+ * 机架设备数据
7102
+ */
7103
+ export type RackMountedData = {
7104
+ /**
7105
+ * 型号名称
7106
+ */
7107
+ name: string;
7108
+ /**
7109
+ * U高
7110
+ */
7111
+ uHeight: number;
7112
+ /**
7113
+ * 宽度
7114
+ */
7115
+ width: number;
7116
+ /**
7117
+ * 深度
7118
+ */
7119
+ depth: number;
7120
+ /**
7121
+ * 正面图片
7122
+ */
7123
+ frontImg: ResImageSource;
7124
+ /**
7125
+ * 反面图片
7126
+ */
7127
+ backImg: ResImageSource;
7128
+ /**
7129
+ * 是否资产库
7130
+ */
7131
+ lib?: boolean;
7132
+ /**
7133
+ * 背景颜色
7134
+ */
7135
+ backgroundColor: string;
7136
+ /**
7137
+ * 网口列表
7138
+ */
7139
+ children: NetworkPortData[];
7140
+ };
6974
7141
  /**
6975
7142
  * 资源缓存数据
6976
7143
  */
@@ -6985,7 +7152,7 @@ export type ResCacheData = {
6985
7152
  data?: AssetContainer | NodeMaterial | any;
6986
7153
  };
6987
7154
  /**
6988
- * 资产图片(字符串表示JSON字符串,对象表示文件)
7155
+ * 动态模型图片(字符串表示图片base64编码,对象表示文件信息)
6989
7156
  */
6990
7157
  export type ResImageSource = string | {
6991
7158
  /**
@@ -7083,6 +7250,27 @@ export type ResOptions = {
7083
7250
  */
7084
7251
  hasAlpha?: boolean;
7085
7252
  };
7253
+ /**
7254
+ * 模型资源工具参数选项
7255
+ */
7256
+ export type ResToolOptions = {
7257
+ /**
7258
+ * 容器
7259
+ */
7260
+ container: HTMLDivElement;
7261
+ /**
7262
+ * 类型
7263
+ */
7264
+ type: ResToolType;
7265
+ /**
7266
+ * 数据
7267
+ */
7268
+ data: RackMountedData | BoardCardData | ArchiveBoxData;
7269
+ /**
7270
+ * 模式,无=默认(编辑),0=预览,1=编辑
7271
+ */
7272
+ mode?: number;
7273
+ };
7086
7274
  /**
7087
7275
  * 尺寸
7088
7276
  */