ScaleSequential
interface ScaleSequential <Output, Unknown = never> extends ScaleSequentialBase<Output, Unknown> {
interpolator(): (t: number) => Output;
interpolator(interpolator: (t: number) => Output): this;
interpolator<NewOutput>(interpolator: (t: number) => NewOutput): ScaleSequential<NewOutput, Unknown>;
unknown(): UnknownReturnType<Unknown, undefined>;
}§Extends
§
ScaleSequentialBase<Output, Unknown>
[src]§Methods
§
interpolator(interpolator: (t: number) => Output): this
[src]Sets the scale’s interpolator to the specified function.
@param interpolator
An interpolator function mapping a value from the [0, 1] interval to an output value.
§
interpolator<NewOutput>(interpolator: (t: number) => NewOutput): ScaleSequential<NewOutput, Unknown>
[src]Sets the scale’s interpolator to the specified function.
The generic corresponds to a the new output type of the scale. The output type of the scale is determined by the output type of the interpolator function.
@param interpolator
An interpolator function mapping a value from the [0, 1] interval to an output value.
§
unknown(): UnknownReturnType<Unknown, undefined>
[src]Returns the current unknown value, which defaults to undefined.