Skip to content

Commit

Permalink
Also scale screenshot contexts
Browse files Browse the repository at this point in the history
  • Loading branch information
jaredkhan committed Nov 23, 2024
1 parent 563ba35 commit 049a936
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions views/treeviewer/life_expert.html
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@
width: document.getElementById("OneZoomCanvasID").width,
height: document.getElementById("OneZoomCanvasID").height,
});
context.scale(window.devicePixelRatio, window.devicePixelRatio);
onezoom.controller.draw_single_frame(context);
lnk.href = URL.createObjectURL(new Blob([context.getSerializedSvg(true)], {
type: "image/svg+xml",
Expand Down

0 comments on commit 049a936

Please sign in to comment.