CanvasLoader
CanvasLoader copied to clipboard
Added support for devicePixelRatio for high-ppi displays
Added support for high-ppi (eg. retina) displays. The devicePixelRatio value is used to scale the canvas. The context is recreated and rescaled whenever the canvas dimensions are updated. High-ppi support is only for the canvas - not the VML engine.