Skip to content

Commit

Permalink
fix empty intrinsicSize
Browse files Browse the repository at this point in the history
  • Loading branch information
ccheng-dev committed Mar 27, 2023
1 parent 6020386 commit 4ca76ff
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/render/canvas/canvas-renderer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"outDir": "dist/lib",
"declaration": true,
"declarationDir": "dist/types",
"resolveJsonModule": true
"resolveJsonModule": true,
},
"include": [
"src"
Expand Down

0 comments on commit 4ca76ff

Please sign in to comment.