Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(CanvasContext): Added optional devicePixelRatio argument to resize
It's mainly useful in context of rendering in web worker, because web worker doesn't have access to devicePixelRatio, so resize code will be split between 1. main thread asking for a render, providing devicePixelRatio 2. Worker rendering and resizing CanvasContext w/ provided ratio 3. Worker giving back main thread the resize target 4. Main thread applying css width/height provided by the worker
- Loading branch information