You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'd like to see extrapolating for both sides, just like in v1.
Motivation
Currently we can only extrapolate left and right at the same time, but if I wanted to clamp left and extend identity for the right value, that wouldn't be possible. I'd have to use a workaround: Use no extrapolation and then use Math.min or Math.max for "clamping".
Description
I'd like to see extrapolating for both sides, just like in v1.
Motivation
Currently we can only extrapolate left and right at the same time, but if I wanted to clamp left and extend identity for the right value, that wouldn't be possible. I'd have to use a workaround: Use no extrapolation and then use
Math.min
orMath.max
for "clamping".Code example
A solution for this would be:
To make it backwards compatible (and also cleaner if you don't need different extrapolations) the
interpolate
function could take both types:The text was updated successfully, but these errors were encountered: