Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Mouse Follower (some experiments)

Public visualization

Fork of Mouse Follower (some experiments)

0 stars0🌍 Public
Hhbrng.computer@mailbox.org
Last edited Apr 2, 2024
Created on Apr 2, 2024
Forked from Mouse Follower

A circle follows the mouse cursor within a full-window SVG canvas. The example demonstrates unidirectional data flow in React, where the mouse position is the data. The circle’s center coordinates are set from the current state, initialized to the window’s center. The code uses D3’s `select` API to manage the SVG and circle elements, and RDP’s `viz` and `setState` functions to handle rendering and state updates in response to `mousemove` events.

AI-generated description

A circle that follows the mouse using unidirectional data flow. See also Mouse Follower with React.

Comments

Sign in to join the discussion.

MIT Licensed