motion 12.16.1-alpha.0 → 12.17.0-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/debug.js +7 -294
- package/dist/cjs/index.js +6 -7531
- package/dist/cjs/mini.js +2 -2
- package/dist/cjs/react-client.js +6 -10157
- package/dist/cjs/react-m.js +6 -1780
- package/dist/cjs/react-mini.js +7 -642
- package/dist/es/framer-motion/dist/es/animation/hooks/use-animated-state.mjs +1 -1
- package/dist/es/framer-motion/dist/es/animation/hooks/use-animation.mjs +3 -3
- package/dist/es/framer-motion/dist/es/animation/sequence/create.mjs +1 -1
- package/dist/es/motion-dom/dist/es/animation/waapi/utils/linear.mjs +1 -1
- package/dist/motion.dev.js +2 -2
- package/dist/motion.js +1 -1
- package/package.json +3 -3
package/dist/cjs/mini.js
CHANGED
|
@@ -105,7 +105,7 @@ resolution = 10 // as milliseconds
|
|
|
105
105
|
let points = "";
|
|
106
106
|
const numPoints = Math.max(Math.round(duration / resolution), 2);
|
|
107
107
|
for (let i = 0; i < numPoints; i++) {
|
|
108
|
-
points += easing(i / (numPoints - 1)) + ", ";
|
|
108
|
+
points += Math.round(easing(i / (numPoints - 1)) * 10000) / 10000 + ", ";
|
|
109
109
|
}
|
|
110
110
|
return `linear(${points.substring(0, points.length - 2)})`;
|
|
111
111
|
};
|
|
@@ -765,7 +765,7 @@ function createAnimationsFromSequence(sequence, { defaultTransition = {}, ...seq
|
|
|
765
765
|
const numKeyframes = valueKeyframesAsList.length;
|
|
766
766
|
const createGenerator = isGenerator(type)
|
|
767
767
|
? type
|
|
768
|
-
: generators?.[type
|
|
768
|
+
: generators?.[type];
|
|
769
769
|
if (numKeyframes <= 2 && createGenerator) {
|
|
770
770
|
/**
|
|
771
771
|
* As we're creating an easing function from a spring,
|