@glowjs/core 2025.6.25 → 2025.6.28
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
|
@@ -6,7 +6,7 @@ export type AssetData = {
|
|
|
6
6
|
model_id: string;
|
|
7
7
|
/** U高 */
|
|
8
8
|
uheight: number;
|
|
9
|
-
/**
|
|
9
|
+
/** 资产唯一ID */
|
|
10
10
|
asset_id: string;
|
|
11
11
|
/** 资产名称 */
|
|
12
12
|
asset_name: string;
|
|
@@ -14,6 +14,6 @@ export type AssetData = {
|
|
|
14
14
|
start_u: number;
|
|
15
15
|
/** 方向 */
|
|
16
16
|
direction: boolean;
|
|
17
|
-
/**
|
|
17
|
+
/** 机柜唯一ID */
|
|
18
18
|
cabinet_id: string;
|
|
19
19
|
};
|
|
@@ -3,33 +3,20 @@ import { Entity } from '../../Entity';
|
|
|
3
3
|
import { Component } from '../Component';
|
|
4
4
|
import { AssetData } from './AssetData';
|
|
5
5
|
import { CabinetCapacityData } from './CabinetCapacityData';
|
|
6
|
+
import { CabinetTagStyleConfig } from './CabinetTagStyleConfig';
|
|
6
7
|
import { RackMounted } from './RackMounted';
|
|
7
8
|
/**
|
|
8
9
|
* 机柜
|
|
9
10
|
*/
|
|
10
11
|
export declare class Cabinet extends Component {
|
|
11
12
|
/**
|
|
12
|
-
*
|
|
13
|
+
* 机柜编号标签样式配置
|
|
13
14
|
*/
|
|
14
|
-
static tagStyleConfig:
|
|
15
|
-
show: boolean;
|
|
16
|
-
hasBackground: boolean;
|
|
17
|
-
backgroundColor: string;
|
|
18
|
-
fontSize: number;
|
|
19
|
-
fontColor: string;
|
|
20
|
-
};
|
|
15
|
+
static tagStyleConfig: CabinetTagStyleConfig;
|
|
21
16
|
private _eventIds;
|
|
22
17
|
private _tagMesh;
|
|
23
18
|
_showAssetId: string;
|
|
24
19
|
private _alarmAssetIds;
|
|
25
|
-
/**
|
|
26
|
-
* 数据
|
|
27
|
-
*/
|
|
28
|
-
data: {
|
|
29
|
-
cabinet_id: string;
|
|
30
|
-
cabinet_name: string;
|
|
31
|
-
area_id: string;
|
|
32
|
-
};
|
|
33
20
|
/**
|
|
34
21
|
* 资产设备列表
|
|
35
22
|
*/
|
|
@@ -43,9 +30,9 @@ export declare class Cabinet extends Component {
|
|
|
43
30
|
*/
|
|
44
31
|
onExistCabinet: (cabinet: Cabinet) => void;
|
|
45
32
|
/**
|
|
46
|
-
*
|
|
33
|
+
* 机柜右键点击事件
|
|
47
34
|
*/
|
|
48
|
-
|
|
35
|
+
onCabinetRightClick: (cabinet: Cabinet, left: number, top: number) => void;
|
|
49
36
|
/**
|
|
50
37
|
* 实例化一个机柜对象
|
|
51
38
|
* @param entity 实体
|
|
@@ -55,14 +42,16 @@ export declare class Cabinet extends Component {
|
|
|
55
42
|
* 获取实体ID
|
|
56
43
|
*/
|
|
57
44
|
get entityId(): string;
|
|
45
|
+
/** 获取或设置机柜唯一ID */
|
|
46
|
+
cabinetId: string;
|
|
47
|
+
private _cabinetName;
|
|
58
48
|
/**
|
|
59
|
-
*
|
|
60
|
-
*/
|
|
61
|
-
get cabinetId(): string;
|
|
62
|
-
/**
|
|
63
|
-
* 获取机柜名称
|
|
49
|
+
* 获取或设置机柜名称
|
|
64
50
|
*/
|
|
65
51
|
get cabinetName(): string;
|
|
52
|
+
set cabinetName(value: string);
|
|
53
|
+
/** 获取或设置机柜区域ID */
|
|
54
|
+
areaId: string;
|
|
66
55
|
/**
|
|
67
56
|
* 显示容量
|
|
68
57
|
* @param data 容量数据
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 机柜编号标签样式配置
|
|
3
|
+
*/
|
|
4
|
+
export type CabinetTagStyleConfig = {
|
|
5
|
+
/**
|
|
6
|
+
* 是否显示编号标签
|
|
7
|
+
*/
|
|
8
|
+
show: boolean;
|
|
9
|
+
/**
|
|
10
|
+
* 是否有背景
|
|
11
|
+
*/
|
|
12
|
+
hasBackground: boolean;
|
|
13
|
+
/**
|
|
14
|
+
* 背景颜色
|
|
15
|
+
*/
|
|
16
|
+
backgroundColor: string;
|
|
17
|
+
/**
|
|
18
|
+
* 字体大小
|
|
19
|
+
*/
|
|
20
|
+
fontSize: number;
|
|
21
|
+
/**
|
|
22
|
+
* 字体颜色
|
|
23
|
+
*/
|
|
24
|
+
fontColor: string;
|
|
25
|
+
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { App } from '../../../core/App';
|
|
2
2
|
import { Entity } from '../../Entity';
|
|
3
3
|
import { ResImageSource } from './ResImageSource';
|
|
4
|
-
import { Cabinet } from '../../..';
|
|
4
|
+
import { AssetData, Cabinet } from '../../..';
|
|
5
5
|
/**
|
|
6
6
|
* 机架设备
|
|
7
7
|
*/
|
|
@@ -17,7 +17,7 @@ export declare class RackMounted extends Entity {
|
|
|
17
17
|
/**
|
|
18
18
|
* 默认深度(600mm)
|
|
19
19
|
*/
|
|
20
|
-
static readonly
|
|
20
|
+
static readonly defaulDepth: number;
|
|
21
21
|
private _box;
|
|
22
22
|
private _front;
|
|
23
23
|
private _back;
|
|
@@ -27,9 +27,12 @@ export declare class RackMounted extends Entity {
|
|
|
27
27
|
private _frontImg;
|
|
28
28
|
private _backImg;
|
|
29
29
|
private _backgroundColor;
|
|
30
|
-
data: any;
|
|
31
30
|
/**
|
|
32
|
-
*
|
|
31
|
+
* 资产数据
|
|
32
|
+
*/
|
|
33
|
+
data: AssetData;
|
|
34
|
+
/**
|
|
35
|
+
* 所在机柜
|
|
33
36
|
*/
|
|
34
37
|
cabinet: Cabinet;
|
|
35
38
|
/**
|
package/dist/typings/index.d.ts
CHANGED
|
@@ -81,6 +81,7 @@ export { ArchiveCabinetGroupCount } from './entity/component/archive/ArchiveCabi
|
|
|
81
81
|
export { CabinetMgr } from './entity/component/cabinet/CabinetMgr';
|
|
82
82
|
export { CabinetCapacityData } from './entity/component/cabinet/CabinetCapacityData';
|
|
83
83
|
export { AssetData } from './entity/component/cabinet/AssetData';
|
|
84
|
+
export { CabinetTagStyleConfig } from './entity/component/cabinet/CabinetTagStyleConfig';
|
|
84
85
|
export { MaterialMgr } from './material/MaterialMgr';
|
|
85
86
|
export * from './pipeline';
|
|
86
87
|
export { ResPool } from './res/ResPool';
|