Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Mouse Seguindo

Public visualization

Viewing a saved revision (read-only)

7af20affccab48ab935490a248a150be

Mouse Seguindo

0 stars0🌍 Public
EEverton Rocha
Last edited Mar 16, 2021
Created on Mar 16, 2021

A circle tracks the user's mouse pointer across an SVG canvas, updating its position in real time to follow the cursor. The visualization demonstrates a minimal interactive component built with React's `useState` and `useCallback` hooks to manage and update mouse coordinates. The app listens for mouse movement events on the `<svg>` element and renders the circle with D3's `arc` import, though only the basic circle element is used. It relies on React 16.9 and D3 v5, with rendering handled entirely through SVG.

AI-generated description

Um programa que faz o mouse seguir o ponteiro