Skip to content

Commit

Permalink
Fix bug that doesn't apply cornersDotOptions color and gradient
Browse files Browse the repository at this point in the history
  • Loading branch information
Denys Kozak committed May 29, 2021
1 parent df0a3fb commit 8e35515
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ npm install qr-code-styling
<head>
<meta charset="UTF-8">
<title>QR Code Styling</title>
<script type="text/javascript" src="https://unpkg.com/qr-code-styling@1.3.3/lib/qr-code-styling.js"></script>
<script type="text/javascript" src="https://unpkg.com/qr-code-styling@1.4.3/lib/qr-code-styling.js"></script>
</head>
<body>
<div id="canvas"></div>
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "qr-code-styling",
"version": "1.4.2",
"version": "1.4.3",
"description": "Add a style and an image to your QR code",
"main": "lib/qr-code-styling.js",
"types": "lib/index.d.ts",
Expand Down
4 changes: 2 additions & 2 deletions src/core/QRSVG.ts
Original file line number Diff line number Diff line change
Expand Up @@ -300,8 +300,8 @@ export default class QRSVG {
this._cornersDotClipPath = cornersDotClipPath;

this._createColor({
options: options.cornersSquareOptions?.gradient,
color: options.cornersSquareOptions?.color,
options: options.cornersDotOptions?.gradient,
color: options.cornersDotOptions?.color,
additionalRotation: rotation,
x: x + dotSize * 2,
y: y + dotSize * 2,
Expand Down

0 comments on commit 8e35515

Please sign in to comment.