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 Parameter | Default type |
|---|---|
TInput | number |
TOutput | number |
Parameters ​
| Parameter | Type |
|---|---|
value | TInput |
Returns ​
TOutput