Skip to content

Allow users to inject custom interpolators#43

Open
mcnuttandrew wants to merge 1 commit intod3:mainfrom
mcnuttandrew:hof-interpolator
Open

Allow users to inject custom interpolators#43
mcnuttandrew wants to merge 1 commit intod3:mainfrom
mcnuttandrew:hof-interpolator

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.

2 participants