https://github.com/jpmarindiaz/captureWidget
https://github.com/jpmarindiaz/captureWidget
Last synced: 5 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/jpmarindiaz/captureWidget
- Owner: jpmarindiaz
- License: other
- Created: 2016-05-02T23:01:57.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2016-06-01T02:29:19.000Z (almost 9 years ago)
- Last Synced: 2024-08-09T02:16:56.242Z (9 months ago)
- Language: JavaScript
- Size: 131 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- jimsghstars - jpmarindiaz/captureWidget - (JavaScript)
README
# captureWidget
Experimental htmlwidget to get a screenshot of the results of htmlwidgets. Works only on svg for now.
## TODO
- Also render canvas
- Make a better api... shiny bindings?
- add on click event to download button group g instead of only rect
- try save image to file## Notes
http://stackoverflow.com/questions/11567668/svg-to-canvas-with-d3-js/23667012#23667012
http://stackoverflow.com/questions/4912092/using-html5-canvas-javascript-to-take-screenshots/6678156#6678156
http://html2canvas.hertzen.com/
http://stackoverflow.com/questions/5941631/compile-save-export-html-as-a-png-image-using-jqueryhttps://developer.mozilla.org/en-US/docs/Web/API/Canvas_API/Drawing_DOM_objects_into_a_canvas