OwlCyberSecurity - MANAGER
Edit File: jqplot.hermite.min.js
(function(a){a.jqplot.hermiteSplineRenderer=function(){a.jqplot.LineRenderer.call(this)};a.jqplot.hermiteSplineRenderer.prototype=new a.jqplot.LineRenderer();a.jqplot.hermiteSplineRenderer.prototype.constructor=a.jqplot.hermiteSplineRenderer;a.jqplot.hermiteSplineRenderer.prototype.init=function(b){this.steps=50;this.tension=0.5;a.extend(true,this,b);var c={lineJoin:"miter",lineCap:"round",fill:false,isarc:false,strokeStyle:this.color,lineWidth:this.lineWidth};this.renderer.shapeRenderer.init(c)};a.jqplot.hermiteSplineRenderer.prototype.draw=function(v,y,b){var w;var q=(b!=undefined)?b:{};var A=(q.showLine!=undefined)?q.showLine:this.showLine;if(y.length){if(A){if(y.length>1){var n=[];for(var w=0;w<y.length-1;w++){var x=this.steps;var z=this.tension;for(var o=0;o<x;o++){var r=o/x;var k=(1+2*r)*Math.pow((1-r),2);var j=r*Math.pow((1-r),2);var g=Math.pow(r,2)*(3-2*r);var e=Math.pow(r,2)*(r-1);if(y[w-1]){var h=z*(y[w+1][0]-y[w-1][0]);var f=z*(y[w+1][1]-y[w-1][1])}else{var h=z*(y[w+1][0]-y[w][0]);var f=z*(y[w+1][1]-y[w][1])}if(y[w+2]){var m=z*(y[w+2][0]-y[w][0]);var l=z*(y[w+2][1]-y[w][1])}else{var m=z*(y[w+1][0]-y[w][0]);var l=z*(y[w+1][1]-y[w][1])}var d=k*y[w][0]+g*y[w+1][0]+j*h+e*m;var c=k*y[w][1]+g*y[w+1][1]+j*f+e*l;if(c<1){c=1}var u=[d,c];n.push(u)}}y=n}this.renderer.shapeRenderer.draw(v,y,q)}}}})(akeeba.jQuery);