Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

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>;
unknown<NewUnknown>(value: NewUnknown): ScaleSequential<Output, NewUnknown>;
}

§Type Parameters

§
Output
[src]
§
Unknown = never
[src]

§Extends

§Methods

§
interpolator(): (t: number) => Output
[src]

Returns the current interpolator underlying the scale.

§
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.

§
unknown<NewUnknown>(value: NewUnknown): ScaleSequential<Output, NewUnknown>
[src]

Sets the output value of the scale for undefined (or NaN) input values and returns this scale.

@param value

The output value of the scale for undefined (or NaN) input values.