-
Notifications
You must be signed in to change notification settings - Fork 10
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
blurry catalog overlay on Retina display #889
Comments
It looks like plotly is not taking into account the I tried to solve the issue by doubling the desired size and then transforming using CSS. It looked great, but it didn't seem to work nicely with the single point selection stuff. or with zooming. @panchyo0 if you want to give it a try, here's a patch of what I tried:
|
Using |
ok, so we should be able to translate those points based on the |
@panchyo0 are you investigating this? |
@veggiesaurus Using style={{zoom: "1/devicePixelRatio"}} or set |
Is there an issue for this mentioned anywhere on the plotly repo? It seems like this would be a common issue 🤔 The reason it only happens with scattergl is because the WebGL canvas itself is not resized properly. Perhaps we can manually force it to resize 🤔 |
|
With plotlyjs 1.58.0, we can apply transform to fix this bug. @kswang1029 could you please check http://carta.asiaa.sinica.edu.tw/frontend/0b759da/?socketUrl=wss://carta.asiaa.sinica.edu.tw/socketdev |
@panchyo0 yes now with a Retina display, image overlay is sharp. I noticed a performance difference when plotting 20000 symbols with Chrome, Firefox, and Safari. They perform like Chrome (smooth) > Firefox (a bit leggy) > Safari (quite leggy) @panchyo0 @veggiesaurus could this be the issue we encountered before that Safari updates cursor state at 240 Hz? UPDATE: with Safari, the current dev branch has the same issue but less critical. With 0b759da it becomes worse. |
fixed with PR 1211 |
It appears that the rendered catalog overlay is blurry on Retina display. On a non-retina display, the catalog overlay is sharp.
The text was updated successfully, but these errors were encountered: