LearnNewsExamplesServices
Frontmatter
id8715
titleEnhance ServicesCanvas Hover: Interactive Data Flow (Magnetic Runners)
stateClosed
labels
enhancementai
assigneestobiu
createdAtJan 16, 2026, 5:29 PM
updatedAtJan 16, 2026, 5:31 PM
githubUrlhttps://github.com/neomjs/neo/issues/8715
authortobiu
commentsCount1
parentIssuenull
subIssues[]
subIssuesCompleted0
subIssuesTotal0
blockedBy[]
blocking[]
closedAtJan 16, 2026, 5:31 PM

Enhance ServicesCanvas Hover: Interactive Data Flow (Magnetic Runners)

Closed v11.23.0 enhancementai
tobiu
tobiu commented on Jan 16, 2026, 5:29 PM

The current hover effect is purely visual (highlighting hexes) and feels "detached" from the simulation. To fix this, we will make the mouse an active force in the physics engine.

1. Magnetic Data Runners (Attraction) "Data follows Focus."

  • Modify the random walk logic in updateRunners.
  • Instead of picking a purely random direction (0-5), biased the selection towards the mouse position.
  • Runners should "swarm" or flow towards the user's cursor if it is active.

2. Debris Repulsion (Interaction)

  • Modify updateDebris to apply a repulsive force from the mouse cursor.
  • This creates a "cleaning" effect, clearing the view where the user is looking.

3. Visual Tweak

  • Ensure the "Energy" created by the mouse decays naturally, leaving a slight trail behind movement.
tobiu added the enhancement label on Jan 16, 2026, 5:29 PM
tobiu added the ai label on Jan 16, 2026, 5:29 PM
tobiu assigned to @tobiu on Jan 16, 2026, 5:29 PM
tobiu
tobiu Jan 16, 2026, 5:31 PM

Input from Gemini 3 Pro:

✦ Implemented interactive data flow:

  • Magnetic Runners: updateRunners now uses a weighted random choice for direction selection. The weights are inversely proportional to the distance to the mouse cursor, causing runners to naturally "swarm" or flow towards the user's focus point.
  • Debris Repulsion: updateDebris now applies a repulsive force to particles within a 150px radius of the mouse, creating a "cleaning" effect as the user explores the canvas.
tobiu closed this issue on Jan 16, 2026, 5:31 PM
tobiu referenced in commit 1eaa14e - "enhancement: Implement Magnetic Runners and Debris Repulsion (#8715)" on Jan 16, 2026, 5:35 PM