Commit f3ab1f5c authored by Igor.Zotov's avatar Igor.Zotov Committed by Alexander.Trofimov

неверная отрисовка 3d pie chart

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@67955 954022d7-b5bf-4e40-9824-e11837661b57
parent ae7d0baa
......@@ -6584,9 +6584,6 @@ drawPieChart.prototype =
_changeAngle: function(radius, stAng, swAng, xCenter, yCenter, properties)
{
if(swAng > Math.PI)
return swAng;
var depth = properties.depth;
var radius1 = properties.radius1;
var radius2 = properties.radius2;
......@@ -6660,8 +6657,13 @@ drawPieChart.prototype =
if(cosNewAngle < -1)
cosNewAngle = - 1;
return Math.acos(cosNewAngle);
var res;
if(swAng > Math.PI)
res = 2*Math.PI - Math.acos(cosNewAngle);
else
res = Math.acos(cosNewAngle);
return res;
},
_calculateArc3D2 : function(radius, stAng, swAng, xCenter, yCenter)
......
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