Commit 6aa8234e authored by GoshaZotov's avatar GoshaZotov

changes for normal charts

parent ae788e5f
......@@ -185,11 +185,8 @@ Processor3D.prototype._recalculateScaleWithMaxWidth = function()
else
{
//TODO протестировать, и если не будет проблем, то убрать if-else
if(this.angleOy != 0)
if(Math.abs(this.angleOy) > Math.PI)
{
//if(this.depthPerspective * Math.sin(-this.angleOy) + ((this.widthCanvas - (this.left + this.right)) / this.aspectRatioX) / this.scaleX <= widthLine)
//return;
//рассчитываем параметры диаграммы при оптимальной ширине
this.widthCanvas = optimalWidth + (this.left + this.right);
this.calaculate3DProperties(null, null, true);
......
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