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

добавил в экспорт asc_getFromChart и asc_setFromChart у asc_CShapeProperty....

добавил в экспорт asc_getFromChart и asc_setFromChart у asc_CShapeProperty. поправлены некоторые баги при построениии preview диаграмм.

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@56492 954022d7-b5bf-4e40-9824-e11837661b57
parent 75195fef
...@@ -1929,6 +1929,8 @@ prot["asc_getCanFill"] = prot.asc_getCanFill; ...@@ -1929,6 +1929,8 @@ prot["asc_getCanFill"] = prot.asc_getCanFill;
prot["asc_putCanFill"] = prot.asc_putCanFill; prot["asc_putCanFill"] = prot.asc_putCanFill;
prot["asc_getCanChangeArrows"] = prot.asc_getCanChangeArrows; prot["asc_getCanChangeArrows"] = prot.asc_getCanChangeArrows;
prot["asc_setCanChangeArrows"] = prot.asc_setCanChangeArrows; prot["asc_setCanChangeArrows"] = prot.asc_setCanChangeArrows;
prot["asc_getFromChart"] = prot.asc_getFromChart;
prot["asc_setFromChart"] = prot.asc_setFromChart;
//} //}
//----------------------------------------------------------------------------------- //-----------------------------------------------------------------------------------
......
...@@ -722,6 +722,8 @@ function ChartPreviewManager() { ...@@ -722,6 +722,8 @@ function ChartPreviewManager() {
DrawingObjectsController.prototype.applyPropsToChartSpace(settings, chart_space); DrawingObjectsController.prototype.applyPropsToChartSpace(settings, chart_space);
chart_space.setBDeleted(false); chart_space.setBDeleted(false);
chart_space.updateLinks(); chart_space.updateLinks();
if(!(asc_chart.type.toLowerCase() === "scatter" || asc_chart.type.toLowerCase() === "stock"))
{
if(chart_space.chart.plotArea.valAx) if(chart_space.chart.plotArea.valAx)
{ {
chart_space.chart.plotArea.valAx.setDelete(true); chart_space.chart.plotArea.valAx.setDelete(true);
...@@ -730,6 +732,22 @@ function ChartPreviewManager() { ...@@ -730,6 +732,22 @@ function ChartPreviewManager() {
{ {
chart_space.chart.plotArea.catAx.setDelete(true); chart_space.chart.plotArea.catAx.setDelete(true);
} }
}
else
{
if(chart_space.chart.plotArea.valAx)
{
chart_space.chart.plotArea.valAx.setTickLblPos(TICK_LABEL_POSITION_NONE);
chart_space.chart.plotArea.valAx.setMajorTickMark(TICK_MARK_NONE);
chart_space.chart.plotArea.valAx.setMinorTickMark(TICK_MARK_NONE);
}
if(chart_space.chart.plotArea.catAx)
{
chart_space.chart.plotArea.catAx.setTickLblPos(TICK_LABEL_POSITION_NONE);
chart_space.chart.plotArea.catAx.setMajorTickMark(TICK_MARK_NONE);
chart_space.chart.plotArea.catAx.setMinorTickMark(TICK_MARK_NONE);
}
}
if(!chart_space.spPr) if(!chart_space.spPr)
{ {
chart_space.setSpPr(new CSpPr()); chart_space.setSpPr(new CSpPr());
......
...@@ -2216,7 +2216,7 @@ DrawingObjectsController.prototype = ...@@ -2216,7 +2216,7 @@ DrawingObjectsController.prototype =
} }
else if(chart_type_object_type === historyitem_type_LineChart) else if(chart_type_object_type === historyitem_type_LineChart)
{ {
if(!chart_type.marker) // if(!chart_type.marker)
{ {
switch(chart_type.grouping) switch(chart_type.grouping)
{ {
...@@ -2237,7 +2237,7 @@ DrawingObjectsController.prototype = ...@@ -2237,7 +2237,7 @@ DrawingObjectsController.prototype =
} }
} }
} }
else /* else
{ {
switch(chart_type.grouping) switch(chart_type.grouping)
{ {
...@@ -2257,7 +2257,7 @@ DrawingObjectsController.prototype = ...@@ -2257,7 +2257,7 @@ DrawingObjectsController.prototype =
break; break;
} }
} }
} } */
} }
else if(chart_type_object_type === historyitem_type_AreaChart) else if(chart_type_object_type === historyitem_type_AreaChart)
{ {
...@@ -2282,7 +2282,9 @@ DrawingObjectsController.prototype = ...@@ -2282,7 +2282,9 @@ DrawingObjectsController.prototype =
} }
else if(chart_type_object_type === historyitem_type_ScatterChart) else if(chart_type_object_type === historyitem_type_ScatterChart)
{ {
switch (chart_type.scatterStyle)
calc_chart_type = c_oAscChartTypeSettings.scatter;
/*switch (chart_type.scatterStyle)
{ {
case SCATTER_STYLE_LINE: case SCATTER_STYLE_LINE:
{ {
...@@ -2319,7 +2321,7 @@ DrawingObjectsController.prototype = ...@@ -2319,7 +2321,7 @@ DrawingObjectsController.prototype =
calc_chart_type = c_oAscChartTypeSettings.scatterMarker; calc_chart_type = c_oAscChartTypeSettings.scatterMarker;
break; break;
} }
} } */
} }
else else
{ {
......
...@@ -16024,6 +16024,18 @@ CScatterChart.prototype = ...@@ -16024,6 +16024,18 @@ CScatterChart.prototype =
Refresh_RecalcData: function() Refresh_RecalcData: function()
{}, {},
Write_ToBinary2: function(w)
{
w.WriteLong(this.getObjectType());
w.WriteString2(this.Get_Id());
},
Read_FromBinary2: function(r)
{
this.Id = r.GetString2();
},
removeSeries: function(idx) removeSeries: function(idx)
{ {
if(this.series[idx]) if(this.series[idx])
......
This diff is collapsed.
...@@ -1036,6 +1036,12 @@ Geometry.prototype= ...@@ -1036,6 +1036,12 @@ Geometry.prototype=
this.pathLst[i].draw(shape_drawer); this.pathLst[i].draw(shape_drawer);
}, },
drawSmart: function(shape_drawer)
{
for (var i=0, n=this.pathLst.length; i<n;++i)
this.pathLst[i].drawSmart(shape_drawer);
},
check_bounds: function(checker) check_bounds: function(checker)
{ {
for(var i=0, n=this.pathLst.length; i<n;++i) for(var i=0, n=this.pathLst.length; i<n;++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