Mission Control Dashboard - Initial implementation
This commit is contained in:
4
node_modules/motion-dom/dist/es/value/utils/is-motion-value.mjs
generated
vendored
Normal file
4
node_modules/motion-dom/dist/es/value/utils/is-motion-value.mjs
generated
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
const isMotionValue = (value) => Boolean(value && value.getVelocity);
|
||||
|
||||
export { isMotionValue };
|
||||
//# sourceMappingURL=is-motion-value.mjs.map
|
||||
1
node_modules/motion-dom/dist/es/value/utils/is-motion-value.mjs.map
generated
vendored
Normal file
1
node_modules/motion-dom/dist/es/value/utils/is-motion-value.mjs.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"is-motion-value.mjs","sources":["../../../../src/value/utils/is-motion-value.ts"],"sourcesContent":["import type { MotionValue } from \"..\"\n\nexport const isMotionValue = (value: any): value is MotionValue =>\n Boolean(value && value.getVelocity)\n"],"names":[],"mappings":"AAEO,MAAM,aAAa,GAAG,CAAC,KAAU,KACpC,OAAO,CAAC,KAAK,IAAI,KAAK,CAAC,WAAW;;;;"}
|
||||
11
node_modules/motion-dom/dist/es/value/utils/resolve-motion-value.mjs
generated
vendored
Normal file
11
node_modules/motion-dom/dist/es/value/utils/resolve-motion-value.mjs
generated
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
import { isMotionValue } from './is-motion-value.mjs';
|
||||
|
||||
/**
|
||||
* If the provided value is a MotionValue, this returns the actual value, otherwise just the value itself
|
||||
*/
|
||||
function resolveMotionValue(value) {
|
||||
return isMotionValue(value) ? value.get() : value;
|
||||
}
|
||||
|
||||
export { resolveMotionValue };
|
||||
//# sourceMappingURL=resolve-motion-value.mjs.map
|
||||
1
node_modules/motion-dom/dist/es/value/utils/resolve-motion-value.mjs.map
generated
vendored
Normal file
1
node_modules/motion-dom/dist/es/value/utils/resolve-motion-value.mjs.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"resolve-motion-value.mjs","sources":["../../../../src/value/utils/resolve-motion-value.ts"],"sourcesContent":["import type { AnyResolvedKeyframe } from \"../../animation/types\"\nimport { isMotionValue } from \"./is-motion-value\"\nimport type { MotionValue } from \"../index\"\n\n/**\n * If the provided value is a MotionValue, this returns the actual value, otherwise just the value itself\n */\nexport function resolveMotionValue(\n value?: AnyResolvedKeyframe | MotionValue\n): AnyResolvedKeyframe {\n return isMotionValue(value) ? value.get() : value\n}\n"],"names":[],"mappings":";;AAIA;;AAEG;AACG,SAAU,kBAAkB,CAC9B,KAAyC,EAAA;AAEzC,IAAA,OAAO,aAAa,CAAC,KAAK,CAAC,GAAG,KAAK,CAAC,GAAG,EAAE,GAAG,KAAK;AACrD;;;;"}
|
||||
Reference in New Issue
Block a user