@react-spring/shared
Advanced tools
Comparing version 9.0.0-beta.30 to 9.0.0-beta.31
{ | ||
"name": "@react-spring/shared", | ||
"version": "9.0.0-beta.30", | ||
"version": "9.0.0-beta.31", | ||
"description": "Globals and shared modules", | ||
@@ -5,0 +5,0 @@ "homepage": "https://github.com/react-spring/react-spring/tree/master/packages/shared#readme", |
@@ -16,10 +16,14 @@ import { Interpolator, ExtrapolateType, InterpolatorConfig } from './interpolation'; | ||
* Interpolate the value with a custom interpolation function, | ||
* a configuration object or keyframe-like ranges. | ||
* a configuration object, or keyframe-like ranges. | ||
* | ||
* @example | ||
* | ||
* interpolate(alpha => `rgba(255, 165, 0, ${alpha})`) | ||
* interpolate({ range: [0, 1], output: ['yellow', 'red'], extrapolate: 'clamp' }) | ||
* interpolate([0, 0.25, 1], ['yellow', 'orange', 'red']) | ||
* value.to(alpha => `rgba(255, 165, 0, ${alpha})`) | ||
* value.to({ range: [0, 1], output: ['yellow', 'red'], extrapolate: 'clamp' }) | ||
* value.to([0, 0.25, 1], ['yellow', 'orange', 'red']) | ||
*/ | ||
to: Interpolator<Arrify<T>>; | ||
/** | ||
* @deprecated Use the `to` method instead. This will be removed in v10. | ||
*/ | ||
interpolate: Interpolator<Arrify<T>>; | ||
@@ -26,0 +30,0 @@ } |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
90770
1061