qrcode.react
Advanced tools
Comparing version 0.5.1 to 0.5.2
@@ -1,7 +0,17 @@ | ||
#v0.5.1 | ||
- Extend support to React v0.14 | ||
## [0.5.2] - 2015-11-20 | ||
# v0.5.0 | ||
### Fixed | ||
- Fixed bug preventing usage in IE < 11 | ||
- Support HiDPI screens by scaling the `<canvas>` | ||
## [0.5.1] - 2015-10-14 | ||
### Changed | ||
- Extended support to React v0.14 | ||
## [0.5.0] - 2015-07-28 | ||
### Added | ||
- Added support for HiDPI screens by scaling the `<canvas>` | ||
- Added `shouldComponentUpdate` bailout to prevent unnecessary rendering |
@@ -69,3 +69,3 @@ 'use strict'; | ||
var tileH = size / cells.length; | ||
var scale = window.devicePixelRatio / getBackingStorePixelRatio(ctx); | ||
var scale = (window.devicePixelRatio || 1) / getBackingStorePixelRatio(ctx); | ||
canvas.height = canvas.width = size * scale; | ||
@@ -72,0 +72,0 @@ ctx.scale(scale, scale); |
{ | ||
"name": "qrcode.react", | ||
"version": "0.5.1", | ||
"version": "0.5.2", | ||
"description": "React component to generate QR codes", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
4375