heartcode / CanvasLoader

Heartcode CanvasLoader is a lightweight JavaScript UI library, which uses the HTML canvas element to draw and animate circular preloaders. The library is currently in beta, some minor changes and improvements might be done to it in the near future.
http://heartcode.robertpataki.com
285 stars 81 forks source link

Added support for devicePixelRatio for high-ppi displays #33

Open YellowfinBI opened 9 years ago

YellowfinBI commented 9 years ago

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.