motion-dom 14.7.0 → 14.7.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 +10 -1
- package/dist/cjs/index.js.map +1 -1
- package/dist/es/animation/waapi/transforms/TransformAnimation.mjs +1 -0
- package/dist/es/animation/waapi/transforms/TransformAnimation.mjs.map +1 -1
- package/dist/es/animation/waapi/transforms/groups.mjs.map +1 -1
- package/dist/es/projection/node/create-projection-node.mjs +9 -1
- package/dist/es/projection/node/create-projection-node.mjs.map +1 -1
- package/dist/motion-dom.dev.js +10 -1
- package/dist/motion-dom.js +1 -1
- package/package.json +2 -2
package/dist/cjs/index.js
CHANGED
|
@@ -4054,6 +4054,7 @@ function createGroup(owner) {
|
|
|
4054
4054
|
built = new Map();
|
|
4055
4055
|
stop();
|
|
4056
4056
|
tracks.forEach((track) => track.state === "running" && track.js?.start());
|
|
4057
|
+
return true;
|
|
4057
4058
|
},
|
|
4058
4059
|
};
|
|
4059
4060
|
transformGroups.set(element, group);
|
|
@@ -7350,7 +7351,15 @@ function resetDistortingTransform(key, visualElement, values, sharedAnimationVal
|
|
|
7350
7351
|
}
|
|
7351
7352
|
}
|
|
7352
7353
|
}
|
|
7353
|
-
|
|
7354
|
+
/**
|
|
7355
|
+
* Move accelerated transforms back to the main thread. The WAAPI animation
|
|
7356
|
+
* hid startUpdate()'s reset of rotations, skews and z, and moving off it
|
|
7357
|
+
* writes the whole transform back, so reset them again before this node
|
|
7358
|
+
* is measured.
|
|
7359
|
+
*/
|
|
7360
|
+
const demoteTransforms = (node) => node.instance &&
|
|
7361
|
+
transformGroups.get(node.instance)?.demote() &&
|
|
7362
|
+
node.resetSkewAndRotation();
|
|
7354
7363
|
function cancelTreeOptimisedTransformAnimations(projectionNode) {
|
|
7355
7364
|
projectionNode.hasCheckedOptimisedAppear = true;
|
|
7356
7365
|
if (projectionNode.root === projectionNode)
|