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
Error while importing custom SVG #18
Comments
Hey @mafzst, sorry for your troubles and thanks for reporting this! This seems to be a known issue with paper.js. It's fixed on their develop branch, which I have now deployed here. That seems to resolve the issue with some of the default icons. Fingers crossed 🤞 Let me know if that works for you! 🚀 |
Thanks for your reply,
|
Argh, there seem to be a couple of things going wrong here 🙈 I managed to fix a couple of them, now the icon loads and generates a valid shadow, however with a small offset. So far not sure what about the icon causes the shadow to shift. For future references, here is a 'minimal' SVG file which displays this behavior: <?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg xmlns:svg="http://www.w3.org/2000/svg" xmlns="http://www.w3.org/2000/svg">
<path d="M31.358,30.64c-0.935,0.252-1.489,1.212-1.239,2.148c0.251,0.933,1.213,1.489,2.147,1.239 c0.936-0.252,1.49-1.213,1.239-2.147C33.256,30.943,32.294,30.39,31.358,30.64z" />
<circle cx="68.141" cy="32.335" r="1.754" />
</svg> |
I encountered an error while importing a SVG file from my hard drive.
Here some technical details :
The text was updated successfully, but these errors were encountered: