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

Switch to a segment splitting approach #16

Merged
merged 15 commits into from
Jul 5, 2017
Merged

Conversation

pbeshai
Copy link
Owner

@pbeshai pbeshai commented Jul 5, 2017

Major changes to switch the way paths are extended to have the same length. Previously, points were duplicated based on which point in the destination line had the closest X value. This was good for extending lines (see #15), but suffered with d3-area (#11), graticules (#13), and curved lines (#10). This new approach uses de Casteljau's algorithm to split bezier curves, allowing for smooth interpolation.

d3-interpolate-path-v2-curve

@pbeshai pbeshai merged commit e2d1abd into master Jul 5, 2017
@pbeshai pbeshai deleted the equal-distribution branch July 5, 2017 15:14
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.

Weird waving interpolation on graticules Support for area() Improve curve interpolation
1 participant