Skip to content

Commit b7f5b1f

Browse files
committed
fix: increase the resolution of png exports
So that PNGs look better in posters
1 parent a036e81 commit b7f5b1f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/gui/download.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
export function downloadPng(svg: SVGElement, filename = "plot.png", dpr = 2) {
1+
export function downloadPng(svg: SVGElement, filename = "plot.png", dpr = 4) {
22
const width = svg.clientWidth * dpr;
33
const height = svg.clientHeight * dpr;
44

0 commit comments

Comments
 (0)