sharpie7 / circuitjs1

Electronic Circuit Simulator in the Browser
GNU General Public License v2.0
2.36k stars 644 forks source link

Feature request: Show current source's power when hover mouse #958

Open ericfont opened 3 months ago

ericfont commented 3 months ago

When I hover my mouse over a voltage source, the bottom-right corner of the screen provides useful info, including its power, for instance this 10 V source shows it consumes -100 mW of power (the negative sign of course indicates it it provides 100 mW):

Screenshot 2024-08-14 144311

However, I don't get this useful power information when I hover over a current source:

Screenshot 2024-08-14 143551

My feature request is to add this power info when hovering mouse over a current source.

ericfont commented 3 months ago

(while I'm looking at this picture, I'm noticing that while the current source shows its DC current next to the schematic symbol, I notice the DC voltage source doesn't. So maybe it would also be nice for circuitjs to also show the DC voltage of a simple DC voltage source next to the schematic symbol.)