d0887b4664e4c2d7fad883af1e168116.json
2.79 KB
{"ast":null,"code":"/**\r\n * @author NHN Ent. FE Development Team <dl_javascript@nhn.com>\r\n * @fileoverview CropperDrawingMode class\r\n */\nimport DrawingMode from '../interface/drawingMode';\nimport { drawingModes, componentNames as components } from '../consts';\n/**\r\n * CropperDrawingMode class\r\n * @class\r\n * @ignore\r\n */\n\nclass CropperDrawingMode extends DrawingMode {\n constructor() {\n super(drawingModes.CROPPER);\n }\n /**\r\n * start this drawing mode\r\n * @param {Graphics} graphics - Graphics instance\r\n * @override\r\n */\n\n\n start(graphics) {\n const cropper = graphics.getComponent(components.CROPPER);\n cropper.start();\n }\n /**\r\n * stop this drawing mode\r\n * @param {Graphics} graphics - Graphics instance\r\n * @override\r\n */\n\n\n end(graphics) {\n const cropper = graphics.getComponent(components.CROPPER);\n cropper.end();\n }\n\n}\n\nexport default CropperDrawingMode;","map":{"version":3,"sources":["C:/Users/kkwan_000/Desktop/git/2017110269/minsung/src/js/drawingMode/cropper.js"],"names":["DrawingMode","drawingModes","componentNames","components","CropperDrawingMode","constructor","CROPPER","start","graphics","cropper","getComponent","end"],"mappings":"AAAA;AACA;AACA;AACA;AACA,OAAOA,WAAP,MAAwB,0BAAxB;AACA,SAASC,YAAT,EAAuBC,cAAc,IAAIC,UAAzC,QAA2D,WAA3D;AAEA;AACA;AACA;AACA;AACA;;AACA,MAAMC,kBAAN,SAAiCJ,WAAjC,CAA6C;AAC3CK,EAAAA,WAAW,GAAG;AACZ,UAAMJ,YAAY,CAACK,OAAnB;AACD;AAED;AACF;AACA;AACA;AACA;;;AACEC,EAAAA,KAAK,CAACC,QAAD,EAAW;AACd,UAAMC,OAAO,GAAGD,QAAQ,CAACE,YAAT,CAAsBP,UAAU,CAACG,OAAjC,CAAhB;AACAG,IAAAA,OAAO,CAACF,KAAR;AACD;AAED;AACF;AACA;AACA;AACA;;;AACEI,EAAAA,GAAG,CAACH,QAAD,EAAW;AACZ,UAAMC,OAAO,GAAGD,QAAQ,CAACE,YAAT,CAAsBP,UAAU,CAACG,OAAjC,CAAhB;AACAG,IAAAA,OAAO,CAACE,GAAR;AACD;;AAvB0C;;AA0B7C,eAAeP,kBAAf","sourcesContent":["/**\r\n * @author NHN Ent. FE Development Team <dl_javascript@nhn.com>\r\n * @fileoverview CropperDrawingMode class\r\n */\r\nimport DrawingMode from '../interface/drawingMode';\r\nimport { drawingModes, componentNames as components } from '../consts';\r\n\r\n/**\r\n * CropperDrawingMode class\r\n * @class\r\n * @ignore\r\n */\r\nclass CropperDrawingMode extends DrawingMode {\r\n constructor() {\r\n super(drawingModes.CROPPER);\r\n }\r\n\r\n /**\r\n * start this drawing mode\r\n * @param {Graphics} graphics - Graphics instance\r\n * @override\r\n */\r\n start(graphics) {\r\n const cropper = graphics.getComponent(components.CROPPER);\r\n cropper.start();\r\n }\r\n\r\n /**\r\n * stop this drawing mode\r\n * @param {Graphics} graphics - Graphics instance\r\n * @override\r\n */\r\n end(graphics) {\r\n const cropper = graphics.getComponent(components.CROPPER);\r\n cropper.end();\r\n }\r\n}\r\n\r\nexport default CropperDrawingMode;\r\n"]},"metadata":{},"sourceType":"module"}