Skip to content

Commit

Permalink
Set alpha: false in canvas.getContext
Browse files Browse the repository at this point in the history
  • Loading branch information
wojtekmaj committed Jan 11, 2023
1 parent fc05de4 commit c151559
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Page/PageCanvas.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ export class PageCanvasInternal extends PureComponent {
const renderContext = {
annotationMode: renderForms ? ANNOTATION_MODE.ENABLE_FORMS : ANNOTATION_MODE.ENABLE,
get canvasContext() {
return canvas.getContext('2d');
return canvas.getContext('2d', { alpha: false });
},
viewport: renderViewport,
};
Expand Down

0 comments on commit c151559

Please sign in to comment.