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
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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 };
},
);
};