thorvg / thorvg.web

ThorVG for Web System
https://www.thorvg.org
MIT License
5 stars 1 forks source link

lottie: Support Device Pixel Ratio #31

Closed tinyjin closed 2 months ago

tinyjin commented 3 months ago

Support DPR scaling as a browser scale factor.

Issue: #14

[Before in x300 scale] CleanShot 2024-06-23 at 17 24 29@2x

[After in x300 scale] CleanShot 2024-06-23 at 17 23 58@2x

vercel[bot] commented 3 months ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
thorvg-perf-test ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 5, 2024 6:57am
hermet commented 3 months ago

@tinyjin thanks, is it easy to apply DPR skottie?

tinyjin commented 3 months ago

@hermet I guess not so difficult. I'll bring it on skottie as well. Should I include skottie DPR in this PR?

hermet commented 3 months ago

if it's not hard, that would be nice!

tinyjin commented 3 months ago

Got it. WIl do soon!

tinyjin commented 3 months ago

Want to have DPR as option for each player. However just introduced devicePixelRatio over RenderConfig isn't delivered to NPM package yet. I'll add DPR option toggling on perf-test after coming release with this update