motion-dom 12.27.3-alpha.0 → 12.27.3-alpha.1
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.
package/dist/cjs/index.js
CHANGED
|
@@ -9006,7 +9006,7 @@ class LayoutAnimationBuilder {
|
|
|
9006
9006
|
this.notifyReady = resolve;
|
|
9007
9007
|
this.rejectReady = reject;
|
|
9008
9008
|
});
|
|
9009
|
-
microtask.read((
|
|
9009
|
+
microtask.read(() => {
|
|
9010
9010
|
this.start().then(this.notifyReady).catch(this.rejectReady);
|
|
9011
9011
|
});
|
|
9012
9012
|
}
|
|
@@ -9022,6 +9022,7 @@ class LayoutAnimationBuilder {
|
|
|
9022
9022
|
const beforeRecords = this.buildRecords(beforeElements);
|
|
9023
9023
|
const exitCandidates = collectExitCandidates(beforeRecords);
|
|
9024
9024
|
beforeRecords.forEach(({ projection }) => {
|
|
9025
|
+
seedProjectionSnapshot(projection);
|
|
9025
9026
|
projection.isPresent = true;
|
|
9026
9027
|
projection.willUpdate();
|
|
9027
9028
|
});
|
|
@@ -9152,6 +9153,16 @@ function createVisualState() {
|
|
|
9152
9153
|
},
|
|
9153
9154
|
};
|
|
9154
9155
|
}
|
|
9156
|
+
function seedProjectionSnapshot(projection) {
|
|
9157
|
+
const projectionNode = projection;
|
|
9158
|
+
if (!projectionNode.currentAnimation && !projectionNode.pendingAnimation) {
|
|
9159
|
+
return;
|
|
9160
|
+
}
|
|
9161
|
+
const snapshot = projection.measure(false);
|
|
9162
|
+
snapshot.latestValues =
|
|
9163
|
+
projectionNode.animationValues || projection.latestValues;
|
|
9164
|
+
projection.snapshot = snapshot;
|
|
9165
|
+
}
|
|
9155
9166
|
function getOrCreateRecord(element, parentProjection, projectionOptions) {
|
|
9156
9167
|
const existing = visualElementStore.get(element);
|
|
9157
9168
|
const visualElement = existing ??
|