rive-app / rive-react

React runtime for Rive
https://rive-app.github.io/rive-react
MIT License
755 stars 27 forks source link

feat: add customDevicePixelRatio param from WASM for adjusting canvas size based on dpr #228

Closed zplata closed 5 months ago

zplata commented 6 months ago

WASM recently had a param addition to the resizeDrawingSurfaceToCanvas() API to explicitly set a number for the dpr when calculating canvas area size. Introducing that here as an option in useRive()