mirror of
https://github.com/Hopiu/fabric.js.git
synced 2026-05-14 16:53:10 +00:00
Update resize_filter.class.js
Add better to toObject support
This commit is contained in:
parent
63180f24a9
commit
bc5343adb7
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