mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-03 19:45:44 -05:00
Fix #strokeBounds for strokes scaled using #matrix.
Gotta do the right thing, not the same buggy thing as Illustrator.
This commit is contained in:
parent
4a46c8ac98
commit
1e768e6c83
1 changed files with 1 additions and 3 deletions
|
@ -1909,9 +1909,7 @@ var Path = this.Path = PathItem.extend(/** @lends Path# */{
|
|||
miter = style._miterLimit * width / 2,
|
||||
segments = this._segments,
|
||||
length = segments.length,
|
||||
// It seems to be compatible with Ai we need to pass pen padding
|
||||
// untransformed to getBounds
|
||||
bounds = getBounds.call(this, matrix, getPenPadding(radius));
|
||||
bounds = getBounds.call(this, matrix, padding);
|
||||
// Create a rectangle of padding size, used for union with bounds
|
||||
// further down
|
||||
var joinBounds = new Rectangle(new Size(padding).multiply(2));
|
||||
|
|
Loading…
Reference in a new issue