mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-20 22:39:50 -05:00
Fix Raster#getAverageColor by having Path#draw clip the context, when param.clip is true.
This commit is contained in:
parent
d7546c0c8d
commit
4c4258d2e1
1 changed files with 1 additions and 1 deletions
|
@ -1851,7 +1851,7 @@ var Path = this.Path = PathItem.extend(/** @lends Path# */{
|
|||
if (this._closed)
|
||||
ctx.closePath();
|
||||
|
||||
if (this._clipMask) {
|
||||
if (param.clip || this._clipMask) {
|
||||
ctx.clip();
|
||||
} else if (!param.compound && (fillColor || strokeColor)) {
|
||||
// If the path is part of a compound path or doesn't have a fill
|
||||
|
|
Loading…
Reference in a new issue