Skip to content
This repository has been archived by the owner on Dec 21, 2019. It is now read-only.

Commit

Permalink
Shapes need to close their path to render stroke corners correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
sebmarkbage committed Dec 29, 2010
1 parent 812f049 commit ea2fb92
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Source/ART.Shapes.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,8 @@ ART.Rectangle = new Class({
if (bl > 0) path.arc(-bl, -bl);
path.line(0, - Math.abs(height) + (bl + tl));
}

path.close();

return this.parent(path, width, height);
}
Expand Down Expand Up @@ -82,6 +84,9 @@ ART.Ellipse = new Class({
var path = new ART.Path;
var rx = width / 2, ry = height / 2;
path.move(0, ry).arc(width, 0, rx, ry).arc(-width, 0, rx, ry);

path.close();

return this.parent(path, width, height);
}

Expand Down

0 comments on commit ea2fb92

Please sign in to comment.