Skip to content

0.15.0: the editor's zoom works on the Replay view - #14

Merged
jeany55 merged 2 commits into
mainfrom
replay-zoom
Oct 16, 2026
Merged

jeany55 merged 2 commits into
mainfrom
replay-zoom

Conversation

@jeany55

@jeany55 jeany55 commented Oct 16, 2026 •

Copy link
Copy Markdown
Contributor

These all zoom the Replay view now:

  • View ▸ Zoom In/Out and the zoom levels
  • Zoom to Fit
  • the toolbar's buttons and their keys
  • Ctrl+wheel over the game

The zoom also carries over between Map and Replay both ways. Spectate's camera track is made again at the new scale in the same moment, so following goes on without a jump.

Needs: scm-js/scm-js#50 (merged) and @scm-js/plugin-api 1.53.0, the devDependency now. The wheel and zooming out past twice the game's view also need scm-sim 0.9.0's play page. An older editor or page keeps working without them. Draft until the scm-sim side is out, per the release order.

Testing: 136 tests (two new in tests/gameview.test.ts) pass, and tsc is clean against the published plugin-api 1.53.0. Checked end to end headless in the editor:

Action Zoom
Opened 100%
Ctrl+− three times 75% → 50% → 36%
Menu ▸ Zoom In 50%
Ctrl+wheel in 75%
Ctrl+wheel out twice 36%
Ctrl+= in the frame 50%, tab not zoomed
Fit 36%
Back to Map 35%
Map at 50%, then Replay 51%

dist/plugin.js is left to CI.

🤖 Generated with Claude Code

jeany55 and others added 2 commits October 16, 2026 09:02
View ▸ Zoom In/Out, the levels, Zoom to Fit, the toolbar's buttons, their
keys and Ctrl+wheel over the game zoom the Replay view, and the zoom carries
over between Map and Replay both ways. Spectate's camera track is made again
at the new scale in the same moment, so following goes on without a jump.

Needs scm-js's map view zoom (MapViewSpec.onZoom, MapViewHandle.wheel) and,
for the wheel and zooming out past twice the game's view, scm-sim 0.9.0's
play page. An older editor or page keeps working without them.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@jeany55
jeany55 marked this pull request as ready for review October 16, 2026 15:15
@jeany55
jeany55 merged commit fdc8cd7 into main Oct 16, 2026
1 check passed
@jeany55
jeany55 deleted the replay-zoom branch October 16, 2026 15:16
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