You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
I'm trying to make a line thicker, as per my understanding I have to change the strokeWidth of the line.
If I change the strokeWidth property thel ine actually gets bigger but also shifts to the right.
I prepared a jsfiddle, try fiddleing around with the strokeWidth value and you will se that the origin point of the line moves right together with the strokeWidth. This is the fiddle: http://jsfiddle.net/3mqgp08m/1/ , the rectangle is there just to give you a point to compare with the line starting point.
The text was updated successfully, but these errors were encountered:
we are aware of that, and we will take care of that with bounding box fixes.
The line, has strokewidth just on one "side", the lenght side, and things get more complicated when we have strange angles ( triangles for example ).
As a temp fix you can search for the translating functions int the code ( getCenterPoint and so on.. ) and change the use of strokewidth with something like that:
And use separate strokedithX and Y for the width and height.
I know that this is not accurate explanation, but the problem lies here, i hope this give you enough information to go on, After 1.5.1 release we will work on that.
Hi,
I'm trying to make a line thicker, as per my understanding I have to change the strokeWidth of the line.
If I change the strokeWidth property thel ine actually gets bigger but also shifts to the right.
I prepared a jsfiddle, try fiddleing around with the strokeWidth value and you will se that the origin point of the line moves right together with the strokeWidth. This is the fiddle: http://jsfiddle.net/3mqgp08m/1/ , the rectangle is there just to give you a point to compare with the line starting point.
The text was updated successfully, but these errors were encountered: