dugarab / jsplumb

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

line width changes when lines are not exactly horizontal/vertical #321

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
If you take a look at the screenshot, you can see that lines that are not 
exactly horizontal/vertical are thicker than the other ones. i specified 
lineWidth: 2 and would expect all lines to be equal.

is there a workaround or solution to this?

Original issue reported on code.google.com by jo.ruesc...@gmail.com on 18 Feb 2013 at 4:04

Attachments:

GoogleCodeExporter commented 8 years ago
i think actually what is happening here is that the horizontal lines are 
clipped, that is the svg container for those lines is not big enough.  i have a 
few outstanding issues around this, which i have merged into one, and for which 
i am targeting 1.4.0 - the next release. i think i will probably merge this 
issue into that same one. it's definitely a bug.

Original comment by simon.po...@gmail.com on 18 Feb 2013 at 9:25

GoogleCodeExporter commented 8 years ago
folding into issue 314.  this is of course not an exact duplicate, but it 
belongs to the same body of work.

Original comment by simon.po...@gmail.com on 18 Feb 2013 at 9:33

GoogleCodeExporter commented 8 years ago
Ok, thanks for acknowledging! 
it does not matter if SVG or Canvas is selected as render method.

Original comment by jo.ruesc...@gmail.com on 19 Feb 2013 at 9:16

GoogleCodeExporter commented 8 years ago
actually, i can't reproduce this. would you be able to reproduce in a jsfiddle?

Original comment by simon.po...@gmail.com on 20 Feb 2013 at 8:03

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
Sorry, posted the wrong link to the jsfiddle. try this one and ignore the 
repaint button. i prepared it for another bug...

http://jsfiddle.net/rtb5m/

Just move the boxes so they are horizontally aligned. the connector line gets 
smaller if the angle of the connector reaches 0°.
maybe it has to do with the fact that outlineWidth is bigger than lineWidth and 
both share the same color in my example?

Original comment by jo.ruesc...@gmail.com on 21 Feb 2013 at 8:44