-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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 Path Import/Export not working correctly #2057
Comments
I found that the issue here is I was using It seems like this should either:
|
Thanks a lot man, you are a life saver 😊 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description/Steps to reproduce
Something seems to be working incorrectly with the importing->parsing->serializing->exporting flow for SVG path commands.
Here I'm creating a
new paper.Path(pathA.getAttribute("d"))
from a given SVG, then usingpaper.project.exportSVG({})
to generate an export. Even for simple shapes like this outlined circle and square, something seems to be working incorrectly, possibly involving how the close path is handled?I'm not familiar with how these commands are processed internally so I'm not sure how best to debug this further.
Link to reproduction test-case
https://codesandbox.io/p/sandbox/paperjs-imp-exp-rn5qt2
Expected result
The imported path should be exported in a visually identical way.
Additional information
macOS 13.6, Safari 17.0
The text was updated successfully, but these errors were encountered: