From 4ca76ff57932b3994b9e556c4763726c0e097639 Mon Sep 17 00:00:00 2001 From: ccheng-dev Date: Mon, 27 Mar 2023 07:38:29 +0200 Subject: [PATCH] fix empty intrinsicSize --- src/render/canvas/canvas-renderer.ts | 2 +- tsconfig.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/render/canvas/canvas-renderer.ts b/src/render/canvas/canvas-renderer.ts index 6efb648bf..41e5fe233 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 + (image.width / image.height) ?? 1 ]); const pattern = this.ctx.createPattern( this.resizeImage(image, width, height), diff --git a/tsconfig.json b/tsconfig.json index 82e295997..850f5389a 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -13,7 +13,7 @@ "outDir": "dist/lib", "declaration": true, "declarationDir": "dist/types", - "resolveJsonModule": true + "resolveJsonModule": true, }, "include": [ "src"