PHP Classes

File: toastui/src/js/interface/drawingMode.js

Recommend this page to a friend!
  Classes of Mark de Leon   PHP Document Scanner using SANE or eSCL AirPrint   toastui/src/js/interface/drawingMode.js   Download  
File: toastui/src/js/interface/drawingMode.js
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: PHP Document Scanner using SANE or eSCL AirPrint
Web interface to scan printed documents
Author: By
Last change:
Date: 4 years ago
Size: 1,058 bytes
 

Contents

Class file image Download
/** * @author NHN Ent. FE Development Team <dl_javascript@nhn.com> * @fileoverview DrawingMode interface */ import errorMessage from '../factory/errorMessage'; const createMessage = errorMessage.create; const errorTypes = errorMessage.types; /** * DrawingMode interface * @class * @param {string} name - drawing mode name * @ignore */ class DrawingMode { constructor(name) { /** * the name of drawing mode * @type {string} */ this.name = name; } /** * Get this drawing mode name; * @returns {string} drawing mode name */ getName() { return this.name; } /** * start this drawing mode * @param {Object} options - drawing mode options * @abstract */ start() { throw new Error(createMessage(errorTypes.UN_IMPLEMENTATION, 'start')); } /** * stop this drawing mode * @abstract */ stop() { throw new Error(createMessage(errorTypes.UN_IMPLEMENTATION, 'stop')); } } module.exports = DrawingMode;