Skip to content

Phone: scale markers with the chart so it looks like the laptop - #10

Merged
AndrewRobalino merged 1 commit into
mainfrom
fix/phone-marker-scale
Oct 3, 2026
Merged

AndrewRobalino merged 1 commit into
mainfrom
fix/phone-marker-scale

Conversation

@AndrewRobalino

Copy link
Copy Markdown
Owner

Follow-up to #9 after a phone screenshot: the sky still looked coarse.

Root cause: markers are drawn at fixed CSS-pixel sizes tuned for a laptop chart. In a ~290 px phone chart every star is ~2x too big relative to the sky, and bright-star glows blotch. The downloaded snapshot looked right because it is drawn at 1000 px and shrunk to the screen.

Fix: markerScale() applies that shrink live: 1.0 on laptop charts (>=560 px), proportional below, floor 0.35. Stars, planets (3 px minimum so they stay tappable) and deep-sky glows all scale. The fewer-stars filter from #9 is reverted, because the snapshot shows every star and looks right.

Tests: frontend 300 passing (scale formula, scaled star/halo/planet radii, SkyCanvas phone vs laptop, all stars still drawn), lint clean.

Check the Cloudflare preview on a phone before merging.

🤖 Generated with Claude Code

…ks like laptop)

The phone chart drew laptop-sized markers (fixed CSS px) into a ~290 px
sky, so stars were ~2x too big relative to the sky and bright-star glows
blotched. A downloaded snapshot looked right because it is drawn large
and shrunk. markerScale() now applies that same shrink live: 1.0 on
laptop charts (>=560 px), proportional below, floor 0.35; planets keep a
3 px minimum. The fewer-stars filter (renderMagLimit) is reverted: the
snapshot shows every star and looks right, so the phone does too.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Oct 3, 2026 •

Copy link
Copy Markdown

Deploying skyvault with  Cloudflare Pages  Cloudflare Pages

Latest commit: 4527380
Status: ✅  Deploy successful!
Preview URL: https://ce6e3cc5.skyvault-25r.pages.dev
Branch Preview URL: https://fix-phone-marker-scale.skyvault-25r.pages.dev

View logs

@AndrewRobalino
AndrewRobalino merged commit ee9e177 into main Oct 3, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant