From 21fecbd0d8d189ac0c43c10769e4d716385161a9 Mon Sep 17 00:00:00 2001 From: MahtabBukhari Date: Thu, 31 Oct 2024 13:23:45 +0500 Subject: [PATCH] fix(circle-nodes): in main graph icons in circle nodes are going to be disappear --- src/components/Universe/Graph/Cubes/Text/index.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/Universe/Graph/Cubes/Text/index.tsx b/src/components/Universe/Graph/Cubes/Text/index.tsx index 8b1e6c005..ffdc77be3 100644 --- a/src/components/Universe/Graph/Cubes/Text/index.tsx +++ b/src/components/Universe/Graph/Cubes/Text/index.tsx @@ -84,7 +84,7 @@ export const TextNode = memo(({ node, hide, isHovered }: Props) => { const nodePosition = nodePositionRef.current.setFromMatrixPosition(ringRef.current!.matrixWorld) if (ringRef.current) { - ringRef.current.visible = nodePosition.distanceTo(camera.position) < 2500 + ringRef.current.visible = nodePosition.distanceTo(camera.position) < 10000 } // Set visibility based on distance @@ -149,7 +149,7 @@ export const TextNode = memo(({ node, hide, isHovered }: Props) => { } }) }} - position={[-15, 15, 0]} + position={[-10, 10, 0]} scale={2} src={`svg-icons/${iconName}.svg`} strokeMaterial={{ color: 'yellow' }}