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"