6a73cd5b6af76c11b0f26df3c0fd941d.json
2.74 KB
{"ast":null,"code":"/**\r\n * @author NHN Ent. FE Development Team <dl_javascript@nhn.com>\r\n * @fileoverview ShapeDrawingMode class\r\n */\nimport DrawingMode from '../interface/drawingMode';\nimport { drawingModes, componentNames as components } from '../consts';\n/**\r\n * ShapeDrawingMode class\r\n * @class\r\n * @ignore\r\n */\n\nclass ShapeDrawingMode extends DrawingMode {\n constructor() {\n super(drawingModes.SHAPE);\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 shape = graphics.getComponent(components.SHAPE);\n shape.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 shape = graphics.getComponent(components.SHAPE);\n shape.end();\n }\n\n}\n\nexport default ShapeDrawingMode;","map":{"version":3,"sources":["C:/Users/kkwan_000/Desktop/git/2017110269/minsung/src/js/drawingMode/shape.js"],"names":["DrawingMode","drawingModes","componentNames","components","ShapeDrawingMode","constructor","SHAPE","start","graphics","shape","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,gBAAN,SAA+BJ,WAA/B,CAA2C;AACzCK,EAAAA,WAAW,GAAG;AACZ,UAAMJ,YAAY,CAACK,KAAnB;AACD;AAED;AACF;AACA;AACA;AACA;;;AACEC,EAAAA,KAAK,CAACC,QAAD,EAAW;AACd,UAAMC,KAAK,GAAGD,QAAQ,CAACE,YAAT,CAAsBP,UAAU,CAACG,KAAjC,CAAd;AACAG,IAAAA,KAAK,CAACF,KAAN;AACD;AAED;AACF;AACA;AACA;AACA;;;AACEI,EAAAA,GAAG,CAACH,QAAD,EAAW;AACZ,UAAMC,KAAK,GAAGD,QAAQ,CAACE,YAAT,CAAsBP,UAAU,CAACG,KAAjC,CAAd;AACAG,IAAAA,KAAK,CAACE,GAAN;AACD;;AAvBwC;;AA0B3C,eAAeP,gBAAf","sourcesContent":["/**\r\n * @author NHN Ent. FE Development Team <dl_javascript@nhn.com>\r\n * @fileoverview ShapeDrawingMode class\r\n */\r\nimport DrawingMode from '../interface/drawingMode';\r\nimport { drawingModes, componentNames as components } from '../consts';\r\n\r\n/**\r\n * ShapeDrawingMode class\r\n * @class\r\n * @ignore\r\n */\r\nclass ShapeDrawingMode extends DrawingMode {\r\n constructor() {\r\n super(drawingModes.SHAPE);\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 shape = graphics.getComponent(components.SHAPE);\r\n shape.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 shape = graphics.getComponent(components.SHAPE);\r\n shape.end();\r\n }\r\n}\r\n\r\nexport default ShapeDrawingMode;\r\n"]},"metadata":{},"sourceType":"module"}