Commit a6af993e authored by olau@iola.dk's avatar olau@iola.dk

Fixed numerical instability in IE when plotting points by reversing the arc...

Fixed numerical instability in IE when plotting points by reversing the arc drawing clockwise setting (reported by bsrinisrini, issue 173)


git-svn-id: https://flot.googlecode.com/svn/trunk@162 1e0a6537-2640-0410-bfb7-f154510ff394
parent e081505c
......@@ -1442,7 +1442,7 @@
continue;
ctx.beginPath();
ctx.arc(axisx.p2c(x), axisy.p2c(y) + offset, radius, 0, circumference, true);
ctx.arc(axisx.p2c(x), axisy.p2c(y) + offset, radius, 0, circumference, false);
if (fillStyle) {
ctx.fillStyle = fillStyle;
ctx.fill();
......@@ -1462,11 +1462,11 @@
var w = sw / 2;
ctx.lineWidth = w;
ctx.strokeStyle = "rgba(0,0,0,0.1)";
plotPoints(series.datapoints, radius, null, w + w/2, 2 * Math.PI,
plotPoints(series.datapoints, radius, null, w + w/2, Math.PI,
series.xaxis, series.yaxis);
ctx.strokeStyle = "rgba(0,0,0,0.2)";
plotPoints(series.datapoints, radius, null, w/2, 2 * Math.PI,
plotPoints(series.datapoints, radius, null, w/2, Math.PI,
series.xaxis, series.yaxis);
}
......@@ -1988,7 +1988,7 @@
octx.strokeStyle = parseColor(series.color).scale(1, 1, 1, 0.5).toString();
var radius = 1.5 * pointRadius;
octx.beginPath();
octx.arc(axisx.p2c(x), axisy.p2c(y), radius, 0, 2 * Math.PI, true);
octx.arc(axisx.p2c(x), axisy.p2c(y), radius, 0, 2 * Math.PI, false);
octx.stroke();
}
......
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