Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crisp 1px lines on HiDPI devices. #199

Open
ProtonGustave opened this issue Dec 25, 2022 · 1 comment
Open

Crisp 1px lines on HiDPI devices. #199

ProtonGustave opened this issue Dec 25, 2022 · 1 comment

Comments

@ProtonGustave
Copy link

I'm using PTS for charts. Sometimes 1px crisp line is needed but with current approach of canvas scaling i'm not sure it's possible. Also i've seen this issue in similar libraries and not sure why everybody doing it.
In my local fork i just don't scale canvas and also adjusted few properties(space.width, space.height, mouse events, etc) to be multiplied with pixelScale, works perfect, everything is crisp.

@williamngan
Copy link
Owner

The current approach seem to work well for me in Mac retina screens and mobile (eg, if I check the demo on ptsjs.org homepage on iPhone). Can you describe more about the issue you're having?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants