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

Artifact when offsetting an SVG path #209

Open
JDMCreator opened this issue Oct 7, 2023 · 0 comments
Open

Artifact when offsetting an SVG path #209

JDMCreator opened this issue Oct 7, 2023 · 0 comments

Comments

@JDMCreator
Copy link

JDMCreator commented Oct 7, 2023

Related to #140. I am using normalize-svg-path to convert an SVG path to a series of Bezier curves. This way, I am able to use the impressive .offset() function from Bezier.js. However, it seems that there is no way for the function to take into account that the offset bezier curve is part of a series of curves, resulting in artifacts. Is it possible to set the starting point of the offset curves?

I have created a JSFiddle to help you understand what the problem is: https://jsfiddle.net/wfyd832j/1/

Related question I created on StackOverflow: https://stackoverflow.com/questions/77250676/svg-offset-an-open-path-dynamically-with-javascript

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

1 participant