Skip to content

Commit

Permalink
fix: intrinsicProportion is not a number
Browse files Browse the repository at this point in the history
  • Loading branch information
ccheng-dev committed Mar 27, 2023
1 parent 6020386 commit 7a8d21a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/render/canvas/canvas-renderer.ts
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
isNaN(image.width / image.height) ? 1 : (image.width / image.height)
]);
const pattern = this.ctx.createPattern(
this.resizeImage(image, width, height),
Expand Down

0 comments on commit 7a8d21a

Please sign in to comment.