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

Allow users to inject custom interpolators #43

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

Conversation

mcnuttandrew
Copy link

This PR addresses the concerns raised in #42 by following @mbostock's suggestions in the same thread. Specifically: it presents a new function, customInterpolate, that allows users to specify an object of functions that will override the default versions of those interpolators.

This can be useful if you want use the top level interpolator, but don't want to interpolate through RGB, or if you want to prune children from a tree you are interpolating against, or simply just don't want strings to be interpolated.

@mcnuttandrew
Copy link
Author

@mbostock bump for review?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

Successfully merging this pull request may close these issues.

None yet

2 participants