Closed GoogleCodeExporter closed 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
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
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
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
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:
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
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
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
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
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
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
Original comment by simon.po...@gmail.com
on 22 May 2012 at 1:55
Original issue reported on code.google.com by
stransky...@gmail.com
on 24 Jan 2012 at 3:05