On Monday, December 17, 2012 8:33:37 AM UTC-7, Alfredo Quiroga-Villamil wrote:
Very interesting question and use case. Assuming you need a bit more than just simple "hand - mouse drawing", my recommendation would be to start with Lienzo (www.emitrom.com/lienzo) as a base. A couple of reasons why:--
- It will support both mouse and touch events.- It will give you support not only for "hand/mouse drawn objects" but also access to a pretty big list of already built in geometrical shapes. All draggable, transformable, etc...- Say you wanted more than just the hand drawn things as previously mentioned, after you are done with the user's view or on demand, every x number of seconds or whichever way you like to implement the server push synchronization mechanism for all your clients, you can then call:.toJson()and you'll get a JSON representation of your entire viewport. See an example here, click the save button.The only thing we don't have implemented is a "hand-drawn" shape. In other words, you'll need to implement the hand drawn part and hook into our serialization mechanism. Essentially you'll create a Custom Shape. But we have all this documented so it should be fairly straight forward. See how to extend Lienzo here:Our community is here if you have questions and decide to go with this approach.Best regards,AlfredoOn Mon, Dec 17, 2012 at 2:55 AM, Zach <zjz...@gmail.com> wrote:
Hey I'm trying to have a client draw freely (like MSPaint) onto a canvas, and have that data then be sent to another client where they can view and also draw. The project I'm working in is in GWT, so I'm looking for a way to accomplish this using Google's WebToolkit. The perfect example I have of this is found at: http://drawboard.appspot.com only I have absolutely no clue where to begin. If you can point me towards any google searches (I've been doing many with nothing but failure) that'd be awesome! Or if you happen to know exactly how the above website implements this, that'd be perfect as well. Let me know! --
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/ .ofG1FddHUfkJ
To post to this group, send email to google-we...@googlegroups.com .
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com .
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en .
--
Alfredo Quiroga-VillamilAOL/Yahoo/Gmail/MSN IM: lawwton
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/ltMauOmgSxUJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
No comments:
Post a Comment