UNPKG

tui-image-editor.upgrade

Version:
36 lines (32 loc) 743 B
/** * @author NHN Ent. FE Development Team <dl_javascript@nhnent.com> * @fileoverview Emboss extending fabric.Image.filters.Convolute */ import fabric from 'fabric.upgrade/dist/fabric.require'; /** * 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; } }); module.exports = Emboss;