Tuesday, February 25, 2014

Re: GWT and SVG, the 125th... :-)

Also have a look at http://snapsvg.io/



2014-02-25 14:31 GMT+01:00 Magnus <alpineblaster@gmail.com>:
Hi,
 
I have been searching for SVG support in GWT for an long time.
Now I have found something that seems to be exactly what I am looking for:
 
  • It's lightweight.
  • It supports importing SVG files.
  • The demo shows all the features I need (simple drawings, svg import, events)
  • It seems to support the most important browsers.
The only thing is that it's a raw JS-library.
How would you integrate it into a GWT project?
 
Consider the following (JS`?) code:
 
var draw = SVG('drawing').size(300, 300)
var rect = draw.rect(100, 100).attr({ fill: '#f06' })
How could you encapsulate this into a java method called drawRect?
 
Do you know this library and what do you think?
 
Thanks
Magnus

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.

No comments:

Post a Comment