fix: 更新保护角标注文本
This commit is contained in:
2
main.py
2
main.py
@@ -151,7 +151,7 @@ def run_egm(para: Parameter, animation=None) -> dict:
|
||||
* 180
|
||||
/ math.pi
|
||||
)
|
||||
logger.info(f"地线保护角{shield_angle_at_avg_height:.2f}°")
|
||||
logger.info(f"地线保护角(平均高处){shield_angle_at_avg_height:.2f}°")
|
||||
logger.debug(f"最低相防护标识{rg_type}。(g表示地面,c表示下导线)")
|
||||
rated_voltage = para.rated_voltage
|
||||
logger.info(f"交、直流标识{para.ac_or_dc}")
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
version: 1.0.16
|
||||
version: 1.0.17
|
||||
company_name: EGM
|
||||
file_description: EGM Lightning Protection Calculator
|
||||
product_name: Lightening
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
<meta charset="UTF-8" />
|
||||
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<title>EGM 输电线路绕击跳闸率计算 v1.0.16</title>
|
||||
<title>EGM 输电线路绕击跳闸率计算 v1.0.17</title>
|
||||
</head>
|
||||
<body>
|
||||
<div id="app"></div>
|
||||
|
||||
@@ -368,7 +368,7 @@ const drawShieldingAngle = (range: ReturnType<typeof calculateRange>) => {
|
||||
ctx.stroke()
|
||||
|
||||
// 绘制标注文字
|
||||
const labelText = `保护角: ${Math.abs(shieldingAngle).toFixed(2)}°`
|
||||
const labelText = `保护角(平均高处): ${Math.abs(shieldingAngle).toFixed(2)}°`
|
||||
ctx.font = 'bold 12px Arial'
|
||||
|
||||
// 绘制标注文字
|
||||
|
||||
Reference in New Issue
Block a user