Skip to content

Commit

Permalink
fix(circle-nodes): in main graph icons in circle nodes are going to b…
Browse files Browse the repository at this point in the history
…e disappear
  • Loading branch information
MahtabBukhari committed Oct 31, 2024
1 parent a1a314c commit 21fecbd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/Universe/Graph/Cubes/Text/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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' }}
Expand Down

0 comments on commit 21fecbd

Please sign in to comment.