Remove Group#_clipped and solely use Item#_clipMask to handle clipping internally.

This commit is contained in:
Jürg Lehni 2011-06-17 13:56:02 +01:00
parent 30087d046a
commit f4d15200ee
3 changed files with 9 additions and 14 deletions

View file

@ -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