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

If the start point is a curve, then it will be converted to a line #28

Open
Sandstedt opened this issue May 2, 2021 · 0 comments
Open
Labels
bug bug to fix

Comments

@Sandstedt
Copy link
Member

Problem

If you star with this path in the curve editor:

M0, 100 C26, 100 30, 0 30, 0 C30, 0 37, 50 50, 50 C63, 50 75, 0 75, 0 C75, 0 83, 100 100, 100

bild

save it, and then reload the page, it will be converted to:

M0, 100 C0, 100 30, 0 30, 0 C30, 0 37, 50 50, 50 C63, 50 75, 0 75, 0 C75, 0 83, 100 100, 100

bild

So the first point M0, 100 C26, gets converted to M0, 100 C0

You can work around it by adding an extra point in the beginning, like this:

M0, 100 C0, 100 0, 100 0, 100 C26, 100 30, 0 30, 0 C30, 0 37, 50 50, 50 C63, 50 75, 0 75, 0 C75, 0 83, 100 100, 100 

Not sure it it's related to the curve-editor or how mojs interpret SVG paths. Will need to investigate further.

Use case

If you wanna create a seamless loop you often need to start and end with a curved point.

Reproduction codepen

https://codepen.io/sandstedt/pen/OJWKXmO?editors=1010

@xavierfoucrier xavierfoucrier added the bug bug to fix label May 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug bug to fix
Projects
None yet
Development

No branches or pull requests

2 participants