Skip to content

Documentation / @ripl/core / ScaleMethod

Type Alias: ScaleMethod<TInput, TOutput> ​

ScaleMethod<TInput, TOutput> = (value) => TOutput

Defined in: packages/core/src/scales/types.ts:2

A function that maps a value from one space to another.

Type Parameters ​

Type ParameterDefault type
TInputnumber
TOutputnumber

Parameters ​

ParameterType
valueTInput

Returns ​

TOutput