update
parent
4e6f0b34fb
commit
ceb6663bf2
|
@ -1106,7 +1106,7 @@ let handleEnter = (typeValue: string) => {
|
||||||
})
|
})
|
||||||
// 文本
|
// 文本
|
||||||
text = draw
|
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({
|
.attr({
|
||||||
x: endTextX,
|
x: endTextX,
|
||||||
y: endTextY,
|
y: endTextY,
|
||||||
|
@ -1647,7 +1647,7 @@ let handleCustomLine = (svgHtml, result) => {
|
||||||
})
|
})
|
||||||
// 文本
|
// 文本
|
||||||
text = draw
|
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({
|
.attr({
|
||||||
x: endTextX,
|
x: endTextX,
|
||||||
y: endTextY,
|
y: endTextY,
|
||||||
|
@ -2002,7 +2002,7 @@ let handleAnimate = async (result: any) => {
|
||||||
text = draw
|
text = draw
|
||||||
.text(
|
.text(
|
||||||
`P: ${(parseFloat(data['Pi']) * 100).toFixed(4)} kW
|
`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({
|
.attr({
|
||||||
x: x - 10,
|
x: x - 10,
|
||||||
|
|
Loading…
Reference in New Issue