sharpie7 / circuitjs1

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

high pixel density #616

Closed dullbananas closed 3 years ago

dullbananas commented 3 years ago

In the area where the circuit is rendered, the resolution does not adapt to the display's pixel density or zoom. This make a huge difference in text readability.

C956C442-A59A-4835-9D79-3EB7686EC951

In CSS and javascript, one "pixel" is equal to multiple physical pixels, if the pixel density is high. https://developer.mozilla.org/en-US/docs/Web/API/Window/devicePixelRatio

pfalstad commented 3 years ago

Looks much better now. Thanks for pointing that out.