Best GWT canvas (vector graphics) library?

194 views
Skip to first unread message

John Gunther

unread,
Oct 1, 2008, 11:57:07 PM10/1/08
to Google Web Toolkit
I've recently used the GWTCanvas widget from the GWT incubator
(nothing fancy, just to draw lines--will likely do more canvas stuff
later, though) and so far so good.

However, a Google search shows there are quite a few GWT canvas
libraries out there. Wondering if I'm missing out on a better
library...

Anyone used (or written) any of them? Care to share your opinions
about which ones work best?

John

joseanquiles

unread,
Oct 2, 2008, 2:33:39 AM10/2/08
to Google Web Toolkit

Hi John,
I have used GWTCanvas.
It has some ¿important? drawbacks:
* it does not support text drawing (I developed a extension to
support text using paths)
* it does not include an object oriented graphic library (I also
developed a minimal library)
* and, it is the worst, it is very very slow in Internet Explorer
I am also looking for another canvas library.

José Antonio

Robbie Vanbrabant

unread,
Oct 2, 2008, 4:03:46 AM10/2/08
to Google-We...@googlegroups.com
On Thu, Oct 2, 2008 at 8:33 AM, joseanquiles <josean...@gmail.com> wrote:
   * and, it is the worst, it is very very slow in Internet Explorer
I am also looking for another canvas library.

Is that the canvas library's fault? My guess is that it's because they emulate <canvas> on IE using VML, as will other libraries. 

joseanquiles

unread,
Oct 2, 2008, 9:21:33 AM10/2/08
to Google Web Toolkit

Hi Robbie,
you're right. GWTCanvas is based on IE Canvas, which is very very
slow. GWTCanvas is not obviously the guilty :-)
But I'd like to know if there exist another javascript
implementation(s) not based in IE Canvas. So, we can build a new
GWTCanvas, faster...
Regards
José Antonio



Raphaël POCHET

unread,
Oct 8, 2008, 8:21:38 AM10/8/08
to Google Web Toolkit
I'm also very interested on this, if anyone has other ideas ? Is there
such a product in pure JS wich could be wrapped instead looking for
GWT 3rd party libs directly ?

Tom Hjellming

unread,
Oct 8, 2008, 1:03:30 PM10/8/08
to Google-We...@googlegroups.com
Dojo has a pretty decent GFX library that provides an SVG-like
abstraction that works on IE's VML as well as FireFox's native SVG.

The tatami project/library provides a GWT wrapper for dojo including the
GFX library:
http://code.google.com/p/tatami/

The downside is that it pulls in a fair amount of dojo "stuff".

Tom

Reply all
Reply to author
Forward
0 new messages