motion 12.16.1-alpha.0 → 12.17.0-alpha.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.
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 || "keyframes"];
768
+ : generators?.[type];
769
769
  if (numKeyframes <= 2 && createGenerator) {
770
770
  /**
771
771
  * As we're creating an easing function from a spring,