Rich-Harris / svelte-cubed

Svelte ❤️ Three
svelte-cubed.vercel.app
MIT License
1.19k stars 76 forks source link

Remove division by pixelRatio #54

Open letmejustputthishere opened 2 years ago

letmejustputthishere commented 2 years ago

This commit remove division by pixelRatio when the user specifies no width and height for the SC.Canvas component. If the division is present the rendering becomes blurry if the pixelRatio is 2 on the users device.

Screenshot 2022-04-02 at 17 32 56

No width and height set

Screenshot 2022-04-02 at 17 33 01

width and height set

vercel[bot] commented 2 years ago

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/svelte/svelte-cubed/7ZSaohP3WUgaUkS8TFoF2X5xFWme
✅ Preview: Failed