regardscitoyens / the-law-factory

Track the french law-making process
https://www.lafabriquedelaloi.fr
GNU Affero General Public License v3.0
75 stars 15 forks source link

Add viz export svg/png(/html?) for each module #110

Open RouxRC opened 10 years ago

njoyard commented 8 years ago

Maybe https://github.com/niklasvh/html2canvas can help for this

boogheta commented 8 years ago

For the svg, there really isn't much to do except ensure there's no translated stuff or such that wouldn't work outside the context For the png, why not, if we have good tools as well to make downloadable the base64 version of the canvas maybe or such?

fmassot commented 8 years ago

just a simple question : why do we need this export ? is it for easily taking a screenshot and share it on social network ?

I'm afraid that "printing" an html document is quite hard and unstable according to the browser. I will wait a bit before doing such a thing.

boogheta commented 8 years ago

Actually the objective envisionned was to easily build collection of views on multiple texts to do some visual comparative analysis. I guess this could be handled through some kind of PhantomJS scraper. No priority on this in any case