Skip to content

Commit

Permalink
Release 1.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
jingren.cjr committed Apr 27, 2017
1 parent 471c180 commit ebcd03c
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 6 deletions.
7 changes: 7 additions & 0 deletions History.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@

1.1.0 / 2017-04-27
==================

* Merge pull request #3 from lanceli/master
* feat: 支持反色二维码
* docs: update Readme.md

1.0.6 / 2017-03-29
==================

Expand Down
2 changes: 1 addition & 1 deletion dist/jr-qrcode.js

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions lib/jr-qrcode.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,11 +62,11 @@ var jrQrcode = (function() {

// background
if (options.reverse) {
var transparent = 'rgba(0, 0, 0, 0)';
ctx.fillStyle = transparent;
options.foreground = transparent;
var transparent = 'rgba(0, 0, 0, 0)';
ctx.fillStyle = transparent;
options.foreground = transparent;
} else {
ctx.fillStyle = options.background;
ctx.fillStyle = options.background;
}
ctx.fillRect(0, 0, canvas.width, canvas.height);

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "jr-qrcode",
"version": "1.0.7",
"version": "1.1.0",
"description": "qrcode generator",
"license": "MIT",
"devDependencies": {
Expand Down

0 comments on commit ebcd03c

Please sign in to comment.