Hareeshchandera / jsplumb

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

retrieve location of corner points in flowchart connector #262

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Hello,

Is there any way to get the location of endpoint on the canvas of a flowchart 
connector in jsPlumb... I ld also like to get the location of the bends when a 
flowchart connector is drawn from one element to another...

Like the one i ve attached?

Original issue reported on code.google.com by carunrat...@gmail.com on 11 Jul 2012 at 1:43

Attachments:

GoogleCodeExporter commented 8 years ago
you can access the 'anchor' and 'canvas' properties of each endpoint to find 
out this information:

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

...but the location of the corner points in the flowchart connector is not 
exposed anywhere.

Original comment by simon.po...@gmail.com on 12 Jul 2012 at 3:10

GoogleCodeExporter commented 8 years ago
will this feature be added in the next version?????

Original comment by carunrat...@gmail.com on 12 Jul 2012 at 2:33

GoogleCodeExporter commented 8 years ago
let's turn this into an enhancement request and i'll see how i go. i can't 
guarantee i will have the time to put it in the next version.

Original comment by simon.po...@gmail.com on 12 Jul 2012 at 9:26

GoogleCodeExporter commented 8 years ago
When the next version can be expected????

Original comment by carunrat...@gmail.com on 13 Jul 2012 at 5:31

GoogleCodeExporter commented 8 years ago
i don't know.  but i'm not necessarily targeting this issue for that release 
anyway.

Original comment by simon.po...@gmail.com on 13 Jul 2012 at 5:50

GoogleCodeExporter commented 8 years ago
thinking about this, it's related to issue 92,  in which someone requested a 
curved flowchart connector. there's a discussion in there in which i talk about 
the need to change connectors to a series of segments.  if i did that, then it 
would be a simple matter to expose the connector segments.

Original comment by simon.po...@gmail.com on 24 Jul 2012 at 10:52

GoogleCodeExporter commented 8 years ago
Reg.Comment1: how can i get the connection object when i m connecting only at 
the runtime???

Original comment by carunrat...@gmail.com on 1 Aug 2012 at 10:29

GoogleCodeExporter commented 8 years ago
i'm doing the work to switch connectors to being a series of segments for 
1.4.0. i could expose the location of the segments if you're still interested.

Original comment by simon.po...@gmail.com on 7 Nov 2012 at 7:34

GoogleCodeExporter commented 8 years ago
Yeah that could be helpful

Original comment by carunrat...@gmail.com on 7 Nov 2012 at 7:35

GoogleCodeExporter commented 8 years ago
this information is now available in the flow chart connector.  you have to 
access the connector on a connection first:

var c = jsPlumb.connect(...)
console.log(c.getConnector().getPath());

or something like

jsPlumb.select({source:"someElement"}).get(0).getConnector().getPath()

the return value is an array of { start:xx, end:xxx } points. they are relative 
to the start endpoint.

Original comment by simon.po...@gmail.com on 22 Mar 2013 at 5:14