-
Notifications
You must be signed in to change notification settings - Fork 22
Open
Description
Great tool, quite the hidden gem! I noticed when using the Stamp tool with SVGs that have a path element, the graphic becomes distorted after moving it or resizing it. From what I could tell, this seems to be from the following function in rescale-2-resize.js. There seemed to be null values inserted into the path data after the function ran.
path: function (s) {
var offsetX = s.pathOffset.x;
var offsetY = s.pathOffset.y;
for (var i = 0; i < s.path.length; i++) {
s.path[i][1] = (s.path[i][1] - offsetX) * s.scaleX + offsetX;
s.path[i][2] = (s.path[i][2] - offsetY) * s.scaleY + offsetY;
s.path[i][3] = (s.path[i][3] - offsetX) * s.scaleX + offsetX;
s.path[i][4] = (s.path[i][4] - offsetY) * s.scaleY + offsetY;
}
basicWidthHeightTransform(s);
}
I commented the function out and resizing and moving of paths seemed to work just fine. I was not able to discover any ramifications from doing so, but I also don't understand the original purpose of the function.
Metadata
Metadata
Assignees
Labels
No labels