Mission Control Dashboard - Initial implementation
This commit is contained in:
27
node_modules/motion-dom/dist/es/animation/utils/is-transition-defined.mjs
generated
vendored
Normal file
27
node_modules/motion-dom/dist/es/animation/utils/is-transition-defined.mjs
generated
vendored
Normal file
@@ -0,0 +1,27 @@
|
||||
const orchestrationKeys = new Set([
|
||||
"when",
|
||||
"delay",
|
||||
"delayChildren",
|
||||
"staggerChildren",
|
||||
"staggerDirection",
|
||||
"repeat",
|
||||
"repeatType",
|
||||
"repeatDelay",
|
||||
"from",
|
||||
"elapsed",
|
||||
]);
|
||||
/**
|
||||
* Decide whether a transition is defined on a given Transition.
|
||||
* This filters out orchestration options and returns true
|
||||
* if any options are left.
|
||||
*/
|
||||
function isTransitionDefined(transition) {
|
||||
for (const key in transition) {
|
||||
if (!orchestrationKeys.has(key))
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
export { isTransitionDefined };
|
||||
//# sourceMappingURL=is-transition-defined.mjs.map
|
||||
Reference in New Issue
Block a user