Commit dd392a1a authored by Sergey Luzyanin's avatar Sergey Luzyanin

this -> oThis

parent a0296f1f
...@@ -8392,11 +8392,12 @@ drawPieChart.prototype = ...@@ -8392,11 +8392,12 @@ drawPieChart.prototype =
return res; return res;
}; };
var oThis = this;
var calculateInsideFaces = function(startAng1, swapAng1, startAng2, swapAng2) var calculateInsideFaces = function(startAng1, swapAng1, startAng2, swapAng2)
{ {
var pathId = this.cChartSpace.AllocPath(); var pathId = oThis.cChartSpace.AllocPath();
var path = this.cChartSpace.GetPath(pathId); var path = oThis.cChartSpace.GetPath(pathId);
var endAng1 = startAng1 + swapAng1; var endAng1 = startAng1 + swapAng1;
var endAng2 = startAng2 + swapAng2; var endAng2 = startAng2 + swapAng2;
...@@ -8420,8 +8421,8 @@ drawPieChart.prototype = ...@@ -8420,8 +8421,8 @@ drawPieChart.prototype =
var calculateFrontFace = function(startAng, swapAng, startAng2, swapAng2) var calculateFrontFace = function(startAng, swapAng, startAng2, swapAng2)
{ {
var pathId = this.cChartSpace.AllocPath(); var pathId = oThis.cChartSpace.AllocPath();
var path = this.cChartSpace.GetPath(pathId); var path = oThis.cChartSpace.GetPath(pathId);
var endAng = startAng + swapAng; var endAng = startAng + swapAng;
var endAng2 = startAng2 + swapAng2; var endAng2 = startAng2 + swapAng2;
...@@ -8442,8 +8443,8 @@ drawPieChart.prototype = ...@@ -8442,8 +8443,8 @@ drawPieChart.prototype =
var calculateUpFace = function(startAng, swapAng) var calculateUpFace = function(startAng, swapAng)
{ {
var pathId = this.cChartSpace.AllocPath(); var pathId = oThis.cChartSpace.AllocPath();
var path = this.cChartSpace.GetPath(pathId); var path = oThis.cChartSpace.GetPath(pathId);
var radiusSpec = (radiusUp1 * radiusUp2) / Math.sqrt(Math.pow(radiusUp2, 2) * Math.pow((Math.cos(startAng)), 2) + Math.pow(radiusUp1, 2) * Math.pow(Math.sin(startAng),2)); var radiusSpec = (radiusUp1 * radiusUp2) / Math.sqrt(Math.pow(radiusUp2, 2) * Math.pow((Math.cos(startAng)), 2) + Math.pow(radiusUp1, 2) * Math.pow(Math.sin(startAng),2));
...@@ -8463,8 +8464,8 @@ drawPieChart.prototype = ...@@ -8463,8 +8464,8 @@ drawPieChart.prototype =
var calculateDownFace = function(startAng, swapAng) var calculateDownFace = function(startAng, swapAng)
{ {
var pathId = this.cChartSpace.AllocPath(); var pathId = oThis.cChartSpace.AllocPath();
var path = this.cChartSpace.GetPath(pathId); var path = oThis.cChartSpace.GetPath(pathId);
var radiusSpec = (radiusDown1 * radiusDown2) / Math.sqrt(Math.pow(radiusDown2, 2) * Math.pow((Math.cos(startAng)), 2) + Math.pow(radiusDown1, 2) * Math.pow(Math.sin(startAng),2)); var radiusSpec = (radiusDown1 * radiusDown2) / Math.sqrt(Math.pow(radiusDown2, 2) * Math.pow((Math.cos(startAng)), 2) + Math.pow(radiusDown1, 2) * Math.pow(Math.sin(startAng),2));
//var radiusSpec2 = (radius11 * radius2) / Math.sqrt(Math.pow(radius2, 2) * Math.pow((Math.cos(endAng)), 2) + Math.pow(radius11, 2) * Math.pow(Math.sin(endAng),2)) //var radiusSpec2 = (radius11 * radius2) / Math.sqrt(Math.pow(radius2, 2) * Math.pow((Math.cos(endAng)), 2) + Math.pow(radius11, 2) * Math.pow(Math.sin(endAng),2))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment