Commit a3bfbde4 authored by GoshaZotov's avatar GoshaZotov

hPercent in perspective hbar charts

parent ccbf3a16
...@@ -85,7 +85,7 @@ function Processor3D(width, height, left, right, bottom, top, chartSpace, charts ...@@ -85,7 +85,7 @@ function Processor3D(width, height, left, right, bottom, top, chartSpace, charts
this.orientationValAx = null; this.orientationValAx = null;
} }
Processor3D.prototype.calaculate3DProperties = function(baseDepth, gapDepth, isTest) Processor3D.prototype.calaculate3DProperties = function(baseDepth, gapDepth, bIsCheck)
{ {
this.calculateCommonOptions(); this.calculateCommonOptions();
...@@ -109,11 +109,15 @@ Processor3D.prototype.calaculate3DProperties = function(baseDepth, gapDepth, isT ...@@ -109,11 +109,15 @@ Processor3D.prototype.calaculate3DProperties = function(baseDepth, gapDepth, isT
this._calculateScaleFromDepth(); this._calculateScaleFromDepth();
//сдвиг камеры для того, чтобы попали все линии //сдвиг камеры для того, чтобы попали все линии
if(!isTest) if(!bIsCheck)
{
this._calculateCameraDiff(); this._calculateCameraDiff();
if(!isTest && this.view3D.rAngAx) if(this.view3D.rAngAx || (!this.view3D.rAngAx && this.chartsDrawer.calcProp.type === AscFormat.c_oChartTypes.HBar && null !== this.view3D.hPercent))
this._recalculateScaleWithMaxWidth(); {
this._recalculateScaleWithMaxWidth();
}
}
}; };
Processor3D.prototype.calculateCommonOptions = function() Processor3D.prototype.calculateCommonOptions = function()
......
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