Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SVG with a clipPath cannot be rendered #6170

Closed
iherasymenko opened this issue Feb 23, 2020 · 1 comment · Fixed by #6210
Closed

SVG with a clipPath cannot be rendered #6170

iherasymenko opened this issue Feb 23, 2020 · 1 comment · Fixed by #6210

Comments

@iherasymenko
Copy link
Contributor

Version

3.6.0

Test Case

https://jsfiddle.net/iherasymenko/cgnarkhe/3/

Expected Behavior

The SVG is parsed and rendered.

Actual Behavior

Uncaught TypeError: Cannot create property 'canvas' on string 'url(#clipPath8553)'
    at klass._drawClipPath (fabric.js:14013)
    at klass.drawObject (fabric.js:14002)
    at klass.renderCache (fabric.js:13872)
    at klass._drawClipPath (fabric.js:14016)
    at klass.drawObject (fabric.js:14002)
    at klass.renderCache (fabric.js:13872)
    at klass.render (fabric.js:13850)
    at klass.drawObject (fabric.js:19549)
    at klass.renderCache (fabric.js:13872)
    at klass.render (fabric.js:13850)
@asturur
Copy link
Member

asturur commented Feb 23, 2020

That clip-path is not defined in the file.
Definitely this can be a non disruptive error, simply ignoring the clipPath as the browser render does.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants