PHP Classes

File: toastui/src/js/extension/emboss.js

Recommend this page to a friend!
  Classes of Mark de Leon  >  PHP Document Scanner using SANE or eSCL AirPrint  >  toastui/src/js/extension/emboss.js  >  Download  
File: toastui/src/js/extension/emboss.js
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: PHP Document Scanner using SANE or eSCL AirPrint
Web interface to scan printed documents
Author: By
Last change:
Date: 1 year ago
Size: 732 bytes
 

Contents

Class file image Download
/**
 * @author NHN Ent. FE Development Team <dl_javascript@nhn.com>
 * @fileoverview Emboss extending fabric.Image.filters.Convolute
 */
import fabric from 'fabric/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;
For more information send a message to info at phpclasses dot org.