Skip to content

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