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

Proposal: Split curve #394

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

dmiranda2791
Copy link

Description

It receives four points that form a curve and returns two curves with the same shape as the curve form by the input points.

My use case

Path morphing between two charts having data sources with different sizes. Initially, each path has a different number of curves, in order to animate I had to match the number of curves without altering the shape of the curve. If you are ok with it, I could add a test and corresponding documentation and any other piece you suggest.

Implementation References

https://codepen.io/enxaneta/post/how-to-add-a-point-to-an-svg-path
https://pomax.github.io/bezierinfo/#splitting

@wcandillon
Copy link
Owner

haha cool :)

May I ask for some test cases?

@dmiranda2791
Copy link
Author

No problem!

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 this pull request may close these issues.

2 participants