Skip to content

Commit 03c24b0

Browse files
committed
add color to base voltages constant
1 parent 8be5b51 commit 03c24b0

File tree

1 file changed

+64
-7
lines changed

1 file changed

+64
-7
lines changed

src/utils/constants.ts

Lines changed: 64 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,16 +11,73 @@ export interface VoltageLevelInterval {
1111
maxValue: number;
1212
label: string;
1313
color: number[];
14+
profile: string;
1415
}
1516

1617
export const BASE_VOLTAGES: VoltageLevelInterval[] = [
17-
{ name: 'vl300to500', vlValue: 400, minValue: 300, maxValue: Infinity, label: '400 kV', color: [255, 0, 0] },
18-
{ name: 'vl200to300', vlValue: 225, minValue: 200, maxValue: 300, label: '225 kV', color: [34, 139, 34] },
19-
{ name: 'vl100to200', vlValue: 150, minValue: 100, maxValue: 200, label: '150 kV', color: [1, 175, 175] },
20-
{ name: 'vl70to100', vlValue: 90, minValue: 70, maxValue: 100, label: '90 kV', color: [204, 85, 0] },
21-
{ name: 'vl50to70', vlValue: 63, minValue: 50, maxValue: 70, label: '63 kV', color: [160, 32, 240] },
22-
{ name: 'vl40to50', vlValue: 42, minValue: 40, maxValue: 50, label: '42 kV', color: [255, 130, 144] },
23-
{ name: 'vl0to40', vlValue: 20, minValue: 0, maxValue: 40, label: 'HTA', color: [171, 175, 40] },
18+
{
19+
name: 'vl300to500',
20+
vlValue: 400,
21+
minValue: 300,
22+
maxValue: Infinity,
23+
label: '400 kV',
24+
color: [255, 0, 0],
25+
profile: 'Default',
26+
},
27+
{
28+
name: 'vl200to300',
29+
vlValue: 225,
30+
minValue: 200,
31+
maxValue: 300,
32+
label: '225 kV',
33+
color: [34, 139, 34],
34+
profile: 'Default',
35+
},
36+
{
37+
name: 'vl100to200',
38+
vlValue: 150,
39+
minValue: 100,
40+
maxValue: 200,
41+
label: '150 kV',
42+
color: [1, 175, 175],
43+
profile: 'Default',
44+
},
45+
{
46+
name: 'vl70to100',
47+
vlValue: 90,
48+
minValue: 70,
49+
maxValue: 100,
50+
label: '90 kV',
51+
color: [204, 85, 0],
52+
profile: 'Default',
53+
},
54+
{
55+
name: 'vl50to70',
56+
vlValue: 63,
57+
minValue: 50,
58+
maxValue: 70,
59+
label: '63 kV',
60+
color: [160, 32, 240],
61+
profile: 'Default',
62+
},
63+
{
64+
name: 'vl40to50',
65+
vlValue: 42,
66+
minValue: 40,
67+
maxValue: 50,
68+
label: '42 kV',
69+
color: [255, 130, 144],
70+
profile: 'Default',
71+
},
72+
{
73+
name: 'vl0to40',
74+
vlValue: 20,
75+
minValue: 0,
76+
maxValue: 40,
77+
label: 'HTA',
78+
color: [171, 175, 40],
79+
profile: 'Default',
80+
},
2481
];
2582

2683
export const MAX_VOLTAGE = 500;

0 commit comments

Comments
 (0)