Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Mouse Vue

Public visualization

Viewing a saved revision (read-only)

762769d3e30d4080baacc3a42562a242

Fork of Mouse Vue

0 stars1🌍 Public
PPaulDFPV
Last edited Dec 6, 2021
Created on Dec 4, 2021
Forked from Mouse

A Vue 2 component named `mouse-buddy` renders a single SVG circle that follows the mouse. The root instance tracks pointer movement through the `@mousemove` event, updating a `mousePosition` object which is passed as a prop to the child component. The circle’s `cx` and `cy` attributes are bound directly to this data, with a fixed radius of 30 pixels. No D3 APIs beyond the core library are used; the visualization relies entirely on Vue’s reactive data binding and template interpolation. The SVG viewport is 960 by 500 pixels.

AI-generated description