@bbki.ng/components 2.1.25 → 2.1.28
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.cjs +8 -9
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +8 -9
- package/dist/index.js.map +1 -1
- package/package.json +3 -2
package/dist/index.cjs
CHANGED
|
@@ -1157,10 +1157,10 @@ var VERTEX_SHADER = `
|
|
|
1157
1157
|
|
|
1158
1158
|
varying vec3 vColor;
|
|
1159
1159
|
|
|
1160
|
-
vec3 curve(float _percent
|
|
1160
|
+
vec3 curve(float _percent) {
|
|
1161
1161
|
const float PI2 = 3.141592653589793 * 2.0;
|
|
1162
|
-
float
|
|
1163
|
-
|
|
1162
|
+
const float _length = 0.3;
|
|
1163
|
+
const float radius = 0.056;
|
|
1164
1164
|
float t = mod(_percent, 0.25) / 0.25;
|
|
1165
1165
|
t = mod(_percent, 0.25) - (2.0 * (1.0 - t) * t * -0.0185 + t * t * 0.25);
|
|
1166
1166
|
float x = _length * sin(PI2 * _percent);
|
|
@@ -1190,7 +1190,7 @@ var VERTEX_SHADER = `
|
|
|
1190
1190
|
* uModelMatrix
|
|
1191
1191
|
* uViewMatrix
|
|
1192
1192
|
* rotateX(uProgress)
|
|
1193
|
-
* vec4(curve(${"aPercent" /* PERCENT */}
|
|
1193
|
+
* vec4(curve(${"aPercent" /* PERCENT */}), 1.0);
|
|
1194
1194
|
|
|
1195
1195
|
gl_PointSize = ${"aPointSize" /* POINT_SIZE */};
|
|
1196
1196
|
}
|
|
@@ -1243,7 +1243,8 @@ var LoadingSpiral = (props) => {
|
|
|
1243
1243
|
const phenomenon = new import_phenomenon.default({
|
|
1244
1244
|
settings: createSettings({ canvas: canvasRef.current, step }),
|
|
1245
1245
|
context: {
|
|
1246
|
-
antialias: true
|
|
1246
|
+
antialias: true,
|
|
1247
|
+
alpha: true
|
|
1247
1248
|
}
|
|
1248
1249
|
});
|
|
1249
1250
|
phenomenon.add(
|
|
@@ -1252,11 +1253,9 @@ var LoadingSpiral = (props) => {
|
|
|
1252
1253
|
);
|
|
1253
1254
|
}, []);
|
|
1254
1255
|
return /* @__PURE__ */ import_react22.default.createElement("canvas", {
|
|
1255
|
-
width: 200,
|
|
1256
|
-
height: 200,
|
|
1257
1256
|
style: {
|
|
1258
|
-
|
|
1259
|
-
|
|
1257
|
+
maxWidth: 500,
|
|
1258
|
+
maxHeight: 500,
|
|
1260
1259
|
imageRendering: "pixelated"
|
|
1261
1260
|
},
|
|
1262
1261
|
ref: canvasRef,
|