Skip to content

Commit e6ae474

Browse files
committed
Svg bug fixed.
Svg bug fixed.
1 parent 4ab2d88 commit e6ae474

File tree

4 files changed

+4
-5
lines changed

4 files changed

+4
-5
lines changed

canvas2svg.js

+1-2
Original file line numberDiff line numberDiff line change
@@ -1225,14 +1225,13 @@
12251225
svgImage.setAttribute("height", dh);
12261226
svgImage.setAttribute("preserveAspectRatio", "none");
12271227
svgImage.setAttribute("opacity", this.globalAlpha);
1228-
12291228
if (sx || sy || sw !== image.width || sh !== image.height) {
12301229
//crop the image using a temporary canvas
12311230
canvas = this.__document.createElement("canvas");
12321231
canvas.width = dw;
12331232
canvas.height = dh;
12341233
context = canvas.getContext("2d");
1235-
context.drawImage(t, sx, sy, sw, sh, 0, 0, dw, dh);
1234+
context.drawImage(image, sx, sy, sw, sh, 0, 0, dw, dh);
12361235
image = canvas;
12371236
}
12381237

index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
*
44
* NodeJS QRCode generator. Can save image or svg to file, get standard base64 image data url text or get SVG serialized text. Cross-browser QRCode generator for pure javascript. Support Dot style, Logo, Background image, Colorful, Title etc. settings. support binary mode.(Running without DOM on server side)
55
*
6-
* Version 4.3.4
6+
* Version 4.3.5
77
*
88
* @author [ [email protected] ]
99
*

index.min.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "easyqrcodejs-nodejs",
3-
"version": "4.3.4",
3+
"version": "4.3.5",
44
"description": "NodeJS QRCode generator. Can save image or svg to file, get standard base64 image data url text or get SVG serialized text. Cross-browser QRCode generator for pure javascript. Support Dot style, Logo, Background image, Colorful, Title etc. settings. support binary mode.(Running without DOM on server side)",
55
"main": "index.min.js",
66
"scripts": {},

0 commit comments

Comments
 (0)