Interpolations
š§ We'd love to add some examples to this, consider submitting a PR š§
value.to
either takes an object of the following shape:
Value | default | Description |
---|---|---|
extrapolateLeft | extend | Left extrapolate. Can be: identity/clamp/extend |
extrapolateRight | extend | Right extrapolate. Can be: identity/clamp/extend |
extrapolate | extend | Shortcut to set left and right-extrapolate |
range | [0,1] | Array of input ranges |
output | undefined | Array of mapped output ranges |
map | undefined | Value filter applied to input value |
A range shortcut: value.to([...inputRange], [...outputRange])
Or a function: value.to(v => ...)