Closed GoogleCodeExporter closed 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
will this feature be added in the next version?????
Original comment by carunrat...@gmail.com
on 12 Jul 2012 at 2:33
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
When the next version can be expected????
Original comment by carunrat...@gmail.com
on 13 Jul 2012 at 5:31
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
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
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
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
Yeah that could be helpful
Original comment by carunrat...@gmail.com
on 7 Nov 2012 at 7:35
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
Original issue reported on code.google.com by
carunrat...@gmail.com
on 11 Jul 2012 at 1:43Attachments: