-
-
Notifications
You must be signed in to change notification settings - Fork 229
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
🎉 (static charts) add portrait mode to Grapher's download options #2967
Conversation
Current dependencies on/for this PR:
This stack of pull requests is managed by Graphite. |
@@ -1681,26 +1693,40 @@ export class Grapher | |||
return new Bounds(0, 0, DEFAULT_GRAPHER_WIDTH, DEFAULT_GRAPHER_HEIGHT) | |||
} | |||
|
|||
@computed get portraitBounds(): Bounds { | |||
return new Bounds(0, 0, DEFAULT_GRAPHER_HEIGHT, DEFAULT_GRAPHER_WIDTH) |
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.
I'm doing a simple swap for now, but will look into what's a sensible default in subsequent PRs
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.
Code looks good! tested on safari, chrome, and firefox.
e7e88e2
to
2842742
Compare
2842742
to
2ad6642
Compare
This PR has had no activity within the last two weeks. It is considered stale and will be closed in 3 days if no further activity is detected. |
2ad6642
to
48a7bfc
Compare
Merge activity
|
Adds portrait mode to Grapher's download options. Only available to download for authors, not for users.
This turned into a mild refactor of how the thumbnail worker calls Grapher and how Grapher internally handles font size:
isGeneratingThumbnail
– requiring an external caller to identify themselves is an anti-patternisGeneratingThumbnail
flag is unnecessaryOther changes:
showAdminControls
and code in theDownloadModal
isExportingtoSvgOrPng
toisExportingToSvgOrPng
Future work: