Hareeshchandera / jsplumb

Automatically exported from code.google.com/p/jsplumb
0 stars 0 forks source link

Option for auto re draw of the components and its positioning. #140

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Need an option for auto re draw of the components. Currently we specify the x - 
y position for the divs and then set the connectors on these elements. A auto 
draw functionality that would take care of alligning the components would be 
very helpful 

For ex : 
 jsPlumb.connect({source:"window3", target:"window6"}); will connect a DOM element window3 with window6. The positions of these two DOM elements are absolute. Would want these positions to be computed programatically. 

Refer : http://thejit.org/static/v20/Jit/Examples/Spacetree/example3.html. They 
support auto refresh when we add a new component. The screen is adjusted. And 
also when we render a component for the first time they also handle setting the 
position of the com

Original issue reported on code.google.com by rahul.ku...@gmail.com on 19 Oct 2011 at 10:20

GoogleCodeExporter commented 8 years ago
this kind of layout functionality has been requested before, but it would be a 
lot of work and i do not have the time to do it.  when you say "would want 
these positions to be computed programmatically", you're speaking specifically 
of your use case, but people use jsPlumb for a range of different applications, 
each of which has a potentially different layout. 

Original comment by simon.po...@gmail.com on 19 Oct 2011 at 7:48

GoogleCodeExporter commented 8 years ago
Thanks Simon. It could be used for developing a mind map application. 
Positioning the nodes to represent a graph. 
Something like : http://mindmap.com. 

Original comment by rahul.ku...@gmail.com on 20 Oct 2011 at 5:02

GoogleCodeExporter commented 8 years ago
yeah it would be cool, i know.  it keeps getting raised on here, and in emails 
to me, and i'd really like to be able to find the time to do it.  in a generic 
way, of course...i had an email exchange with someone recently in which i ended 
up wondering whether i could support graphvis'z xdot format, since that would 
be nice and generic.  but, again, no time!

Original comment by simon.po...@gmail.com on 20 Oct 2011 at 5:11

GoogleCodeExporter commented 8 years ago
Hello,
To do this stuff, you can use the isotope plugin with the "catagory rows layout"
src : http://isotope.metafizzy.co/custom-layout-modes/category-rows.html

Original comment by jeanloui...@gmail.com on 2 Mar 2012 at 11:19

GoogleCodeExporter commented 8 years ago
I am also searching for an option to do "components auto arrange". Please share 
any additional workaround to achieve this. 

Original comment by daveris...@gmail.com on 1 Jan 2013 at 11:00

GoogleCodeExporter commented 8 years ago
Hello,

Please check the integration with dagre described here 
http://onais-m.blogspot.com/2014/10/automatic-graph-layout-with-javascript.html

Original comment by Anas.Mes...@gmail.com on 30 Oct 2014 at 5:40