master
zhaoqiang 2024-07-17 22:31:18 +08:00
parent 4e6f0b34fb
commit ceb6663bf2
1 changed files with 3 additions and 3 deletions

View File

@ -1106,7 +1106,7 @@ let handleEnter = (typeValue: string) => {
})
//
text = draw
.text(`P: ${parseFloat(data['Pi']).toFixed(4)} kW \nQ: ${parseFloat(data['Qi']).toFixed(4)} kVar \nV: ${parseFloat(data['V_b']).toFixed(4)} kV \nI: ${parseFloat(data['I'])} A`)
.text(`P: ${parseFloat(data['Pi']).toFixed(4)} kW \nQ: ${parseFloat(data['Qi']).toFixed(4)} kVar \nU: ${parseFloat(data['V_b']).toFixed(4)} kV \nI: ${parseFloat(data['I'])} A`)
.attr({
x: endTextX,
y: endTextY,
@ -1647,7 +1647,7 @@ let handleCustomLine = (svgHtml, result) => {
})
//
text = draw
.text(`P: ${(parseFloat(data['Pi']) * 100).toFixed(4)} kW \nQ: ${(parseFloat(data['Qi']) * 10).toFixed(4)} kVar \nV: ${parseFloat(data['V_b']).toFixed(4)} kV \nI: ${((parseFloat(data['Pi']) * 100) / (parseFloat(data['V_b']) * 1.732)).toFixed(4)} A`)
.text(`P: ${(parseFloat(data['Pi']) * 100).toFixed(4)} kW \nQ: ${(parseFloat(data['Qi']) * 10).toFixed(4)} kVar \nU: ${parseFloat(data['V_b']).toFixed(4)} kV \nI: ${((parseFloat(data['Pi']) * 100) / (parseFloat(data['V_b']) * 1.732)).toFixed(4)} A`)
.attr({
x: endTextX,
y: endTextY,
@ -2002,7 +2002,7 @@ let handleAnimate = async (result: any) => {
text = draw
.text(
`P: ${(parseFloat(data['Pi']) * 100).toFixed(4)} kW
Q: ${(parseFloat(data['Qi']) * 10).toFixed(4)} kVar \nV: ${parseFloat(data['V_b']).toFixed(4)} kV \nI: ${((parseFloat(data['Pi']) * 100) / (parseFloat(data['V_b']) * 1.732)).toFixed(4)} A`
Q: ${(parseFloat(data['Qi']) * 10).toFixed(4)} kVar \nU: ${parseFloat(data['V_b']).toFixed(4)} kV \nI: ${((parseFloat(data['Pi']) * 100) / (parseFloat(data['V_b']) * 1.732)).toFixed(4)} A`
)
.attr({
x: x - 10,