till download files, everything works
This commit is contained in:
1 parent
ce893a4185
commit
ed1a580b09
6050 files changed
+768543
-177
No files matched your search
+3
@@ -0,0 +1,3 @@
|
||||
const isMotionValue = (value) => Boolean(value && value.getVelocity);
|
||||
|
||||
export { isMotionValue };
|
||||
+16
@@ -0,0 +1,16 @@
|
||||
import { isCustomValue } from '../../utils/resolve-value.mjs';
|
||||
import { isMotionValue } from './is-motion-value.mjs';
|
||||
|
||||
/**
|
||||
* If the provided value is a MotionValue, this returns the actual value, otherwise just the value itself
|
||||
*
|
||||
* TODO: Remove and move to library
|
||||
*/
|
||||
function resolveMotionValue(value) {
|
||||
const unwrappedValue = isMotionValue(value) ? value.get() : value;
|
||||
return isCustomValue(unwrappedValue)
|
||||
? unwrappedValue.toValue()
|
||||
: unwrappedValue;
|
||||
}
|
||||
|
||||
export { resolveMotionValue };
|
||||
Reference in new issue
Block a user