You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
canvg.js:2854 Uncaught DOMException: Failed to execute 'drawImage' on 'CanvasRenderingContext2D': The image argument is a canvas element with a width or height of 0.
at svg.Element.filter.apply (file:///E:/temp//canvg.js:2854:12)
at svg.Element.line.render (file:///E:/temp//canvg.js:882:37)
at svg.Element.g.renderChildren (file:///E:/temp//canvg.js:904:27)
at svg.Element.g.render (file:///E:/temp//canvg.js:885:15)
at svg.Element.svg.renderChildren (file:///E:/temp//canvg.js:904:27)
at svg.Element.svg.render (file:///E:/temp//canvg.js:885:15)
at draw (file:///E:/temp//canvg.js:3109:10)
at Object.svg.loadXmlDoc (file:///E:/temp//canvg.js:3119:8)
at Object.svg.loadXml (file:///E:/temp//canvg.js:3017:10)
at canvg (file:///E:/temp//canvg.js:98:10)
I think the problem is the feOffset is not supported and its dx and dy values are ignored. So, the extraFilterDistance is zero. It causes the width or height parameters to the drawImage function to be zero at the drawImage cal:
// render on me
ctx.drawImage(c, 0, 0, width + 2 * px, height + 2 * py, x - px, y - py, width + 2 * px, height + 2 * py);
Can you add the check (width + 2 * px) or (height + 2 * py) to be positive before it calls the drawImage?
The text was updated successfully, but these errors were encountered:
Got the following DOMException
with the following SVG:
I think the problem is the feOffset is not supported and its dx and dy values are ignored. So, the extraFilterDistance is zero. It causes the width or height parameters to the drawImage function to be zero at the drawImage cal:
Can you add the check (width + 2 * px) or (height + 2 * py) to be positive before it calls the drawImage?
The text was updated successfully, but these errors were encountered: