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

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

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