47b3fa261bb8d31d43d36c5e0abca349.json
2.71 KB
{"ast":null,"code":"/**\r\n * @author NHN Ent. FE Development Team <dl_javascript@nhn.com>\r\n * @fileoverview IconDrawingMode class\r\n */\nimport DrawingMode from '../interface/drawingMode';\nimport { drawingModes, componentNames as components } from '../consts';\n/**\r\n * IconDrawingMode class\r\n * @class\r\n * @ignore\r\n */\n\nclass IconDrawingMode extends DrawingMode {\n constructor() {\n super(drawingModes.ICON);\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 icon = graphics.getComponent(components.ICON);\n icon.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 icon = graphics.getComponent(components.ICON);\n icon.end();\n }\n\n}\n\nexport default IconDrawingMode;","map":{"version":3,"sources":["C:/Users/kkwan_000/Desktop/git/2017110269/minsung/src/js/drawingMode/icon.js"],"names":["DrawingMode","drawingModes","componentNames","components","IconDrawingMode","constructor","ICON","start","graphics","icon","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,eAAN,SAA8BJ,WAA9B,CAA0C;AACxCK,EAAAA,WAAW,GAAG;AACZ,UAAMJ,YAAY,CAACK,IAAnB;AACD;AAED;AACF;AACA;AACA;AACA;;;AACEC,EAAAA,KAAK,CAACC,QAAD,EAAW;AACd,UAAMC,IAAI,GAAGD,QAAQ,CAACE,YAAT,CAAsBP,UAAU,CAACG,IAAjC,CAAb;AACAG,IAAAA,IAAI,CAACF,KAAL;AACD;AAED;AACF;AACA;AACA;AACA;;;AACEI,EAAAA,GAAG,CAACH,QAAD,EAAW;AACZ,UAAMC,IAAI,GAAGD,QAAQ,CAACE,YAAT,CAAsBP,UAAU,CAACG,IAAjC,CAAb;AACAG,IAAAA,IAAI,CAACE,GAAL;AACD;;AAvBuC;;AA0B1C,eAAeP,eAAf","sourcesContent":["/**\r\n * @author NHN Ent. FE Development Team <dl_javascript@nhn.com>\r\n * @fileoverview IconDrawingMode class\r\n */\r\nimport DrawingMode from '../interface/drawingMode';\r\nimport { drawingModes, componentNames as components } from '../consts';\r\n\r\n/**\r\n * IconDrawingMode class\r\n * @class\r\n * @ignore\r\n */\r\nclass IconDrawingMode extends DrawingMode {\r\n constructor() {\r\n super(drawingModes.ICON);\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 icon = graphics.getComponent(components.ICON);\r\n icon.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 icon = graphics.getComponent(components.ICON);\r\n icon.end();\r\n }\r\n}\r\n\r\nexport default IconDrawingMode;\r\n"]},"metadata":{},"sourceType":"module"}