@igorao79/uivix 0.1.0 → 0.1.2
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/README.md +215 -0
- package/dist/index.js +4 -4
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +4 -4
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1520,8 +1520,8 @@ var ParticleBackground = ({
|
|
|
1520
1520
|
const onMouseLeave = () => {
|
|
1521
1521
|
mouseRef.current = { x: -9999, y: -9999 };
|
|
1522
1522
|
};
|
|
1523
|
-
|
|
1524
|
-
|
|
1523
|
+
window.addEventListener("mousemove", onMouse);
|
|
1524
|
+
window.addEventListener("mouseleave", onMouseLeave);
|
|
1525
1525
|
const getColor = (shade, alpha) => {
|
|
1526
1526
|
const v = 40;
|
|
1527
1527
|
const r = Math.round(baseR + (shade - 0.5) * v);
|
|
@@ -1632,8 +1632,8 @@ var ParticleBackground = ({
|
|
|
1632
1632
|
return () => {
|
|
1633
1633
|
cancelAnimationFrame(rafRef.current);
|
|
1634
1634
|
window.removeEventListener("resize", resize);
|
|
1635
|
-
|
|
1636
|
-
|
|
1635
|
+
window.removeEventListener("mousemove", onMouse);
|
|
1636
|
+
window.removeEventListener("mouseleave", onMouseLeave);
|
|
1637
1637
|
};
|
|
1638
1638
|
}, [items, count, connectionDistance, arrows, mouseDistance, color, speed, fontSize, imageSize, lineWidth, maxOpacity, normalize]);
|
|
1639
1639
|
return /* @__PURE__ */ jsx17(
|