We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fc2ac76 commit 0c836e0Copy full SHA for 0c836e0
src/Page/PageCanvas.tsx
@@ -109,9 +109,7 @@ export default function PageCanvas(props: PageCanvasProps) {
109
110
const renderContext: RenderParameters = {
111
annotationMode: renderForms ? ANNOTATION_MODE.ENABLE_FORMS : ANNOTATION_MODE.ENABLE,
112
- get canvasContext() {
113
- return canvas.getContext('2d', { alpha: false }) as CanvasRenderingContext2D;
114
- },
+ canvasContext: canvas.getContext('2d', { alpha: false }) as CanvasRenderingContext2D,
115
viewport: renderViewport,
116
};
117
if (canvasBackground) {
0 commit comments