Skip to content

Commit

Permalink
remove stroke from png_browser
Browse files Browse the repository at this point in the history
  • Loading branch information
gugu committed Sep 12, 2023
1 parent 1adbd16 commit 28c68d0
Show file tree
Hide file tree
Showing 17 changed files with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/png_browser.ts
Expand Up @@ -49,13 +49,11 @@ export async function generateImage({
context.fillRect(0, 0, imageSize, imageSize);
const path = new Path2D(getSVGPath(matrix, size, marginPx, borderRadius));
context.fillStyle = colorToHex(color);
context.strokeStyle = colorToHex(color);
if ('draw' in path) {
// @ts-expect-error used in tests
path.draw(context);
}
context.fill(path);
context.stroke(path);
if (logo) {
const logoImage = await new Promise<HTMLImageElement>(async (resolve, reject) => {
try {
Expand Down
Binary file modified test_data/golden/browser_qr.pdf
Binary file not shown.
Binary file modified test_data/golden/browser_qr.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified test_data/golden/browser_qr_logo_arraybuffer.pdf
Binary file not shown.
Binary file modified test_data/golden/browser_qr_with_border_radius.pdf
Binary file not shown.
Binary file modified test_data/golden/browser_qr_with_border_radius.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified test_data/golden/browser_qr_with_colors.pdf
Binary file not shown.
Binary file modified test_data/golden/browser_qr_with_colors.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified test_data/golden/browser_qr_with_colors_rgba.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified test_data/golden/browser_qr_with_logo.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified test_data/golden/browser_qr_with_logo_jpg.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified test_data/golden/qr.pdf
Binary file not shown.
Binary file modified test_data/golden/qr_logo_arraybuffer.pdf
Binary file not shown.
Binary file modified test_data/golden/qr_logo_arraybuffer_jpg.pdf
Binary file not shown.
Binary file modified test_data/golden/qr_with_border_radius.pdf
Binary file not shown.
Binary file modified test_data/golden/qr_with_colors.pdf
Binary file not shown.
Binary file modified test_data/golden/qr_with_logo.pdf
Binary file not shown.

0 comments on commit 28c68d0

Please sign in to comment.