[ Index ]

PHP Cross Reference of moodle-2.8

title

Body

[close]

/mod/assign/feedback/editpdf/yui/src/editor/js/ -> globals.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   * A list of globals used by this module.
  18   *
  19   * @module moodle-assignfeedback_editpdf-editor
  20   */
  21  var AJAXBASE = M.cfg.wwwroot + '/mod/assign/feedback/editpdf/ajax.php',
  22      AJAXBASEPROGRESS = M.cfg.wwwroot + '/mod/assign/feedback/editpdf/ajax_progress.php',
  23      CSS = {
  24          DIALOGUE : 'assignfeedback_editpdf_widget'
  25      },
  26      SELECTOR = {
  27          PREVIOUSBUTTON : '.' + CSS.DIALOGUE + ' .navigate-previous-button',
  28          NEXTBUTTON : '.' + CSS.DIALOGUE + ' .navigate-next-button',
  29          SEARCHCOMMENTSBUTTON : '.' + CSS.DIALOGUE + ' .searchcommentsbutton',
  30          SEARCHFILTER : '.assignfeedback_editpdf_commentsearch input',
  31          SEARCHCOMMENTSLIST : '.assignfeedback_editpdf_commentsearch ul',
  32          PAGESELECT : '.' + CSS.DIALOGUE + ' .navigate-page-select',
  33          LOADINGICON : '.' + CSS.DIALOGUE + ' .loading',
  34          PROGRESSBARCONTAINER : '.' + CSS.DIALOGUE + ' .progress-info.progress-striped',
  35          DRAWINGREGION : '.' + CSS.DIALOGUE + ' .drawingregion',
  36          DRAWINGCANVAS : '.' + CSS.DIALOGUE + ' .drawingcanvas',
  37          SAVE : '.' + CSS.DIALOGUE + ' .savebutton',
  38          COMMENTCOLOURBUTTON : '.' + CSS.DIALOGUE + ' .commentcolourbutton',
  39          COMMENTMENU : ' .commentdrawable a',
  40          ANNOTATIONCOLOURBUTTON : '.' + CSS.DIALOGUE + ' .annotationcolourbutton',
  41          DELETEANNOTATIONBUTTON : '.' + CSS.DIALOGUE + ' .deleteannotationbutton',
  42          UNSAVEDCHANGESDIV : '.assignfeedback_editpdf_unsavedchanges',
  43          STAMPSBUTTON : '.' + CSS.DIALOGUE + ' .currentstampbutton',
  44          DIALOGUE : '.' + CSS.DIALOGUE
  45      },
  46      SELECTEDBORDERCOLOUR = 'rgba(200, 200, 255, 0.9)',
  47      SELECTEDFILLCOLOUR = 'rgba(200, 200, 255, 0.5)',
  48      COMMENTTEXTCOLOUR = 'rgb(51, 51, 51)',
  49      COMMENTCOLOUR = {
  50          'white' : 'rgb(255,255,255)',
  51          'yellow' : 'rgb(255,236,174)',
  52          'red' : 'rgb(249,181,179)',
  53          'green' : 'rgb(214,234,178)',
  54          'blue' : 'rgb(203,217,237)',
  55          'clear' : 'rgba(255,255,255, 0)'
  56      },
  57      ANNOTATIONCOLOUR = {
  58          'white' : 'rgb(255,255,255)',
  59          'yellow' : 'rgb(255,207,53)',
  60          'red' : 'rgb(239,69,64)',
  61          'green' : 'rgb(152,202,62)',
  62          'blue' : 'rgb(125,159,211)',
  63          'black' : 'rgb(51,51,51)'
  64      },
  65      CLICKTIMEOUT = 300,
  66      TOOLSELECTOR = {
  67          'comment': '.' + CSS.DIALOGUE + ' .commentbutton',
  68          'pen': '.' + CSS.DIALOGUE + ' .penbutton',
  69          'line': '.' + CSS.DIALOGUE + ' .linebutton',
  70          'rectangle': '.' + CSS.DIALOGUE + ' .rectanglebutton',
  71          'oval': '.' + CSS.DIALOGUE + ' .ovalbutton',
  72          'stamp': '.' + CSS.DIALOGUE + ' .stampbutton',
  73          'select': '.' + CSS.DIALOGUE + ' .selectbutton',
  74          'highlight': '.' + CSS.DIALOGUE + ' .highlightbutton'
  75      },
  76      STROKEWEIGHT = 4;


Generated: Fri Nov 28 20:29:05 2014 Cross-referenced by PHPXref 0.7.1