Skip to content

Commit

Permalink
Update svg2pdf
Browse files Browse the repository at this point in the history
  • Loading branch information
linev committed Oct 1, 2024
1 parent d728c80 commit 4f1f2be
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 1 deletion.
2 changes: 1 addition & 1 deletion modules/base/svg2pdf.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -5234,7 +5234,7 @@ var GroupA = /** @class */ (function (_super) {
box = this.getBoundingBox(context);
scale = context.pdf.internal.scaleFactor;
ph = context.pdf.internal.pageSize.getHeight();
context.pdf.link(scale * box[0], ph - scale * box[1], scale * box[2], scale * box[3], { url: href });
context.pdf.link(scale * (box[0] + context.transform.tx), ph - scale * (box[1] + context.transform.ty), scale * box[2], scale * box[3], { url: href });
}
return [2 /*return*/];
}
Expand Down
27 changes: 27 additions & 0 deletions modules/svg2pdf.mjs

Large diffs are not rendered by default.

0 comments on commit 4f1f2be

Please sign in to comment.