feat: support supplying custom scale when exporting canvas (#2904)

This commit is contained in:
David Luzar
2021-02-04 14:54:08 +01:00
committed by GitHub
parent e18e945cd3
commit f0f5430313
2 changed files with 11 additions and 8 deletions

View File

@ -36,7 +36,7 @@ export const exportToCanvas = ({
canvas.width = ret.width;
canvas.height = ret.height;
return canvas;
return { canvas, scale: ret.scale };
},
);
};