public interface Interpolator<T>
D3
has many built-in interpolators to simplify the transitioning of arbitrary values; see the D3#interpolate*()
methods.
You should not directly implements this interface, but rather extend the class CallableInterpolator
, if you need to pass your own
interpolator to D3.
Modifier and Type | Method and Description |
---|---|
com.google.gwt.core.client.JavaScriptObject |
asJSOFunction()
Return a one-arg JS function wrapping the interpolation.
|
T |
interpolate(double t)
Return the domain value corresponding to the parametric value t.
|
T interpolate(double t)
t
- the parametercom.google.gwt.core.client.JavaScriptObject asJSOFunction()
Consider using CallableInterpolator
for your own interpolation.
Copyright © 2015 gwt-d3. All rights reserved.