mirror of
https://github.com/Hopiu/fabric.js.git
synced 2026-05-28 14:58:16 +00:00
Merge pull request #2025 from asturur/resize-filter-to-objec
resize_filter to object method
This commit is contained in:
commit
694885b5f9
1 changed files with 12 additions and 0 deletions
|
|
@ -293,6 +293,18 @@
|
|||
}
|
||||
}
|
||||
return img2;
|
||||
},
|
||||
|
||||
/**
|
||||
* Returns object representation of an instance
|
||||
* @return {Object} Object representation of an instance
|
||||
*/
|
||||
toObject: function() {
|
||||
return { type: this.type,
|
||||
scaleX: this.scaleX,
|
||||
scaley: this.scaleY,
|
||||
resizeType: this.resizeType,
|
||||
lanczosLobes: this.lanczosLobes };
|
||||
}
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue