@glowjs/core 2025.6.25 → 2025.6.30
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.
- package/dist/glow.core.d.ts +44 -28
- package/dist/glow.core.js +1 -1
- package/dist/typings/entity/component/cabinet/AssetData.d.ts +2 -2
- package/dist/typings/entity/component/cabinet/Cabinet.d.ts +12 -23
- package/dist/typings/entity/component/cabinet/CabinetTagStyleConfig.d.ts +25 -0
- package/dist/typings/entity/component/cabinet/RackMounted.d.ts +7 -4
- package/dist/typings/index.d.ts +1 -0
- package/package.json +1 -1
package/dist/glow.core.d.ts
CHANGED
|
@@ -1622,27 +1622,13 @@ export declare class Building extends Entity {
|
|
|
1622
1622
|
*/
|
|
1623
1623
|
export declare class Cabinet extends Component {
|
|
1624
1624
|
/**
|
|
1625
|
-
*
|
|
1625
|
+
* 机柜编号标签样式配置
|
|
1626
1626
|
*/
|
|
1627
|
-
static tagStyleConfig:
|
|
1628
|
-
show: boolean;
|
|
1629
|
-
hasBackground: boolean;
|
|
1630
|
-
backgroundColor: string;
|
|
1631
|
-
fontSize: number;
|
|
1632
|
-
fontColor: string;
|
|
1633
|
-
};
|
|
1627
|
+
static tagStyleConfig: CabinetTagStyleConfig;
|
|
1634
1628
|
private _eventIds;
|
|
1635
1629
|
private _tagMesh;
|
|
1636
1630
|
_showAssetId: string;
|
|
1637
1631
|
private _alarmAssetIds;
|
|
1638
|
-
/**
|
|
1639
|
-
* 数据
|
|
1640
|
-
*/
|
|
1641
|
-
data: {
|
|
1642
|
-
cabinet_id: string;
|
|
1643
|
-
cabinet_name: string;
|
|
1644
|
-
area_id: string;
|
|
1645
|
-
};
|
|
1646
1632
|
/**
|
|
1647
1633
|
* 资产设备列表
|
|
1648
1634
|
*/
|
|
@@ -1656,9 +1642,9 @@ export declare class Cabinet extends Component {
|
|
|
1656
1642
|
*/
|
|
1657
1643
|
onExistCabinet: (cabinet: Cabinet) => void;
|
|
1658
1644
|
/**
|
|
1659
|
-
*
|
|
1645
|
+
* 机柜右键点击事件
|
|
1660
1646
|
*/
|
|
1661
|
-
|
|
1647
|
+
onCabinetRightClick: (cabinet: Cabinet, left: number, top: number) => void;
|
|
1662
1648
|
/**
|
|
1663
1649
|
* 实例化一个机柜对象
|
|
1664
1650
|
* @param entity 实体
|
|
@@ -1668,14 +1654,16 @@ export declare class Cabinet extends Component {
|
|
|
1668
1654
|
* 获取实体ID
|
|
1669
1655
|
*/
|
|
1670
1656
|
get entityId(): string;
|
|
1657
|
+
/** 获取或设置机柜唯一ID */
|
|
1658
|
+
cabinetId: string;
|
|
1659
|
+
private _cabinetName;
|
|
1671
1660
|
/**
|
|
1672
|
-
*
|
|
1673
|
-
*/
|
|
1674
|
-
get cabinetId(): string;
|
|
1675
|
-
/**
|
|
1676
|
-
* 获取机柜名称
|
|
1661
|
+
* 获取或设置机柜名称
|
|
1677
1662
|
*/
|
|
1678
1663
|
get cabinetName(): string;
|
|
1664
|
+
set cabinetName(value: string);
|
|
1665
|
+
/** 获取或设置机柜区域ID */
|
|
1666
|
+
areaId: string;
|
|
1679
1667
|
/**
|
|
1680
1668
|
* 显示容量
|
|
1681
1669
|
* @param data 容量数据
|
|
@@ -4351,7 +4339,7 @@ export declare class RackMounted extends Entity {
|
|
|
4351
4339
|
/**
|
|
4352
4340
|
* 默认深度(600mm)
|
|
4353
4341
|
*/
|
|
4354
|
-
static readonly
|
|
4342
|
+
static readonly defaulDepth: number;
|
|
4355
4343
|
private _box;
|
|
4356
4344
|
private _front;
|
|
4357
4345
|
private _back;
|
|
@@ -4361,9 +4349,12 @@ export declare class RackMounted extends Entity {
|
|
|
4361
4349
|
private _frontImg;
|
|
4362
4350
|
private _backImg;
|
|
4363
4351
|
private _backgroundColor;
|
|
4364
|
-
data: any;
|
|
4365
4352
|
/**
|
|
4366
|
-
*
|
|
4353
|
+
* 资产数据
|
|
4354
|
+
*/
|
|
4355
|
+
data: AssetData;
|
|
4356
|
+
/**
|
|
4357
|
+
* 所在机柜
|
|
4367
4358
|
*/
|
|
4368
4359
|
cabinet: Cabinet;
|
|
4369
4360
|
/**
|
|
@@ -6387,7 +6378,7 @@ export type AssetData = {
|
|
|
6387
6378
|
model_id: string;
|
|
6388
6379
|
/** U高 */
|
|
6389
6380
|
uheight: number;
|
|
6390
|
-
/**
|
|
6381
|
+
/** 资产唯一ID */
|
|
6391
6382
|
asset_id: string;
|
|
6392
6383
|
/** 资产名称 */
|
|
6393
6384
|
asset_name: string;
|
|
@@ -6395,7 +6386,7 @@ export type AssetData = {
|
|
|
6395
6386
|
start_u: number;
|
|
6396
6387
|
/** 方向 */
|
|
6397
6388
|
direction: boolean;
|
|
6398
|
-
/**
|
|
6389
|
+
/** 机柜唯一ID */
|
|
6399
6390
|
cabinet_id: string;
|
|
6400
6391
|
};
|
|
6401
6392
|
/**
|
|
@@ -6510,6 +6501,31 @@ export type CabinetCapacityData = {
|
|
|
6510
6501
|
*/
|
|
6511
6502
|
tip: string;
|
|
6512
6503
|
};
|
|
6504
|
+
/**
|
|
6505
|
+
* 机柜编号标签样式配置
|
|
6506
|
+
*/
|
|
6507
|
+
export type CabinetTagStyleConfig = {
|
|
6508
|
+
/**
|
|
6509
|
+
* 是否显示编号标签
|
|
6510
|
+
*/
|
|
6511
|
+
show: boolean;
|
|
6512
|
+
/**
|
|
6513
|
+
* 是否有背景
|
|
6514
|
+
*/
|
|
6515
|
+
hasBackground: boolean;
|
|
6516
|
+
/**
|
|
6517
|
+
* 背景颜色
|
|
6518
|
+
*/
|
|
6519
|
+
backgroundColor: string;
|
|
6520
|
+
/**
|
|
6521
|
+
* 字体大小
|
|
6522
|
+
*/
|
|
6523
|
+
fontSize: number;
|
|
6524
|
+
/**
|
|
6525
|
+
* 字体颜色
|
|
6526
|
+
*/
|
|
6527
|
+
fontColor: string;
|
|
6528
|
+
};
|
|
6513
6529
|
/**
|
|
6514
6530
|
* 特效数据
|
|
6515
6531
|
*/
|