Comments (7)
Thank you for your suggestion.
I designed the server in a way that will allow rendering to different formats. PNG and other raster graphics will be possible as I already depend on cairo to calculate font metrics ahead of time.
But the the focus for the project right now is on reliability and stability as well as making embedding in editors (vscode, atom, ...) possible.
After that "save as PNG" is definitely something I want to implement. "Copy to clipboard" to quickly paste plots anywhere would be interesting as well.
from httpgd.
Great suggestions as always. I will implement it like that soon.
from httpgd.
I implemented the changes a while ago, a full list of all available shortcuts can be found in the readme. Plot scaling is not yet working in the browser rendered PNGs (I opened a new issue for that #35).
from httpgd.
The client is now able to save PNG plots. You can try it by pressing ctrl+R
from httpgd.
I appreciate adding the feature, thank you!
Do you think it wise to override a standard shortcut for browsers? I think Ctrl+R
is fairly common for reloading the page.
from httpgd.
You are right, do you have a suggestion for a different shortcut?
from httpgd.
Thoughts (either or both):
-
add another button next to the download button
-
if you can arbitrarily assign keyboard shortcuts, is there a reason you need to use
Ctrl
? I know some websites allow non-modified keyboard shortcuts, but that's not a browser-based thing. When I openhttpgd::httpgd()
in FF or Edge, these are the only unmodified keys that evoke any effect for me:- FF 80.0.1:
/
(quick find);'
(quick find, links only) - Edge 85.0.564.51:
-
and_
(decrease httpgd zoom);=
and+
(increase httpgd zoom)
With that, perhaps: save as
S
vg; save asP
ng;D
elete? (It would be useful to have these as tooltips over the buttons too, for easy just-in-time learning.) - FF 80.0.1:
from httpgd.
Related Issues (20)
- Can't clear previous plots when re-running a new R script HOT 1
- .vsc.browser () is not found
- Pdf option not available when exporting plot HOT 2
- Resize plot to any ratio and size HOT 1
- fonts not working on Linux HOT 7
- Open plots in external browser by default
- `par_old = par(no.readonly = TRUE)` triggers the plot window and makes the subsequent figure size incorrect
- Can't open Rplot window when running vscode-R HOT 1
- http no response when get plot HOT 2
- not respecting spacings in ggplot HOT 2
- Server don't response when used via RServe
- CRAN status HOT 31
- Server immediately crash HOT 28
- Use GH releases for CRAN releases HOT 1
- `hgd_browse()`: This site canβt be reached HOT 2
- httpgd crashing and live html site not loading in VScode HOT 1
- No fonts detected for basic plot
- httpgd can't find libpng dependencies during install in AL2023 Docker image HOT 4
- rstudio server and rstudio desktop connection lost
- When I open the external browser, ggplot2 in vscode always encounters depth error. HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from httpgd.