type ScaleFn = ({ containerWidth, isTouch }) => Scale;A function that returns a scale value based on viewport properties. This allows for dynamic scale selection based on runtime conditions.
Parameters#
| Parameter | Type |
|---|---|
{ containerWidth, isTouch } |
{ containerWidth?: number; isTouch?: boolean; } |
{ containerWidth, isTouch }.containerWidth? |
number |
{ containerWidth, isTouch }.isTouch? |
boolean |
Returns#
Scale