On Mon, May 6, 2013 at 8:59 AM, Eduardo Morras <emorr...@yahoo.es> wrote:
> You can use javascript library Raphael (MIT Licence, similar to BSD) to > draw svg graphics. It's 221KB uncompressed, 31KB gzipped and is HTML4-safe. > > http://raphaeljs.com/ > > Other drawing js libraries needs a HTML5 capable browser, but IE<=8 aren't. > i looked at Raphael a couple years ago and it looked pretty nice - i can only assume it's gotten better since then. However, Fossil doesn't need/want any depedencies on specific 3rd-party code. A Raphael-based solution can be done client-side, but for that to work the user would need to include Raphael in his skin and get access to the reporting data via JavaScript. At the moment the reporting data is only available in raw HTML form. It would be a trivial matter to embed it in JSON form in script tags but the JSON bits are off by default, so this would not help most users. Once time allows, and we decide on what data to show via the statistics reports, i'll add an equivalent JSON API which will allow JSON-using users to fetch it and render with their preferred graphics API. The timeline view, interestingly, is drawn with DIVs - there is no canvas there (i only recently figured that out). Even the arrows are just a series of tiny DIVs. -- ----- stephan beal http://wanderinghorse.net/home/stephan/ http://gplus.to/sgbeal
_______________________________________________ fossil-users mailing list fossil-users@lists.fossil-scm.org http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users