@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.js
CHANGED
|
@@ -1097,10 +1097,10 @@ var VERTEX_SHADER = `
|
|
|
1097
1097
|
|
|
1098
1098
|
varying vec3 vColor;
|
|
1099
1099
|
|
|
1100
|
-
vec3 curve(float _percent
|
|
1100
|
+
vec3 curve(float _percent) {
|
|
1101
1101
|
const float PI2 = 3.141592653589793 * 2.0;
|
|
1102
|
-
float
|
|
1103
|
-
|
|
1102
|
+
const float _length = 0.3;
|
|
1103
|
+
const float radius = 0.056;
|
|
1104
1104
|
float t = mod(_percent, 0.25) / 0.25;
|
|
1105
1105
|
t = mod(_percent, 0.25) - (2.0 * (1.0 - t) * t * -0.0185 + t * t * 0.25);
|
|
1106
1106
|
float x = _length * sin(PI2 * _percent);
|
|
@@ -1130,7 +1130,7 @@ var VERTEX_SHADER = `
|
|
|
1130
1130
|
* uModelMatrix
|
|
1131
1131
|
* uViewMatrix
|
|
1132
1132
|
* rotateX(uProgress)
|
|
1133
|
-
* vec4(curve(${"aPercent" /* PERCENT */}
|
|
1133
|
+
* vec4(curve(${"aPercent" /* PERCENT */}), 1.0);
|
|
1134
1134
|
|
|
1135
1135
|
gl_PointSize = ${"aPointSize" /* POINT_SIZE */};
|
|
1136
1136
|
}
|
|
@@ -1183,7 +1183,8 @@ var LoadingSpiral = (props) => {
|
|
|
1183
1183
|
const phenomenon = new Phenomenon({
|
|
1184
1184
|
settings: createSettings({ canvas: canvasRef.current, step }),
|
|
1185
1185
|
context: {
|
|
1186
|
-
antialias: true
|
|
1186
|
+
antialias: true,
|
|
1187
|
+
alpha: true
|
|
1187
1188
|
}
|
|
1188
1189
|
});
|
|
1189
1190
|
phenomenon.add(
|
|
@@ -1192,11 +1193,9 @@ var LoadingSpiral = (props) => {
|
|
|
1192
1193
|
);
|
|
1193
1194
|
}, []);
|
|
1194
1195
|
return /* @__PURE__ */ React21.createElement("canvas", {
|
|
1195
|
-
width: 200,
|
|
1196
|
-
height: 200,
|
|
1197
1196
|
style: {
|
|
1198
|
-
|
|
1199
|
-
|
|
1197
|
+
maxWidth: 500,
|
|
1198
|
+
maxHeight: 500,
|
|
1200
1199
|
imageRendering: "pixelated"
|
|
1201
1200
|
},
|
|
1202
1201
|
ref: canvasRef,
|