On 11-06-11 02:04 PM, Brion Vibber wrote:
> On Sat, Jun 11, 2011 at 3:34 AM, Maciej Jaros <[email protected]> wrote:
>
>> http://www.mediawiki.org/wiki/Extension:JSWikiGantt
>> I must warn you that if you want to look at the code, please close your
>> eyes when you look at jsgantt.js ;-). This must have been a fun project
>> some years ago (there are some really interesting concepts there), but
>> is rather hard in modifying e.g. to allow more then one diagram per
>> page. I'll probably rewrite this someday. I was thinking about either
>> rendering this to SVG or on canvas rather then plain HTML. Any thoughts
>> on that?
>>
> I'd probably recommend using SVG as an output format here; in theory the
> existing support in MediaWiki for rasterizing SVG to PNG could be reused if
> desired to provide compatibility with older browsers, but more generally SVG
> lets you have a 'fixed' output format that's device-independent (think of
> zooming, high-resolution displays, and print output).
>
> Also if you add interactivity or clickable components later, that's easier
> to do in SVG than canvas (where you'd have to manually handle all events,
> detection of what's being clicked on, etc -- same issues go there with PNG
> rasterization of SVG, as you'd need to produce an image map or something)
>
> -- brion
There's also the technique Raphael JS uses.

-- 
~Daniel Friesen (Dantman, Nadir-Seen-Fire) [http://daniel.friesen.name]


_______________________________________________
Wikitech-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikitech-l

Reply via email to