mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-08-28 22:08:54 -04:00
Remove Group#_clipped and solely use Item#_clipMask to handle clipping internally.
This commit is contained in:
parent
30087d046a
commit
f4d15200ee
3 changed files with 9 additions and 14 deletions
|
@ -1249,7 +1249,7 @@ var Path = this.Path = PathItem.extend({
|
|||
dashArray = this.getDashArray() || [], // TODO: Always defined?
|
||||
hasDash = !!dashArray.length;
|
||||
|
||||
if (param.compound || param.selection || param.clip || fillColor
|
||||
if (param.compound || param.selection || this._clipMask || fillColor
|
||||
|| strokeColor && !hasDash) {
|
||||
drawSegments(ctx, this);
|
||||
}
|
||||
|
@ -1259,7 +1259,7 @@ var Path = this.Path = PathItem.extend({
|
|||
if (param.selection) {
|
||||
ctx.stroke();
|
||||
drawHandles(ctx, this._segments);
|
||||
} else if (param.clip) {
|
||||
} else if (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…
Add table
Add a link
Reference in a new issue