Commit fdff957e authored by Sergey Luzyanin's avatar Sergey Luzyanin Committed by Alexander.Trofimov

перешел на метод _isSwitchCurrent3DChart для определения 3-d диаграммы

parent 8e9f047d
...@@ -3593,11 +3593,11 @@ DrawingObjectsController.prototype = ...@@ -3593,11 +3593,11 @@ DrawingObjectsController.prototype =
if(chart_type.getObjectType() === AscDFH.historyitem_type_LineChart ) if(chart_type.getObjectType() === AscDFH.historyitem_type_LineChart )
{ {
if(!AscFormat.isRealBool(chartSettings.showMarker) || chart.view3D) if(!AscFormat.isRealBool(chartSettings.showMarker) || AscFormat.CChartsDrawer.prototype._isSwitchCurrent3DChart(chartSpace))
{ {
chartSettings.showMarker = false; chartSettings.showMarker = false;
} }
if(!AscFormat.isRealBool(chartSettings.bLine) || chart.view3D) if(!AscFormat.isRealBool(chartSettings.bLine) || AscFormat.CChartsDrawer.prototype._isSwitchCurrent3DChart(chartSpace))
{ {
chartSettings.bLine = true; chartSettings.bLine = true;
} }
...@@ -3872,10 +3872,6 @@ DrawingObjectsController.prototype = ...@@ -3872,10 +3872,6 @@ DrawingObjectsController.prototype =
} }
ret.putVertGridLines(calc_grid_lines(hor_axis)); ret.putVertGridLines(calc_grid_lines(hor_axis));
ret.putHorAxisLabel(hor_axis && hor_axis.title ? c_oAscChartHorAxisLabelShowSettings.noOverlay : c_oAscChartTitleShowSettings.none); ret.putHorAxisLabel(hor_axis && hor_axis.title ? c_oAscChartHorAxisLabelShowSettings.noOverlay : c_oAscChartTitleShowSettings.none);
var _label; var _label;
if(vert_axis && vert_axis.title) if(vert_axis && vert_axis.title)
...@@ -3943,7 +3939,7 @@ DrawingObjectsController.prototype = ...@@ -3943,7 +3939,7 @@ DrawingObjectsController.prototype =
var calc_chart_type; var calc_chart_type;
if(chart_type_object_type === AscDFH.historyitem_type_PieChart) if(chart_type_object_type === AscDFH.historyitem_type_PieChart)
{ {
if(!chart.view3D) if(!AscFormat.CChartsDrawer.prototype._isSwitchCurrent3DChart(chart_space))
{ {
calc_chart_type = c_oAscChartTypeSettings.pie; calc_chart_type = c_oAscChartTypeSettings.pie;
} }
...@@ -3959,7 +3955,7 @@ DrawingObjectsController.prototype = ...@@ -3959,7 +3955,7 @@ DrawingObjectsController.prototype =
else if(chart_type_object_type === AscDFH.historyitem_type_BarChart) else if(chart_type_object_type === AscDFH.historyitem_type_BarChart)
{ {
var b_hbar = chart_type.barDir === BAR_DIR_BAR; var b_hbar = chart_type.barDir === BAR_DIR_BAR;
var bView3d = chart.view3D && chart_type.b3D; var bView3d = AscFormat.CChartsDrawer.prototype._isSwitchCurrent3DChart(chart_space);
if(b_hbar) if(b_hbar)
{ {
switch(chart_type.grouping) switch(chart_type.grouping)
...@@ -4036,7 +4032,7 @@ DrawingObjectsController.prototype = ...@@ -4036,7 +4032,7 @@ DrawingObjectsController.prototype =
} }
default : default :
{ {
if(!chart.view3D) if(!AscFormat.CChartsDrawer.prototype._isSwitchCurrent3DChart(chart_space))
{ {
calc_chart_type = c_oAscChartTypeSettings.lineNormal; calc_chart_type = c_oAscChartTypeSettings.lineNormal;
} }
......
...@@ -6352,7 +6352,7 @@ CChartSpace.prototype = ...@@ -6352,7 +6352,7 @@ CChartSpace.prototype =
case AscDFH.historyitem_type_ScatterSer: case AscDFH.historyitem_type_ScatterSer:
case AscDFH.historyitem_type_SurfaceSeries: case AscDFH.historyitem_type_SurfaceSeries:
{ {
if(this.chart.view3D) if(AscFormat.CChartsDrawer.prototype._isSwitchCurrent3DChart(this))
{ {
union_marker.marker = AscFormat.CreateMarkerGeometryByType(AscFormat.SYMBOL_SQUARE, null); union_marker.marker = AscFormat.CreateMarkerGeometryByType(AscFormat.SYMBOL_SQUARE, null);
union_marker.marker.pen = ser.compiledSeriesPen; union_marker.marker.pen = ser.compiledSeriesPen;
...@@ -6375,7 +6375,7 @@ CChartSpace.prototype = ...@@ -6375,7 +6375,7 @@ CChartSpace.prototype =
union_marker.lineMarker = AscFormat.CreateMarkerGeometryByType(AscFormat.SYMBOL_DASH, null); union_marker.lineMarker = AscFormat.CreateMarkerGeometryByType(AscFormat.SYMBOL_DASH, null);
union_marker.lineMarker.pen = ser.compiledSeriesPen.createDuplicate(); //Копируем, так как потом возможно придется изменять толщину линии; union_marker.lineMarker.pen = ser.compiledSeriesPen.createDuplicate(); //Копируем, так как потом возможно придется изменять толщину линии;
} }
if(!b_scatter_no_line && !this.chart.view3D) if(!b_scatter_no_line && !AscFormat.CChartsDrawer.prototype._isSwitchCurrent3DChart(this))
b_line_series = true; b_line_series = true;
break; break;
} }
...@@ -6429,7 +6429,7 @@ CChartSpace.prototype = ...@@ -6429,7 +6429,7 @@ CChartSpace.prototype =
calc_entry.calcMarkerUnion = new AscFormat.CUnionMarker(); calc_entry.calcMarkerUnion = new AscFormat.CUnionMarker();
union_marker = calc_entry.calcMarkerUnion; union_marker = calc_entry.calcMarkerUnion;
if(ser.getObjectType() === AscDFH.historyitem_type_LineSeries && !this.chart.view3D || ser.getObjectType() === AscDFH.historyitem_type_ScatterSer) if(ser.getObjectType() === AscDFH.historyitem_type_LineSeries && !AscFormat.CChartsDrawer.prototype._isSwitchCurrent3DChart(this) || ser.getObjectType() === AscDFH.historyitem_type_ScatterSer)
{ {
if(pt.compiledMarker) if(pt.compiledMarker)
{ {
...@@ -6442,7 +6442,7 @@ CChartSpace.prototype = ...@@ -6442,7 +6442,7 @@ CChartSpace.prototype =
union_marker.lineMarker = AscFormat.CreateMarkerGeometryByType(AscFormat.SYMBOL_DASH, null); union_marker.lineMarker = AscFormat.CreateMarkerGeometryByType(AscFormat.SYMBOL_DASH, null);
union_marker.lineMarker.pen = pt.pen; union_marker.lineMarker.pen = pt.pen;
} }
if(!b_scatter_no_line && !this.chart.view3D) if(!b_scatter_no_line && !AscFormat.CChartsDrawer.prototype._isSwitchCurrent3DChart(this))
b_line_series = true; b_line_series = true;
} }
else else
...@@ -7609,7 +7609,7 @@ CChartSpace.prototype = ...@@ -7609,7 +7609,7 @@ CChartSpace.prototype =
{ {
var plot_area = this.chart.plotArea; var plot_area = this.chart.plotArea;
var default_brush; var default_brush;
if(this.chart.view3D) if(AscFormat.CChartsDrawer.prototype._isSwitchCurrent3DChart(this))
{ {
default_brush = CreateNoFillUniFill(); default_brush = CreateNoFillUniFill();
} }
...@@ -8011,7 +8011,7 @@ CChartSpace.prototype = ...@@ -8011,7 +8011,7 @@ CChartSpace.prototype =
case AscDFH.historyitem_type_RadarChart: case AscDFH.historyitem_type_RadarChart:
{ {
var base_line_fills = getArrayFillsFromBase(style.line4, getMaxIdx(series)); var base_line_fills = getArrayFillsFromBase(style.line4, getMaxIdx(series));
if(!this.chart.view3D) if(!AscFormat.CChartsDrawer.prototype._isSwitchCurrent3DChart(this))
{ {
for(var i = 0; i < series.length; ++i) for(var i = 0; i < series.length; ++i)
{ {
......
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