@zyzgroup/core-web 0.0.10 → 0.0.11

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.
@@ -8037,6 +8037,7 @@ const qt = {
8037
8037
  return t < 0.5 ? qt.Bounce.In(t * 2) * 0.5 : qt.Bounce.Out(t * 2 - 1) * 0.5 + 0.5;
8038
8038
  }
8039
8039
  },
8040
+ // 生成指数
8040
8041
  generatePow: function(t = 4) {
8041
8042
  return t = t < Number.EPSILON ? Number.EPSILON : t, t = t > 1e4 ? 1e4 : t, {
8042
8043
  In: function(e) {
@@ -8049,6 +8050,20 @@ const qt = {
8049
8050
  return e < 0.5 ? (e * 2) ** t / 2 : (1 - (2 - e * 2) ** t) / 2 + 0.5;
8050
8051
  }
8051
8052
  };
8053
+ },
8054
+ random: function(t) {
8055
+ return Math.random();
8056
+ },
8057
+ createStep: function(t) {
8058
+ return function(e) {
8059
+ return Math.floor(e * t) / t;
8060
+ };
8061
+ },
8062
+ createNoisyEasing: function(t, e = 0.1) {
8063
+ const n = 1 - e;
8064
+ return function(i) {
8065
+ return e * Math.random() + n * t(i);
8066
+ };
8052
8067
  }
8053
8068
  };
8054
8069
  let ie;