mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-03 19:45:44 -05:00
Fix error in miter calculation in Path#getStrokeBounds(), recently introduced by a fix in Curve#getNormal().
This commit is contained in:
parent
ed5484e770
commit
995c5b4081
1 changed files with 1 additions and 1 deletions
|
@ -1833,7 +1833,7 @@ var Path = this.Path = PathItem.extend({
|
|||
normal1 = curve1.getNormal(1).normalize(radius),
|
||||
normal2 = curve2.getNormal(0).normalize(radius),
|
||||
// Intersect the two lines
|
||||
line1 = new Line(point.add(normal1),
|
||||
line1 = new Line(point.subtract(normal1),
|
||||
new Point(-normal1.y, normal1.x)),
|
||||
line2 = new Line(point.subtract(normal2),
|
||||
new Point(-normal2.y, normal2.x)),
|
||||
|
|
Loading…
Reference in a new issue