UNPKG

jab-image-editor

Version:
36 lines (32 loc) 745 B
/** * @author NHN Ent. FE Development Team <dl_javascript@nhn.com> * @fileoverview Emboss extending fabric.Image.filters.Convolute */ import fabric from 'fabric'; /** * Emboss object * @class Emboss * @extends {fabric.Image.filters.Convolute} * @ignore */ const Emboss = fabric.util.createClass(fabric.Image.filters.Convolute, /** @lends Convolute.prototype */{ /** * Filter type * @param {String} type * @default */ type: 'Emboss', /** * constructor * @override */ initialize() { const matrix = [ 1, 1, 1, 1, 0.7, -1, -1, -1, -1 ]; this.matrix = matrix; } }); export default Emboss;