dugarab / jsplumb

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

Different stub lengths for each connector end #254

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
I have an enhancement request. Would it be possible to have different lengths 
for the stubs on each end of the connector? I.e a 25px stub on one end and a 
10px stub on the other end.

Original issue reported on code.google.com by emil.lim...@gmail.com on 8 Jun 2012 at 1:21

GoogleCodeExporter commented 8 years ago
This is obviously not a defect but an enhancement. I could not find where to 
set the type to enhancement. I apologize for that.

Original comment by emil.lim...@gmail.com on 8 Jun 2012 at 1:25

GoogleCodeExporter commented 8 years ago
no problem..Google dont make it obvious how to do that.

would it work for you if i supported passing an array to 'stub' ? that would 
seem to be the most logical way to do this.

Original comment by simon.po...@gmail.com on 8 Jun 2012 at 9:33

GoogleCodeExporter commented 8 years ago
Yes I agree. That would be the best way to do it. 

I am doing a family tree and needed a bit more control of the output. I tried 
to implement the change myself in a similar way to what you suggested but 
failed.

Original comment by emil.lim...@gmail.com on 9 Jun 2012 at 1:22

GoogleCodeExporter commented 8 years ago
i've done this now. it's in 1.3.10. you can supply an array of two integers to 
stub:

connector:["Flowchart", {stub:[50,80]} );

Original comment by simon.po...@gmail.com on 22 Jun 2012 at 3:42