On Wednesday, March 5, 2014 10:19:51 AM UTC+1, Jens wrote:
>
>   // set empty div as widget element:  
>   Element  e = Document.get().*createElement("svg"); // Snap() needs a 
> svg element, see docs.*
>

*Yes, one overloaded method expects a svg element. I also tested this, 
but...*

  var s = $wnd.Snap (container); *// should work now*
>   var c = s.circle (150,150,100);  
>

*Object [object Object] has no method 'circle'* 

It seems that the existing svg element is not recognized by the Snap 
constructor.
This was also noticed 
here<http://stackoverflow.com/questions/20045532/snap-svg-cant-find-dynamically-and-successfully-appended-svg-element-with-jqu>,
 
but the solution (adding more attributes to the element) did not make a 
change.

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+unsubscr...@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.

Reply via email to