motion-dom 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/index.js +1 -1
- package/dist/es/animation/waapi/utils/linear.mjs +1 -1
- package/dist/index.d.ts +19 -1235
- package/dist/motion-dom.dev.js +1 -1
- package/dist/motion-dom.js +1 -1
- package/package.json +2 -2
package/dist/cjs/index.js
CHANGED
|
@@ -705,7 +705,7 @@ resolution = 10 // as milliseconds
|
|
|
705
705
|
let points = "";
|
|
706
706
|
const numPoints = Math.max(Math.round(duration / resolution), 2);
|
|
707
707
|
for (let i = 0; i < numPoints; i++) {
|
|
708
|
-
points += easing(i / (numPoints - 1)) + ", ";
|
|
708
|
+
points += Math.round(easing(i / (numPoints - 1)) * 10000) / 10000 + ", ";
|
|
709
709
|
}
|
|
710
710
|
return `linear(${points.substring(0, points.length - 2)})`;
|
|
711
711
|
};
|
|
@@ -4,7 +4,7 @@ resolution = 10 // as milliseconds
|
|
|
4
4
|
let points = "";
|
|
5
5
|
const numPoints = Math.max(Math.round(duration / resolution), 2);
|
|
6
6
|
for (let i = 0; i < numPoints; i++) {
|
|
7
|
-
points += easing(i / (numPoints - 1)) + ", ";
|
|
7
|
+
points += Math.round(easing(i / (numPoints - 1)) * 10000) / 10000 + ", ";
|
|
8
8
|
}
|
|
9
9
|
return `linear(${points.substring(0, points.length - 2)})`;
|
|
10
10
|
};
|