Im trying to something like a class diagram graphical editor. At the begining the problem was making draggables, but the real problem i have is to draw lines and capture events like drag and drop a single node of the line or use the line more like an object in general. Has some one solved a similar problem? Thx in advance --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
I built a proof-of-concept to play with lines connecting draggables. I got it to the point where you could grab boxes and put them inside container boxes, save the drawing as XML and reload it from XML, but I lost the source code. Here''s an earlier version that you can feel free to do whatever you want with. The newer one was a lot more object-oriented but at least this will give you a good start. You can resize the boxes by dragging the corners. You can click on the boxed to edit their contents. http://beta.moveable.com/jameslab/ajaxio/ - James. Here''s On Mar 8, 3:17 pm, "airafroman" <airafro...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Im trying to something like a class diagram graphical editor. > > At the begining the problem was making draggables, but the real > problem i have is to draw lines and capture events like drag and drop > a single node of the line or use the line more like an object in > general. > > Has some one solved a similar problem? > > Thx in advance--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
Diodeus wrote:> http://beta.moveable.com/jameslab/ajaxio/Radical! Can you add it to a tumblelog, like to make a collaborative mind map? And what do its unit tests look like? -- Phlip http://c2.com/cgi/wiki?ZeekLand <-- NOT a blog!! --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
I would have liked to see the more-complete ver. I think it has applications for building a social network relationship diagram too - i was contemplating that but couldnt quite wrap my head around how to attach and track/move the links when objects were moved. Gareth On 3/10/07, Phlip <phlip2005-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > > Diodeus wrote: > > > http://beta.moveable.com/jameslab/ajaxio/ > > Radical! Can you add it to a tumblelog, like to make a collaborative mind > map? > > And what do its unit tests look like? > > -- > Phlip > http://c2.com/cgi/wiki?ZeekLand <-- NOT a blog!! > > > >--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
Phlip
2007-Mar-09 22:23 UTC
[TFUI] Re: [Rails-spinoffs] Re: Trying to develop a web graphical editor
> Diodeus wrote: > > > http://beta.moveable.com/jameslab/ajaxio/ > > Radical!Another followup. The last time I did this project (I cheated and used TkCanvas, instead of our endlessly convoluted Ajax landscape), I used GraphViz for the geometry manager. That means, after the user declares nodes and connections, I submit them as text to GraphViz, and it determines the layout, using an industrial-strength and very customizable constraint engine. Then it returns a raw geometry, and I snap everything to its coordinates. Here''s an example using SVG as the intermediate layer: http://wiki.rubygarden.org/Ruby/page/show/SvgCanvas If you follow that, the links are kind''a old, so if anything broke I''ll refresh it. But there are better versions of SvgCanvas on my desktop(s). -- Phlip http://c2.com/cgi/wiki?ZeekLand <-- NOT a blog!!
> Radical! Can you add it to a tumblelog, like to make a collaborative mind map?Any of these on-line mindmapping sites a help? http://www.mindmeister.com http://www.mindomo.com http://www.gliffy.com http://thinkature.com http://www.bubble.us (sometimes shows site cert. problems) Vic http://www.mind-mapping.org --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
Vic wrote:>> Radical! Can you add it to a tumblelog, like to make a collaborative mind >> map? > > Any of these on-line mindmapping sites a help? > > http://www.mindmeister.com > http://www.mindomo.com > http://www.gliffy.com > http://thinkature.com > http://www.bubble.us (sometimes shows site cert. problems)Sorry - I didn''t mean I was looking for a mindmap (but when I do I will come right here first). I challenged the OP to set a tumblelog / mindmap hybrid as a goal, to see where he can take his project. -- Phlip http://www.greencheese.us/ZeekLand <-- NOT a blog!!! --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---