Commit cfd34988 authored by Sergey.Luzyanin's avatar Sergey.Luzyanin

Для мобильной версии свойства диаграмм

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@61574 954022d7-b5bf-4e40-9824-e11837661b57
parent 8e9975de
...@@ -2694,7 +2694,15 @@ DrawingObjectsController.prototype = ...@@ -2694,7 +2694,15 @@ DrawingObjectsController.prototype =
if(chart_type.getObjectType() === historyitem_type_LineChart ) if(chart_type.getObjectType() === historyitem_type_LineChart )
{ {
if(isRealBool(chartSettings.showMarker)) if(!isRealBool(chartSettings.showMarker))
{
chartSettings.showMarker = false;
}
if(!isRealBool(chartSettings.bLine))
{
chartSettings.bLine = true;
}
if(chartSettings.showMarker)
{ {
//for(var j = 0; j < chart_type.series.length; ++j) //for(var j = 0; j < chart_type.series.length; ++j)
//{ //{
...@@ -2735,55 +2743,62 @@ DrawingObjectsController.prototype = ...@@ -2735,55 +2743,62 @@ DrawingObjectsController.prototype =
} }
} }
} }
if(isRealBool(chartSettings.bLine))
if(!chartSettings.bLine)
{ {
if(!chartSettings.bLine) for(var j = 0; j < chart_type.series.length; ++j)
{ {
for(var j = 0; j < chart_type.series.length; ++j) removeDPtsFromSeries(chart_type.series[j]);
if(!chart_type.series[j].spPr)
{ {
removeDPtsFromSeries(chart_type.series[j]); chart_type.series[j].setSpPr(new CSpPr());
if(!chart_type.series[j].spPr)
{
chart_type.series[j].setSpPr(new CSpPr());
}
if(isRealBool(chart_type.series[j].smooth))
{
chart_type.series[j].setSmooth(null);
}
chart_type.series[j].spPr.setLn(CreateNoFillLine());
} }
}
else if(isRealBool(chart_type.series[j].smooth))
{
for(var j = 0; j < chart_type.series.length; ++j)
{ {
removeDPtsFromSeries(chart_type.series[j]); chart_type.series[j].setSmooth(null);
if(chart_type.series[j].smooth !== (chartSettings.smooth === true))
{
chart_type.series[j].setSmooth(chartSettings.smooth === true);
}
if(chart_type.series[j].spPr && chart_type.series[j].spPr.ln)
{
chart_type.series[j].spPr.setLn(null);
}
} }
chart_type.series[j].spPr.setLn(CreateNoFillLine());
} }
if(chart_type.smooth !== (chartSettings.smooth === true)) }
{ else
chart_type.setSmooth(chartSettings.smooth === true); {
}
for(var j = 0; j < chart_type.series.length; ++j) for(var j = 0; j < chart_type.series.length; ++j)
{ {
removeDPtsFromSeries(chart_type.series[j]);
if(chart_type.series[j].smooth !== (chartSettings.smooth === true)) if(chart_type.series[j].smooth !== (chartSettings.smooth === true))
{ {
chart_type.series[j].setSmooth(chartSettings.smooth === true); chart_type.series[j].setSmooth(chartSettings.smooth === true);
} }
if(chart_type.series[j].spPr && chart_type.series[j].spPr.ln)
{
chart_type.series[j].spPr.setLn(null);
}
}
}
if(chart_type.smooth !== (chartSettings.smooth === true))
{
chart_type.setSmooth(chartSettings.smooth === true);
}
for(var j = 0; j < chart_type.series.length; ++j)
{
if(chart_type.series[j].smooth !== (chartSettings.smooth === true))
{
chart_type.series[j].setSmooth(chartSettings.smooth === true);
} }
} }
} }
if(chart_type.getObjectType() === historyitem_type_ScatterChart) if(chart_type.getObjectType() === historyitem_type_ScatterChart)
{ {
if(!isRealBool(chartSettings.showMarker))
{
chartSettings.showMarker = true;
}
if(!isRealBool(chartSettings.bLine))
{
chartSettings.bLine = false;
}
for(var i = 0; i < chart_type.series.length; ++i) for(var i = 0; i < chart_type.series.length; ++i)
{ {
if(chart_type.series[i].marker) if(chart_type.series[i].marker)
......
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