Skip to content

Commit

Permalink
Merge pull request #450 from bugfix/447-page-transparency
Browse files Browse the repository at this point in the history
  • Loading branch information
jszuminski authored Nov 23, 2023
2 parents 763704b + a88354e commit c87d09c
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion lib/export.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,12 @@ const createImage = async (page, type, encoding, clip) =>
page.screenshot({
type,
encoding,
clip
clip,

// #447 - always render on a transparent page
// this will not affect users who do not explicitly set
// chart.backgroundColor to a color with opacity lower than 1
omitBackground: true
}),
new Promise((resolve, reject) =>
setTimeout(() => reject(new Error('Rasterization timeout')), 1500)
Expand Down

0 comments on commit c87d09c

Please sign in to comment.