Skip to content

Fix SVG dimensions from the captured terminal grid - #12

Merged
jackspirou merged 2 commits into
mainfrom
codex/resolve-svg-dimensions
Oct 8, 2026
Merged

jackspirou merged 2 commits into
mainfrom
codex/resolve-svg-dimensions

Conversation

@jackspirou

Copy link
Copy Markdown
Member

SVG output now fits the captured terminal rows and columns. Capture records the actual grid and cell metrics. Export rounds fractional cell extents up to full pixels and preserves padding, window bars, and margins.

The repair integrates current main without rewriting contributor history. It keeps rounded corner transparency and copies style settings before sizing. Raster capture settings remain unchanged. Invalid cell metrics use the existing font-size fallback.

Validation:

  • Native Chrome race suite: 239 cases pass, zero failed or skipped tests.
  • Native pixel checks preserve transparent rounded edges and configured margin fill.
  • Grid tests cover fractional cells, both axes, single-axis capture settings, pixel fallback, and invalid metrics.
  • Capture tests prove recorded grid dimensions, exact embedded font bytes, and SVG-only capture without raster frames.
  • Vet, full lint, module tidy, formatting, and native/Linux/Windows builds pass.
  • All 106 maintained tapes pass validation.
  • Opus 5.5 high pre-PR autoreview passes with no P0 findings. Exact-content secret scan passes.

Linux and Windows builds prove compilation. Their native browser behavior requires hosted tests.

Resolves PR 7. The replacement retains its original commit and integrates current main. A contributor-fork write check failed at Git LFS authentication. This branch publishes the repaired proposal in AgentStation.

xav-ie and others added 2 commits February 26, 2026 12:05
Use TermCols/TermRows from xterm.js to snap the inner SVG viewport
to the exact character grid, eliminating black bars and subpixel gaps.
Set background color on the outer <svg> element to prevent edge
rendering artifacts.
@jackspirou
jackspirou merged commit 27743a1 into main Oct 8, 2026
8 checks passed
@jackspirou
jackspirou deleted the codex/resolve-svg-dimensions branch October 8, 2026 18: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.

2 participants