See attached image. It shows two rectangles drawn on top of each other with a slight overlap. Both have width = 200. The lower one does not have a set strokeWidth while the upper one has an large strokeWidth of 40 set to demonstrate this problem.
As you can see the rectangle’s edge drawn according to strokeWidth distributes half the thickness of the edge inside the rectangle and half outside. This is a problem.
If I want a rectangle of width = 200 then it should be drawn at that size no matter what the strokeWidth is. The edge thickness should take from the inside of the rectangle such that no matter what the strokeWidth setting is the rectangle is drawn at the fixed width specified at creation time using its width parameter.
In doing precise UI design we should not have to worry about how the edge is drawn and how much that might be making an object larger. I suspect this issue might be affecting the other vector objects using the strokeWidth but I have not confirmed this yet.
Has anyone noticed this issue before?