Skip to content

Make PNG export match preview - #38

Merged
happykhan merged 1 commit into
masterfrom
codex/fix-png-export
Aug 6, 2026
Merged

happykhan merged 1 commit into
masterfrom
codex/fix-png-export

Conversation

@happykhan

Copy link
Copy Markdown
Owner

What changed

  • rasterise the live interactive canvas for PNG downloads
  • preserve the exact current zoom, pan, labels and dragged legend positions
  • keep SVG as the separate editable vector export
  • add a pixel-level browser regression after moving the GC legend and zooming the plot

Root cause

PNG export recreated the plot through the SVG renderer. Canvas and SVG use separate rendering paths, so the exported legend and annotation layout could differ from the preview despite sharing nominal view-state coordinates.

Validation

  • lint, architecture, licence and security checks
  • 176 unit tests
  • production build
  • 24 production browser tests, including exact 1200 x 1200 PNG pixel comparison
  • Vite development-mode BLAST/WASM browser test

@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying brigx with  Cloudflare Pages  Cloudflare Pages

Latest commit: f465abc
Status: ✅  Deploy successful!
Preview URL: https://5324b18e.brigx.pages.dev
Branch Preview URL: https://codex-fix-png-export.brigx.pages.dev

View logs

@happykhan
happykhan merged commit 1938b9e into master Aug 6, 2026
3 checks passed
@happykhan
happykhan deleted the codex/fix-png-export branch August 6, 2026 17:14
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