[ Index ]

PHP Cross Reference of Unnamed Project

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


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