mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-06 04:42:15 -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,
|
miter = style._miterLimit * width / 2,
|
||||||
segments = this._segments,
|
segments = this._segments,
|
||||||
length = segments.length,
|
length = segments.length,
|
||||||
// It seems to be compatible with Ai we need to pass pen padding
|
bounds = getBounds.call(this, matrix, padding);
|
||||||
// untransformed to getBounds
|
|
||||||
bounds = getBounds.call(this, matrix, getPenPadding(radius));
|
|
||||||
// Create a rectangle of padding size, used for union with bounds
|
// Create a rectangle of padding size, used for union with bounds
|
||||||
// further down
|
// further down
|
||||||
var joinBounds = new Rectangle(new Size(padding).multiply(2));
|
var joinBounds = new Rectangle(new Size(padding).multiply(2));
|
||||||
|
|
Loading…
Reference in a new issue