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

Error generating SVG file when adding endAngle or startAngle attribute #5540

Closed
francoly opened this issue Feb 27, 2019 · 1 comment · Fixed by #5544
Closed

Error generating SVG file when adding endAngle or startAngle attribute #5540

francoly opened this issue Feb 27, 2019 · 1 comment · Fixed by #5544

Comments

@francoly
Copy link

Version

2.4.6

Test Case

error svg

Information about environment

Nodejs or browser?
is browser
Which browsers?
chrome 71

Steps to reproduce

new fabric.Circle and add property endAngle or startAngle.
When I execute the toSVG(),The SVG file is error。
I found the tag '<path d="M xxx"style="xxx">' in SVG is missing a space between 'd' and 'style''
I'd appreciate it if you fixed it,thank

Chinese:
你好,我在使用fabricJS生成一个扇形时,使用了endAngle 和 startAngle属性,在生成svg文件时,生成出来的svg文件报错,我查看了下svg文件,发现是因为path 标签中的style属性之前缺少空格,非常感谢您的修复。

Expected Behavior

Actual Behavior

http://svg-prod.oss-cn-shenzhen.aliyuncs.com/5ac8b5d9d39e3f396729aa08/work_canvas_M_f3e9d8e8-beff-4287-9356-e1206271f97c_5e87e7582a305e957827cab4ed4ca371.svg

@asturur
Copy link
Member

asturur commented Mar 2, 2019

fixing in #5544

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

Successfully merging a pull request may close this issue.

2 participants