An open API service indexing awesome lists of open source software.

https://github.com/jpmarindiaz/captureWidget


https://github.com/jpmarindiaz/captureWidget

Last synced: 5 months ago
JSON representation

Awesome Lists containing this project

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-jquery

https://developer.mozilla.org/en-US/docs/Web/API/Canvas_API/Drawing_DOM_objects_into_a_canvas