[ Index ]

PHP Cross Reference of Unnamed Project

title

Body

[close]

/mod/assign/feedback/editpdf/yui/src/editor/js/ -> edit.js (source)

   1  // This file is part of Moodle - http://moodle.org/
   2  //
   3  // Moodle is free software: you can redistribute it and/or modify
   4  // it under the terms of the GNU General Public License as published by
   5  // the Free Software Foundation, either version 3 of the License, or
   6  // (at your option) any later version.
   7  //
   8  // Moodle is distributed in the hope that it will be useful,
   9  // but WITHOUT ANY WARRANTY; without even the implied warranty of
  10  // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  11  // GNU General Public License for more details.
  12  //
  13  // You should have received a copy of the GNU General Public License
  14  // along with Moodle.  If not, see <http://www.gnu.org/licenses/>.
  15  
  16  /**
  17   * Provides an in browser PDF editor.
  18   *
  19   * @module moodle-assignfeedback_editpdf-editor
  20   */
  21  
  22  /**
  23   * EDIT
  24   *
  25   * @namespace M.assignfeedback_editpdf
  26   * @class edit
  27   */
  28  var EDIT = function() {
  29  
  30      /**
  31       * Starting point for the edit.
  32       * @property start
  33       * @type M.assignfeedback_editpdf.point|false
  34       * @public
  35       */
  36      this.start = false;
  37  
  38      /**
  39       * Finishing point for the edit.
  40       * @property end
  41       * @type M.assignfeedback_editpdf.point|false
  42       * @public
  43       */
  44      this.end = false;
  45  
  46      /**
  47       * Starting time for the edit.
  48       * @property starttime
  49       * @type int
  50       * @public
  51       */
  52      this.starttime = 0;
  53  
  54      /**
  55       * Starting point for the currently selected annotation.
  56       * @property annotationstart
  57       * @type M.assignfeedback_editpdf.point|false
  58       * @public
  59       */
  60      this.annotationstart = false;
  61  
  62      /**
  63       * The currently selected tool
  64       * @property tool
  65       * @type String
  66       * @public
  67       */
  68      this.tool = "drag";
  69  
  70      /**
  71       * The currently comment colour
  72       * @property commentcolour
  73       * @type String
  74       * @public
  75       */
  76      this.commentcolour = 'yellow';
  77  
  78      /**
  79       * The currently annotation colour
  80       * @property annotationcolour
  81       * @type String
  82       * @public
  83       */
  84      this.annotationcolour = 'red';
  85  
  86      /**
  87       * The current stamp image.
  88       * @property stamp
  89       * @type String
  90       * @public
  91       */
  92      this.stamp = '';
  93  
  94      /**
  95       * List of points the the current drawing path.
  96       * @property path
  97       * @type M.assignfeedback_editpdf.point[]
  98       * @public
  99       */
 100      this.path = [];
 101  };
 102  
 103  M.assignfeedback_editpdf = M.assignfeedback_editpdf || {};
 104  M.assignfeedback_editpdf.edit = EDIT;


Generated: Thu Aug 11 10:00:09 2016 Cross-referenced by PHPXref 0.7.1