d3-interpolate icon indicating copy to clipboard operation
d3-interpolate copied to clipboard

Allow users to inject custom interpolators

Open mcnuttandrew opened this issue 8 years ago • 1 comments

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 avatar Sep 08 '17 22:09 mcnuttandrew

@mbostock bump for review?

mcnuttandrew avatar Oct 21 '17 18:10 mcnuttandrew