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

Feature idea: reverse path #80

Closed
jkjustjoshing opened this issue Jun 6, 2022 · 2 comments
Closed

Feature idea: reverse path #80

jkjustjoshing opened this issue Jun 6, 2022 · 2 comments

Comments

@jkjustjoshing
Copy link

jkjustjoshing commented Jun 6, 2022

I'm trying to combine parts of 2 paths, but one is written in a clockwise order and the other in a counter/anti-clockwise order. I would love to be able to flip the order of the points with a button, which would probably fit well in the "Path operations" section.

https://github.com/krispo/svg-path-utils has an implementation of this that can probably be borrowed or used directly.

@Yqnn
Copy link
Owner

Yqnn commented Jun 6, 2022

Duplicate of #10

I checked how it's implemented in krispo/svg-path-utils, it's a relatively naive implementation that just reverts all path components — doesn't work as expected for relative coordinates, for arcs, for vertical line, horizontal lines or when shorthand curves are used.

@Yqnn Yqnn closed this as completed Jun 6, 2022
@jkjustjoshing
Copy link
Author

Sorry about that, I did try searching for an existing issue first!

thanks so much for this amazing tool! I’ve used it extensively in the last two days and it’s amazing!

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

No branches or pull requests

2 participants