Skip to content

Commit

Permalink
Create v1.4.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Denys Kozak committed May 29, 2021
1 parent f9fe441 commit a9ec60b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
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.0-rc1",
"version": "1.4.0",
"description": "Add a style and an image to your QR code",
"main": "lib/qr-code-styling.js",
"types": "lib/index.d.ts",
Expand Down
7 changes: 3 additions & 4 deletions src/figures/cornerSquare/svg/QRCornerSquare.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,12 +71,11 @@ export default class QRCornerSquare {
this._element.setAttribute("clip-rule", "evenodd");
this._element.setAttribute(
"d",
`M ${x + size / 2} ${y + size / 2}` + // M cx, cy // Move to center of ring
`m ${0} ${-size / 2}` + // m 0, -outerRadius // Move to top of ring
`a ${size / 2} ${size / 2} 0 1 0 1 0` + // a outerRadius, outerRadius, 0, 1, 0, 1, 0 // Draw outer arc, but don't close it
`M ${x + size / 2} ${y}` + // M cx, y // Move to top of ring
`a ${size / 2} ${size / 2} 0 1 0 0.1 0` + // a outerRadius, outerRadius, 0, 1, 0, 1, 0 // Draw outer arc, but don't close it
`z` + // Z // Close the outer shape
`m 0 ${dotSize}` + // m -1 outerRadius-innerRadius // Move to top point of inner radius
`a ${size / 2 - dotSize} ${size / 2 - dotSize} 0 1 1 -1 0` + // a innerRadius, innerRadius, 0, 1, 1, -1, 0 // Draw inner arc, but don't close it
`a ${size / 2 - dotSize} ${size / 2 - dotSize} 0 1 1 -0.1 0` + // a innerRadius, innerRadius, 0, 1, 1, -1, 0 // Draw inner arc, but don't close it
`Z` // Z // Close the inner ring. Actually will still work without, but inner ring will have one unit missing in stroke
);
}
Expand Down

0 comments on commit a9ec60b

Please sign in to comment.