UNPKG

tui-image-editor.upgrade

Version:
36 lines (32 loc) 761 B
/** * @author NHN Ent. FE Development Team <dl_javascript@nhnent.com> * @fileoverview Blur extending fabric.Image.filters.Convolute */ import fabric from 'fabric.upgrade/dist/fabric.require'; /** * Blur object * @class Blur * @extends {fabric.Image.filters.Convolute} * @ignore */ const Blur = fabric.util.createClass(fabric.Image.filters.Convolute, /** @lends Convolute.prototype */{ /** * Filter type * @param {String} type * @default */ type: 'Blur', /** * constructor * @override */ initialize() { const matrix = [ 1 / 9, 1 / 9, 1 / 9, 1 / 9, 1 / 9, 1 / 9, 1 / 9, 1 / 9, 1 / 9 ]; this.matrix = matrix; } }); module.exports = Blur;