mirror of
https://github.com/Hopiu/fabric.js.git
synced 2026-05-18 02:21:07 +00:00
Remove toGrayscale from fabric.PathGroup and fabric.Collection
This commit is contained in:
parent
12f272d2fc
commit
61835602f9
2 changed files with 0 additions and 22 deletions
|
|
@ -122,15 +122,5 @@ fabric.Collection = {
|
|||
memo += current.complexity ? current.complexity() : 0;
|
||||
return memo;
|
||||
}, 0);
|
||||
},
|
||||
|
||||
/**
|
||||
* Makes all of the collection objects grayscale (i.e. calling `toGrayscale` on them)
|
||||
* @return {Self} thisArg
|
||||
*/
|
||||
toGrayscale: function() {
|
||||
return this.forEachObject(function(obj) {
|
||||
obj.toGrayscale();
|
||||
});
|
||||
}
|
||||
};
|
||||
|
|
|
|||
|
|
@ -185,18 +185,6 @@
|
|||
}, 0);
|
||||
},
|
||||
|
||||
/**
|
||||
* Makes path group grayscale
|
||||
* @return {fabric.PathGroup} thisArg
|
||||
*/
|
||||
toGrayscale: function() {
|
||||
var i = this.paths.length;
|
||||
while (i--) {
|
||||
this.paths[i].toGrayscale();
|
||||
}
|
||||
return this;
|
||||
},
|
||||
|
||||
/**
|
||||
* Returns all paths in this path group
|
||||
* @return {Array} array of path objects included in this path group
|
||||
|
|
|
|||
Loading…
Reference in a new issue