dugarab / jsplumb

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

Dangling Connections #228

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
The ability to have 'dangling' connections (the endpoint of the connection is 
not connected) that are freely draggable, and can be connected to any shape 
(except the where the startpoint is connected) on the screen.

Example syntax:

jsPlumb.connect({
source:"foo",
floating:true,
targetPosition:[45, 56]   // these might be absolute or relative to
the source element
});

Original issue reported on code.google.com by John.You...@gmail.com on 27 Mar 2012 at 12:58

GoogleCodeExporter commented 8 years ago
that block of code looks familiar ;)

i do like this idea. would you want to move them around, too, without 
necessarily dropping them anywhere?  

Original comment by simon.po...@gmail.com on 31 Mar 2012 at 6:30

GoogleCodeExporter commented 8 years ago
Yep, quality piece of code!

1. The shape they are connectors for can be moved as normal, the dangling 
connector doesn't move.
2. The endpoint can be moved around freely; both ending up still dangling, or 
connected to another shape.
3. The endpoint can be disconnected from a shape (drag and drop) and therefore 
may enter a 'dangling' state again (or be connected to another shape).

Original comment by John.You...@gmail.com on 31 Mar 2012 at 12:39

GoogleCodeExporter commented 8 years ago
do you want to drop the dangling endpoint on some other endpoint that was 
marked with isTarget:true?  or do you want to drop them on elements that you've 
called makeTarget(..) on?  or both?

Original comment by simon.po...@gmail.com on 31 Mar 2012 at 11:59

GoogleCodeExporter commented 8 years ago
Reading the documentation, I think both.

For my needs, the dangling endpoint can be connected to any shape except the 
one the startpoint is connected to (shape 4 has this in your flowchart demo). 
Also, there will be one shape on the screen which cannot have any endpoints 
connected to.

So, I think for full control, just makeTarget()?

Original comment by John.You...@gmail.com on 1 Apr 2012 at 9:05

GoogleCodeExporter commented 8 years ago

Original comment by simon.po...@gmail.com on 24 Jul 2012 at 11:54

GoogleCodeExporter commented 8 years ago
moved to github

https://github.com/sporritt/jsPlumb/issues/21

Original comment by simon.po...@gmail.com on 30 Apr 2013 at 11:32

GoogleCodeExporter commented 8 years ago
Issues have all moved to Github.  Google code is no longer in use for jsPlumb.

Original comment by simon.po...@gmail.com on 10 May 2013 at 11:37