999d3510132075fc2efe264991aeb018.json
3.14 KB
{"ast":null,"code":"/**\r\n * @author NHN Ent. FE Development Team <dl_javascript@nhn.com>\r\n * @fileoverview DrawingMode interface\r\n */\nimport errorMessage from '../factory/errorMessage';\nconst createMessage = errorMessage.create;\nconst errorTypes = errorMessage.types;\n/**\r\n * DrawingMode interface\r\n * @class\r\n * @param {string} name - drawing mode name\r\n * @ignore\r\n */\n\nclass DrawingMode {\n constructor(name) {\n /**\r\n * the name of drawing mode\r\n * @type {string}\r\n */\n this.name = name;\n }\n /**\r\n * Get this drawing mode name;\r\n * @returns {string} drawing mode name\r\n */\n\n\n getName() {\n return this.name;\n }\n /**\r\n * start this drawing mode\r\n * @param {Object} options - drawing mode options\r\n * @abstract\r\n */\n\n\n start() {\n throw new Error(createMessage(errorTypes.UN_IMPLEMENTATION, 'start'));\n }\n /**\r\n * stop this drawing mode\r\n * @abstract\r\n */\n\n\n stop() {\n throw new Error(createMessage(errorTypes.UN_IMPLEMENTATION, 'stop'));\n }\n\n}\n\nexport default DrawingMode;","map":{"version":3,"sources":["C:/Users/kkwan_000/Desktop/git/2017110269/minsung/src/js/interface/drawingMode.js"],"names":["errorMessage","createMessage","create","errorTypes","types","DrawingMode","constructor","name","getName","start","Error","UN_IMPLEMENTATION","stop"],"mappings":"AAAA;AACA;AACA;AACA;AACA,OAAOA,YAAP,MAAyB,yBAAzB;AAEA,MAAMC,aAAa,GAAGD,YAAY,CAACE,MAAnC;AACA,MAAMC,UAAU,GAAGH,YAAY,CAACI,KAAhC;AAEA;AACA;AACA;AACA;AACA;AACA;;AACA,MAAMC,WAAN,CAAkB;AAChBC,EAAAA,WAAW,CAACC,IAAD,EAAO;AAChB;AACJ;AACA;AACA;AACI,SAAKA,IAAL,GAAYA,IAAZ;AACD;AAED;AACF;AACA;AACA;;;AACEC,EAAAA,OAAO,GAAG;AACR,WAAO,KAAKD,IAAZ;AACD;AAED;AACF;AACA;AACA;AACA;;;AACEE,EAAAA,KAAK,GAAG;AACN,UAAM,IAAIC,KAAJ,CAAUT,aAAa,CAACE,UAAU,CAACQ,iBAAZ,EAA+B,OAA/B,CAAvB,CAAN;AACD;AAED;AACF;AACA;AACA;;;AACEC,EAAAA,IAAI,GAAG;AACL,UAAM,IAAIF,KAAJ,CAAUT,aAAa,CAACE,UAAU,CAACQ,iBAAZ,EAA+B,MAA/B,CAAvB,CAAN;AACD;;AAhCe;;AAmClB,eAAeN,WAAf","sourcesContent":["/**\r\n * @author NHN Ent. FE Development Team <dl_javascript@nhn.com>\r\n * @fileoverview DrawingMode interface\r\n */\r\nimport errorMessage from '../factory/errorMessage';\r\n\r\nconst createMessage = errorMessage.create;\r\nconst errorTypes = errorMessage.types;\r\n\r\n/**\r\n * DrawingMode interface\r\n * @class\r\n * @param {string} name - drawing mode name\r\n * @ignore\r\n */\r\nclass DrawingMode {\r\n constructor(name) {\r\n /**\r\n * the name of drawing mode\r\n * @type {string}\r\n */\r\n this.name = name;\r\n }\r\n\r\n /**\r\n * Get this drawing mode name;\r\n * @returns {string} drawing mode name\r\n */\r\n getName() {\r\n return this.name;\r\n }\r\n\r\n /**\r\n * start this drawing mode\r\n * @param {Object} options - drawing mode options\r\n * @abstract\r\n */\r\n start() {\r\n throw new Error(createMessage(errorTypes.UN_IMPLEMENTATION, 'start'));\r\n }\r\n\r\n /**\r\n * stop this drawing mode\r\n * @abstract\r\n */\r\n stop() {\r\n throw new Error(createMessage(errorTypes.UN_IMPLEMENTATION, 'stop'));\r\n }\r\n}\r\n\r\nexport default DrawingMode;\r\n"]},"metadata":{},"sourceType":"module"}