select-animation 1.2.2 → 1.2.3
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/package.json +1 -1
- package/select-animation.js +7 -8
package/package.json
CHANGED
package/select-animation.js
CHANGED
|
@@ -690,21 +690,20 @@
|
|
|
690
690
|
return n + (t - n) / 2 + Math.sin(e * Math.PI / (a / c.vibrationStep) + 3 * Math.PI / 2) * (t - n) / 2
|
|
691
691
|
}, "vibration"],
|
|
692
692
|
cubicbezier: [function(e, n, t, a, c) {
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
if (c.impair && (c.boucleType == "returnRepeat" || c.boucleType == "repeatReturn")) {
|
|
697
|
-
q = -1, qq = 1;
|
|
693
|
+
let q = 1, qq = 0, sol;
|
|
694
|
+
if (c.impair && (c.boucleType === "returnRepeat" || c.boucleType === "repeatReturn")) {
|
|
695
|
+
q = -1; qq = 1;
|
|
698
696
|
}
|
|
699
|
-
|
|
700
|
-
r = 1 - b,
|
|
697
|
+
let b = e / a, r = 1 - b,
|
|
701
698
|
l = Number(q * c.cubicbezier[0] + qq),
|
|
702
699
|
o = Number(q * c.cubicbezier[2] + qq);
|
|
700
|
+
|
|
703
701
|
if ((sol = solveCubic(3 * l - 3 * o + 1, 0 - 6 * l + 3 * o, 3 * l, 0 - b))) {
|
|
704
702
|
b = sol;
|
|
705
703
|
r = 1 - b;
|
|
706
704
|
}
|
|
707
|
-
|
|
705
|
+
let y = (r = 1 - b) * r * r * 0 + 3 * r * r * b * Number(q * c.cubicbezier[1] + qq) + 3 * r * b * b * Number(q * c.cubicbezier[3] + qq) + b * b * b * 1;
|
|
706
|
+
return n + y * t;
|
|
708
707
|
}, "cubicbezier"]
|
|
709
708
|
};
|
|
710
709
|
|