Proyectos de Subversion Moodle

Rev

Autoría | Ultima modificación | Ver Log |

{"version":3,"file":"chart_output_base.min.js","sources":["../src/chart_output_base.js"],"sourcesContent":["// This file is part of Moodle - http://moodle.org/\n//\n// Moodle is free software: you can redistribute it and/or modify\n// it under the terms of the GNU General Public License as published by\n// the Free Software Foundation, either version 3 of the License, or\n// (at your option) any later version.\n//\n// Moodle is distributed in the hope that it will be useful,\n// but WITHOUT ANY WARRANTY; without even the implied warranty of\n// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n// GNU General Public License for more details.\n//\n// You should have received a copy of the GNU General Public License\n// along with Moodle.  If not, see <http://www.gnu.org/licenses/>.\n\n/**\n * Chart output base.\n *\n * This takes a chart object and draws it.\n *\n * @copyright  2016 Frédéric Massart - FMCorz.net\n * @license    http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later\n * @module     core/chart_output_base\n */\ndefine(['jquery'], function($) {\n\n    /**\n     * Chart output base.\n     *\n     * The constructor of an output class must instantly generate and display the\n     * chart. It is also the responsability of the output module to check that\n     * the node received is of the appropriate type, if not a new node can be\n     * added within.\n     *\n     * The output module has total control over the content of the node and can\n     * clear it or output anything to it at will. A node should not be shared by\n     * two simultaneous output modules.\n     *\n     * @class\n     * @param {Node} node The node to output with/in.\n     * @param {Chart} chart A chart object.\n     */\n    function Base(node, chart) {\n        this._node = $(node);\n        this._chart = chart;\n    }\n\n    /**\n     * Update method.\n     *\n     * This is the public method through which an output instance in informed\n     * that the chart instance has been updated and they need to update the\n     * chart rendering.\n     *\n     * @abstract\n     * @return {Void}\n     */\n    Base.prototype.update = function() {\n        throw new Error('Not supported.');\n    };\n\n    return Base;\n\n});\n"],"names":["define","$","Base","node","chart","_node","_chart","prototype","update","Error"],"mappings":";;;;;;;;;AAwBAA,gCAAO,CAAC,WAAW,SAASC,YAkBfC,KAAKC,KAAMC,YACXC,MAAQJ,EAAEE,WACVG,OAASF,aAalBF,KAAKK,UAAUC,OAAS,iBACd,IAAIC,MAAM,mBAGbP"}