v.2.1.1
Added:
- Support for retina displays or any displays with a
window.devicePixelRatio != 1
. - new method
arenaScaling.screenToCanvasUnits()
scale screen pixels to canvas pixels - new method
arenaScaling.canvasToScreenUnits()
unscale canvas pixels to screen pixels - new method
arenaScaling.screenToCanvas()
scale screen coordinates to canvas coordinates - new method
arenaScaling.canvasToScreen()
unscale canvas coordinates to screen coordinates
Breaking Changes:
arenaScaling.toScreenPos()
got renamed toarenaScaling.toCanvasPos()
arenaScaling.toScreenUnits()
got renamed toarenaScaling.toCanvasUnits()