Commit 1730206a authored by Igor.Zotov's avatar Igor.Zotov Committed by Alexander.Trofimov

git-svn-id:...

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@53675 954022d7-b5bf-4e40-9824-e11837661b57
parent 6a3a33e4
......@@ -2990,7 +2990,7 @@ drawScatterChart.prototype =
var pathH = this.chartProp.pathH;
var pathW = this.chartProp.pathW;
var gdLst = [];
path.pathH = pathH;
path.pathW = pathW;
gdLst["w"] = 1;
......@@ -3001,7 +3001,7 @@ drawScatterChart.prototype =
var pxToMm = this.chartProp.pxToMM;
var result;
/*var SYMBOL_NONE = 4;
/*
var SYMBOL_PICTURE = 5;*/
switch ( symbol )
......@@ -3030,7 +3030,8 @@ drawScatterChart.prototype =
case SYMBOL_CIRCLE:
{
path.arcTo(halfSize / pxToMm * pathW, halfSize / pxToMm * pathW, 0, Math.PI * 2);
path.moveTo((x + halfSize) / pxToMm * pathW, y / pxToMm * pathW);
path.arcTo(halfSize / pxToMm * pathW, halfSize / pxToMm * pathW, 0, Math.PI * 2 * cToDeg);
break;
}
......@@ -3056,10 +3057,10 @@ drawScatterChart.prototype =
case SYMBOL_TRIANGLE:
{
path.moveTo((x - halfSize * (Math.sqrt(3)/2)) / pxToMm * pathW, (y + halfSize * 0.5) / pxToMm * pathW);
path.lnTo(x / pxToMm * pathW, (y - halfSize) / pxToMm * pathW);
path.lnTo((x + halfSize * (Math.sqrt(3)/2)) / pxToMm * pathW, (y + halfSize * 0.5) / pxToMm * pathW);
path.lnTo((x - halfSize * Math.sqrt(3)/2) / pxToMm * pathW, (y + halfSize * 0.5) / pxToMm * pathW);
path.moveTo((x - size/Math.sqrt(3)) / pxToMm * pathW, (y + size/3) / pxToMm * pathW);
path.lnTo(x / pxToMm * pathW, (y - (2/3)*size) / pxToMm * pathW);
path.lnTo((x + size/Math.sqrt(3)) / pxToMm * pathW, (y + size/3) / pxToMm * pathW)
path.lnTo((x - size/Math.sqrt(3)) / pxToMm * pathW, (y + size/3) / pxToMm * pathW);
break;
}
......
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