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
Load an SVG with a path that used a gradient for a stroke
Do canvas.toDataURL
Expected Behavior
No exception
Actual Behavior
An error in the console: Uncaught DOMException: Failed to execute 'createPattern' on 'CanvasRenderingContext2D': The image argument is a canvas element with a width or height of 0.
The issue is already mentioned in these tickets but is still not resolved:
##7786
##7798
I'm having the issue when I resize this particular SVG to a height of less than 200 pixels.
Is there a fix or a workround for this issue?
Error Message & Stack Trace
Uncaught DOMException: Failed to execute 'createPattern' on 'CanvasRenderingContext2D': The image argument is a canvas element with a width or height of 0.
at klass._applyPatternForTransformedGradient (http://localhost:8080/js/board/fabric.5.1.0.js:15923:30)
at klass._setStrokeStyles (http://localhost:8080/js/board/fabric.5.1.0.js:15662:18)
at klass._renderStroke (http://localhost:8080/js/board/fabric.5.1.0.js:15885:12)
at klass._renderPaintInOrder (http://localhost:8080/js/board/fabric.5.1.0.js:15828:14)
at klass._render (http://localhost:8080/js/board/fabric.5.1.0.js:19789:12)
at klass.drawObject (http://localhost:8080/js/board/fabric.5.1.0.js:15551:12)
at klass.render (http://localhost:8080/js/board/fabric.5.1.0.js:15409:14)
at klass.drawObject (http://localhost:8080/js/board/fabric.5.1.0.js:20360:26)
at klass.renderCache (http://localhost:8080/js/board/fabric.5.1.0.js:15424:14)
at klass.render (http://localhost:8080/js/board/fabric.5.1.0.js:15403:14)
The text was updated successfully, but these errors were encountered:
CheckList
Version
5.2.1
In What environments are you experiencing the problem?
No response
Node Version (if applicable)
None
Link To Reproduction
https://jsfiddle.net/wilheim/3kvhzwbn/58/
Steps To Reproduce
Expected Behavior
No exception
Actual Behavior
An error in the console: Uncaught DOMException: Failed to execute 'createPattern' on 'CanvasRenderingContext2D': The image argument is a canvas element with a width or height of 0.
The issue is already mentioned in these tickets but is still not resolved:
##7786
##7798
I'm having the issue when I resize this particular SVG to a height of less than 200 pixels.
Is there a fix or a workround for this issue?
Error Message & Stack Trace
The text was updated successfully, but these errors were encountered: