Fork of Mouse Vue
✓ Published1🌍 Public
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 descriptionMIT Licensed