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

Fix heatmap/image traces without zsmooth on Safari/iOS #6605

Merged
merged 5 commits into from
May 15, 2023

Conversation

lvlte
Copy link
Contributor

@lvlte lvlte commented May 14, 2023

Fixes #6604

Safari doesn't behave consistently with pixelated image-rendering (depends on whether the target object is an <image> or an <img>, whether there is a transform applied on the object, etc.) although it's supposed to support it and even though it passes the css support test. It seems like a webkit bug (it should not pass the css support test) ?

So I guess the best option for now is to prevent the pixelated rendering optimization on Safari.

@archmoj archmoj added bug something broken status: reviewable regression this used to work community community contribution labels May 15, 2023
@lvlte lvlte marked this pull request as draft May 15, 2023 16:48
Co-authored-by: Alex Johnson <alex@plot.ly>
@lvlte lvlte marked this pull request as ready for review May 15, 2023 16:58
@lvlte lvlte changed the title Fix heatmap/image traces without zsmooth on Safari Fix heatmap/image traces without zsmooth on Safari/iOS May 15, 2023
Co-authored-by: Mojtaba Samimi <33888540+archmoj@users.noreply.github.com>
@archmoj
Copy link
Contributor

archmoj commented May 15, 2023

For the download issue that you mentioned here, we could use similar logic as applied by image trace.
See:

var supportsPixelated = !gd._context._exportedPlot && supportsPixelatedImage();

@archmoj
Copy link
Contributor

archmoj commented May 15, 2023

💃

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug something broken community community contribution regression this used to work
Projects
None yet
3 participants