5c5ac5cacd271876f3b6b86cfa008f0b.json
2.23 KB
{"ast":null,"code":"/**\r\n * @author NHN Ent. FE Development Team <dl_javascript@nhn.com>\r\n * @fileoverview Sharpen extending fabric.Image.filters.Convolute\r\n */\nimport fabric from 'fabric';\n/**\r\n * Sharpen object\r\n * @class Sharpen\r\n * @extends {fabric.Image.filters.Convolute}\r\n * @ignore\r\n */\n\nconst Sharpen = 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: 'Sharpen',\n\n /**\r\n * constructor\r\n * @override\r\n */\n initialize() {\n const matrix = [0, -1, 0, -1, 5, -1, 0, -1, 0];\n this.matrix = matrix;\n }\n\n});\nexport default Sharpen;","map":{"version":3,"sources":["C:/Users/kkwan_000/Desktop/git/2017110269/minsung/src/js/extension/sharpen.js"],"names":["fabric","Sharpen","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,OAAO,GAAGD,MAAM,CAACE,IAAP,CAAYC,WAAZ,CACdH,MAAM,CAACI,KAAP,CAAaC,OAAb,CAAqBC,SADP;AAEd;AAAkC;AAChC;AACJ;AACA;AACA;AACA;AACIC,EAAAA,IAAI,EAAE,SAN0B;;AAQhC;AACJ;AACA;AACA;AACIC,EAAAA,UAAU,GAAG;AACX,UAAMC,MAAM,GAAG,CAAC,CAAD,EAAI,CAAC,CAAL,EAAQ,CAAR,EAAW,CAAC,CAAZ,EAAe,CAAf,EAAkB,CAAC,CAAnB,EAAsB,CAAtB,EAAyB,CAAC,CAA1B,EAA6B,CAA7B,CAAf;AACA,SAAKA,MAAL,GAAcA,MAAd;AACD;;AAf+B,CAFpB,CAAhB;AAqBA,eAAeR,OAAf","sourcesContent":["/**\r\n * @author NHN Ent. FE Development Team <dl_javascript@nhn.com>\r\n * @fileoverview Sharpen extending fabric.Image.filters.Convolute\r\n */\r\nimport fabric from 'fabric';\r\n\r\n/**\r\n * Sharpen object\r\n * @class Sharpen\r\n * @extends {fabric.Image.filters.Convolute}\r\n * @ignore\r\n */\r\nconst Sharpen = 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: 'Sharpen',\r\n\r\n /**\r\n * constructor\r\n * @override\r\n */\r\n initialize() {\r\n const matrix = [0, -1, 0, -1, 5, -1, 0, -1, 0];\r\n this.matrix = matrix;\r\n },\r\n }\r\n);\r\n\r\nexport default Sharpen;\r\n"]},"metadata":{},"sourceType":"module"}