mirror of
https://github.com/niklasvh/html2canvas.git
synced 2023-08-10 21:13:10 +03:00
fix: intrinsicProportion is not a number
This commit is contained in:
parent
6020386bbe
commit
7a8d21a427
@ -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),
|
||||
|
Loading…
Reference in New Issue
Block a user