-
Notifications
You must be signed in to change notification settings - Fork 164
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
Copy as png #366
Copy as png #366
Conversation
This pull request is automatically being deployed by Amplify Hosting (learn more). |
This is a sweet feature! Nice. Couple pieces of feedback
|
Edit: updated to only reflect functional changes. I will make UI changes This is very cool! Here's a few things that popped out to me after looking at it:
Here's another example where I zoomed way out and put content way in the upper left and way in the bottom right then made a selection and did "copy as png" and it seemed to export a transparent background? |
…ngContextMenu closes
I'm not sure I understand the 100% comment. Regardless of zoom level, it always copies to the same DPI. (I fixed a bug where it was clipping when some of the selection was offscreen, which was unrelated.) Do you want the zoom level to change on the png based on the screen zoom? That would feel weird. |
Yup, that's what I would expect 💯 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Exports are the same resolution per unit area. So in large exports you can zoom in and the content looks good at a cell level.
I updated the context menu to use the default icon size (rather than small). This helps with the flyout "Copy as PNG" menu from looking disabled (it was using the same color as all the other menus in the app, but because it was smaller — small icon, 14px type — than the other menus – default icon, 16px type – it had the look of being disabled. Now the floating context menu uses the same icons as elsewhere in the app. I think this is an improvement overall. |
Implements #159