Skip to content

Let Ctrl+0 zoom and center the viewport on the artwork #290

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Keavon opened this issue Jul 22, 2021 · 0 comments · Fixed by #301
Closed

Let Ctrl+0 zoom and center the viewport on the artwork #290

Keavon opened this issue Jul 22, 2021 · 0 comments · Fixed by #301
Milestone

Comments

@Keavon
Copy link
Member

Keavon commented Jul 22, 2021

Ctrl0 should pan and zoom the viewport to fully display the content. If the canvas is rotated, it should still achieve this goal of showing all the content (so, for example, if the content was just a rectangle, and the canvas was rotated, the top/bottom or left/right should end up touching the edges of the viewport). When we have implemented artboards (#289), this will instead frame the artboard rather than the bounding box of the content.

These bounds also form the basis for the scrollbars and rulers in the document, and also the dimensions for an exported SVG file (which is currently harded at 1920x1080 centered around the document origin).

@Keavon Keavon added Feature Good First Issue Good for newcomers labels Jul 22, 2021
@Keavon Keavon added this to the Sprint 6 (current) milestone Jul 22, 2021
@Keavon Keavon changed the title Ctrl+0 zooms and centers the viewport on the artwork Let Ctrl+0 zoom and center the viewport on the artwork Jul 27, 2021
@Keavon Keavon removed the Good First Issue Good for newcomers label Aug 4, 2021
@Keavon Keavon removed the Available label Aug 6, 2021
@0HyperCube 0HyperCube mentioned this issue Nov 14, 2021
4 tasks
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 a pull request may close this issue.

1 participant