sera-ai 1.0.18 → 1.0.19
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 +5 -11
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +5 -11
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -4017,6 +4017,7 @@ function AudioVisualizerImproved({
|
|
|
4017
4017
|
ctx.fillStyle = isDarkMode ? "#121826" : "#ffffff";
|
|
4018
4018
|
ctx.fillRect(0, 0, canvas.width, canvas.height);
|
|
4019
4019
|
const createDynamicBackground = () => {
|
|
4020
|
+
if (!isDarkMode) return;
|
|
4020
4021
|
const pulseIntensity = 0.5 + (isRecording ? avgAudioLevel * 0.5 : Math.sin(timeRef.current * 0.2) * 0.2);
|
|
4021
4022
|
const mainGradient = ctx.createRadialGradient(
|
|
4022
4023
|
centerX,
|
|
@@ -4026,17 +4027,10 @@ function AudioVisualizerImproved({
|
|
|
4026
4027
|
centerY,
|
|
4027
4028
|
canvas.width * 0.6 * pulseIntensity
|
|
4028
4029
|
);
|
|
4029
|
-
|
|
4030
|
-
|
|
4031
|
-
|
|
4032
|
-
|
|
4033
|
-
mainGradient.addColorStop(1, "rgba(18, 24, 38, 0.0)");
|
|
4034
|
-
} else {
|
|
4035
|
-
mainGradient.addColorStop(0, "rgba(228, 228, 255, 0.7)");
|
|
4036
|
-
mainGradient.addColorStop(0.4, "rgba(240, 240, 255, 0.5)");
|
|
4037
|
-
mainGradient.addColorStop(0.6, "rgba(245, 245, 255, 0.3)");
|
|
4038
|
-
mainGradient.addColorStop(1, "rgba(255, 255, 255, 0.0)");
|
|
4039
|
-
}
|
|
4030
|
+
mainGradient.addColorStop(0, "rgba(91, 33, 182, 0.4)");
|
|
4031
|
+
mainGradient.addColorStop(0.4, "rgba(67, 56, 202, 0.3)");
|
|
4032
|
+
mainGradient.addColorStop(0.6, "rgba(30, 41, 59, 0.2)");
|
|
4033
|
+
mainGradient.addColorStop(1, "rgba(18, 24, 38, 0.0)");
|
|
4040
4034
|
ctx.fillStyle = mainGradient;
|
|
4041
4035
|
ctx.fillRect(0, 0, canvas.width, canvas.height);
|
|
4042
4036
|
const lightCount = 3;
|