%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/11585/cwd/html/ppaobm/backend/web/assets/16c36a2e/es-modules/mixins/ |
Upload File : |
/** * (c) 2010-2019 Pawel Fus & Daniel Studencki * * License: www.highcharts.com/license */ 'use strict'; import H from '../parts/Globals.js'; import '../parts/Utilities.js'; var reduce = H.reduce; var reduceArrayMixin = { /** * Get min value of array filled by OHLC data. * @param {array} arr Array of OHLC points (arrays). * @param {string} index Index of "low" value in point array. * @returns {number} Returns min value. */ minInArray: function (arr, index) { return reduce(arr, function (min, target) { return Math.min(min, target[index]); }, Number.MAX_VALUE); }, /** * Get max value of array filled by OHLC data. * @param {array} arr Array of OHLC points (arrays). * @param {string} index Index of "high" value in point array. * @returns {number} Returns max value. */ maxInArray: function (arr, index) { return reduce(arr, function (min, target) { return Math.max(min, target[index]); }, -Number.MAX_VALUE); }, /** * Get extremes of array filled by OHLC data. * @param {array} arr Array of OHLC points (arrays). * @param {string} minIndex Index of "low" value in point array. * @param {string} maxIndex Index of "high" value in point array. * @returns {array} Returns array with min and max value. */ getArrayExtremes: function (arr, minIndex, maxIndex) { return reduce(arr, function (prev, target) { return [ Math.min(prev[0], target[minIndex]), Math.max(prev[1], target[maxIndex]) ]; }, [Number.MAX_VALUE, -Number.MAX_VALUE]); } }; export default reduceArrayMixin;