file upload

10 views
Skip to first unread message

Benjamin

unread,
May 19, 2011, 12:54:17 PM5/19/11
to GWT Graphics
Hello,

Great library! i'm trying to implement it on my open source data
historian project here : http://www.nimbits.com so users can create
process control graphics in SVG with realtime sensor data.

this is almost exactly what i need - i just need to have users upload
an existing SVG file and load it up into a panel. Is there a way for a
canvas to load existing svg?

Thanks!

Ben

Henri Kerola

unread,
May 19, 2011, 3:55:26 PM5/19/11
to gwt-gr...@googlegroups.com
Hi Ben,

Unfortunately there is no such functionality currently.

-Henri


Jan Mostert

unread,
May 20, 2011, 1:34:30 AM5/20/11
to gwt-gr...@googlegroups.com
You'll need to manually parse the SVG files and based on the content, redraw it on the canvas.
SVG files are basically XML files containing instructions on how to draw things.
Just a warning, doing it in realtime is a bit slow.


--
Jan Vladimir Mostert
BEngSci

MyCee Technologies

Jovan Perovic

unread,
May 20, 2011, 4:01:58 AM5/20/11
to gwt-gr...@googlegroups.com
I agree with Jan. I've got it to work few months back, but was never really satisfied with performance especially with animations of loaded object.
Reply all
Reply to author
Forward
0 new messages