Skip to content

Commit

Permalink
Fix pixelRatio in export
Browse files Browse the repository at this point in the history
  • Loading branch information
ZhangYiJiang authored Jul 16, 2019
1 parent 401def4 commit c387d09
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion export/src/render.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const VIEWPORT_HEIGHT = 2000;

async function setViewport(page, options = {}) {
await page.setViewport({
deviceScaleFactor: options.deviceScaleFactor || 1,
deviceScaleFactor: options.pixelRatio || 1,
width: options.width || config.pageWidth,
height: options.height || VIEWPORT_HEIGHT,
});
Expand Down

0 comments on commit c387d09

Please sign in to comment.