raphael
raphael copied to clipboard
transform method changes stroke-width when vector-effect attribute is set to non-scaling-stroke
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);