@bbki.ng/components 1.5.29 → 1.5.30

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/index.js CHANGED
@@ -1110,21 +1110,14 @@ var scaleIndex = (multiplier, max) => (index) => {
1110
1110
  return index / (multiplier / max);
1111
1111
  };
1112
1112
  var scaleIndex2ang = (multiplier) => scaleIndex(multiplier, 360);
1113
- var getRandom = (value, index = 1) => {
1114
- return value + Math.random() * value * 0.04 * index;
1115
- };
1116
1113
  var rgba = (val) => {
1117
1114
  const [r, g, b, a] = val;
1118
1115
  return [r / 255, g / 255, b / 255, a];
1119
1116
  };
1120
- var randOpacityRgb = (val) => {
1121
- const [r, g, b] = val;
1122
- return rgba([r, g, b, Math.random()]);
1123
- };
1124
1117
 
1125
1118
  // src/loading-spiral/createOptions.ts
1126
1119
  var DEFAULT_OPT = {
1127
- multiplier: 15e4,
1120
+ multiplier: 1e4,
1128
1121
  color: [209, 213, 219, 1],
1129
1122
  spiralConstA: 0.04,
1130
1123
  spiralConstB: 0.16
@@ -1140,13 +1133,13 @@ var createOptions = (opt = DEFAULT_OPT) => {
1140
1133
  const B = spiralConstB;
1141
1134
  const xPos = A * Math.pow(Math.E, B * ang) * Math.cos(ang);
1142
1135
  const yPos = A * Math.pow(Math.E, B * ang) * Math.sin(ang);
1143
- return [getRandom(xPos), getRandom(yPos), 1];
1136
+ return [xPos, yPos, 1];
1144
1137
  },
1145
1138
  size: 3
1146
1139
  },
1147
1140
  {
1148
1141
  name: "aColor" /* COLOR */,
1149
- data: () => randOpacityRgb(color),
1142
+ data: () => rgba(color),
1150
1143
  size: 3
1151
1144
  }
1152
1145
  ];
package/dist/index.mjs CHANGED
@@ -1052,21 +1052,14 @@ var scaleIndex = (multiplier, max) => (index) => {
1052
1052
  return index / (multiplier / max);
1053
1053
  };
1054
1054
  var scaleIndex2ang = (multiplier) => scaleIndex(multiplier, 360);
1055
- var getRandom = (value, index = 1) => {
1056
- return value + Math.random() * value * 0.04 * index;
1057
- };
1058
1055
  var rgba = (val) => {
1059
1056
  const [r, g, b, a] = val;
1060
1057
  return [r / 255, g / 255, b / 255, a];
1061
1058
  };
1062
- var randOpacityRgb = (val) => {
1063
- const [r, g, b] = val;
1064
- return rgba([r, g, b, Math.random()]);
1065
- };
1066
1059
 
1067
1060
  // src/loading-spiral/createOptions.ts
1068
1061
  var DEFAULT_OPT = {
1069
- multiplier: 15e4,
1062
+ multiplier: 1e4,
1070
1063
  color: [209, 213, 219, 1],
1071
1064
  spiralConstA: 0.04,
1072
1065
  spiralConstB: 0.16
@@ -1082,13 +1075,13 @@ var createOptions = (opt = DEFAULT_OPT) => {
1082
1075
  const B = spiralConstB;
1083
1076
  const xPos = A * Math.pow(Math.E, B * ang) * Math.cos(ang);
1084
1077
  const yPos = A * Math.pow(Math.E, B * ang) * Math.sin(ang);
1085
- return [getRandom(xPos), getRandom(yPos), 1];
1078
+ return [xPos, yPos, 1];
1086
1079
  },
1087
1080
  size: 3
1088
1081
  },
1089
1082
  {
1090
1083
  name: "aColor" /* COLOR */,
1091
- data: () => randOpacityRgb(color),
1084
+ data: () => rgba(color),
1092
1085
  size: 3
1093
1086
  }
1094
1087
  ];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bbki.ng/components",
3
- "version": "1.5.29",
3
+ "version": "1.5.30",
4
4
  "main": "./dist/index.js",
5
5
  "module": "./dist/index.mjs",
6
6
  "types": "./dist/index.d.ts",