diff --git a/src/render/canvas/canvas-renderer.ts b/src/render/canvas/canvas-renderer.ts index 7c60182c9..00872c409 100644 --- a/src/render/canvas/canvas-renderer.ts +++ b/src/render/canvas/canvas-renderer.ts @@ -602,7 +602,7 @@ export class CanvasRenderer extends Renderer { const [path, x, y, width, height] = calculateBackgroundRendering(container, index, [ image.width, image.height, - image.width / image.height + isNaN(image.width / image.height) ? 1 : image.width / image.height ]); const pattern = this.ctx.createPattern( this.resizeImage(image, width, height),