28 lines
626 B
JavaScript
28 lines
626 B
JavaScript
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
|