Merge pull request #2025 from asturur/resize-filter-to-objec

resize_filter to object method
This commit is contained in:
Juriy Zaytsev 2015-03-09 09:40:38 +01:00
commit 694885b5f9

View file

@ -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 };
}
});