403Webshell
Server IP : 182.53.201.61  /  Your IP : 216.73.217.175
Web Server : Apache/2.2.15 (Fedora)
System : Linux km10.dyndns.org 2.6.31.5-127.fc12.i686.PAE #1 SMP Sat Nov 7 21:25:57 EST 2009 i686
User : apache ( 48)
PHP Version : 5.3.3
Disable Function : NONE
MySQL : ON  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /var/www/html/temp/code/es-modules/parts-3d/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/html/temp/code/es-modules/parts-3d/Series.js
/**
 * (c) 2010-2017 Torstein Honsi
 *
 * Extension to the Series object in 3D charts.
 *
 * License: www.highcharts.com/license
 */
'use strict';
import H from '../parts/Globals.js';
import '../parts/Utilities.js';
var addEvent = H.addEvent,
    perspective = H.perspective,
    pick = H.pick;

// Wrap the translate method to post-translate points into 3D perspective
addEvent(H.Series, 'afterTranslate', function () {
    if (this.chart.is3d()) {
        this.translate3dPoints();
    }
});

/**
 * Translate the plotX, plotY properties and add plotZ.
 */
H.Series.prototype.translate3dPoints = function () {
    var series = this,
        chart = series.chart,
        zAxis = pick(series.zAxis, chart.options.zAxis[0]),
        rawPoints = [],
        rawPoint,
        projectedPoints,
        projectedPoint,
        zValue,
        i;

    for (i = 0; i < series.data.length; i++) {
        rawPoint = series.data[i];

        if (zAxis && zAxis.translate) {
            zValue = zAxis.isLog && zAxis.val2lin ?
                zAxis.val2lin(rawPoint.z) :
                rawPoint.z; // #4562
            rawPoint.plotZ = zAxis.translate(zValue);
            rawPoint.isInside = rawPoint.isInside ?
                (zValue >= zAxis.min && zValue <= zAxis.max) :
                false;
        } else {
            rawPoint.plotZ = 0;
        }

        rawPoints.push({
            x: pick(rawPoint.plotXold, rawPoint.plotX),
            y: pick(rawPoint.plotYold, rawPoint.plotY),
            z: pick(rawPoint.plotZold, rawPoint.plotZ)
        });
    }

    projectedPoints = perspective(rawPoints, chart, true);

    for (i = 0; i < series.data.length; i++) {
        rawPoint = series.data[i];
        projectedPoint = projectedPoints[i];

        rawPoint.plotXold = rawPoint.plotX;
        rawPoint.plotYold = rawPoint.plotY;
        rawPoint.plotZold = rawPoint.plotZ;

        rawPoint.plotX = projectedPoint.x;
        rawPoint.plotY = projectedPoint.y;
        rawPoint.plotZ = projectedPoint.z;
    }
};


Youez - 2016 - github.com/yon3zu
LinuXploit