Update resize_filter.class.js

Add better to toObject support
This commit is contained in:
Andrea Bogazzi 2015-03-09 03:11:26 +01:00 committed by asturur
parent 63180f24a9
commit bc5343adb7

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