motion-v 0.12.0-beta.1 → 0.12.0-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -25,7 +25,7 @@ function animateUpdates({
|
|
|
25
25
|
else
|
|
26
26
|
animationOptions = resolveStateAnimation.call(this, controlActiveState);
|
|
27
27
|
const factories = createAnimationFactories.call(this, prevTarget, animationOptions, controlDelay);
|
|
28
|
-
const { getChildAnimations, childAnimations } = setupChildAnimations.call(this,
|
|
28
|
+
const { getChildAnimations, childAnimations } = setupChildAnimations.call(this, animationOptions, this.activeStates, isFallback);
|
|
29
29
|
return executeAnimations.call(this, {
|
|
30
30
|
factories,
|
|
31
31
|
getChildAnimations,
|
|
@@ -89,7 +89,7 @@ function createAnimationFactories(prevTarget, animationOptions, controlDelay) {
|
|
|
89
89
|
{ [key]: keyValue },
|
|
90
90
|
{
|
|
91
91
|
...animationOptions,
|
|
92
|
-
delay: (((_a2 = animationOptions[key]) == null ? void 0 : _a2.delay) || (animationOptions == null ? void 0 : animationOptions.delay) || 0) + controlDelay
|
|
92
|
+
delay: (((_a2 = animationOptions == null ? void 0 : animationOptions[key]) == null ? void 0 : _a2.delay) || (animationOptions == null ? void 0 : animationOptions.delay) || 0) + controlDelay
|
|
93
93
|
}
|
|
94
94
|
);
|
|
95
95
|
});
|
|
@@ -112,7 +112,10 @@ class MotionState {
|
|
|
112
112
|
this.updateOptions();
|
|
113
113
|
this.featureManager.mount();
|
|
114
114
|
if (!notAnimate && this.options.animate) {
|
|
115
|
-
this.
|
|
115
|
+
if (this.visualElement.type === "svg") {
|
|
116
|
+
this.visualElement.updateDimensions();
|
|
117
|
+
}
|
|
118
|
+
this.startAnimation();
|
|
116
119
|
}
|
|
117
120
|
if (this.options.layoutId) {
|
|
118
121
|
mountedLayoutIds.add(this.options.layoutId);
|