react-pdf
Advanced tools
Comparing version 6.2.1 to 6.2.2
@@ -77,3 +77,5 @@ "use strict"; | ||
get canvasContext() { | ||
return canvas.getContext('2d'); | ||
return canvas.getContext('2d', { | ||
alpha: false | ||
}); | ||
}, | ||
@@ -80,0 +82,0 @@ viewport: renderViewport |
@@ -66,3 +66,5 @@ import _extends from "@babel/runtime/helpers/esm/extends"; | ||
get canvasContext() { | ||
return canvas.getContext('2d'); | ||
return canvas.getContext('2d', { | ||
alpha: false | ||
}); | ||
}, | ||
@@ -69,0 +71,0 @@ viewport: renderViewport |
{ | ||
"name": "react-pdf", | ||
"version": "6.2.1", | ||
"version": "6.2.2", | ||
"description": "Display PDFs in your React app as easily as if they were images.", | ||
@@ -5,0 +5,0 @@ "main": "dist/cjs/entry.js", |
@@ -121,3 +121,3 @@ import React, { createRef, PureComponent } from 'react'; | ||
get canvasContext() { | ||
return canvas.getContext('2d'); | ||
return canvas.getContext('2d', { alpha: false }); | ||
}, | ||
@@ -124,0 +124,0 @@ viewport: renderViewport, |
Sorry, the diff of this file is not supported yet
451612
9657