76ff76794da5cc064ca8b2f102d65260.json
2.22 KB
{"ast":null,"code":"/**\r\n * @author NHN Ent. FE Development Team <dl_javascript@nhn.com>\r\n * @fileoverview Emboss extending fabric.Image.filters.Convolute\r\n */\nimport fabric from 'fabric';\n/**\r\n * Emboss object\r\n * @class Emboss\r\n * @extends {fabric.Image.filters.Convolute}\r\n * @ignore\r\n */\n\nconst Emboss = fabric.util.createClass(fabric.Image.filters.Convolute,\n/** @lends Convolute.prototype */\n{\n /**\r\n * Filter type\r\n * @param {String} type\r\n * @default\r\n */\n type: 'Emboss',\n\n /**\r\n * constructor\r\n * @override\r\n */\n initialize() {\n const matrix = [1, 1, 1, 1, 0.7, -1, -1, -1, -1];\n this.matrix = matrix;\n }\n\n});\nexport default Emboss;","map":{"version":3,"sources":["C:/Users/kkwan_000/Desktop/git/2017110269/minsung/src/js/extension/emboss.js"],"names":["fabric","Emboss","util","createClass","Image","filters","Convolute","type","initialize","matrix"],"mappings":"AAAA;AACA;AACA;AACA;AACA,OAAOA,MAAP,MAAmB,QAAnB;AAEA;AACA;AACA;AACA;AACA;AACA;;AACA,MAAMC,MAAM,GAAGD,MAAM,CAACE,IAAP,CAAYC,WAAZ,CACbH,MAAM,CAACI,KAAP,CAAaC,OAAb,CAAqBC,SADR;AAEb;AAAkC;AAChC;AACJ;AACA;AACA;AACA;AACIC,EAAAA,IAAI,EAAE,QAN0B;;AAQhC;AACJ;AACA;AACA;AACIC,EAAAA,UAAU,GAAG;AACX,UAAMC,MAAM,GAAG,CAAC,CAAD,EAAI,CAAJ,EAAO,CAAP,EAAU,CAAV,EAAa,GAAb,EAAkB,CAAC,CAAnB,EAAsB,CAAC,CAAvB,EAA0B,CAAC,CAA3B,EAA8B,CAAC,CAA/B,CAAf;AACA,SAAKA,MAAL,GAAcA,MAAd;AACD;;AAf+B,CAFrB,CAAf;AAqBA,eAAeR,MAAf","sourcesContent":["/**\r\n * @author NHN Ent. FE Development Team <dl_javascript@nhn.com>\r\n * @fileoverview Emboss extending fabric.Image.filters.Convolute\r\n */\r\nimport fabric from 'fabric';\r\n\r\n/**\r\n * Emboss object\r\n * @class Emboss\r\n * @extends {fabric.Image.filters.Convolute}\r\n * @ignore\r\n */\r\nconst Emboss = fabric.util.createClass(\r\n fabric.Image.filters.Convolute,\r\n /** @lends Convolute.prototype */ {\r\n /**\r\n * Filter type\r\n * @param {String} type\r\n * @default\r\n */\r\n type: 'Emboss',\r\n\r\n /**\r\n * constructor\r\n * @override\r\n */\r\n initialize() {\r\n const matrix = [1, 1, 1, 1, 0.7, -1, -1, -1, -1];\r\n this.matrix = matrix;\r\n },\r\n }\r\n);\r\n\r\nexport default Emboss;\r\n"]},"metadata":{},"sourceType":"module"}