raphael icon indicating copy to clipboard operation
raphael copied to clipboard

transform method changes stroke-width when vector-effect attribute is set to non-scaling-stroke

Open gprasanth opened this issue 9 years ago • 0 comments

With a rect's attribute vector-effect set to non-scaling-stroke, a greater than one stroke-width, calling the transform method with a scale greater than 1, the stroke width is changed.

I've narrowed it down to the following code in setFillAndStroke:

              case "stroke-width":
                if (o._.sx != 1 || o._.sy != 1) {
                  value /= mmax(abs(o._.sx), abs(o._.sy)) || 1;
                }
                node.setAttribute(att, value);

gprasanth avatar Jul 02 '15 12:07 gprasanth