mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-03 19:45:44 -05:00
Close closed paths when drawing using Context#closePath(). Fixes #72
This commit is contained in:
parent
b75e75f586
commit
c339ffca35
1 changed files with 3 additions and 0 deletions
|
@ -1451,6 +1451,9 @@ var Path = this.Path = PathItem.extend(/** @lends Path# */{
|
|||
drawSegments(ctx, this);
|
||||
}
|
||||
|
||||
if (this._closed)
|
||||
ctx.closePath();
|
||||
|
||||
if (this._clipMask) {
|
||||
ctx.clip();
|
||||
} else if (!param.compound && (fillColor || strokeColor)) {
|
||||
|
|
Loading…
Reference in a new issue