Mission Control Dashboard - Initial implementation
This commit is contained in:
15
node_modules/motion-dom/dist/es/animation/utils/resolve-transition.mjs
generated
vendored
Normal file
15
node_modules/motion-dom/dist/es/animation/utils/resolve-transition.mjs
generated
vendored
Normal file
@@ -0,0 +1,15 @@
|
||||
/**
|
||||
* If `transition` has `inherit: true`, shallow-merge it with
|
||||
* `parentTransition` (child keys win) and strip the `inherit` key.
|
||||
* Otherwise return `transition` unchanged.
|
||||
*/
|
||||
function resolveTransition(transition, parentTransition) {
|
||||
if (transition?.inherit && parentTransition) {
|
||||
const { inherit: _, ...rest } = transition;
|
||||
return { ...parentTransition, ...rest };
|
||||
}
|
||||
return transition;
|
||||
}
|
||||
|
||||
export { resolveTransition };
|
||||
//# sourceMappingURL=resolve-transition.mjs.map
|
||||
Reference in New Issue
Block a user