Skip to content

Add screenshot export feature#8

Open
AbdullahSAhmad wants to merge 1 commit intomasterfrom
feat/screenshot-export
Open

Add screenshot export feature#8
AbdullahSAhmad wants to merge 1 commit intomasterfrom
feat/screenshot-export

Conversation

@AbdullahSAhmad
Copy link
Collaborator

Summary

  • Adds a new ScreenshotExport class that captures the Pixi.js canvas as a PNG using canvas.toDataURL('image/png') and triggers a direct download with a timestamped filename
  • Adds a camera icon button in the #zoom-controls panel (after the fit-to-view button)
  • Adds Shift+E keyboard shortcut and a "Take Screenshot" entry in the command palette

Test plan

  • Click the camera button in the zoom controls — should download a PNG screenshot
  • Press Shift+E — should download a PNG screenshot
  • Open command palette (Ctrl+K) and search "screenshot" — should show "Take Screenshot" action
  • Verify the downloaded file has the correct timestamp-based filename format
  • Verify all existing zoom controls still work correctly

🤖 Generated with Claude Code

Captures the entire Pixi.js canvas as a PNG image and triggers a direct
download with a timestamped filename. Accessible via camera button in
zoom controls, Shift+E keyboard shortcut, and command palette.

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
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