From 7a8d21a4279946195ce059880457f92372b3fa24 Mon Sep 17 00:00:00 2001 From: ccheng-dev Date: Mon, 27 Mar 2023 08:24:33 +0200 Subject: [PATCH] fix: intrinsicProportion is not a number --- src/render/canvas/canvas-renderer.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/render/canvas/canvas-renderer.ts b/src/render/canvas/canvas-renderer.ts index 6efb648..ce2caad 100644 --- a/src/render/canvas/canvas-renderer.ts +++ b/src/render/canvas/canvas-renderer.ts @@ -598,7 +598,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),