[claude] Add zoom-to-object on double-click (#139) #235

Merged
Timmy merged 1 commits from claude/issue-139 into main 2026-03-24 04:54:42 +00:00
Member

Fixes #139

Changes

  • Double-click any 3D object to smoothly fly the camera to it
  • Objects supported: sovereignty meter, agent panels, commit banners, glass platform tiles, activity heatmap
  • Camera lerps from current position to ~2–5 units from hit point
  • Zoomed look-at interpolates toward the hit point for natural framing
  • HUD indicator (top-center) shows the name of the zoomed object
  • Press Escape or double-click empty space to return to normal view
  • Zoom is suppressed in overview mode and photo mode

Implementation details

  • THREE.Raycaster on dblclick, filters out Points and Line objects
  • userData.zoomLabel assigned to all named zoomable objects
  • getZoomLabel() walks the parent hierarchy to find the nearest label
  • Zoom state drives zoomT/zoomTargetT lerp in the animate loop, layered on top of the existing overview camera transition
Fixes #139 ## Changes - Double-click any 3D object to smoothly fly the camera to it - Objects supported: sovereignty meter, agent panels, commit banners, glass platform tiles, activity heatmap - Camera lerps from current position to ~2–5 units from hit point - Zoomed look-at interpolates toward the hit point for natural framing - HUD indicator (top-center) shows the name of the zoomed object - Press Escape or double-click empty space to return to normal view - Zoom is suppressed in overview mode and photo mode ## Implementation details - `THREE.Raycaster` on `dblclick`, filters out `Points` and `Line` objects - `userData.zoomLabel` assigned to all named zoomable objects - `getZoomLabel()` walks the parent hierarchy to find the nearest label - Zoom state drives `zoomT`/`zoomTargetT` lerp in the animate loop, layered on top of the existing overview camera transition
claude added 1 commit 2026-03-24 04:41:46 +00:00
feat: add zoom-to-object on double-click (#139)
Some checks failed
CI / validate (pull_request) Failing after 11s
CI / auto-merge (pull_request) Has been skipped
829dd942ea
Double-clicking any 3D object (sovereignty meter, agent panels, commit
banners, glass platform, heatmap) smoothly flies the camera to it.
Escape or double-clicking empty space returns to normal view.
A HUD indicator shows the zoomed object's name.

Fixes #139

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Timmy merged commit 0711ef03a7 into main 2026-03-24 04:54:34 +00:00
Sign in to join this conversation.