Hareeshchandera / jsplumb

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

no draggeble source endpoint #186

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
this is perfect pluggin, but I found issue with dragging of source endpoint in 
case of live connectin generation by MakeSource, MakeTarget

using flowchart Example from your pages
-*-----
remove:
//jsPlumb.draggable(jsPlumb.getSelector(".w"));
and both //jsPlumb.connect

add
jsPlumb.makeSource($(".window"),{endpoint: bottomSource});                      

jsPlumb.makeTarget($(".window"),{endpoint:targetEndpoint});

-------
New connection is generated, but you can recconect only targetEndPoint... what 
is wrong?
Thks for help.

Original issue reported on code.google.com by stransky...@gmail.com on 24 Jan 2012 at 3:05

GoogleCodeExporter commented 8 years ago
not exactly sure what you mean - do you mean you can drag a connection off the 
source endpoint and then it is detached and lost?

Original comment by simon.po...@gmail.com on 24 Jan 2012 at 7:59

GoogleCodeExporter commented 8 years ago
sorry for english :) 
yes, I mean to use connection to different source..
let say node A, B and C
A have sourceEndPoint connected to targetEndPoint on B
and I want drag SourceEndPoint to connect C to by.

not to detach but reconnect... to detach I think clicking is good way

Original comment by stransky...@gmail.com on 24 Jan 2012 at 8:45

GoogleCodeExporter commented 8 years ago
oh ok.  yeah you probably need to set 'maxConnections' on that bottomSource 
endpoint spec.  by default the value for this is 1.  setting it to -1 means 
there is no limit.

try that and if it doesn't work first time you will probably also have to set 
'isSource:true' on the bottomEndpoint spec.  

Original comment by simon.po...@gmail.com on 24 Jan 2012 at 8:50

GoogleCodeExporter commented 8 years ago
I try to put it into code..
http://jsfiddle.net/kPk3w/2/
as you mentioned .. I set isSource and isTarget + maxConnection on 
sourceEndPoint
but still I have some issues:
1 -  when I Start to create connection from "ep" element.. this connection is 
not dragable / but when I start from SourceEndPoint.. this is dragable...
2 - I am able to set target on element for targetEndPoint / but not for 
sourceEndPoint
3 - not working draging in example but donot why..

Case is that I am building app for mapping between nodes and you plugin si 
simply perfect. But I am still having some issues.. in app I use basier curves 
for connection and continues anchors, and I would love to change connections 
between them..

Original comment by stransky...@gmail.com on 25 Jan 2012 at 12:42

GoogleCodeExporter commented 8 years ago
I made one more test 
http://jsfiddle.net/kPk3w/3/
now is as source
jsPlumb.makeSource($(".window"), { 
 endpoint: sourceEndpoint
});

strange think is whe I draw on window one end point (click and short now by 
pressed mouse make a point) this point when you take it and draw connection 
from him is linked to the node endpoint and is not dragable, and no more point 
you are able to create on window... but if you same way create two point 
first.. the first one works as written before but second one is dragable and 
stay on the window... look like bug..

Original comment by stransky...@gmail.com on 25 Jan 2012 at 1:04

Attachments:

GoogleCodeExporter commented 8 years ago
And what I found now is on reconnect it seams that jsPlumb create new 
connection.. is it possible to get some data from previous one? :) like ID...

Original comment by stransky...@gmail.com on 25 Jan 2012 at 3:17

GoogleCodeExporter commented 8 years ago
sorry i havent got back to you before - i'm going to look at this later today; 
it will be the last thing to do before i release 1.3.5.

Original comment by simon.po...@gmail.com on 29 Jan 2012 at 8:38

GoogleCodeExporter commented 8 years ago
you seem to be referencing an unreleased version of jsplumb in that fiddle.  i 
forked it and pointed it at the 1.3.4 release version.  can you take a look and 
tell me if your problem still exists?

http://jsfiddle.net/sporritt/gkDe8/3/

Original comment by simon.po...@gmail.com on 29 Jan 2012 at 7:23

GoogleCodeExporter commented 8 years ago
That problem with bug in comment number 5 is not appear now.. seems to be not 
released version .. thx.. Still looking forward for ability of reconnection..

Original comment by stransky...@gmail.com on 29 Jan 2012 at 10:17

GoogleCodeExporter commented 8 years ago
i'm sorry but i'm not 100% sure what it is you want to have happen. you want to 
drag a new connection from window 1, say, and drop it on window 2, and it will 
create a green endpoint.  then maybe later you want to grab that green endpoint 
and drag the connection over to some other green endpoint? is that it?

btw it's really important that you do not use random versions of jsplumb when 
putting together a jsfiddle.  you have to stick to one of the released versions.

Original comment by simon.po...@gmail.com on 29 Jan 2012 at 10:30

GoogleCodeExporter commented 8 years ago
my use case is simple... as Ive send you in email.. I have window 1,2,3,4.... I 
want drag new connectio from Windonw1 to window2 and new connection will be 
created..
(small blue point SourceConnection, green point TargetConneciton). Later I want 
to use this connection (this yellow line) and using source (blue point) or 
target (green point) connect with this connection different window exp.. first 
move by green point over Window 3 to connect W1 -> W3, and than using blue 
point over W4 connect with this one line W4 -> W3
do you see my point.. 
I have n to m connections in my UC..and I use connection to store data (example 
Name) and I want to naem stay, only what is chnaging are source and target 
object W1 -> W2 goes to W4 -> W3

Original comment by stransky...@gmail.com on 30 Jan 2012 at 7:10

GoogleCodeExporter commented 8 years ago

Original comment by simon.po...@gmail.com on 22 May 2012 at 1:55