Skip to main content
100%

Fork of Mouse Follower (some experiments)

✓ Published0🌍 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.

MIT Licensed

Similar vizzes